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": {
|
|
|
|
"deploy": "composer install --no-dev && npm run build --loglevel error && sh ./bin/github-deploy.sh",
|
|
|
|
"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",
|
|
|
|
"start": "cross-env BABEL_ENV=default webpack --watch --info-verbosity none",
|
|
|
|
"lint": "npm run lint:php && npm run lint:css && npm run lint:js",
|
|
|
|
"lint:php": "composer run-script phpcs .",
|
|
|
|
"lint:css": "stylelint 'assets/**/*.scss'",
|
|
|
|
"lint:css-fix": "stylelint 'assets/**/*.scss' --fix",
|
|
|
|
"lint:js": "eslint assets/js --ext=js,jsx",
|
|
|
|
"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",
|
|
|
|
"test:watch": "npm run test -- --watch",
|
2019-12-11 16:30:54 +00:00
|
|
|
"size-check": "bundlewatch",
|
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-01-15 09:19:51 +00:00
|
|
|
"@babel/core": "7.8.3",
|
|
|
|
"@babel/plugin-proposal-class-properties": "7.8.3",
|
2020-01-15 15:19:06 +00:00
|
|
|
"@octokit/graphql": "4.3.1",
|
2020-01-02 08:53:46 +00:00
|
|
|
"@wordpress/babel-preset-default": "4.8.0",
|
2020-01-15 15:19:06 +00:00
|
|
|
"@wordpress/base-styles": "1.1.0",
|
2020-01-02 08:53:46 +00:00
|
|
|
"@wordpress/blocks": "6.9.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-01-02 08:53:46 +00:00
|
|
|
"@wordpress/data-controls": "1.5.0",
|
2019-12-10 17:17:46 +00:00
|
|
|
"@wordpress/dependency-extraction-webpack-plugin": "2.1.0",
|
2020-01-02 08:53:46 +00:00
|
|
|
"@wordpress/editor": "9.9.0",
|
|
|
|
"@wordpress/element": "2.10.0",
|
2020-01-24 12:00:11 +00:00
|
|
|
"@wordpress/eslint-plugin": "^3.3.0",
|
|
|
|
"@wordpress/html-entities": "2.5.0",
|
2019-12-10 17:17:46 +00:00
|
|
|
"@wordpress/i18n": "3.7.0",
|
|
|
|
"@wordpress/is-shallow-equal": "1.6.1",
|
2020-01-02 08:53:46 +00:00
|
|
|
"@wordpress/jest-preset-default": "5.3.1",
|
|
|
|
"@wordpress/scripts": "6.1.1",
|
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",
|
|
|
|
"babel-preset-env": "1.7.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",
|
2019-10-09 08:32:05 +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-02 08:46:04 +00:00
|
|
|
"eslint-config-prettier": "6.9.0",
|
2020-01-22 10:19:13 +00:00
|
|
|
"eslint-plugin-jest": "23.6.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",
|
2019-12-10 17:17:46 +00:00
|
|
|
"lint-staged": "9.5.0",
|
2020-01-28 13:47:26 +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",
|
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",
|
2019-09-05 15:09:31 +00:00
|
|
|
"rimraf": "3.0.0",
|
|
|
|
"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-01-15 15:19:06 +00:00
|
|
|
"zenhub-api": "0.2.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2020-01-08 10:48:05 +00:00
|
|
|
"node": "12.14.1",
|
2020-01-02 08:49:31 +00:00
|
|
|
"npm": "6.13.4"
|
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",
|
2019-10-16 08:41:15 +00:00
|
|
|
"compare-versions": "3.5.1",
|
2020-01-22 10:19:40 +00:00
|
|
|
"downshift": "4.0.7",
|
2019-09-05 15:09:31 +00:00
|
|
|
"gridicons": "3.3.1",
|
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",
|
|
|
|
"wordpress-components": "npm:@wordpress/components@8.5.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-01-10 19:21:14 +00:00
|
|
|
"maxSize": "120 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
|
|
|
}
|