@artisan-commerce/analytics-rn 0.3.0-canary.160 → 0.3.0-canary.162
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/bundle.d.ts +1 -3
- package/dist/bundle.mjs +3 -3
- package/package.json +6 -6
package/dist/bundle.d.ts
CHANGED
|
@@ -1838,7 +1838,7 @@ interface PurchaseSuccessCommonParams {
|
|
|
1838
1838
|
/** The order shopping cart */
|
|
1839
1839
|
shoppingCart: ShoppingCart;
|
|
1840
1840
|
/** The selected payment type (e.g. Cash, Card) */
|
|
1841
|
-
|
|
1841
|
+
paymentType: PaymentType;
|
|
1842
1842
|
/** The workflow name (e.g. Delivery) */
|
|
1843
1843
|
fulfillmentType: Workflow;
|
|
1844
1844
|
/** If paying with card the card provider (e.g. visa) */
|
|
@@ -2039,8 +2039,6 @@ interface ViewProductDetailsParams$1 extends SegmentCommonEventParams, SegmentCu
|
|
|
2039
2039
|
interface ViewProductDetailsCommonParams {
|
|
2040
2040
|
/** The details of the product that the user is viewing */
|
|
2041
2041
|
product: Product;
|
|
2042
|
-
/** The shopping cart that the product belongs to */
|
|
2043
|
-
cart: ShoppingCart;
|
|
2044
2042
|
/** The list that the product belongs to, this is used to add `item_list_name` to the items array */
|
|
2045
2043
|
list?: string;
|
|
2046
2044
|
}
|
package/dist/bundle.mjs
CHANGED
|
@@ -51,7 +51,7 @@ const _State = class {
|
|
|
51
51
|
let State$1 = _State;
|
|
52
52
|
State$1._instance = null;
|
|
53
53
|
|
|
54
|
-
var version = "0.3.0-canary.
|
|
54
|
+
var version = "0.3.0-canary.162";
|
|
55
55
|
var packageJSON = {
|
|
56
56
|
version: version};
|
|
57
57
|
|
|
@@ -844,8 +844,8 @@ const toItems = (type, params) => {
|
|
|
844
844
|
return toItemProduct(product, cart, item_category2);
|
|
845
845
|
}
|
|
846
846
|
case "viewProductDetails": {
|
|
847
|
-
const { product
|
|
848
|
-
return toItemProduct(product
|
|
847
|
+
const { product } = params;
|
|
848
|
+
return toItemProduct(product);
|
|
849
849
|
}
|
|
850
850
|
case "purchaseSuccess": {
|
|
851
851
|
const { shoppingCart } = params;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artisan-commerce/analytics-rn",
|
|
3
3
|
"description": "Artisn commerce analytics react native library",
|
|
4
|
-
"version": "0.3.0-canary.
|
|
4
|
+
"version": "0.3.0-canary.162",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/bundle.mjs",
|
|
7
7
|
"module": "./dist/bundle.mjs",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"snake-case": "^3.0.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@artisan-commerce/products": "0.9.0-canary.
|
|
40
|
-
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.
|
|
41
|
-
"@artisan-commerce/state": "0.3.0-canary.
|
|
42
|
-
"@artisan-commerce/types": "0.14.0-canary.
|
|
39
|
+
"@artisan-commerce/products": "0.9.0-canary.108",
|
|
40
|
+
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.146",
|
|
41
|
+
"@artisan-commerce/state": "0.3.0-canary.57",
|
|
42
|
+
"@artisan-commerce/types": "0.14.0-canary.85",
|
|
43
43
|
"@babel/core": "^7.13.15",
|
|
44
44
|
"@babel/preset-env": "^7.10.4",
|
|
45
45
|
"@babel/preset-react": "^7.10.4",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "3302349ec6be09ba7ec7d82c61bef1e0d35dec3d"
|
|
88
88
|
}
|