@aranova/tracking-react 1.2.3 → 1.2.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,7 @@
1
1
  import * as src from 'src';
2
2
  import * as zod_v4_core from 'zod/v4/core';
3
- import { $ZodType } from 'zod/v4/core';
4
3
  import * as z from 'zod/mini';
5
- import { F as FormSubmitConfig, j as FormSubmitMetadata } from './phone-utils-C0ds6cqZ.js';
4
+ import { F as FormSubmitConfig, j as FormSubmitMetadata } from './phone-utils-qLfVpQI7.mjs';
6
5
 
7
6
  /**
8
7
  * Metadata for a manually fired `cta_click` event.
@@ -35,13 +34,6 @@ declare const ctaClickConfigSchema: z.ZodMiniObject<{
35
34
  }, z.core.$strict>;
36
35
  type CtaClickConfig = z.infer<typeof ctaClickConfigSchema>;
37
36
 
38
- /**
39
- * Registered trigger names reported by the SDK heartbeat.
40
- */
41
- declare const sdkHeartbeatTriggersSchema: z.ZodMiniObject<{
42
- automatic: z.ZodMiniArray<z.ZodMiniString<string>>;
43
- manual: z.ZodMiniArray<z.ZodMiniString<string>>;
44
- }, z.core.$strict>;
45
37
  /**
46
38
  * Metadata for the SDK-internal `sdk_heartbeat` event.
47
39
  *
@@ -266,16 +258,10 @@ declare const scrollDepthConfigSchema: z.ZodMiniObject<{
266
258
  }, z.core.$strict>;
267
259
  type ScrollDepthConfig = z.infer<typeof scrollDepthConfigSchema>;
268
260
 
269
- declare const PAGE_IDENTITY_MAX_LENGTH = 64;
270
- declare const PAGE_IDENTITY_PATTERN: RegExp;
271
- /** Common page identities offered as presets by operator tooling. */
272
- declare const SPECIFIC_PAGE_NAMES: readonly ["contact_page", "about_page", "services_page", "booking_page", "location_page", "pricing_page", "faq_page", "testimonials_page"];
273
261
  declare const pageIdentitySchema: z.ZodMiniString<string>;
274
262
  type PageIdentity = z.infer<typeof pageIdentitySchema>;
275
263
  /** @deprecated Use PageIdentity. Kept as a compatibility alias for existing consumers. */
276
264
  type SpecificPageName = PageIdentity;
277
- /** @deprecated Use pageIdentitySchema. Kept for source compatibility. */
278
- declare const specificPageNameSchema: z.ZodMiniString<string>;
279
265
  /**
280
266
  * Metadata for the automatic `specific_page_visit` event.
281
267
  *
@@ -827,18 +813,6 @@ type EventMetadata<K extends EventName> = MetadataByName[K];
827
813
  * Trigger registration config type for a specific tracking event.
828
814
  */
829
815
  type EventConfig<K extends EventName> = ConfigByName[K];
830
- /**
831
- * Runtime list of automatic event names.
832
- */
833
- declare const ALL_AUTOMATIC_EVENT_NAMES: readonly AutomaticEventName[];
834
- /**
835
- * Runtime list of manual event names.
836
- */
837
- declare const ALL_MANUAL_EVENT_NAMES: readonly ManualEventName[];
838
- /**
839
- * Events that represent a lead/outcome in first-party tracking projections.
840
- */
841
- declare const ALL_LEAD_EVENT_NAMES: readonly EventName[];
842
816
  /**
843
817
  * Trigger registry passed to `createTracking({ triggers })`.
844
818
  *
@@ -901,12 +875,6 @@ type TrackableEvent<TRegistry extends TriggerRegistryConfig> = {
901
875
  metadata: EventMetadata<K>;
902
876
  };
903
877
  }[RegisteredManualEvents<TRegistry>];
904
- declare function getEventDefinition(name: EventName): {
905
- kind: EventKind;
906
- semantics: EventSemantics;
907
- metadataSchema: $ZodType;
908
- configSchema: $ZodType;
909
- };
910
878
 
911
879
  interface TypedTrackEventOptions {
912
880
  /**
@@ -952,4 +920,4 @@ interface TypedTrackingClient<TRegistry extends TriggerRegistryConfig> {
952
920
  getVisitorId(): string;
953
921
  }
954
922
 
955
- export { ctaClickMetadataSchema as $, ALL_AUTOMATIC_EVENT_NAMES as A, type RegisteredManualEvents as B, type CtaClickConfig as C, type ScrollDepthConfig as D, EVENT_REGISTRY as E, type FormStartConfig as F, type ScrollDepthMetadata as G, type SdkHeartbeatConfig as H, type SdkHeartbeatMetadata as I, type SiteLinkArrivalConfig as J, type SiteLinkArrivalMetadata as K, type SiteLinkClickConfig as L, type ManualEventName as M, type SiteLinkClickMetadata as N, type SpecificPageName as O, PAGE_IDENTITY_MAX_LENGTH as P, type SpecificPageVisitConfig as Q, type RegisteredAutomaticEvents as R, SPECIFIC_PAGE_NAMES as S, type SpecificPageVisitMetadata as T, type TimeOnSiteConfig as U, type TimeOnSiteMetadata as V, type TrackableEvent as W, type TriggerRegistryConfig as X, type TypedTrackEventOptions as Y, type TypedTrackingClient as Z, ctaClickConfigSchema as _, ALL_LEAD_EVENT_NAMES as a, formStartConfigSchema as a0, formStartMetadataSchema as a1, formStepConfigSchema as a2, formStepMetadataSchema as a3, getEventDefinition as a4, getEventSemantics as a5, multiPageSessionConfigSchema as a6, multiPageSessionMetadataSchema as a7, pageExitConfigSchema as a8, pageExitMetadataSchema as a9, pageIdentitySchema as aa, pageViewConfigSchema as ab, pageViewMetadataSchema as ac, phoneClickConfigSchema as ad, phoneClickMetadataSchema as ae, scrollDepthConfigSchema as af, scrollDepthMetadataSchema as ag, sdkHeartbeatConfigSchema as ah, sdkHeartbeatMetadataSchema as ai, sdkHeartbeatTriggersSchema as aj, siteLinkArrivalConfigSchema as ak, siteLinkArrivalMetadataSchema as al, siteLinkClickConfigSchema as am, siteLinkClickMetadataSchema as an, specificPageNameSchema as ao, specificPageVisitConfigSchema as ap, specificPageVisitMetadataSchema as aq, timeOnSiteConfigSchema as ar, timeOnSiteMetadataSchema as as, ALL_MANUAL_EVENT_NAMES as b, type AutomaticEventName as c, type CtaClickMetadata as d, EVENT_SEMANTICS as e, type EventCategory as f, type EventClientVisibility as g, type EventConfig as h, type EventKind as i, type EventMetadata as j, type EventName as k, type EventOutcomeRole as l, type EventSemantics as m, type FormStartMetadata as n, type FormStepConfig as o, type FormStepMetadata as p, type MultiPageSessionConfig as q, type MultiPageSessionMetadata as r, PAGE_IDENTITY_PATTERN as s, type PageExitConfig as t, type PageExitMetadata as u, type PageIdentity as v, type PageViewConfig as w, type PageViewMetadata as x, type PhoneClickConfig as y, type PhoneClickMetadata as z };
923
+ export { type AutomaticEventName as A, type SiteLinkClickConfig as B, type CtaClickConfig as C, type SiteLinkClickMetadata as D, EVENT_SEMANTICS as E, type FormStartConfig as F, type SpecificPageName as G, type SpecificPageVisitConfig as H, type SpecificPageVisitMetadata as I, type TimeOnSiteMetadata as J, type TrackableEvent as K, type TriggerRegistryConfig as L, type ManualEventName as M, type TypedTrackEventOptions as N, type TypedTrackingClient as O, type PageExitConfig as P, getEventSemantics as Q, type RegisteredAutomaticEvents as R, type ScrollDepthConfig as S, type TimeOnSiteConfig as T, type CtaClickMetadata as a, type EventCategory as b, type EventClientVisibility as c, type EventConfig as d, type EventKind as e, type EventMetadata as f, type EventName as g, type EventOutcomeRole as h, type EventSemantics as i, type FormStartMetadata as j, type FormStepConfig as k, type FormStepMetadata as l, type MultiPageSessionConfig as m, type MultiPageSessionMetadata as n, type PageExitMetadata as o, type PageIdentity as p, type PageViewConfig as q, type PageViewMetadata as r, type PhoneClickConfig as s, type PhoneClickMetadata as t, type RegisteredManualEvents as u, type ScrollDepthMetadata as v, type SdkHeartbeatConfig as w, type SdkHeartbeatMetadata as x, type SiteLinkArrivalConfig as y, type SiteLinkArrivalMetadata as z };
@@ -1,8 +1,7 @@
1
1
  import * as src from 'src';
2
2
  import * as zod_v4_core from 'zod/v4/core';
3
- import { $ZodType } from 'zod/v4/core';
4
3
  import * as z from 'zod/mini';
5
- import { F as FormSubmitConfig, j as FormSubmitMetadata } from './phone-utils-C0ds6cqZ.mjs';
4
+ import { F as FormSubmitConfig, j as FormSubmitMetadata } from './phone-utils-qLfVpQI7.js';
6
5
 
7
6
  /**
8
7
  * Metadata for a manually fired `cta_click` event.
@@ -35,13 +34,6 @@ declare const ctaClickConfigSchema: z.ZodMiniObject<{
35
34
  }, z.core.$strict>;
36
35
  type CtaClickConfig = z.infer<typeof ctaClickConfigSchema>;
37
36
 
38
- /**
39
- * Registered trigger names reported by the SDK heartbeat.
40
- */
41
- declare const sdkHeartbeatTriggersSchema: z.ZodMiniObject<{
42
- automatic: z.ZodMiniArray<z.ZodMiniString<string>>;
43
- manual: z.ZodMiniArray<z.ZodMiniString<string>>;
44
- }, z.core.$strict>;
45
37
  /**
46
38
  * Metadata for the SDK-internal `sdk_heartbeat` event.
47
39
  *
@@ -266,16 +258,10 @@ declare const scrollDepthConfigSchema: z.ZodMiniObject<{
266
258
  }, z.core.$strict>;
267
259
  type ScrollDepthConfig = z.infer<typeof scrollDepthConfigSchema>;
268
260
 
269
- declare const PAGE_IDENTITY_MAX_LENGTH = 64;
270
- declare const PAGE_IDENTITY_PATTERN: RegExp;
271
- /** Common page identities offered as presets by operator tooling. */
272
- declare const SPECIFIC_PAGE_NAMES: readonly ["contact_page", "about_page", "services_page", "booking_page", "location_page", "pricing_page", "faq_page", "testimonials_page"];
273
261
  declare const pageIdentitySchema: z.ZodMiniString<string>;
274
262
  type PageIdentity = z.infer<typeof pageIdentitySchema>;
275
263
  /** @deprecated Use PageIdentity. Kept as a compatibility alias for existing consumers. */
276
264
  type SpecificPageName = PageIdentity;
277
- /** @deprecated Use pageIdentitySchema. Kept for source compatibility. */
278
- declare const specificPageNameSchema: z.ZodMiniString<string>;
279
265
  /**
280
266
  * Metadata for the automatic `specific_page_visit` event.
281
267
  *
@@ -827,18 +813,6 @@ type EventMetadata<K extends EventName> = MetadataByName[K];
827
813
  * Trigger registration config type for a specific tracking event.
828
814
  */
829
815
  type EventConfig<K extends EventName> = ConfigByName[K];
830
- /**
831
- * Runtime list of automatic event names.
832
- */
833
- declare const ALL_AUTOMATIC_EVENT_NAMES: readonly AutomaticEventName[];
834
- /**
835
- * Runtime list of manual event names.
836
- */
837
- declare const ALL_MANUAL_EVENT_NAMES: readonly ManualEventName[];
838
- /**
839
- * Events that represent a lead/outcome in first-party tracking projections.
840
- */
841
- declare const ALL_LEAD_EVENT_NAMES: readonly EventName[];
842
816
  /**
843
817
  * Trigger registry passed to `createTracking({ triggers })`.
844
818
  *
@@ -901,12 +875,6 @@ type TrackableEvent<TRegistry extends TriggerRegistryConfig> = {
901
875
  metadata: EventMetadata<K>;
902
876
  };
903
877
  }[RegisteredManualEvents<TRegistry>];
904
- declare function getEventDefinition(name: EventName): {
905
- kind: EventKind;
906
- semantics: EventSemantics;
907
- metadataSchema: $ZodType;
908
- configSchema: $ZodType;
909
- };
910
878
 
911
879
  interface TypedTrackEventOptions {
912
880
  /**
@@ -952,4 +920,4 @@ interface TypedTrackingClient<TRegistry extends TriggerRegistryConfig> {
952
920
  getVisitorId(): string;
953
921
  }
954
922
 
955
- export { ctaClickMetadataSchema as $, ALL_AUTOMATIC_EVENT_NAMES as A, type RegisteredManualEvents as B, type CtaClickConfig as C, type ScrollDepthConfig as D, EVENT_REGISTRY as E, type FormStartConfig as F, type ScrollDepthMetadata as G, type SdkHeartbeatConfig as H, type SdkHeartbeatMetadata as I, type SiteLinkArrivalConfig as J, type SiteLinkArrivalMetadata as K, type SiteLinkClickConfig as L, type ManualEventName as M, type SiteLinkClickMetadata as N, type SpecificPageName as O, PAGE_IDENTITY_MAX_LENGTH as P, type SpecificPageVisitConfig as Q, type RegisteredAutomaticEvents as R, SPECIFIC_PAGE_NAMES as S, type SpecificPageVisitMetadata as T, type TimeOnSiteConfig as U, type TimeOnSiteMetadata as V, type TrackableEvent as W, type TriggerRegistryConfig as X, type TypedTrackEventOptions as Y, type TypedTrackingClient as Z, ctaClickConfigSchema as _, ALL_LEAD_EVENT_NAMES as a, formStartConfigSchema as a0, formStartMetadataSchema as a1, formStepConfigSchema as a2, formStepMetadataSchema as a3, getEventDefinition as a4, getEventSemantics as a5, multiPageSessionConfigSchema as a6, multiPageSessionMetadataSchema as a7, pageExitConfigSchema as a8, pageExitMetadataSchema as a9, pageIdentitySchema as aa, pageViewConfigSchema as ab, pageViewMetadataSchema as ac, phoneClickConfigSchema as ad, phoneClickMetadataSchema as ae, scrollDepthConfigSchema as af, scrollDepthMetadataSchema as ag, sdkHeartbeatConfigSchema as ah, sdkHeartbeatMetadataSchema as ai, sdkHeartbeatTriggersSchema as aj, siteLinkArrivalConfigSchema as ak, siteLinkArrivalMetadataSchema as al, siteLinkClickConfigSchema as am, siteLinkClickMetadataSchema as an, specificPageNameSchema as ao, specificPageVisitConfigSchema as ap, specificPageVisitMetadataSchema as aq, timeOnSiteConfigSchema as ar, timeOnSiteMetadataSchema as as, ALL_MANUAL_EVENT_NAMES as b, type AutomaticEventName as c, type CtaClickMetadata as d, EVENT_SEMANTICS as e, type EventCategory as f, type EventClientVisibility as g, type EventConfig as h, type EventKind as i, type EventMetadata as j, type EventName as k, type EventOutcomeRole as l, type EventSemantics as m, type FormStartMetadata as n, type FormStepConfig as o, type FormStepMetadata as p, type MultiPageSessionConfig as q, type MultiPageSessionMetadata as r, PAGE_IDENTITY_PATTERN as s, type PageExitConfig as t, type PageExitMetadata as u, type PageIdentity as v, type PageViewConfig as w, type PageViewMetadata as x, type PhoneClickConfig as y, type PhoneClickMetadata as z };
923
+ export { type AutomaticEventName as A, type SiteLinkClickConfig as B, type CtaClickConfig as C, type SiteLinkClickMetadata as D, EVENT_SEMANTICS as E, type FormStartConfig as F, type SpecificPageName as G, type SpecificPageVisitConfig as H, type SpecificPageVisitMetadata as I, type TimeOnSiteMetadata as J, type TrackableEvent as K, type TriggerRegistryConfig as L, type ManualEventName as M, type TypedTrackEventOptions as N, type TypedTrackingClient as O, type PageExitConfig as P, getEventSemantics as Q, type RegisteredAutomaticEvents as R, type ScrollDepthConfig as S, type TimeOnSiteConfig as T, type CtaClickMetadata as a, type EventCategory as b, type EventClientVisibility as c, type EventConfig as d, type EventKind as e, type EventMetadata as f, type EventName as g, type EventOutcomeRole as h, type EventSemantics as i, type FormStartMetadata as j, type FormStepConfig as k, type FormStepMetadata as l, type MultiPageSessionConfig as m, type MultiPageSessionMetadata as n, type PageExitMetadata as o, type PageIdentity as p, type PageViewConfig as q, type PageViewMetadata as r, type PhoneClickConfig as s, type PhoneClickMetadata as t, type RegisteredManualEvents as u, type ScrollDepthMetadata as v, type SdkHeartbeatConfig as w, type SdkHeartbeatMetadata as x, type SiteLinkArrivalConfig as y, type SiteLinkArrivalMetadata as z };
@@ -11,7 +11,6 @@ import { CountryCode } from 'libphonenumber-js';
11
11
  type JsonValue = string | number | boolean | null | JsonValue[] | {
12
12
  [key: string]: JsonValue;
13
13
  };
14
- declare const jsonValueSchema: z.ZodMiniType<JsonValue>;
15
14
  /**
16
15
  * Metadata for a manually fired `form_submit` event.
17
16
  *
@@ -467,4 +466,4 @@ declare function optOut(options?: SetConsentOptions): void;
467
466
  */
468
467
  declare function resetConsent(): void;
469
468
 
470
- export { resetConsent as A, setConsentState as B, type ConsentChoice as C, DEFAULT_DECLINE_TTL_DAYS as D, toE164 as E, type FormSubmitConfig as F, type GtagEnvironmentMap as G, type JsonValue as J, type MetaPixelEnvironmentMap as M, type ParsedPhone as P, type SetConsentOptions as S, type TrackingParams as T, type TrackingInstallSurface as a, type TrackingEnvironment as b, type TrackingClientContext as c, type TrackingEventCreatePayload as d, type TrackingSessionUpsertPayload as e, type ConsentChoiceState as f, type ConsentSource as g, type ConsentState as h, DEFAULT_PHONE_COUNTRY as i, type FormSubmitMetadata as j, type PhoneConfig as k, type PhoneDisplayFormat as l, type TrackedField as m, type TrackingInitConfig as n, formSubmitConfigSchema as o, formSubmitMetadataSchema as p, formatPhone as q, formatPhoneAsTyped as r, getConsentChoice as s, getConsentState as t, jsonValueSchema as u, onConsentChange as v, optIn as w, optOut as x, parsePhone as y, phoneField as z };
469
+ export { type ConsentChoice as C, DEFAULT_DECLINE_TTL_DAYS as D, type FormSubmitConfig as F, type GtagEnvironmentMap as G, type JsonValue as J, type MetaPixelEnvironmentMap as M, type ParsedPhone as P, type SetConsentOptions as S, type TrackingParams as T, type TrackingInstallSurface as a, type TrackingEnvironment as b, type TrackingClientContext as c, type TrackingEventCreatePayload as d, type TrackingSessionUpsertPayload as e, type ConsentChoiceState as f, type ConsentSource as g, type ConsentState as h, DEFAULT_PHONE_COUNTRY as i, type FormSubmitMetadata as j, type PhoneConfig as k, type PhoneDisplayFormat as l, type TrackedField as m, type TrackingInitConfig as n, formatPhone as o, formatPhoneAsTyped as p, getConsentChoice as q, getConsentState as r, onConsentChange as s, optIn as t, optOut as u, parsePhone as v, phoneField as w, resetConsent as x, setConsentState as y, toE164 as z };
@@ -11,7 +11,6 @@ import { CountryCode } from 'libphonenumber-js';
11
11
  type JsonValue = string | number | boolean | null | JsonValue[] | {
12
12
  [key: string]: JsonValue;
13
13
  };
14
- declare const jsonValueSchema: z.ZodMiniType<JsonValue>;
15
14
  /**
16
15
  * Metadata for a manually fired `form_submit` event.
17
16
  *
@@ -467,4 +466,4 @@ declare function optOut(options?: SetConsentOptions): void;
467
466
  */
468
467
  declare function resetConsent(): void;
469
468
 
470
- export { resetConsent as A, setConsentState as B, type ConsentChoice as C, DEFAULT_DECLINE_TTL_DAYS as D, toE164 as E, type FormSubmitConfig as F, type GtagEnvironmentMap as G, type JsonValue as J, type MetaPixelEnvironmentMap as M, type ParsedPhone as P, type SetConsentOptions as S, type TrackingParams as T, type TrackingInstallSurface as a, type TrackingEnvironment as b, type TrackingClientContext as c, type TrackingEventCreatePayload as d, type TrackingSessionUpsertPayload as e, type ConsentChoiceState as f, type ConsentSource as g, type ConsentState as h, DEFAULT_PHONE_COUNTRY as i, type FormSubmitMetadata as j, type PhoneConfig as k, type PhoneDisplayFormat as l, type TrackedField as m, type TrackingInitConfig as n, formSubmitConfigSchema as o, formSubmitMetadataSchema as p, formatPhone as q, formatPhoneAsTyped as r, getConsentChoice as s, getConsentState as t, jsonValueSchema as u, onConsentChange as v, optIn as w, optOut as x, parsePhone as y, phoneField as z };
469
+ export { type ConsentChoice as C, DEFAULT_DECLINE_TTL_DAYS as D, type FormSubmitConfig as F, type GtagEnvironmentMap as G, type JsonValue as J, type MetaPixelEnvironmentMap as M, type ParsedPhone as P, type SetConsentOptions as S, type TrackingParams as T, type TrackingInstallSurface as a, type TrackingEnvironment as b, type TrackingClientContext as c, type TrackingEventCreatePayload as d, type TrackingSessionUpsertPayload as e, type ConsentChoiceState as f, type ConsentSource as g, type ConsentState as h, DEFAULT_PHONE_COUNTRY as i, type FormSubmitMetadata as j, type PhoneConfig as k, type PhoneDisplayFormat as l, type TrackedField as m, type TrackingInitConfig as n, formatPhone as o, formatPhoneAsTyped as p, getConsentChoice as q, getConsentState as r, onConsentChange as s, optIn as t, optOut as u, parsePhone as v, phoneField as w, resetConsent as x, setConsentState as y, toE164 as z };
package/dist/phone.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as DEFAULT_PHONE_COUNTRY, P as ParsedPhone, k as PhoneConfig, l as PhoneDisplayFormat, m as TrackedField, q as formatPhone, r as formatPhoneAsTyped, y as parsePhone, z as phoneField, E as toE164 } from './phone-utils-C0ds6cqZ.mjs';
1
+ export { i as DEFAULT_PHONE_COUNTRY, P as ParsedPhone, k as PhoneConfig, l as PhoneDisplayFormat, m as TrackedField, o as formatPhone, p as formatPhoneAsTyped, v as parsePhone, w as phoneField, z as toE164 } from './phone-utils-qLfVpQI7.mjs';
2
2
  export { CountryCode } from 'libphonenumber-js';
3
3
  import 'zod/mini';
package/dist/phone.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as DEFAULT_PHONE_COUNTRY, P as ParsedPhone, k as PhoneConfig, l as PhoneDisplayFormat, m as TrackedField, q as formatPhone, r as formatPhoneAsTyped, y as parsePhone, z as phoneField, E as toE164 } from './phone-utils-C0ds6cqZ.js';
1
+ export { i as DEFAULT_PHONE_COUNTRY, P as ParsedPhone, k as PhoneConfig, l as PhoneDisplayFormat, m as TrackedField, o as formatPhone, p as formatPhoneAsTyped, v as parsePhone, w as phoneField, z as toE164 } from './phone-utils-qLfVpQI7.js';
2
2
  export { CountryCode } from 'libphonenumber-js';
3
3
  import 'zod/mini';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aranova/tracking-react",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "description": "React tracking and consent utilities for Aranova client sites",