385 lines
14 KiB
JSON
385 lines
14 KiB
JSON
{
|
|
"name": "@woocommerce/admin-library",
|
|
"private": true,
|
|
"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:patch-dependecies": "cp ./bin/modified-editsite-lock-unlock.js ./node_modules/@wordpress/edit-site/build-module/lock-unlock.js",
|
|
"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",
|
|
"lint": "pnpm --if-present '/^lint:lang:.*$/'",
|
|
"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
|
|
"lint:fix:lang:css": "stylelint '**/*.scss' --fix --ip 'storybook/wordpress'",
|
|
"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:patch-dependecies": "cp ./bin/modified-editsite-lock-unlock.js ./node_modules/@wordpress/edit-site/build-module/lock-unlock.js",
|
|
"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",
|
|
"@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",
|
|
"@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",
|
|
"@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",
|
|
"core-js": "^3.34.0",
|
|
"debug": "^4.3.4",
|
|
"dompurify": "^2.4.7",
|
|
"github-label-sync": "^2.3.1",
|
|
"grapheme-splitter": "^1.0.4",
|
|
"gridicons": "^3.4.2",
|
|
"history": "^5.3.0",
|
|
"lodash": "^4.17.21",
|
|
"memize": "^1.1.0",
|
|
"qrcode.react": "^3.1.0",
|
|
"qs": "^6.11.2",
|
|
"react": "^17.0.2",
|
|
"react-dom": "^17.0.2",
|
|
"react-router-dom": "~6.3.0",
|
|
"react-transition-group": "^4.4.5",
|
|
"react-visibility-sensor": "^5.1.1",
|
|
"redux": "^4.2.1",
|
|
"xstate": "4.37.1",
|
|
"xstate5": "npm:xstate@^5.13.1",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@automattic/color-studio": "^2.5.0",
|
|
"@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",
|
|
"@types/dompurify": "^2.4.0",
|
|
"@types/expect-puppeteer": "^4.4.7",
|
|
"@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",
|
|
"@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",
|
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
"@typescript-eslint/parser": "^5.62.0",
|
|
"@woocommerce/admin-e2e-tests": "workspace:*",
|
|
"@woocommerce/admin-layout": "workspace:*",
|
|
"@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:*",
|
|
"@wordpress/babel-preset-default": "^6.17.0",
|
|
"@wordpress/block-editor": "^9.8.0",
|
|
"@wordpress/browserslist-config": "wp-6.0",
|
|
"@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",
|
|
"autoprefixer": "^10.4.16",
|
|
"await-exec": "^0.1.2",
|
|
"babel-jest": "~27.5.1",
|
|
"babel-loader": "^8.3.0",
|
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
"babel-plugin-transform-es2015-template-literals": "^6.22.0",
|
|
"chalk": "^4.1.2",
|
|
"comment-parser": "^1.4.1",
|
|
"concurrently": "^7.6.0",
|
|
"config": "3.3.7",
|
|
"copy-webpack-plugin": "^10.2.4",
|
|
"cross-env": "^7.0.3",
|
|
"css-loader": "^6.8.1",
|
|
"eslint": "^8.55.0",
|
|
"eslint-import-resolver-typescript": "3.6.1",
|
|
"eslint-import-resolver-webpack": "^0.13.8",
|
|
"eslint-plugin-import": "^2.29.0",
|
|
"eslint-plugin-react": "^7.33.2",
|
|
"expose-loader": "^3.1.0",
|
|
"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",
|
|
"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",
|
|
"puppeteer": "^2.1.1",
|
|
"raw-loader": "^4.0.2",
|
|
"react-refresh": "^0.14.0",
|
|
"readline-sync": "^1.4.10",
|
|
"replace": "^1.2.2",
|
|
"rimraf": "5.0.5",
|
|
"rtlcss": "^2.6.2",
|
|
"sass": "^1.69.5",
|
|
"sass-loader": "^10.5.0",
|
|
"style-loader": "^0.23.1",
|
|
"stylelint": "^14.16.1",
|
|
"ts-jest": "~29.1.1",
|
|
"typescript": "^5.3.3",
|
|
"url-loader": "^1.1.2",
|
|
"webpack": "^5.89.0",
|
|
"webpack-bundle-analyzer": "^3.9.0",
|
|
"webpack-cli": "^4.10.0",
|
|
"webpack-dev-server": "^4.15.1",
|
|
"webpack-fix-style-only-entries": "^0.6.1",
|
|
"webpack-merge": "^5.10.0",
|
|
"webpack-rtl-plugin": "^2.0.0",
|
|
"wireit": "0.14.3"
|
|
},
|
|
"peerDependencies": {
|
|
"@wordpress/data": "wp-6.0"
|
|
},
|
|
"engines": {
|
|
"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",
|
|
"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",
|
|
"package.json",
|
|
"!node_modules/@woocommerce/admin-e2e-tests/*.ts.map",
|
|
"!node_modules/@woocommerce/admin-e2e-tests/*.tsbuildinfo"
|
|
]
|
|
}
|
|
}
|
|
}
|