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",
|
2023-12-05 09:58:14 +00:00
|
|
|
"version": "11.8.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-06-05 12:18:16 +00:00
|
|
|
"./assets/js/atomic/blocks/**",
|
2020-03-27 20:56:48 +00:00
|
|
|
"./assets/js/filters/**",
|
2021-07-22 11:03:00 +00:00
|
|
|
"./assets/js/middleware/**",
|
2022-02-01 11:14:16 +00:00
|
|
|
"./assets/js/blocks/checkout/inner-blocks/**/index.tsx",
|
|
|
|
"./assets/js/blocks/checkout/inner-blocks/register-components.ts",
|
2022-04-01 13:45:18 +00:00
|
|
|
"./assets/js/blocks/cart/inner-blocks/**/index.tsx",
|
|
|
|
"./assets/js/blocks/cart/inner-blocks/register-components.ts",
|
2023-09-20 20:31:52 +00:00
|
|
|
"./assets/js/base/components/**/*.{tsx,ts}",
|
2022-04-07 13:47:58 +00:00
|
|
|
"./assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/**/index.tsx",
|
2022-08-15 19:25:53 +00:00
|
|
|
"./assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/register-components.ts",
|
2022-10-07 15:00:19 +00:00
|
|
|
"./assets/js/blocks/cart-checkout-shared/sidebar-notices/index.tsx",
|
2022-12-22 14:35:24 +00:00
|
|
|
"./assets/js/blocks/cart-checkout-shared/view-switcher/index.tsx",
|
2022-10-14 03:25:02 +00:00
|
|
|
"./assets/js/blocks/filter-wrapper/register-components.ts",
|
|
|
|
"./assets/js/blocks/product-query/variations/**.tsx",
|
|
|
|
"./assets/js/blocks/product-query/index.tsx",
|
2023-08-04 11:07:31 +00:00
|
|
|
"./assets/js/blocks/product-query/inspector-controls.tsx",
|
|
|
|
"./assets/js/blocks/product-gallery/**.tsx",
|
|
|
|
"./assets/js/blocks/product-gallery/inner-blocks/**/index.tsx",
|
2023-09-20 20:31:52 +00:00
|
|
|
"./assets/js/templates/revert-button/index.tsx",
|
|
|
|
"./assets/js/settings/blocks/index.ts",
|
2023-11-16 15:03:58 +00:00
|
|
|
"./assets/js/atomic/utils/blocks-registration-manager/index.ts",
|
2023-09-20 20:31:52 +00:00
|
|
|
"./packages/**/*.{tsx,ts,js}"
|
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": {
|
2023-12-10 20:44:44 +00:00
|
|
|
"analyze-bundles": "cross-env WP_BUNDLE_ANALYZER=1 pnpm run build",
|
2023-12-10 06:35:11 +00:00
|
|
|
"changelog": "composer install && composer exec -- changelogger",
|
2024-01-15 22:06:55 +00:00
|
|
|
"build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" '/^build:project:.*$/'",
|
|
|
|
"build:project": "pnpm --if-present '/^build:project:.*$/'",
|
2023-12-10 06:35:11 +00:00
|
|
|
"build:project:bundle": "wireit",
|
2022-02-02 14:56:16 +00:00
|
|
|
"build:check-assets": "rimraf build/* && cross-env ASSET_CHECK=true BABEL_ENV=default NODE_ENV=production webpack",
|
2023-12-10 20:44:44 +00:00
|
|
|
"build:deploy": "rimraf vendor/* && cross-env WOOCOMMERCE_BLOCKS_PHASE=2 composer install --no-dev && cross-env WOOCOMMERCE_BLOCKS_PHASE=2 pnpm run build --loglevel error",
|
2022-02-02 14:27:46 +00:00
|
|
|
"prebuild:docs": "rimraf docs/extensibility/actions.md & rimraf docs/extensibility/filters.md",
|
2021-10-13 09:45:59 +00:00
|
|
|
"build:docs": "./vendor/bin/wp-hooks-generator --input=src --output=bin/hook-docs/data && node ./bin/hook-docs",
|
2022-04-05 14:22:56 +00:00
|
|
|
"postbuild:docs": "./bin/add-doc-footer.sh",
|
2020-04-06 09:00:47 +00:00
|
|
|
"changelog:zenhub": "node ./bin/changelog --changelogSrcType='ZENHUB_RELEASE'",
|
2023-03-20 17:07:15 +00:00
|
|
|
"change-versions": "source ./bin/change-versions.sh",
|
2023-12-10 20:44:44 +00:00
|
|
|
"deploy": "pnpm run build:deploy && sh ./bin/github-deploy.sh",
|
2020-07-07 09:05:06 +00:00
|
|
|
"dev": "rimraf build/* && cross-env BABEL_ENV=default webpack",
|
2020-11-27 20:41:36 +00:00
|
|
|
"labels:dry": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels --dry-run woocommerce/woocommerce-gutenberg-products-block",
|
|
|
|
"labels:sync": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels woocommerce/woocommerce-gutenberg-products-block",
|
2023-12-10 06:35:11 +00:00
|
|
|
"lint": "pnpm --if-present '/^lint:lang:.*$/'",
|
|
|
|
"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
|
|
|
|
"lint:fix:lang:css": "pnpm lint:css-fix",
|
|
|
|
"lint:fix:lang:js": "pnpm lint:js-fix",
|
|
|
|
"lint:lang:css": "pnpm lint:css",
|
|
|
|
"lint:lang:js": "pnpm lint:js",
|
2023-12-10 20:44:44 +00:00
|
|
|
"lint:ci": "pnpm run lint:js && pnpm run lint:css",
|
2021-12-03 09:07:51 +00:00
|
|
|
"lint:css": "stylelint '**/*.scss'",
|
|
|
|
"lint:css-fix": "stylelint '**/*.scss' --fix",
|
2021-02-24 01:36:24 +00:00
|
|
|
"lint:js": "wp-scripts lint-js --ext=js,ts,tsx",
|
2023-12-10 20:44:44 +00:00
|
|
|
"lint:js:report": "pnpm run lint:js -- --output-file eslint_report.json --ext=js,ts,tsx --format json",
|
2021-02-24 01:36:24 +00:00
|
|
|
"lint:js-fix": "eslint assets/js --ext=js,jsx,ts,tsx --fix",
|
2022-06-09 12:43:17 +00:00
|
|
|
"lint:md:docs": "wp-scripts lint-md-docs",
|
2023-12-10 06:35:11 +00:00
|
|
|
"fix-package-lock": "./bin/fix-package-lock.sh",
|
2023-04-21 20:51:56 +00:00
|
|
|
"pre-commit": "lint-staged",
|
2019-09-05 15:09:31 +00:00
|
|
|
"reformat-files": "prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json,ts,tsx}\"",
|
2020-04-06 09:00:47 +00:00
|
|
|
"release": "sh ./bin/wordpress-deploy.sh",
|
2023-04-20 14:46:01 +00:00
|
|
|
"rimraf": "./node_modules/rimraf/bin.js",
|
2023-07-28 15:21:08 +00:00
|
|
|
"start": "rimraf build/* && cross-env BABEL_ENV=default CHECK_CIRCULAR_DEPS=true webpack --watch",
|
2023-11-02 13:01:42 +00:00
|
|
|
"storybook": "storybook dev -c ./storybook -p 6006 --ci",
|
|
|
|
"storybook:build": "BABEL_ENV=development storybook build -c ./storybook -o ./storybook/dist",
|
2023-12-10 20:44:44 +00:00
|
|
|
"storybook:deploy": "rimraf ./storybook/dist/* && pnpm run storybook:build && gh-pages -d ./storybook/dist",
|
2024-01-15 22:06:55 +00:00
|
|
|
"test:js": "wp-scripts test-unit-js --config tests/js/jest.config.json",
|
2022-03-09 15:37:36 +00:00
|
|
|
"test:debug": "ndb .",
|
2023-12-15 17:34:29 +00:00
|
|
|
"test:e2e": "sh ./bin/check-env.sh && pnpm playwright test --config=tests/e2e/playwright.config.ts",
|
2023-08-08 16:58:12 +00:00
|
|
|
"test:e2e:report": "sh ./bin/check-env.sh && npx playwright test --config=tests/e2e/playwright.config.ts --reporter=html",
|
2024-01-18 10:39:24 +00:00
|
|
|
"test:e2e:side-effects": "pnpm run test:e2e --config=tests/e2e/playwright.side-effects.config.ts",
|
|
|
|
"test:e2e:side-effects:report": "pnpm run test:e2e:report --config=tests/e2e/playwright.side-effects.config.ts --reporter=html",
|
|
|
|
"test:e2e:classic-theme": "pnpm run test:e2e --config=tests/e2e/playwright.classic-theme.config.ts",
|
|
|
|
"test:e2e:classic-theme:report": "pnpm run test:e2e:report --config=tests/e2e/playwright.classic-theme.config.ts",
|
|
|
|
"test:e2e:block-theme-with-templates": "pnpm run test:e2e --config=tests/e2e/playwright.block-theme-with-templates.config.ts",
|
|
|
|
"test:e2e:block-theme-with-templates:report": "pnpm run test:e2e:report --config=tests/e2e/playwright.block-theme-with-templates.config.ts",
|
2023-12-10 20:44:44 +00:00
|
|
|
"test:e2e:jest": "pnpm run wp-env:config && cross-env JEST_PUPPETEER_CONFIG=tests/e2e-jest/config/jest-puppeteer.config.js NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.config.js",
|
|
|
|
"test:e2e:jest:dev": "pnpm run wp-env:config && cross-env JEST_PUPPETEER_CONFIG=tests/e2e-jest/config/jest-puppeteer.config-dev.js NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.config.js",
|
|
|
|
"test:e2e:jest:dev-watch": "pnpm run wp-env:config && cross-env JEST_PUPPETEER_CONFIG=tests/e2e-jest/config/jest-puppeteer.config-dev.js NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.config.js --watch",
|
|
|
|
"test:e2e:jest:update": "pnpm run wp-env:config && cross-env JEST_PUPPETEER_CONFIG=tests/e2e-jest/config/jest-puppeteer.config.js NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.config.js --updateSnapshot",
|
2023-12-15 17:34:29 +00:00
|
|
|
"env:start": "pnpm --filter='@woocommerce/block-library' wp-env start && ./tests/e2e/bin/test-env-setup.sh",
|
2023-12-10 20:44:44 +00:00
|
|
|
"env:restart": "pnpm run wp-env clean all && pnpm run wp-env start && ./tests/e2e/bin/test-env-setup.sh",
|
|
|
|
"env:stop": "pnpm run wp-env stop",
|
2020-04-06 09:00:47 +00:00
|
|
|
"test:help": "wp-scripts test-unit-js --help",
|
2023-12-10 20:44:44 +00:00
|
|
|
"test:performance": "pnpm run wp-env:config && cross-env NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.performance.config.js -- performance",
|
2020-04-06 09:00:47 +00:00
|
|
|
"test:update": "wp-scripts test-unit-js --updateSnapshot --config tests/js/jest.config.json",
|
2023-12-10 20:44:44 +00:00
|
|
|
"test:watch": "pnpm run test -- --watch",
|
2021-02-24 01:36:24 +00:00
|
|
|
"ts:check": "tsc --build",
|
2022-11-02 10:41:10 +00:00
|
|
|
"ts:log-errors": "npm --silent run ts:check | npx -y @bartekbp/typescript-checkstyle > checkstyle.xml",
|
2020-06-17 20:28:11 +00:00
|
|
|
"wp-env": "wp-env",
|
2023-12-10 06:35:11 +00:00
|
|
|
"wp-env:config": "./bin/wp-env-pre-config.sh",
|
2024-01-15 22:06:55 +00:00
|
|
|
"watch:build": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel '/^watch:build:project:.*$/'",
|
|
|
|
"watch:build:project": "pnpm --if-present run '/^watch:build:project:.*$/'",
|
|
|
|
"watch:build:project:bundle": "wireit"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-04-20 12:44:28 +00:00
|
|
|
"@actions/core": "1.10.0",
|
2023-04-20 14:46:01 +00:00
|
|
|
"@actions/github": "5.1.1",
|
2021-03-17 21:51:28 +00:00
|
|
|
"@automattic/color-studio": "2.5.0",
|
2023-10-02 16:48:24 +00:00
|
|
|
"@babel/cli": "7.23.0",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@babel/core": "7.23.2",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
2023-07-26 09:58:17 +00:00
|
|
|
"@babel/plugin-proposal-optional-chaining": "7.21.0",
|
|
|
|
"@babel/plugin-syntax-jsx": "7.22.5",
|
2020-10-21 13:30:00 +00:00
|
|
|
"@babel/polyfill": "7.12.1",
|
2024-01-18 10:00:57 +00:00
|
|
|
"@babel/preset-react": "7.23.3",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@babel/preset-typescript": "7.23.2",
|
2022-11-02 10:41:10 +00:00
|
|
|
"@bartekbp/typescript-checkstyle": "5.0.0",
|
2023-04-20 12:44:28 +00:00
|
|
|
"@octokit/action": "5.0.2",
|
2023-04-20 17:55:37 +00:00
|
|
|
"@octokit/graphql": "5.0.5",
|
2023-09-25 21:41:14 +00:00
|
|
|
"@playwright/test": "1.38.1",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@storybook/addon-a11y": "7.5.2",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@storybook/addon-actions": "^7.6.4",
|
|
|
|
"@storybook/addon-docs": "^7.6.4",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@storybook/addon-essentials": "7.5.2",
|
|
|
|
"@storybook/addon-links": "7.5.2",
|
|
|
|
"@storybook/addon-storysource": "7.5.2",
|
|
|
|
"@storybook/addon-styling-webpack": "^0.0.5",
|
|
|
|
"@storybook/addons": "7.5.2",
|
|
|
|
"@storybook/client-api": "7.5.2",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@storybook/preview-api": "^7.6.4",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@storybook/react": "7.5.2",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@storybook/react-webpack5": "^7.6.4",
|
2023-10-24 11:05:35 +00:00
|
|
|
"@testing-library/dom": "9.3.3",
|
2023-03-13 08:30:10 +00:00
|
|
|
"@testing-library/jest-dom": "5.16.5",
|
2022-04-14 10:19:41 +00:00
|
|
|
"@testing-library/react": "12.1.5",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@testing-library/react-hooks": "7.0.2",
|
|
|
|
"@testing-library/user-event": "13.5.0",
|
2021-06-30 05:07:59 +00:00
|
|
|
"@types/classnames": "2.3.0",
|
2021-10-29 18:42:18 +00:00
|
|
|
"@types/dinero.js": "1.9.0",
|
2022-09-26 16:16:44 +00:00
|
|
|
"@types/dompurify": "2.3.4",
|
2022-03-23 08:00:13 +00:00
|
|
|
"@types/gtag.js": "0.0.10",
|
2022-07-28 13:51:44 +00:00
|
|
|
"@types/jest": "27.5.2",
|
2022-06-13 09:15:29 +00:00
|
|
|
"@types/jest-environment-puppeteer": "5.0.2",
|
2022-03-02 04:39:06 +00:00
|
|
|
"@types/jquery": "3.5.14",
|
2022-05-02 10:43:45 +00:00
|
|
|
"@types/lodash": "4.14.182",
|
2023-12-10 02:14:26 +00:00
|
|
|
"@types/prop-types": "^15.7.11",
|
2022-05-02 11:49:23 +00:00
|
|
|
"@types/puppeteer": "5.4.6",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@types/react": "^17.0.71",
|
2023-01-10 15:35:29 +00:00
|
|
|
"@types/react-dom": "18.0.10",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@types/react-transition-group": "^4.4.10",
|
2024-01-18 10:00:57 +00:00
|
|
|
"@types/uuid": "^9.0.7",
|
2022-05-04 04:02:30 +00:00
|
|
|
"@types/wordpress__block-editor": "6.0.6",
|
2023-03-03 11:42:50 +00:00
|
|
|
"@types/wordpress__blocks": "11.0.9",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@types/wordpress__components": "^23.0.10",
|
2022-08-12 14:23:08 +00:00
|
|
|
"@types/wordpress__core-data": "^2.4.5",
|
2023-02-14 13:21:48 +00:00
|
|
|
"@types/wordpress__data": "^6.0.2",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@types/wordpress__data-controls": "2.2.0",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@types/wordpress__editor": "^13.6.7",
|
|
|
|
"@types/wordpress__notices": "^3.27.6",
|
|
|
|
"@types/wordpress__wordcount": "^2.4.5",
|
2023-03-27 17:13:38 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "5.56.0",
|
2023-12-06 13:28:48 +00:00
|
|
|
"@typescript-eslint/parser": "5.56.0",
|
2021-06-30 02:19:14 +00:00
|
|
|
"@woocommerce/api": "0.2.0",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@woocommerce/data": "workspace:*",
|
|
|
|
"@woocommerce/e2e-utils": "workspace:*",
|
|
|
|
"@woocommerce/eslint-plugin": "workspace:*",
|
2020-06-05 16:49:07 +00:00
|
|
|
"@woocommerce/woocommerce-rest-api": "1.0.1",
|
2023-01-11 10:14:51 +00:00
|
|
|
"@wordpress/api-fetch": "6.21.0",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@wordpress/babel-preset-default": "7.28.0",
|
2023-11-01 20:42:52 +00:00
|
|
|
"@wordpress/base-styles": "4.35.0",
|
2022-03-10 10:00:23 +00:00
|
|
|
"@wordpress/block-editor": "8.2.0",
|
2022-01-21 12:09:07 +00:00
|
|
|
"@wordpress/blocks": "11.1.5",
|
2023-07-26 09:58:17 +00:00
|
|
|
"@wordpress/browserslist-config": "5.21.0",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@wordpress/components": "19.17.0",
|
2023-12-10 20:24:20 +00:00
|
|
|
"@wordpress/core-data": "5.5.0",
|
|
|
|
"@wordpress/data": "6.15.0",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@wordpress/data-controls": "2.2.7",
|
2023-12-10 20:24:20 +00:00
|
|
|
"@wordpress/date": "4.44.0",
|
2023-11-03 11:32:19 +00:00
|
|
|
"@wordpress/dependency-extraction-webpack-plugin": "4.28.0",
|
2023-03-06 20:50:15 +00:00
|
|
|
"@wordpress/dom": "3.27.0",
|
2023-12-10 20:24:20 +00:00
|
|
|
"@wordpress/dom-ready": "3.27.0",
|
2023-09-08 20:34:19 +00:00
|
|
|
"@wordpress/e2e-test-utils": "10.12.0",
|
2023-11-22 08:19:00 +00:00
|
|
|
"@wordpress/e2e-test-utils-playwright": "wp-6.4",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@wordpress/e2e-tests": "^4.9.2",
|
2023-11-03 12:28:53 +00:00
|
|
|
"@wordpress/element": "5.22.0",
|
2023-09-01 15:54:35 +00:00
|
|
|
"@wordpress/env": "8.2.0",
|
2023-01-03 21:08:45 +00:00
|
|
|
"@wordpress/html-entities": "3.24.0",
|
2023-11-03 14:23:03 +00:00
|
|
|
"@wordpress/i18n": "4.45.0",
|
2023-01-11 11:38:26 +00:00
|
|
|
"@wordpress/is-shallow-equal": "4.24.0",
|
2023-12-10 22:11:32 +00:00
|
|
|
"@wordpress/postcss-plugins-preset": "1.6.0",
|
|
|
|
"@wordpress/postcss-themes": "1.0.5",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@wordpress/prettier-config": "1.4.0",
|
2023-07-26 09:58:17 +00:00
|
|
|
"@wordpress/scripts": "24.6.0",
|
2023-12-10 22:11:32 +00:00
|
|
|
"@wordpress/stylelint-config": "^20.0.3",
|
2023-07-26 09:58:17 +00:00
|
|
|
"autoprefixer": "10.4.14",
|
2022-07-19 07:38:57 +00:00
|
|
|
"axios": "0.27.2",
|
2023-12-09 15:12:20 +00:00
|
|
|
"babel-jest": "^29.7.0",
|
2022-03-28 13:00:20 +00:00
|
|
|
"babel-plugin-explicit-exports-references": "^1.0.2",
|
2021-12-08 03:25:48 +00:00
|
|
|
"babel-plugin-react-docgen": "4.2.1",
|
2019-09-05 15:09:31 +00:00
|
|
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
2021-08-04 02:38:44 +00:00
|
|
|
"chalk": "4.1.2",
|
2021-04-18 21:29:11 +00:00
|
|
|
"circular-dependency-plugin": "5.2.2",
|
2023-07-26 15:42:49 +00:00
|
|
|
"commander": "11.0.0",
|
2023-09-20 20:31:52 +00:00
|
|
|
"copy-webpack-plugin": "11.0.0",
|
2022-09-05 10:17:12 +00:00
|
|
|
"core-js": "3.25.0",
|
2020-02-24 12:52:24 +00:00
|
|
|
"create-file-webpack": "1.0.2",
|
2022-06-09 08:26:23 +00:00
|
|
|
"cross-env": "7.0.3",
|
2023-11-02 13:01:42 +00:00
|
|
|
"css-loader": "^6.8.1",
|
2022-07-19 07:38:57 +00:00
|
|
|
"cssnano": "5.1.12",
|
2019-10-28 13:53:09 +00:00
|
|
|
"deep-freeze": "0.0.1",
|
2023-11-02 13:01:42 +00:00
|
|
|
"dotenv": "^16.3.1",
|
2022-07-19 07:38:57 +00:00
|
|
|
"eslint-import-resolver-typescript": "3.2.4",
|
2021-11-09 14:27:57 +00:00
|
|
|
"eslint-import-resolver-webpack": "0.13.2",
|
2023-09-25 20:39:28 +00:00
|
|
|
"eslint-plugin-import": "2.28.1",
|
2023-08-08 13:25:45 +00:00
|
|
|
"eslint-plugin-playwright": "0.15.3",
|
2023-10-30 14:23:40 +00:00
|
|
|
"eslint-plugin-rulesdir": "^0.2.2",
|
2023-11-02 13:01:42 +00:00
|
|
|
"eslint-plugin-storybook": "^0.6.15",
|
2020-01-24 12:00:11 +00:00
|
|
|
"eslint-plugin-woocommerce": "file:bin/eslint-plugin-woocommerce",
|
2022-01-21 12:09:07 +00:00
|
|
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
|
2022-07-19 07:38:57 +00:00
|
|
|
"expect-puppeteer": "6.1.1",
|
2023-07-24 16:15:37 +00:00
|
|
|
"fast-xml-parser": "4.2.4",
|
2022-07-19 07:38:57 +00:00
|
|
|
"follow-redirects": "1.15.1",
|
2023-11-01 19:07:51 +00:00
|
|
|
"fs-extra": "11.1.1",
|
2022-07-19 07:38:57 +00:00
|
|
|
"gh-pages": "4.0.0",
|
|
|
|
"github-label-sync": "2.2.0",
|
2023-03-07 19:19:18 +00:00
|
|
|
"glob": "7.2.3",
|
2022-07-19 07:38:57 +00:00
|
|
|
"glob-promise": "4.2.2",
|
2023-04-18 12:03:02 +00:00
|
|
|
"husky": "8.0.3",
|
2019-09-05 15:09:31 +00:00
|
|
|
"ignore-loader": "0.1.2",
|
2023-12-09 15:12:20 +00:00
|
|
|
"jest": "^29.7.0",
|
2022-06-13 09:15:29 +00:00
|
|
|
"jest-circus": "27.5.1",
|
2022-07-19 07:38:57 +00:00
|
|
|
"jest-environment-puppeteer": "6.1.1",
|
2020-05-21 15:10:11 +00:00
|
|
|
"jest-fetch-mock": "3.0.3",
|
2022-07-19 07:38:57 +00:00
|
|
|
"jest-html-reporters": "3.0.10",
|
2021-10-20 03:04:30 +00:00
|
|
|
"json2md": "1.12.0",
|
2023-03-26 20:28:02 +00:00
|
|
|
"lint-staged": "13.2.0",
|
2021-05-12 12:04:44 +00:00
|
|
|
"lodash": "4.17.21",
|
2022-07-19 07:38:57 +00:00
|
|
|
"markdown-it": "13.0.1",
|
2020-01-30 10:53:22 +00:00
|
|
|
"merge-config": "2.0.0",
|
2023-09-20 20:31:52 +00:00
|
|
|
"mini-css-extract-plugin": "2.7.6",
|
2022-06-07 12:09:50 +00:00
|
|
|
"patch-package": "6.4.7",
|
2023-12-10 22:11:32 +00:00
|
|
|
"postcss": "8.4.32",
|
|
|
|
"postcss-color-function": "4.1.0",
|
|
|
|
"postcss-loader": "4.3.0",
|
2022-06-15 09:56:52 +00:00
|
|
|
"prettier": "npm:wp-prettier@2.6.2",
|
2020-07-07 09:05:06 +00:00
|
|
|
"progress-bar-webpack-plugin": "2.1.0",
|
2020-11-11 18:02:29 +00:00
|
|
|
"promptly": "3.2.0",
|
2023-09-20 20:31:52 +00:00
|
|
|
"puppeteer": "17.1.3",
|
2022-07-19 07:38:57 +00:00
|
|
|
"react-docgen": "5.4.3",
|
2023-09-20 20:31:52 +00:00
|
|
|
"react-docgen-typescript-plugin": "^1.0.5",
|
2021-06-09 02:11:20 +00:00
|
|
|
"react-test-renderer": "17.0.2",
|
2023-12-10 20:24:20 +00:00
|
|
|
"redux": "4.2.1",
|
2020-07-23 13:42:26 +00:00
|
|
|
"request-promise": "4.2.6",
|
2023-10-24 14:05:43 +00:00
|
|
|
"rimraf": "5.0.5",
|
2023-12-09 15:12:20 +00:00
|
|
|
"rtlcss": "^4.1.1",
|
2021-01-07 12:40:00 +00:00
|
|
|
"sass-loader": "10.1.0",
|
2023-12-09 15:12:20 +00:00
|
|
|
"storybook": "^7.6.4",
|
2023-11-02 13:01:42 +00:00
|
|
|
"storybook-addon-react-docgen": "1.2.44",
|
2023-12-10 20:24:20 +00:00
|
|
|
"stylelint": "^14.16.1",
|
2023-09-20 20:31:52 +00:00
|
|
|
"terser-webpack-plugin": "5.3.6",
|
2023-12-05 05:17:04 +00:00
|
|
|
"typescript": "5.3.2",
|
2021-12-07 15:47:50 +00:00
|
|
|
"utility-types": "3.10.0",
|
2023-09-20 20:31:52 +00:00
|
|
|
"webpack": "5.88.2",
|
|
|
|
"webpack-bundle-analyzer": "4.7.0",
|
|
|
|
"webpack-cli": "5.1.4",
|
2024-01-15 22:06:55 +00:00
|
|
|
"wireit": "^0.14.3",
|
2023-10-23 17:36:26 +00:00
|
|
|
"wp-types": "3.63.0",
|
2020-01-15 15:19:06 +00:00
|
|
|
"zenhub-api": "0.2.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2023-12-09 13:22:40 +00:00
|
|
|
"node": "^16.14.1",
|
2023-12-18 07:31:49 +00:00
|
|
|
"pnpm": "^8.12.1"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-12-09 15:12:20 +00:00
|
|
|
"@dnd-kit/core": "^6.1.0",
|
|
|
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
|
|
"@dnd-kit/sortable": "^7.0.2",
|
|
|
|
"@dnd-kit/utilities": "^3.2.2",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@emotion/styled": "^11.11.0",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@preact/signals": "^1.2.2",
|
|
|
|
"@woocommerce/tracks": "workspace:^",
|
2022-09-06 09:23:05 +00:00
|
|
|
"@wordpress/autop": "3.16.0",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@wordpress/compose": "5.5.0",
|
2023-09-04 19:53:04 +00:00
|
|
|
"@wordpress/deprecated": "3.41.0",
|
2023-11-16 17:40:53 +00:00
|
|
|
"@wordpress/icons": "9.36.0",
|
2022-12-13 15:25:23 +00:00
|
|
|
"@wordpress/notices": "3.12.0",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@wordpress/plugins": "4.10.0",
|
2022-02-02 02:17:49 +00:00
|
|
|
"@wordpress/primitives": "3.0.4",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@wordpress/server-side-render": "3.10.0",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@wordpress/style-engine": "^1.30.0",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@wordpress/url": "3.13.0",
|
2023-12-08 14:28:16 +00:00
|
|
|
"@wordpress/wordcount": "3.47.0",
|
2023-04-28 10:29:45 +00:00
|
|
|
"change-case": "^4.1.2",
|
2021-06-30 05:07:59 +00:00
|
|
|
"classnames": "2.3.1",
|
2022-07-19 07:38:57 +00:00
|
|
|
"compare-versions": "4.1.3",
|
2022-01-19 03:53:40 +00:00
|
|
|
"config": "3.3.7",
|
2022-07-19 07:38:57 +00:00
|
|
|
"dataloader": "2.1.0",
|
2023-08-10 14:02:33 +00:00
|
|
|
"deepsignal": "1.3.6",
|
2021-10-29 18:42:18 +00:00
|
|
|
"dinero.js": "1.9.1",
|
2023-12-09 15:12:20 +00:00
|
|
|
"dompurify": "^2.4.7",
|
2021-09-22 04:00:47 +00:00
|
|
|
"downshift": "6.1.7",
|
2023-04-28 10:29:45 +00:00
|
|
|
"fast-deep-equal": "^3.1.3",
|
|
|
|
"fast-sort": "^3.4.0",
|
2022-10-13 11:27:54 +00:00
|
|
|
"html-react-parser": "3.0.4",
|
2023-09-15 14:05:01 +00:00
|
|
|
"postcode-validator": "3.8.15",
|
2023-12-09 15:12:20 +00:00
|
|
|
"preact": "^10.19.3",
|
2023-12-10 02:14:26 +00:00
|
|
|
"prop-types": "^15.8.1",
|
2022-05-12 15:52:03 +00:00
|
|
|
"react-number-format": "4.9.3",
|
2023-04-05 12:43:03 +00:00
|
|
|
"react-transition-group": "^4.4.5",
|
2021-11-24 02:14:41 +00:00
|
|
|
"reakit": "1.3.11",
|
2023-06-16 10:46:03 +00:00
|
|
|
"request": "2.88.2",
|
2019-11-15 14:41:23 +00:00
|
|
|
"trim-html": "0.1.9",
|
2023-07-27 15:10:43 +00:00
|
|
|
"use-debounce": "9.0.4",
|
2023-10-09 11:49:09 +00:00
|
|
|
"usehooks-ts": "^2.9.1",
|
2024-01-18 10:00:57 +00:00
|
|
|
"uuid": "^9.0.1",
|
2021-12-07 15:47:50 +00:00
|
|
|
"wordpress-components": "npm:@wordpress/components@14.2.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
2022-03-10 10:00:23 +00:00
|
|
|
"peerDependencies": {
|
|
|
|
"react": "^17.0.0",
|
|
|
|
"react-dom": "^17.0.0"
|
|
|
|
},
|
2022-03-23 07:41:43 +00:00
|
|
|
"optionalDependencies": {
|
|
|
|
"ndb": "1.1.5"
|
|
|
|
},
|
2019-09-05 15:09:31 +00:00
|
|
|
"lint-staged": {
|
|
|
|
"*.scss": [
|
2023-12-10 20:44:44 +00:00
|
|
|
"pnpm run lint:css"
|
2019-09-05 15:09:31 +00:00
|
|
|
],
|
2021-02-24 01:36:24 +00:00
|
|
|
"*.{js,ts,tsx}": [
|
2019-09-05 15:09:31 +00:00
|
|
|
"prettier --write",
|
2023-12-10 20:44:44 +00:00
|
|
|
"pnpm run lint:js"
|
2019-09-05 15:09:31 +00:00
|
|
|
],
|
|
|
|
"*.php": [
|
|
|
|
"php -d display_errors=1 -l",
|
|
|
|
"composer run-script phpcs"
|
2022-08-24 13:26:14 +00:00
|
|
|
],
|
|
|
|
"*.md": [
|
2023-12-10 20:44:44 +00:00
|
|
|
"pnpm run lint:md:docs"
|
2019-09-05 15:09:31 +00:00
|
|
|
]
|
|
|
|
},
|
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": [
|
2023-12-12 00:21:35 +00:00
|
|
|
"build",
|
|
|
|
"blocks.ini"
|
2023-12-10 06:35:11 +00:00
|
|
|
],
|
2024-01-13 04:32:14 +00:00
|
|
|
"config": {
|
|
|
|
"ci": {
|
|
|
|
"lint": {
|
|
|
|
"command": "lint",
|
2024-01-15 20:30:54 +00:00
|
|
|
"changes": [
|
|
|
|
"assets/**/*{js,ts,tsx,scss}",
|
|
|
|
"packages/**/*.{js,ts,tsx,scss}"
|
|
|
|
]
|
2024-01-13 04:32:14 +00:00
|
|
|
},
|
|
|
|
"tests": [
|
|
|
|
{
|
|
|
|
"name": "JavaScript",
|
|
|
|
"command": "test:js",
|
|
|
|
"changes": [
|
|
|
|
"jest.config.js",
|
|
|
|
"webpack.config.js",
|
|
|
|
"babel.config.js",
|
|
|
|
"tsconfig.json",
|
2024-01-15 20:30:54 +00:00
|
|
|
"assets/**/*.{js,ts,tsx,scss}",
|
|
|
|
"packages/**/*.{js,ts,tsx,scss}"
|
2024-01-13 04:32:14 +00:00
|
|
|
],
|
|
|
|
"cascade": "test:js"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-12-10 06:35:11 +00:00
|
|
|
"wireit": {
|
|
|
|
"build:project:bundle": {
|
|
|
|
"command": "webpack",
|
2023-12-12 20:43:48 +00:00
|
|
|
"clean": "if-file-deleted",
|
2023-12-10 06:35:11 +00:00
|
|
|
"env": {
|
2023-12-10 20:44:44 +00:00
|
|
|
"NODE_ENV": {
|
|
|
|
"external": true
|
|
|
|
},
|
|
|
|
"BABEL_ENV": {
|
|
|
|
"external": true
|
|
|
|
},
|
|
|
|
"WOOCOMMERCE_BLOCKS_PHASE": {
|
|
|
|
"external": true
|
|
|
|
}
|
2023-12-10 06:35:11 +00:00
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"webpack.config.js",
|
|
|
|
"bin/webpack-*.js",
|
|
|
|
"tsconfig.json",
|
|
|
|
"tsconfig.base.json",
|
|
|
|
"babel.config.js",
|
2023-12-10 20:24:20 +00:00
|
|
|
"assets",
|
|
|
|
"packages"
|
2023-12-10 06:35:11 +00:00
|
|
|
],
|
|
|
|
"output": [
|
2023-12-10 20:32:29 +00:00
|
|
|
"build",
|
|
|
|
"blocks.ini"
|
2023-12-10 06:35:11 +00:00
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"dependencyOutputs"
|
|
|
|
]
|
|
|
|
},
|
2024-01-15 22:06:55 +00:00
|
|
|
"watch:build:project:bundle": {
|
|
|
|
"command": "webpack --watch",
|
|
|
|
"service": true
|
2023-12-10 06:35:11 +00:00
|
|
|
},
|
|
|
|
"dependencyOutputs": {
|
|
|
|
"allowUsuallyExcludedPaths": true,
|
|
|
|
"files": [
|
|
|
|
"node_modules/@woocommerce/eslint-plugin/configs",
|
|
|
|
"node_modules/@woocommerce/eslint-plugin/rules",
|
|
|
|
"node_modules/@woocommerce/eslint-plugin/index.js",
|
2023-12-12 00:21:35 +00:00
|
|
|
"node_modules/@woocommerce/data/build",
|
|
|
|
"node_modules/@woocommerce/data/build-module",
|
|
|
|
"node_modules/@woocommerce/data/build-types",
|
|
|
|
"node_modules/@woocommerce/tracks/build",
|
|
|
|
"node_modules/@woocommerce/tracks/build-module",
|
|
|
|
"node_modules/@woocommerce/tracks/build-types",
|
|
|
|
"package.json"
|
2023-12-10 06:35:11 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2020-06-17 13:10:46 +00:00
|
|
|
}
|