@aranova/tracking-react 1.2.3 → 1.2.5
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/client.d.mts +2 -3
- package/dist/client.d.ts +2 -3
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +1 -1
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{ingest-typed-DRuUbg-r.d.ts → ingest-typed-CUpdCtmM.d.ts} +4 -36
- package/dist/{ingest-typed-CCjpmxzo.d.mts → ingest-typed-oAwnKqH2.d.mts} +4 -36
- package/dist/{phone-utils-C0ds6cqZ.d.mts → phone-utils-qLfVpQI7.d.mts} +1 -2
- package/dist/{phone-utils-C0ds6cqZ.d.ts → phone-utils-qLfVpQI7.d.ts} +1 -2
- package/dist/phone.d.mts +1 -1
- package/dist/phone.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import * as src from 'src';
|
|
2
1
|
import * as zod_v4_core from 'zod/v4/core';
|
|
3
|
-
import { $ZodType } from 'zod/v4/core';
|
|
4
2
|
import * as z from 'zod/mini';
|
|
5
|
-
import { F as FormSubmitConfig, j as FormSubmitMetadata } from './phone-utils-
|
|
3
|
+
import { J as JsonValue, F as FormSubmitConfig, j as FormSubmitMetadata } from './phone-utils-qLfVpQI7.js';
|
|
6
4
|
|
|
7
5
|
/**
|
|
8
6
|
* Metadata for a manually fired `cta_click` event.
|
|
@@ -35,13 +33,6 @@ declare const ctaClickConfigSchema: z.ZodMiniObject<{
|
|
|
35
33
|
}, z.core.$strict>;
|
|
36
34
|
type CtaClickConfig = z.infer<typeof ctaClickConfigSchema>;
|
|
37
35
|
|
|
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
36
|
/**
|
|
46
37
|
* Metadata for the SDK-internal `sdk_heartbeat` event.
|
|
47
38
|
*
|
|
@@ -266,16 +257,10 @@ declare const scrollDepthConfigSchema: z.ZodMiniObject<{
|
|
|
266
257
|
}, z.core.$strict>;
|
|
267
258
|
type ScrollDepthConfig = z.infer<typeof scrollDepthConfigSchema>;
|
|
268
259
|
|
|
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
260
|
declare const pageIdentitySchema: z.ZodMiniString<string>;
|
|
274
261
|
type PageIdentity = z.infer<typeof pageIdentitySchema>;
|
|
275
262
|
/** @deprecated Use PageIdentity. Kept as a compatibility alias for existing consumers. */
|
|
276
263
|
type SpecificPageName = PageIdentity;
|
|
277
|
-
/** @deprecated Use pageIdentitySchema. Kept for source compatibility. */
|
|
278
|
-
declare const specificPageNameSchema: z.ZodMiniString<string>;
|
|
279
264
|
/**
|
|
280
265
|
* Metadata for the automatic `specific_page_visit` event.
|
|
281
266
|
*
|
|
@@ -464,6 +449,7 @@ type EventName = keyof typeof EVENT_SEMANTICS;
|
|
|
464
449
|
declare function getEventSemantics(eventName: string): EventSemantics | null;
|
|
465
450
|
|
|
466
451
|
type EventKind = "automatic" | "manual";
|
|
452
|
+
|
|
467
453
|
declare const EVENT_REGISTRY: {
|
|
468
454
|
readonly page_view: {
|
|
469
455
|
readonly kind: "automatic";
|
|
@@ -685,7 +671,7 @@ declare const EVENT_REGISTRY: {
|
|
|
685
671
|
name: z.ZodMiniString<string>;
|
|
686
672
|
type: z.ZodMiniString<string>;
|
|
687
673
|
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
688
|
-
value: z.ZodMiniType<
|
|
674
|
+
value: z.ZodMiniType<JsonValue, unknown, zod_v4_core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
689
675
|
}, zod_v4_core.$strict>>>;
|
|
690
676
|
}, zod_v4_core.$strict>;
|
|
691
677
|
page: z.ZodMiniObject<{
|
|
@@ -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 {
|
|
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,6 @@
|
|
|
1
|
-
import * as src from 'src';
|
|
2
1
|
import * as zod_v4_core from 'zod/v4/core';
|
|
3
|
-
import { $ZodType } from 'zod/v4/core';
|
|
4
2
|
import * as z from 'zod/mini';
|
|
5
|
-
import { F as FormSubmitConfig, j as FormSubmitMetadata } from './phone-utils-
|
|
3
|
+
import { J as JsonValue, F as FormSubmitConfig, j as FormSubmitMetadata } from './phone-utils-qLfVpQI7.mjs';
|
|
6
4
|
|
|
7
5
|
/**
|
|
8
6
|
* Metadata for a manually fired `cta_click` event.
|
|
@@ -35,13 +33,6 @@ declare const ctaClickConfigSchema: z.ZodMiniObject<{
|
|
|
35
33
|
}, z.core.$strict>;
|
|
36
34
|
type CtaClickConfig = z.infer<typeof ctaClickConfigSchema>;
|
|
37
35
|
|
|
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
36
|
/**
|
|
46
37
|
* Metadata for the SDK-internal `sdk_heartbeat` event.
|
|
47
38
|
*
|
|
@@ -266,16 +257,10 @@ declare const scrollDepthConfigSchema: z.ZodMiniObject<{
|
|
|
266
257
|
}, z.core.$strict>;
|
|
267
258
|
type ScrollDepthConfig = z.infer<typeof scrollDepthConfigSchema>;
|
|
268
259
|
|
|
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
260
|
declare const pageIdentitySchema: z.ZodMiniString<string>;
|
|
274
261
|
type PageIdentity = z.infer<typeof pageIdentitySchema>;
|
|
275
262
|
/** @deprecated Use PageIdentity. Kept as a compatibility alias for existing consumers. */
|
|
276
263
|
type SpecificPageName = PageIdentity;
|
|
277
|
-
/** @deprecated Use pageIdentitySchema. Kept for source compatibility. */
|
|
278
|
-
declare const specificPageNameSchema: z.ZodMiniString<string>;
|
|
279
264
|
/**
|
|
280
265
|
* Metadata for the automatic `specific_page_visit` event.
|
|
281
266
|
*
|
|
@@ -464,6 +449,7 @@ type EventName = keyof typeof EVENT_SEMANTICS;
|
|
|
464
449
|
declare function getEventSemantics(eventName: string): EventSemantics | null;
|
|
465
450
|
|
|
466
451
|
type EventKind = "automatic" | "manual";
|
|
452
|
+
|
|
467
453
|
declare const EVENT_REGISTRY: {
|
|
468
454
|
readonly page_view: {
|
|
469
455
|
readonly kind: "automatic";
|
|
@@ -685,7 +671,7 @@ declare const EVENT_REGISTRY: {
|
|
|
685
671
|
name: z.ZodMiniString<string>;
|
|
686
672
|
type: z.ZodMiniString<string>;
|
|
687
673
|
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
688
|
-
value: z.ZodMiniType<
|
|
674
|
+
value: z.ZodMiniType<JsonValue, unknown, zod_v4_core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
689
675
|
}, zod_v4_core.$strict>>>;
|
|
690
676
|
}, zod_v4_core.$strict>;
|
|
691
677
|
page: z.ZodMiniObject<{
|
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
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,
|
|
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,
|
|
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';
|