@lookiero/checkout 1.1.4-beta.1 → 1.1.4-beta.3

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.
@@ -71,7 +71,7 @@ const Item = ({ customerId, country }) => {
71
71
  const replaceableFor = useMemo(() => sizeChangeEnabledStatus === QueryStatus.SUCCESS
72
72
  ? isSizeChangeEnabled
73
73
  ? bookedProductsVariants
74
- ? bookedProductsVariants?.productVariants.map(({ id }) => id)
74
+ ? bookedProductsVariants.productVariants.map(({ id }) => id)
75
75
  : undefined
76
76
  : []
77
77
  : undefined, [bookedProductsVariants, isSizeChangeEnabled, sizeChangeEnabledStatus]);
@@ -81,7 +81,7 @@ const Item = ({ customerId, country }) => {
81
81
  checkoutId: checkout?.id,
82
82
  checkoutItemId: checkoutItem.id,
83
83
  productVariantId: checkoutItem.productVariant.id,
84
- replaceableFor,
84
+ replaceableFor: replaceableFor ? replaceableFor.toString() : undefined,
85
85
  unique: checkoutItem.productVariant.size.unique,
86
86
  });
87
87
  const dependenciesLoaded = checkoutStatus !== QueryStatus.LOADING &&
@@ -6,7 +6,7 @@ interface UseTrackItemPageViewFunctionArgs {
6
6
  readonly checkoutId?: string;
7
7
  readonly checkoutItemId: string;
8
8
  readonly productVariantId: string;
9
- readonly replaceableFor: string[] | undefined;
9
+ readonly replaceableFor: string | undefined;
10
10
  readonly unique: boolean;
11
11
  }
12
12
  interface UseTrackItemPageViewFunction {
@@ -31,7 +31,7 @@ type PageViewTrackingEvent = BaseTrackingEvent;
31
31
  interface ItemPageViewTrackingEvent extends BaseTrackingEvent {
32
32
  readonly checkoutItemId: string;
33
33
  readonly productVariantId: string;
34
- readonly replaceableFor: string[] | undefined;
34
+ readonly replaceableFor: string;
35
35
  readonly unique: boolean;
36
36
  }
37
37
  interface KeepItemTrackingEvent extends BaseTrackingEvent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "1.1.4-beta.1",
3
+ "version": "1.1.4-beta.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [