woocommerce/plugins/woocommerce-blocks/assets/js/base/utils
Mike Jolley 55f0bc73a6 Fix Address Validation in the Store API and client (https://github.com/woocommerce/woocommerce-blocks/pull/3552)
* Trim input values before validation on Checkout

* Fixes required field checking at schema level

* Require country during checkout and ensure values are formatted

* Add handling for rest_invalid_param messages

* Remove prepare_address_fields - handled by schema

* Add address validation to OrderController

* Implement address validation

* Error errors from all endpoints more gracefully

* update non-true description

* required prop

* Update tests

* Fix equalityFn so updates are triggered when address changes

* Remove debounce so fields update if context changes

* Update src/StoreApi/Schemas/AbstractAddressSchema.php

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>

* Add missing wp_unslash

* Validate allowed countries should block checkout if no countries are allowed

* Type in locale variable

* Update assets/js/base/utils/errors.js

Co-authored-by: Darren Ethier <darren@roughsmootheng.in>

* Fix validator calls

* Remove refererence

* Restore onChange order

* eslint fix

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
2020-12-17 14:52:44 +00:00
..
test Add @woocommerce/eslint-plugin dependency (https://github.com/woocommerce/woocommerce-blocks/pull/3115) 2020-09-07 13:31:10 -04:00
address.js Fix Address Validation in the Store API and client (https://github.com/woocommerce/woocommerce-blocks/pull/3552) 2020-12-17 14:52:44 +00:00
errors.js Fix Address Validation in the Store API and client (https://github.com/woocommerce/woocommerce-blocks/pull/3552) 2020-12-17 14:52:44 +00:00
get-intersection-observer.js Enable and fix all jsdoc rule violations (https://github.com/woocommerce/woocommerce-blocks/pull/3168) 2020-09-20 19:54:08 -04:00
get-valid-block-attributes.js Introduce Atomic Add to Cart Block (https://github.com/woocommerce/woocommerce-blocks/pull/2705) 2020-06-17 10:52:03 +01:00
index.js Show express payment methods in the Cart block (https://github.com/woocommerce/woocommerce-blocks/pull/3004) 2020-08-20 16:14:12 +02:00
legacy-events.js Enable and fix all jsdoc rule violations (https://github.com/woocommerce/woocommerce-blocks/pull/3168) 2020-09-20 19:54:08 -04:00
price.js Fix currency format in On Sale badge (https://github.com/woocommerce/woocommerce-blocks/pull/2185) 2020-04-09 18:53:22 +02:00
product-data.js Add inspector notice for unsupported product types (https://github.com/woocommerce/woocommerce-blocks/pull/2944) 2020-08-06 10:28:20 -04:00
render-frontend.js remove suspense polyfill (https://github.com/woocommerce/woocommerce-blocks/pull/3015) 2020-08-18 12:32:40 +01:00
shipping-rates.js Add @woocommerce/eslint-plugin dependency (https://github.com/woocommerce/woocommerce-blocks/pull/3115) 2020-09-07 13:31:10 -04:00