@levo-so/react 0.1.17 → 0.1.21
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-CZWSPzDj.js → CheckboxWidget-C4hO5xNP.js} +1 -1
- package/dist/{CollectionFormBuilder-nZcXob6G.js → CollectionFormBuilder-nJWTPHeL.js} +161 -165
- package/dist/{CurrencyWidget-CvosXYBi.js → CurrencyWidget-CZC10BuG.js} +1 -1
- package/dist/{DateTimeWidget-CE0EPFkl.js → DateTimeWidget-C7PJ3I0X.js} +1 -1
- package/dist/{DefaultFormVariant-DiaIcOyu.js → DefaultFormVariant-CMwBglKk.js} +3 -3
- package/dist/{DropdownWidget-BquZdGIL.js → DropdownWidget-6t1Azs7b.js} +1 -1
- package/dist/{EmailWidget-KnkQjB4I.js → EmailWidget-pAm9hnZ9.js} +2 -2
- package/dist/FormCaptcha-D2AaDZdK.js +187 -0
- package/dist/{GeocoderWidget-DNkRmCVB.js → GeocoderWidget-TZBlYaeC.js} +2 -2
- package/dist/{MultiGeocoderWidget-D2Vh9SuR.js → MultiGeocoderWidget-B-zhvJVk.js} +3 -3
- package/dist/{MultiTextWidget-Ktmx0-ou.js → MultiTextWidget-Ciy7yoNk.js} +1 -1
- package/dist/{PhoneWidget-2JMw1hQ-.js → PhoneWidget-C_JKm3Kf.js} +1 -1
- package/dist/{RadioWidget-CsMqjCtP.js → RadioWidget-CXHvRIFJ.js} +2 -2
- package/dist/{RichTextWidget-CesaOZze.js → RichTextWidget-B8_J6aM2.js} +2 -2
- package/dist/{Spinner-Bzu2xCFZ.js → Spinner-BnrQ9e_i.js} +58 -57
- package/dist/{StepsFormVariant-FXwgPUG0.js → StepsFormVariant-gZTiDsQs.js} +3 -3
- package/dist/{SwitchWidget-W7FLoMLu.js → SwitchWidget-1ca0o1kt.js} +1 -1
- package/dist/{TextWidget-B6Y4Jjld.js → TextWidget-BttCChJt.js} +1 -1
- package/dist/{TextareaWidget-TszSrgEj.js → TextareaWidget-DsWOpkGn.js} +1 -1
- package/dist/{ToggleCheckboxWidget-sJoiRMME.js → ToggleCheckboxWidget-yJcUcHpk.js} +1 -1
- package/dist/{URLWidget-BjFx8Uf7.js → URLWidget-DPTwLvbi.js} +2 -2
- package/dist/{UploadWidget-Dzop6rEv.js → UploadWidget-Cg6EJDMD.js} +2 -2
- package/dist/audience/components/page.d.ts.map +1 -1
- package/dist/audience/index.js +1 -1
- package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2M.d.ts.map +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/lib/SaveDraftValues.d.ts.map +1 -1
- package/dist/components/Dialog.d.ts +3 -1
- package/dist/components/Dialog.d.ts.map +1 -1
- package/dist/components/Sonner.d.ts +1 -1
- package/dist/components/Sonner.d.ts.map +1 -1
- package/dist/components/index.js +29 -28
- package/dist/index.js +50 -49
- package/dist/membership/components/Popup.d.ts.map +1 -1
- package/dist/page-sR2SWtb2.js +189 -0
- package/package.json +4 -4
- package/dist/FormCaptcha-DNPGf2xY.js +0 -197
- package/dist/page-BKyDlf0z.js +0 -212
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../src/audience/components/page.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAMnD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC;CACvC,
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../src/audience/components/page.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAMnD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC;CACvC,CA4FA,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/dist/audience/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionWidgetM2M.d.ts","sourceRoot":"","sources":["../../../../../src/collection/components/widgets/collectionWidget/CollectionWidgetM2M.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA2BhD,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"CollectionWidgetM2M.d.ts","sourceRoot":"","sources":["../../../../../src/collection/components/widgets/collectionWidget/CollectionWidgetM2M.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA2BhD,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAmKnE,CAAC;AAEF,eAAe,mBAAmB,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-nJWTPHeL.js";
|
|
2
2
|
import { default as h } from "validatorjs";
|
|
3
3
|
export {
|
|
4
4
|
s as CollectionFormBuilder,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveDraftValues.d.ts","sourceRoot":"","sources":["../../../src/collection/lib/SaveDraftValues.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SaveDraftValues.d.ts","sourceRoot":"","sources":["../../../src/collection/lib/SaveDraftValues.tsx"],"names":[],"mappings":"AAmBA,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAmDA,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -3,9 +3,11 @@ import * as React from "react";
|
|
|
3
3
|
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
4
4
|
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
6
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
7
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
8
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
9
|
hideCloseButton?: boolean;
|
|
10
|
+
overlayStyles?: string;
|
|
9
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
10
12
|
declare const DialogHeader: {
|
|
11
13
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,5 +19,5 @@ declare const DialogFooter: {
|
|
|
17
19
|
};
|
|
18
20
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
19
21
|
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
20
|
-
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
22
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, };
|
|
21
23
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,aAAa,8JAYjB,CAAC;AAIH,QAAA,MAAM,aAAa;sBAGG,OAAO;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAYjB,CAAC;AAIH,QAAA,MAAM,aAAa;sBAGG,OAAO;oBACT,MAAM;wCAsBxB,CAAC;AAGH,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAIF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,WAAW,oKAYf,CAAC;AAIH,QAAA,MAAM,iBAAiB,8KASrB,CAAC;AAIH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,WAAW,GACZ,CAAC"}
|
|
@@ -3,5 +3,5 @@ type ToasterProps = React.ComponentProps<typeof Sonner>;
|
|
|
3
3
|
export declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const errorToast: (message: string, title?: string, options?: ExternalToast) => void;
|
|
5
5
|
export declare const successToast: (message: string, title?: string, options?: ExternalToast) => void;
|
|
6
|
-
export { toast };
|
|
6
|
+
export { toast, ExternalToast };
|
|
7
7
|
//# sourceMappingURL=Sonner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sonner.d.ts","sourceRoot":"","sources":["../../src/components/Sonner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEtE,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,eAAO,MAAM,OAAO,iBAAkB,YAAY,4CAkBjD,CAAC;AAEF,eAAO,MAAM,UAAU,YACZ,MAAM,4BAEN,aAAa,SAQvB,CAAC;AAEF,eAAO,MAAM,YAAY,YACd,MAAM,4BAEN,aAAa,SAQvB,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"Sonner.d.ts","sourceRoot":"","sources":["../../src/components/Sonner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEtE,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,eAAO,MAAM,OAAO,iBAAkB,YAAY,4CAkBjD,CAAC;AAEF,eAAO,MAAM,UAAU,YACZ,MAAM,4BAEN,aAAa,SAQvB,CAAC;AAEF,eAAO,MAAM,YAAY,YACd,MAAM,4BAEN,aAAa,SAQvB,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { B as s, D as r,
|
|
2
|
-
import { T as u, e as
|
|
3
|
-
import { S as
|
|
4
|
-
import { toast as
|
|
1
|
+
import { B as s, D as r, j as t, e as i, i as e, g as l, f as T, c as g, a as p, h as n, d as D, k as b, S as m, T as c, n as f, l as d, m as x, b as C } from "../Spinner-BnrQ9e_i.js";
|
|
2
|
+
import { T as u, e as P, s as v } from "../Sonner-t6JVKA0a.js";
|
|
3
|
+
import { S as W, T as h, b as j, d as k, c as y, a as F } from "../Tooltip-DEBnSqlo.js";
|
|
4
|
+
import { toast as L } from "sonner";
|
|
5
5
|
export {
|
|
6
6
|
s as Button,
|
|
7
7
|
r as Dialog,
|
|
8
|
-
t as
|
|
9
|
-
i as
|
|
10
|
-
e as
|
|
11
|
-
l as
|
|
12
|
-
T as
|
|
13
|
-
g as
|
|
14
|
-
p as
|
|
15
|
-
n as
|
|
16
|
-
D as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
m as
|
|
20
|
-
c as
|
|
21
|
-
f as
|
|
22
|
-
d as
|
|
8
|
+
t as DialogClose,
|
|
9
|
+
i as DialogContent,
|
|
10
|
+
e as DialogDescription,
|
|
11
|
+
l as DialogFooter,
|
|
12
|
+
T as DialogHeader,
|
|
13
|
+
g as DialogOverlay,
|
|
14
|
+
p as DialogPortal,
|
|
15
|
+
n as DialogTitle,
|
|
16
|
+
D as DialogTrigger,
|
|
17
|
+
b as DialogWrapper,
|
|
18
|
+
W as SimpleTooltipWrapper,
|
|
19
|
+
m as Spinner,
|
|
20
|
+
c as Tabs,
|
|
21
|
+
f as TabsContent,
|
|
22
|
+
d as TabsList,
|
|
23
|
+
x as TabsTrigger,
|
|
23
24
|
u as Toaster,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
h as Tooltip,
|
|
26
|
+
j as TooltipContent,
|
|
27
|
+
k as TooltipPortal,
|
|
28
|
+
y as TooltipProvider,
|
|
29
|
+
F as TooltipTrigger,
|
|
30
|
+
C as buttonVariants,
|
|
31
|
+
P as errorToast,
|
|
32
|
+
v as successToast,
|
|
33
|
+
L as toast
|
|
33
34
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,58 +1,59 @@
|
|
|
1
1
|
import { L as s, u as o } from "./LevoProvider-BAZy7_tP.js";
|
|
2
|
-
import { L as t, a as r, b as l } from "./page-
|
|
3
|
-
import { C as m, F as p, x as d, y as g, m as T, r as f, j as u, n as c, e as x, b, c as D, f as y, g as F, d as v, k as h, o as L, i as M, a as E, w as P, t as B, p as
|
|
2
|
+
import { L as t, a as r, b as l } from "./page-sR2SWtb2.js";
|
|
3
|
+
import { C as m, F as p, x as d, y as g, m as T, r as f, j as u, n as c, e as x, b, c as D, f as y, g as F, d as v, k as h, o as L, i as M, a as E, w as P, t as B, p as C, h as O, s as V, u as j, v as I, l as S, q as K } from "./CollectionFormBuilder-nJWTPHeL.js";
|
|
4
4
|
import { LevoOAuth as U } from "./membership/index.js";
|
|
5
|
-
import { B as H, D as N,
|
|
6
|
-
import { T as
|
|
7
|
-
import { S as
|
|
8
|
-
import { b as
|
|
9
|
-
import { e as
|
|
10
|
-
import { c as
|
|
11
|
-
import { i as
|
|
12
|
-
import { default as
|
|
13
|
-
import { toast as
|
|
5
|
+
import { B as H, D as N, j as q, e as w, i as z, g as A, f as R, c as G, a as J, h as Q, d as X, k as Y, S as Z, T as _, n as $, l as aa, m as ea, b as sa } from "./Spinner-BnrQ9e_i.js";
|
|
6
|
+
import { T as ia, e as ta, s as ra } from "./Sonner-t6JVKA0a.js";
|
|
7
|
+
import { S as na, T as ma, b as pa, d as da, c as ga, a as Ta } from "./Tooltip-DEBnSqlo.js";
|
|
8
|
+
import { b as ua } from "./byteToSize-BFKZSBu1.js";
|
|
9
|
+
import { e as xa } from "./errorHandler-_34Yv8wA.js";
|
|
10
|
+
import { c as Da } from "./cn-C9QoOYNG.js";
|
|
11
|
+
import { i as Fa, a as va, b as ha, d as La, c as Ma } from "./isEmptyObject-C5s4GzLE.js";
|
|
12
|
+
import { default as Pa } from "validatorjs";
|
|
13
|
+
import { toast as Ca } from "sonner";
|
|
14
14
|
export {
|
|
15
15
|
H as Button,
|
|
16
16
|
m as CollectionFormBuilder,
|
|
17
17
|
N as Dialog,
|
|
18
|
-
q as
|
|
19
|
-
w as
|
|
20
|
-
z as
|
|
21
|
-
A as
|
|
22
|
-
R as
|
|
23
|
-
G as
|
|
24
|
-
J as
|
|
25
|
-
Q as
|
|
26
|
-
X as
|
|
18
|
+
q as DialogClose,
|
|
19
|
+
w as DialogContent,
|
|
20
|
+
z as DialogDescription,
|
|
21
|
+
A as DialogFooter,
|
|
22
|
+
R as DialogHeader,
|
|
23
|
+
G as DialogOverlay,
|
|
24
|
+
J as DialogPortal,
|
|
25
|
+
Q as DialogTitle,
|
|
26
|
+
X as DialogTrigger,
|
|
27
|
+
Y as DialogWrapper,
|
|
27
28
|
p as FieldRenderer,
|
|
28
29
|
t as LevoInsightsBlock,
|
|
29
30
|
r as LevoInsightsComponent,
|
|
30
31
|
l as LevoInsightsPage,
|
|
31
32
|
U as LevoOAuth,
|
|
32
33
|
s as LevoProvider,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
na as SimpleTooltipWrapper,
|
|
35
|
+
Z as Spinner,
|
|
36
|
+
_ as Tabs,
|
|
37
|
+
$ as TabsContent,
|
|
38
|
+
aa as TabsList,
|
|
39
|
+
ea as TabsTrigger,
|
|
40
|
+
ia as Toaster,
|
|
41
|
+
ma as Tooltip,
|
|
42
|
+
pa as TooltipContent,
|
|
43
|
+
da as TooltipPortal,
|
|
44
|
+
ga as TooltipProvider,
|
|
45
|
+
Ta as TooltipTrigger,
|
|
45
46
|
d as allMediaFileExtensions,
|
|
46
47
|
g as allMediaMimetypes,
|
|
47
48
|
T as audioFileExtensions,
|
|
48
49
|
f as audioMimetype,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
sa as buttonVariants,
|
|
51
|
+
ua as byteToSize,
|
|
52
|
+
Da as cn,
|
|
52
53
|
u as documentFileExtensions,
|
|
53
54
|
c as documentMimetype,
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
xa as errorHandler,
|
|
56
|
+
ta as errorToast,
|
|
56
57
|
x as errorsToParam,
|
|
57
58
|
b as getDefaultFieldValues,
|
|
58
59
|
D as getDefaultValuesByKind,
|
|
@@ -61,22 +62,22 @@ export {
|
|
|
61
62
|
v as getValueIfNotUndefined,
|
|
62
63
|
h as imageFileExtensions,
|
|
63
64
|
L as imageMimetype,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
Fa as isDateObject,
|
|
66
|
+
va as isEmptyObject,
|
|
67
|
+
ha as isNullOrUndefined,
|
|
68
|
+
La as isObject,
|
|
69
|
+
Ma as isObjectType,
|
|
69
70
|
M as isPhoneValid,
|
|
70
71
|
E as isValidSchema,
|
|
71
72
|
P as mediaExtensionsByKind,
|
|
72
73
|
B as mediaMimetypeByKind,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
C as phoneUtil,
|
|
75
|
+
Pa as schema,
|
|
76
|
+
O as setFormErrors,
|
|
77
|
+
V as submitDataParser,
|
|
78
|
+
ra as successToast,
|
|
79
|
+
Ca as toast,
|
|
80
|
+
j as updateFieldWInterface,
|
|
80
81
|
o as useLevo,
|
|
81
82
|
I as validateForm,
|
|
82
83
|
S as videoFileExtensions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/membership/components/Popup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAaF,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/membership/components/Popup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAaF,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiEhC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as B } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
+
import { useEffect as d, useState as j } from "react";
|
|
4
|
+
import { useInView as C } from "react-intersection-observer";
|
|
5
|
+
import { u as O } from "./LevoProvider-BAZy7_tP.js";
|
|
6
|
+
import { usePageLifecycle as H, LifecycleState as I } from "use-page-lifecycle";
|
|
7
|
+
const we = ({ id: e, properties: r = {} }) => {
|
|
8
|
+
const { audience: t } = O(), { ref: n, inView: s } = C({
|
|
9
|
+
triggerOnce: !0
|
|
10
|
+
});
|
|
11
|
+
return d(() => {
|
|
12
|
+
t != null && t.instance && s && (t == null || t.track("block.view", {
|
|
13
|
+
...r,
|
|
14
|
+
resource: "block",
|
|
15
|
+
identifier: e
|
|
16
|
+
}));
|
|
17
|
+
}, [s]), /* @__PURE__ */ B.jsx("div", { ref: n, style: { height: "0px" } });
|
|
18
|
+
}, Te = ({ event: e, properties: r }) => {
|
|
19
|
+
const { audience: t } = O();
|
|
20
|
+
return d(() => {
|
|
21
|
+
t != null && t.instance && (t == null || t.track(e, r));
|
|
22
|
+
}, [t == null ? void 0 : t.instance, e, r]), null;
|
|
23
|
+
};
|
|
24
|
+
function S(e) {
|
|
25
|
+
var r = typeof e;
|
|
26
|
+
return e != null && (r == "object" || r == "function");
|
|
27
|
+
}
|
|
28
|
+
var F = typeof global == "object" && global && global.Object === Object && global, G = typeof self == "object" && self && self.Object === Object && self, W = F || G || Function("return this")(), T = function() {
|
|
29
|
+
return W.Date.now();
|
|
30
|
+
}, V = /\s/;
|
|
31
|
+
function _(e) {
|
|
32
|
+
for (var r = e.length; r-- && V.test(e.charAt(r)); )
|
|
33
|
+
;
|
|
34
|
+
return r;
|
|
35
|
+
}
|
|
36
|
+
var z = /^\s+/;
|
|
37
|
+
function X(e) {
|
|
38
|
+
return e && e.slice(0, _(e) + 1).replace(z, "");
|
|
39
|
+
}
|
|
40
|
+
var h = W.Symbol, D = Object.prototype, Y = D.hasOwnProperty, Z = D.toString, p = h ? h.toStringTag : void 0;
|
|
41
|
+
function q(e) {
|
|
42
|
+
var r = Y.call(e, p), t = e[p];
|
|
43
|
+
try {
|
|
44
|
+
e[p] = void 0;
|
|
45
|
+
var n = !0;
|
|
46
|
+
} catch {
|
|
47
|
+
}
|
|
48
|
+
var s = Z.call(e);
|
|
49
|
+
return n && (r ? e[p] = t : delete e[p]), s;
|
|
50
|
+
}
|
|
51
|
+
var J = Object.prototype, K = J.toString;
|
|
52
|
+
function Q(e) {
|
|
53
|
+
return K.call(e);
|
|
54
|
+
}
|
|
55
|
+
var ee = "[object Null]", te = "[object Undefined]", A = h ? h.toStringTag : void 0;
|
|
56
|
+
function ne(e) {
|
|
57
|
+
return e == null ? e === void 0 ? te : ee : A && A in Object(e) ? q(e) : Q(e);
|
|
58
|
+
}
|
|
59
|
+
function re(e) {
|
|
60
|
+
return e != null && typeof e == "object";
|
|
61
|
+
}
|
|
62
|
+
var ie = "[object Symbol]";
|
|
63
|
+
function oe(e) {
|
|
64
|
+
return typeof e == "symbol" || re(e) && ne(e) == ie;
|
|
65
|
+
}
|
|
66
|
+
var P = NaN, se = /^[-+]0x[0-9a-f]+$/i, ce = /^0b[01]+$/i, ae = /^0o[0-7]+$/i, fe = parseInt;
|
|
67
|
+
function R(e) {
|
|
68
|
+
if (typeof e == "number")
|
|
69
|
+
return e;
|
|
70
|
+
if (oe(e))
|
|
71
|
+
return P;
|
|
72
|
+
if (S(e)) {
|
|
73
|
+
var r = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
74
|
+
e = S(r) ? r + "" : r;
|
|
75
|
+
}
|
|
76
|
+
if (typeof e != "string")
|
|
77
|
+
return e === 0 ? e : +e;
|
|
78
|
+
e = X(e);
|
|
79
|
+
var t = ce.test(e);
|
|
80
|
+
return t || ae.test(e) ? fe(e.slice(2), t ? 2 : 8) : se.test(e) ? P : +e;
|
|
81
|
+
}
|
|
82
|
+
var le = "Expected a function", ue = Math.max, de = Math.min;
|
|
83
|
+
function ge(e, r, t) {
|
|
84
|
+
var n, s, a, l, i, c, f = 0, k = !1, g = !1, v = !0;
|
|
85
|
+
if (typeof e != "function")
|
|
86
|
+
throw new TypeError(le);
|
|
87
|
+
r = R(r) || 0, S(t) && (k = !!t.leading, g = "maxWait" in t, a = g ? ue(R(t.maxWait) || 0, r) : a, v = "trailing" in t ? !!t.trailing : v);
|
|
88
|
+
function y(o) {
|
|
89
|
+
var u = n, m = s;
|
|
90
|
+
return n = s = void 0, f = o, l = e.apply(m, u), l;
|
|
91
|
+
}
|
|
92
|
+
function N(o) {
|
|
93
|
+
return f = o, i = setTimeout(b, r), k ? y(o) : l;
|
|
94
|
+
}
|
|
95
|
+
function U(o) {
|
|
96
|
+
var u = o - c, m = o - f, x = r - u;
|
|
97
|
+
return g ? de(x, a - m) : x;
|
|
98
|
+
}
|
|
99
|
+
function E(o) {
|
|
100
|
+
var u = o - c, m = o - f;
|
|
101
|
+
return c === void 0 || u >= r || u < 0 || g && m >= a;
|
|
102
|
+
}
|
|
103
|
+
function b() {
|
|
104
|
+
var o = T();
|
|
105
|
+
if (E(o))
|
|
106
|
+
return L(o);
|
|
107
|
+
i = setTimeout(b, U(o));
|
|
108
|
+
}
|
|
109
|
+
function L(o) {
|
|
110
|
+
return i = void 0, v && n ? y(o) : (n = s = void 0, l);
|
|
111
|
+
}
|
|
112
|
+
function $() {
|
|
113
|
+
i !== void 0 && clearTimeout(i), f = 0, n = c = s = i = void 0;
|
|
114
|
+
}
|
|
115
|
+
function M() {
|
|
116
|
+
return i === void 0 ? l : L(T());
|
|
117
|
+
}
|
|
118
|
+
function w() {
|
|
119
|
+
var o = T(), u = E(o);
|
|
120
|
+
if (n = arguments, s = this, c = o, u) {
|
|
121
|
+
if (i === void 0)
|
|
122
|
+
return N(c);
|
|
123
|
+
if (g)
|
|
124
|
+
return clearTimeout(i), i = setTimeout(b, r), y(c);
|
|
125
|
+
}
|
|
126
|
+
return i === void 0 && (i = setTimeout(b, r)), l;
|
|
127
|
+
}
|
|
128
|
+
return w.cancel = $, w.flush = M, w;
|
|
129
|
+
}
|
|
130
|
+
const me = () => {
|
|
131
|
+
const [e, r] = j(0), [t, n] = j(0), s = ge((a) => {
|
|
132
|
+
n(a), r(a);
|
|
133
|
+
}, 250);
|
|
134
|
+
return d(() => {
|
|
135
|
+
const a = () => {
|
|
136
|
+
const l = window.scrollY, i = document.documentElement.scrollHeight, c = window.innerHeight, f = Math.round(
|
|
137
|
+
l / (i - c) * 100
|
|
138
|
+
);
|
|
139
|
+
f % 10 === 0 && f > t && s(f);
|
|
140
|
+
};
|
|
141
|
+
return window.addEventListener("scroll", a), () => window.removeEventListener("scroll", a);
|
|
142
|
+
}, [t]), e;
|
|
143
|
+
}, je = ({ id: e, properties: r = {} }) => {
|
|
144
|
+
const { client: t, audience: n } = O(), [s, a] = j(), l = me(), i = typeof window < "u" ? window.location.href : void 0;
|
|
145
|
+
d(() => {
|
|
146
|
+
i && a(i);
|
|
147
|
+
}, [i]), d(() => {
|
|
148
|
+
n != null && n.instance && n.track("page.scroll", {
|
|
149
|
+
resource: "page",
|
|
150
|
+
identifier: e,
|
|
151
|
+
percent: l
|
|
152
|
+
});
|
|
153
|
+
}, [n == null ? void 0 : n.instance, l, e]), d(() => {
|
|
154
|
+
const f = () => {
|
|
155
|
+
n == null || n.bounce({
|
|
156
|
+
resource: "page",
|
|
157
|
+
identifier: e
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
return window && window.addEventListener("beforeunload", f), () => {
|
|
161
|
+
window && window.removeEventListener("beforeunload", f);
|
|
162
|
+
};
|
|
163
|
+
}, [i, n, e]);
|
|
164
|
+
const [c] = H();
|
|
165
|
+
return d(() => {
|
|
166
|
+
(c === I.TERMINATED || c === I.FROZEN) && (n == null || n.bounce({
|
|
167
|
+
resource: "page",
|
|
168
|
+
identifier: e,
|
|
169
|
+
state: c
|
|
170
|
+
}));
|
|
171
|
+
}, [c, n, e]), d(() => {
|
|
172
|
+
(() => {
|
|
173
|
+
t != null && t.insightsUrl && t.workspace && s && (n != null && n.instance ? n.instance.page({
|
|
174
|
+
resource: "page",
|
|
175
|
+
identifier: e
|
|
176
|
+
}) : n == null || n.initiate({
|
|
177
|
+
...r,
|
|
178
|
+
id: e
|
|
179
|
+
}));
|
|
180
|
+
})();
|
|
181
|
+
}, [t == null ? void 0 : t.insightsUrl, t == null ? void 0 : t.workspace, s]), (!(t != null && t.insightsUrl) || !t.workspace || !t.workspace.startsWith("W")) && console.error(
|
|
182
|
+
"[@levo-so/audience] The utility could not be initialized, due to missing workspace, or endpoint for insights."
|
|
183
|
+
), null;
|
|
184
|
+
};
|
|
185
|
+
export {
|
|
186
|
+
we as L,
|
|
187
|
+
Te as a,
|
|
188
|
+
je as b
|
|
189
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"author": "Levo Engineering <devs@theinternetfolks.com>",
|
|
5
5
|
"description": "Levo suite for React based applications",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": ">=18",
|
|
18
18
|
"react-dom": ">=18",
|
|
19
|
-
"@levo-so/core": "0.1.
|
|
19
|
+
"@levo-so/core": "0.1.21"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@radix-ui/react-checkbox": "1.1.1",
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
"vite": "5.4.3",
|
|
92
92
|
"vite-plugin-dts": "4.1.0",
|
|
93
93
|
"@levo/eslint-config": "0.0.0",
|
|
94
|
-
"@levo/
|
|
95
|
-
"@levo/
|
|
94
|
+
"@levo/tw-config": "0.0.0",
|
|
95
|
+
"@levo/ts-config": "0.0.0"
|
|
96
96
|
},
|
|
97
97
|
"main": "./dist/index.js",
|
|
98
98
|
"module": "./dist/index.js",
|