@azzas/azzas-tracker-web 2.0.0-preview.7 → 2.0.0-preview.9

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.
@@ -2156,7 +2156,7 @@ var AzzasTracker = function() {
2156
2156
  "store": "https://www.animale.com.br",
2157
2157
  "checkout": "https://secure.animale.com.br"
2158
2158
  },
2159
- "farm": {
2159
+ "lojafarm": {
2160
2160
  "store": "https://lojafarm.myvtex.com"
2161
2161
  },
2162
2162
  "mariafilo": {
@@ -2174,7 +2174,7 @@ var AzzasTracker = function() {
2174
2174
  "bynv": {
2175
2175
  "store": "https://bynv.myvtex.com"
2176
2176
  },
2177
- "fabula": {
2177
+ "lojafabula": {
2178
2178
  "store": "https://lojafabula.myvtex.com"
2179
2179
  }
2180
2180
  };
@@ -2474,9 +2474,6 @@ var AzzasTracker = function() {
2474
2474
  creative_slot: function(context) {
2475
2475
  return context.meta.creative_slot || null;
2476
2476
  },
2477
- size: function(context) {
2478
- return context.size || null;
2479
- },
2480
2477
  item_ref: function(context) {
2481
2478
  return context.itemRef || null;
2482
2479
  },
@@ -2497,8 +2494,17 @@ var AzzasTracker = function() {
2497
2494
  },
2498
2495
  ordering: function(context) {
2499
2496
  return context.meta.ordering || null;
2497
+ },
2498
+ size: function(context) {
2499
+ return context.meta.size || null;
2500
2500
  }
2501
2501
  };
2502
+ // src/core/farm.ts
2503
+ var BRAND_CODES2 = {
2504
+ farm: "farmrio",
2505
+ "farm etc": "farmetc",
2506
+ "farm rio": "farmrio"
2507
+ };
2502
2508
  // src/params/adapters/deco/utils.ts
2503
2509
  var getItemCategory3 = function(item) {
2504
2510
  var _text_match;
@@ -2520,11 +2526,6 @@ var AzzasTracker = function() {
2520
2526
  var deepest = (_validHierarchy_ = validHierarchy[validHierarchy.length - 1]) !== null && _validHierarchy_ !== void 0 ? _validHierarchy_ : "";
2521
2527
  return capitalize(deepest);
2522
2528
  };
2523
- var BRAND_CODES2 = {
2524
- farm: "farmrio",
2525
- "farm etc": "farmetc",
2526
- "farm rio": "farmrio"
2527
- };
2528
2529
  // src/params/adapters/deco/index.ts
2529
2530
  var IN_STOCK_SCHEMA = "https://schema.org/InStock";
2530
2531
  var LIST_PRICE_SCHEMA = "https://schema.org/ListPrice";
@@ -2893,9 +2894,14 @@ var AzzasTracker = function() {
2893
2894
  }
2894
2895
  return null;
2895
2896
  },
2897
+ brand: function(context, config2) {
2898
+ if (config2 === null || config2 === void 0 ? void 0 : config2.brand) return config2.brand;
2899
+ if (context === null || context === void 0 ? void 0 : context.brand) return context.brand;
2900
+ return null;
2901
+ },
2896
2902
  zipcode: function(context) {
2897
- var _context_zipcode;
2898
- return (_context_zipcode = context.zipcode) !== null && _context_zipcode !== void 0 ? _context_zipcode : null;
2903
+ var _context_meta_zipcode;
2904
+ return (_context_meta_zipcode = context.meta.zipcode) !== null && _context_meta_zipcode !== void 0 ? _context_meta_zipcode : null;
2899
2905
  }
2900
2906
  });
2901
2907
  // src/params/adapters/orderForm/utils.ts
@@ -3028,8 +3034,8 @@ var AzzasTracker = function() {
3028
3034
  }).join(" | ");
3029
3035
  },
3030
3036
  zipcode: function(context) {
3031
- var _context_zipcode;
3032
- return (_context_zipcode = context.zipcode) !== null && _context_zipcode !== void 0 ? _context_zipcode : null;
3037
+ var _context_meta_zipcode;
3038
+ return (_context_meta_zipcode = context.meta.zipcode) !== null && _context_meta_zipcode !== void 0 ? _context_meta_zipcode : null;
3033
3039
  },
3034
3040
  flag_pickup: function(context) {
3035
3041
  var _orderForm_shippingData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azzas/azzas-tracker-web",
3
- "version": "2.0.0-preview.7",
3
+ "version": "2.0.0-preview.9",
4
4
  "type": "module",
5
5
  "main": "./dist/mod.cjs",
6
6
  "module": "./dist/mod.js",