woocommerce/plugins/woocommerce-admin/package.json

383 lines
14 KiB
JSON
Raw Normal View History

2018-04-17 21:03:14 +00:00
{
"name": "@woocommerce/admin-library",
"private": true,
2022-03-29 00:55:07 +00:00
"version": "3.3.0",
"license": "GPL-3.0-or-later",
"author": "Automattic",
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/plugins/woocommerce-admin/README.md",
"repository": {
"type": "git",
"url": "https://github.com:woocommerce/woocommerce.git"
},
"files": [
"build"
],
"scripts": {
"build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" '/^build:project:.*$/'",
"build:project": "pnpm --if-present '/^build:project:.*$/'",
"build:project:bundle": "wireit",
"build:project:feature-config": "php ../woocommerce/bin/generate-feature-config.php",
"changelog": "XDEBUG_MODE=off composer install --quiet && composer exec -- changelogger",
"example": "webpack --config docs/examples/extensions/examples.config.js",
2023-11-28 22:50:43 +00:00
"lint": "pnpm --if-present '/^lint:lang:.*$/'",
"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
"lint:fix:lang:css": "stylelint '**/*.scss' --fix --ip 'storybook/wordpress'",
2023-11-28 22:50:43 +00:00
"lint:fix:lang:js": "pnpm lint:js --fix --ext=js,ts,tsx",
"lint:lang:css": "stylelint '**/*.scss'",
"lint:lang:js": "eslint ./client --ext=js,ts,tsx",
"test:js": "jest --config client/jest.config.js",
"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",
"watch:build:project:feature-config": "WC_ADMIN_PHASE=development php ../woocommerce/bin/generate-feature-config.php",
"postinstall": "node ./bin/xstate5-react-script.js"
},
"lint-staged": {
"*.scss": [
"pnpm lint:css-fix"
],
"client/**/*.(t|j)s?(x)": [
"pnpm lint:js-pre-commit",
"pnpm test-staged"
]
},
"dependencies": {
"@automattic/components": "^2.1.1",
"@automattic/explat-client": "^0.0.5",
"@automattic/explat-client-react-helpers": "^0.0.6",
2023-12-09 15:12:20 +00:00
"@automattic/interpolate-components": "^1.2.1",
"@react-spring/web": "^9.7.3",
"@types/wordpress__blocks": "11.0.7",
"@woocommerce/api": "^0.2.0",
"@wordpress/a11y": "wp-6.0",
"@wordpress/api-fetch": "wp-6.0",
"@wordpress/base-styles": "wp-6.0",
"@wordpress/blob": "wp-6.0",
2023-12-09 15:12:20 +00:00
"@wordpress/blocks": "^11.21.0",
"@wordpress/components": "wp-6.0",
"@wordpress/compose": "wp-6.0",
"@wordpress/core-data": "wp-6.0",
"@wordpress/data-controls": "wp-6.0",
"@wordpress/date": "wp-6.0",
"@wordpress/dom": "wp-6.0",
"@wordpress/dom-ready": "wp-6.0",
"@wordpress/edit-site": "5.15.0",
"@wordpress/element": "wp-6.0",
"@wordpress/hooks": "wp-6.0",
"@wordpress/html-entities": "wp-6.0",
"@wordpress/i18n": "wp-6.0",
"@wordpress/icons": "wp-6.0",
2023-12-09 15:12:20 +00:00
"@wordpress/interface": "^5.24.0",
"@wordpress/keycodes": "wp-6.0",
"@wordpress/media-utils": "wp-6.0",
"@wordpress/notices": "wp-6.0",
"@wordpress/plugins": "wp-6.0",
"@wordpress/primitives": "wp-6.0",
"@wordpress/router": "0.7.0",
"@wordpress/url": "wp-6.0",
"@wordpress/viewport": "wp-6.0",
"@wordpress/warning": "wp-6.0",
"@xstate/react": "3.2.1",
"@xstate5/react": "npm:@xstate/react@4",
"clsx": "^2.1.1",
2023-12-09 15:12:20 +00:00
"core-js": "^3.34.0",
"debug": "^4.3.4",
"dompurify": "^2.4.7",
"github-label-sync": "^2.3.1",
"grapheme-splitter": "^1.0.4",
2023-12-09 15:12:20 +00:00
"gridicons": "^3.4.2",
"history": "^5.3.0",
"lodash": "^4.17.21",
"memize": "^1.1.0",
"qrcode.react": "^3.1.0",
2023-12-09 15:12:20 +00:00
"qs": "^6.11.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "~6.3.0",
2023-12-09 15:12:20 +00:00
"react-transition-group": "^4.4.5",
"react-visibility-sensor": "^5.1.1",
2023-12-09 15:12:20 +00:00
"redux": "^4.2.1",
"xstate": "4.37.1",
"xstate5": "npm:xstate@^5.13.1",
2023-12-09 15:12:20 +00:00
"zod": "^3.22.4"
},
"devDependencies": {
"@automattic/color-studio": "^2.5.0",
2023-12-09 15:12:20 +00:00
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-transform-async-to-generator": "^7.23.3",
"@babel/plugin-transform-react-jsx": "^7.23.4",
"@babel/preset-env": "^7.23.5",
"@babel/preset-typescript": "^7.23.3",
"@babel/runtime": "^7.23.5",
"@octokit/core": "^3.6.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@statelyai/inspect": "^0.3.1",
"@testing-library/dom": "8.11.3",
"@testing-library/jest-dom": "5.16.2",
"@testing-library/react": "12.1.3",
"@testing-library/react-hooks": "7.0.2",
"@testing-library/user-event": "13.5.0",
"react-test-renderer": "17.0.2",
"@types/cookie": "^0.4.1",
2023-12-09 15:12:20 +00:00
"@types/dompurify": "^2.4.0",
"@types/expect-puppeteer": "^4.4.7",
2023-12-09 15:12:20 +00:00
"@types/jest": "^27.5.2",
"@types/lodash": "^4.14.202",
"@types/puppeteer": "^4.0.3",
"@types/qs": "^6.9.10",
"@types/react": "^17.0.71",
"@types/react-router-dom": "^5.3.3",
2023-12-09 15:12:20 +00:00
"@types/react-transition-group": "^4.4.10",
"@types/testing-library__jest-dom": "^5.14.9",
"@types/tinymce": "^4.6.9",
"@types/wordpress__components": "^19.10.5",
"@types/wordpress__compose": "4.0.1",
"@types/wordpress__data": "6.0.0",
"@types/wordpress__data-controls": "~2.2.0",
"@types/wordpress__media-utils": "3.0.0",
"@types/wordpress__notices": "3.3.0",
"@types/wordpress__plugins": "3.0.0",
2023-12-09 15:12:20 +00:00
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@woocommerce/admin-e2e-tests": "workspace:*",
"@woocommerce/admin-layout": "workspace:*",
CYS - Add LookAndFeel and ToneOfVoice pages (#39979) * Add ProgressBar component to @woocommerce/components * Add changelog * Remove html.wp-toolbar in fullscreen mode * Add base style * Add Tell us a bit more about your business page * Fix merge conflict issues * Send BUSINESS_INFO_DESCRIPTION_COMPLETE event when continue button is clicked * Remove duplicated style import * Add changefile(s) from automation for the following project(s): @woocommerce/components, woocommerce * Lint fix * Add 'Look and Feel' and 'Tone of voice' pages'; * Use correct classname * Minor changes * Textearea color should be gray-900 after the user enter text * guide font weight should be 500 * Fix layout shift when a choice is selected * Fix choices width for tone of voice page * Use context value for the default * Revert button margin top * Fix default selection * Add X button * Decrease the margin by 20px to accommodate the height of the close button * Add close action * Include @woocommerce/ai package * Add AI service * Use AI service * Parse JSON from in function * Fix assignLookAndTone event type * Update plugins/woocommerce-admin/client/customize-store/design-with-ai/components/choice/choice.scss Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com> * Update plugins/woocommerce-admin/client/customize-store/design-with-ai/services.ts Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com> * Log when AI API endpoint request fails * Add spinner when user clicks the continue button * streamlined unnecessary isRequesting context and forwarded close event * pnpm-lock changes from trunk * lint fixes * ai package test passWithNoTests * changelog * reset pnpm-lock to trunk * Dev: update pnpm-lock.yaml and jest preset config (#40045) * Update pnpm-lock.yaml * Update jest-preset config to fix unexpected token error --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com> Co-authored-by: rjchow <me@rjchow.com>
2023-09-06 06:21:09 +00:00
"@woocommerce/ai": "workspace:0.1.0-beta.0",
"@woocommerce/block-templates": "workspace:*",
"@woocommerce/components": "workspace:*",
"@woocommerce/csv-export": "workspace:*",
"@woocommerce/currency": "workspace:*",
"@woocommerce/customer-effort-score": "workspace:*",
"@woocommerce/data": "workspace:*",
"@woocommerce/date": "workspace:*",
"@woocommerce/dependency-extraction-webpack-plugin": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/experimental": "workspace:*",
"@woocommerce/explat": "workspace:*",
"@woocommerce/internal-js-tests": "workspace:*",
"@woocommerce/internal-style-build": "workspace:*",
"@woocommerce/navigation": "workspace:*",
"@woocommerce/notices": "workspace:*",
"@woocommerce/number": "workspace:*",
"@woocommerce/onboarding": "workspace:*",
"@woocommerce/product-editor": "workspace:*",
"@woocommerce/tracks": "workspace:*",
2023-12-09 15:12:20 +00:00
"@wordpress/babel-preset-default": "^6.17.0",
"@wordpress/block-editor": "^9.8.0",
"@wordpress/browserslist-config": "wp-6.0",
2023-12-09 15:12:20 +00:00
"@wordpress/custom-templated-path-webpack-plugin": "^2.13.0",
"@wordpress/jest-preset-default": "^8.5.2",
"@wordpress/postcss-plugins-preset": "^1.6.0",
"@wordpress/postcss-themes": "^1.0.5",
"@wordpress/prettier-config": "2.17.0",
"@wordpress/scripts": "^12.6.1",
"@wordpress/stylelint-config": "^21.36.0",
"@xstate/inspect": "0.8.0",
"@xstate/test": "0.5.1",
2023-12-09 15:12:20 +00:00
"autoprefixer": "^10.4.16",
"await-exec": "^0.1.2",
"babel-jest": "~27.5.1",
2023-12-09 15:12:20 +00:00
"babel-loader": "^8.3.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-es2015-template-literals": "^6.22.0",
2022-04-05 06:45:13 +00:00
"chalk": "^4.1.2",
2023-12-09 15:12:20 +00:00
"comment-parser": "^1.4.1",
"concurrently": "^7.6.0",
"config": "3.3.7",
"copy-webpack-plugin": "^10.2.4",
"cross-env": "^7.0.3",
2023-12-09 15:12:20 +00:00
"css-loader": "^6.8.1",
"eslint": "^8.55.0",
"eslint-import-resolver-typescript": "3.6.1",
2023-12-09 15:12:20 +00:00
"eslint-import-resolver-webpack": "^0.13.8",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-react": "^7.33.2",
"expose-loader": "^3.1.0",
2023-08-08 04:35:31 +00:00
"fork-ts-checker-webpack-plugin": "^8.0.0",
"fs-extra": "11.1.1",
"jest": "~27.5.1",
"jest-environment-jsdom": "~27.5.1",
"jest-environment-node": "~27.5.1",
"md5": "^2.3.0",
"merge-config": "^2.0.0",
2023-12-09 15:12:20 +00:00
"mini-css-extract-plugin": "^2.7.6",
"moment": "^2.29.4",
"moment-timezone": "^0.5.43",
"moment-timezone-data-webpack-plugin": "^1.5.1",
"node-watch": "^0.7.4",
"postcss": "^8.4.32",
"postcss-color-function": "^4.1.0",
"postcss-loader": "^4.3.0",
"prettier": "npm:wp-prettier@^2.8.5",
"promptly": "^3.2.0",
"prop-types": "^15.8.1",
2023-12-09 15:12:20 +00:00
"puppeteer": "^2.1.1",
"raw-loader": "^4.0.2",
"react-refresh": "^0.14.0",
"readline-sync": "^1.4.10",
2023-12-09 15:12:20 +00:00
"replace": "^1.2.2",
"rimraf": "5.0.5",
"rtlcss": "^2.6.2",
2023-12-09 15:12:20 +00:00
"sass": "^1.69.5",
"sass-loader": "^10.5.0",
"style-loader": "^0.23.1",
2023-12-09 15:12:20 +00:00
"stylelint": "^14.16.1",
"ts-jest": "~29.1.1",
2023-12-09 15:12:20 +00:00
"typescript": "^5.3.3",
"url-loader": "^1.1.2",
2023-12-09 15:12:20 +00:00
"webpack": "^5.89.0",
"webpack-bundle-analyzer": "^3.9.0",
2023-12-09 15:12:20 +00:00
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.15.1",
"webpack-fix-style-only-entries": "^0.6.1",
2023-12-09 15:12:20 +00:00
"webpack-merge": "^5.10.0",
"webpack-rtl-plugin": "^2.0.0",
"wireit": "0.14.3"
},
"peerDependencies": {
"@wordpress/data": "wp-6.0"
},
"engines": {
Update the monorepo to node v20 (#45148) * test bumping node to v18 * remove community contributor condition from review assignment * Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai * bump node to v20 * Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, packages/php/remote-specs-validation, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai * Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai * add blocks eslint-plugin-woocommerce to project workspace * add e2e-environment as a peer to e2e-utils * restore version on @woocommerce/api * update lock file * move e2e-environment to devDependencies * add undefined location check to admin js test --------- Co-authored-by: Ron Rennick <ronald.rennick@automattic.com> Co-authored-by: github-actions <github-actions@github.com>
2024-04-12 16:49:55 +00:00
"node": "^20.11.1",
"pnpm": "^9.1.0"
},
"config": {
"ci": {
"lint": {
"command": "lint",
"changes": "client/**/*.{js,ts,tsx,scss}"
},
"tests": [
{
"name": "JavaScript",
"command": "test:js",
"changes": [
"jest.config.js",
"webpack.config.js",
"babel.config.js",
"tsconfig.json",
"client/**/*.{js,jsx,ts,tsx,scss,json}"
],
"cascade": "test:js",
"events": [
"pull_request",
"push"
]
}
]
}
},
"wireit": {
"build:project:bundle": {
"command": "webpack",
"clean": "if-file-deleted",
"env": {
"NODE_ENV": {
"external": true,
"default": "production"
},
"WC_ADMIN_PHASE": {
"external": true,
"default": "core"
}
},
"files": [
"webpack.config.js",
"tsconfig.json",
"client/**/*.{js,jsx,ts,tsx,scss}"
],
"output": [
"build"
],
"dependencies": [
"dependencyOutputs"
]
},
"watch:build:project:bundle": {
"command": "webpack --watch",
"service": true
},
"dependencyOutputs": {
"allowUsuallyExcludedPaths": true,
"files": [
"node_modules/@woocommerce/tracks/build",
"node_modules/@woocommerce/tracks/build-module",
"node_modules/@woocommerce/tracks/build-types",
"node_modules/@woocommerce/product-editor/build",
"node_modules/@woocommerce/product-editor/build-module",
"node_modules/@woocommerce/product-editor/build-style",
"node_modules/@woocommerce/product-editor/build-types",
"node_modules/@woocommerce/onboarding/build",
"node_modules/@woocommerce/onboarding/build-module",
"node_modules/@woocommerce/onboarding/build-style",
"node_modules/@woocommerce/onboarding/build-types",
"node_modules/@woocommerce/number/build",
"node_modules/@woocommerce/number/build-module",
"node_modules/@woocommerce/number/build-types",
"node_modules/@woocommerce/notices/build",
"node_modules/@woocommerce/notices/build-module",
"node_modules/@woocommerce/notices/build-types",
"node_modules/@woocommerce/navigation/build",
"node_modules/@woocommerce/navigation/build-module",
"node_modules/@woocommerce/navigation/build-types",
"node_modules/@woocommerce/internal-style-build/index.js",
"node_modules/@woocommerce/internal-style-build/abstracts",
"node_modules/@woocommerce/internal-js-tests/build",
"node_modules/@woocommerce/internal-js-tests/build-module",
"node_modules/@woocommerce/internal-js-tests/jest-preset.js",
"node_modules/@woocommerce/explat/build",
"node_modules/@woocommerce/explat/build-module",
"node_modules/@woocommerce/explat/build-types",
"node_modules/@woocommerce/experimental/build",
"node_modules/@woocommerce/experimental/build-module",
"node_modules/@woocommerce/experimental/build-style",
"node_modules/@woocommerce/experimental/build-types",
2023-11-02 23:56:22 +00:00
"node_modules/@woocommerce/eslint-plugin/configs",
"node_modules/@woocommerce/eslint-plugin/rules",
"node_modules/@woocommerce/eslint-plugin/index.js",
"node_modules/@woocommerce/dependency-extraction-webpack-plugin/src/",
"node_modules/@woocommerce/dependency-extraction-webpack-plugin/assets/",
"node_modules/@woocommerce/date/build",
"node_modules/@woocommerce/date/build-module",
"node_modules/@woocommerce/date/build-types",
"node_modules/@woocommerce/data/build",
"node_modules/@woocommerce/data/build-module",
"node_modules/@woocommerce/data/build-types",
"node_modules/@woocommerce/customer-effort-score/build",
"node_modules/@woocommerce/customer-effort-score/build-module",
"node_modules/@woocommerce/customer-effort-score/build-style",
"node_modules/@woocommerce/customer-effort-score/build-types",
"node_modules/@woocommerce/currency/build",
"node_modules/@woocommerce/currency/build-module",
"node_modules/@woocommerce/currency/build-types",
"node_modules/@woocommerce/csv-export/build",
"node_modules/@woocommerce/csv-export/build-module",
"node_modules/@woocommerce/csv-export/build-types",
"node_modules/@woocommerce/components/build",
"node_modules/@woocommerce/components/build-module",
"node_modules/@woocommerce/components/build-style",
"node_modules/@woocommerce/components/build-types",
"node_modules/@woocommerce/block-templates/build",
"node_modules/@woocommerce/block-templates/build-module",
"node_modules/@woocommerce/block-templates/build-style",
"node_modules/@woocommerce/block-templates/build-types",
"node_modules/@woocommerce/ai/build",
"node_modules/@woocommerce/ai/build-module",
"node_modules/@woocommerce/ai/build-style",
"node_modules/@woocommerce/ai/build-types",
"node_modules/@woocommerce/admin-layout/build",
"node_modules/@woocommerce/admin-layout/build-module",
"node_modules/@woocommerce/admin-layout/build-style",
"node_modules/@woocommerce/admin-layout/build-types",
"node_modules/@woocommerce/admin-e2e-tests/build",
2023-11-02 23:56:22 +00:00
"package.json",
"!node_modules/@woocommerce/admin-e2e-tests/*.ts.map",
"!node_modules/@woocommerce/admin-e2e-tests/*.tsbuildinfo"
]
}
}
2023-12-05 08:56:53 +00:00
}