2018-11-15 18:16:23 +00:00
|
|
|
{
|
2020-02-14 02:23:21 +00:00
|
|
|
"name": "@woocommerce/components",
|
2023-10-17 14:32:20 +00:00
|
|
|
"version": "12.2.0",
|
2020-02-14 02:23:21 +00:00
|
|
|
"description": "UI components for WooCommerce.",
|
|
|
|
"author": "Automattic",
|
|
|
|
"license": "GPL-3.0-or-later",
|
2022-09-26 22:30:52 +00:00
|
|
|
"engines": {
|
2023-04-25 06:49:30 +00:00
|
|
|
"node": "^16.14.1",
|
2023-07-18 02:27:18 +00:00
|
|
|
"pnpm": "^8.6.7"
|
2022-09-26 22:30:52 +00:00
|
|
|
},
|
2020-02-14 02:23:21 +00:00
|
|
|
"keywords": [
|
|
|
|
"wordpress",
|
|
|
|
"woocommerce",
|
|
|
|
"components"
|
|
|
|
],
|
2022-04-07 08:50:40 +00:00
|
|
|
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/components/README.md",
|
2020-02-14 02:23:21 +00:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2022-04-07 08:50:40 +00:00
|
|
|
"url": "https://github.com/woocommerce/woocommerce.git"
|
2020-02-14 02:23:21 +00:00
|
|
|
},
|
|
|
|
"bugs": {
|
2022-04-07 08:50:40 +00:00
|
|
|
"url": "https://github.com/woocommerce/woocommerce/issues"
|
2020-02-14 02:23:21 +00:00
|
|
|
},
|
|
|
|
"main": "build/index.js",
|
|
|
|
"module": "build-module/index.js",
|
|
|
|
"react-native": "src/index",
|
2021-05-26 19:35:46 +00:00
|
|
|
"sideEffects": [
|
|
|
|
"build-style/**",
|
|
|
|
"src/**/*.scss"
|
|
|
|
],
|
2022-02-11 11:39:34 +00:00
|
|
|
"types": "build-types",
|
2020-02-14 02:23:21 +00:00
|
|
|
"dependencies": {
|
2022-06-08 09:16:31 +00:00
|
|
|
"@automattic/calypso-color-schemes": "^2.1.1",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@automattic/interpolate-components": "^1.2.0",
|
2022-06-16 07:49:03 +00:00
|
|
|
"@automattic/tour-kit": "^1.1.1",
|
2023-12-05 08:36:30 +00:00
|
|
|
"@types/wordpress__block-editor": "7.0.0",
|
|
|
|
"@types/wordpress__block-library": "2.6.1",
|
|
|
|
"@types/wordpress__blocks": "11.0.7",
|
2023-11-30 22:55:35 +00:00
|
|
|
"@types/wordpress__components": "^19.10.3",
|
2023-12-05 08:36:30 +00:00
|
|
|
"@types/wordpress__rich-text": "3.4.6",
|
2022-03-04 04:01:16 +00:00
|
|
|
"@woocommerce/csv-export": "workspace:*",
|
|
|
|
"@woocommerce/currency": "workspace:*",
|
|
|
|
"@woocommerce/data": "workspace:*",
|
|
|
|
"@woocommerce/date": "workspace:*",
|
|
|
|
"@woocommerce/navigation": "workspace:*",
|
2023-03-08 21:13:25 +00:00
|
|
|
"@wordpress/a11y": "wp-6.0",
|
|
|
|
"@wordpress/api-fetch": "wp-6.0",
|
|
|
|
"@wordpress/base-styles": "wp-6.0",
|
2022-10-12 21:15:55 +00:00
|
|
|
"@wordpress/block-editor": "^9.8.0",
|
|
|
|
"@wordpress/block-library": "^7.16.0",
|
|
|
|
"@wordpress/blocks": "^11.18.0",
|
2023-03-08 21:13:25 +00:00
|
|
|
"@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",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@wordpress/viewport": "^4.1.2",
|
Refactor <List> to support custom markup (https://github.com/woocommerce/woocommerce-admin/pull/6787)
* Create the new experimental list, default to rendering it when items are not supplied.
* Remove typings from the List, ListItem.
* Add react-transition-group as dependency.
* Fix warnings by wrapping with CSS transition, pass down props from List.
* Remove type annotations left in list-item.
* Duplicate some styles in the higher level woocommerce-list-item element, to make them work in the new list.
* Fix accessibility issues, adjust the role logic
* Add more testing of the roles logic.
* Mark the old list stories as deprecated, add a basic story for the new style.
* Expose ListItem without Experimental in the name.
* Remove some redundant code changes.
* Fix linting issues
* Add types package.
* Cast the type of children to TransitionGroup.
* Adjust the list to assume a purpose of being a list of links.
* Adjust the tests for the new behaviour.
* Fix css mangled by prettier.
* Fix types that are optional.
* Rework the list item.
* Export new list as experimental, fix accessibility styles and deprecation notice.
* Make the basic transition opt-in.
* Update classnames to get types.
* Add tests, adjust behaviour for css disable.
* Fix css lint, remove types/classnames, update tetsing-library/user-event.
* Fix the basic story for ExperimentalList.
* Conditionally add keyDown and role based on onClick handler. Adjust tests to new behaviour.
* tabIndex only on hasAction
* Update the package-lock
* Add changelog
* Fix transition styling
Co-authored-by: Paul Sealock <psealock@gmail.com>
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-04-23 18:47:43 +00:00
|
|
|
"classnames": "^2.3.1",
|
2022-03-08 02:11:12 +00:00
|
|
|
"core-js": "^3.21.1",
|
|
|
|
"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.3.6",
|
2022-11-03 15:20:29 +00:00
|
|
|
"downshift": "^6.1.12",
|
2022-03-08 02:11:12 +00:00
|
|
|
"emoji-flags": "^1.3.0",
|
|
|
|
"gridicons": "^3.4.0",
|
2022-05-10 06:17:03 +00:00
|
|
|
"memoize-one": "^6.0.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"moment": "^2.29.1",
|
2022-03-14 09:07:21 +00:00
|
|
|
"moment-timezone": "^0.5.34",
|
2022-03-08 02:11:12 +00:00
|
|
|
"prop-types": "^15.8.1",
|
2022-05-11 01:12:32 +00:00
|
|
|
"react-dates": "^21.8.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"react-transition-group": "^4.4.2"
|
2020-02-14 02:23:21 +00:00
|
|
|
},
|
2021-03-12 03:58:51 +00:00
|
|
|
"peerDependencies": {
|
2023-03-08 09:51:59 +00:00
|
|
|
"@types/react": "^17.0.2",
|
|
|
|
"@types/react-dom": "^17.0.2",
|
2023-04-25 06:49:30 +00:00
|
|
|
"@wordpress/data": "wp-6.0",
|
|
|
|
"lodash": "^4.17.0",
|
2022-08-24 15:15:22 +00:00
|
|
|
"react": "^17.0.2",
|
|
|
|
"react-dom": "^17.0.2"
|
2021-03-12 03:58:51 +00:00
|
|
|
},
|
2020-02-14 02:23:21 +00:00
|
|
|
"publishConfig": {
|
|
|
|
"access": "public"
|
2021-06-02 03:54:00 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-03-15 03:04:46 +00:00
|
|
|
"@babel/core": "^7.17.5",
|
2022-03-29 06:52:31 +00:00
|
|
|
"@babel/runtime": "^7.17.2",
|
2023-08-15 06:13:42 +00:00
|
|
|
"@storybook/addon-actions": "^6.5.17-alpha.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@storybook/addon-console": "^1.2.3",
|
2023-08-15 06:13:42 +00:00
|
|
|
"@storybook/addon-controls": "^6.5.17-alpha.0",
|
|
|
|
"@storybook/addon-docs": "^6.5.17-alpha.0",
|
2022-03-18 11:45:14 +00:00
|
|
|
"@storybook/addon-knobs": "^6.4.0",
|
2023-08-15 06:13:42 +00:00
|
|
|
"@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",
|
2023-12-05 08:36:30 +00:00
|
|
|
"@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",
|
2022-08-31 04:06:51 +00:00
|
|
|
"@types/jest": "^27.4.1",
|
|
|
|
"@types/lodash": "^4.14.184",
|
2022-12-06 05:21:10 +00:00
|
|
|
"@types/prop-types": "^15.7.4",
|
2022-08-31 04:06:51 +00:00
|
|
|
"@types/testing-library__jest-dom": "^5.14.3",
|
2023-01-06 11:53:33 +00:00
|
|
|
"@types/uuid": "^8.3.0",
|
2023-11-30 22:55:35 +00:00
|
|
|
"@types/wordpress__components": "^19.10.3",
|
2023-12-05 08:36:30 +00:00
|
|
|
"@types/wordpress__data": "6.0.0",
|
|
|
|
"@types/wordpress__media-utils": "3.0.0",
|
|
|
|
"@types/wordpress__viewport": "2.5.4",
|
2022-04-26 23:16:35 +00:00
|
|
|
"@woocommerce/eslint-plugin": "workspace:*",
|
2023-03-24 01:02:20 +00:00
|
|
|
"@woocommerce/internal-js-tests": "workspace:*",
|
2023-04-25 06:49:30 +00:00
|
|
|
"@woocommerce/internal-style-build": "workspace:*",
|
2023-12-05 08:36:30 +00:00
|
|
|
"@wordpress/babel-preset-default": "^6.5.1",
|
2023-03-08 21:13:25 +00:00
|
|
|
"@wordpress/browserslist-config": "wp-6.0",
|
2022-03-18 11:45:14 +00:00
|
|
|
"concurrently": "^7.0.0",
|
2022-03-15 03:04:46 +00:00
|
|
|
"css-loader": "^3.6.0",
|
2023-02-02 10:25:04 +00:00
|
|
|
"eslint": "^8.32.0",
|
2023-12-05 08:36:30 +00:00
|
|
|
"jest": "~27.5.1",
|
|
|
|
"jest-cli": "~27.5.1",
|
2023-03-08 21:13:25 +00:00
|
|
|
"postcss": "^8.4.7",
|
|
|
|
"postcss-loader": "^4.3.0",
|
2022-08-24 15:15:22 +00:00
|
|
|
"react": "^17.0.2",
|
2022-03-15 03:04:46 +00:00
|
|
|
"rimraf": "^3.0.2",
|
|
|
|
"sass-loader": "^10.2.1",
|
2023-12-05 08:36:30 +00:00
|
|
|
"ts-jest": "~29.1.1",
|
2023-08-08 04:35:31 +00:00
|
|
|
"typescript": "^5.1.6",
|
2023-01-06 11:53:33 +00:00
|
|
|
"uuid": "^8.3.0",
|
2022-03-18 10:59:05 +00:00
|
|
|
"webpack": "^5.70.0",
|
2022-03-15 03:04:46 +00:00
|
|
|
"webpack-cli": "^3.3.12"
|
2021-07-14 20:38:57 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
2022-08-05 00:03:17 +00:00
|
|
|
"turbo:build": "pnpm run build:js && pnpm run build:css",
|
|
|
|
"turbo:test": "jest --config ./jest.config.json",
|
2022-07-07 02:53:59 +00:00
|
|
|
"prepare": "composer install",
|
2022-06-09 21:40:07 +00:00
|
|
|
"changelog": "composer exec -- changelogger",
|
2022-09-15 21:21:42 +00:00
|
|
|
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
2023-10-06 22:41:47 +00:00
|
|
|
"test": "pnpm test:js",
|
|
|
|
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
|
dev: edited package.json lint scripts to output to console (#41498)
* edited package.jsons to output to console
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/product-editor, @woocommerce/onboarding, @woocommerce/number, @woocommerce/navigation, @woocommerce/integrate-plugin, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/components, @woocommerce/block-templates, @woocommerce/api, @woocommerce/ai, @woocommerce/admin-layout, @woocommerce/admin-e2e-tests
* empty commit to trigger CI
---------
Co-authored-by: github-actions <github-actions@github.com>
2023-11-21 03:16:08 +00:00
|
|
|
"lint": "eslint --ext=js,ts,tsx src",
|
2023-03-23 18:25:42 +00:00
|
|
|
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
2021-08-19 14:15:59 +00:00
|
|
|
"build:css": "webpack",
|
2022-03-04 04:01:16 +00:00
|
|
|
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
dev: edited package.json lint scripts to output to console (#41498)
* edited package.jsons to output to console
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/product-editor, @woocommerce/onboarding, @woocommerce/number, @woocommerce/navigation, @woocommerce/integrate-plugin, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/components, @woocommerce/block-templates, @woocommerce/api, @woocommerce/ai, @woocommerce/admin-layout, @woocommerce/admin-e2e-tests
* empty commit to trigger CI
---------
Co-authored-by: github-actions <github-actions@github.com>
2023-11-21 03:16:08 +00:00
|
|
|
"lint:fix": "eslint --ext=js,ts,tsx src --fix",
|
2022-03-04 04:01:16 +00:00
|
|
|
"prepack": "pnpm run clean && pnpm run build",
|
2023-03-23 18:25:42 +00:00
|
|
|
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\" \"webpack --watch\"",
|
2022-06-09 21:40:07 +00:00
|
|
|
"test:update-snapshots": "pnpm run test -- --updateSnapshot",
|
2021-07-14 20:38:57 +00:00
|
|
|
"test-staged": "jest --bail --config ./jest.config.json --findRelatedTests"
|
2022-04-06 08:58:17 +00:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"*.(t|j)s?(x)": [
|
2022-04-26 22:47:07 +00:00
|
|
|
"pnpm lint:fix",
|
2022-04-06 08:58:17 +00:00
|
|
|
"pnpm test-staged"
|
|
|
|
]
|
2020-02-14 02:23:21 +00:00
|
|
|
}
|
2022-10-20 05:21:11 +00:00
|
|
|
}
|