woocommerce/plugins/woocommerce-admin/client/wp-admin-scripts
github-actions[bot] 5a6d8552a7
Cherry pick 50970 into release/9.3 (#51092)
* Update woocommerce shipping promo banner [wc-shipping-188] (#50970)

* Make sure the WC Shipping slug is used for installation

* Make sure the check to show banner metabox work for HPOS as well

* Make ShippingLabelBannerDisplayRules::order_has_shippable_products work with HPOS as well

* Remove Jetpack plugin specific checks in ShippingLabelBannerDisplayRules

* Use correct variable names for dotcom connection

* Fix comments

* Remove depenency on WCS&T for showing WC Shipping promo banner

* Remove WC Tax and WC Shipping from incompatible plugins

* Vary action button label if WCS&T is already installed

* Inject config and render label purchase app after activation

* Open the purchase modal after adding it to DOM

* Render Shipment tracking metabox

* Use a different headline when WCS&T is already installed

* Fix UX when a none-compatible WCS&T is already active

* Fix CSS linting issues

* Fix Jslint issues

* Improve around usage of localized variables

* Fix and update JS tests

* Address phpcs issues

* Delete metaboxes of compatible WCS&T

* Remove redundant variable assignment

* Remove css and js of WCS&T if a compatible version is installed

* Fix failing legacy PHPUnit tests

* Only open the new label purchase modal if WCS&T is not active

* Remove redundant code around TOS acceptance for showing the banner

* Remove redundant test for Jetpack version checking

* Make sure target passed to MutationObserver.observe is available

* Add changelog file

* Add openWcsModal to component's prototype

* Add more js unit tests

* Address PHP notice

* Remove redundant variable assignments

* Rename wcsPluginSlug to more clear wcShippingPluginSlug

* Add a link to plugins page if incompatible WCS&T is already installed

* Remove unused function parameters

* Fix API resource path

* Handle a case where none compatible version of WCShipping is installed

* Prep for cherry pick 50970

* Remove infant use statement

---------

Co-authored-by: Sam Najian <dev@najian.info>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: Sam Najian <sam.najian@automattic.com>
2024-09-03 11:21:21 +01:00
..
add-term-tracking Add additional global attributes and local attributes information when saving product attributes (#36858) 2023-02-20 23:55:01 +01:00
attributes-tracking Add additional global attributes and local attributes information when saving product attributes (#36858) 2023-02-20 23:55:01 +01:00
beta-features-tracking-modal fix: wcadmin react18 createroot shipping settings, payment method, wc beta tester (#48835) 2024-07-29 21:30:03 +08:00
category-tracking Add initial tracking for categories, tags, and attribute product pages (#33118) 2022-05-30 13:14:25 -03:00
command-palette Prevent Command Palette scripts to enqueue unnecessary scripts in the editor (#43221) 2024-01-03 18:07:43 +01:00
command-palette-analytics Prevent Command Palette scripts to enqueue unnecessary scripts in the editor (#43221) 2024-01-03 18:07:43 +01:00
marketing-coupons fix: wcadmin react18 createroot marketing coupons (#48832) 2024-08-09 21:13:56 +08:00
onboarding-homepage-notice fix: replaced apostrophes for WooCommerce Admin JS strings in Homescreen & Core Profiler (#50776) 2024-08-20 17:13:17 +08:00
onboarding-load-sample-products-notice Set up i18n-text-domain rule and fix missing text domain (#33780) 2022-07-08 18:37:30 +08:00
onboarding-product-import-notice Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
onboarding-product-notice Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
onboarding-tax-notice fix: replaced apostrophes for WooCommerce Admin JS strings in Homescreen & Core Profiler (#50776) 2024-08-20 17:13:17 +08:00
order-tracking Update tracks events hooks for HPOS (#42879) 2023-12-29 08:46:59 +00:00
payment-method-promotions fix: wcadmin react18 createroot shipping settings, payment method, wc beta tester (#48835) 2024-07-29 21:30:03 +08:00
print-shipping-label-banner Cherry pick 50970 into release/9.3 (#51092) 2024-09-03 11:21:21 +01:00
product-category-metabox Use createRoot in classic product editor cases (#48834) 2024-07-04 05:38:19 -03:00
product-import-tracking Add components to @woocommerce/customer-effort-score (#37112) 2023-03-14 12:16:19 -04:00
product-tour Use createRoot in classic product editor cases (#48834) 2024-07-04 05:38:19 -03:00
product-tracking Add unit tests for some tracks in product editor (#48245) 2024-06-10 23:05:20 +08:00
settings-tracking Add components to @woocommerce/customer-effort-score (#37112) 2023-03-14 12:16:19 -04:00
shipping-settings-region-picker fix: shipping region zone decode html entities (#50694) 2024-08-16 09:42:08 +08:00
tags-tracking Add initial tracking for categories, tags, and attribute product pages (#33118) 2022-05-30 13:14:25 -03:00
variable-product-tour Use createRoot in classic product editor cases (#48834) 2024-07-04 05:38:19 -03:00
wc-addons-tour fix: wcadmin react18 createroot wc addon tour (#48833) 2024-08-19 12:52:24 +01:00
woo-connect-notice Tracks event for WooCommerce.com connect notice (#47003) 2024-05-13 13:45:43 +07:00
woo-enable-autorenew Display a notice for expired/expiring subscriptions along with a plugin update message. (#47076) 2024-05-20 03:06:03 +00:00
woo-plugin-update-connect-notice Tracks event for WooCommerce.com connect notice (#47003) 2024-05-13 13:45:43 +07:00
woo-product-usage-notice Fix wcadmin-product-usage-notice-modal react18 createroot (#50765) 2024-08-20 11:50:26 +07:00
woo-renew-subscription Display a notice for expired/expiring subscriptions along with a plugin update message. (#47076) 2024-05-20 03:06:03 +00:00
woo-subscriptions-notice Show notice for expired and expiring subscriptions in settings and in-app extensions page (#47004) 2024-05-31 08:34:36 +07:00
README.md Fix/37502: Correct spelling errors. (#37887) 2023-05-08 15:55:09 +08:00

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 necessary 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' ) );