woocommerce/plugins/woocommerce-blocks/assets/js
Albert Juhé Lluveras 73d1432b02 Hook up checkout validation with context (https://github.com/woocommerce/woocommerce-blocks/pull/2033)
* Hook up checkout validation with context

* Make sure hasValidationErrors is up to date in onCheckoutProcessing

* Move validation check inside CheckoutProcessor's processCheckout

* Make sure all checkout form fields have a unique ID

* Don't clear checkout context errors in shipping context

* Move CheckoutProcessor to the top so scrollToTop works

* Do not disable Place Order Button if there are errors

* Split checkValidation and processCheckout in Checkout Provider

* Refactor event emitter to use Maps

* Save payment method errors to validation context

* Show an notice when a payment method has an error

* Make sure JS errors during payment are displayed

* Remove error notice when payment method doesn't return an error anymore

* Make sure payment methods know if shipping and billing addresses are the same

* Make sure checkout is only processed if payment methods didn't fail

* Make sure state input also has an id

* Clear input and select errors on unmount

* Pass id to CountryInput and StateInput

* Fix function name

* Add missing default context values

* Move onCheckoutCompleteError effect to CheckoutBlock

* Remove conditional from shipping setHasError
2020-04-02 11:27:54 +02:00
..
atomic Add contexts for checkout (https://github.com/woocommerce/woocommerce-blocks/pull/1915) 2020-03-10 09:39:21 -04:00
base Hook up checkout validation with context (https://github.com/woocommerce/woocommerce-blocks/pull/2033) 2020-04-02 11:27:54 +02:00
blocks Hook up checkout validation with context (https://github.com/woocommerce/woocommerce-blocks/pull/2033) 2020-04-02 11:27:54 +02:00
blocks-registry Implement Stripe CC and Stripe ApplePay payment methods (https://github.com/woocommerce/woocommerce-blocks/pull/1983) 2020-03-30 08:07:49 -04:00
components Fix blocks not being added in WP <= 5.2 (https://github.com/woocommerce/woocommerce-blocks/pull/2001) 2020-03-26 13:39:54 +01:00
data Parse error response before rejecting (https://github.com/woocommerce/woocommerce-blocks/pull/2080) 2020-03-31 17:00:03 +01:00
filters Fix blocks not being added in WP <= 5.2 (https://github.com/woocommerce/woocommerce-blocks/pull/2001) 2020-03-26 13:39:54 +01:00
hocs Add tests to some cart and checkout hooks (https://github.com/woocommerce/woocommerce-blocks/pull/2013) 2020-03-30 20:32:28 +02:00
icons Add checkout error state (https://github.com/woocommerce/woocommerce-blocks/pull/2069) 2020-03-31 11:47:48 +01:00
legacy Fix blocks not being added in WP <= 5.2 (https://github.com/woocommerce/woocommerce-blocks/pull/2001) 2020-03-26 13:39:54 +01:00
payment-method-extensions Hook up checkout validation with context (https://github.com/woocommerce/woocommerce-blocks/pull/2033) 2020-04-02 11:27:54 +02:00
previews Add line pricing for cart items in the API (https://github.com/woocommerce/woocommerce-blocks/pull/1979) 2020-03-17 15:34:33 +00:00
settings Fix build issues for production builds (https://github.com/woocommerce/woocommerce-blocks/pull/2042) 2020-03-27 16:56:48 -04:00
type-defs split up payment-methods.js file into smaller bits (https://github.com/woocommerce/woocommerce-blocks/pull/2089) 2020-04-01 10:58:50 -04:00
utils Cart and checkout error boundaries (https://github.com/woocommerce/woocommerce-blocks/pull/1853) 2020-03-06 11:43:40 +00:00
index.js Give Woo Icon special treatment by making it a component (https://github.com/woocommerce/woocommerce-blocks/pull/1702) 2020-02-10 14:24:02 +01:00