@azzas/azzas-tracker-web 2.0.0-preview.11 → 2.0.0-preview.13

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.d.cts CHANGED
@@ -156,10 +156,10 @@ declare const EVENTS: {
156
156
  readonly requiredParams: readonly ["user_info"];
157
157
  };
158
158
  NOTIFY_ME: {
159
- name: string;
160
- hasEcommerce: boolean;
161
- destinations: string[];
162
- requiredParams: string[];
159
+ readonly name: "notify_me";
160
+ readonly hasEcommerce: false;
161
+ readonly destinations: readonly ["DataLayer"];
162
+ readonly requiredParams: readonly ["brand", "size", "item_ref"];
163
163
  };
164
164
  REFINE_RESULTS: {
165
165
  readonly name: "refine_results";
@@ -1650,10 +1650,10 @@ declare const _default: {
1650
1650
  readonly requiredParams: readonly ["user_info"];
1651
1651
  };
1652
1652
  NOTIFY_ME: {
1653
- name: string;
1654
- hasEcommerce: boolean;
1655
- destinations: string[];
1656
- requiredParams: string[];
1653
+ readonly name: "notify_me";
1654
+ readonly hasEcommerce: false;
1655
+ readonly destinations: readonly ["DataLayer"];
1656
+ readonly requiredParams: readonly ["brand", "size", "item_ref"];
1657
1657
  };
1658
1658
  REFINE_RESULTS: {
1659
1659
  readonly name: "refine_results";
package/dist/mod.d.ts CHANGED
@@ -156,10 +156,10 @@ declare const EVENTS: {
156
156
  readonly requiredParams: readonly ["user_info"];
157
157
  };
158
158
  NOTIFY_ME: {
159
- name: string;
160
- hasEcommerce: boolean;
161
- destinations: string[];
162
- requiredParams: string[];
159
+ readonly name: "notify_me";
160
+ readonly hasEcommerce: false;
161
+ readonly destinations: readonly ["DataLayer"];
162
+ readonly requiredParams: readonly ["brand", "size", "item_ref"];
163
163
  };
164
164
  REFINE_RESULTS: {
165
165
  readonly name: "refine_results";
@@ -1650,10 +1650,10 @@ declare const _default: {
1650
1650
  readonly requiredParams: readonly ["user_info"];
1651
1651
  };
1652
1652
  NOTIFY_ME: {
1653
- name: string;
1654
- hasEcommerce: boolean;
1655
- destinations: string[];
1656
- requiredParams: string[];
1653
+ readonly name: "notify_me";
1654
+ readonly hasEcommerce: false;
1655
+ readonly destinations: readonly ["DataLayer"];
1656
+ readonly requiredParams: readonly ["brand", "size", "item_ref"];
1657
1657
  };
1658
1658
  REFINE_RESULTS: {
1659
1659
  readonly name: "refine_results";
@@ -1358,6 +1358,11 @@ var AzzasTracker = (() => {
1358
1358
  // src/params/adapters/meta/index.ts
1359
1359
  var metaAdapter = {
1360
1360
  user_info: getUserInfo,
1361
+ brand: (context, config2) => {
1362
+ if (config2 == null ? void 0 : config2.brand) return config2.brand;
1363
+ if (context == null ? void 0 : context.meta.brand) return context.meta.brand;
1364
+ return null;
1365
+ },
1361
1366
  content_type: (context) => {
1362
1367
  return context.meta.content_type || null;
1363
1368
  },