@lookiero/checkout 4.0.1 → 4.0.2

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.
@@ -18,13 +18,15 @@ const useTrackCheckout = ({ page, country, checkoutId }) => {
18
18
  sizeChanges: totalReplacedFor,
19
19
  isFirstOrder,
20
20
  ecommerce: {
21
- actionField: {
22
- items: totalCheckoutItemsKept,
23
- currencyCode,
24
- subscription,
25
- coupon,
26
- orderId: orderNumber,
27
- value: pendingToPay,
21
+ checkout: {
22
+ actionField: {
23
+ items: totalCheckoutItemsKept,
24
+ currencyCode,
25
+ subscription,
26
+ coupon,
27
+ orderId: orderNumber,
28
+ value: pendingToPay,
29
+ },
28
30
  },
29
31
  },
30
32
  };
@@ -91,13 +91,15 @@ interface CheckoutTrackingEvent extends BaseTrackingEvent {
91
91
  readonly sizeChanges: number;
92
92
  readonly isFirstOrder: boolean;
93
93
  readonly ecommerce: {
94
- readonly actionField: {
95
- readonly items: number;
96
- readonly currencyCode: Currency;
97
- readonly subscription: Subscription;
98
- readonly coupon: string | null;
99
- readonly orderId: number;
100
- readonly value: number;
94
+ readonly checkout: {
95
+ readonly actionField: {
96
+ readonly items: number;
97
+ readonly currencyCode: Currency;
98
+ readonly subscription: Subscription;
99
+ readonly coupon: string | null;
100
+ readonly orderId: number;
101
+ readonly value: number;
102
+ };
101
103
  };
102
104
  };
103
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [