@azzas/azzas-tracker-web 1.0.82 → 1.0.83
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/README.md +130 -130
- package/dist/mod.cjs +8 -8
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.d.cts +0 -0
- package/dist/mod.d.ts +0 -0
- package/dist/mod.global.js +8 -8
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +8 -8
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +42 -42
- package/package.json +38 -38
package/dist/mod.vtex.global.js
CHANGED
|
@@ -723,7 +723,7 @@ var AzzasTracker = function() {
|
|
|
723
723
|
4,
|
|
724
724
|
Promise.all(items.map(function(item) {
|
|
725
725
|
return _async_to_generator(function() {
|
|
726
|
-
var _item_additionalInfo, _item_additionalInfo1,
|
|
726
|
+
var _item_additionalInfo, _item_additionalInfo1, _item_skuName_split_, _item_skuName, _item_skuName_split_1, _item_skuName1, _tmp;
|
|
727
727
|
return _ts_generator(this, function(_state) {
|
|
728
728
|
switch(_state.label){
|
|
729
729
|
case 0:
|
|
@@ -744,7 +744,7 @@ var AzzasTracker = function() {
|
|
|
744
744
|
case 1:
|
|
745
745
|
return [
|
|
746
746
|
2,
|
|
747
|
-
(_tmp.item_sku = _state.sent() ||
|
|
747
|
+
(_tmp.item_sku = _state.sent() || null, _tmp.item_name = (item === null || item === void 0 ? void 0 : item.name.replace(item === null || item === void 0 ? void 0 : item.skuName, "").trim()) || item.name || null, _tmp.item_category = getItemCategory(item) || null, _tmp.item_variant = (item === null || item === void 0 ? void 0 : (_item_skuName = item.skuName) === null || _item_skuName === void 0 ? void 0 : (_item_skuName_split_ = _item_skuName.split(" - ")[0]) === null || _item_skuName_split_ === void 0 ? void 0 : _item_skuName_split_.trim()) || "", _tmp.item_variant2 = (item === null || item === void 0 ? void 0 : (_item_skuName1 = item.skuName) === null || _item_skuName1 === void 0 ? void 0 : (_item_skuName_split_1 = _item_skuName1.split(" - ")[1]) === null || _item_skuName_split_1 === void 0 ? void 0 : _item_skuName_split_1.trim()) || "", _tmp.item_url = "https://www.farmrio.com.br".concat(item.detailUrl) || null, _tmp.discount = getDiscount(item), _tmp.image_url = resizeVtexImage(item === null || item === void 0 ? void 0 : item.image) || resizeVtexImage(item === null || item === void 0 ? void 0 : item.imageUrl) || null, _tmp)
|
|
748
748
|
];
|
|
749
749
|
}
|
|
750
750
|
});
|
|
@@ -918,7 +918,7 @@ var AzzasTracker = function() {
|
|
|
918
918
|
var itemsFromItem = // src/params/resolvers/items/fromItem.ts
|
|
919
919
|
function itemsFromItem(context, event) {
|
|
920
920
|
return _async_to_generator(function() {
|
|
921
|
-
var _item_additionalProperty, _item_itemOffered, _item_itemOffered1, _item_additionalInfo, _item_brand, _item_itemOffered_brand, _item_itemOffered2, _item_itemOffered3, _item_name, _item_item_name, _item_itemOffered_isVariantOf_name, _item_itemOffered_isVariantOf, _item_itemOffered4, _item_itemAttributes, _split_pop, _this, item, orderForm, itemListName, resolvedListName, resolvedItemId, _tmp, _tmp1;
|
|
921
|
+
var _item_additionalProperty, _item_itemOffered, _item_itemOffered1, _item_additionalInfo, _item_brand, _item_itemOffered_brand, _item_itemOffered2, _item_itemOffered3, _item_name, _item_name1, _item_item_name, _item_itemOffered_isVariantOf_name, _item_itemOffered_isVariantOf, _item_itemOffered4, _item_itemAttributes, _split_pop, _this, item, orderForm, itemListName, resolvedListName, resolvedItemId, _tmp, _tmp1;
|
|
922
922
|
return _ts_generator(this, function(_state) {
|
|
923
923
|
switch(_state.label){
|
|
924
924
|
case 0:
|
|
@@ -961,7 +961,7 @@ var AzzasTracker = function() {
|
|
|
961
961
|
return [
|
|
962
962
|
2,
|
|
963
963
|
[
|
|
964
|
-
(_tmp.item_sku = _tmp1 || null, _tmp.item_name = (item === null || item === void 0 ? void 0 : (_item_name = item.name) === null || _item_name === void 0 ? void 0 : _item_name.split(" - ").shift()) || (item === null || item === void 0 ? void 0 : (_item_item_name = item.item_name) === null || _item_item_name === void 0 ? void 0 : _item_item_name.split(" - ").shift()) || (item === null || item === void 0 ? void 0 : (_item_itemOffered4 = item.itemOffered) === null || _item_itemOffered4 === void 0 ? void 0 : (_item_itemOffered_isVariantOf = _item_itemOffered4.isVariantOf) === null || _item_itemOffered_isVariantOf === void 0 ? void 0 : (_item_itemOffered_isVariantOf_name = _item_itemOffered_isVariantOf.name) === null || _item_itemOffered_isVariantOf_name === void 0 ? void 0 : _item_itemOffered_isVariantOf_name.split(" - ").shift()) || null, _tmp.item_category = getItemCategory(item) || null, _tmp.item_variant = ((item === null || item === void 0 ? void 0 : item.skuName) || (item === null || item === void 0 ? void 0 : item.item_variant) || (item === null || item === void 0 ? void 0 : item.name) || (item === null || item === void 0 ? void 0 : item.itemOffered.name)).split(/[-/]/)[0].trim() || null, _tmp.item_variant2 = (item === null || item === void 0 ? void 0 : item.size) || (item === null || item === void 0 ? void 0 : (_item_itemAttributes = item.itemAttributes) === null || _item_itemAttributes === void 0 ? void 0 : _item_itemAttributes.size) || ((_this = (item === null || item === void 0 ? void 0 : item.skuName) || (item === null || item === void 0 ? void 0 : item.name) || (item === null || item === void 0 ? void 0 : item.itemOffered.name)) === null || _this === void 0 ? void 0 : (_split_pop = _this.split(/[-/]/).pop()) === null || _split_pop === void 0 ? void 0 : _split_pop.trim()) || null, _tmp.discount = getDiscount(item), _tmp.item_list_name = resolvedListName, _tmp.item_url = (item === null || item === void 0 ? void 0 : item.item_url) || null, _tmp.// add_to_cart dito
|
|
964
|
+
(_tmp.item_sku = _tmp1 || null, _tmp.item_name = (item === null || item === void 0 ? void 0 : (_item_name = item.name) === null || _item_name === void 0 ? void 0 : _item_name.replace(item === null || item === void 0 ? void 0 : item.skuName, "").trim()) || (item === null || item === void 0 ? void 0 : (_item_name1 = item.name) === null || _item_name1 === void 0 ? void 0 : _item_name1.split(" - ").shift()) || (item === null || item === void 0 ? void 0 : (_item_item_name = item.item_name) === null || _item_item_name === void 0 ? void 0 : _item_item_name.split(" - ").shift()) || (item === null || item === void 0 ? void 0 : (_item_itemOffered4 = item.itemOffered) === null || _item_itemOffered4 === void 0 ? void 0 : (_item_itemOffered_isVariantOf = _item_itemOffered4.isVariantOf) === null || _item_itemOffered_isVariantOf === void 0 ? void 0 : (_item_itemOffered_isVariantOf_name = _item_itemOffered_isVariantOf.name) === null || _item_itemOffered_isVariantOf_name === void 0 ? void 0 : _item_itemOffered_isVariantOf_name.split(" - ").shift()) || null, _tmp.item_category = getItemCategory(item) || null, _tmp.item_variant = ((item === null || item === void 0 ? void 0 : item.skuName) || (item === null || item === void 0 ? void 0 : item.item_variant) || (item === null || item === void 0 ? void 0 : item.name) || (item === null || item === void 0 ? void 0 : item.itemOffered.name)).split(/[-/]/)[0].trim() || null, _tmp.item_variant2 = (item === null || item === void 0 ? void 0 : item.size) || (item === null || item === void 0 ? void 0 : (_item_itemAttributes = item.itemAttributes) === null || _item_itemAttributes === void 0 ? void 0 : _item_itemAttributes.size) || ((_this = (item === null || item === void 0 ? void 0 : item.skuName) || (item === null || item === void 0 ? void 0 : item.name) || (item === null || item === void 0 ? void 0 : item.itemOffered.name)) === null || _this === void 0 ? void 0 : (_split_pop = _this.split(/[-/]/).pop()) === null || _split_pop === void 0 ? void 0 : _split_pop.trim()) || null, _tmp.discount = getDiscount(item), _tmp.item_list_name = resolvedListName, _tmp.item_url = (item === null || item === void 0 ? void 0 : item.item_url) || null, _tmp.// add_to_cart dito
|
|
965
965
|
image_url = resizeVtexImage(item === null || item === void 0 ? void 0 : item.image) || resizeVtexImage(item === null || item === void 0 ? void 0 : item.imageUrl) || null, _tmp)
|
|
966
966
|
]
|
|
967
967
|
];
|
|
@@ -1279,20 +1279,20 @@ var AzzasTracker = function() {
|
|
|
1279
1279
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1280
1280
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1281
1281
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1282
|
-
var __export = function
|
|
1282
|
+
var __export = function(target, all) {
|
|
1283
1283
|
for(var name in all)__defProp(target, name, {
|
|
1284
1284
|
get: all[name],
|
|
1285
1285
|
enumerable: true
|
|
1286
1286
|
});
|
|
1287
1287
|
};
|
|
1288
|
-
var __copyProps = function
|
|
1288
|
+
var __copyProps = function(to, from, except, desc) {
|
|
1289
1289
|
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
1290
1290
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1291
1291
|
try {
|
|
1292
1292
|
var _loop = function() {
|
|
1293
1293
|
var key = _step.value;
|
|
1294
1294
|
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
1295
|
-
get: function
|
|
1295
|
+
get: function() {
|
|
1296
1296
|
return from[key];
|
|
1297
1297
|
},
|
|
1298
1298
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
@@ -1316,7 +1316,7 @@ var AzzasTracker = function() {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
return to;
|
|
1318
1318
|
};
|
|
1319
|
-
var __toCommonJS = function
|
|
1319
|
+
var __toCommonJS = function(mod) {
|
|
1320
1320
|
return __copyProps(__defProp({}, "__esModule", {
|
|
1321
1321
|
value: true
|
|
1322
1322
|
}), mod);
|
|
@@ -1324,13 +1324,13 @@ var AzzasTracker = function() {
|
|
|
1324
1324
|
// src/index.ts
|
|
1325
1325
|
var src_exports = {};
|
|
1326
1326
|
__export(src_exports, {
|
|
1327
|
-
EVENTS: function
|
|
1327
|
+
EVENTS: function() {
|
|
1328
1328
|
return EVENTS;
|
|
1329
1329
|
},
|
|
1330
|
-
default: function
|
|
1330
|
+
default: function() {
|
|
1331
1331
|
return src_default;
|
|
1332
1332
|
},
|
|
1333
|
-
trackWebEvent: function
|
|
1333
|
+
trackWebEvent: function() {
|
|
1334
1334
|
return trackWebEvent;
|
|
1335
1335
|
}
|
|
1336
1336
|
});
|
|
@@ -1781,16 +1781,16 @@ var AzzasTracker = function() {
|
|
|
1781
1781
|
"cart\xE3o"
|
|
1782
1782
|
]
|
|
1783
1783
|
];
|
|
1784
|
-
var toNum = function
|
|
1784
|
+
var toNum = function(val) {
|
|
1785
1785
|
return typeof val === "string" ? Number(val.replace(/[^\d,]/g, "").replace(",", ".")) : val;
|
|
1786
1786
|
};
|
|
1787
|
-
var setLocalStorage = function
|
|
1787
|
+
var setLocalStorage = function(key, value) {
|
|
1788
1788
|
localStorage.setItem(key, value);
|
|
1789
1789
|
};
|
|
1790
|
-
var getLocalStorage = function
|
|
1790
|
+
var getLocalStorage = function(key) {
|
|
1791
1791
|
return localStorage.getItem(key);
|
|
1792
1792
|
};
|
|
1793
|
-
var documentToHash = function
|
|
1793
|
+
var documentToHash = function(document2) {
|
|
1794
1794
|
return _async_to_generator(function() {
|
|
1795
1795
|
var encoder, data, hashBuffer, hashArray;
|
|
1796
1796
|
return _ts_generator(this, function(_state) {
|
|
@@ -1835,7 +1835,7 @@ var AzzasTracker = function() {
|
|
|
1835
1835
|
brand: getBrand,
|
|
1836
1836
|
items: getItems,
|
|
1837
1837
|
payment_type: getPaymentType,
|
|
1838
|
-
user_info: function
|
|
1838
|
+
user_info: function(context, eventName) {
|
|
1839
1839
|
return _async_to_generator(function() {
|
|
1840
1840
|
var _PROD_DOMAINS_, PROD_DOMAINS, domain, api, response, res, cpfFromStorage, hashedDocument, _;
|
|
1841
1841
|
return _ts_generator(this, function(_state) {
|
|
@@ -1966,13 +1966,13 @@ var AzzasTracker = function() {
|
|
|
1966
1966
|
});
|
|
1967
1967
|
})();
|
|
1968
1968
|
},
|
|
1969
|
-
content_type: function
|
|
1969
|
+
content_type: function(context, eventName) {
|
|
1970
1970
|
return "regiao".concat(":" + context.category).concat(context.subcategory ? ":" + context.subcategory : "").concat(":" + context.componentName) || null;
|
|
1971
1971
|
},
|
|
1972
|
-
region: function
|
|
1972
|
+
region: function(context, eventName) {
|
|
1973
1973
|
return context.region || null;
|
|
1974
1974
|
},
|
|
1975
|
-
line_items: function
|
|
1975
|
+
line_items: function(context, eventName) {
|
|
1976
1976
|
if (context === null || context === void 0 ? void 0 : context.lineItems) return context.lineItems;
|
|
1977
1977
|
if (context === null || context === void 0 ? void 0 : context.item) {
|
|
1978
1978
|
return [
|
|
@@ -1988,7 +1988,7 @@ var AzzasTracker = function() {
|
|
|
1988
1988
|
return item.productId;
|
|
1989
1989
|
}).join(",");
|
|
1990
1990
|
},
|
|
1991
|
-
currency: function
|
|
1991
|
+
currency: function(context, eventName) {
|
|
1992
1992
|
var _context_orderForm_storePreferencesData, _context_orderForm;
|
|
1993
1993
|
if (context === null || context === void 0 ? void 0 : context.currency) return context.currency;
|
|
1994
1994
|
if (context === null || context === void 0 ? void 0 : context.bannerUrl) return "BRL";
|
|
@@ -1998,12 +1998,12 @@ var AzzasTracker = function() {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
return ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : (_context_orderForm_storePreferencesData = _context_orderForm.storePreferencesData) === null || _context_orderForm_storePreferencesData === void 0 ? void 0 : _context_orderForm_storePreferencesData.currencyCode) || null;
|
|
2000
2000
|
},
|
|
2001
|
-
value: function
|
|
2001
|
+
value: function(context, eventName) {
|
|
2002
2002
|
var _context_item, _context_orderForm;
|
|
2003
2003
|
if (context === null || context === void 0 ? void 0 : context.value) return toNum(context.value);
|
|
2004
2004
|
return context.item ? toNum((_context_item = context.item) === null || _context_item === void 0 ? void 0 : _context_item.price) : ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : _context_orderForm.value) != null ? context.orderForm.value / 100 : null;
|
|
2005
2005
|
},
|
|
2006
|
-
total_discount: function
|
|
2006
|
+
total_discount: function(context, eventName) {
|
|
2007
2007
|
var _context_orderForm, _context_orderForm1;
|
|
2008
2008
|
if (context === null || context === void 0 ? void 0 : context.totalDiscount) return context.totalDiscount;
|
|
2009
2009
|
var totalsList = ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : _context_orderForm.totalizers) || ((_context_orderForm1 = context.orderForm) === null || _context_orderForm1 === void 0 ? void 0 : _context_orderForm1.totals) || [];
|
|
@@ -2017,7 +2017,7 @@ var AzzasTracker = function() {
|
|
|
2017
2017
|
});
|
|
2018
2018
|
return Math.abs(((discounts === null || discounts === void 0 ? void 0 : discounts.value) || 0) + totalDiscount) / 100 || null;
|
|
2019
2019
|
},
|
|
2020
|
-
subtotal: function
|
|
2020
|
+
subtotal: function(context, eventName) {
|
|
2021
2021
|
var _context_orderForm, _context_orderForm1;
|
|
2022
2022
|
var totalsList = ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : _context_orderForm.totalizers) || ((_context_orderForm1 = context.orderForm) === null || _context_orderForm1 === void 0 ? void 0 : _context_orderForm1.totals) || [];
|
|
2023
2023
|
var subtotal = totalsList.filter(function(t) {
|
|
@@ -2027,7 +2027,7 @@ var AzzasTracker = function() {
|
|
|
2027
2027
|
}, 0) / 100 || 0;
|
|
2028
2028
|
return subtotal;
|
|
2029
2029
|
},
|
|
2030
|
-
coupon_message: function
|
|
2030
|
+
coupon_message: function(context, eventName) {
|
|
2031
2031
|
var _context_orderForm;
|
|
2032
2032
|
if (context.couponMessage) return context.couponMessage;
|
|
2033
2033
|
var messages = ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : _context_orderForm.messages) || [];
|
|
@@ -2040,44 +2040,44 @@ var AzzasTracker = function() {
|
|
|
2040
2040
|
return msg.text;
|
|
2041
2041
|
}).join(" | ");
|
|
2042
2042
|
},
|
|
2043
|
-
seller_cod_name: function
|
|
2043
|
+
seller_cod_name: function(context, eventName) {
|
|
2044
2044
|
return context.appliedSellerCodName || (context === null || context === void 0 ? void 0 : context.orderForm.marketingData.utmiCampaign) || null;
|
|
2045
2045
|
},
|
|
2046
|
-
coupon: function
|
|
2046
|
+
coupon: function(context, eventName) {
|
|
2047
2047
|
var _context_orderForm_marketingData, _context_orderForm;
|
|
2048
2048
|
return context.appliedCoupon || (context === null || context === void 0 ? void 0 : (_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : (_context_orderForm_marketingData = _context_orderForm.marketingData) === null || _context_orderForm_marketingData === void 0 ? void 0 : _context_orderForm_marketingData.coupon) || null;
|
|
2049
2049
|
},
|
|
2050
|
-
pre_filled: function
|
|
2050
|
+
pre_filled: function(context, eventName) {
|
|
2051
2051
|
return !!context.preFilled;
|
|
2052
2052
|
},
|
|
2053
|
-
search_term: function
|
|
2053
|
+
search_term: function(context, eventName) {
|
|
2054
2054
|
return context.searchTerm || null;
|
|
2055
2055
|
},
|
|
2056
|
-
search_found: function
|
|
2056
|
+
search_found: function(context, eventName) {
|
|
2057
2057
|
return !!context.searchFound;
|
|
2058
2058
|
},
|
|
2059
|
-
search_quantity: function
|
|
2059
|
+
search_quantity: function(context, eventName) {
|
|
2060
2060
|
return context.searchQuantity || 0;
|
|
2061
2061
|
},
|
|
2062
|
-
promotion_name: function
|
|
2062
|
+
promotion_name: function(context, eventName) {
|
|
2063
2063
|
return context.promotionName || null;
|
|
2064
2064
|
},
|
|
2065
|
-
creative_name: function
|
|
2065
|
+
creative_name: function(context, eventName) {
|
|
2066
2066
|
return context.creativeName || null;
|
|
2067
2067
|
},
|
|
2068
|
-
creative_slot: function
|
|
2068
|
+
creative_slot: function(context, eventName) {
|
|
2069
2069
|
return context.creativeSlot || null;
|
|
2070
2070
|
},
|
|
2071
|
-
zipcode: function
|
|
2071
|
+
zipcode: function(context, eventName) {
|
|
2072
2072
|
return context.zipCode || null;
|
|
2073
2073
|
},
|
|
2074
|
-
size: function
|
|
2074
|
+
size: function(context, eventName) {
|
|
2075
2075
|
return context.size || null;
|
|
2076
2076
|
},
|
|
2077
|
-
item_ref: function
|
|
2077
|
+
item_ref: function(context, eventName) {
|
|
2078
2078
|
return context.itemRef || null;
|
|
2079
2079
|
},
|
|
2080
|
-
flag_pickup: function
|
|
2080
|
+
flag_pickup: function(context, eventName) {
|
|
2081
2081
|
var _orderForm_shippingData;
|
|
2082
2082
|
var orderForm = context.orderForm;
|
|
2083
2083
|
if (!orderForm) return null;
|
|
@@ -2090,7 +2090,7 @@ var AzzasTracker = function() {
|
|
|
2090
2090
|
});
|
|
2091
2091
|
return hasPickup;
|
|
2092
2092
|
},
|
|
2093
|
-
shippings: function
|
|
2093
|
+
shippings: function(context, eventName) {
|
|
2094
2094
|
var orderForm = context.orderForm;
|
|
2095
2095
|
if (!orderForm) return null;
|
|
2096
2096
|
var groupShipping = {};
|
|
@@ -2154,7 +2154,7 @@ var AzzasTracker = function() {
|
|
|
2154
2154
|
});
|
|
2155
2155
|
return shippings || null;
|
|
2156
2156
|
},
|
|
2157
|
-
shipping: function
|
|
2157
|
+
shipping: function(context, eventName) {
|
|
2158
2158
|
var _ref;
|
|
2159
2159
|
var _context_orderForm_shippingData, _context_orderForm;
|
|
2160
2160
|
var logistics = (_ref = context === null || context === void 0 ? void 0 : (_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : (_context_orderForm_shippingData = _context_orderForm.shippingData) === null || _context_orderForm_shippingData === void 0 ? void 0 : _context_orderForm_shippingData.logisticsInfo) !== null && _ref !== void 0 ? _ref : [];
|
|
@@ -2167,7 +2167,7 @@ var AzzasTracker = function() {
|
|
|
2167
2167
|
return total + ((_ref = selected === null || selected === void 0 ? void 0 : selected.price) !== null && _ref !== void 0 ? _ref : 0);
|
|
2168
2168
|
}, 0);
|
|
2169
2169
|
},
|
|
2170
|
-
shipping_tier: function
|
|
2170
|
+
shipping_tier: function(context, eventName) {
|
|
2171
2171
|
var _ref;
|
|
2172
2172
|
var _context_orderForm_shippingData, _context_orderForm;
|
|
2173
2173
|
var logistics = (_ref = context === null || context === void 0 ? void 0 : (_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : (_context_orderForm_shippingData = _context_orderForm.shippingData) === null || _context_orderForm_shippingData === void 0 ? void 0 : _context_orderForm_shippingData.logisticsInfo) !== null && _ref !== void 0 ? _ref : [];
|
|
@@ -2202,11 +2202,11 @@ var AzzasTracker = function() {
|
|
|
2202
2202
|
}).filter(Boolean).join(", ");
|
|
2203
2203
|
return shippingTier || null;
|
|
2204
2204
|
},
|
|
2205
|
-
transaction_id: function
|
|
2205
|
+
transaction_id: function(context, eventName) {
|
|
2206
2206
|
var _context_orderForm_orderGroup, _context_orderForm;
|
|
2207
2207
|
return ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : (_context_orderForm_orderGroup = _context_orderForm.orderGroup) === null || _context_orderForm_orderGroup === void 0 ? void 0 : _context_orderForm_orderGroup.toString()) || null;
|
|
2208
2208
|
},
|
|
2209
|
-
available_grid: function
|
|
2209
|
+
available_grid: function(context, eventName) {
|
|
2210
2210
|
return context.availableGrid || null;
|
|
2211
2211
|
}
|
|
2212
2212
|
};
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@azzas/azzas-tracker-web",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./dist/mod.cjs",
|
|
6
|
-
"module": "./dist/mod.js",
|
|
7
|
-
"types": "./dist/mod.d.ts",
|
|
8
|
-
"unpkg": "./dist/mod.global.js",
|
|
9
|
-
"jsdelivr": "./dist/mod.global.js",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"import": "./dist/mod.js",
|
|
13
|
-
"require": "./dist/mod.cjs",
|
|
14
|
-
"default": "./dist/legacy/mod.cjs"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsup",
|
|
22
|
-
"prepublishOnly": "npm run build",
|
|
23
|
-
"release:homolog": "npm run build && npm version prepatch --preid=beta && npm publish --tag beta --access public",
|
|
24
|
-
"release:prod": "npm run build && npm version patch && npm publish --access public",
|
|
25
|
-
"pack:copy": "node -e \"const v=require('./package.json').version,e=require('child_process').execSync;e('npm pack',{stdio:'inherit'});e('tar -xzf azzas-azzas-tracker-web-'+v+'.tgz',{stdio:'inherit'})\"",
|
|
26
|
-
"start:deno": "deno run --allow-net --allow-read https://deno.land/std@0.207.0/http/file_server.ts ./package",
|
|
27
|
-
"dev:deno": "npm run build && npm run pack:copy && npm run start:deno",
|
|
28
|
-
"dev:npm": "npm run build -- --watch"
|
|
29
|
-
},
|
|
30
|
-
"publishConfig": {
|
|
31
|
-
"access": "public"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@swc/core": "^1.15.7",
|
|
35
|
-
"tsup": "^8.5.0",
|
|
36
|
-
"typescript": "^5.9.2"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@azzas/azzas-tracker-web",
|
|
3
|
+
"version": "1.0.83",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/mod.cjs",
|
|
6
|
+
"module": "./dist/mod.js",
|
|
7
|
+
"types": "./dist/mod.d.ts",
|
|
8
|
+
"unpkg": "./dist/mod.global.js",
|
|
9
|
+
"jsdelivr": "./dist/mod.global.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/mod.js",
|
|
13
|
+
"require": "./dist/mod.cjs",
|
|
14
|
+
"default": "./dist/legacy/mod.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup",
|
|
22
|
+
"prepublishOnly": "npm run build",
|
|
23
|
+
"release:homolog": "npm run build && npm version prepatch --preid=beta && npm publish --tag beta --access public",
|
|
24
|
+
"release:prod": "npm run build && npm version patch && npm publish --access public",
|
|
25
|
+
"pack:copy": "node -e \"const v=require('./package.json').version,e=require('child_process').execSync;e('npm pack',{stdio:'inherit'});e('tar -xzf azzas-azzas-tracker-web-'+v+'.tgz',{stdio:'inherit'})\"",
|
|
26
|
+
"start:deno": "deno run --allow-net --allow-read https://deno.land/std@0.207.0/http/file_server.ts ./package",
|
|
27
|
+
"dev:deno": "npm run build && npm run pack:copy && npm run start:deno",
|
|
28
|
+
"dev:npm": "npm run build -- --watch"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@swc/core": "^1.15.7",
|
|
35
|
+
"tsup": "^8.5.0",
|
|
36
|
+
"typescript": "^5.9.2"
|
|
37
|
+
}
|
|
38
|
+
}
|