This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 18 files changed +494
-619
lines changed
cart-checkout-shared/payment-methods
inner-blocks/checkout-payment-block
docs/internal-developers/block-client-apis
packages/checkout/components Expand file tree Collapse file tree 18 files changed +494
-619
lines changed Original file line number Diff line number Diff line change 11export * from './editor-context' ;
22export * from './add-to-cart-form' ;
33export * from './cart-checkout' ;
4- export * from './store-notices' ;
54export * from './store-snackbar-notices' ;
65export * from './container-width-context' ;
76export * from './editor-context' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 */
44import { __ } from '@wordpress/i18n' ;
55import { useExpressPaymentMethods } from '@woocommerce/base-context/hooks' ;
6- import {
7- StoreNoticesContainer ,
8- noticeContexts ,
9- } from '@woocommerce/base-context' ;
6+ import { noticeContexts } from '@woocommerce/base-context' ;
7+ import { StoreNoticesContainer } from '@woocommerce/blocks-checkout' ;
108import LoadingMask from '@woocommerce/base-components/loading-mask' ;
119import { useSelect } from '@wordpress/data' ;
1210import { CHECKOUT_STORE_KEY , PAYMENT_STORE_KEY } from '@woocommerce/block-data' ;
Original file line number Diff line number Diff line change 22 * External dependencies
33 */
44import { __ } from '@wordpress/i18n' ;
5- import {
6- StoreNoticesContainer ,
7- useEditorContext ,
8- noticeContexts ,
9- } from '@woocommerce/base-context' ;
5+ import { useEditorContext , noticeContexts } from '@woocommerce/base-context' ;
6+ import { StoreNoticesContainer } from '@woocommerce/blocks-checkout' ;
107import Title from '@woocommerce/base-components/title' ;
118import LoadingMask from '@woocommerce/base-components/loading-mask' ;
129import { CURRENT_USER_IS_ADMIN } from '@woocommerce/settings' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { __ } from '@wordpress/i18n';
55import { Component } from 'react' ;
66import PropTypes from 'prop-types' ;
77import { CURRENT_USER_IS_ADMIN } from '@woocommerce/settings' ;
8- import { StoreNoticesContainer } from '@woocommerce/base-context ' ;
8+ import { StoreNoticesContainer } from '@woocommerce/blocks-checkout ' ;
99import { noticeContexts } from '@woocommerce/base-context/hooks' ;
1010
1111class PaymentMethodErrorBoundary extends Component {
Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ import { __ } from '@wordpress/i18n';
55import { useStoreCart } from '@woocommerce/base-context/hooks' ;
66import { useEffect } from '@wordpress/element' ;
77import LoadingMask from '@woocommerce/base-components/loading-mask' ;
8- import {
9- StoreNoticesContainer ,
10- SnackbarNoticesContainer ,
11- } from '@woocommerce/base-context' ;
8+ import { SnackbarNoticesContainer } from '@woocommerce/base-context' ;
129import { CURRENT_USER_IS_ADMIN } from '@woocommerce/settings' ;
1310import BlockErrorBoundary from '@woocommerce/base-components/block-error-boundary' ;
1411import { translateJQueryEventToNative } from '@woocommerce/base-utils' ;
1512import withScrollToTop from '@woocommerce/base-hocs/with-scroll-to-top' ;
1613import { CartProvider } from '@woocommerce/base-context/providers' ;
17- import { SlotFillProvider } from '@woocommerce/blocks-checkout' ;
14+ import {
15+ SlotFillProvider ,
16+ StoreNoticesContainer ,
17+ } from '@woocommerce/blocks-checkout' ;
1818
1919/**
2020 * Internal dependencies
Original file line number Diff line number Diff line change @@ -9,11 +9,14 @@ import {
99 CheckoutProvider ,
1010 SnackbarNoticesContainer ,
1111} from '@woocommerce/base-context' ;
12- import { StoreNoticesContainer } from '@woocommerce/base-context/providers' ;
12+
1313import BlockErrorBoundary from '@woocommerce/base-components/block-error-boundary' ;
1414import { SidebarLayout } from '@woocommerce/base-components/sidebar-layout' ;
1515import { CURRENT_USER_IS_ADMIN , getSetting } from '@woocommerce/settings' ;
16- import { SlotFillProvider } from '@woocommerce/blocks-checkout' ;
16+ import {
17+ SlotFillProvider ,
18+ StoreNoticesContainer ,
19+ } from '@woocommerce/blocks-checkout' ;
1720import withScrollToTop from '@woocommerce/base-hocs/with-scroll-to-top' ;
1821import { useDispatch , useSelect } from '@wordpress/data' ;
1922import {
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ import { withFilteredAttributes } from '@woocommerce/shared-hocs';
77import { FormStep } from '@woocommerce/base-components/cart-checkout' ;
88import { useSelect } from '@wordpress/data' ;
99import { CHECKOUT_STORE_KEY } from '@woocommerce/block-data' ;
10+ import { StoreNoticesContainer } from '@woocommerce/blocks-checkout' ;
1011
1112/**
1213 * Internal dependencies
1314 */
1415import Block from './block' ;
1516import attributes from './attributes' ;
16- import { StoreNoticesContainer } from '../../../../base/context/providers' ;
1717import { noticeContexts } from '../../../../base/context/event-emit' ;
1818
1919const FrontendBlock = ( {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
66import { ProductListContainer } from '@woocommerce/base-components/product-list' ;
77import { InnerBlockLayoutContextProvider } from '@woocommerce/shared-context' ;
88import { gridBlockPreview } from '@woocommerce/resource-previews' ;
9- import { StoreNoticesContainer } from '@woocommerce/base-context ' ;
9+ import { StoreNoticesContainer } from '@woocommerce/blocks-checkout ' ;
1010
1111/**
1212 * The All Products Block.
Original file line number Diff line number Diff line change 77 InnerBlockLayoutContextProvider ,
88 ProductDataContextProvider ,
99} from '@woocommerce/shared-context' ;
10- import { StoreNoticesContainer } from '@woocommerce/base-context ' ;
10+ import { StoreNoticesContainer } from '@woocommerce/blocks-checkout ' ;
1111import { useStoreEvents } from '@woocommerce/base-context/hooks' ;
1212
1313/**
You can’t perform that action at this time.
0 commit comments