woocommerce/plugins/woocommerce-blocks/assets/js/base
Mike Jolley b0401ef25d
[Experimental] Delayed Account Creation Block (#50934)
* Add block to templates

* Register block type with php

* Create block type class

* Update webpack

* Move password strength meter component

* Add button styles when disabled

* Move password strength component

* Block WIP

* CSRF token handling

* Put new block behind feature flag

* Add experimental flag docs

* Update icon + description

* Changelog

* Lint errors

* Style controls

* Adjust icon markup

* subsctring match

* More specific import

* Fix test fail caused by layout shift

* Wording changes from Figma

* Check if logged in, not just if the current email is registered

* Use opacity for disabled button text

* Sync order data with customer after account creation

* Add id/fragment to form
2024-09-12 11:18:13 +01:00
..
components [Experimental] Delayed Account Creation Block (#50934) 2024-09-12 11:18:13 +01:00
context Fix most of lint warnings (#50869) 2024-08-23 14:30:14 +02: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 Revert update to createRoot in Checkout block. (#51289) 2024-09-11 13:44:09 +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.