@aranova/tracking-react 1.5.0 → 1.6.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/README.md +13 -3
- package/dist/{bookings-aJuXoVwX.d.ts → bookings-B50X7GSG.d.ts} +16 -1
- package/dist/{bookings-CGWiBxnC.d.mts → bookings-n8UUzrak.d.mts} +16 -1
- package/dist/client.d.mts +4 -3
- package/dist/client.d.ts +4 -3
- package/dist/client.js +11 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +11 -2
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +30 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -35
- package/dist/index.mjs.map +1 -1
- package/dist/{ingest-typed-CytXGVw4.d.mts → ingest-typed-ABH28Ips.d.mts} +1 -1
- package/dist/{ingest-typed-DpT-uFme.d.ts → ingest-typed-vP-DqpxO.d.ts} +1 -1
- package/dist/{sales-Dvh-tPsk.d.ts → sales-D4QRnpdz.d.ts} +1 -1
- package/dist/{sales-BdU9BRdG.d.mts → sales-DByfvgzT.d.mts} +1 -1
- package/dist/sales.d.mts +2 -2
- package/dist/sales.d.ts +2 -2
- package/dist/sales.js +30 -35
- package/dist/sales.js.map +1 -1
- package/dist/sales.mjs +30 -35
- package/dist/sales.mjs.map +1 -1
- package/package.json +1 -1
package/dist/client.mjs
CHANGED
|
@@ -3934,7 +3934,7 @@ function GoogleAdsTracking(props) {
|
|
|
3934
3934
|
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect5, useMemo as useMemo4 } from "react";
|
|
3935
3935
|
|
|
3936
3936
|
// package.json
|
|
3937
|
-
var version = "1.
|
|
3937
|
+
var version = "1.6.0";
|
|
3938
3938
|
|
|
3939
3939
|
// ../tracking-core/src/phone-react.tsx
|
|
3940
3940
|
import {
|
|
@@ -4264,7 +4264,16 @@ function useBookingSubmit(bookings, options = {}) {
|
|
|
4264
4264
|
if (inFlight.current) return inFlight.current;
|
|
4265
4265
|
attemptKey.current ?? (attemptKey.current = newBookingAttemptKey());
|
|
4266
4266
|
setSubmitting(true);
|
|
4267
|
-
const run = bookings.submit(input, {
|
|
4267
|
+
const run = bookings.submit(input, {
|
|
4268
|
+
attemptKey: attemptKey.current,
|
|
4269
|
+
formSubmit,
|
|
4270
|
+
simulate,
|
|
4271
|
+
// The server has it: show the pending success while the final answer is polled.
|
|
4272
|
+
onPending: (pending) => {
|
|
4273
|
+
setOutcome(pending);
|
|
4274
|
+
setSubmitting(false);
|
|
4275
|
+
}
|
|
4276
|
+
}).then((result) => {
|
|
4268
4277
|
const unrecorded = result.status === "invalid" || result.status === "stale" || result.status === "failed" && result.id === null;
|
|
4269
4278
|
if (!unrecorded) attemptKey.current = null;
|
|
4270
4279
|
setOutcome(result);
|