woocommerce/plugins/woocommerce-blocks/assets/js/base/context/providers/cart-checkout
Thomas Roberts 3ebcd7f601 Add `CartEventContext` and dispatch events when pressing proceed to checkout button (https://github.com/woocommerce/woocommerce-blocks/pull/7809)
* Add CartEventsContext with onProceedToCheckout event

* Wrap Cart in CartEventsProvider

* Dispatch onProceedToCheckout event when button is pressed

* Update type of children on CartEventsProvider

* Add test for ProceedToCheckout block

* Add tests for CartEventProvider

* Remove superfluous div

* Fix incorrect nesting after rebase

* Wrap mini cart in CartEventsProvider

* Dispatch onProceedToCheckout event when clicking button in mini cart

* Add tests for mini cart onProceedToCheckout emitter

* Make observer fail so navigation isn't attempted

* Prevent console error on navigation

* Try preventing navigation in unit tests

* Try preventing navigation in unit tests

* Try preventing navigation in unit tests

* Try preventing navigation in unit tests

* Try preventing navigation in unit tests

* Try preventing navigation in unit tests

* Try preventing navigation in unit tests
2023-06-19 08:44:37 -07:00
..
cart Convert checkout context to data store - part 1 (https://github.com/woocommerce/woocommerce-blocks/pull/6232) 2022-09-28 13:45:42 +01:00
cart-events Add `CartEventContext` and dispatch events when pressing proceed to checkout button (https://github.com/woocommerce/woocommerce-blocks/pull/7809) 2023-06-19 08:44:37 -07:00
checkout-events Rename the checkout events (https://github.com/woocommerce/woocommerce-blocks/pull/8381) 2023-02-17 11:03:13 +00:00
payment-events Rename the checkout events (https://github.com/woocommerce/woocommerce-blocks/pull/8381) 2023-02-17 11:03:13 +00:00
shipping Expose cart errors as notices (https://github.com/woocommerce/woocommerce-blocks/pull/8162) 2023-01-19 16:40:52 +00:00
checkout-processor.ts Add validation error to prevent checkout when there is no shipping method available (https://github.com/woocommerce/woocommerce-blocks/pull/8384) 2023-03-17 19:32:03 +04:00
checkout-provider.js Remove CustomerDataContext (https://github.com/woocommerce/woocommerce-blocks/pull/7686) 2022-11-24 14:20:44 +00:00
index.js Add `CartEventContext` and dispatch events when pressing proceed to checkout button (https://github.com/woocommerce/woocommerce-blocks/pull/7809) 2023-06-19 08:44:37 -07:00
utils.ts New contexts for `StoreNoticesContainer` and notice grouping (https://github.com/woocommerce/woocommerce-blocks/pull/7711) 2022-12-19 15:30:13 +00:00