257 lines
7.5 KiB
JSON
257 lines
7.5 KiB
JSON
{
|
|
"name": "@woocommerce/components",
|
|
"version": "12.2.0",
|
|
"description": "UI components for WooCommerce.",
|
|
"author": "Automattic",
|
|
"license": "GPL-3.0-or-later",
|
|
"engines": {
|
|
"node": "^16.14.1",
|
|
"pnpm": "^8.6.7"
|
|
},
|
|
"keywords": [
|
|
"wordpress",
|
|
"woocommerce",
|
|
"components"
|
|
],
|
|
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/components/README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/woocommerce/woocommerce.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/woocommerce/woocommerce/issues"
|
|
},
|
|
"main": "build/index.js",
|
|
"module": "build-module/index.js",
|
|
"react-native": "src/index",
|
|
"files": [
|
|
"build",
|
|
"build-module",
|
|
"build-style",
|
|
"build-types"
|
|
],
|
|
"sideEffects": [
|
|
"build-style/**",
|
|
"src/**/*.scss"
|
|
],
|
|
"types": "build-types",
|
|
"scripts": {
|
|
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
|
|
"build:project": "pnpm --if-present /^build:project:.*$/",
|
|
"build:project:bundle": "wireit",
|
|
"build:project:cjs": "wireit",
|
|
"build:project:esm": "wireit",
|
|
"changelog": "composer install && composer exec -- changelogger",
|
|
"lint": "pnpm --if-present '/^lint:lang:.*$/'",
|
|
"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
|
|
"lint:fix:lang:js": "eslint --ext=js,ts,tsx src --fix",
|
|
"lint:lang:js": "eslint --ext=js,ts,tsx src",
|
|
"prepack": "pnpm build",
|
|
"test:js": "wireit",
|
|
"watch:build": "pnpm build:project --watch"
|
|
},
|
|
"lint-staged": {
|
|
"*.(t|j)s?(x)": [
|
|
"pnpm lint:fix",
|
|
"pnpm test-staged"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@automattic/calypso-color-schemes": "^2.1.1",
|
|
"@automattic/interpolate-components": "^1.2.1",
|
|
"@automattic/tour-kit": "^1.1.1",
|
|
"@types/wordpress__block-editor": "7.0.0",
|
|
"@types/wordpress__block-library": "2.6.1",
|
|
"@types/wordpress__blocks": "11.0.7",
|
|
"@types/wordpress__components": "^19.10.5",
|
|
"@types/wordpress__rich-text": "3.4.6",
|
|
"@woocommerce/csv-export": "workspace:*",
|
|
"@woocommerce/currency": "workspace:*",
|
|
"@woocommerce/data": "workspace:*",
|
|
"@woocommerce/date": "workspace:*",
|
|
"@woocommerce/navigation": "workspace:*",
|
|
"@wordpress/a11y": "wp-6.0",
|
|
"@wordpress/api-fetch": "wp-6.0",
|
|
"@wordpress/base-styles": "wp-6.0",
|
|
"@wordpress/block-editor": "^9.8.0",
|
|
"@wordpress/block-library": "^7.19.0",
|
|
"@wordpress/blocks": "^11.21.0",
|
|
"@wordpress/components": "wp-6.0",
|
|
"@wordpress/compose": "wp-6.0",
|
|
"@wordpress/core-data": "wp-6.0",
|
|
"@wordpress/date": "wp-6.0",
|
|
"@wordpress/deprecated": "wp-6.0",
|
|
"@wordpress/dom": "wp-6.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/keyboard-shortcuts": "wp-6.0",
|
|
"@wordpress/keycodes": "wp-6.0",
|
|
"@wordpress/media-utils": "wp-6.0",
|
|
"@wordpress/rich-text": "wp-6.0",
|
|
"@wordpress/url": "wp-6.0",
|
|
"@wordpress/viewport": "^4.20.0",
|
|
"classnames": "^2.3.2",
|
|
"core-js": "^3.34.0",
|
|
"d3-axis": "^1.0.12",
|
|
"d3-format": "^1.4.5",
|
|
"d3-scale": "^2.2.2",
|
|
"d3-scale-chromatic": "^1.5.0",
|
|
"d3-selection": "^1.4.2",
|
|
"d3-shape": "^1.3.7",
|
|
"d3-time-format": "^2.3.0",
|
|
"dompurify": "^2.4.7",
|
|
"downshift": "^6.1.12",
|
|
"emoji-flags": "^1.3.0",
|
|
"gridicons": "^3.4.2",
|
|
"memoize-one": "^6.0.0",
|
|
"moment": "^2.29.4",
|
|
"moment-timezone": "^0.5.43",
|
|
"prop-types": "^15.8.1",
|
|
"react-dates": "^21.8.0",
|
|
"react-transition-group": "^4.4.5"
|
|
},
|
|
"peerDependencies": {
|
|
"@types/react": "^17.0.71",
|
|
"@types/react-dom": "^17.0.25",
|
|
"@wordpress/data": "wp-6.0",
|
|
"lodash": "^4.17.0",
|
|
"react": "^17.0.2",
|
|
"react-dom": "^17.0.2"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.23.5",
|
|
"@babel/runtime": "^7.23.5",
|
|
"@storybook/addon-actions": "6.5.17-alpha.0",
|
|
"@storybook/addon-console": "^1.2.3",
|
|
"@storybook/addon-controls": "6.5.17-alpha.0",
|
|
"@storybook/addon-docs": "6.5.17-alpha.0",
|
|
"@storybook/addon-knobs": "^6.4.0",
|
|
"@storybook/addon-links": "6.5.17-alpha.0",
|
|
"@storybook/addons": "6.5.17-alpha.0",
|
|
"@storybook/api": "6.5.17-alpha.0",
|
|
"@storybook/components": "6.5.17-alpha.0",
|
|
"@storybook/core-events": "6.5.17-alpha.0",
|
|
"@storybook/react": "6.5.17-alpha.0",
|
|
"@storybook/theming": "6.5.17-alpha.0",
|
|
"@testing-library/dom": "8.11.3",
|
|
"@testing-library/jest-dom": "5.16.2",
|
|
"@testing-library/react": "12.1.3",
|
|
"@testing-library/react-hooks": "8.0.1",
|
|
"@testing-library/user-event": "13.5.0",
|
|
"@types/jest": "^27.5.2",
|
|
"@types/lodash": "^4.14.202",
|
|
"@types/prop-types": "^15.7.11",
|
|
"@types/testing-library__jest-dom": "^5.14.9",
|
|
"@types/uuid": "^8.3.4",
|
|
"@types/wordpress__components": "^19.10.5",
|
|
"@types/wordpress__data": "6.0.0",
|
|
"@types/wordpress__media-utils": "3.0.0",
|
|
"@types/wordpress__viewport": "2.5.4",
|
|
"@woocommerce/eslint-plugin": "workspace:*",
|
|
"@woocommerce/internal-js-tests": "workspace:*",
|
|
"@woocommerce/internal-style-build": "workspace:*",
|
|
"@wordpress/babel-preset-default": "^6.17.0",
|
|
"@wordpress/browserslist-config": "wp-6.0",
|
|
"concurrently": "^7.6.0",
|
|
"css-loader": "^3.6.0",
|
|
"eslint": "^8.55.0",
|
|
"jest": "~27.5.1",
|
|
"jest-cli": "~27.5.1",
|
|
"postcss": "^8.4.32",
|
|
"postcss-loader": "^4.3.0",
|
|
"react": "^17.0.2",
|
|
"rimraf": "^3.0.2",
|
|
"sass-loader": "^10.5.0",
|
|
"ts-jest": "~29.1.1",
|
|
"typescript": "^5.3.3",
|
|
"uuid": "^8.3.2",
|
|
"webpack": "^5.89.0",
|
|
"webpack-cli": "^3.3.12",
|
|
"wireit": "0.14.1"
|
|
},
|
|
"wireit": {
|
|
"build:project:bundle": {
|
|
"command": "webpack",
|
|
"files": [
|
|
"webpack.config.js",
|
|
"src/**/*.scss"
|
|
],
|
|
"output": [
|
|
"build-style"
|
|
],
|
|
"dependencies": [
|
|
"dependencyOutputs"
|
|
]
|
|
},
|
|
"build:project:cjs": {
|
|
"command": "tsc --project tsconfig-cjs.json",
|
|
"files": [
|
|
"tsconfig-cjs.json",
|
|
"src/**/*.{js,jsx,ts,tsx}",
|
|
"typings/**/*.ts"
|
|
],
|
|
"output": [
|
|
"build"
|
|
],
|
|
"dependencies": [
|
|
"dependencyOutputs"
|
|
]
|
|
},
|
|
"build:project:esm": {
|
|
"command": "tsc --project tsconfig.json",
|
|
"files": [
|
|
"tsconfig.json",
|
|
"src/**/*.{js,jsx,ts,tsx}",
|
|
"typings/**/*.ts"
|
|
],
|
|
"output": [
|
|
"build-module",
|
|
"build-types"
|
|
],
|
|
"dependencies": [
|
|
"dependencyOutputs"
|
|
]
|
|
},
|
|
"test:js": {
|
|
"command": "jest --config ./jest.config.json --passWithNoTests",
|
|
"dependencies": [
|
|
"build:project"
|
|
]
|
|
},
|
|
"dependencyOutputs": {
|
|
"allowUsuallyExcludedPaths": true,
|
|
"files": [
|
|
"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/eslint-plugin/configs",
|
|
"node_modules/@woocommerce/eslint-plugin/rules",
|
|
"node_modules/@woocommerce/eslint-plugin/index.js",
|
|
"node_modules/@woocommerce/navigation/build",
|
|
"node_modules/@woocommerce/navigation/build-module",
|
|
"node_modules/@woocommerce/navigation/build-types",
|
|
"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/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",
|
|
"package.json"
|
|
]
|
|
}
|
|
}
|
|
}
|