@aranova/tracking-next 0.7.0 → 0.7.1

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/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ConsentState, T as TrackingInstallSurface, a as TrackingEnvironment, b as TrackingClientContext, c as TrackingParams, d as TrackingEventCreatePayload, e as TrackingSessionUpsertPayload, G as GtagEnvironmentMap } from './types-D0Vm9WRC.mjs';
2
- export { f as TrackingInitConfig } from './types-D0Vm9WRC.mjs';
1
+ import { C as ConsentState, T as TrackingInstallSurface, a as TrackingEnvironment, b as TrackingClientContext, c as TrackingParams, d as TrackingEventCreatePayload, e as TrackingSessionUpsertPayload, G as GtagEnvironmentMap } from './types-BPJLgMsG.mjs';
2
+ export { f as TrackingInitConfig } from './types-BPJLgMsG.mjs';
3
3
  import { z } from 'zod';
4
4
  import * as src from 'src';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -28,7 +28,7 @@ interface TrackingContextInput {
28
28
  referrer?: string | null;
29
29
  sdkVersion?: string | null;
30
30
  siteOrigin?: string | null;
31
- environment?: TrackingEnvironment | null;
31
+ environment?: TrackingEnvironment;
32
32
  activeGtagIds?: Record<string, string> | null;
33
33
  }
34
34
  interface TrackingEventInput {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ConsentState, T as TrackingInstallSurface, a as TrackingEnvironment, b as TrackingClientContext, c as TrackingParams, d as TrackingEventCreatePayload, e as TrackingSessionUpsertPayload, G as GtagEnvironmentMap } from './types-D0Vm9WRC.js';
2
- export { f as TrackingInitConfig } from './types-D0Vm9WRC.js';
1
+ import { C as ConsentState, T as TrackingInstallSurface, a as TrackingEnvironment, b as TrackingClientContext, c as TrackingParams, d as TrackingEventCreatePayload, e as TrackingSessionUpsertPayload, G as GtagEnvironmentMap } from './types-BPJLgMsG.js';
2
+ export { f as TrackingInitConfig } from './types-BPJLgMsG.js';
3
3
  import { z } from 'zod';
4
4
  import * as src from 'src';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -28,7 +28,7 @@ interface TrackingContextInput {
28
28
  referrer?: string | null;
29
29
  sdkVersion?: string | null;
30
30
  siteOrigin?: string | null;
31
- environment?: TrackingEnvironment | null;
31
+ environment?: TrackingEnvironment;
32
32
  activeGtagIds?: Record<string, string> | null;
33
33
  }
34
34
  interface TrackingEventInput {
package/dist/index.js CHANGED
@@ -83,7 +83,7 @@ function createTrackingClientContext(surface, input = {}) {
83
83
  site_origin: input.siteOrigin ?? (typeof window === "undefined" ? null : window.location.origin),
84
84
  page_title: input.pageTitle ?? (typeof document === "undefined" ? null : document.title || null),
85
85
  referrer: input.referrer ?? (typeof document === "undefined" ? null : document.referrer || null),
86
- environment: input.environment ?? null,
86
+ environment: input.environment ?? "production",
87
87
  active_gtag_ids: input.activeGtagIds ?? null
88
88
  };
89
89
  }
@@ -514,7 +514,7 @@ function createTrackingClient(config) {
514
514
  const maxQueueSize = Math.min(config.maxQueueSize ?? DEFAULT_MAX_QUEUE_SIZE, HARD_MAX_BATCH);
515
515
  const sdkVersion = config.sdkVersion ?? null;
516
516
  const packageName = config.packageName ?? null;
517
- const environment = config.environment ?? null;
517
+ const environment = config.environment ?? "production";
518
518
  const activeGtagIds = config.activeGtagIds ?? null;
519
519
  const endpointBase = config.endpoint.replace(/\/$/, "");
520
520
  const eventsUrl = `${endpointBase}/events`;
@@ -1188,7 +1188,7 @@ function GoogleAdsTracking(props) {
1188
1188
  var import_navigation = require("next/navigation");
1189
1189
 
1190
1190
  // package.json
1191
- var version = "0.7.0";
1191
+ var version = "0.7.1";
1192
1192
 
1193
1193
  // src/factory.tsx
1194
1194
  var import_react3 = require("react");