ace2d2bd81
* factor out editor preview data for saved payment methods to previews * add missing imports lost in rebase * use editorcontext to provide preview data to payment method context * remove unused `activePaymentMethod` prop in CheckoutProvider and PaymentMethodDataProvider * don't set the preview saved card as the default * fix js error with cart in editor - fix EditorContext, pass previewData: - editor context preview prop has changed; - update cart to pass { previewCart } in previewData prop - correctly destructure cart from previewData in useStoreCart hook - correct typedefs - EditorProvider props.previewData - now just Object - similar for EditorDataContext - correct default for activePaymentMethod state - empty string as before * preselect 'use a new payment method' in checkout block editor preview * update unit tests for changes to editor context |
||
---|---|---|
.. | ||
actions.js | ||
constants.js | ||
event-emit.js | ||
index.js | ||
payment-method-data-context.js | ||
reducer.js | ||
use-payment-method-registration.js |