woocommerce/plugins/woocommerce-blocks/assets/js/blocks/checkout
Seghir Nadir 8ecfcfb9a0
Add Checkbox support for Additional Fields in Checkout Block (#42780)
* Introduce Additional Fields API for Checkout Block https://github.com/woocommerce/woocommerce-blocks/pull/12073

* revert test to what it was

* Default to text, if the type supplied is not supported throw an error

* Add type for options

* Return null if somehow the select made it through without options

* Make select fields type enum and add options to schema

* Lint fixes

* Update plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/address-form/address-form.tsx

Co-authored-by: Niels Lange <info@nielslange.de>

* Update plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFields.php

Co-authored-by: Niels Lange <info@nielslange.de>

* Update checks to log errors and fail gracefully

* Add field id to class names

* Fix lint error

* Fix short array use

* Introduce Additional Fields API for Checkout Block https://github.com/woocommerce/woocommerce-blocks/pull/12073

* Default to text, if the type supplied is not supported throw an error

* Lint fixes

* Introduce Additional Fields API for Checkout Block https://github.com/woocommerce/woocommerce-blocks/pull/12073

* add support for registering checkboxes

* remove extra error log

* add styling

* fix rebase conflit

* fix rebase conflit 2

* fix linter errors

* address review comments

* add warning for checkbox

* fix changes

---------

Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
Co-authored-by: Niels Lange <info@nielslange.de>
2023-12-18 13:21:36 +01:00
..
address-card Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
address-wrapper Ensure validation of fields occurs when collapsing fields (https://github.com/woocommerce/woocommerce-blocks/pull/11199) 2023-10-10 22:07:58 +01:00
checkout-order-error Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
empty-cart Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
form-step Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
inner-blocks Add Checkbox support for Additional Fields in Checkout Block (#42780) 2023-12-18 13:21:36 +01:00
order-notes Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
phone-number update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
styles Update the border colors in the Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/11474) 2023-12-07 21:37:48 +04:00
attributes.ts Move Checkout block attributes into metadata (`block.json`) (https://github.com/woocommerce/woocommerce-blocks/pull/5594) 2022-01-28 16:37:06 +00:00
block.json Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
block.tsx Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
context.ts Remove account creation setting from Checkout block (https://github.com/woocommerce/woocommerce-blocks/pull/7941) 2022-12-15 18:13:28 +07:00
edit.tsx Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
frontend.tsx Spread metadata when loading block in frontend (https://github.com/woocommerce/woocommerce-blocks/pull/5732) 2022-02-08 10:33:27 +00:00
index.tsx Cart and Checkout block transforms for classic shortcodes (https://github.com/woocommerce/woocommerce-blocks/pull/11228) 2023-10-19 16:43:43 +01:00
types.ts Remove account creation setting from Checkout block (https://github.com/woocommerce/woocommerce-blocks/pull/7941) 2022-12-15 18:13:28 +07:00
utils.ts Move Checkout block attributes into metadata (`block.json`) (https://github.com/woocommerce/woocommerce-blocks/pull/5594) 2022-01-28 16:37:06 +00:00