@aranova/tracking-react 1.4.1 → 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/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 [{ key: o.key, label: o.label }];
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) => ({ key: option.key, label: option.label })),
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.4.1";
3937
+ var version = "1.5.0";
3926
3938
 
3927
3939
  // ../tracking-core/src/phone-react.tsx
3928
3940
  import {