@aranova/tracking-react 1.2.2 → 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.mjs';
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
  *
@@ -77,7 +69,8 @@ type SdkHeartbeatConfig = z.infer<typeof sdkHeartbeatConfigSchema>;
77
69
  /**
78
70
  * Metadata for the automatic `form_start` event.
79
71
  *
80
- * The SDK emits this once per form when the visitor first focuses a field.
72
+ * The SDK emits this once per form when the visitor first focuses or taps
73
+ * anything inside it.
81
74
  */
82
75
  declare const formStartMetadataSchema: z.ZodMiniObject<{
83
76
  form: z.ZodMiniObject<{
@@ -100,6 +93,40 @@ declare const formStartConfigSchema: z.ZodMiniObject<{
100
93
  }, z.core.$strict>;
101
94
  type FormStartConfig = z.infer<typeof formStartConfigSchema>;
102
95
 
96
+ /**
97
+ * Metadata for a manually fired `form_step` event.
98
+ *
99
+ * `form.id` must equal `form_start`/`form_submit`'s id. See
100
+ * docs/tracking-package/installing.md#multi-step-forms-form_step for the emit rule and an example.
101
+ */
102
+ declare const formStepMetadataSchema: z.ZodMiniObject<{
103
+ form: z.ZodMiniObject<{
104
+ id: z.ZodMiniString<string>;
105
+ action: z.ZodMiniNullable<z.ZodMiniString<string>>;
106
+ }, z.core.$strict>;
107
+ step: z.ZodMiniObject<{
108
+ id: z.ZodMiniString<string>;
109
+ index: z.ZodMiniInt;
110
+ total: z.ZodMiniNullable<z.ZodMiniInt>;
111
+ }, z.core.$strict>;
112
+ direction: z.ZodMiniEnum<{
113
+ forward: "forward";
114
+ back: "back";
115
+ }>;
116
+ page: z.ZodMiniObject<{
117
+ path: z.ZodMiniString<string>;
118
+ }, z.core.$strict>;
119
+ }, z.core.$strict>;
120
+ type FormStepMetadata = z.infer<typeof formStepMetadataSchema>;
121
+ /**
122
+ * Registration config for `form_step`.
123
+ *
124
+ * Manual-only with no options; the empty object enables typed
125
+ * `trackEvent('form_step', ...)` calls.
126
+ */
127
+ declare const formStepConfigSchema: z.ZodMiniObject<{}, z.core.$strict>;
128
+ type FormStepConfig = z.infer<typeof formStepConfigSchema>;
129
+
103
130
  /**
104
131
  * Metadata for the automatic `multi_page_session` event.
105
132
  *
@@ -231,16 +258,10 @@ declare const scrollDepthConfigSchema: z.ZodMiniObject<{
231
258
  }, z.core.$strict>;
232
259
  type ScrollDepthConfig = z.infer<typeof scrollDepthConfigSchema>;
233
260
 
234
- declare const PAGE_IDENTITY_MAX_LENGTH = 64;
235
- declare const PAGE_IDENTITY_PATTERN: RegExp;
236
- /** Common page identities offered as presets by operator tooling. */
237
- declare const SPECIFIC_PAGE_NAMES: readonly ["contact_page", "about_page", "services_page", "booking_page", "location_page", "pricing_page", "faq_page", "testimonials_page"];
238
261
  declare const pageIdentitySchema: z.ZodMiniString<string>;
239
262
  type PageIdentity = z.infer<typeof pageIdentitySchema>;
240
263
  /** @deprecated Use PageIdentity. Kept as a compatibility alias for existing consumers. */
241
264
  type SpecificPageName = PageIdentity;
242
- /** @deprecated Use pageIdentitySchema. Kept for source compatibility. */
243
- declare const specificPageNameSchema: z.ZodMiniString<string>;
244
265
  /**
245
266
  * Metadata for the automatic `specific_page_visit` event.
246
267
  *
@@ -388,6 +409,12 @@ declare const EVENT_SEMANTICS: {
388
409
  readonly outcomeRole: "diagnostic";
389
410
  readonly clientVisibility: "detailed";
390
411
  };
412
+ readonly form_step: {
413
+ readonly label: "Form step";
414
+ readonly category: "engagement";
415
+ readonly outcomeRole: "engagement";
416
+ readonly clientVisibility: "detailed";
417
+ };
391
418
  readonly form_submit: {
392
419
  readonly label: "Form submitted";
393
420
  readonly category: "lead";
@@ -653,6 +680,34 @@ declare const EVENT_REGISTRY: {
653
680
  }, zod_v4_core.$strict>;
654
681
  readonly configSchema: z.ZodMiniObject<{}, zod_v4_core.$strict>;
655
682
  };
683
+ readonly form_step: {
684
+ readonly kind: "manual";
685
+ readonly semantics: {
686
+ readonly label: "Form step";
687
+ readonly category: "engagement";
688
+ readonly outcomeRole: "engagement";
689
+ readonly clientVisibility: "detailed";
690
+ };
691
+ readonly metadataSchema: z.ZodMiniObject<{
692
+ form: z.ZodMiniObject<{
693
+ id: z.ZodMiniString<string>;
694
+ action: z.ZodMiniNullable<z.ZodMiniString<string>>;
695
+ }, zod_v4_core.$strict>;
696
+ step: z.ZodMiniObject<{
697
+ id: z.ZodMiniString<string>;
698
+ index: z.ZodMiniInt;
699
+ total: z.ZodMiniNullable<z.ZodMiniInt>;
700
+ }, zod_v4_core.$strict>;
701
+ direction: z.ZodMiniEnum<{
702
+ forward: "forward";
703
+ back: "back";
704
+ }>;
705
+ page: z.ZodMiniObject<{
706
+ path: z.ZodMiniString<string>;
707
+ }, zod_v4_core.$strict>;
708
+ }, zod_v4_core.$strict>;
709
+ readonly configSchema: z.ZodMiniObject<{}, zod_v4_core.$strict>;
710
+ };
656
711
  readonly phone_click: {
657
712
  readonly kind: "manual";
658
713
  readonly semantics: {
@@ -725,6 +780,7 @@ type MetadataByName = {
725
780
  site_link_click: SiteLinkClickMetadata;
726
781
  site_link_arrival: SiteLinkArrivalMetadata;
727
782
  form_submit: FormSubmitMetadata;
783
+ form_step: FormStepMetadata;
728
784
  phone_click: PhoneClickMetadata;
729
785
  cta_click: CtaClickMetadata;
730
786
  };
@@ -740,6 +796,7 @@ type ConfigByName = {
740
796
  site_link_click: SiteLinkClickConfig;
741
797
  site_link_arrival: SiteLinkArrivalConfig;
742
798
  form_submit: FormSubmitConfig;
799
+ form_step: FormStepConfig;
743
800
  phone_click: PhoneClickConfig;
744
801
  cta_click: CtaClickConfig;
745
802
  };
@@ -756,18 +813,6 @@ type EventMetadata<K extends EventName> = MetadataByName[K];
756
813
  * Trigger registration config type for a specific tracking event.
757
814
  */
758
815
  type EventConfig<K extends EventName> = ConfigByName[K];
759
- /**
760
- * Runtime list of automatic event names.
761
- */
762
- declare const ALL_AUTOMATIC_EVENT_NAMES: readonly AutomaticEventName[];
763
- /**
764
- * Runtime list of manual event names.
765
- */
766
- declare const ALL_MANUAL_EVENT_NAMES: readonly ManualEventName[];
767
- /**
768
- * Events that represent a lead/outcome in first-party tracking projections.
769
- */
770
- declare const ALL_LEAD_EVENT_NAMES: readonly EventName[];
771
816
  /**
772
817
  * Trigger registry passed to `createTracking({ triggers })`.
773
818
  *
@@ -805,6 +850,7 @@ type TriggerRegistryConfig = {
805
850
  }>;
806
851
  manual?: Partial<{
807
852
  form_submit: EventConfig<"form_submit">;
853
+ form_step: EventConfig<"form_step">;
808
854
  phone_click: EventConfig<"phone_click">;
809
855
  cta_click: EventConfig<"cta_click">;
810
856
  }>;
@@ -829,12 +875,6 @@ type TrackableEvent<TRegistry extends TriggerRegistryConfig> = {
829
875
  metadata: EventMetadata<K>;
830
876
  };
831
877
  }[RegisteredManualEvents<TRegistry>];
832
- declare function getEventDefinition(name: EventName): {
833
- kind: EventKind;
834
- semantics: EventSemantics;
835
- metadataSchema: $ZodType;
836
- configSchema: $ZodType;
837
- };
838
878
 
839
879
  interface TypedTrackEventOptions {
840
880
  /**
@@ -880,4 +920,4 @@ interface TypedTrackingClient<TRegistry extends TriggerRegistryConfig> {
880
920
  getVisitorId(): string;
881
921
  }
882
922
 
883
- export { formStartMetadataSchema as $, ALL_AUTOMATIC_EVENT_NAMES as A, type ScrollDepthMetadata as B, type CtaClickConfig as C, type SdkHeartbeatConfig as D, EVENT_REGISTRY as E, type FormStartConfig as F, type SdkHeartbeatMetadata as G, type SiteLinkArrivalConfig as H, type SiteLinkArrivalMetadata as I, type SiteLinkClickConfig as J, type SiteLinkClickMetadata as K, type SpecificPageName as L, type ManualEventName as M, type SpecificPageVisitConfig as N, type SpecificPageVisitMetadata as O, PAGE_IDENTITY_MAX_LENGTH as P, type TimeOnSiteMetadata as Q, type RegisteredAutomaticEvents as R, SPECIFIC_PAGE_NAMES as S, type TimeOnSiteConfig as T, type TrackableEvent as U, type TriggerRegistryConfig as V, type TypedTrackEventOptions as W, type TypedTrackingClient as X, ctaClickConfigSchema as Y, ctaClickMetadataSchema as Z, formStartConfigSchema as _, ALL_LEAD_EVENT_NAMES as a, getEventDefinition as a0, getEventSemantics as a1, multiPageSessionConfigSchema as a2, multiPageSessionMetadataSchema as a3, pageExitConfigSchema as a4, pageExitMetadataSchema as a5, pageIdentitySchema as a6, pageViewConfigSchema as a7, pageViewMetadataSchema as a8, phoneClickConfigSchema as a9, phoneClickMetadataSchema as aa, scrollDepthConfigSchema as ab, scrollDepthMetadataSchema as ac, sdkHeartbeatConfigSchema as ad, sdkHeartbeatMetadataSchema as ae, sdkHeartbeatTriggersSchema as af, siteLinkArrivalConfigSchema as ag, siteLinkArrivalMetadataSchema as ah, siteLinkClickConfigSchema as ai, siteLinkClickMetadataSchema as aj, specificPageNameSchema as ak, specificPageVisitConfigSchema as al, specificPageVisitMetadataSchema as am, timeOnSiteConfigSchema as an, timeOnSiteMetadataSchema as ao, 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 MultiPageSessionConfig as o, type MultiPageSessionMetadata as p, PAGE_IDENTITY_PATTERN as q, type PageExitConfig as r, type PageExitMetadata as s, type PageIdentity as t, type PageViewConfig as u, type PageViewMetadata as v, type PhoneClickConfig as w, type PhoneClickMetadata as x, type RegisteredManualEvents as y, type ScrollDepthConfig 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.js';
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
  *
@@ -77,7 +69,8 @@ type SdkHeartbeatConfig = z.infer<typeof sdkHeartbeatConfigSchema>;
77
69
  /**
78
70
  * Metadata for the automatic `form_start` event.
79
71
  *
80
- * The SDK emits this once per form when the visitor first focuses a field.
72
+ * The SDK emits this once per form when the visitor first focuses or taps
73
+ * anything inside it.
81
74
  */
82
75
  declare const formStartMetadataSchema: z.ZodMiniObject<{
83
76
  form: z.ZodMiniObject<{
@@ -100,6 +93,40 @@ declare const formStartConfigSchema: z.ZodMiniObject<{
100
93
  }, z.core.$strict>;
101
94
  type FormStartConfig = z.infer<typeof formStartConfigSchema>;
102
95
 
96
+ /**
97
+ * Metadata for a manually fired `form_step` event.
98
+ *
99
+ * `form.id` must equal `form_start`/`form_submit`'s id. See
100
+ * docs/tracking-package/installing.md#multi-step-forms-form_step for the emit rule and an example.
101
+ */
102
+ declare const formStepMetadataSchema: z.ZodMiniObject<{
103
+ form: z.ZodMiniObject<{
104
+ id: z.ZodMiniString<string>;
105
+ action: z.ZodMiniNullable<z.ZodMiniString<string>>;
106
+ }, z.core.$strict>;
107
+ step: z.ZodMiniObject<{
108
+ id: z.ZodMiniString<string>;
109
+ index: z.ZodMiniInt;
110
+ total: z.ZodMiniNullable<z.ZodMiniInt>;
111
+ }, z.core.$strict>;
112
+ direction: z.ZodMiniEnum<{
113
+ forward: "forward";
114
+ back: "back";
115
+ }>;
116
+ page: z.ZodMiniObject<{
117
+ path: z.ZodMiniString<string>;
118
+ }, z.core.$strict>;
119
+ }, z.core.$strict>;
120
+ type FormStepMetadata = z.infer<typeof formStepMetadataSchema>;
121
+ /**
122
+ * Registration config for `form_step`.
123
+ *
124
+ * Manual-only with no options; the empty object enables typed
125
+ * `trackEvent('form_step', ...)` calls.
126
+ */
127
+ declare const formStepConfigSchema: z.ZodMiniObject<{}, z.core.$strict>;
128
+ type FormStepConfig = z.infer<typeof formStepConfigSchema>;
129
+
103
130
  /**
104
131
  * Metadata for the automatic `multi_page_session` event.
105
132
  *
@@ -231,16 +258,10 @@ declare const scrollDepthConfigSchema: z.ZodMiniObject<{
231
258
  }, z.core.$strict>;
232
259
  type ScrollDepthConfig = z.infer<typeof scrollDepthConfigSchema>;
233
260
 
234
- declare const PAGE_IDENTITY_MAX_LENGTH = 64;
235
- declare const PAGE_IDENTITY_PATTERN: RegExp;
236
- /** Common page identities offered as presets by operator tooling. */
237
- declare const SPECIFIC_PAGE_NAMES: readonly ["contact_page", "about_page", "services_page", "booking_page", "location_page", "pricing_page", "faq_page", "testimonials_page"];
238
261
  declare const pageIdentitySchema: z.ZodMiniString<string>;
239
262
  type PageIdentity = z.infer<typeof pageIdentitySchema>;
240
263
  /** @deprecated Use PageIdentity. Kept as a compatibility alias for existing consumers. */
241
264
  type SpecificPageName = PageIdentity;
242
- /** @deprecated Use pageIdentitySchema. Kept for source compatibility. */
243
- declare const specificPageNameSchema: z.ZodMiniString<string>;
244
265
  /**
245
266
  * Metadata for the automatic `specific_page_visit` event.
246
267
  *
@@ -388,6 +409,12 @@ declare const EVENT_SEMANTICS: {
388
409
  readonly outcomeRole: "diagnostic";
389
410
  readonly clientVisibility: "detailed";
390
411
  };
412
+ readonly form_step: {
413
+ readonly label: "Form step";
414
+ readonly category: "engagement";
415
+ readonly outcomeRole: "engagement";
416
+ readonly clientVisibility: "detailed";
417
+ };
391
418
  readonly form_submit: {
392
419
  readonly label: "Form submitted";
393
420
  readonly category: "lead";
@@ -653,6 +680,34 @@ declare const EVENT_REGISTRY: {
653
680
  }, zod_v4_core.$strict>;
654
681
  readonly configSchema: z.ZodMiniObject<{}, zod_v4_core.$strict>;
655
682
  };
683
+ readonly form_step: {
684
+ readonly kind: "manual";
685
+ readonly semantics: {
686
+ readonly label: "Form step";
687
+ readonly category: "engagement";
688
+ readonly outcomeRole: "engagement";
689
+ readonly clientVisibility: "detailed";
690
+ };
691
+ readonly metadataSchema: z.ZodMiniObject<{
692
+ form: z.ZodMiniObject<{
693
+ id: z.ZodMiniString<string>;
694
+ action: z.ZodMiniNullable<z.ZodMiniString<string>>;
695
+ }, zod_v4_core.$strict>;
696
+ step: z.ZodMiniObject<{
697
+ id: z.ZodMiniString<string>;
698
+ index: z.ZodMiniInt;
699
+ total: z.ZodMiniNullable<z.ZodMiniInt>;
700
+ }, zod_v4_core.$strict>;
701
+ direction: z.ZodMiniEnum<{
702
+ forward: "forward";
703
+ back: "back";
704
+ }>;
705
+ page: z.ZodMiniObject<{
706
+ path: z.ZodMiniString<string>;
707
+ }, zod_v4_core.$strict>;
708
+ }, zod_v4_core.$strict>;
709
+ readonly configSchema: z.ZodMiniObject<{}, zod_v4_core.$strict>;
710
+ };
656
711
  readonly phone_click: {
657
712
  readonly kind: "manual";
658
713
  readonly semantics: {
@@ -725,6 +780,7 @@ type MetadataByName = {
725
780
  site_link_click: SiteLinkClickMetadata;
726
781
  site_link_arrival: SiteLinkArrivalMetadata;
727
782
  form_submit: FormSubmitMetadata;
783
+ form_step: FormStepMetadata;
728
784
  phone_click: PhoneClickMetadata;
729
785
  cta_click: CtaClickMetadata;
730
786
  };
@@ -740,6 +796,7 @@ type ConfigByName = {
740
796
  site_link_click: SiteLinkClickConfig;
741
797
  site_link_arrival: SiteLinkArrivalConfig;
742
798
  form_submit: FormSubmitConfig;
799
+ form_step: FormStepConfig;
743
800
  phone_click: PhoneClickConfig;
744
801
  cta_click: CtaClickConfig;
745
802
  };
@@ -756,18 +813,6 @@ type EventMetadata<K extends EventName> = MetadataByName[K];
756
813
  * Trigger registration config type for a specific tracking event.
757
814
  */
758
815
  type EventConfig<K extends EventName> = ConfigByName[K];
759
- /**
760
- * Runtime list of automatic event names.
761
- */
762
- declare const ALL_AUTOMATIC_EVENT_NAMES: readonly AutomaticEventName[];
763
- /**
764
- * Runtime list of manual event names.
765
- */
766
- declare const ALL_MANUAL_EVENT_NAMES: readonly ManualEventName[];
767
- /**
768
- * Events that represent a lead/outcome in first-party tracking projections.
769
- */
770
- declare const ALL_LEAD_EVENT_NAMES: readonly EventName[];
771
816
  /**
772
817
  * Trigger registry passed to `createTracking({ triggers })`.
773
818
  *
@@ -805,6 +850,7 @@ type TriggerRegistryConfig = {
805
850
  }>;
806
851
  manual?: Partial<{
807
852
  form_submit: EventConfig<"form_submit">;
853
+ form_step: EventConfig<"form_step">;
808
854
  phone_click: EventConfig<"phone_click">;
809
855
  cta_click: EventConfig<"cta_click">;
810
856
  }>;
@@ -829,12 +875,6 @@ type TrackableEvent<TRegistry extends TriggerRegistryConfig> = {
829
875
  metadata: EventMetadata<K>;
830
876
  };
831
877
  }[RegisteredManualEvents<TRegistry>];
832
- declare function getEventDefinition(name: EventName): {
833
- kind: EventKind;
834
- semantics: EventSemantics;
835
- metadataSchema: $ZodType;
836
- configSchema: $ZodType;
837
- };
838
878
 
839
879
  interface TypedTrackEventOptions {
840
880
  /**
@@ -880,4 +920,4 @@ interface TypedTrackingClient<TRegistry extends TriggerRegistryConfig> {
880
920
  getVisitorId(): string;
881
921
  }
882
922
 
883
- export { formStartMetadataSchema as $, ALL_AUTOMATIC_EVENT_NAMES as A, type ScrollDepthMetadata as B, type CtaClickConfig as C, type SdkHeartbeatConfig as D, EVENT_REGISTRY as E, type FormStartConfig as F, type SdkHeartbeatMetadata as G, type SiteLinkArrivalConfig as H, type SiteLinkArrivalMetadata as I, type SiteLinkClickConfig as J, type SiteLinkClickMetadata as K, type SpecificPageName as L, type ManualEventName as M, type SpecificPageVisitConfig as N, type SpecificPageVisitMetadata as O, PAGE_IDENTITY_MAX_LENGTH as P, type TimeOnSiteMetadata as Q, type RegisteredAutomaticEvents as R, SPECIFIC_PAGE_NAMES as S, type TimeOnSiteConfig as T, type TrackableEvent as U, type TriggerRegistryConfig as V, type TypedTrackEventOptions as W, type TypedTrackingClient as X, ctaClickConfigSchema as Y, ctaClickMetadataSchema as Z, formStartConfigSchema as _, ALL_LEAD_EVENT_NAMES as a, getEventDefinition as a0, getEventSemantics as a1, multiPageSessionConfigSchema as a2, multiPageSessionMetadataSchema as a3, pageExitConfigSchema as a4, pageExitMetadataSchema as a5, pageIdentitySchema as a6, pageViewConfigSchema as a7, pageViewMetadataSchema as a8, phoneClickConfigSchema as a9, phoneClickMetadataSchema as aa, scrollDepthConfigSchema as ab, scrollDepthMetadataSchema as ac, sdkHeartbeatConfigSchema as ad, sdkHeartbeatMetadataSchema as ae, sdkHeartbeatTriggersSchema as af, siteLinkArrivalConfigSchema as ag, siteLinkArrivalMetadataSchema as ah, siteLinkClickConfigSchema as ai, siteLinkClickMetadataSchema as aj, specificPageNameSchema as ak, specificPageVisitConfigSchema as al, specificPageVisitMetadataSchema as am, timeOnSiteConfigSchema as an, timeOnSiteMetadataSchema as ao, 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 MultiPageSessionConfig as o, type MultiPageSessionMetadata as p, PAGE_IDENTITY_PATTERN as q, type PageExitConfig as r, type PageExitMetadata as s, type PageIdentity as t, type PageViewConfig as u, type PageViewMetadata as v, type PhoneClickConfig as w, type PhoneClickMetadata as x, type RegisteredManualEvents as y, type ScrollDepthConfig 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.2",
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",