Update ProductsControl to use API search when product catalog is large (https://github.com/woocommerce/woocommerce-blocks/pull/515)

* Move query path into constant

* Add catalog size as a preloaded setting

* Pass a search callback to SearchListControl

This will limit the number of products loaded, and update the product list via an API call, when there are over 200 products

* Extract the API requests into a separate file

* Fix proptype warning

* Only trigger the selected request if there are selected products

* Add new `@wordpress/*` dependencies from wc package bumps

* Move the "large catalog" check to the server side

* Update to components@2.0.0
This commit is contained in:
Kelly Dwan 2019-04-12 11:47:29 -04:00 committed by GitHub
parent 9eba0d41f9
commit 3920836287
6 changed files with 357 additions and 381 deletions

View File

@ -2,13 +2,16 @@
* External dependencies
*/
import { __, _n, sprintf } from '@wordpress/i18n';
import { addQueryArgs } from '@wordpress/url';
import apiFetch from '@wordpress/api-fetch';
import { Component, Fragment } from '@wordpress/element';
import { find } from 'lodash';
import { debounce, find } from 'lodash';
import PropTypes from 'prop-types';
import { SearchListControl } from '@woocommerce/components';
/**
* Internal dependencies
*/
import { isLargeCatalog, getProducts } from './utils';
class ProductsControl extends Component {
constructor() {
super( ...arguments );
@ -16,16 +19,25 @@ class ProductsControl extends Component {
list: [],
loading: true,
};
this.debouncedOnSearch = debounce( this.onSearch.bind( this ), 400 );
}
componentDidMount() {
apiFetch( {
path: addQueryArgs( '/wc-blocks/v1/products', {
per_page: -1,
catalog_visibility: 'visible',
status: 'publish',
} ),
} )
const { selected } = this.props;
getProducts( { selected } )
.then( ( list ) => {
this.setState( { list, loading: false } );
} )
.catch( () => {
this.setState( { list: [], loading: false } );
} );
}
onSearch( search ) {
const { selected } = this.props;
getProducts( { selected, search } )
.then( ( list ) => {
this.setState( { list, loading: false } );
} )
@ -72,6 +84,7 @@ class ProductsControl extends Component {
list={ list }
isLoading={ loading }
selected={ selected.map( ( id ) => find( list, { id } ) ).filter( Boolean ) }
onSearch={ isLargeCatalog ? this.debouncedOnSearch : null }
onChange={ onChange }
messages={ messages }
/>

View File

@ -0,0 +1,45 @@
/**
* External dependencies
*/
import { addQueryArgs } from '@wordpress/url';
import apiFetch from '@wordpress/api-fetch';
import { flatten, uniqBy } from 'lodash';
export const isLargeCatalog = wc_product_block_data.isLargeCatalog || false;
const getProductsRequests = ( { selected = [], search } ) => {
const requests = [
addQueryArgs( '/wc-blocks/v1/products', {
per_page: isLargeCatalog ? 100 : -1,
catalog_visibility: 'visible',
status: 'publish',
search,
} ),
];
// If we have a large catalog, we might not get all selected products in the first page.
if ( isLargeCatalog && selected.length ) {
requests.push(
addQueryArgs( '/wc-blocks/v1/products', {
catalog_visibility: 'visible',
status: 'publish',
include: selected,
} )
);
}
return requests;
};
/**
* Get a promise that resolves to a list of products from the API.
*
* @param {object} - A query object with the list of selected products and search term.
*/
export const getProducts = ( { selected = [], search } ) => {
const requests = getProductsRequests( { selected, search } );
return Promise.all( requests.map( ( path ) => apiFetch( { path } ) ) ).then( ( data ) => {
return uniqBy( flatten( data ), 'id' );
} );
};

View File

@ -118,8 +118,11 @@ class WGPB_Block_Library {
'wp-components',
'wp-compose',
'wp-data',
'wp-date',
'wp-dom',
'wp-element',
'wp-editor',
'wp-hooks',
'wp-i18n',
'wp-url',
'lodash',
@ -242,7 +245,9 @@ class WGPB_Block_Library {
*/
public static function print_script_settings() {
global $wp_locale;
$code = get_woocommerce_currency();
$code = get_woocommerce_currency();
$product_counts = wp_count_posts( 'product' );
// NOTE: wcSettings is not used directly, it's only for @woocommerce/components
//
// Settings and variables can be passed here for access in the app.
@ -283,6 +288,7 @@ class WGPB_Block_Library {
'placeholderImgSrc' => wc_placeholder_img_src(),
'min_height' => wc_get_theme_support( 'featured_block::min_height', 500 ),
'default_height' => wc_get_theme_support( 'featured_block::default_height', 500 ),
'isLargeCatalog' => $product_counts->publish > 200,
);
?>
<script type="text/javascript">

View File

@ -1239,18 +1239,18 @@
}
},
"@babel/runtime-corejs2": {
"version": "7.3.1",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.3.1.tgz",
"integrity": "sha512-YpO13776h3e6Wy8dl2J8T9Qwlvopr+b4trCEhHE+yek6yIqV8sx6g3KozdHMbXeBpjosbPi+Ii5Z7X9oXFHUKA==",
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.4.3.tgz",
"integrity": "sha512-anTLTF7IK8Hd5f73zpPzt875I27UaaTWARJlfMGgnmQhvEe1uNHQRKBUbXL0Gc0VEYiVzsHsTPso5XdK8NGvFg==",
"requires": {
"core-js": "^2.5.7",
"regenerator-runtime": "^0.12.0"
"core-js": "^2.6.5",
"regenerator-runtime": "^0.13.2"
},
"dependencies": {
"regenerator-runtime": {
"version": "0.12.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz",
"integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg=="
"version": "0.13.2",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz",
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA=="
}
}
},
@ -1938,25 +1938,25 @@
}
},
"@woocommerce/components": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/@woocommerce/components/-/components-1.6.0.tgz",
"integrity": "sha512-jpISnuBl0Nbh5cMPvsMzIQosY6T6IlQMsCE+mIM1/yRVN0NfLtoEQ95rAQh1kwDnHR7ptwji4en13hsEF5twSA==",
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@woocommerce/components/-/components-2.0.0.tgz",
"integrity": "sha512-ZwPVNBGiuRjPeGo1TQ6xmgmEwkQNFLH8cPxMfOvnsm7z/GdHr/a9rQQLoHTynsgklp8z/AOTvxof4Y4ir3Fb9Q==",
"requires": {
"@babel/runtime-corejs2": "7.3.1",
"@woocommerce/csv-export": "^1.0.3",
"@woocommerce/currency": "^1.1.0",
"@woocommerce/date": "^1.0.6",
"@woocommerce/navigation": "^2.0.0",
"@wordpress/components": "7.0.5",
"@wordpress/compose": "3.0.0",
"@babel/runtime-corejs2": "7.4.3",
"@woocommerce/csv-export": "1.1.0",
"@woocommerce/currency": "1.1.1",
"@woocommerce/date": "1.0.7",
"@woocommerce/navigation": "2.1.0",
"@wordpress/components": "7.2.2",
"@wordpress/compose": "3.1.0",
"@wordpress/date": "3.0.1",
"@wordpress/element": "2.1.8",
"@wordpress/html-entities": "2.0.4",
"@wordpress/i18n": "3.1.0",
"@wordpress/keycodes": "2.0.5",
"@wordpress/viewport": "^2.0.7",
"classnames": "^2.2.5",
"core-js": "2.6.3",
"@wordpress/viewport": "2.3.0",
"classnames": "2.2.6",
"core-js": "2.6.5",
"d3-axis": "^1.0.12",
"d3-format": "^1.3.2",
"d3-scale": "^2.1.2",
@ -1967,81 +1967,16 @@
"emoji-flags": "^1.2.0",
"gridicons": "3.1.1",
"interpolate-components": "1.1.1",
"lodash": "^4.17.11",
"moment": "^2.22.1",
"prop-types": "15.6.2",
"qs": "^6.5.2",
"react-dates": "^18.0.4",
"react-router-dom": "4.3.1",
"react-transition-group": "^2.4.0"
"lodash": "4.17.11",
"memoize-one": "5.0.2",
"moment": "2.22.1",
"prop-types": "15.7.2",
"qs": "6.7.0",
"react-dates": "17.2.0",
"react-router-dom": "5.0.0",
"react-transition-group": "2.9.0"
},
"dependencies": {
"@wordpress/components": {
"version": "7.0.5",
"resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.0.5.tgz",
"integrity": "sha512-Csu2z4r8g3PwwLWWRMDeA//vQhHh05J9hyogE15dMS/6jrSKyl8lonGWvbnO2PSrMzKIHPeoXYzutUeNBjY1pg==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/a11y": "^2.0.2",
"@wordpress/api-fetch": "^2.2.7",
"@wordpress/compose": "^3.0.0",
"@wordpress/dom": "^2.0.8",
"@wordpress/element": "^2.1.8",
"@wordpress/hooks": "^2.0.4",
"@wordpress/i18n": "^3.1.0",
"@wordpress/is-shallow-equal": "^1.1.4",
"@wordpress/keycodes": "^2.0.5",
"@wordpress/rich-text": "^3.0.4",
"@wordpress/url": "^2.3.3",
"classnames": "^2.2.5",
"clipboard": "^2.0.1",
"diff": "^3.5.0",
"dom-scroll-into-view": "^1.2.1",
"lodash": "^4.17.10",
"memize": "^1.0.5",
"moment": "^2.22.1",
"mousetrap": "^1.6.2",
"re-resizable": "^4.7.1",
"react-click-outside": "^3.0.0",
"react-dates": "^17.1.1",
"rememo": "^3.0.0",
"tinycolor2": "^1.4.1",
"uuid": "^3.3.2"
},
"dependencies": {
"react-dates": {
"version": "17.2.0",
"resolved": "https://registry.npmjs.org/react-dates/-/react-dates-17.2.0.tgz",
"integrity": "sha512-RDlerU8DdRRrlYS0MQ7Z9igPWABGLDwz6+ykBNff67RM3Sset2TDqeuOr+R5o00Ggn5U47GeLsGcSDxlZd9cHw==",
"requires": {
"airbnb-prop-types": "^2.10.0",
"consolidated-events": "^1.1.1 || ^2.0.0",
"is-touch-device": "^1.0.1",
"lodash": "^4.1.1",
"object.assign": "^4.1.0",
"object.values": "^1.0.4",
"prop-types": "^15.6.1",
"react-addons-shallow-compare": "^15.6.2",
"react-moment-proptypes": "^1.6.0",
"react-outside-click-handler": "^1.2.0",
"react-portal": "^4.1.5",
"react-with-styles": "^3.2.0",
"react-with-styles-interface-css": "^4.0.2"
}
}
}
},
"@wordpress/compose": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-3.0.0.tgz",
"integrity": "sha512-jghgcLLKYQiIxjKp1q9FGcLlbeTKmYUIbYcru2AX7VF1uqp85oeRcuWsowrQUvomWHADcf09psBfDo2Gz/OH8A==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/element": "^2.1.8",
"@wordpress/is-shallow-equal": "^1.1.4",
"lodash": "^4.17.10"
}
},
"@wordpress/date": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/@wordpress/date/-/date-3.0.1.tgz",
@ -2087,11 +2022,6 @@
"lodash": "^4.17.10"
}
},
"core-js": {
"version": "2.6.3",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.3.tgz",
"integrity": "sha512-l00tmFFZOBHtYhN4Cz7k32VM7vTn3rE2ANjQDxdEN6zmXZ/xq1jQuutnmHvMG1ZJ7xd72+TA5YpUK8wz3rWsfQ=="
},
"gridicons": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/gridicons/-/gridicons-3.1.1.tgz",
@ -2100,75 +2030,58 @@
"prop-types": "^15.5.7"
}
},
"react-dates": {
"version": "18.5.0",
"resolved": "https://registry.npmjs.org/react-dates/-/react-dates-18.5.0.tgz",
"integrity": "sha512-5zWR3+ekkRzf740omDkO+N0JifsGGOeyvWwQ/7dFxSb2CqHUsOfKgvpXOiwd3hBm4yr+lelESI3b458BEOU5og==",
"moment": {
"version": "2.22.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.22.1.tgz",
"integrity": "sha512-shJkRTSebXvsVqk56I+lkb2latjBs8I+pc2TzWc545y2iFnSjm7Wg0QMh+ZWcdSLQyGEau5jI8ocnmkyTgr9YQ=="
},
"prop-types": {
"version": "15.7.2",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz",
"integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==",
"requires": {
"airbnb-prop-types": "^2.10.0",
"consolidated-events": "^1.1.1 || ^2.0.0",
"is-touch-device": "^1.0.1",
"lodash": "^4.1.1",
"object.assign": "^4.1.0",
"object.values": "^1.0.4",
"prop-types": "^15.6.1",
"react-addons-shallow-compare": "^15.6.2",
"react-moment-proptypes": "^1.6.0",
"react-outside-click-handler": "^1.2.0",
"react-portal": "^4.1.5",
"react-with-direction": "^1.3.0",
"react-with-styles": "^3.2.0",
"react-with-styles-interface-css": "^4.0.2"
"loose-envify": "^1.4.0",
"object-assign": "^4.1.1",
"react-is": "^16.8.1"
}
},
"qs": {
"version": "6.7.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
"integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
}
}
},
"@woocommerce/csv-export": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/@woocommerce/csv-export/-/csv-export-1.0.3.tgz",
"integrity": "sha512-oCFbGbdkfrdQdF2Lfw/oT4ZQez54HFvsRX+FxKtFUF6X+HqS7M3n+fMYfPfmj+043LOL/tZfUaW3hWNR49Gv3A==",
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@woocommerce/csv-export/-/csv-export-1.1.0.tgz",
"integrity": "sha512-9fd2CuZAHhhSp+x5lLbHyTkOKSokTkqdpjv2+0hETwK+VBHPRN294rHtCOvKpyI4JKfVxqteTI0q4E3LyEjEVA==",
"requires": {
"@babel/runtime-corejs2": "7.2.0",
"browser-filesaver": "^1.1.1",
"moment": "^2.22.2"
},
"dependencies": {
"@babel/runtime-corejs2": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.2.0.tgz",
"integrity": "sha512-kPfmKoRI8Hpo5ZJGACWyrc9Eq1j3ZIUpUAQT2yH045OuYpccFJ9kYA/eErwzOM2jeBG1sC8XX1nl1EArtuM8tg==",
"requires": {
"core-js": "^2.5.7",
"regenerator-runtime": "^0.12.0"
}
},
"regenerator-runtime": {
"version": "0.12.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz",
"integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg=="
}
"@babel/runtime-corejs2": "7.4.3",
"browser-filesaver": "1.1.1",
"moment": "2.22.2"
}
},
"@woocommerce/currency": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@woocommerce/currency/-/currency-1.1.0.tgz",
"integrity": "sha512-Kwsn8y9Me0w6z2q+eKh7i11vHstVUoh8nEC4ueo0iQyC2AqTS3ZDArI/Azz0fUTP2HnkILYf+HprU+jWSwTdgw==",
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@woocommerce/currency/-/currency-1.1.1.tgz",
"integrity": "sha512-g/KmmaNMa15MXC+ayVPysfbmSkRAUqaJzk6a+bd9JdR4fmdQCD4NsKkakSubvdT3Rbvsf2Hw0PE8oJpAumDoWg==",
"requires": {
"@babel/runtime": "^7.0.0",
"@woocommerce/number": "^1.0.1",
"lodash": "^4.17.11"
"@babel/runtime-corejs2": "7.4.3",
"@woocommerce/number": "1.0.2",
"lodash": "4.17.11"
}
},
"@woocommerce/date": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/@woocommerce/date/-/date-1.0.6.tgz",
"integrity": "sha512-lCLpxuDj5n69hXzsWI1Q/zgId4yAgnZqfKEHf/vWRsfhrExhazha9DOctJxbbsremyTr7r0CCUho+50EOBz1vw==",
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/@woocommerce/date/-/date-1.0.7.tgz",
"integrity": "sha512-yTNMjrESy5RSmasCjoZiKp2Zs5UAF4115c6BPHozjUEmgHtgXQykHUpr0ijY2ZhNb0Jgm1Zgj92MdIpytccqug==",
"requires": {
"@babel/runtime": "^7.0.0",
"@babel/runtime-corejs2": "7.4.3",
"@wordpress/date": "3.0.1",
"@wordpress/i18n": "3.1.0",
"lodash": "^4.17.11",
"moment": "^2.22.2"
"lodash": "4.17.11",
"moment": "2.22.2"
},
"dependencies": {
"@wordpress/date": {
@ -2197,70 +2110,31 @@
}
},
"@woocommerce/navigation": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@woocommerce/navigation/-/navigation-2.0.0.tgz",
"integrity": "sha512-FHF/Nv9cO2q2k+f3xL3oNozwhqgeIWJ+2sXYjaFR3XwXvupt9kqmXu1MH6CN2foJ6xNsywaf4uU/1xj95L7MSA==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@woocommerce/navigation/-/navigation-2.1.0.tgz",
"integrity": "sha512-lxw6OQkP4mOiOIButbyOPIFLIgABkrgJEbdGi1N6+VhyWKbGsB1elKukRi7bo57FK+p/+bRFiqeDU+FeusFkcA==",
"requires": {
"@babel/runtime": "^7.0.0",
"history": "4.7.2",
"lodash": "^4.17.11",
"qs": "^6.5.2"
"@babel/runtime-corejs2": "7.4.3",
"history": "4.9.0",
"lodash": "4.17.11",
"qs": "6.7.0"
},
"dependencies": {
"qs": {
"version": "6.7.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
"integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
}
}
},
"@woocommerce/number": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@woocommerce/number/-/number-1.0.1.tgz",
"integrity": "sha512-ASlj/ApSX0ELZRd3TwGwJGtIPX7hJ5Z/GaRf2FV4wt+SxSHiEbbxOO9ryvjkUtqdCl/aeTzAiQb1XsQvO+eDtQ==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@woocommerce/number/-/number-1.0.2.tgz",
"integrity": "sha512-3cnKiuTfrtzs+CH2PSbdr3ksVIO3gCMWKArzvIDe62FG9oDM8jQ9M+leeu0sC2Tva2Nc65h+3H4YEICaPBmwaw==",
"requires": {
"@babel/runtime-corejs2": "7.1.5",
"locutus": "^2.0.10",
"lodash": "^4.17.11"
},
"dependencies": {
"@babel/runtime-corejs2": {
"version": "7.1.5",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.1.5.tgz",
"integrity": "sha512-WsYRwQsFhVmxkAqwypPTZyV9GpkqMEaAr2zOItOmqSX2GBFaI+eq98CN81e13o0zaUKJOQGYyjhNVqj56nnkYg==",
"requires": {
"core-js": "^2.5.7",
"regenerator-runtime": "^0.12.0"
}
},
"regenerator-runtime": {
"version": "0.12.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz",
"integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg=="
}
}
},
"@wordpress/a11y": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@wordpress/a11y/-/a11y-2.0.2.tgz",
"integrity": "sha512-YtO4GG5XQX/y+y9/9nnO7IZfyLfgSLXyRgvt9Om4LTUULF4VClol+x00zuQHcHUdQwINMnAkcG51ni9dkXbxgg==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/dom-ready": "^2.0.2"
}
},
"@wordpress/api-fetch": {
"version": "2.2.8",
"resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.8.tgz",
"integrity": "sha512-mbdP9GvDe8Ojv8cobk30mfg2btEZDQEe7IgO+rGSlvVlHC88U8cc2VgOLNX6c9/6/sCvkoGd4Tsy85VbdTlTXw==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/hooks": "^2.0.5",
"@wordpress/i18n": "^3.1.1",
"@wordpress/url": "^2.3.3"
},
"dependencies": {
"@wordpress/hooks": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-2.0.5.tgz",
"integrity": "sha512-EcE7lm5p6f3qB6nJClY3LPejFpbjo66b6j4ihgLLgrWMKqs4lLPGS2OzK4KyP0O52cofKj+Tv/wBaAiYSufFcA==",
"requires": {
"@babel/runtime": "^7.0.0"
}
}
"@babel/runtime-corejs2": "7.4.3",
"locutus": "2.0.10",
"lodash": "4.17.11"
}
},
"@wordpress/autop": {
@ -2776,7 +2650,6 @@
"version": "7.2.2",
"resolved": "https://registry.npmjs.org/@wordpress/components/-/components-7.2.2.tgz",
"integrity": "sha512-EChv0PPWia8+OXq9m4zRaKRgc1mvC1wl24jRxqJ2sfn3OFlnCn5oBo77VZcDfdQiRK2Sn+nfMbA+4pbgCS38Mg==",
"dev": true,
"requires": {
"@babel/runtime": "^7.3.1",
"@wordpress/a11y": "^2.2.0",
@ -2810,7 +2683,6 @@
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.3.tgz",
"integrity": "sha512-9lsJwJLxDh/T3Q3SZszfWOTkk3pHbkmH+3KY+zwIDmsNlxsumuhS2TH3NIpktU4kNvfzy+k3eLT7aTJSPTo0OA==",
"dev": true,
"requires": {
"regenerator-runtime": "^0.13.2"
}
@ -2819,7 +2691,6 @@
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@wordpress/a11y/-/a11y-2.2.0.tgz",
"integrity": "sha512-cqVCKKGec+7++WTakp1KuK/s0aa054nycsEn9ZlB/kvKHpsveuR00qjeDRLbrXD3JifEusvGyx8GAHRPii+g3A==",
"dev": true,
"requires": {
"@babel/runtime": "^7.3.1",
"@wordpress/dom-ready": "^2.2.0"
@ -2829,7 +2700,6 @@
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-3.1.2.tgz",
"integrity": "sha512-QgvgNrFwCgKBoY7/1aNyYFV9lcKdI9RStVkQAitdhvpNKom8mydVf0Tm2zmC/rAx+NMZ65Gn8FoOMCMV5l/Yng==",
"dev": true,
"requires": {
"@babel/runtime": "^7.3.1",
"@wordpress/i18n": "^3.3.0",
@ -2840,7 +2710,6 @@
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-3.2.0.tgz",
"integrity": "sha512-bwDSMABvTi3AXqsNNi29h3T4nCtiwuBm4XO4svp6nRTFnVgxrfZXjqHrnuv0qimg1UP35WSXKO6hrO/QqTkW8g==",
"dev": true,
"requires": {
"@babel/runtime": "^7.3.1",
"@wordpress/element": "^2.3.0",
@ -2852,7 +2721,6 @@
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.2.2.tgz",
"integrity": "sha512-p0y6sb0E1+lsAeoYOopK9D2LSco1Ycc+8Ps2uqZssK5MKawU+ntBWEwX5nW9gzsRoqhpzQwXz711vh0/+lxnAQ==",
"dev": true,
"requires": {
"@babel/runtime": "^7.3.1",
"lodash": "^4.17.11"
@ -2862,7 +2730,6 @@
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@wordpress/dom-ready/-/dom-ready-2.2.0.tgz",
"integrity": "sha512-tPmPcc7T+BGXS7WyIJ+hWzMR5YXBjQIWNWcFMcqMxjgm5MbTWnjvrv4o4FJ7evuWJlTa+4Rw2Tjc0iHAqr4aVA==",
"dev": true,
"requires": {
"@babel/runtime": "^7.3.1"
}
@ -2871,7 +2738,6 @@
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-2.2.0.tgz",
"integrity": "sha512-pzLDgcQOPCU4xSN0yuGoPd9xeNW2MnB2o7O52qaFZ2DSmf9tN+OkPDg7lKsg7SEds0J7GngBS8tu+a4Lqywy/w==",
"dev": true,
"requires": {
"@babel/runtime": "^7.3.1"
}
@ -2880,7 +2746,6 @@
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@wordpress/is-shallow-equal/-/is-shallow-equal-1.2.0.tgz",
"integrity": "sha512-WLB1sEz0xjtzJnorJTSuEpaYjo0E9zir0lJGwRjhYHlTjzngTakFPlifcvPVm7saA9KR9/t82jxOENAIWFzftQ==",
"dev": true,
"requires": {
"@babel/runtime": "^7.3.1"
}
@ -2889,7 +2754,6 @@
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.5.0.tgz",
"integrity": "sha512-DADAoSMHHheeanC12KF3MhAJCqp0Y3ZQBqWVIEwW2VH9EmRUY4mIdfOHoCXhu+1SU7LmMjvWvzb0j778C0mwlw==",
"dev": true,
"requires": {
"@babel/runtime": "^7.3.1",
"qs": "^6.5.2"
@ -2898,29 +2762,33 @@
"regenerator-runtime": {
"version": "0.13.2",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz",
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA==",
"dev": true
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA=="
}
}
},
"@wordpress/compose": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-3.0.1.tgz",
"integrity": "sha512-A58zlkYzx4KJ8Z4mV8rIPMECZueWFmiV5VUbgfxxcU0SL8K9yJPuEcsO7pm/MfLPpw919BiGlxr5CMJwJEb70w==",
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-3.1.0.tgz",
"integrity": "sha512-egpkE+nAoMMAmIvUXr5PK1aXDe2I8yJptiki81JK8m396IZw+JR9ZWercGLIwwa+s6V2wx+y+9uQOA8aj0HsMw==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/element": "^2.1.9",
"@wordpress/is-shallow-equal": "^1.1.5",
"lodash": "^4.17.10"
"@babel/runtime": "^7.3.1",
"@wordpress/element": "^2.2.0",
"@wordpress/is-shallow-equal": "^1.2.0",
"lodash": "^4.17.11"
},
"dependencies": {
"@wordpress/is-shallow-equal": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/@wordpress/is-shallow-equal/-/is-shallow-equal-1.1.5.tgz",
"integrity": "sha512-8sRM/lg6ISi4jo7MBycSGRkUCsDP/k7kIXT7Au7m6XSuyfLGTuFQjFCUIufXmKsS08ALsp0I9PN6iCFMyirBSw==",
"@babel/runtime": {
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.3.tgz",
"integrity": "sha512-9lsJwJLxDh/T3Q3SZszfWOTkk3pHbkmH+3KY+zwIDmsNlxsumuhS2TH3NIpktU4kNvfzy+k3eLT7aTJSPTo0OA==",
"requires": {
"@babel/runtime": "^7.0.0"
"regenerator-runtime": "^0.13.2"
}
},
"regenerator-runtime": {
"version": "0.13.2",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz",
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA=="
}
}
},
@ -3019,39 +2887,46 @@
}
},
"@wordpress/data": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.2.1.tgz",
"integrity": "sha512-HI2kDDEnwb27c2JtkH7pgiVs5QHVmaqQ4fpb38TYiF+EGKAxEhXv+jOqJAGlumEUru3BAzxVXDvhZlhXLNaxVA==",
"version": "4.4.0",
"resolved": "https://registry.npmjs.org/@wordpress/data/-/data-4.4.0.tgz",
"integrity": "sha512-2eWcjlkx0KoGDOsGnCa7XSoB4yDkFkm1UuwmFcGMn+1qnRzgAmZ07GGFJWgk7wKxgihj9tgwFcZ2a+dVJXQxuw==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/compose": "^3.0.1",
"@wordpress/element": "^2.1.9",
"@wordpress/is-shallow-equal": "^1.1.5",
"@wordpress/redux-routine": "^3.0.4",
"@babel/runtime": "^7.3.1",
"@wordpress/compose": "^3.2.0",
"@wordpress/element": "^2.3.0",
"@wordpress/is-shallow-equal": "^1.2.0",
"@wordpress/priority-queue": "^1.1.0",
"@wordpress/redux-routine": "^3.2.0",
"equivalent-key-map": "^0.2.2",
"is-promise": "^2.1.0",
"lodash": "^4.17.10",
"lodash": "^4.17.11",
"redux": "^4.0.0",
"turbo-combine-reducers": "^1.0.2"
},
"dependencies": {
"@wordpress/is-shallow-equal": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/@wordpress/is-shallow-equal/-/is-shallow-equal-1.1.5.tgz",
"integrity": "sha512-8sRM/lg6ISi4jo7MBycSGRkUCsDP/k7kIXT7Au7m6XSuyfLGTuFQjFCUIufXmKsS08ALsp0I9PN6iCFMyirBSw==",
"@babel/runtime": {
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.3.tgz",
"integrity": "sha512-9lsJwJLxDh/T3Q3SZszfWOTkk3pHbkmH+3KY+zwIDmsNlxsumuhS2TH3NIpktU4kNvfzy+k3eLT7aTJSPTo0OA==",
"requires": {
"@babel/runtime": "^7.0.0"
"regenerator-runtime": "^0.13.2"
}
},
"@wordpress/redux-routine": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/@wordpress/redux-routine/-/redux-routine-3.0.4.tgz",
"integrity": "sha512-wkVkyW3k3l5vjW27T/SW3BQ/2ckT3mLZNXII8qhNMmZfCFc6xjb8+3PhQQX/abKz1sVTjnNLKZKQFIrZSklC2w==",
"@wordpress/compose": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-3.2.0.tgz",
"integrity": "sha512-bwDSMABvTi3AXqsNNi29h3T4nCtiwuBm4XO4svp6nRTFnVgxrfZXjqHrnuv0qimg1UP35WSXKO6hrO/QqTkW8g==",
"requires": {
"@babel/runtime": "^7.0.0",
"is-promise": "^2.1.0",
"rungen": "^0.3.2"
"@babel/runtime": "^7.3.1",
"@wordpress/element": "^2.3.0",
"@wordpress/is-shallow-equal": "^1.2.0",
"lodash": "^4.17.11"
}
},
"regenerator-runtime": {
"version": "0.13.2",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz",
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA=="
}
}
},
@ -3119,23 +2994,6 @@
}
}
},
"@wordpress/dom": {
"version": "2.0.8",
"resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.8.tgz",
"integrity": "sha512-Nz1k1tB/NXcfpAWUL+mTtEzxC6Dp6UAavIzJVQgAq8gsdayh7F9lgkyyL5MWLirAKkGuhztwMrSle9s5HzrTlw==",
"requires": {
"@babel/runtime": "^7.0.0",
"lodash": "^4.17.10"
}
},
"@wordpress/dom-ready": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@wordpress/dom-ready/-/dom-ready-2.0.2.tgz",
"integrity": "sha512-SENsbiIesC0Oz6qTLHpYxo6aW9/NgFYkXq4TGjUBA5LLNJmBf9AhPKX9rpgh8Y3+DKVobMdX8IKhfRrQYiqRiw==",
"requires": {
"@babel/runtime": "^7.0.0"
}
},
"@wordpress/editor": {
"version": "9.2.2",
"resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.2.2.tgz",
@ -3351,11 +3209,26 @@
}
},
"@wordpress/escape-html": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-1.0.1.tgz",
"integrity": "sha512-ywRXV6WHbUWlqEDXQcWLmyG+/oBw8myTp+KTbkRRF2EJvx/cqL9XF55I2+aeZ5Q0VYRXXGHp6Tp1iRfJjr/rNQ==",
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-1.2.0.tgz",
"integrity": "sha512-IILebUBTFADag62cwxYcLFYoKeHRpDZiKwwhabiWd2sGoSdci1cqLxmLbE8iMcMQru7ALptQgQmhZcuX87DEwg==",
"requires": {
"@babel/runtime": "^7.0.0"
"@babel/runtime": "^7.3.1"
},
"dependencies": {
"@babel/runtime": {
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.3.tgz",
"integrity": "sha512-9lsJwJLxDh/T3Q3SZszfWOTkk3pHbkmH+3KY+zwIDmsNlxsumuhS2TH3NIpktU4kNvfzy+k3eLT7aTJSPTo0OA==",
"requires": {
"regenerator-runtime": "^0.13.2"
}
},
"regenerator-runtime": {
"version": "0.13.2",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz",
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA=="
}
}
},
"@wordpress/eslint-plugin": {
@ -3505,14 +3378,6 @@
}
}
},
"@wordpress/hooks": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-2.0.5.tgz",
"integrity": "sha512-EcE7lm5p6f3qB6nJClY3LPejFpbjo66b6j4ihgLLgrWMKqs4lLPGS2OzK4KyP0O52cofKj+Tv/wBaAiYSufFcA==",
"requires": {
"@babel/runtime": "^7.0.0"
}
},
"@wordpress/html-entities": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-2.0.4.tgz",
@ -3550,11 +3415,26 @@
}
},
"@wordpress/is-shallow-equal": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/@wordpress/is-shallow-equal/-/is-shallow-equal-1.1.5.tgz",
"integrity": "sha512-8sRM/lg6ISi4jo7MBycSGRkUCsDP/k7kIXT7Au7m6XSuyfLGTuFQjFCUIufXmKsS08ALsp0I9PN6iCFMyirBSw==",
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@wordpress/is-shallow-equal/-/is-shallow-equal-1.2.0.tgz",
"integrity": "sha512-WLB1sEz0xjtzJnorJTSuEpaYjo0E9zir0lJGwRjhYHlTjzngTakFPlifcvPVm7saA9KR9/t82jxOENAIWFzftQ==",
"requires": {
"@babel/runtime": "^7.0.0"
"@babel/runtime": "^7.3.1"
},
"dependencies": {
"@babel/runtime": {
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.3.tgz",
"integrity": "sha512-9lsJwJLxDh/T3Q3SZszfWOTkk3pHbkmH+3KY+zwIDmsNlxsumuhS2TH3NIpktU4kNvfzy+k3eLT7aTJSPTo0OA==",
"requires": {
"regenerator-runtime": "^0.13.2"
}
},
"regenerator-runtime": {
"version": "0.13.2",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz",
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA=="
}
}
},
"@wordpress/jest-console": {
@ -3596,7 +3476,6 @@
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-2.2.0.tgz",
"integrity": "sha512-UrsJuOlx4edjZMe37CdlaaAyZAiM/h4LE2UzQRdMp9e0nWU/pta6vQknqriTmyVIYyQT72dsKDAd97TbPhrMaA==",
"dev": true,
"requires": {
"@babel/runtime": "^7.3.1",
"@wordpress/i18n": "^3.3.0",
@ -3607,7 +3486,6 @@
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.3.tgz",
"integrity": "sha512-9lsJwJLxDh/T3Q3SZszfWOTkk3pHbkmH+3KY+zwIDmsNlxsumuhS2TH3NIpktU4kNvfzy+k3eLT7aTJSPTo0OA==",
"dev": true,
"requires": {
"regenerator-runtime": "^0.13.2"
}
@ -3615,8 +3493,7 @@
"regenerator-runtime": {
"version": "0.13.2",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz",
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA==",
"dev": true
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA=="
}
}
},
@ -4220,25 +4097,42 @@
}
}
},
"@wordpress/url": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.3.tgz",
"integrity": "sha512-WGqQjOyu02E7bJ77G8385GGjUYpvF8vDqZXXHW06/WRSb4nW6fmMIM65UWdBaYY5XecAkpglCqwd8DNbquLucQ==",
"requires": {
"@babel/runtime": "^7.0.0",
"qs": "^6.5.2"
}
},
"@wordpress/viewport": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.1.1.tgz",
"integrity": "sha512-9xxGvExINws+4FzoIzbjJCkl0iam4BW+YN8DWvZ09VO767U5P+5EvZAgZbvSUjs3XFEPaUU+DZHrXJSF/E9eSA==",
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.3.0.tgz",
"integrity": "sha512-AUFUX4E5kmtVZX6ELjCRKqlfrSS3uQ9u/jeIemxwp1fDq8EW76aAWScfN/fxVjiqYgI3z83C3fIRGde5rlMS4Q==",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/compose": "^3.0.1",
"@wordpress/data": "^4.2.1",
"@wordpress/element": "^2.1.9",
"lodash": "^4.17.10"
"@babel/runtime": "^7.3.1",
"@wordpress/compose": "^3.2.0",
"@wordpress/data": "^4.4.0",
"@wordpress/element": "^2.3.0",
"lodash": "^4.17.11"
},
"dependencies": {
"@babel/runtime": {
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.3.tgz",
"integrity": "sha512-9lsJwJLxDh/T3Q3SZszfWOTkk3pHbkmH+3KY+zwIDmsNlxsumuhS2TH3NIpktU4kNvfzy+k3eLT7aTJSPTo0OA==",
"requires": {
"regenerator-runtime": "^0.13.2"
}
},
"@wordpress/compose": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-3.2.0.tgz",
"integrity": "sha512-bwDSMABvTi3AXqsNNi29h3T4nCtiwuBm4XO4svp6nRTFnVgxrfZXjqHrnuv0qimg1UP35WSXKO6hrO/QqTkW8g==",
"requires": {
"@babel/runtime": "^7.3.1",
"@wordpress/element": "^2.3.0",
"@wordpress/is-shallow-equal": "^1.2.0",
"lodash": "^4.17.11"
}
},
"regenerator-runtime": {
"version": "0.13.2",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz",
"integrity": "sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA=="
}
}
},
"@wordpress/wordcount": {
@ -4514,7 +4408,7 @@
},
"array-equal": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz",
"resolved": "http://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz",
"integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=",
"dev": true
},
@ -6840,6 +6734,15 @@
"sha.js": "^2.4.8"
}
},
"create-react-context": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/create-react-context/-/create-react-context-0.2.3.tgz",
"integrity": "sha512-CQBmD0+QGgTaxDL3OX1IDXYqjkp2It4RIbcb99jS6AEg27Ga+a9G3JtK6SIu0HBwPLZlmwt9F7UwWA4Bn92Rag==",
"requires": {
"fbjs": "^0.8.0",
"gud": "^1.0.0"
}
},
"cross-env": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.0.tgz",
@ -7291,9 +7194,9 @@
"integrity": "sha512-EYVwBxQGEjLCKF2pJ4+yrErskDnz5v403qvAid96cNdCMr8rmCYfY5RGzWz24mdIbxmDf6/4EAH+K9xperD5jg=="
},
"d3-shape": {
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.4.tgz",
"integrity": "sha512-izaz4fOpOnY3CD17hkZWNxbaN70sIGagLR/5jb6RS96Y+6VqX+q1BQf1av6QSBRdfULi3Gb8Js4CzG4+KAPjMg==",
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.5.tgz",
"integrity": "sha512-VKazVR3phgD+MUCldapHD7P9kcrvPcexeX/PkMJmkUov4JM8IxsSg1DvbYoYich9AtdTsa5nNk2++ImPiDiSxg==",
"requires": {
"d3-path": "1"
}
@ -9399,7 +9302,7 @@
},
"get-stream": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
"resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
"integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=",
"dev": true
},
@ -9599,6 +9502,11 @@
"integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=",
"dev": true
},
"gud": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/gud/-/gud-1.0.0.tgz",
"integrity": "sha512-zGEOVKFM5sVPPrYs7J5/hYEw2Pof8KCyOwyhG8sAF26mCAeUFAcYPu1mwB7hhpIP29zOIBaDqwuHdLp0jvZXjw=="
},
"gzip-size": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-5.0.0.tgz",
@ -9766,15 +9674,16 @@
"dev": true
},
"history": {
"version": "4.7.2",
"resolved": "https://registry.npmjs.org/history/-/history-4.7.2.tgz",
"integrity": "sha512-1zkBRWW6XweO0NBcjiphtVJVsIQ+SXF29z9DVkceeaSLVMFXHool+fdCZD4spDCfZJCILPILc3bm7Bc+HRi0nA==",
"version": "4.9.0",
"resolved": "https://registry.npmjs.org/history/-/history-4.9.0.tgz",
"integrity": "sha512-H2DkjCjXf0Op9OAr6nJ56fcRkTSNrUiv41vNJ6IswJjif6wlpZK0BTfFbi7qK9dXLSYZxkq5lBsj3vUjlYBYZA==",
"requires": {
"invariant": "^2.2.1",
"@babel/runtime": "^7.1.2",
"loose-envify": "^1.2.0",
"resolve-pathname": "^2.2.0",
"value-equal": "^0.4.0",
"warning": "^3.0.0"
"tiny-invariant": "^1.0.2",
"tiny-warning": "^1.0.0",
"value-equal": "^0.4.0"
}
},
"hmac-drbg": {
@ -10473,6 +10382,7 @@
"version": "2.2.4",
"resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
"integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
"dev": true,
"requires": {
"loose-envify": "^1.0.0"
}
@ -12858,6 +12768,11 @@
"resolved": "https://registry.npmjs.org/memize/-/memize-1.0.5.tgz",
"integrity": "sha512-Dm8Jhb5kiC4+ynYsVR4QDXKt+o2dfqGuY4hE2x+XlXZkdndlT80bJxfcMv5QGp/FCy6MhG7f5ElpmKPFKOSEpg=="
},
"memoize-one": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.0.2.tgz",
"integrity": "sha512-o7lldN4fs/axqctc03NF+PMhd2veRrWeJ2n2GjEzUPBD4F9rmNg4A+bQCACIzwjHJEXuYv4aFFMaH35KZfHUrw=="
},
"memory-fs": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz",
@ -15573,7 +15488,7 @@
},
"react-autosize-textarea": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/react-autosize-textarea/-/react-autosize-textarea-3.0.3.tgz",
"resolved": "http://registry.npmjs.org/react-autosize-textarea/-/react-autosize-textarea-3.0.3.tgz",
"integrity": "sha512-iOSZK7RUuJ+iEwkJ9rqYciqtjQgrG1CCRFL6h8Bk61kODnRyEq4tS74IgXpI1t4S6jBBZVm+6ugaU+tWTlVxXg==",
"dev": true,
"requires": {
@ -15594,7 +15509,6 @@
"version": "17.2.0",
"resolved": "https://registry.npmjs.org/react-dates/-/react-dates-17.2.0.tgz",
"integrity": "sha512-RDlerU8DdRRrlYS0MQ7Z9igPWABGLDwz6+ykBNff67RM3Sset2TDqeuOr+R5o00Ggn5U47GeLsGcSDxlZd9cHw==",
"dev": true,
"requires": {
"airbnb-prop-types": "^2.10.0",
"consolidated-events": "^1.1.1 || ^2.0.0",
@ -15625,8 +15539,7 @@
"react-is": {
"version": "16.8.4",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.8.4.tgz",
"integrity": "sha512-PVadd+WaUDOAciICm/J1waJaSvgq+4rHE/K70j0PFqKhkTBsPv/82UGQJNXAngz1fOQLLxI6z1sEDmJDQhCTAA==",
"dev": true
"integrity": "sha512-PVadd+WaUDOAciICm/J1waJaSvgq+4rHE/K70j0PFqKhkTBsPv/82UGQJNXAngz1fOQLLxI6z1sEDmJDQhCTAA=="
},
"react-lifecycles-compat": {
"version": "3.0.4",
@ -15661,50 +15574,44 @@
}
},
"react-router": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-4.3.1.tgz",
"integrity": "sha512-yrvL8AogDh2X42Dt9iknk4wF4V8bWREPirFfS9gLU1huk6qK41sg7Z/1S81jjTrGHxa3B8R3J6xIkDAA6CVarg==",
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-5.0.0.tgz",
"integrity": "sha512-6EQDakGdLG/it2x9EaCt9ZpEEPxnd0OCLBHQ1AcITAAx7nCnyvnzf76jKWG1s2/oJ7SSviUgfWHofdYljFexsA==",
"requires": {
"history": "^4.7.2",
"hoist-non-react-statics": "^2.5.0",
"invariant": "^2.2.4",
"@babel/runtime": "^7.1.2",
"create-react-context": "^0.2.2",
"history": "^4.9.0",
"hoist-non-react-statics": "^3.1.0",
"loose-envify": "^1.3.1",
"path-to-regexp": "^1.7.0",
"prop-types": "^15.6.1",
"warning": "^4.0.1"
"prop-types": "^15.6.2",
"react-is": "^16.6.0",
"tiny-invariant": "^1.0.2",
"tiny-warning": "^1.0.0"
},
"dependencies": {
"warning": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz",
"integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
"hoist-non-react-statics": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.0.tgz",
"integrity": "sha512-0XsbTXxgiaCDYDIWFcwkmerZPSwywfUqYmwT4jzewKTQSWoE6FCMoUVOeBJWK3E/CrWbxRG3m5GzY4lnIwGRBA==",
"requires": {
"loose-envify": "^1.0.0"
"react-is": "^16.7.0"
}
}
}
},
"react-router-dom": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-4.3.1.tgz",
"integrity": "sha512-c/MlywfxDdCp7EnB7YfPMOfMD3tOtIjrQlj/CKfNMBxdmpJP8xcz5P/UAFn3JbnQCNUxsHyVVqllF9LhgVyFCA==",
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.0.0.tgz",
"integrity": "sha512-wSpja5g9kh5dIteZT3tUoggjnsa+TPFHSMrpHXMpFsaHhQkm/JNVGh2jiF9Dkh4+duj4MKCkwO6H08u6inZYgQ==",
"requires": {
"history": "^4.7.2",
"invariant": "^2.2.4",
"@babel/runtime": "^7.1.2",
"history": "^4.9.0",
"loose-envify": "^1.3.1",
"prop-types": "^15.6.1",
"react-router": "^4.3.1",
"warning": "^4.0.1"
},
"dependencies": {
"warning": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz",
"integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
"requires": {
"loose-envify": "^1.0.0"
}
}
"prop-types": "^15.6.2",
"react-router": "5.0.0",
"tiny-invariant": "^1.0.2",
"tiny-warning": "^1.0.0"
}
},
"react-test-renderer": {
@ -15738,11 +15645,11 @@
}
},
"react-transition-group": {
"version": "2.5.3",
"resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-2.5.3.tgz",
"integrity": "sha512-2DGFck6h99kLNr8pOFk+z4Soq3iISydwOFeeEVPjTN6+Y01CmvbWmnN02VuTWyFdnRtIDPe+wy2q6Ui8snBPZg==",
"version": "2.9.0",
"resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-2.9.0.tgz",
"integrity": "sha512-+HzNTCHpeQyl4MJ/bdE0u6XRMe9+XG/+aL4mCxVN4DnPBQ0/5bfHWPDuOZUzYdMj94daZaZdCCc1Dzt9R/xSSg==",
"requires": {
"dom-helpers": "^3.3.1",
"dom-helpers": "^3.4.0",
"loose-envify": "^1.4.0",
"prop-types": "^15.6.2",
"react-lifecycles-compat": "^3.0.4"
@ -16362,7 +16269,7 @@
"dependencies": {
"minimist": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
"dev": true
}
@ -18274,6 +18181,11 @@
"resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.0.2.tgz",
"integrity": "sha512-2NM0auVBGft5tee/OxP4PI3d8WItkDM+fPnaRAVo6xTDI2knbz9eC5ArWGqtGlYqiH3RU5yMpdyTTO7MguC4ow=="
},
"tiny-invariant": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.0.4.tgz",
"integrity": "sha512-lMhRd/djQJ3MoaHEBrw8e2/uM4rs9YMNk0iOr8rHQ0QdbM7D4l0gFl3szKdeixrlyfm9Zqi4dxHCM2qVG8ND5g=="
},
"tiny-lr": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/tiny-lr/-/tiny-lr-1.1.1.tgz",
@ -18288,6 +18200,11 @@
"qs": "^6.4.0"
}
},
"tiny-warning": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.2.tgz",
"integrity": "sha512-rru86D9CpQRLvsFG5XFdy0KdLAvjdQDyZCsRcuu60WtzFylDM3eAWSxEVz5kzL2Gp544XiUvPbVKtOA/txLi9Q=="
},
"tinycolor2": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.4.1.tgz",
@ -19150,14 +19067,6 @@
"makeerror": "1.0.x"
}
},
"warning": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/warning/-/warning-3.0.0.tgz",
"integrity": "sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w=",
"requires": {
"loose-envify": "^1.0.0"
}
},
"watchpack": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz",

View File

@ -80,7 +80,7 @@
"npm": "6.9.0"
},
"dependencies": {
"@woocommerce/components": "1.6.0",
"@woocommerce/components": "2.0.0",
"gridicons": "3.2.0"
},
"husky": {

View File

@ -15,11 +15,14 @@ const externals = {
'@wordpress/components': { this: [ 'wp', 'components' ] },
'@wordpress/compose': { this: [ 'wp', 'compose' ] },
'@wordpress/data': { this: [ 'wp', 'data' ] },
'@wordpress/element': { this: [ 'wp', 'element' ] },
'@wordpress/dom': { this: [ 'wp', 'dom' ] },
'@wordpress/editor': { this: [ 'wp', 'editor' ] },
'@wordpress/element': { this: [ 'wp', 'element' ] },
'@wordpress/hooks': { this: [ 'wp', 'hooks' ] },
'@wordpress/i18n': { this: [ 'wp', 'i18n' ] },
'@wordpress/url': { this: [ 'wp', 'url' ] },
lodash: 'lodash',
moment: 'moment',
};
function findModuleMatch( module, match ) {