2018-11-15 18:16:23 +00:00
|
|
|
{
|
2020-02-14 02:23:21 +00:00
|
|
|
"name": "@woocommerce/components",
|
2022-03-22 08:08:06 +00:00
|
|
|
"version": "10.0.0",
|
2020-02-14 02:23:21 +00:00
|
|
|
"description": "UI components for WooCommerce.",
|
|
|
|
"author": "Automattic",
|
|
|
|
"license": "GPL-3.0-or-later",
|
|
|
|
"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-03-08 02:11:12 +00:00
|
|
|
"@automattic/interpolate-components": "^1.2.0",
|
2022-03-04 04:01:16 +00:00
|
|
|
"@woocommerce/csv-export": "workspace:*",
|
|
|
|
"@woocommerce/currency": "workspace:*",
|
|
|
|
"@woocommerce/data": "workspace:*",
|
|
|
|
"@woocommerce/date": "workspace:*",
|
|
|
|
"@woocommerce/navigation": "workspace:*",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@wordpress/api-fetch": "^6.0.1",
|
|
|
|
"@wordpress/components": "^19.5.0",
|
|
|
|
"@wordpress/compose": "^5.1.2",
|
|
|
|
"@wordpress/date": "^4.3.1",
|
2022-02-21 02:34:25 +00:00
|
|
|
"@wordpress/deprecated": "^3.3.1",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@wordpress/dom": "^3.3.2",
|
|
|
|
"@wordpress/element": "^4.1.1",
|
2022-04-07 06:18:13 +00:00
|
|
|
"@wordpress/hooks": "^3.5.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@wordpress/html-entities": "^3.3.1",
|
|
|
|
"@wordpress/i18n": "^4.3.1",
|
2022-04-07 06:24:19 +00:00
|
|
|
"@wordpress/icons": "^8.1.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@wordpress/keycodes": "^3.3.1",
|
|
|
|
"@wordpress/url": "^3.4.1",
|
|
|
|
"@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",
|
|
|
|
"emoji-flags": "^1.3.0",
|
|
|
|
"gridicons": "^3.4.0",
|
|
|
|
"memoize-one": "^5.2.1",
|
|
|
|
"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",
|
2020-05-04 19:16:17 +00:00
|
|
|
"react-dates": "^17.2.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"react-router-dom": "^5.3.0",
|
|
|
|
"react-transition-group": "^4.4.2"
|
2020-02-14 02:23:21 +00:00
|
|
|
},
|
2021-03-12 03:58:51 +00:00
|
|
|
"peerDependencies": {
|
2022-03-08 02:11:12 +00:00
|
|
|
"@wordpress/data": "^6.2.1",
|
2022-03-15 03:04:46 +00:00
|
|
|
"lodash": "^4.17.0",
|
|
|
|
"react": "^17.0.0",
|
|
|
|
"react-dom": "^17.0.0"
|
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",
|
2022-03-15 03:04:46 +00:00
|
|
|
"@storybook/addon-actions": "^6.4.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@storybook/addon-console": "^1.2.3",
|
2022-03-18 11:45:14 +00:00
|
|
|
"@storybook/addon-controls": "^6.4.19",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@storybook/addon-docs": "^6.4.19",
|
2022-03-18 11:45:14 +00:00
|
|
|
"@storybook/addon-knobs": "^6.4.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@storybook/addon-links": "^6.4.19",
|
2022-03-15 03:04:46 +00:00
|
|
|
"@storybook/addons": "^6.4.0",
|
|
|
|
"@storybook/api": "^6.4.0",
|
|
|
|
"@storybook/components": "^6.4.0",
|
|
|
|
"@storybook/core-events": "^6.4.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@storybook/react": "^6.4.19",
|
2022-03-15 03:04:46 +00:00
|
|
|
"@storybook/theming": "^6.4.0",
|
|
|
|
"@testing-library/dom": "^8.11.3",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@testing-library/jest-dom": "^5.16.2",
|
|
|
|
"@testing-library/react": "^12.1.3",
|
|
|
|
"@testing-library/user-event": "^13.5.0",
|
2022-03-04 04:01:16 +00:00
|
|
|
"@woocommerce/style-build": "workspace:*",
|
2022-03-15 03:04:46 +00:00
|
|
|
"@wordpress/browserslist-config": "^4.1.1",
|
2022-03-28 08:42:22 +00:00
|
|
|
"@wordpress/eslint-plugin": "^11.0.0",
|
2022-03-08 02:11:12 +00:00
|
|
|
"@wordpress/scripts": "^12.6.1",
|
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",
|
2022-03-28 08:42:22 +00:00
|
|
|
"eslint": "^8.12.0",
|
2022-03-15 03:04:46 +00:00
|
|
|
"jest": "^27.5.1",
|
|
|
|
"jest-cli": "^27.5.1",
|
|
|
|
"postcss-loader": "^3.0.0",
|
|
|
|
"rimraf": "^3.0.2",
|
|
|
|
"sass-loader": "^10.2.1",
|
|
|
|
"ts-jest": "^27.1.3",
|
|
|
|
"typescript": "^4.6.2",
|
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-03-04 04:01:16 +00:00
|
|
|
"build": "pnpm run build:js && pnpm run build:css",
|
2021-07-14 20:38:57 +00:00
|
|
|
"build:js": "tsc --build ./tsconfig.json ./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-*",
|
2022-03-28 10:39:16 +00:00
|
|
|
"lint": "eslint src --ext=js,ts,tsx",
|
2022-03-04 04:01:16 +00:00
|
|
|
"prepack": "pnpm run clean && pnpm run build",
|
2022-02-11 11:39:34 +00:00
|
|
|
"start": "concurrently \"tsc --build ./tsconfig.json --watch\" \"webpack --watch\"",
|
2022-03-04 04:01:16 +00:00
|
|
|
"test": "pnpm run build && pnpm run test:nobuild",
|
2021-07-14 20:38:57 +00:00
|
|
|
"test:nobuild": "jest --config ./jest.config.json",
|
2022-03-04 04:01:16 +00:00
|
|
|
"test:update-snapshots": "pnpm run test:nobuild -- --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)": [
|
|
|
|
"eslint --fix",
|
|
|
|
"pnpm test-staged"
|
|
|
|
]
|
2020-02-14 02:23:21 +00:00
|
|
|
}
|
2018-11-15 18:16:23 +00:00
|
|
|
}
|