@azzas/azzas-tracker-web 2.0.0-preview.6 → 2.0.0-preview.7
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/mod.cjs +4 -3
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.d.cts +22 -19
- package/dist/mod.d.ts +22 -19
- package/dist/mod.global.js +4 -3
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +4 -3
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +4 -3
- package/package.json +1 -1
package/dist/mod.vtex.global.js
CHANGED
|
@@ -2439,9 +2439,6 @@ var AzzasTracker = function() {
|
|
|
2439
2439
|
// src/params/adapters/meta/index.ts
|
|
2440
2440
|
var metaAdapters = {
|
|
2441
2441
|
user_info: getUserInfo,
|
|
2442
|
-
// brand: (context: MetaBrandContext) => {
|
|
2443
|
-
// return context.meta.brand || null;
|
|
2444
|
-
// },
|
|
2445
2442
|
content_type: function(context) {
|
|
2446
2443
|
return context.meta.content_type || null;
|
|
2447
2444
|
},
|
|
@@ -2573,6 +2570,7 @@ var AzzasTracker = function() {
|
|
|
2573
2570
|
},
|
|
2574
2571
|
brand: function(context, config2) {
|
|
2575
2572
|
if (config2 === null || config2 === void 0 ? void 0 : config2.brand) return config2.brand;
|
|
2573
|
+
if (context === null || context === void 0 ? void 0 : context.brand) return context.brand;
|
|
2576
2574
|
if (context === null || context === void 0 ? void 0 : context.products) {
|
|
2577
2575
|
return normalizeBrand2(context.products.map(function(p) {
|
|
2578
2576
|
var _p_brand;
|
|
@@ -2722,6 +2720,7 @@ var AzzasTracker = function() {
|
|
|
2722
2720
|
},
|
|
2723
2721
|
brand: function(context, config2) {
|
|
2724
2722
|
if (config2 === null || config2 === void 0 ? void 0 : config2.brand) return config2.brand;
|
|
2723
|
+
if (context === null || context === void 0 ? void 0 : context.brand) return context.brand;
|
|
2725
2724
|
if (context === null || context === void 0 ? void 0 : context.products) {
|
|
2726
2725
|
return context.products.map(function(p) {
|
|
2727
2726
|
return p.brand;
|
|
@@ -2796,6 +2795,7 @@ var AzzasTracker = function() {
|
|
|
2796
2795
|
},
|
|
2797
2796
|
brand: function(context, config2) {
|
|
2798
2797
|
if (config2 === null || config2 === void 0 ? void 0 : config2.brand) return config2.brand;
|
|
2798
|
+
if (context === null || context === void 0 ? void 0 : context.brand) return context.brand;
|
|
2799
2799
|
if (context === null || context === void 0 ? void 0 : context.products) {
|
|
2800
2800
|
return context.products.map(function(p) {
|
|
2801
2801
|
return p.brand.name;
|
|
@@ -2960,6 +2960,7 @@ var AzzasTracker = function() {
|
|
|
2960
2960
|
brand: function(context, config2) {
|
|
2961
2961
|
var _context_orderForm;
|
|
2962
2962
|
if (config2 === null || config2 === void 0 ? void 0 : config2.brand) return config2.brand;
|
|
2963
|
+
if (context === null || context === void 0 ? void 0 : context.brand) return context.brand;
|
|
2963
2964
|
if (!(context === null || context === void 0 ? void 0 : (_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : _context_orderForm.items)) return null;
|
|
2964
2965
|
var brands = getOrderFormItems(context.orderForm).map(function(item) {
|
|
2965
2966
|
return item.additionalInfo.brandName;
|