@anker-in/shopify-react 1.2.2-beta.2 → 1.2.2-beta.4
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/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +41 -30
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +41 -30
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -30
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.d.mts +1 -1
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs.map +1 -1
- package/dist/{types-C4qc-wG4.d.mts → types-DnDvCDW-.d.mts} +12 -4
- package/dist/{types-C4qc-wG4.d.ts → types-DnDvCDW-.d.ts} +12 -4
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NormalizedProductVariant, NormalizedProduct, MoneyV2, NormalizedCart
|
|
1
|
+
import { NormalizedLineItem, NormalizedProductVariant, NormalizedProduct, MoneyV2, NormalizedCart } from '@anker-in/shopify-sdk';
|
|
2
2
|
import Decimal from 'decimal.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -37,7 +37,11 @@ declare const gaTrack: (data: Record<string, unknown>) => void;
|
|
|
37
37
|
* Track add to cart event in GA4
|
|
38
38
|
*/
|
|
39
39
|
declare const trackAddToCartGA: ({ lineItems, gtmParams, }: {
|
|
40
|
-
lineItems:
|
|
40
|
+
lineItems: Array<NormalizedLineItem & {
|
|
41
|
+
gtmParams?: {
|
|
42
|
+
item_category_id?: number | string;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
41
45
|
gtmParams?: GtmParams;
|
|
42
46
|
}) => void;
|
|
43
47
|
/**
|
|
@@ -96,8 +100,12 @@ declare global {
|
|
|
96
100
|
/**
|
|
97
101
|
* Track add to cart event in Facebook Pixel
|
|
98
102
|
*/
|
|
99
|
-
declare const trackAddToCartFBQ: ({ lineItems }: {
|
|
100
|
-
lineItems:
|
|
103
|
+
declare const trackAddToCartFBQ: ({ lineItems, }: {
|
|
104
|
+
lineItems: Array<NormalizedLineItem & {
|
|
105
|
+
gtmParams?: {
|
|
106
|
+
item_category_id?: number | string;
|
|
107
|
+
};
|
|
108
|
+
}>;
|
|
101
109
|
}) => void;
|
|
102
110
|
/**
|
|
103
111
|
* Configuration for Buy Now tracking events
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NormalizedProductVariant, NormalizedProduct, MoneyV2, NormalizedCart
|
|
1
|
+
import { NormalizedLineItem, NormalizedProductVariant, NormalizedProduct, MoneyV2, NormalizedCart } from '@anker-in/shopify-sdk';
|
|
2
2
|
import Decimal from 'decimal.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -37,7 +37,11 @@ declare const gaTrack: (data: Record<string, unknown>) => void;
|
|
|
37
37
|
* Track add to cart event in GA4
|
|
38
38
|
*/
|
|
39
39
|
declare const trackAddToCartGA: ({ lineItems, gtmParams, }: {
|
|
40
|
-
lineItems:
|
|
40
|
+
lineItems: Array<NormalizedLineItem & {
|
|
41
|
+
gtmParams?: {
|
|
42
|
+
item_category_id?: number | string;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
41
45
|
gtmParams?: GtmParams;
|
|
42
46
|
}) => void;
|
|
43
47
|
/**
|
|
@@ -96,8 +100,12 @@ declare global {
|
|
|
96
100
|
/**
|
|
97
101
|
* Track add to cart event in Facebook Pixel
|
|
98
102
|
*/
|
|
99
|
-
declare const trackAddToCartFBQ: ({ lineItems }: {
|
|
100
|
-
lineItems:
|
|
103
|
+
declare const trackAddToCartFBQ: ({ lineItems, }: {
|
|
104
|
+
lineItems: Array<NormalizedLineItem & {
|
|
105
|
+
gtmParams?: {
|
|
106
|
+
item_category_id?: number | string;
|
|
107
|
+
};
|
|
108
|
+
}>;
|
|
101
109
|
}) => void;
|
|
102
110
|
/**
|
|
103
111
|
* Configuration for Buy Now tracking events
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anker-in/shopify-react",
|
|
3
|
-
"version": "1.2.2-beta.
|
|
3
|
+
"version": "1.2.2-beta.04",
|
|
4
4
|
"description": "React hooks and components for Shopify SDK",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"decimal.js": "^10.6.0",
|
|
32
32
|
"js-cookie": "^3.0.5",
|
|
33
33
|
"swr": "^2.2.0",
|
|
34
|
-
"@anker-in/shopify-
|
|
35
|
-
"@anker-in/shopify-
|
|
34
|
+
"@anker-in/shopify-sdk": "1.1.1",
|
|
35
|
+
"@anker-in/shopify-core": "1.0.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=18.0.0",
|