@levo-so/react 0.1.32 → 0.1.34

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.
Files changed (45) hide show
  1. package/dist/{CheckboxWidget-Dedx-7Wy.js → CheckboxWidget-BrVNbP0R.js} +1 -1
  2. package/dist/{CollectionFormBuilder-BPzVyGLq.js → CollectionFormBuilder-CkD8uVKZ.js} +18 -18
  3. package/dist/{CurrencyWidget-CW3cMoYn.js → CurrencyWidget-D_q2AYWu.js} +1 -1
  4. package/dist/{DateTimeWidget-eKbj2Q86.js → DateTimeWidget-CsuCisSs.js} +1 -1
  5. package/dist/{DefaultFormVariant-DGecA_SF.js → DefaultFormVariant-rv38sBOZ.js} +2 -2
  6. package/dist/{DropdownWidget-DJ6rBFE0.js → DropdownWidget-CsTQ0Ojo.js} +1 -1
  7. package/dist/{EmailWidget-Bx3LTBSb.js → EmailWidget-Did2OUyB.js} +1 -1
  8. package/dist/{FormCaptcha-BVawlT6h.js → FormCaptcha-C_DxR2za.js} +2 -2
  9. package/dist/{GeocoderWidget-C_8wJijA.js → GeocoderWidget-CyzcaWxa.js} +9 -9
  10. package/dist/{MultiGeocoderWidget-0uUFNNoH.js → MultiGeocoderWidget-DgwiZ330.js} +2 -2
  11. package/dist/{MultiTextWidget-BluGgZVP.js → MultiTextWidget-Dic46WBU.js} +1 -1
  12. package/dist/{PhoneWidget-Mm6DmCsK.js → PhoneWidget-DKH-Wzgz.js} +1 -1
  13. package/dist/{RadioWidget-BkYAbg4o.js → RadioWidget-CTgWKCg2.js} +1 -1
  14. package/dist/{RichTextWidget-CbyT-y1E.js → RichTextWidget-C30H7mVF.js} +1 -1
  15. package/dist/{StepsFormVariant-Bk_rc3R7.js → StepsFormVariant-myT97AwJ.js} +2 -2
  16. package/dist/{SwitchWidget-DeCIh2Vm.js → SwitchWidget-BS-rmHiq.js} +1 -1
  17. package/dist/{TextWidget-Di_db2UE.js → TextWidget-aNB-0vc-.js} +1 -1
  18. package/dist/{TextareaWidget-CZqLQQAK.js → TextareaWidget-CEH-97Oj.js} +1 -1
  19. package/dist/{ToggleCheckboxWidget-Dynr-C0Y.js → ToggleCheckboxWidget-C0buyS29.js} +1 -1
  20. package/dist/{URLWidget-BvQvn0aZ.js → URLWidget-DrZlRAD7.js} +2 -2
  21. package/dist/{UploadWidget-mRgEWRVS.js → UploadWidget-Bw7urh-7.js} +2 -2
  22. package/dist/audience/components/page.d.ts.map +1 -1
  23. package/dist/audience/hooks/useDownloadSpeed.d.ts +3 -0
  24. package/dist/audience/hooks/useDownloadSpeed.d.ts.map +1 -0
  25. package/dist/audience/hooks/usePerformanceMetrics.d.ts +11 -5
  26. package/dist/audience/hooks/usePerformanceMetrics.d.ts.map +1 -1
  27. package/dist/audience/hooks/useScrollBehavior.d.ts +9 -0
  28. package/dist/audience/hooks/useScrollBehavior.d.ts.map +1 -0
  29. package/dist/audience/hooks/useTextSelection.d.ts +3 -0
  30. package/dist/audience/hooks/useTextSelection.d.ts.map +1 -0
  31. package/dist/audience/index.js +1 -1
  32. package/dist/audience/utils/autocapture.d.ts.map +1 -1
  33. package/dist/collection/index.js +1 -1
  34. package/dist/index.css +1 -1
  35. package/dist/index.js +9 -9
  36. package/dist/membership/index.js +1 -1
  37. package/dist/page-BaAkHGtG.js +562 -0
  38. package/dist/providers/LevoProvider.d.ts.map +1 -1
  39. package/dist/providers/index.d.ts +2 -0
  40. package/dist/providers/index.js +169 -0
  41. package/package.json +8 -4
  42. package/dist/LevoProvider-BAZy7_tP.js +0 -223
  43. package/dist/audience/hooks/useScrollDepth.d.ts +0 -6
  44. package/dist/audience/hooks/useScrollDepth.d.ts.map +0 -1
  45. package/dist/page-BjcgPmsH.js +0 -478
@@ -3,7 +3,7 @@ import { j as a } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useState as w, useEffect as B } from "react";
4
4
  import { useController as E } from "react-hook-form";
5
5
  import { c as C } from "./cn-C9QoOYNG.js";
6
- import { z as O, A as I, B as x } from "./CollectionFormBuilder-BPzVyGLq.js";
6
+ import { z as O, A as I, B as x } from "./CollectionFormBuilder-CkD8uVKZ.js";
7
7
  import { C as g } from "./Checbox-sq-atGlJ.js";
8
8
  import { I as S } from "./Input-Vv7mKQFt.js";
9
9
  const L = ({ field: i }) => {
@@ -6,7 +6,7 @@ import E, { useState as w, useEffect as ge, lazy as v, Suspense as _e } from "re
6
6
  import { useFieldArray as Ne, useController as me } from "react-hook-form";
7
7
  import { G as P, T as Re, l as Le, m as Te, B as W, n as Me, C as Ie, E as Ae, k as De, o as Be, S as Se } from "./Spinner-BcBoT-J5.js";
8
8
  import { X as Fe } from "lucide-react";
9
- import { u as X } from "./LevoProvider-BAZy7_tP.js";
9
+ import { useLevo as X } from "./providers/index.js";
10
10
  import { Snowflake as Ee } from "@theinternetfolks/snowflake";
11
11
  import Pe from "google-libphonenumber";
12
12
  import re from "validator";
@@ -915,26 +915,26 @@ const dt = E.lazy(
915
915
  }
916
916
  );
917
917
  }, pt = v(
918
- () => import("./MultiTextWidget-BluGgZVP.js")
919
- ), ie = v(() => import("./TextWidget-Di_db2UE.js")), xt = v(
920
- () => import("./CurrencyWidget-CW3cMoYn.js")
918
+ () => import("./MultiTextWidget-Dic46WBU.js")
919
+ ), ie = v(() => import("./TextWidget-aNB-0vc-.js")), xt = v(
920
+ () => import("./CurrencyWidget-D_q2AYWu.js")
921
921
  ), ht = v(
922
- () => import("./CheckboxWidget-Dedx-7Wy.js")
922
+ () => import("./CheckboxWidget-BrVNbP0R.js")
923
923
  ), ce = v(
924
- () => import("./DateTimeWidget-eKbj2Q86.js")
924
+ () => import("./DateTimeWidget-CsuCisSs.js")
925
925
  ), de = v(
926
- () => import("./DropdownWidget-DJ6rBFE0.js")
927
- ), yt = v(() => import("./EmailWidget-Bx3LTBSb.js")), ft = v(
928
- () => import("./GeocoderWidget-C_8wJijA.js")
926
+ () => import("./DropdownWidget-CsTQ0Ojo.js")
927
+ ), yt = v(() => import("./EmailWidget-Did2OUyB.js")), ft = v(
928
+ () => import("./GeocoderWidget-CyzcaWxa.js")
929
929
  ), jt = v(
930
- () => import("./MultiGeocoderWidget-0uUFNNoH.js")
931
- ), bt = v(() => import("./PhoneWidget-Mm6DmCsK.js")), vt = v(() => import("./RadioWidget-BkYAbg4o.js")), Ct = v(
932
- () => import("./RichTextWidget-CbyT-y1E.js")
933
- ), wt = v(() => import("./SwitchWidget-DeCIh2Vm.js")), kt = v(
934
- () => import("./TextareaWidget-CZqLQQAK.js")
930
+ () => import("./MultiGeocoderWidget-DgwiZ330.js")
931
+ ), bt = v(() => import("./PhoneWidget-DKH-Wzgz.js")), vt = v(() => import("./RadioWidget-CTgWKCg2.js")), Ct = v(
932
+ () => import("./RichTextWidget-C30H7mVF.js")
933
+ ), wt = v(() => import("./SwitchWidget-BS-rmHiq.js")), kt = v(
934
+ () => import("./TextareaWidget-CEH-97Oj.js")
935
935
  ), Wt = v(
936
- () => import("./ToggleCheckboxWidget-Dynr-C0Y.js")
937
- ), _t = v(() => import("./URLWidget-BvQvn0aZ.js")), K = v(() => import("./UploadWidget-mRgEWRVS.js")), Nt = ({
936
+ () => import("./ToggleCheckboxWidget-C0buyS29.js")
937
+ ), _t = v(() => import("./URLWidget-DrZlRAD7.js")), K = v(() => import("./UploadWidget-Bw7urh-7.js")), Nt = ({
938
938
  field: e,
939
939
  isInternal: n
940
940
  }) => {
@@ -1103,9 +1103,9 @@ const dt = E.lazy(
1103
1103
  e
1104
1104
  ] });
1105
1105
  }, ns = () => E.useContext(Ce), Tt = E.lazy(
1106
- () => import("./DefaultFormVariant-DGecA_SF.js")
1106
+ () => import("./DefaultFormVariant-rv38sBOZ.js")
1107
1107
  ), Mt = E.lazy(
1108
- () => import("./StepsFormVariant-Bk_rc3R7.js")
1108
+ () => import("./StepsFormVariant-myT97AwJ.js")
1109
1109
  ), It = ({
1110
1110
  formVariant: e,
1111
1111
  ...n
@@ -2,7 +2,7 @@ import { j as t } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useController as j } from "react-hook-form";
3
3
  import { NumericFormat as F } from "react-number-format";
4
4
  import { c as w } from "./cn-C9QoOYNG.js";
5
- import { z as C, A as B, B as N } from "./CollectionFormBuilder-BPzVyGLq.js";
5
+ import { z as C, A as B, B as N } from "./CollectionFormBuilder-CkD8uVKZ.js";
6
6
  const V = ({
7
7
  field: r,
8
8
  ...m
@@ -4,7 +4,7 @@ import { Calendar as w, X as N } from "lucide-react";
4
4
  import * as l from "react-datepicker";
5
5
  import { useController as v } from "react-hook-form";
6
6
  import { c as p } from "./cn-C9QoOYNG.js";
7
- import { z as M, A as D, B as C } from "./CollectionFormBuilder-BPzVyGLq.js";
7
+ import { z as M, A as D, B as C } from "./CollectionFormBuilder-CkD8uVKZ.js";
8
8
  import { I as F } from "./Input-Vv7mKQFt.js";
9
9
  const T = l.default.default || l.default || l, I = (e) => {
10
10
  if (e) {
@@ -1,8 +1,8 @@
1
1
  import { j as e } from "./jsx-runtime-B6kdoens.js";
2
2
  import { FormProvider as y } from "react-hook-form";
3
3
  import { c as t } from "./cn-C9QoOYNG.js";
4
- import { D as F, F as N } from "./CollectionFormBuilder-BPzVyGLq.js";
5
- import { u as g, S as w, F as b } from "./FormCaptcha-BVawlT6h.js";
4
+ import { D as F, F as N } from "./CollectionFormBuilder-CkD8uVKZ.js";
5
+ import { u as g, S as w, F as b } from "./FormCaptcha-C_DxR2za.js";
6
6
  import { B as D } from "./Spinner-BcBoT-J5.js";
7
7
  const _ = () => {
8
8
  var n;
@@ -4,7 +4,7 @@ import { useState as f, useEffect as w } from "react";
4
4
  import { useController as R } from "react-hook-form";
5
5
  import B from "react-select";
6
6
  import { c as y } from "./cn-C9QoOYNG.js";
7
- import { z as D, A as N, B as q } from "./CollectionFormBuilder-BPzVyGLq.js";
7
+ import { z as D, A as N, B as q } from "./CollectionFormBuilder-CkD8uVKZ.js";
8
8
  import { I as L } from "./Input-Vv7mKQFt.js";
9
9
  const G = ({
10
10
  field: s,
@@ -1,7 +1,7 @@
1
1
  import { j as r } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useController as y } from "react-hook-form";
3
3
  import { G as C } from "./Spinner-BcBoT-J5.js";
4
- import { z as F, A as I, B as V } from "./CollectionFormBuilder-BPzVyGLq.js";
4
+ import { z as F, A as I, B as V } from "./CollectionFormBuilder-CkD8uVKZ.js";
5
5
  import { I as b } from "./Input-Vv7mKQFt.js";
6
6
  function w(e) {
7
7
  return C({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 18.75v-14C0 3.784.784 3 1.75 3ZM1.5 7.412V18.75c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V7.412l-9.52 6.433c-.592.4-1.368.4-1.96 0Zm0-2.662v.852l10.36 7a.25.25 0 0 0 .28 0l10.36-7V4.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z" }, child: [] }] })(e);
@@ -2,8 +2,8 @@
2
2
  import { useEffect as k, useState as b, useRef as J } from "react";
3
3
  import { useFormContext as W, useWatch as Y, useForm as B, useController as G } from "react-hook-form";
4
4
  import { useDebouncedCallback as H } from "use-debounce";
5
- import { u as x } from "./LevoProvider-BAZy7_tP.js";
6
- import { D as C, s as z, h as Q, c as X, A as Z } from "./CollectionFormBuilder-BPzVyGLq.js";
5
+ import { useLevo as x } from "./providers/index.js";
6
+ import { D as C, s as z, h as Q, c as X, A as Z } from "./CollectionFormBuilder-CkD8uVKZ.js";
7
7
  import { s as m } from "./Sonner-t6JVKA0a.js";
8
8
  import { e as D } from "./errorHandler-_34Yv8wA.js";
9
9
  import { a as h } from "./isEmptyObject-C5s4GzLE.js";
@@ -3,19 +3,19 @@ import { j as o } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useState as p, useEffect as v } from "react";
4
4
  import { useController as k } from "react-hook-form";
5
5
  import { o as z } from "./Spinner-BcBoT-J5.js";
6
- import { z as T, A as q, B as A } from "./CollectionFormBuilder-BPzVyGLq.js";
6
+ import { z as T, A as q, B as A } from "./CollectionFormBuilder-CkD8uVKZ.js";
7
7
  import { I as E } from "./Input-Vv7mKQFt.js";
8
- import { u as O } from "./LevoProvider-BAZy7_tP.js";
8
+ import { useLevo as O } from "./providers/index.js";
9
9
  const $ = ({ field: t }) => {
10
10
  var _;
11
- const [c, h] = p(""), [m, u] = p(!1), [l, N] = p([]), [g, i] = p(!1), { client: a } = O(), { key: d = "", label: f = "", helper_text: w = "", readonly: j = !1 } = t, {
11
+ const [c, h] = p(""), [m, d] = p(!1), [l, N] = p([]), [g, i] = p(!1), { client: a } = O(), { key: u = "", label: f = "", helper_text: w = "", readonly: j = !1 } = t, {
12
12
  field: { value: s, onBlur: F, onChange: y, ...L },
13
13
  fieldState: x
14
14
  } = k({
15
- name: d,
15
+ name: u,
16
16
  rules: T(t)
17
17
  }), B = !!(t != null && t.required), C = (_ = x == null ? void 0 : x.error) == null ? void 0 : _.message, I = (e) => {
18
- i(!0), u(!0), a == null || a.fetch.url(`/v1/bevy/content/location/${e == null ? void 0 : e.place_id}/get-location-details`).get().json().then((n) => {
18
+ i(!0), d(!0), a == null || a.fetch.url(`/v1/bevy/content/location/${e == null ? void 0 : e.place_id}/get-location-details`).get().json().then((n) => {
19
19
  var r;
20
20
  y && y((r = n == null ? void 0 : n.content) == null ? void 0 : r.data);
21
21
  }).finally(() => i(!1));
@@ -32,16 +32,16 @@ const $ = ({ field: t }) => {
32
32
  N((b = r == null ? void 0 : r.content) == null ? void 0 : b.data);
33
33
  }).finally(() => i(!1)));
34
34
  }, [c, m]), v(() => {
35
- s != null && s.place_name && (h(s == null ? void 0 : s.place_name), u(!0));
35
+ s != null && s.place_name && (h(s == null ? void 0 : s.place_name), d(!0));
36
36
  }, [s]), /* @__PURE__ */ o.jsx(q, { error: C, helperText: w, readOnly: j, children: /* @__PURE__ */ o.jsxs("div", { className: "relative w-full", children: [
37
- f && /* @__PURE__ */ o.jsx(A, { htmlFor: d, isRequired: B, children: f }),
37
+ f && /* @__PURE__ */ o.jsx(A, { htmlFor: u, isRequired: B, children: f }),
38
38
  /* @__PURE__ */ o.jsx(
39
39
  E,
40
40
  {
41
- id: d,
41
+ id: u,
42
42
  value: c,
43
43
  onChange: (e) => {
44
- u(!1), h(e.target.value);
44
+ d(!1), h(e.target.value);
45
45
  },
46
46
  onBlur: () => {
47
47
  F();
@@ -2,8 +2,8 @@
2
2
  import { j as e } from "./jsx-runtime-B6kdoens.js";
3
3
  import { Plus as m } from "lucide-react";
4
4
  import { useFieldArray as n } from "react-hook-form";
5
- import { B as c } from "./CollectionFormBuilder-BPzVyGLq.js";
6
- import { GeocoderWidget as d } from "./GeocoderWidget-C_8wJijA.js";
5
+ import { B as c } from "./CollectionFormBuilder-CkD8uVKZ.js";
6
+ import { GeocoderWidget as d } from "./GeocoderWidget-CyzcaWxa.js";
7
7
  import { B as p } from "./Spinner-BcBoT-J5.js";
8
8
  const k = ({
9
9
  field: l
@@ -1,6 +1,6 @@
1
1
  import { j as a } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useController as A } from "react-hook-form";
3
- import { z as C, A as b, B as q } from "./CollectionFormBuilder-BPzVyGLq.js";
3
+ import { z as C, A as b, B as q } from "./CollectionFormBuilder-CkD8uVKZ.js";
4
4
  import { I } from "./Input-Vv7mKQFt.js";
5
5
  const f = ({ field: r }) => {
6
6
  var l;
@@ -3,7 +3,7 @@ import { j as t } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useController as f } from "react-hook-form";
4
4
  import { PhoneInput as x } from "react-international-phone";
5
5
  import { c as l } from "./cn-C9QoOYNG.js";
6
- import { z as g, A as v, B as y } from "./CollectionFormBuilder-BPzVyGLq.js";
6
+ import { z as g, A as v, B as y } from "./CollectionFormBuilder-CkD8uVKZ.js";
7
7
  const P = ({ field: e }) => {
8
8
  const { key: u = "", label: o = "", helper_text: c = "", readonly: n = !1 } = e, s = u, {
9
9
  field: { value: d, onBlur: a, onChange: i, ...m },
@@ -5,7 +5,7 @@ import * as d from "react";
5
5
  import { useController as F } from "react-hook-form";
6
6
  import { G as B } from "./Spinner-BcBoT-J5.js";
7
7
  import { c as N } from "./cn-C9QoOYNG.js";
8
- import { z as E, A as G, B as f } from "./CollectionFormBuilder-BPzVyGLq.js";
8
+ import { z as E, A as G, B as f } from "./CollectionFormBuilder-CkD8uVKZ.js";
9
9
  import { I as V } from "./Input-Vv7mKQFt.js";
10
10
  function q(s) {
11
11
  return B({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M416 128 192 384l-96-96" }, child: [] }] })(s);
@@ -19,7 +19,7 @@ import { useState as q, useEffect as D } from "react";
19
19
  import { useController as G } from "react-hook-form";
20
20
  import { G as p, p as J, q as V, r as W, s as Z, t as _, u as P, v as K, w as Q, x as X, y as Y, z as $, A as nn } from "./Spinner-BcBoT-J5.js";
21
21
  import { c as j } from "./cn-C9QoOYNG.js";
22
- import { z as ln, A as en, B as sn } from "./CollectionFormBuilder-BPzVyGLq.js";
22
+ import { z as ln, A as en, B as sn } from "./CollectionFormBuilder-CkD8uVKZ.js";
23
23
  function an(n) {
24
24
  return p({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 0 0-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z" }, child: [] }] })(n);
25
25
  }
@@ -3,8 +3,8 @@ import { j as t } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useState as I, useMemo as y } from "react";
4
4
  import { FormProvider as T } from "react-hook-form";
5
5
  import { c as F } from "./cn-C9QoOYNG.js";
6
- import { D as N, F as _ } from "./CollectionFormBuilder-BPzVyGLq.js";
7
- import { u as C, S as H, F as M } from "./FormCaptcha-BVawlT6h.js";
6
+ import { D as N, F as _ } from "./CollectionFormBuilder-CkD8uVKZ.js";
7
+ import { u as C, S as H, F as M } from "./FormCaptcha-C_DxR2za.js";
8
8
  import { B as g } from "./Spinner-BcBoT-J5.js";
9
9
  const Y = () => {
10
10
  const [n, a] = I(0), { containerStyles: m } = N(), l = () => {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as r } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useController as k } from "react-hook-form";
4
- import { z as w, A as j, B as v } from "./CollectionFormBuilder-BPzVyGLq.js";
4
+ import { z as w, A as j, B as v } from "./CollectionFormBuilder-CkD8uVKZ.js";
5
5
  import * as c from "@radix-ui/react-switch";
6
6
  import * as y from "react";
7
7
  import { c as d } from "./cn-C9QoOYNG.js";
@@ -1,7 +1,7 @@
1
1
  import { j as t } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useFormContext as g, get as h } from "react-hook-form";
3
3
  import { c as j } from "./cn-C9QoOYNG.js";
4
- import { A as F, B as b, z as y } from "./CollectionFormBuilder-BPzVyGLq.js";
4
+ import { A as F, B as b, z as y } from "./CollectionFormBuilder-CkD8uVKZ.js";
5
5
  import { I as f } from "./Input-Vv7mKQFt.js";
6
6
  const k = ({
7
7
  field: r,
@@ -1,7 +1,7 @@
1
1
  import { j as s } from "./jsx-runtime-B6kdoens.js";
2
2
  import { useFormContext as u, get as x } from "react-hook-form";
3
3
  import { c as b } from "./cn-C9QoOYNG.js";
4
- import { A as g, B as f, z as h } from "./CollectionFormBuilder-BPzVyGLq.js";
4
+ import { A as g, B as f, z as h } from "./CollectionFormBuilder-CkD8uVKZ.js";
5
5
  const w = ({ field: e }) => {
6
6
  var a;
7
7
  const {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as r } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useController as p } from "react-hook-form";
4
- import { z as u, A as g, B as C } from "./CollectionFormBuilder-BPzVyGLq.js";
4
+ import { z as u, A as g, B as C } from "./CollectionFormBuilder-CkD8uVKZ.js";
5
5
  import { C as f } from "./Checbox-sq-atGlJ.js";
6
6
  const y = ({
7
7
  field: e
@@ -1,6 +1,6 @@
1
1
  import { j as e } from "./jsx-runtime-B6kdoens.js";
2
- import { H as s } from "./CollectionFormBuilder-BPzVyGLq.js";
3
- import r from "./TextWidget-Di_db2UE.js";
2
+ import { H as s } from "./CollectionFormBuilder-CkD8uVKZ.js";
3
+ import r from "./TextWidget-aNB-0vc-.js";
4
4
  const a = (t) => /* @__PURE__ */ e.jsx(
5
5
  r,
6
6
  {
@@ -5,8 +5,8 @@ import { Upload as Z, X as at, ExternalLink as et } from "lucide-react";
5
5
  import { useState as B, useMemo as D, useRef as st, useEffect as R } from "react";
6
6
  import { useController as ot } from "react-hook-form";
7
7
  import { G as q, S as W, B as F, k as nt, T as ct, l as lt, m as V, n as H } from "./Spinner-BcBoT-J5.js";
8
- import { t as it, g as dt, z as xt, w as J, A as ut, B as mt } from "./CollectionFormBuilder-BPzVyGLq.js";
9
- import { u as G } from "./LevoProvider-BAZy7_tP.js";
8
+ import { t as it, g as dt, z as xt, w as J, A as ut, B as mt } from "./CollectionFormBuilder-CkD8uVKZ.js";
9
+ import { useLevo as G } from "./providers/index.js";
10
10
  import { e as k } from "./errorHandler-_34Yv8wA.js";
11
11
  import { I as Q } from "./Input-Vv7mKQFt.js";
12
12
  import { c as I } from "./cn-C9QoOYNG.js";
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../src/audience/components/page.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAUlE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,WAAW,CAAC,EAAE,UAAU,CAAC;QACzB,aAAa,CAAC,EAAE,YAAY,CAAC;KAC9B;CACF;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC;CACvC,CA8KA,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../src/audience/components/page.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAYlE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,WAAW,CAAC,EAAE,UAAU,CAAC;QACzB,aAAa,CAAC,EAAE,YAAY,CAAC;KAC9B;CACF;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC;CACvC,CAwNA,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const useDownloadSpeed: (testUrl?: string) => number | null;
2
+ export default useDownloadSpeed;
3
+ //# sourceMappingURL=useDownloadSpeed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDownloadSpeed.d.ts","sourceRoot":"","sources":["../../../src/audience/hooks/useDownloadSpeed.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,gBAAgB,aACX,MAAM,kBA4DhB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,9 +1,15 @@
1
+ type NullableNumber = number | null;
1
2
  type PerformanceMetrics = {
2
- page_loaded_at: number;
3
- script_load: number;
4
- first_contentful_paint: number | null;
5
- window_onload: number | null;
3
+ page_loaded_at: NullableNumber;
4
+ script_load: NullableNumber;
5
+ script_load_at: NullableNumber;
6
+ first_contentful_paint: NullableNumber;
7
+ first_contentful_paint_at: NullableNumber;
8
+ interactive: NullableNumber;
9
+ interactive_at: NullableNumber;
10
+ window_onload: NullableNumber;
11
+ window_onload_at: NullableNumber;
6
12
  };
7
- declare const usePerformanceMetrics: (href: string) => PerformanceMetrics | null;
13
+ declare const usePerformanceMetrics: (_: string) => PerformanceMetrics | null;
8
14
  export default usePerformanceMetrics;
9
15
  //# sourceMappingURL=usePerformanceMetrics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePerformanceMetrics.d.ts","sourceRoot":"","sources":["../../../src/audience/hooks/usePerformanceMetrics.tsx"],"names":[],"mappings":"AAIA,KAAK,kBAAkB,GAAG;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,qBAAqB,SAAU,MAAM,KAAG,kBAAkB,GAAG,IA4DlE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"usePerformanceMetrics.d.ts","sourceRoot":"","sources":["../../../src/audience/hooks/usePerformanceMetrics.tsx"],"names":[],"mappings":"AAIA,KAAK,cAAc,GAAG,MAAM,GAAG,IAAI,CAAC;AAEpC,KAAK,kBAAkB,GAAG;IACxB,cAAc,EAAE,cAAc,CAAC;IAC/B,WAAW,EAAE,cAAc,CAAC;IAC5B,cAAc,EAAE,cAAc,CAAC;IAC/B,sBAAsB,EAAE,cAAc,CAAC;IACvC,yBAAyB,EAAE,cAAc,CAAC;IAC1C,WAAW,EAAE,cAAc,CAAC;IAC5B,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;IAC9B,gBAAgB,EAAE,cAAc,CAAC;CAClC,CAAC;AAIF,QAAA,MAAM,qBAAqB,MAAO,MAAM,KAAG,kBAAkB,GAAG,IA2F/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A custom React hook to track scroll behavior, speed, and pattern.
3
+ * @returns {object} { depth, speedCategory }
4
+ */
5
+ export declare const useScrollBehavior: () => {
6
+ depth: number;
7
+ speedCategory: string;
8
+ };
9
+ //# sourceMappingURL=useScrollBehavior.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollBehavior.d.ts","sourceRoot":"","sources":["../../../src/audience/hooks/useScrollBehavior.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;CA4C7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const useTextSelection: () => void;
2
+ export default useTextSelection;
3
+ //# sourceMappingURL=useTextSelection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTextSelection.d.ts","sourceRoot":"","sources":["../../../src/audience/hooks/useTextSelection.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,gBAAgB,YA2BrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { L as e, a, b as n } from "../page-BjcgPmsH.js";
1
+ import { L as e, a, b as n } from "../page-BaAkHGtG.js";
2
2
  export {
3
3
  e as LevoInsightsBlock,
4
4
  a as LevoInsightsComponent,
@@ -1 +1 @@
1
- {"version":3,"file":"autocapture.d.ts","sourceRoot":"","sources":["../../../src/audience/utils/autocapture.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,UAAU,OACjB,OAAO,GAAG,SAAS,GAAG,IAAI,KAC7B,EAAE,IAAI,WAER,CAAC;AA2DF,eAAO,MAAM,YAAY,MACpB,MAAM,GAAG,IAAI,GAAG,SAAS,sBAE3B,MAiBF,CAAC;AAWF,eAAO,MAAM,WAAW,OAAQ,OAAO,KAAG,MAiBzC,CAAC;AAEF,eAAO,MAAM,cAAc,MAAO,KAAK,KAAG,OAAO,GAAG,IASnD,CAAC;AAYF,eAAO,MAAM,qBAAqB,OAAQ,OAAO,SAAS,KAAK,KAAG,OA2BjE,CAAC;AAoFF,eAAO,MAAM,kBAAkB,UACtB,MAAM,8BAEZ,OAuBF,CAAC;AASF,eAAO,MAAM,kBAAkB,kBAAmB,MAAM,KAAG,OAQ1D,CAAC;AASF,eAAO,MAAM,0BAA0B,WAAY,OAAO,KAAG,MAI5D,CAAC;AA6BF,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC;AAC3B,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAIlD,eAAO,MAAM,aAAa,YAAa,OAAO,KAAG,UAsFhD,CAAC;AAEF,eAAO,MAAM,sBAAsB,MAAO,KAAK,aAAa,MAAM,sBA2BjE,CAAC"}
1
+ {"version":3,"file":"autocapture.d.ts","sourceRoot":"","sources":["../../../src/audience/utils/autocapture.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,UAAU,OACjB,OAAO,GAAG,SAAS,GAAG,IAAI,KAC7B,EAAE,IAAI,WAER,CAAC;AA2DF,eAAO,MAAM,YAAY,MACpB,MAAM,GAAG,IAAI,GAAG,SAAS,sBAE3B,MAiBF,CAAC;AAWF,eAAO,MAAM,WAAW,OAAQ,OAAO,KAAG,MAiBzC,CAAC;AAEF,eAAO,MAAM,cAAc,MAAO,KAAK,KAAG,OAAO,GAAG,IASnD,CAAC;AAYF,eAAO,MAAM,qBAAqB,OAAQ,OAAO,SAAS,KAAK,KAAG,OA2BjE,CAAC;AAoFF,eAAO,MAAM,kBAAkB,UACtB,MAAM,8BAEZ,OAuBF,CAAC;AASF,eAAO,MAAM,kBAAkB,kBAAmB,MAAM,KAAG,OAQ1D,CAAC;AASF,eAAO,MAAM,0BAA0B,WAAY,OAAO,KAAG,MAI5D,CAAC;AA6BF,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC;AAC3B,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAIlD,eAAO,MAAM,aAAa,YAAa,OAAO,KAAG,UAwFhD,CAAC;AAEF,eAAO,MAAM,sBAAsB,MAAO,KAAK,aAAa,MAAM,sBA4BjE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { C as s, F as r, e as t, b as i, c as l, f as o, g as d, d as m, i as u, a as n, p as f, h as F, s as g, u as p, v as V } from "../CollectionFormBuilder-BPzVyGLq.js";
1
+ import { C as s, F as r, e as t, b as i, c as l, f as o, g as d, d as m, i as u, a as n, p as f, h as F, s as g, u as p, v as V } from "../CollectionFormBuilder-CkD8uVKZ.js";
2
2
  import { default as h } from "validatorjs";
3
3
  export {
4
4
  s as CollectionFormBuilder,