woocommerce/plugins/woocommerce-blocks/assets/js
Rua Haszard 7921c3e5ba Record a tracks event when merchant toggles cart shipping calculator: (https://github.com/woocommerce/woocommerce-blocks/pull/1975)
* record a tracks event when merchant toggles cart shipping calculator:
- add tracks utility func for blocks
  - adds standard event name prefix
  - supplies post id & type params (an example)
- hook this up to UI when user toggles shipping calc
- pass enabled as boolean prop

* fix typo - call isTracksAvailable() !

* remove unnecessary temporary boolean

* update event name based on best practice guidelines

* remove isTracksAvailable preflight check:
- if site opts out, recordEvent is an empty function
- add in standard fallback boilerplate to ensure function exists
Note: currently no mechanism to detect if tracks is available on front end.
2020-03-26 10:12:34 +13:00
..
atomic Add contexts for checkout (https://github.com/woocommerce/woocommerce-blocks/pull/1915) 2020-03-10 09:39:21 -04:00
base Record a tracks event when merchant toggles cart shipping calculator: (https://github.com/woocommerce/woocommerce-blocks/pull/1975) 2020-03-26 10:12:34 +13:00
blocks Record a tracks event when merchant toggles cart shipping calculator: (https://github.com/woocommerce/woocommerce-blocks/pull/1975) 2020-03-26 10:12:34 +13:00
blocks-registry Update payment registration config to include `edit` components (https://github.com/woocommerce/woocommerce-blocks/pull/1928) 2020-03-10 12:35:30 -04:00
components Implement "return to cart" and "place order" buttons on checkout (https://github.com/woocommerce/woocommerce-blocks/pull/1926) 2020-03-16 16:38:24 +00:00
data Add nonces to Store API endpoints (https://github.com/woocommerce/woocommerce-blocks/pull/1992) 2020-03-19 11:50:51 +00:00
filters Only populate default attributes on initial mount of block. (https://github.com/woocommerce/woocommerce-blocks/pull/1640) 2020-01-24 11:53:15 -05:00
hocs Implement "return to cart" and "place order" buttons on checkout (https://github.com/woocommerce/woocommerce-blocks/pull/1926) 2020-03-16 16:38:24 +00:00
icons Implement "return to cart" and "place order" buttons on checkout (https://github.com/woocommerce/woocommerce-blocks/pull/1926) 2020-03-16 16:38:24 +00:00
legacy All Products with Inner Blocks (https://github.com/woocommerce/woocommerce-blocks/pull/1032) 2019-10-28 09:53:09 -04:00
payment-methods-demo Update payment registration config to include `edit` components (https://github.com/woocommerce/woocommerce-blocks/pull/1928) 2020-03-10 12:35:30 -04:00
previews Add line pricing for cart items in the API (https://github.com/woocommerce/woocommerce-blocks/pull/1979) 2020-03-17 15:34:33 +00:00
settings Add nonces to Store API endpoints (https://github.com/woocommerce/woocommerce-blocks/pull/1992) 2020-03-19 11:50:51 +00:00
type-defs Refactor useBillingData to useCheckoutContext and hooking it up to form (https://github.com/woocommerce/woocommerce-blocks/pull/2002) 2020-03-23 21:13:41 +01:00
utils Cart and checkout error boundaries (https://github.com/woocommerce/woocommerce-blocks/pull/1853) 2020-03-06 11:43:40 +00:00
index.js Give Woo Icon special treatment by making it a component (https://github.com/woocommerce/woocommerce-blocks/pull/1702) 2020-02-10 14:24:02 +01:00