Update Dependencies to Latest Versions supporting React 16x (https://github.com/woocommerce/woocommerce-blocks/pull/4532)

* Update storybook to 6.3.6

* @storybook/addon-knobs

* Remove need for wordpress-compose imports

This functionality exists in WP 5.5 so we don't need to import the package any more.

* Update to latest non 17x packages

* Composer update

* Fix for @babel/plugin-proposal-nullish-coalescing-operator and spinner style

* onSelect was called before init

* Add back env

* Update locks

* Revert browserlist config increase (ie11 support dropped needs separate discussion)

* update locks

* SVG can come from the external

* Import from components package where possible (5.5 has Gutenberg 9.2.0) and revert component package version change

* Revert component imports. Import from wordpress-components in the frontend context. This removes `wp-components`  dependency from all -frontend asset files.
This commit is contained in:
Mike Jolley 2021-08-05 10:26:00 +01:00 committed by GitHub
parent b601055db4
commit b941b0c332
27 changed files with 3436 additions and 2925 deletions

View File

@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { Placeholder } from '@wordpress/components';
import { Placeholder } from 'wordpress-components';
const GroupedProducts = () => {
return (

View File

@ -3,7 +3,7 @@
*/
import { __ } from '@wordpress/i18n';
import { decodeEntities } from '@wordpress/html-entities';
import { SelectControl } from '@wordpress/components';
import { SelectControl } from 'wordpress-components';
import { useEffect } from 'react';
import classnames from 'classnames';
import {

View File

@ -14,7 +14,7 @@ import {
import { useValidationContext } from '@woocommerce/base-context';
import { useEffect, useMemo } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
import { useShallowEqual } from '@woocommerce/base-hooks';
import {
AddressField,

View File

@ -8,7 +8,7 @@ import { ValidatedTextInput } from '@woocommerce/base-components/text-input';
import Label from '@woocommerce/base-components/label';
import LoadingMask from '@woocommerce/base-components/loading-mask';
import PropTypes from 'prop-types';
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
import {
ValidationInputError,
useValidationContext,

View File

@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
import classNames from 'classnames';
/**

View File

@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { useInnerBlockLayoutContext } from '@woocommerce/shared-context';
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
/**
* Internal dependencies

View File

@ -2,7 +2,7 @@
* External dependencies
*/
import classnames from 'classnames';
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
/**
* Internal dependencies

View File

@ -2,7 +2,7 @@
* External dependencies
*/
import classnames from 'classnames';
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
/**
* Internal dependencies

View File

@ -6,7 +6,7 @@ import { useEffect } from 'react';
import { useShallowEqual } from '@woocommerce/base-hooks';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
import {
ValidationInputError,
useValidationContext,

View File

@ -4,7 +4,7 @@
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Label from '@woocommerce/base-components/label';
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
/**
* Internal dependencies

View File

@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
import classnames from 'classnames';
import { __ } from '@wordpress/i18n';
import { useTabState, Tab, TabList, TabPanel } from 'reakit/Tab';

View File

@ -8,7 +8,7 @@ import {
ValidationInputError,
useValidationContext,
} from '@woocommerce/base-context';
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
import { isString } from '@woocommerce/types';
/**

View File

@ -1 +0,0 @@
export { withInstanceId } from 'wordpress-compose';

View File

@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { useResizeObserver } from 'wordpress-compose';
import { useResizeObserver } from '@wordpress/compose';
/**
* Returns a resizeListener element and a class name based on its width.

View File

@ -161,13 +161,6 @@ const AttributeFilterBlock = ( {
queryState.attributes,
] );
// Track checked STATE changes - if state changes, update the query.
useEffect( () => {
if ( ! blockAttributes.showFilterButton ) {
onSubmit( checked );
}
}, [ blockAttributes.showFilterButton, checked, onSubmit ] );
const checkedQuery = useMemo( () => {
return productAttributesQuery
.filter(
@ -227,6 +220,13 @@ const AttributeFilterBlock = ( {
]
);
// Track checked STATE changes - if state changes, update the query.
useEffect( () => {
if ( ! blockAttributes.showFilterButton ) {
onSubmit( checked );
}
}, [ blockAttributes.showFilterButton, checked, onSubmit ] );
const multiple =
blockAttributes.displayStyle !== 'dropdown' ||
blockAttributes.queryType === 'or';

View File

@ -2,7 +2,7 @@
* External dependencies
*/
import { useMemo, useEffect, Fragment } from '@wordpress/element';
import { Disabled } from '@wordpress/components';
import { Disabled } from 'wordpress-components';
import {
useCheckoutAddress,
useStoreEvents,

View File

@ -3,7 +3,7 @@
*/
import { __ } from '@wordpress/i18n';
import { useMemo, useEffect, Fragment } from '@wordpress/element';
import { Disabled } from '@wordpress/components';
import { Disabled } from 'wordpress-components';
import { AddressForm } from '@woocommerce/base-components/cart-checkout';
import {
useCheckoutAddress,

View File

@ -7,7 +7,7 @@ import { useState, useEffect } from '@wordpress/element';
import CheckboxControl from '@woocommerce/base-components/checkbox-control';
import { useValidationContext } from '@woocommerce/base-context';
import { useCheckoutSubmit } from '@woocommerce/base-context/hooks';
import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id';
import { withInstanceId } from '@wordpress/compose';
/**
* Internal dependencies

View File

@ -35,11 +35,11 @@ import { blocksConfig } from '@woocommerce/block-settings';
/**
* Internal dependencies
*/
import { getBlockClassName } from '../utils';
import {
renderHiddenContentPlaceholder,
renderNoProductsPlaceholder,
getBlockClassName,
} from '../utils';
} from '../edit-utils';
import {
DEFAULT_PRODUCT_LIST_LAYOUT,
getProductLayoutConfig,

View File

@ -0,0 +1,50 @@
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { Button, Placeholder } from '@wordpress/components';
import { ADMIN_URL } from '@woocommerce/settings';
import { Icon, external } from '@woocommerce/icons';
export const renderNoProductsPlaceholder = ( blockTitle, blockIcon ) => (
<Placeholder
className="wc-block-products"
icon={ blockIcon }
label={ blockTitle }
>
<p>
{ __(
"You haven't published any products to list here yet.",
'woo-gutenberg-products-block'
) }
</p>
<Button
className="wc-block-products__add-product-button"
isSecondary
href={ ADMIN_URL + 'post-new.php?post_type=product' }
>
{ __( 'Add new product', 'woo-gutenberg-products-block' ) + ' ' }
<Icon srcElement={ external } />
</Button>
<Button
className="wc-block-products__read_more_button"
isTertiary
href="https://docs.woocommerce.com/document/managing-products/"
>
{ __( 'Learn more', 'woo-gutenberg-products-block' ) }
</Button>
</Placeholder>
);
export const renderHiddenContentPlaceholder = ( blockTitle, blockIcon ) => (
<Placeholder
className="wc-block-products"
icon={ blockIcon }
label={ blockTitle }
>
{ __(
'The content for this block is hidden due to block settings.',
'woo-gutenberg-products-block'
) }
</Placeholder>
);

View File

@ -1,11 +1,7 @@
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { Button, Placeholder } from '@wordpress/components';
import classNames from 'classnames';
import { ADMIN_URL } from '@woocommerce/settings';
import { Icon, external } from '@woocommerce/icons';
export const getBlockClassName = ( blockClassName, attributes ) => {
const { className, contentVisibility } = attributes;
@ -18,46 +14,3 @@ export const getBlockClassName = ( blockClassName, attributes ) => {
'has-button': contentVisibility && contentVisibility.button,
} );
};
export const renderNoProductsPlaceholder = ( blockTitle, blockIcon ) => (
<Placeholder
className="wc-block-products"
icon={ blockIcon }
label={ blockTitle }
>
<p>
{ __(
"You haven't published any products to list here yet.",
'woo-gutenberg-products-block'
) }
</p>
<Button
className="wc-block-products__add-product-button"
isSecondary
href={ ADMIN_URL + 'post-new.php?post_type=product' }
>
{ __( 'Add new product', 'woo-gutenberg-products-block' ) + ' ' }
<Icon srcElement={ external } />
</Button>
<Button
className="wc-block-products__read_more_button"
isTertiary
href="https://docs.woocommerce.com/document/managing-products/"
>
{ __( 'Learn more', 'woo-gutenberg-products-block' ) }
</Button>
</Placeholder>
);
export const renderHiddenContentPlaceholder = ( blockTitle, blockIcon ) => (
<Placeholder
className="wc-block-products"
icon={ blockIcon }
label={ blockTitle }
>
{ __(
'The content for this block is hidden due to block settings.',
'woo-gutenberg-products-block'
) }
</Placeholder>
);

View File

@ -16,15 +16,14 @@ import { Icon, bill, woo } from '@woocommerce/icons';
## Props
Name | Type | Default | Description
--- | --- | --- | ---
`size` | `integer` | `24` | Size of icon in pixels.
| Name | Type | Default | Description |
| ------ | --------- | ------- | ----------------------- |
| `size` | `integer` | `24` | Size of icon in pixels. |
## Adding Icons
1. Add the icon file to `./library` folder.
2. Make sure to use `SVG` primitive from `@wordpress/components` and not a native svg. `SVG` offers more accessibility features.
2. Make sure to use `SVG` primitive from `wordpress-components` and not a native svg. `SVG` offers more accessibility features.
3. Remove width and height since they're handled by Icon.
4. Remove any hardcoded colors on the svg. If necessary, use `CurrentColor`.
5. Export the Icon in `./library/index.js`.
5. Export the Icon in `./library/index.js`.

View File

@ -1 +0,0 @@
export { withInstanceId } from '@wordpress/compose';

View File

@ -87,6 +87,9 @@ const getCoreConfig = ( options = {} ) => {
require.resolve(
'@babel/plugin-proposal-class-properties'
),
require.resolve(
'@babel/plugin-proposal-nullish-coalescing-operator'
),
].filter( Boolean ),
},
},
@ -194,6 +197,9 @@ const getMainConfig = ( options = {} ) => {
require.resolve(
'@babel/plugin-proposal-class-properties'
),
require.resolve(
'@babel/plugin-proposal-nullish-coalescing-operator'
),
].filter( Boolean ),
},
},
@ -317,6 +323,9 @@ const getFrontConfig = ( options = {} ) => {
require.resolve(
'@babel/plugin-proposal-class-properties'
),
require.resolve(
'@babel/plugin-proposal-nullish-coalescing-operator'
),
isProduction
? require.resolve(
'babel-plugin-transform-react-remove-prop-types'
@ -434,6 +443,9 @@ const getPaymentsConfig = ( options = {} ) => {
require.resolve(
'@babel/plugin-proposal-class-properties'
),
require.resolve(
'@babel/plugin-proposal-nullish-coalescing-operator'
),
isProduction
? require.resolve(
'babel-plugin-transform-react-remove-prop-types'
@ -551,6 +563,9 @@ const getExtensionsConfig = ( options = {} ) => {
require.resolve(
'@babel/plugin-proposal-class-properties'
),
require.resolve(
'@babel/plugin-proposal-nullish-coalescing-operator'
),
isProduction
? require.resolve(
'babel-plugin-transform-react-remove-prop-types'

View File

@ -8,27 +8,28 @@
"packages": [
{
"name": "automattic/jetpack-autoloader",
"version": "2.10.1",
"version": "v2.10.3",
"source": {
"type": "git",
"url": "https://github.com/Automattic/jetpack-autoloader.git",
"reference": "20393c4677765c3e737dcb5aee7a3f7b90dce4b3"
"reference": "aab966d6f2c8fd6669d6f5b1378d8ced5fd665b4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/20393c4677765c3e737dcb5aee7a3f7b90dce4b3",
"reference": "20393c4677765c3e737dcb5aee7a3f7b90dce4b3",
"url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/aab966d6f2c8fd6669d6f5b1378d8ced5fd665b4",
"reference": "aab966d6f2c8fd6669d6f5b1378d8ced5fd665b4",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0"
},
"require-dev": {
"automattic/jetpack-changelogger": "^1.1",
"automattic/jetpack-changelogger": "^1.2",
"yoast/phpunit-polyfills": "0.2.0"
},
"type": "composer-plugin",
"extra": {
"autotagger": true,
"class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin",
"mirror-repo": "Automattic/jetpack-autoloader",
"changelogger": {
@ -52,22 +53,22 @@
],
"description": "Creates a custom autoloader for a plugin or theme.",
"support": {
"source": "https://github.com/Automattic/jetpack-autoloader/tree/2.10.1"
"source": "https://github.com/Automattic/jetpack-autoloader/tree/v2.10.3"
},
"time": "2021-03-30T15:15:59+00:00"
"time": "2021-05-25T16:35:16+00:00"
},
{
"name": "composer/installers",
"version": "v1.10.0",
"version": "v1.11.0",
"source": {
"type": "git",
"url": "https://github.com/composer/installers.git",
"reference": "1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d"
"reference": "ae03311f45dfe194412081526be2e003960df74b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/installers/zipball/1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d",
"reference": "1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d",
"url": "https://api.github.com/repos/composer/installers/zipball/ae03311f45dfe194412081526be2e003960df74b",
"reference": "ae03311f45dfe194412081526be2e003960df74b",
"shasum": ""
},
"require": {
@ -161,6 +162,7 @@
"majima",
"mako",
"mediawiki",
"miaoxing",
"modulework",
"modx",
"moodle",
@ -178,6 +180,7 @@
"sydes",
"sylius",
"symfony",
"tastyigniter",
"typo3",
"wordpress",
"yawik",
@ -186,7 +189,7 @@
],
"support": {
"issues": "https://github.com/composer/installers/issues",
"source": "https://github.com/composer/installers/tree/v1.10.0"
"source": "https://github.com/composer/installers/tree/v1.11.0"
},
"funding": [
{
@ -202,7 +205,7 @@
"type": "tidelift"
}
],
"time": "2021-01-14T11:07:16+00:00"
"time": "2021-04-28T06:42:17+00:00"
}
],
"packages-dev": [
@ -979,16 +982,16 @@
},
{
"name": "phpunit/php-file-iterator",
"version": "2.0.3",
"version": "2.0.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
"reference": "4b49fb70f067272b659ef0174ff9ca40fdaa6357"
"reference": "28af674ff175d0768a5a978e6de83f697d4a7f05"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/4b49fb70f067272b659ef0174ff9ca40fdaa6357",
"reference": "4b49fb70f067272b659ef0174ff9ca40fdaa6357",
"url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/28af674ff175d0768a5a978e6de83f697d4a7f05",
"reference": "28af674ff175d0768a5a978e6de83f697d4a7f05",
"shasum": ""
},
"require": {
@ -1027,7 +1030,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
"source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.3"
"source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.4"
},
"funding": [
{
@ -1035,7 +1038,7 @@
"type": "github"
}
],
"time": "2020-11-30T08:25:21+00:00"
"time": "2021-07-19T06:46:01+00:00"
},
{
"name": "phpunit/php-text-template",
@ -1143,16 +1146,16 @@
},
{
"name": "phpunit/php-token-stream",
"version": "3.1.2",
"version": "3.1.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
"reference": "472b687829041c24b25f475e14c2f38a09edf1c2"
"reference": "9c1da83261628cb24b6a6df371b6e312b3954768"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/472b687829041c24b25f475e14c2f38a09edf1c2",
"reference": "472b687829041c24b25f475e14c2f38a09edf1c2",
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9c1da83261628cb24b6a6df371b6e312b3954768",
"reference": "9c1da83261628cb24b6a6df371b6e312b3954768",
"shasum": ""
},
"require": {
@ -1190,7 +1193,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-token-stream/issues",
"source": "https://github.com/sebastianbergmann/php-token-stream/tree/3.1.2"
"source": "https://github.com/sebastianbergmann/php-token-stream/tree/3.1.3"
},
"funding": [
{
@ -1199,7 +1202,7 @@
}
],
"abandoned": true,
"time": "2020-11-30T08:38:46+00:00"
"time": "2021-07-26T12:15:06+00:00"
},
{
"name": "phpunit/phpunit",
@ -1904,6 +1907,7 @@
"type": "github"
}
],
"abandoned": true,
"time": "2020-11-30T07:30:19+00:00"
},
{
@ -2011,16 +2015,16 @@
},
{
"name": "symfony/polyfill-ctype",
"version": "v1.22.1",
"version": "v1.23.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
"reference": "c6c942b1ac76c82448322025e084cadc56048b4e"
"reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e",
"reference": "c6c942b1ac76c82448322025e084cadc56048b4e",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce",
"reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce",
"shasum": ""
},
"require": {
@ -2032,7 +2036,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.22-dev"
"dev-main": "1.23-dev"
},
"thanks": {
"name": "symfony/polyfill",
@ -2070,7 +2074,7 @@
"portable"
],
"support": {
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.1"
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0"
},
"funding": [
{
@ -2086,20 +2090,20 @@
"type": "tidelift"
}
],
"time": "2021-01-07T16:49:33+00:00"
"time": "2021-02-19T12:13:01+00:00"
},
{
"name": "theseer/tokenizer",
"version": "1.2.0",
"version": "1.2.1",
"source": {
"type": "git",
"url": "https://github.com/theseer/tokenizer.git",
"reference": "75a63c33a8577608444246075ea0af0d052e452a"
"reference": "34a41e998c2183e22995f158c581e7b5e755ab9e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a",
"reference": "75a63c33a8577608444246075ea0af0d052e452a",
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e",
"reference": "34a41e998c2183e22995f158c581e7b5e755ab9e",
"shasum": ""
},
"require": {
@ -2128,7 +2132,7 @@
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
"support": {
"issues": "https://github.com/theseer/tokenizer/issues",
"source": "https://github.com/theseer/tokenizer/tree/master"
"source": "https://github.com/theseer/tokenizer/tree/1.2.1"
},
"funding": [
{
@ -2136,7 +2140,7 @@
"type": "github"
}
],
"time": "2020-07-12T23:59:07+00:00"
"time": "2021-07-28T10:34:58+00:00"
},
{
"name": "webmozart/assert",

File diff suppressed because it is too large Load Diff

View File

@ -78,15 +78,15 @@
"@babel/preset-env": "7.14.9",
"@babel/preset-typescript": "7.14.5",
"@octokit/graphql": "4.6.4",
"@storybook/addon-a11y": "6.1.18",
"@storybook/addon-actions": "6.1.18",
"@storybook/addon-docs": "6.1.18",
"@storybook/addon-knobs": "6.2.9",
"@storybook/addon-links": "6.1.18",
"@storybook/addon-storysource": "6.1.18",
"@storybook/addon-viewport": "6.1.18",
"@storybook/addons": "6.1.18",
"@storybook/react": "6.1.18",
"@storybook/addon-a11y": "6.3.6",
"@storybook/addon-actions": "6.3.6",
"@storybook/addon-docs": "6.3.6",
"@storybook/addon-knobs": "6.3.0",
"@storybook/addon-links": "6.3.6",
"@storybook/addon-storysource": "6.3.6",
"@storybook/addon-viewport": "6.3.6",
"@storybook/addons": "6.3.6",
"@storybook/react": "6.3.6",
"@testing-library/jest-dom": "5.14.1",
"@testing-library/react": "11.2.7",
"@testing-library/react-hooks": "5.1.3",
@ -109,22 +109,21 @@
"@woocommerce/e2e-utils": "0.1.5",
"@woocommerce/eslint-plugin": "1.2.0",
"@woocommerce/woocommerce-rest-api": "1.0.1",
"@wordpress/api-fetch": "3.23.1",
"@wordpress/api-fetch": "5.2.1",
"@wordpress/babel-preset-default": "4.18.1",
"@wordpress/base-styles": "3.2.0",
"@wordpress/blocks": "6.22.0",
"@wordpress/browserslist-config": "2.7.0",
"@wordpress/components": "11.1.1",
"@wordpress/data-controls": "1.20.8",
"@wordpress/dependency-extraction-webpack-plugin": "2.8.0",
"@wordpress/dom": "^3.1.2",
"@wordpress/e2e-test-utils": "^5.1.2",
"@wordpress/editor": "9.22.0",
"@wordpress/element": "2.17.1",
"@wordpress/env": "4.0.2",
"@wordpress/html-entities": "2.8.0",
"@wordpress/i18n": "3.15.0",
"@wordpress/is-shallow-equal": "3.0.1",
"@wordpress/blocks": "8.0.0",
"@wordpress/browserslist-config": "3.0.3",
"@wordpress/components": "13.0.0",
"@wordpress/data-controls": "1.21.0",
"@wordpress/dependency-extraction-webpack-plugin": "3.2.1",
"@wordpress/dom": "3.2.1",
"@wordpress/e2e-test-utils": "5.4.1",
"@wordpress/element": "3.1.0",
"@wordpress/env": "4.0.3",
"@wordpress/html-entities": "3.2.1",
"@wordpress/i18n": "4.2.1",
"@wordpress/is-shallow-equal": "4.2.0",
"@wordpress/scripts": "13.0.1",
"autoprefixer": "10.3.1",
"axios": "0.21.1",
@ -183,7 +182,6 @@
"dependencies": {
"@stripe/react-stripe-js": "1.4.1",
"@stripe/stripe-js": "1.16.0",
"@types/wordpress-components": "npm:@types/wordpress__components@9.8.6",
"@woocommerce/components": "6.2.0",
"@wordpress/autop": "2.9.0",
"@wordpress/deprecated": "2.9.0",
@ -203,8 +201,7 @@
"reakit": "1.3.8",
"trim-html": "0.1.9",
"use-debounce": "3.4.3",
"wordpress-components": "npm:@wordpress/components@11.1.5",
"wordpress-compose": "npm:@wordpress/compose@3.23.1"
"wordpress-components": "npm:@wordpress/components@11.1.5"
},
"husky": {
"hooks": {