@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.
- package/dist/{CheckboxWidget-Dedx-7Wy.js → CheckboxWidget-BrVNbP0R.js} +1 -1
- package/dist/{CollectionFormBuilder-BPzVyGLq.js → CollectionFormBuilder-CkD8uVKZ.js} +18 -18
- package/dist/{CurrencyWidget-CW3cMoYn.js → CurrencyWidget-D_q2AYWu.js} +1 -1
- package/dist/{DateTimeWidget-eKbj2Q86.js → DateTimeWidget-CsuCisSs.js} +1 -1
- package/dist/{DefaultFormVariant-DGecA_SF.js → DefaultFormVariant-rv38sBOZ.js} +2 -2
- package/dist/{DropdownWidget-DJ6rBFE0.js → DropdownWidget-CsTQ0Ojo.js} +1 -1
- package/dist/{EmailWidget-Bx3LTBSb.js → EmailWidget-Did2OUyB.js} +1 -1
- package/dist/{FormCaptcha-BVawlT6h.js → FormCaptcha-C_DxR2za.js} +2 -2
- package/dist/{GeocoderWidget-C_8wJijA.js → GeocoderWidget-CyzcaWxa.js} +9 -9
- package/dist/{MultiGeocoderWidget-0uUFNNoH.js → MultiGeocoderWidget-DgwiZ330.js} +2 -2
- package/dist/{MultiTextWidget-BluGgZVP.js → MultiTextWidget-Dic46WBU.js} +1 -1
- package/dist/{PhoneWidget-Mm6DmCsK.js → PhoneWidget-DKH-Wzgz.js} +1 -1
- package/dist/{RadioWidget-BkYAbg4o.js → RadioWidget-CTgWKCg2.js} +1 -1
- package/dist/{RichTextWidget-CbyT-y1E.js → RichTextWidget-C30H7mVF.js} +1 -1
- package/dist/{StepsFormVariant-Bk_rc3R7.js → StepsFormVariant-myT97AwJ.js} +2 -2
- package/dist/{SwitchWidget-DeCIh2Vm.js → SwitchWidget-BS-rmHiq.js} +1 -1
- package/dist/{TextWidget-Di_db2UE.js → TextWidget-aNB-0vc-.js} +1 -1
- package/dist/{TextareaWidget-CZqLQQAK.js → TextareaWidget-CEH-97Oj.js} +1 -1
- package/dist/{ToggleCheckboxWidget-Dynr-C0Y.js → ToggleCheckboxWidget-C0buyS29.js} +1 -1
- package/dist/{URLWidget-BvQvn0aZ.js → URLWidget-DrZlRAD7.js} +2 -2
- package/dist/{UploadWidget-mRgEWRVS.js → UploadWidget-Bw7urh-7.js} +2 -2
- package/dist/audience/components/page.d.ts.map +1 -1
- package/dist/audience/hooks/useDownloadSpeed.d.ts +3 -0
- package/dist/audience/hooks/useDownloadSpeed.d.ts.map +1 -0
- package/dist/audience/hooks/usePerformanceMetrics.d.ts +11 -5
- package/dist/audience/hooks/usePerformanceMetrics.d.ts.map +1 -1
- package/dist/audience/hooks/useScrollBehavior.d.ts +9 -0
- package/dist/audience/hooks/useScrollBehavior.d.ts.map +1 -0
- package/dist/audience/hooks/useTextSelection.d.ts +3 -0
- package/dist/audience/hooks/useTextSelection.d.ts.map +1 -0
- package/dist/audience/index.js +1 -1
- package/dist/audience/utils/autocapture.d.ts.map +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +9 -9
- package/dist/membership/index.js +1 -1
- package/dist/page-BaAkHGtG.js +562 -0
- package/dist/providers/LevoProvider.d.ts.map +1 -1
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.js +169 -0
- package/package.json +8 -4
- package/dist/LevoProvider-BAZy7_tP.js +0 -223
- package/dist/audience/hooks/useScrollDepth.d.ts +0 -6
- package/dist/audience/hooks/useScrollDepth.d.ts.map +0 -1
- 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-
|
|
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 {
|
|
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-
|
|
919
|
-
), ie = v(() => import("./TextWidget-
|
|
920
|
-
() => import("./CurrencyWidget-
|
|
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-
|
|
922
|
+
() => import("./CheckboxWidget-BrVNbP0R.js")
|
|
923
923
|
), ce = v(
|
|
924
|
-
() => import("./DateTimeWidget-
|
|
924
|
+
() => import("./DateTimeWidget-CsuCisSs.js")
|
|
925
925
|
), de = v(
|
|
926
|
-
() => import("./DropdownWidget-
|
|
927
|
-
), yt = v(() => import("./EmailWidget-
|
|
928
|
-
() => import("./GeocoderWidget-
|
|
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-
|
|
931
|
-
), bt = v(() => import("./PhoneWidget-
|
|
932
|
-
() => import("./RichTextWidget-
|
|
933
|
-
), wt = v(() => import("./SwitchWidget-
|
|
934
|
-
() => import("./TextareaWidget-
|
|
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-
|
|
937
|
-
), _t = v(() => import("./URLWidget-
|
|
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-
|
|
1106
|
+
() => import("./DefaultFormVariant-rv38sBOZ.js")
|
|
1107
1107
|
), Mt = E.lazy(
|
|
1108
|
-
() => import("./StepsFormVariant-
|
|
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-
|
|
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-
|
|
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-
|
|
5
|
-
import { u as g, S as w, F as b } from "./FormCaptcha-
|
|
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-
|
|
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-
|
|
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 {
|
|
6
|
-
import { D as C, s as z, h as Q, c as X, A as Z } from "./CollectionFormBuilder-
|
|
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-
|
|
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 {
|
|
8
|
+
import { useLevo as O } from "./providers/index.js";
|
|
9
9
|
const $ = ({ field: t }) => {
|
|
10
10
|
var _;
|
|
11
|
-
const [c, h] = p(""), [m,
|
|
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:
|
|
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),
|
|
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),
|
|
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:
|
|
37
|
+
f && /* @__PURE__ */ o.jsx(A, { htmlFor: u, isRequired: B, children: f }),
|
|
38
38
|
/* @__PURE__ */ o.jsx(
|
|
39
39
|
E,
|
|
40
40
|
{
|
|
41
|
-
id:
|
|
41
|
+
id: u,
|
|
42
42
|
value: c,
|
|
43
43
|
onChange: (e) => {
|
|
44
|
-
|
|
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-
|
|
6
|
-
import { GeocoderWidget as d } from "./GeocoderWidget-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
7
|
-
import { u as C, S as H, F as M } from "./FormCaptcha-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
-
import r from "./TextWidget-
|
|
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-
|
|
9
|
-
import {
|
|
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;
|
|
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 @@
|
|
|
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:
|
|
3
|
-
script_load:
|
|
4
|
-
|
|
5
|
-
|
|
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: (
|
|
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,
|
|
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 @@
|
|
|
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"}
|
package/dist/audience/index.js
CHANGED
|
@@ -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,
|
|
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"}
|
package/dist/collection/index.js
CHANGED
|
@@ -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-
|
|
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,
|