woocommerce/plugins/woocommerce-blocks/assets/js/base
Sam Seay 180a266295
Bugfix: Do not repeat rendering the shipping calculator button on the cart page (#52657)
* Do not repeat rendering the shipping calculator button on the cart page.

* Lint fix: remove unused import

* Revert "Ensure local state is not overwritten by server when using `extensionCartUpdate` (#49311)"

This reverts commit 4861ec250e.

* Revert changes that didn't render shipping calc and instead check hasrates before rendering ShippingVia, ShippingAddress

* Revert "Revert "Ensure local state is not overwritten by server when using `extensionCartUpdate` (#49311)""

This reverts commit feec5709c5.

* Remove redunant change in import ordering

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-11 10:56:31 +00:00
..
components Bugfix: Do not repeat rendering the shipping calculator button on the cart page (#52657) 2024-11-11 10:56:31 +00:00
context Ensure local state is not overwritten by server when using `extensionCartUpdate` (#49311) 2024-11-07 18:18:57 +01:00
hocs Convert with-reviews to TS (#50890) 2024-08-27 16:29:44 -03:00
hooks Added Firefox support for making Order Summary sticky when not longer than view (#49744) 2024-07-23 15:38:12 +01:00
utils Add flag to enable WC Blocks rendering with React 18 (#52473) 2024-11-11 10:17:06 +00:00
README.MD Update cart/checkout usage of the @wordpress/components Slot Fill (#47105) 2024-05-16 21:46:24 +12:00

README.MD

Base Components/Context/Hooks

Base components are designed to be used on the frontend of a store. Due to this, we need to avoid using heavy WordPress externals as dependencies (@wordpress/blocks, @wordpress/block-editor, etc).

Note 2 exceptions, we do use the Slot and Fill which we import and bundle from @wordpress/components. Otherwise you should avoid importing anything else from that package.

The other exception is the FormTokenField, which is used in deprecated blocks and use of that import is also deprecated.

If you need primitive/low-level components to build components in this library, please use Ariakit to build them. See Button for an example.

Check the built *.assets.php files to ensure extra dependencies aren't being added to the build.