@aranova/tracking-react 0.27.0 → 1.1.0
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 +11 -4
- package/dist/client.d.ts +11 -4
- package/dist/client.js +620 -350
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +610 -350
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +339 -393
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +328 -393
- package/dist/index.mjs.map +1 -1
- package/dist/ingest-typed-MBuMe9Pn.d.ts +883 -0
- package/dist/ingest-typed-UA13xTfI.d.mts +883 -0
- package/dist/{phone-utils-BVzSNBf1.d.mts → phone-utils-C0ds6cqZ.d.mts} +24 -78
- package/dist/{phone-utils-BVzSNBf1.d.ts → phone-utils-C0ds6cqZ.d.ts} +24 -78
- package/dist/phone.d.mts +2 -2
- package/dist/phone.d.ts +2 -2
- package/dist/phone.js +0 -464
- package/dist/phone.js.map +1 -1
- package/dist/phone.mjs +0 -464
- package/dist/phone.mjs.map +1 -1
- package/dist/{sales-D4TB9gRS.d.ts → sales-BuKD_bdo.d.mts} +90 -329
- package/dist/{sales-cYjB07y8.d.mts → sales-C3O_xxZ_.d.ts} +90 -329
- package/dist/sales.d.mts +3 -3
- package/dist/sales.d.ts +3 -3
- package/dist/sales.js +270 -127
- package/dist/sales.js.map +1 -1
- package/dist/sales.mjs +259 -127
- package/dist/sales.mjs.map +1 -1
- package/dist/{tracking-config-runtime-D7prdTE1.d.mts → tracking-config-runtime-C6H7ofmo.d.mts} +6 -0
- package/dist/{tracking-config-runtime-D7prdTE1.d.ts → tracking-config-runtime-C6H7ofmo.d.ts} +6 -0
- package/package.json +2 -2
- package/dist/ingest-typed-BxLFlZ7N.d.mts +0 -1371
- package/dist/ingest-typed-ByQVRMvP.d.ts +0 -1371
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
2
|
import { CountryCode } from 'libphonenumber-js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -11,7 +11,7 @@ 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.
|
|
14
|
+
declare const jsonValueSchema: z.ZodMiniType<JsonValue>;
|
|
15
15
|
/**
|
|
16
16
|
* Metadata for a manually fired `form_submit` event.
|
|
17
17
|
*
|
|
@@ -49,81 +49,21 @@ declare const jsonValueSchema: z.ZodType<JsonValue>;
|
|
|
49
49
|
* });
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
declare const formSubmitMetadataSchema: z.
|
|
53
|
-
form: z.
|
|
54
|
-
id: z.
|
|
55
|
-
action: z.
|
|
56
|
-
fields: z.
|
|
57
|
-
name: z.
|
|
58
|
-
type: z.
|
|
59
|
-
label: z.
|
|
60
|
-
value: z.
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
value: JsonValue;
|
|
68
|
-
type: string;
|
|
69
|
-
name: string;
|
|
70
|
-
label: string | null;
|
|
71
|
-
}>, "many">>;
|
|
72
|
-
}, "strict", z.ZodTypeAny, {
|
|
73
|
-
id: string;
|
|
74
|
-
action: string | null;
|
|
75
|
-
fields?: {
|
|
76
|
-
value: JsonValue;
|
|
77
|
-
type: string;
|
|
78
|
-
name: string;
|
|
79
|
-
label: string | null;
|
|
80
|
-
}[] | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
id: string;
|
|
83
|
-
action: string | null;
|
|
84
|
-
fields?: {
|
|
85
|
-
value: JsonValue;
|
|
86
|
-
type: string;
|
|
87
|
-
name: string;
|
|
88
|
-
label: string | null;
|
|
89
|
-
}[] | undefined;
|
|
90
|
-
}>;
|
|
91
|
-
page: z.ZodObject<{
|
|
92
|
-
path: z.ZodString;
|
|
93
|
-
}, "strict", z.ZodTypeAny, {
|
|
94
|
-
path: string;
|
|
95
|
-
}, {
|
|
96
|
-
path: string;
|
|
97
|
-
}>;
|
|
98
|
-
}, "strict", z.ZodTypeAny, {
|
|
99
|
-
form: {
|
|
100
|
-
id: string;
|
|
101
|
-
action: string | null;
|
|
102
|
-
fields?: {
|
|
103
|
-
value: JsonValue;
|
|
104
|
-
type: string;
|
|
105
|
-
name: string;
|
|
106
|
-
label: string | null;
|
|
107
|
-
}[] | undefined;
|
|
108
|
-
};
|
|
109
|
-
page: {
|
|
110
|
-
path: string;
|
|
111
|
-
};
|
|
112
|
-
}, {
|
|
113
|
-
form: {
|
|
114
|
-
id: string;
|
|
115
|
-
action: string | null;
|
|
116
|
-
fields?: {
|
|
117
|
-
value: JsonValue;
|
|
118
|
-
type: string;
|
|
119
|
-
name: string;
|
|
120
|
-
label: string | null;
|
|
121
|
-
}[] | undefined;
|
|
122
|
-
};
|
|
123
|
-
page: {
|
|
124
|
-
path: string;
|
|
125
|
-
};
|
|
126
|
-
}>;
|
|
52
|
+
declare const formSubmitMetadataSchema: z.ZodMiniObject<{
|
|
53
|
+
form: z.ZodMiniObject<{
|
|
54
|
+
id: z.ZodMiniString<string>;
|
|
55
|
+
action: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
56
|
+
fields: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
57
|
+
name: z.ZodMiniString<string>;
|
|
58
|
+
type: z.ZodMiniString<string>;
|
|
59
|
+
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
60
|
+
value: z.ZodMiniType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
61
|
+
}, z.core.$strict>>>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
page: z.ZodMiniObject<{
|
|
64
|
+
path: z.ZodMiniString<string>;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
}, z.core.$strict>;
|
|
127
67
|
type FormSubmitMetadata = z.infer<typeof formSubmitMetadataSchema>;
|
|
128
68
|
/**
|
|
129
69
|
* Registration config for `form_submit`.
|
|
@@ -131,7 +71,7 @@ type FormSubmitMetadata = z.infer<typeof formSubmitMetadataSchema>;
|
|
|
131
71
|
* This event is manual-only and currently has no registration options. The
|
|
132
72
|
* empty object enables typed `trackEvent('form_submit', ...)` calls.
|
|
133
73
|
*/
|
|
134
|
-
declare const formSubmitConfigSchema: z.
|
|
74
|
+
declare const formSubmitConfigSchema: z.ZodMiniObject<{}, z.core.$strict>;
|
|
135
75
|
type FormSubmitConfig = z.infer<typeof formSubmitConfigSchema>;
|
|
136
76
|
|
|
137
77
|
/**
|
|
@@ -345,6 +285,10 @@ interface TrackingSessionUpsertPayload {
|
|
|
345
285
|
landing_utm_campaign?: string | null;
|
|
346
286
|
landing_utm_term?: string | null;
|
|
347
287
|
landing_utm_content?: string | null;
|
|
288
|
+
/** The sibling-site session this one arrived from (fresh linker token); first-wins server-side. */
|
|
289
|
+
origin_session_id?: string | null;
|
|
290
|
+
origin_visitor_id?: string | null;
|
|
291
|
+
origin_linked_at?: string | null;
|
|
348
292
|
first_page: string | null;
|
|
349
293
|
consent_state: Record<string, unknown> | null;
|
|
350
294
|
context: TrackingClientContext;
|
|
@@ -426,6 +370,8 @@ declare global {
|
|
|
426
370
|
optOut: (options?: SetConsentOptions) => void;
|
|
427
371
|
resetConsent: () => void;
|
|
428
372
|
trackEvent: (eventType: string, metadata: Record<string, unknown>) => void;
|
|
373
|
+
/** Append the cross-site identity token to a sibling-site URL. */
|
|
374
|
+
decorateUrl: (url: string) => string;
|
|
429
375
|
};
|
|
430
376
|
}
|
|
431
377
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
2
|
import { CountryCode } from 'libphonenumber-js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -11,7 +11,7 @@ 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.
|
|
14
|
+
declare const jsonValueSchema: z.ZodMiniType<JsonValue>;
|
|
15
15
|
/**
|
|
16
16
|
* Metadata for a manually fired `form_submit` event.
|
|
17
17
|
*
|
|
@@ -49,81 +49,21 @@ declare const jsonValueSchema: z.ZodType<JsonValue>;
|
|
|
49
49
|
* });
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
declare const formSubmitMetadataSchema: z.
|
|
53
|
-
form: z.
|
|
54
|
-
id: z.
|
|
55
|
-
action: z.
|
|
56
|
-
fields: z.
|
|
57
|
-
name: z.
|
|
58
|
-
type: z.
|
|
59
|
-
label: z.
|
|
60
|
-
value: z.
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
value: JsonValue;
|
|
68
|
-
type: string;
|
|
69
|
-
name: string;
|
|
70
|
-
label: string | null;
|
|
71
|
-
}>, "many">>;
|
|
72
|
-
}, "strict", z.ZodTypeAny, {
|
|
73
|
-
id: string;
|
|
74
|
-
action: string | null;
|
|
75
|
-
fields?: {
|
|
76
|
-
value: JsonValue;
|
|
77
|
-
type: string;
|
|
78
|
-
name: string;
|
|
79
|
-
label: string | null;
|
|
80
|
-
}[] | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
id: string;
|
|
83
|
-
action: string | null;
|
|
84
|
-
fields?: {
|
|
85
|
-
value: JsonValue;
|
|
86
|
-
type: string;
|
|
87
|
-
name: string;
|
|
88
|
-
label: string | null;
|
|
89
|
-
}[] | undefined;
|
|
90
|
-
}>;
|
|
91
|
-
page: z.ZodObject<{
|
|
92
|
-
path: z.ZodString;
|
|
93
|
-
}, "strict", z.ZodTypeAny, {
|
|
94
|
-
path: string;
|
|
95
|
-
}, {
|
|
96
|
-
path: string;
|
|
97
|
-
}>;
|
|
98
|
-
}, "strict", z.ZodTypeAny, {
|
|
99
|
-
form: {
|
|
100
|
-
id: string;
|
|
101
|
-
action: string | null;
|
|
102
|
-
fields?: {
|
|
103
|
-
value: JsonValue;
|
|
104
|
-
type: string;
|
|
105
|
-
name: string;
|
|
106
|
-
label: string | null;
|
|
107
|
-
}[] | undefined;
|
|
108
|
-
};
|
|
109
|
-
page: {
|
|
110
|
-
path: string;
|
|
111
|
-
};
|
|
112
|
-
}, {
|
|
113
|
-
form: {
|
|
114
|
-
id: string;
|
|
115
|
-
action: string | null;
|
|
116
|
-
fields?: {
|
|
117
|
-
value: JsonValue;
|
|
118
|
-
type: string;
|
|
119
|
-
name: string;
|
|
120
|
-
label: string | null;
|
|
121
|
-
}[] | undefined;
|
|
122
|
-
};
|
|
123
|
-
page: {
|
|
124
|
-
path: string;
|
|
125
|
-
};
|
|
126
|
-
}>;
|
|
52
|
+
declare const formSubmitMetadataSchema: z.ZodMiniObject<{
|
|
53
|
+
form: z.ZodMiniObject<{
|
|
54
|
+
id: z.ZodMiniString<string>;
|
|
55
|
+
action: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
56
|
+
fields: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
57
|
+
name: z.ZodMiniString<string>;
|
|
58
|
+
type: z.ZodMiniString<string>;
|
|
59
|
+
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
60
|
+
value: z.ZodMiniType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
61
|
+
}, z.core.$strict>>>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
page: z.ZodMiniObject<{
|
|
64
|
+
path: z.ZodMiniString<string>;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
}, z.core.$strict>;
|
|
127
67
|
type FormSubmitMetadata = z.infer<typeof formSubmitMetadataSchema>;
|
|
128
68
|
/**
|
|
129
69
|
* Registration config for `form_submit`.
|
|
@@ -131,7 +71,7 @@ type FormSubmitMetadata = z.infer<typeof formSubmitMetadataSchema>;
|
|
|
131
71
|
* This event is manual-only and currently has no registration options. The
|
|
132
72
|
* empty object enables typed `trackEvent('form_submit', ...)` calls.
|
|
133
73
|
*/
|
|
134
|
-
declare const formSubmitConfigSchema: z.
|
|
74
|
+
declare const formSubmitConfigSchema: z.ZodMiniObject<{}, z.core.$strict>;
|
|
135
75
|
type FormSubmitConfig = z.infer<typeof formSubmitConfigSchema>;
|
|
136
76
|
|
|
137
77
|
/**
|
|
@@ -345,6 +285,10 @@ interface TrackingSessionUpsertPayload {
|
|
|
345
285
|
landing_utm_campaign?: string | null;
|
|
346
286
|
landing_utm_term?: string | null;
|
|
347
287
|
landing_utm_content?: string | null;
|
|
288
|
+
/** The sibling-site session this one arrived from (fresh linker token); first-wins server-side. */
|
|
289
|
+
origin_session_id?: string | null;
|
|
290
|
+
origin_visitor_id?: string | null;
|
|
291
|
+
origin_linked_at?: string | null;
|
|
348
292
|
first_page: string | null;
|
|
349
293
|
consent_state: Record<string, unknown> | null;
|
|
350
294
|
context: TrackingClientContext;
|
|
@@ -426,6 +370,8 @@ declare global {
|
|
|
426
370
|
optOut: (options?: SetConsentOptions) => void;
|
|
427
371
|
resetConsent: () => void;
|
|
428
372
|
trackEvent: (eventType: string, metadata: Record<string, unknown>) => void;
|
|
373
|
+
/** Append the cross-site identity token to a sibling-site URL. */
|
|
374
|
+
decorateUrl: (url: string) => string;
|
|
429
375
|
};
|
|
430
376
|
}
|
|
431
377
|
}
|
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-
|
|
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';
|
|
2
2
|
export { CountryCode } from 'libphonenumber-js';
|
|
3
|
-
import 'zod';
|
|
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-
|
|
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';
|
|
2
2
|
export { CountryCode } from 'libphonenumber-js';
|
|
3
|
-
import 'zod';
|
|
3
|
+
import 'zod/mini';
|