woocommerce/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout
Mike Jolley 0714fa41bd Customer Data Store and revised handling for Shipping As Billing (https://github.com/woocommerce/woocommerce-blocks/pull/5817)
* Add address-related items to wc/store/cart data store

* include shippingAsBilling in return value of useCustomerData

* Add useUpdateCustomerData hook

This allows us to have a single hook responsible for updating the customer information on the server.

* Add useUpdateCustomerData hook in Checkout block

* Remove the updating customer data work from the useCustomerData hook

* Remove shippingAsBilling from previousCustomerData ref type

* Add useShippingAsBillingCheckbox hook

* Control shippingAsBilling from single hook

* Remove checkbox handling from useCheckoutAddress

* Remove CustomerDataContext typedef

* Merge with woocommerce/woocommerce-blocks#5810 changes

* Move shipping as billing to checkout state context provider

* Unused import

* Subscribe to changes

* Only receiveCartContents when updating customer data via checkout

* Cache customerDataToUpdate

* rename debounced function

* Combine customerDataType and customerDataContextType

* Change case of CustomerDataType

* debouncedUpdateCustomerData typo

* Fix notice context

* Clean up inline docs for push changes

* Comment on dirty state

* Phone is always set

* shippingAddress is never undefined

* setBillingPhone

* receiveCartContents explanation

* Tweak customerData to avoid null

* useShippingAsBilling

Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
2022-02-22 17:45:01 +00:00
..
address-form Customer Data Store and revised handling for Shipping As Billing (https://github.com/woocommerce/woocommerce-blocks/pull/5817) 2022-02-22 17:45:01 +00:00
form-step Convert components to Typescript (https://github.com/woocommerce/woocommerce-blocks/pull/5241) 2021-11-26 17:03:12 +00:00
order-summary Convert components to Typescript (https://github.com/woocommerce/woocommerce-blocks/pull/5241) 2021-11-26 17:03:12 +00:00
payment-method-icons Add custom className support to Cart Inner Blocks (https://github.com/woocommerce/woocommerce-blocks/pull/4985) 2021-10-25 16:31:22 +01:00
payment-method-label Remove custom `Icon` component in favour of `@wordpress/icons` where possible (https://github.com/woocommerce/woocommerce-blocks/pull/5599) 2022-02-01 16:54:38 +00:00
place-order-button Remove custom `Icon` component in favour of `@wordpress/icons` where possible (https://github.com/woocommerce/woocommerce-blocks/pull/5599) 2022-02-01 16:54:38 +00:00
policies Convert Product components to TS (https://github.com/woocommerce/woocommerce-blocks/pull/4098) 2021-04-26 13:20:30 +01:00
product-backorder-badge Convert Product components to TS (https://github.com/woocommerce/woocommerce-blocks/pull/4098) 2021-04-26 13:20:30 +01:00
product-badge Convert Product components to TS (https://github.com/woocommerce/woocommerce-blocks/pull/4098) 2021-04-26 13:20:30 +01:00
product-details Product details component accepts `key` or `name` as props (https://github.com/woocommerce/woocommerce-blocks/pull/5165) 2021-11-30 09:39:55 +00:00
product-image Fix: Adding a visual border to products image placeholder (https://github.com/woocommerce/woocommerce-blocks/pull/4950) 2021-10-28 13:57:20 +01:00
product-low-stock-badge Convert Product components to TS (https://github.com/woocommerce/woocommerce-blocks/pull/4098) 2021-04-26 13:20:30 +01:00
product-metadata Product details component accepts `key` or `name` as props (https://github.com/woocommerce/woocommerce-blocks/pull/5165) 2021-11-30 09:39:55 +00:00
product-sale-badge Import `createInterpolateElement ` from `@wordpress/element` (https://github.com/woocommerce/woocommerce-blocks/pull/4368) 2021-07-07 13:27:50 +01:00
product-summary Fix es lint warnings (https://github.com/woocommerce/woocommerce-blocks/pull/4206) 2021-05-16 18:59:32 +01:00
return-to-cart-button Remove custom `Icon` component in favour of `@wordpress/icons` where possible (https://github.com/woocommerce/woocommerce-blocks/pull/5599) 2022-02-01 16:54:38 +00:00
shipping-calculator Export `Button` and `Label` from `wc-blocks-checkout` package (https://github.com/woocommerce/woocommerce-blocks/pull/4406) 2021-07-02 10:24:07 +01:00
shipping-location Convert shipping components to typescript (https://github.com/woocommerce/woocommerce-blocks/pull/4135) 2021-05-10 10:03:30 +01:00
shipping-rates-control Pass context information about parent block to the existing Slots (https://github.com/woocommerce/woocommerce-blocks/pull/5885) 2022-02-22 10:33:52 +01:00
shipping-rates-control-package Remove `useSelectShippingRate` hook and adjust how local state works for `PackageRates` (https://github.com/woocommerce/woocommerce-blocks/pull/5802) 2022-02-10 11:59:43 +00:00
totals Pass context information about parent block to the existing Slots (https://github.com/woocommerce/woocommerce-blocks/pull/5885) 2022-02-22 10:33:52 +01:00
index.js Fix Circular Dependencies During Builds (https://github.com/woocommerce/woocommerce-blocks/pull/4025) 2021-04-08 13:31:12 +01:00