react-marketing-tools 0.3.3 → 0.3.4

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.
@@ -1,8 +1,8 @@
1
- export declare type Event = {
1
+ export type Event = {
2
2
  name: string;
3
3
  params: Record<AllowedTypes, AllowedTypes>;
4
4
  };
5
- export declare type GooglePayload = {
5
+ export type GooglePayload = {
6
6
  non_personalized_ads: boolean;
7
7
  client_id: string;
8
8
  user_id: string;
@@ -13,15 +13,15 @@ export declare type GooglePayload = {
13
13
  };
14
14
  events: Event[];
15
15
  };
16
- export declare type EventNameInfo = {
16
+ export type EventNameInfo = {
17
17
  eventName: string;
18
18
  description?: string;
19
19
  actionPrefix: string;
20
20
  globalAppEvent: string;
21
21
  previousGlobalAppEvent?: string;
22
22
  };
23
- export declare type AllowedTypes = string | number;
24
- export declare type TrackAnalyticsEventOptions = {
23
+ export type AllowedTypes = string | number;
24
+ export type TrackAnalyticsEventOptions = {
25
25
  data: Record<AllowedTypes, AllowedTypes>;
26
26
  eventNameInfo: EventNameInfo;
27
27
  analyticsType: string;
@@ -29,19 +29,19 @@ export declare type TrackAnalyticsEventOptions = {
29
29
  dataLayerCheck: boolean;
30
30
  consoleLogData?: object;
31
31
  };
32
- export declare type GlobalVars = {
32
+ export type GlobalVars = {
33
33
  app: string;
34
34
  device_category?: string | undefined;
35
35
  device_os?: string | undefined;
36
36
  device_browser?: string | undefined;
37
37
  };
38
- export declare type DataLayer = {
38
+ export type DataLayer = {
39
39
  event: string;
40
40
  globalVars: GlobalVars;
41
41
  journeyProps: Record<any, any>;
42
42
  userProps: Record<any, any>;
43
43
  };
44
- export declare type ConsoleLogData = {
44
+ export type ConsoleLogData = {
45
45
  showGlobalVars?: boolean;
46
46
  showJourneyPropsPayload?: boolean;
47
47
  showUserProps?: boolean;
@@ -56,5 +56,5 @@ interface AnalyticsTrackerDataOptions {
56
56
  export interface HandleDataLayerPushOptions extends AnalyticsTrackerDataOptions {
57
57
  dataLayerCheck: boolean;
58
58
  }
59
- export declare type Ga4GoogleAnalyticsEventTracking = AnalyticsTrackerDataOptions;
59
+ export type Ga4GoogleAnalyticsEventTracking = AnalyticsTrackerDataOptions;
60
60
  export {};
package/dist/index.d.ts CHANGED
@@ -5,10 +5,10 @@ export { config, analyticsPlatform, buildConfig, showMeBuildInAnalyticsPlatform,
5
5
  export { trackAnalyticsEvent } from './analytics/analyticsEventService';
6
6
  export declare const ContextState: Context<ProviderStateProps>;
7
7
  export declare const ContextApi: Context<ProviderApiProps>;
8
- declare type ReactMarketingProviderProps = {
8
+ type ReactMarketingProviderProps = {
9
9
  children: ReactNode;
10
10
  };
11
- export declare const ReactMarketingProvider: ({ children, }: ReactMarketingProviderProps) => JSX.Element;
11
+ export declare const ReactMarketingProvider: ({ children, }: ReactMarketingProviderProps) => import("react/jsx-runtime").JSX.Element;
12
12
  /**
13
13
  * @property {string} appName
14
14
  * @property {string} appSessionCookieName
@@ -1,4 +1,4 @@
1
- export declare type ServerLocationData = {
1
+ export type ServerLocationData = {
2
2
  SERVER_CITY: string;
3
3
  SERVER_COUNTRY: string;
4
4
  SERVER_HOSTNAME: string;
@@ -8,7 +8,7 @@ export declare type ServerLocationData = {
8
8
  SERVER_REGION: string;
9
9
  SERVER_TIMEZONE: string;
10
10
  };
11
- export declare type IpInfo = {
11
+ export type IpInfo = {
12
12
  city: string;
13
13
  country: string;
14
14
  SERVER_HOSTNAME: string;
@@ -47306,7 +47306,7 @@ const sG = /* @__PURE__ */ Fr(xG), cG = async (e, l) => {
47306
47306
  var Be = { exports: {} }, j = {};
47307
47307
  /**
47308
47308
  * @license React
47309
- * react-jsx-runtime.production.min.js
47309
+ * react-jsx-runtime.development.js
47310
47310
  *
47311
47311
  * Copyright (c) Facebook, Inc. and its affiliates.
47312
47312
  *
@@ -47315,35 +47315,7 @@ var Be = { exports: {} }, j = {};
47315
47315
  */
47316
47316
  var ko;
47317
47317
  function GG() {
47318
- if (ko)
47319
- return j;
47320
- ko = 1;
47321
- var e = Qo, l = Symbol.for("react.element"), r = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
47322
- function g(x, c, u) {
47323
- var M, T = {}, E = null, C = null;
47324
- u !== void 0 && (E = "" + u), c.key !== void 0 && (E = "" + c.key), c.ref !== void 0 && (C = c.ref);
47325
- for (M in c)
47326
- d.call(c, M) && !i.hasOwnProperty(M) && (T[M] = c[M]);
47327
- if (x && x.defaultProps)
47328
- for (M in c = x.defaultProps, c)
47329
- T[M] === void 0 && (T[M] = c[M]);
47330
- return { $$typeof: l, type: x, key: E, ref: C, props: T, _owner: a.current };
47331
- }
47332
- return j.Fragment = r, j.jsx = g, j.jsxs = g, j;
47333
- }
47334
- var q = {};
47335
- /**
47336
- * @license React
47337
- * react-jsx-runtime.development.js
47338
- *
47339
- * Copyright (c) Facebook, Inc. and its affiliates.
47340
- *
47341
- * This source code is licensed under the MIT license found in the
47342
- * LICENSE file in the root directory of this source tree.
47343
- */
47344
- var Ko;
47345
- function _G() {
47346
- return Ko || (Ko = 1, process.env.NODE_ENV !== "production" && function() {
47318
+ return ko || (ko = 1, process.env.NODE_ENV !== "production" && function() {
47347
47319
  var e = Qo, l = Symbol.for("react.element"), r = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), x = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), X = Symbol.iterator, F = "@@iterator";
47348
47320
  function V(o) {
47349
47321
  if (o === null || typeof o != "object")
@@ -47925,10 +47897,38 @@ Check the top-level render call using <` + m + ">.");
47925
47897
  return Po(o, t, m, !1);
47926
47898
  }
47927
47899
  var Nr = Cr, Or = Br;
47928
- q.Fragment = d, q.jsx = Nr, q.jsxs = Or;
47929
- }()), q;
47900
+ j.Fragment = d, j.jsx = Nr, j.jsxs = Or;
47901
+ }()), j;
47902
+ }
47903
+ var q = {};
47904
+ /**
47905
+ * @license React
47906
+ * react-jsx-runtime.production.min.js
47907
+ *
47908
+ * Copyright (c) Facebook, Inc. and its affiliates.
47909
+ *
47910
+ * This source code is licensed under the MIT license found in the
47911
+ * LICENSE file in the root directory of this source tree.
47912
+ */
47913
+ var Ko;
47914
+ function _G() {
47915
+ if (Ko)
47916
+ return q;
47917
+ Ko = 1;
47918
+ var e = Qo, l = Symbol.for("react.element"), r = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
47919
+ function g(x, c, u) {
47920
+ var M, T = {}, E = null, C = null;
47921
+ u !== void 0 && (E = "" + u), c.key !== void 0 && (E = "" + c.key), c.ref !== void 0 && (C = c.ref);
47922
+ for (M in c)
47923
+ d.call(c, M) && !i.hasOwnProperty(M) && (T[M] = c[M]);
47924
+ if (x && x.defaultProps)
47925
+ for (M in c = x.defaultProps, c)
47926
+ T[M] === void 0 && (T[M] = c[M]);
47927
+ return { $$typeof: l, type: x, key: E, ref: C, props: T, _owner: a.current };
47928
+ }
47929
+ return q.Fragment = r, q.jsx = g, q.jsxs = g, q;
47930
47930
  }
47931
- process.env.NODE_ENV === "production" ? Be.exports = GG() : Be.exports = _G();
47931
+ process.env.NODE_ENV === "production" ? Be.exports = _G() : Be.exports = GG();
47932
47932
  var LG = Be.exports;
47933
47933
  const Wo = LG.jsx, rr = Zo({}), lr = Zo({}), hG = rr.Provider, bG = lr.Provider, OG = ({
47934
47934
  children: e