c05ed7777a
* Upgrade dependencies to support react17 Update pkg Update @wordpress/api-fetch and gridicons * Update test snapshots * Update SnackbarList with latest react-spring * Mock data.dispatch for task-list-item.test.tsx * Remove '@wordpress/components/src/visually-hidden/style' import wp-components has included it * Update interpolateComponents import path * Fix display-options test * Add changelogs Update changelogs * Add @automattic/explat-client-react-helpers back * Update webpack.config for explat-client-react-helpers Update webpack config comment Fix grammar |
||
---|---|---|
.. | ||
beta-features-tracking-modal | ||
marketing-coupons | ||
navigation-opt-out | ||
onboarding-homepage-notice | ||
onboarding-product-import-notice | ||
onboarding-product-notice | ||
onboarding-tax-notice | ||
payment-method-promotions | ||
print-shipping-label-banner | ||
README.md |
README.md
Scripts located in this directory are meant to be loaded on wp-admin pages outside the context of WooCommerce Admin, such as the post editor. Adding the script name to wpAdminScripts
in the Webpack config will automatically build these scripts.
Scripts must be manually enqueued with any neccessary dependencies. For example, onboarding-homepage-notice
uses the WooCommerce navigation package:
wp_enqueue_script( 'onboarding-homepage-notice', Loader::get_url( 'wp-scripts/onboarding-homepage-notice.js' ), array( 'wc-navigation' ) );