woocommerce/plugins/woocommerce-blocks/assets/js/data/checkout
Alex Florisca 3630b7b03e Convert checkout context to data store - part 1 (https://github.com/woocommerce/woocommerce-blocks/pull/6232)
* Add checkout data store

* wip on checkout data store

* CheckoutContext now uses the checkout store

* Investigated and removed setting the redirectUrl on the default state

* update extension and address hooks to use checkout data store

* use checkout data store in checkout-processor and use-checkout-button

* trim useCheckoutContext from use-payment-method-interface && use-store-cart-item-quantity

* Remove useCheckoutContext from shipping provider

* Remove isCalculating from state

* Removed useCheckoutContext from lots of places

* Remove useCheckoutContext from checkout-payment-block

* Remove useCheckoutContext in checkout-shipping-methods-block and checkout-shipping-address-block

* add isCart selector and action and update the checkoutstate context

* Fixed redirectUrl bug by using thunks

* Remove dispatchActions from checkout-state

* Change SET_HAS_ERROR action to be neater

* Thomas' feedback

* Tidy up

* Oops, deleted things I shouldn't have

* Typescript

* Fix types

* Fix tests

* Remove isCart

* Update docs and remove unecessary getRedirectUrl() selector

* set correct type for preloadedCheckoutData

* Remove duplicate Address type

* Fix missing addresses from type-defs index

* Update docs/block-client-apis/checkout/checkout-api.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update docs/block-client-apis/checkout/checkout-api.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update docs

* Update docs/block-client-apis/checkout/checkout-api.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update docs/block-client-apis/checkout/checkout-api.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Revert feedback changes

* REvert feedback formatting

* Update docs formatting

* Delete empty types.ts file

* remove merge conflict from docs

* Correct linting in docs

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2022-09-28 13:45:42 +01:00
..
action-types.ts Convert checkout context to data store - part 1 (https://github.com/woocommerce/woocommerce-blocks/pull/6232) 2022-09-28 13:45:42 +01:00
actions.ts Convert checkout context to data store - part 1 (https://github.com/woocommerce/woocommerce-blocks/pull/6232) 2022-09-28 13:45:42 +01:00
constants.ts Convert checkout context to data store - part 1 (https://github.com/woocommerce/woocommerce-blocks/pull/6232) 2022-09-28 13:45:42 +01:00
default-state.ts Convert checkout context to data store - part 1 (https://github.com/woocommerce/woocommerce-blocks/pull/6232) 2022-09-28 13:45:42 +01:00
index.ts Convert checkout context to data store - part 1 (https://github.com/woocommerce/woocommerce-blocks/pull/6232) 2022-09-28 13:45:42 +01:00
reducers.ts Convert checkout context to data store - part 1 (https://github.com/woocommerce/woocommerce-blocks/pull/6232) 2022-09-28 13:45:42 +01:00
selectors.ts Convert checkout context to data store - part 1 (https://github.com/woocommerce/woocommerce-blocks/pull/6232) 2022-09-28 13:45:42 +01:00