woocommerce/plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks
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
..
checkout-actions-block Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
checkout-billing-address-block Introduce Additional Fields extensibility API (#42695) 2023-12-15 13:45:38 +01:00
checkout-contact-information-block Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
checkout-express-payment-block Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
checkout-fields-block Add Checkbox support for Additional Fields in Checkout Block (#42780) 2023-12-18 13:21:36 +01:00
checkout-order-note-block Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
checkout-order-summary-block Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
checkout-order-summary-cart-items Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
checkout-order-summary-coupon-form Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
checkout-order-summary-discount Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
checkout-order-summary-fee Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
checkout-order-summary-shipping Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
checkout-order-summary-subtotal Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
checkout-order-summary-taxes Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
checkout-payment-block Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
checkout-pickup-options-block Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
checkout-shipping-address-block Introduce Additional Fields extensibility API (#42695) 2023-12-15 13:45:38 +01:00
checkout-shipping-method-block Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
checkout-shipping-methods-block Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
checkout-terms-block Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
checkout-totals-block Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
component-metadata.ts Rename collection to shipping to reflect the block purpose 2023-01-12 15:38:06 +01:00
index.tsx Rename collection to shipping to reflect the block purpose 2023-01-12 15:38:06 +01:00
register-components.ts Restrict Local Pickup Checkout block users only (https://github.com/woocommerce/woocommerce-blocks/pull/7893) 2023-01-12 15:42:43 +01:00