@aranova/tracking-react 1.19.0 → 1.20.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/{bookings-v3HA8gsC.d.mts → bookings-BpLjL5w1.d.mts} +2 -0
- package/dist/{bookings-BDLyF70h.d.ts → bookings-CSDPoT-I.d.ts} +2 -0
- package/dist/client.d.mts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +6 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +6 -2
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/dist/{sales-Cu8M8I8k.d.ts → sales-CM_dxsf8.d.ts} +1 -1
- package/dist/{sales-DriCnCbM.d.mts → sales-agx4zLC9.d.mts} +1 -1
- package/dist/sales.d.mts +2 -2
- package/dist/sales.d.ts +2 -2
- package/dist/sales.js +4 -0
- package/dist/sales.js.map +1 -1
- package/dist/sales.mjs +4 -0
- package/dist/sales.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -574,6 +574,8 @@ interface LeadFormSubmitInput<C extends LeadFormContracts, K extends LeadFormKin
|
|
|
574
574
|
/** Questions with no registry role yet: shown beside the contract, never texted. */
|
|
575
575
|
extra?: LeadFormExtraField[];
|
|
576
576
|
action?: string | null;
|
|
577
|
+
/** Optional caller-supplied UUID so a server booking route and browser `form_submit` share one id. */
|
|
578
|
+
submissionId?: string;
|
|
577
579
|
}
|
|
578
580
|
/** Names the lead one `submit()` sent, so `addDetails()` can add to it. */
|
|
579
581
|
interface LeadFormSubmission<K extends LeadFormKind = LeadFormKind> {
|
|
@@ -574,6 +574,8 @@ interface LeadFormSubmitInput<C extends LeadFormContracts, K extends LeadFormKin
|
|
|
574
574
|
/** Questions with no registry role yet: shown beside the contract, never texted. */
|
|
575
575
|
extra?: LeadFormExtraField[];
|
|
576
576
|
action?: string | null;
|
|
577
|
+
/** Optional caller-supplied UUID so a server booking route and browser `form_submit` share one id. */
|
|
578
|
+
submissionId?: string;
|
|
577
579
|
}
|
|
578
580
|
/** Names the lead one `submit()` sent, so `addDetails()` can add to it. */
|
|
579
581
|
interface LeadFormSubmission<K extends LeadFormKind = LeadFormKind> {
|
package/dist/client.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, CSSProperties, InputHTMLAttributes, ChangeEvent, FocusEvent, AnchorHTMLAttributes } from 'react';
|
|
3
3
|
import { G as GtagEnvironmentMap, M as MetaPixelEnvironmentMap, h as ConsentState, f as ConsentChoiceState, g as ConsentSource, T as TrackingParams, b as TrackingEnvironment, u as PhoneConfig, P as ParsedPhone, v as PhoneDisplayFormat } from './phone-utils-BlWj8oxq.mjs';
|
|
4
|
-
import { R as TrackingConfigReference, C as ConversionConfig, h as BookingHandoffPrefill, i as BookingInput, p as BookingOutcome, b as BookingDetailsInput, d as BookingDetailsOutcome, k as BookingIntegration, B as BookableDay, x as LeadFormContracts, S as SalesBookingsClient, g as BookingFormSubmit, t as BookingSimulation, j as BookingInputFor, T as TrackedVideoConfig } from './bookings-
|
|
5
|
-
export { a3 as createLeadFormSubmit } from './bookings-
|
|
4
|
+
import { R as TrackingConfigReference, C as ConversionConfig, h as BookingHandoffPrefill, i as BookingInput, p as BookingOutcome, b as BookingDetailsInput, d as BookingDetailsOutcome, k as BookingIntegration, B as BookableDay, x as LeadFormContracts, S as SalesBookingsClient, g as BookingFormSubmit, t as BookingSimulation, j as BookingInputFor, T as TrackedVideoConfig } from './bookings-BpLjL5w1.mjs';
|
|
5
|
+
export { a3 as createLeadFormSubmit } from './bookings-BpLjL5w1.mjs';
|
|
6
6
|
import { Q as TriggerRegistryConfig, V as TypedTrackingClient, $ as VideoVariant, a0 as VideoWatchRange, O as TrackingClient } from './ingest-typed-BEFQd3WM.mjs';
|
|
7
7
|
import { CountryCode } from 'libphonenumber-js';
|
|
8
8
|
import 'zod/mini';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, CSSProperties, InputHTMLAttributes, ChangeEvent, FocusEvent, AnchorHTMLAttributes } from 'react';
|
|
3
3
|
import { G as GtagEnvironmentMap, M as MetaPixelEnvironmentMap, h as ConsentState, f as ConsentChoiceState, g as ConsentSource, T as TrackingParams, b as TrackingEnvironment, u as PhoneConfig, P as ParsedPhone, v as PhoneDisplayFormat } from './phone-utils-BlWj8oxq.js';
|
|
4
|
-
import { R as TrackingConfigReference, C as ConversionConfig, h as BookingHandoffPrefill, i as BookingInput, p as BookingOutcome, b as BookingDetailsInput, d as BookingDetailsOutcome, k as BookingIntegration, B as BookableDay, x as LeadFormContracts, S as SalesBookingsClient, g as BookingFormSubmit, t as BookingSimulation, j as BookingInputFor, T as TrackedVideoConfig } from './bookings-
|
|
5
|
-
export { a3 as createLeadFormSubmit } from './bookings-
|
|
4
|
+
import { R as TrackingConfigReference, C as ConversionConfig, h as BookingHandoffPrefill, i as BookingInput, p as BookingOutcome, b as BookingDetailsInput, d as BookingDetailsOutcome, k as BookingIntegration, B as BookableDay, x as LeadFormContracts, S as SalesBookingsClient, g as BookingFormSubmit, t as BookingSimulation, j as BookingInputFor, T as TrackedVideoConfig } from './bookings-CSDPoT-I.js';
|
|
5
|
+
export { a3 as createLeadFormSubmit } from './bookings-CSDPoT-I.js';
|
|
6
6
|
import { Q as TriggerRegistryConfig, V as TypedTrackingClient, $ as VideoVariant, a0 as VideoWatchRange, O as TrackingClient } from './ingest-typed-DChvvgwd.js';
|
|
7
7
|
import { CountryCode } from 'libphonenumber-js';
|
|
8
8
|
import 'zod/mini';
|
package/dist/client.js
CHANGED
|
@@ -4252,7 +4252,11 @@ function createLeadFormSubmit(tracking, contracts, options = {}) {
|
|
|
4252
4252
|
contracts,
|
|
4253
4253
|
settings
|
|
4254
4254
|
);
|
|
4255
|
-
const submission = {
|
|
4255
|
+
const submission = {
|
|
4256
|
+
submissionId: input.submissionId ?? uuidV4(),
|
|
4257
|
+
formId: input.formId,
|
|
4258
|
+
kind: input.kind
|
|
4259
|
+
};
|
|
4256
4260
|
const metadata = {
|
|
4257
4261
|
form: {
|
|
4258
4262
|
id: input.formId,
|
|
@@ -4742,7 +4746,7 @@ function GoogleAdsTracking(props) {
|
|
|
4742
4746
|
var import_react6 = require("react");
|
|
4743
4747
|
|
|
4744
4748
|
// package.json
|
|
4745
|
-
var version = "1.
|
|
4749
|
+
var version = "1.20.0";
|
|
4746
4750
|
|
|
4747
4751
|
// ../tracking-core/src/phone-react.tsx
|
|
4748
4752
|
var import_react5 = require("react");
|