@aranova/tracking-react 1.4.0 → 1.5.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 +3 -0
- package/dist/{bookings-CqCuuyP6.d.mts → bookings-CGWiBxnC.d.mts} +4 -0
- package/dist/{bookings-DIu1ho6v.d.ts → bookings-aJuXoVwX.d.ts} +4 -0
- package/dist/client.d.mts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +15 -3
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +15 -3
- 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 +26 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{ingest-typed-D7UZr0EM.d.mts → ingest-typed-CytXGVw4.d.mts} +16 -2
- package/dist/{ingest-typed-D2S3Kb8m.d.ts → ingest-typed-DpT-uFme.d.ts} +16 -2
- package/dist/{sales-CxJVthx_.d.mts → sales-BdU9BRdG.d.mts} +1 -1
- package/dist/{sales-hlcVTJSS.d.ts → sales-Dvh-tPsk.d.ts} +1 -1
- package/dist/sales.d.mts +2 -2
- package/dist/sales.d.ts +2 -2
- package/dist/sales.js +7 -1
- package/dist/sales.js.map +1 -1
- package/dist/sales.mjs +7 -1
- package/dist/sales.mjs.map +1 -1
- package/package.json +1 -1
package/dist/client.mjs
CHANGED
|
@@ -984,7 +984,14 @@ function parseBookingOption(value) {
|
|
|
984
984
|
if (!value || typeof value !== "object") return [];
|
|
985
985
|
const o = value;
|
|
986
986
|
if (typeof o.key !== "string" || !o.key || typeof o.label !== "string") return [];
|
|
987
|
-
return [
|
|
987
|
+
return [
|
|
988
|
+
{
|
|
989
|
+
key: o.key,
|
|
990
|
+
label: o.label,
|
|
991
|
+
group: typeof o.group === "string" && o.group ? o.group : null,
|
|
992
|
+
description: typeof o.description === "string" && o.description ? o.description : null
|
|
993
|
+
}
|
|
994
|
+
];
|
|
988
995
|
}
|
|
989
996
|
function parseIntegrations(value) {
|
|
990
997
|
if (!value || typeof value !== "object") return {};
|
|
@@ -1688,7 +1695,12 @@ function getBookingIntegration(integrations) {
|
|
|
1688
1695
|
timezone: booking.timezone,
|
|
1689
1696
|
configVersion: booking.config_version,
|
|
1690
1697
|
rules,
|
|
1691
|
-
options: booking.options.map((option) => ({
|
|
1698
|
+
options: booking.options.map((option) => ({
|
|
1699
|
+
key: option.key,
|
|
1700
|
+
label: option.label,
|
|
1701
|
+
group: option.group,
|
|
1702
|
+
description: option.description
|
|
1703
|
+
})),
|
|
1692
1704
|
mode: booking.mode ?? "live"
|
|
1693
1705
|
};
|
|
1694
1706
|
}
|
|
@@ -3922,7 +3934,7 @@ function GoogleAdsTracking(props) {
|
|
|
3922
3934
|
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect5, useMemo as useMemo4 } from "react";
|
|
3923
3935
|
|
|
3924
3936
|
// package.json
|
|
3925
|
-
var version = "1.
|
|
3937
|
+
var version = "1.5.0";
|
|
3926
3938
|
|
|
3927
3939
|
// ../tracking-core/src/phone-react.tsx
|
|
3928
3940
|
import {
|