2018-02-13 19:03:53 +00:00
|
|
|
{
|
2019-09-05 15:09:31 +00:00
|
|
|
"name": "@woocommerce/block-library",
|
|
|
|
"title": "WooCommerce Blocks",
|
|
|
|
"author": "Automattic",
|
2019-11-19 19:08:55 +00:00
|
|
|
"version": "2.6.0-dev",
|
2019-09-05 15:09:31 +00:00
|
|
|
"description": "WooCommerce blocks for the Gutenberg editor.",
|
|
|
|
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
|
|
|
|
"keywords": [
|
|
|
|
"woocommerce",
|
|
|
|
"wordpress",
|
|
|
|
"blocks"
|
|
|
|
],
|
2019-12-11 14:58:49 +00:00
|
|
|
"sideEffects": [
|
|
|
|
"*.css",
|
2019-12-17 17:32:08 +00:00
|
|
|
"*.scss",
|
2020-01-22 16:58:25 +00:00
|
|
|
"./assets/js/atomic/blocks/product/**",
|
|
|
|
"./assets/js/filters/**"
|
2019-12-11 14:58:49 +00:00
|
|
|
],
|
2019-09-05 15:09:31 +00:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com:woocommerce/woocommerce-gutenberg-products-block.git"
|
|
|
|
},
|
|
|
|
"license": "GPL-3.0+",
|
|
|
|
"scripts": {
|
2020-01-31 20:04:37 +00:00
|
|
|
"deploy": "cross-env WOOCOMMERCE_BLOCKS_PHASE=stable composer install --no-dev && npm run build --loglevel error && sh ./bin/github-deploy.sh",
|
2019-09-05 15:09:31 +00:00
|
|
|
"release": "sh ./bin/wordpress-deploy.sh",
|
|
|
|
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack",
|
|
|
|
"build:ci": "npm run build && npm run size-check && npm run lint:js && npm run lint:css",
|
2020-02-11 17:23:23 +00:00
|
|
|
"build:e2e-test": "npm run build",
|
2020-02-11 16:13:20 +00:00
|
|
|
"docker:up": "docker-compose up -d",
|
|
|
|
"docker:up:build": "docker-compose up --build -d",
|
|
|
|
"docker:down": "docker-compose down",
|
|
|
|
"docker:down:reset": "docker-compose down -v",
|
|
|
|
"docker:clear-all": "docker rmi --force $(docker images -q)",
|
|
|
|
"docker:ssh": "docker exec -it woo-blocks_wordpress-www_1 /bin/bash",
|
2019-09-05 15:09:31 +00:00
|
|
|
"start": "cross-env BABEL_ENV=default webpack --watch --info-verbosity none",
|
|
|
|
"lint": "npm run lint:php && npm run lint:css && npm run lint:js",
|
2020-02-11 16:13:20 +00:00
|
|
|
"lint:php": "composer run-script phpcs ./src",
|
2019-09-05 15:09:31 +00:00
|
|
|
"lint:css": "stylelint 'assets/**/*.scss'",
|
|
|
|
"lint:css-fix": "stylelint 'assets/**/*.scss' --fix",
|
2020-02-13 13:16:16 +00:00
|
|
|
"lint:js": "eslint assets/js bin --ext=js,jsx",
|
2019-09-05 15:09:31 +00:00
|
|
|
"lint:js-fix": "eslint assets/js --ext=js,jsx --fix",
|
|
|
|
"package-plugin": "./bin/build-plugin-zip.sh",
|
|
|
|
"reformat-files": "prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json,ts,tsx}\"",
|
|
|
|
"test": "wp-scripts test-unit-js --config tests/js/jest.config.json",
|
|
|
|
"test:help": "wp-scripts test-unit-js --help",
|
|
|
|
"test:update": "wp-scripts test-unit-js --updateSnapshot --config tests/js/jest.config.json",
|
2020-02-11 16:13:20 +00:00
|
|
|
"test:e2e": "./tests/bin/e2e-test-integration.js",
|
|
|
|
"test:e2e-dev": "./tests/bin/e2e-test-integration.js --dev",
|
2019-09-05 15:09:31 +00:00
|
|
|
"test:watch": "npm run test -- --watch",
|
2019-12-11 16:30:54 +00:00
|
|
|
"size-check": "bundlewatch",
|
2020-01-30 20:59:14 +00:00
|
|
|
"storybook": "start-storybook -c ./storybook -p 6006 --ci",
|
|
|
|
"build-storybook": "build-storybook -c ./storybook",
|
2020-01-28 13:47:26 +00:00
|
|
|
"changelog": "node ./bin/changelog",
|
|
|
|
"changelog:zenhub": "node ./bin/changelog --changelogSrcType='ZENHUB_RELEASE'"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-02-12 16:01:30 +00:00
|
|
|
"@babel/cli": "7.8.4",
|
|
|
|
"@babel/core": "7.8.4",
|
2020-01-15 09:19:51 +00:00
|
|
|
"@babel/plugin-proposal-class-properties": "7.8.3",
|
2020-02-12 16:01:30 +00:00
|
|
|
"@babel/polyfill": "7.8.3",
|
|
|
|
"@babel/preset-env": "7.8.4",
|
2020-01-15 15:19:06 +00:00
|
|
|
"@octokit/graphql": "4.3.1",
|
2020-02-10 21:45:25 +00:00
|
|
|
"@storybook/addon-a11y": "5.3.12",
|
|
|
|
"@storybook/addon-actions": "5.3.12",
|
|
|
|
"@storybook/addon-docs": "5.3.12",
|
|
|
|
"@storybook/addon-knobs": "5.3.12",
|
|
|
|
"@storybook/addon-links": "5.3.12",
|
|
|
|
"@storybook/addon-storysource": "5.3.12",
|
|
|
|
"@storybook/addon-viewport": "5.3.12",
|
|
|
|
"@storybook/addons": "5.3.12",
|
|
|
|
"@storybook/react": "5.3.12",
|
2020-02-10 22:02:09 +00:00
|
|
|
"@wordpress/babel-preset-default": "4.10.0",
|
|
|
|
"@wordpress/base-styles": "1.4.0",
|
|
|
|
"@wordpress/blocks": "6.12.0",
|
2019-09-05 15:09:31 +00:00
|
|
|
"@wordpress/browserslist-config": "2.6.0",
|
2020-01-24 12:00:11 +00:00
|
|
|
"@wordpress/components": "8.5.0",
|
2020-02-11 16:13:20 +00:00
|
|
|
"@wordpress/data-controls": "1.6.0",
|
|
|
|
"@wordpress/dependency-extraction-webpack-plugin": "2.1.0",
|
|
|
|
"@wordpress/editor": "9.10.0",
|
|
|
|
"@wordpress/e2e-test-utils": "4.0.0",
|
|
|
|
"@wordpress/element": "2.10.0",
|
|
|
|
"@wordpress/eslint-plugin": "3.3.0",
|
|
|
|
"@wordpress/html-entities": "2.5.0",
|
|
|
|
"@wordpress/i18n": "3.8.0",
|
|
|
|
"@wordpress/is-shallow-equal": "1.7.0",
|
|
|
|
"@wordpress/jest-preset-default": "5.3.1",
|
2020-01-30 12:16:52 +00:00
|
|
|
"@wordpress/scripts": "6.2.0",
|
2020-01-15 09:19:31 +00:00
|
|
|
"autoprefixer": "9.7.4",
|
2019-09-05 15:09:31 +00:00
|
|
|
"babel-core": "7.0.0-bridge.0",
|
|
|
|
"babel-eslint": "10.0.3",
|
|
|
|
"babel-loader": "8.0.6",
|
|
|
|
"babel-plugin-transform-async-generator-functions": "6.24.1",
|
|
|
|
"babel-plugin-transform-object-rest-spread": "6.26.0",
|
|
|
|
"babel-plugin-transform-react-jsx": "6.24.1",
|
|
|
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
|
|
"babel-plugin-transform-runtime": "6.23.0",
|
2019-12-18 09:24:51 +00:00
|
|
|
"bundlewatch": "0.2.5",
|
2019-12-10 17:17:46 +00:00
|
|
|
"chalk": "3.0.0",
|
2019-09-05 15:09:31 +00:00
|
|
|
"clean-webpack-plugin": "3.0.0",
|
2020-02-12 15:55:38 +00:00
|
|
|
"create-file-webpack": "1.0.2",
|
2020-02-12 15:43:36 +00:00
|
|
|
"commander": "4.1.1",
|
2020-02-11 16:13:20 +00:00
|
|
|
"cross-env": "6.0.3",
|
2020-01-15 09:20:06 +00:00
|
|
|
"css-loader": "3.4.2",
|
2019-09-05 15:09:31 +00:00
|
|
|
"cssnano": "4.1.10",
|
2019-10-28 13:53:09 +00:00
|
|
|
"deep-freeze": "0.0.1",
|
2019-12-25 11:44:47 +00:00
|
|
|
"eslint": "6.8.0",
|
2020-01-30 10:57:52 +00:00
|
|
|
"eslint-config-prettier": "6.10.0",
|
2020-02-19 16:36:56 +00:00
|
|
|
"eslint-plugin-jest": "23.7.0",
|
2020-01-24 12:00:11 +00:00
|
|
|
"eslint-plugin-woocommerce": "file:bin/eslint-plugin-woocommerce",
|
2019-09-05 15:09:31 +00:00
|
|
|
"husky": "2.4.1",
|
|
|
|
"ignore-loader": "0.1.2",
|
2020-02-11 16:13:20 +00:00
|
|
|
"jest": "25.1.0",
|
2020-02-12 15:55:38 +00:00
|
|
|
"jest-puppeteer": "4.4.0",
|
2020-02-11 16:13:20 +00:00
|
|
|
"lint-staged": "9.5.0",
|
2020-01-30 10:53:22 +00:00
|
|
|
"merge-config": "2.0.0",
|
2019-12-25 11:44:36 +00:00
|
|
|
"mini-css-extract-plugin": "0.9.0",
|
2020-01-22 10:19:48 +00:00
|
|
|
"node-sass": "4.13.1",
|
2019-09-05 15:09:31 +00:00
|
|
|
"postcss-loader": "3.0.0",
|
2019-12-10 17:17:46 +00:00
|
|
|
"prettier": "npm:wp-prettier@1.19.1",
|
2019-09-05 15:09:31 +00:00
|
|
|
"progress-bar-webpack-plugin": "1.12.1",
|
|
|
|
"promptly": "3.0.3",
|
2020-02-19 16:36:23 +00:00
|
|
|
"puppeteer": "2.1.1",
|
2019-11-26 05:38:12 +00:00
|
|
|
"react-test-renderer": "16.12.0",
|
2019-11-27 09:36:34 +00:00
|
|
|
"request-promise": "4.2.5",
|
2020-02-19 16:34:39 +00:00
|
|
|
"rimraf": "3.0.2",
|
2019-09-05 15:09:31 +00:00
|
|
|
"sass-loader": "7.3.1",
|
2020-01-02 08:47:54 +00:00
|
|
|
"stylelint": "12.0.1",
|
2019-12-10 17:17:46 +00:00
|
|
|
"stylelint-config-wordpress": "13.1.0",
|
2020-01-02 08:49:02 +00:00
|
|
|
"webpack": "4.41.5",
|
2019-12-10 17:17:46 +00:00
|
|
|
"webpack-cli": "3.3.10",
|
2019-09-05 15:09:31 +00:00
|
|
|
"webpack-rtl-plugin": "2.0.0",
|
2020-02-11 16:13:20 +00:00
|
|
|
"woocommerce": "git+https://github.com/woocommerce/woocommerce.git",
|
2020-01-15 15:19:06 +00:00
|
|
|
"zenhub-api": "0.2.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2020-02-19 16:35:04 +00:00
|
|
|
"node": "12.16.1",
|
2020-01-30 10:58:28 +00:00
|
|
|
"npm": "6.13.7"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2019-12-02 19:53:36 +00:00
|
|
|
"@woocommerce/components": "4.0.0",
|
2020-01-24 12:00:11 +00:00
|
|
|
"classnames": "2.2.6",
|
2020-02-19 16:36:06 +00:00
|
|
|
"compare-versions": "3.6.0",
|
2020-02-21 09:53:50 +00:00
|
|
|
"downshift": "4.1.0",
|
2020-02-12 15:55:38 +00:00
|
|
|
"config": "3.2.5",
|
2019-10-30 12:13:50 +00:00
|
|
|
"react-number-format": "4.3.1",
|
2019-11-15 14:41:23 +00:00
|
|
|
"trim-html": "0.1.9",
|
2020-01-17 16:58:08 +00:00
|
|
|
"use-debounce": "3.3.0",
|
2020-02-17 16:31:55 +00:00
|
|
|
"wordpress-components": "npm:@wordpress/components@8.5.0",
|
|
|
|
"wordpress-element": "npm:@wordpress/element@2.11.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
|
|
|
},
|
2019-12-11 16:30:54 +00:00
|
|
|
"bundlewatch": {
|
|
|
|
"files": [
|
|
|
|
{
|
|
|
|
"path": "./build/*.js",
|
|
|
|
"maxSize": "200 kB"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"path": "./build/*frontend*.js",
|
|
|
|
"maxSize": "60 kB"
|
|
|
|
},
|
Cart block: line-items front end initial work (https://github.com/woocommerce/woocommerce-blocks/pull/1333)
* render block on front end, add `Shopping cart` heading (baby steps)
* fake data for editing full cart + show line count in header
* add note about core/html using `is-active` class for toggle state
* reinstate work-in-progress full cart component (lost in rebase)
* reinstate full cart from master
* component for full cart title & item count + margin tweaks:
- add margin between main cart & sidebar
- add margin after cart block
* add cart items sample data + factor sample product image to module
* use sample cart data for item count
* basic table of cart line items (no styling)
* prettification
* show images for cart line items + initial table styling
* cart quantity selector component (work in progress)
* use state for cart product quantity, allow incr/decr from UI (WIP)
* replace WIP custom quantity control with number edit (temporary)
* correctly format cart line item total price
* align cart item columns with headings + indent image on desktop
* tweak css for cart line item padding on mobile so it's more explicit
* show cart line item full price if discounted
* add placeholder for cart remove item link
* switch cart table to flex layout (was table)…
This will allow us to move things around for mobile/responsive layout.
* only show cart items table header on desktop
* more cart items styling - row borders, appropriate padding +
+ move image width to variable
+ fix class name plurality for row (item not items)
* use standard $gap instead of 1em for padding/margins
* responsive (mobile) layout for cart line items:
- shift line $ total to bottom right
- stack quantity selector in product info column
* remove extraneous cart table padding on mobile
* comment about unused styles for quantity selector component
* add follow up issue for todo
* remove inappropriate href
* render srcset & sizes for cart line item product image
* remove todo comment
* switch back to table markup for cart items (in progress):
- table is more semantic, associates headers with columns
* cart line items column widths - product column is larger (60%)
* reinstate table row borders
* bottom-align line item price on mobile
* cart contents heading should be H2 + prettify
* remove unused QuantitySelector code/styles, rename main class in line with BEM
* defaults for QuantitySelector props
* variable/property name tidies - match conventions/API
* fix bug: line total price is only bottom-align on small screen
* move QuantitySelector to root of components, intended to be generally useful
* use lineItem directly for cart, specify shape in PropTypes
* rename cart components to align with "line item" rather than "product"
* rejig class names to better align with new component names & BEM style
* show cart item image correct size:
- use single column for product image and info, with flex container
- specify image width (rem instead of px)
* fix safari issue - cart product images displaying vertically stretched
* shift product name left margin from image, to account for no-image case
* experiment: bump bundlewatch size limit for cart temporarily:
- our fake data inline image is heavy
- when we switch to real API we will no longer need it
* fix issue introduced when moving margin from image to details div:
- product details needs margin on left (not right)
* fix react props issues:
- explicitly destructure image props for srcSet (vs srcset)
- use API key field for line item key instead of id, fix duplicate test id
- CartLineItemsTable takes an array of lineItems (incorrect PropTypes)
* remove redundant divs + use conventional `null` (when no full price)
* override editor styles to ensure cart product image is correct size
* move cart items editor style override to editor.css
* add an explicit readable heading for cart heading to match visual layout
2020-01-09 22:50:14 +00:00
|
|
|
{
|
|
|
|
"path": "./build/cart-frontend.js",
|
2020-02-17 11:12:15 +00:00
|
|
|
"maxSize": "140 kB"
|
Cart block: line-items front end initial work (https://github.com/woocommerce/woocommerce-blocks/pull/1333)
* render block on front end, add `Shopping cart` heading (baby steps)
* fake data for editing full cart + show line count in header
* add note about core/html using `is-active` class for toggle state
* reinstate work-in-progress full cart component (lost in rebase)
* reinstate full cart from master
* component for full cart title & item count + margin tweaks:
- add margin between main cart & sidebar
- add margin after cart block
* add cart items sample data + factor sample product image to module
* use sample cart data for item count
* basic table of cart line items (no styling)
* prettification
* show images for cart line items + initial table styling
* cart quantity selector component (work in progress)
* use state for cart product quantity, allow incr/decr from UI (WIP)
* replace WIP custom quantity control with number edit (temporary)
* correctly format cart line item total price
* align cart item columns with headings + indent image on desktop
* tweak css for cart line item padding on mobile so it's more explicit
* show cart line item full price if discounted
* add placeholder for cart remove item link
* switch cart table to flex layout (was table)…
This will allow us to move things around for mobile/responsive layout.
* only show cart items table header on desktop
* more cart items styling - row borders, appropriate padding +
+ move image width to variable
+ fix class name plurality for row (item not items)
* use standard $gap instead of 1em for padding/margins
* responsive (mobile) layout for cart line items:
- shift line $ total to bottom right
- stack quantity selector in product info column
* remove extraneous cart table padding on mobile
* comment about unused styles for quantity selector component
* add follow up issue for todo
* remove inappropriate href
* render srcset & sizes for cart line item product image
* remove todo comment
* switch back to table markup for cart items (in progress):
- table is more semantic, associates headers with columns
* cart line items column widths - product column is larger (60%)
* reinstate table row borders
* bottom-align line item price on mobile
* cart contents heading should be H2 + prettify
* remove unused QuantitySelector code/styles, rename main class in line with BEM
* defaults for QuantitySelector props
* variable/property name tidies - match conventions/API
* fix bug: line total price is only bottom-align on small screen
* move QuantitySelector to root of components, intended to be generally useful
* use lineItem directly for cart, specify shape in PropTypes
* rename cart components to align with "line item" rather than "product"
* rejig class names to better align with new component names & BEM style
* show cart item image correct size:
- use single column for product image and info, with flex container
- specify image width (rem instead of px)
* fix safari issue - cart product images displaying vertically stretched
* shift product name left margin from image, to account for no-image case
* experiment: bump bundlewatch size limit for cart temporarily:
- our fake data inline image is heavy
- when we switch to real API we will no longer need it
* fix issue introduced when moving margin from image to details div:
- product details needs margin on left (not right)
* fix react props issues:
- explicitly destructure image props for srcSet (vs srcset)
- use API key field for line item key instead of id, fix duplicate test id
- CartLineItemsTable takes an array of lineItems (incorrect PropTypes)
* remove redundant divs + use conventional `null` (when no full price)
* override editor styles to ensure cart product image is correct size
* move cart items editor style override to editor.css
* add an explicit readable heading for cart heading to match visual layout
2020-01-09 22:50:14 +00:00
|
|
|
},
|
2019-12-11 16:30:54 +00:00
|
|
|
{
|
|
|
|
"path": "./build/*.css",
|
|
|
|
"maxSize": "50kB"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"path": "./build/vendors*.js",
|
|
|
|
"maxSize": "350 kb"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-09-05 15:09:31 +00:00
|
|
|
"lint-staged": {
|
|
|
|
"*.scss": [
|
|
|
|
"npm run lint:css"
|
|
|
|
],
|
|
|
|
"*.js": [
|
|
|
|
"prettier --write",
|
|
|
|
"npm run lint:js"
|
|
|
|
],
|
|
|
|
"*.php": [
|
|
|
|
"php -d display_errors=1 -l",
|
|
|
|
"composer run-script phpcs"
|
|
|
|
]
|
|
|
|
},
|
2020-01-13 15:06:32 +00:00
|
|
|
"changelog": {
|
|
|
|
"labelPrefix": "type:",
|
|
|
|
"skipLabel": "skip-changelog",
|
|
|
|
"defaultPrefix": "dev",
|
2020-01-28 13:47:26 +00:00
|
|
|
"repo": "woocommerce/woocommerce-gutenberg-products-block"
|
2020-01-13 15:06:32 +00:00
|
|
|
},
|
2019-09-05 15:09:31 +00:00
|
|
|
"files": [
|
|
|
|
"assets/**/*.{js,scss,php}",
|
|
|
|
"build/**/*.{js,json,css}",
|
|
|
|
"includes/**/*.php",
|
|
|
|
"languages/**/*.json",
|
|
|
|
"license.txt",
|
|
|
|
"woocommerce-gutenberg-products-block.php"
|
|
|
|
]
|
2018-09-05 18:30:46 +00:00
|
|
|
}
|