woocommerce/plugins/woocommerce-blocks/assets/js/previews
Rua Haszard ace2d2bd81 show preview "saved payment methods" in editor (https://github.com/woocommerce/woocommerce-blocks/pull/2151)
* 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
2020-04-15 12:05:01 +12:00
..
cart-block.js Update previews and editor styles for cart and checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/2160) 2020-04-08 16:03:39 +01:00
cart.js respect SHIPPING_ENABLED in Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/2202) 2020-04-14 08:01:59 +02:00
categories.js Add featured category preview (https://github.com/woocommerce/woocommerce-blocks/pull/1122) 2019-11-05 10:33:07 +00:00
checkout-block.js Update previews and editor styles for cart and checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/2160) 2020-04-08 16:03:39 +01:00
grid-block.js Add grid block previews using an SVG image (https://github.com/woocommerce/woocommerce-blocks/pull/1118) 2019-11-15 15:16:18 +00:00
index.js show preview "saved payment methods" in editor (https://github.com/woocommerce/woocommerce-blocks/pull/2151) 2020-04-15 12:05:01 +12:00
products.js Update previews and editor styles for cart and checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/2160) 2020-04-08 16:03:39 +01:00
reviews.js Add previews for Reviews blocks (https://github.com/woocommerce/woocommerce-blocks/pull/1059) 2019-10-22 16:13:14 +02:00
saved-payment-methods.js show preview "saved payment methods" in editor (https://github.com/woocommerce/woocommerce-blocks/pull/2151) 2020-04-15 12:05:01 +12:00
shipping-rates.js Update and select shipping rates dynamically (https://github.com/woocommerce/woocommerce-blocks/pull/1794) 2020-03-05 20:54:05 +01:00