@graphcommerce/google-datalayer 9.1.0-canary.53 → 9.1.0-canary.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @graphcommerce/google-datalayer
2
2
 
3
+ ## 9.1.0-canary.55
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2539](https://github.com/graphcommerce-org/graphcommerce/pull/2539) [`1a06135`](https://github.com/graphcommerce-org/graphcommerce/commit/1a061357f4ccb430dd13194f755815474e140520) - Allow awaitable async requests for onStart on checkout button ([@paales](https://github.com/paales))
8
+
9
+ ## 9.1.0-canary.54
10
+
3
11
  ## 9.1.0-canary.53
4
12
 
5
13
  ## 9.1.0-canary.52
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/google-datalayer",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.1.0-canary.53",
5
+ "version": "9.1.0-canary.55",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,15 +12,15 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.53",
16
- "@graphcommerce/magento-cart": "^9.1.0-canary.53",
17
- "@graphcommerce/magento-cart-payment-method": "^9.1.0-canary.53",
18
- "@graphcommerce/magento-cart-shipping-method": "^9.1.0-canary.53",
19
- "@graphcommerce/magento-product": "^9.1.0-canary.53",
20
- "@graphcommerce/next-ui": "^9.1.0-canary.53",
21
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.53",
22
- "@graphcommerce/react-hook-form": "^9.1.0-canary.53",
23
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.53",
15
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.55",
16
+ "@graphcommerce/magento-cart": "^9.1.0-canary.55",
17
+ "@graphcommerce/magento-cart-payment-method": "^9.1.0-canary.55",
18
+ "@graphcommerce/magento-cart-shipping-method": "^9.1.0-canary.55",
19
+ "@graphcommerce/magento-product": "^9.1.0-canary.55",
20
+ "@graphcommerce/next-ui": "^9.1.0-canary.55",
21
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.55",
22
+ "@graphcommerce/react-hook-form": "^9.1.0-canary.55",
23
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.55",
24
24
  "@mui/material": "^5.14.20",
25
25
  "next": "*",
26
26
  "react": "^18.2.0",
@@ -27,9 +27,9 @@ export function CartStartCheckout(props: PluginProps<CartStartCheckoutProps>) {
27
27
  return (
28
28
  <Prev
29
29
  {...rest}
30
- onStart={(e, cart) => {
30
+ onStart={async (e, cart) => {
31
+ await onStart?.(e, cart)
31
32
  if (cart) sendEvent('begin_checkout', cartToBeginCheckout(cart))
32
- return onStart?.(e, cart)
33
33
  }}
34
34
  />
35
35
  )
@@ -17,9 +17,9 @@ export function CartStartCheckoutLinkOrButton(
17
17
  return (
18
18
  <Prev
19
19
  {...rest}
20
- onStart={(e, cart) => {
20
+ onStart={async (e, cart) => {
21
+ await onStart?.(e, cart)
21
22
  if (cart) sendEvent('begin_checkout', cartToBeginCheckout(cart))
22
- return onStart?.(e, cart)
23
23
  }}
24
24
  />
25
25
  )