woocommerce/plugins/woocommerce-blocks/assets/js/utils
Darren Ethier 72f0ed470f Refactor: Introduce `wc-block-settings` bundle serving as `@woocommerce/settings` external. (https://github.com/woocommerce/woocommerce-blocks/pull/903)
* export new @woocommerce/settings external on `wc.blockSettings` global

- This handles reading data from the dom and assigning it to the global used in all packages dependent on `@woocommerce/settings` which is registered as an external pointing to the global.
- ensures that server data is only loaded on a route if needed.

* switch all direct imports of constants to use new `@woocommerce/settings` external

* enqueu new `wc-block-settings` script and attach inline data to it.

* fix test configuration and adjust test to use new external

* fix bad merge resolution after rebase

* switch constants import to `@woocommerce/settings` external after rebase

* reorder imports for convention

* improve method name
2019-08-22 16:56:47 -04:00
..
test Add tests to utils/products.js (https://github.com/woocommerce/woocommerce-blocks/pull/817) 2019-08-08 14:48:34 +01:00
deprecations.js Add/block product categories (https://github.com/woocommerce/woocommerce-blocks/pull/613) 2019-06-17 10:23:59 -04:00
get-query.js Refactor: Introduce `wc-block-settings` bundle serving as `@woocommerce/settings` external. (https://github.com/woocommerce/woocommerce-blocks/pull/903) 2019-08-22 16:56:47 -04:00
get-shortcode.js Refactor: Introduce `wc-block-settings` bundle serving as `@woocommerce/settings` external. (https://github.com/woocommerce/woocommerce-blocks/pull/903) 2019-08-22 16:56:47 -04:00
products.js Add eslint JSDoc checks (https://github.com/woocommerce/woocommerce-blocks/pull/819) 2019-08-09 18:18:46 +02:00
shared-attributes.js Refactor: Introduce `wc-block-settings` bundle serving as `@woocommerce/settings` external. (https://github.com/woocommerce/woocommerce-blocks/pull/903) 2019-08-22 16:56:47 -04:00