@levo-so/studio 0.1.90 → 0.1.91
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/{BillingStep-DVKPpBT9.js → BillingStep-o2yIMjLk.js} +1 -1
- package/{Button-vQpIKPk7.js → Button-_hpg7Rxx.js} +6 -6
- package/{EntryCard-UWxVYAD_.js → EntryCard-B-feJvrB.js} +13 -13
- package/{LoginCard-BKq_s4ZT.js → LoginCard-CF9JbU-y.js} +3 -3
- package/{LoginForm-54dtpOlx.js → LoginForm-CdpNCQJa.js} +10 -10
- package/{LoginModal-DTSAYZLC.js → LoginModal-ngTHCyli.js} +4 -4
- package/{MessageCard-YUS-pnpe.js → MessageCard-D2uja800.js} +2 -2
- package/{MessageFooter-DrJ6jZ_n.js → MessageFooter-Bu-jyPkJ.js} +1 -1
- package/{ModalManager-DLxbnq-i.js → ModalManager-B7pCzvK1.js} +1 -1
- package/{PendingApprovalCard-BnteoK24.js → PendingApprovalCard-Dut-Xiw1.js} +20 -20
- package/{bookingCard-CPYdqA8t.js → bookingCard-CGV9svhn.js} +4 -4
- package/collection.d.ts +360 -0
- package/collection.js +28 -0
- package/dist-DDKHTnIW.js +3653 -0
- package/index.d.ts +101 -2
- package/index.js +1419 -1453
- package/package.json +14 -3
- package/studio.css +1 -1
- package/utils-KqbqLlMF.js +5 -0
- package/widgets-B84lq4lO.js +351 -0
- /package/{AuthProvider-Ch5Ny0il.js → AuthProvider-56TywIOB.js} +0 -0
- /package/{Beams-BqUps11n.js → Beams-CCNNOvfW.js} +0 -0
- /package/{Dots-BKqlE-Rv.js → Dots-89WGkd-z.js} +0 -0
- /package/{Gradient-hC5P0PfD.js → Gradient-vTa_uWCj.js} +0 -0
- /package/{Grid-DqZKCasl.js → Grid-CrtztrxK.js} +0 -0
- /package/{StripePaymentModal-Kk0GUsIU.js → StripePaymentModal-CajqohNM.js} +0 -0
- /package/{Waves-CzQRk01F.js → Waves-BhA6CLEI.js} +0 -0
- /package/{card-oIl95-_C.js → card-DCbhJCO9.js} +0 -0
- /package/{dialog-BRgfpVtv.js → dialog-CILIXExr.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./Button-
|
|
2
|
+
import { t as e } from "./Button-_hpg7Rxx.js";
|
|
3
3
|
import { useState as t } from "react";
|
|
4
4
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/bookingCard/BillingStep.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as e } from "./AuthProvider-
|
|
3
|
-
import { n as t } from "./ModalManager-
|
|
2
|
+
import { n as e } from "./AuthProvider-56TywIOB.js";
|
|
3
|
+
import { n as t } from "./ModalManager-B7pCzvK1.js";
|
|
4
4
|
import * as n from "react";
|
|
5
5
|
import { createContext as r, forwardRef as i, memo as a, useContext as o, useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
6
6
|
import { animate as d, scroll as f } from "motion/react";
|
|
@@ -969,7 +969,7 @@ var y = r({
|
|
|
969
969
|
});
|
|
970
970
|
}, z = (e) => {
|
|
971
971
|
let t = v.create(e), n = ({ elementKey: n, children: r, ...i }) => {
|
|
972
|
-
let { parsedBlockData: a, renderMode: o } = x(), { config: s, styles: l, content: u, id: d } = a || {}, f = s ? D(s, n) : void 0, p = N(i, n, f, l ? D(l, n) : void 0, u ? D(u, n) : void 0, M(n, d || "", f)), h =
|
|
972
|
+
let { parsedBlockData: a, renderMode: o } = x(), { config: s, styles: l, content: u, id: d } = a || {}, f = s ? D(s, n) : void 0, p = N(i, n, f, l ? D(l, n) : void 0, u ? D(u, n) : void 0, M(n, d || "", f)), h = p.config?.animation, g = c(() => h?.scroll ? {
|
|
973
973
|
from: {
|
|
974
974
|
...C,
|
|
975
975
|
...h.scroll.from
|
|
@@ -994,8 +994,8 @@ var y = r({
|
|
|
994
994
|
transition: h.entry.transition,
|
|
995
995
|
viewport: h.entry.viewport
|
|
996
996
|
} : void 0, [h?.entry]);
|
|
997
|
-
return !a ||
|
|
998
|
-
config:
|
|
997
|
+
return !a || p.config?.enabled === !1 ? null : h && Object.keys(h).length > 0 && o !== "studio.block" ? /* @__PURE__ */ m(I, {
|
|
998
|
+
config: p?.config || {},
|
|
999
999
|
children: /* @__PURE__ */ m(R, {
|
|
1000
1000
|
MotionComponent: t,
|
|
1001
1001
|
motionProps: p,
|
|
@@ -1006,7 +1006,7 @@ var y = r({
|
|
|
1006
1006
|
children: r
|
|
1007
1007
|
})
|
|
1008
1008
|
}) : /* @__PURE__ */ m(I, {
|
|
1009
|
-
config:
|
|
1009
|
+
config: p?.config || {},
|
|
1010
1010
|
children: /* @__PURE__ */ m(e, {
|
|
1011
1011
|
...p,
|
|
1012
1012
|
children: r
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t } from "./
|
|
4
|
-
import { t as n } from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { r as e } from "./dist-DDKHTnIW.js";
|
|
3
|
+
import { n as t } from "./AuthProvider-56TywIOB.js";
|
|
4
|
+
import { t as n } from "./card-DCbhJCO9.js";
|
|
5
|
+
import { t as r } from "./MessageFooter-Bu-jyPkJ.js";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
var o = {
|
|
8
8
|
header: "_header_emo7t_1",
|
|
9
9
|
title: "_title_emo7t_8",
|
|
10
10
|
subtitle: "_subtitle_emo7t_15",
|
|
11
11
|
formContainer: "_formContainer_emo7t_21"
|
|
12
12
|
}, s = ({ logo: s, siteName: c, workspaceId: l, options: u, onSuccess: d }) => {
|
|
13
|
-
let { account: f } =
|
|
14
|
-
return /* @__PURE__ */
|
|
13
|
+
let { account: f } = t();
|
|
14
|
+
return /* @__PURE__ */ a(n, {
|
|
15
15
|
logo: s,
|
|
16
16
|
siteName: c,
|
|
17
17
|
maxWidth: "md",
|
|
18
18
|
children: [
|
|
19
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ a("div", {
|
|
20
20
|
className: o.header,
|
|
21
|
-
children: [/* @__PURE__ */
|
|
21
|
+
children: [/* @__PURE__ */ i("h1", {
|
|
22
22
|
className: o.title,
|
|
23
23
|
children: "Access Required"
|
|
24
|
-
}), /* @__PURE__ */
|
|
24
|
+
}), /* @__PURE__ */ i("div", {
|
|
25
25
|
className: o.subtitle,
|
|
26
26
|
dangerouslySetInnerHTML: { __html: u?.content?.entryNotFound ?? `Please fill out this form to access content on <strong>${c}</strong>` }
|
|
27
27
|
})]
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */ r
|
|
30
|
-
f && /* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ i(r, {}),
|
|
30
|
+
f && /* @__PURE__ */ i("div", {
|
|
31
31
|
className: o.formContainer,
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ i(e, {
|
|
33
33
|
collection_id: u?.collection || "",
|
|
34
34
|
workspace_id: l,
|
|
35
35
|
uiConfig: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./LoginForm-
|
|
3
|
-
import { t } from "./card-
|
|
2
|
+
import { t as e } from "./LoginForm-CdpNCQJa.js";
|
|
3
|
+
import { t } from "./card-DCbhJCO9.js";
|
|
4
4
|
import { Suspense as n, lazy as r, useState as i } from "react";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
var s = {
|
|
@@ -8,7 +8,7 @@ var s = {
|
|
|
8
8
|
title: "_title_s7k8g_7",
|
|
9
9
|
subtitle: "_subtitle_s7k8g_14",
|
|
10
10
|
formWrapper: "_formWrapper_s7k8g_20"
|
|
11
|
-
}, c = r(() => import("./PendingApprovalCard-
|
|
11
|
+
}, c = r(() => import("./PendingApprovalCard-Dut-Xiw1.js")), l = ({ logo: r, siteName: l, page: u }) => {
|
|
12
12
|
let [d, f] = i(!1), [p, m] = i(!1), h = u.access?.find((e) => e.kind === "gating" && e.enabled)?.options;
|
|
13
13
|
return p ? /* @__PURE__ */ a(n, {
|
|
14
14
|
fallback: /* @__PURE__ */ a("div", {}),
|
|
@@ -6,23 +6,23 @@ import { getLevoError as u } from "@levo-so/core";
|
|
|
6
6
|
import { LevoOAuth as d, errorHandler as f, successToast as p, useLevo as m } from "@levo-so/react";
|
|
7
7
|
import { ChevronDown as h } from "lucide-react";
|
|
8
8
|
import { Popover as g } from "radix-ui";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
9
|
+
import * as _ from "yup";
|
|
10
|
+
import { useFormik as v } from "formik";
|
|
11
|
+
import { parsePhoneNumberWithError as y } from "libphonenumber-js";
|
|
12
12
|
import b from "react-otp-input";
|
|
13
13
|
import { FlagImage as x, defaultCountries as S, parseCountry as C, usePhoneInput as w } from "react-international-phone";
|
|
14
14
|
//#region src/schemas/authSchemas.ts
|
|
15
|
-
var T =
|
|
15
|
+
var T = _.string().required("Email is required").email("Please enter a valid email address").trim(), E = _.string().required("Please enter the verification code").length(4, "Verification code must be 4 digits").matches(/^\d+$/, "Verification code must contain only numbers"), D = _.string().required("Phone number is required").test("phone", "The phone number has incorrect format", (e) => {
|
|
16
16
|
if (!e) return !1;
|
|
17
17
|
try {
|
|
18
|
-
return
|
|
18
|
+
return y(e)?.isValid() ?? !1;
|
|
19
19
|
} catch {
|
|
20
20
|
return !1;
|
|
21
21
|
}
|
|
22
|
-
}), O =
|
|
22
|
+
}), O = _.object({ email: T }), k = _.object({
|
|
23
23
|
email: T,
|
|
24
24
|
otp: E
|
|
25
|
-
}), A =
|
|
25
|
+
}), A = _.object({ phone: D }), j = _.object({
|
|
26
26
|
phone: D,
|
|
27
27
|
otp: E
|
|
28
28
|
}), M = O, N = {
|
|
@@ -252,7 +252,7 @@ var T = y.string().required("Email is required").email("Please enter a valid ema
|
|
|
252
252
|
r(() => {
|
|
253
253
|
e?.(s);
|
|
254
254
|
}, [s, e]);
|
|
255
|
-
let m =
|
|
255
|
+
let m = v({
|
|
256
256
|
initialValues: { email: "" },
|
|
257
257
|
validationSchema: M,
|
|
258
258
|
validateOnChange: !1,
|
|
@@ -358,7 +358,7 @@ var T = y.string().required("Email is required").email("Please enter a valid ema
|
|
|
358
358
|
]
|
|
359
359
|
}) : null;
|
|
360
360
|
}, W = ({ onPendingApproval: e }) => {
|
|
361
|
-
let { sendOTP: r, verifyOTP: i, resendOTP: a } = n(), [s, d] = o(!1), [f, p] = o(null), [m, h] = o(!1), g =
|
|
361
|
+
let { sendOTP: r, verifyOTP: i, resendOTP: a } = n(), [s, d] = o(!1), [f, p] = o(null), [m, h] = o(!1), g = v({
|
|
362
362
|
initialValues: {
|
|
363
363
|
email: "",
|
|
364
364
|
otp: ""
|
|
@@ -589,7 +589,7 @@ var T = y.string().required("Email is required").email("Please enter a valid ema
|
|
|
589
589
|
})]
|
|
590
590
|
})] });
|
|
591
591
|
}, q = ({ onPendingApproval: e }) => {
|
|
592
|
-
let { sendOTP: r, verifyOTP: i, resendOTP: a } = n(), [s, d] = o(!1), [f, p] = o(null), [m, h] = o(!1), g =
|
|
592
|
+
let { sendOTP: r, verifyOTP: i, resendOTP: a } = n(), [s, d] = o(!1), [f, p] = o(null), [m, h] = o(!1), g = v({
|
|
593
593
|
initialValues: {
|
|
594
594
|
phone: "",
|
|
595
595
|
otp: ""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as e } from "./AuthProvider-
|
|
3
|
-
import { n as t } from "./ModalManager-
|
|
4
|
-
import { a as n, n as r, o as i, r as a, t as o } from "./dialog-
|
|
5
|
-
import { t as s } from "./LoginForm-
|
|
2
|
+
import { n as e } from "./AuthProvider-56TywIOB.js";
|
|
3
|
+
import { n as t } from "./ModalManager-B7pCzvK1.js";
|
|
4
|
+
import { a as n, n as r, o as i, r as a, t as o } from "./dialog-CILIXExr.js";
|
|
5
|
+
import { t as s } from "./LoginForm-CdpNCQJa.js";
|
|
6
6
|
import { useEffect as c } from "react";
|
|
7
7
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
var d = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./card-
|
|
3
|
-
import { t } from "./MessageFooter-
|
|
2
|
+
import { t as e } from "./card-DCbhJCO9.js";
|
|
3
|
+
import { t } from "./MessageFooter-Bu-jyPkJ.js";
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/accessCard/MessageCard.tsx
|
|
6
6
|
var i = ({ logo: i, siteName: a, options: o, message: s }) => /* @__PURE__ */ r(e, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Suspense as e, createContext as t, lazy as n, useCallback as r, useContext as i, useState as a } from "react";
|
|
3
3
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
4
|
//#region src/context/ModalManager.tsx
|
|
5
|
-
var c = n(() => import("./LoginModal-
|
|
5
|
+
var c = n(() => import("./LoginModal-ngTHCyli.js")), l = t({
|
|
6
6
|
availableModals: ["login"],
|
|
7
7
|
openModals: { key: null },
|
|
8
8
|
openModal: () => ({}),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { r as e } from "./dist-DDKHTnIW.js";
|
|
3
|
+
import { t } from "./card-DCbhJCO9.js";
|
|
4
|
+
import { t as n } from "./MessageFooter-Bu-jyPkJ.js";
|
|
5
|
+
import { useState as r } from "react";
|
|
6
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
var s = {
|
|
8
8
|
header: "_header_17w1a_1",
|
|
9
9
|
iconContainer: "_iconContainer_17w1a_8",
|
|
@@ -12,51 +12,51 @@ var s = {
|
|
|
12
12
|
subtitle: "_subtitle_17w1a_30",
|
|
13
13
|
formContainer: "_formContainer_17w1a_36"
|
|
14
14
|
}, c = ({ logo: c, siteName: l, workspaceId: u, gatingOptions: d, onFormSuccess: f }) => {
|
|
15
|
-
let [p, m] =
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
let [p, m] = r(!1), h = !!d?.collection && !p;
|
|
16
|
+
return /* @__PURE__ */ o(t, {
|
|
17
17
|
logo: c,
|
|
18
18
|
siteName: l,
|
|
19
19
|
maxWidth: h ? "md" : "sm",
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ o("div", {
|
|
22
22
|
className: s.header,
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ a("div", {
|
|
25
25
|
className: s.iconContainer,
|
|
26
|
-
children: /* @__PURE__ */
|
|
26
|
+
children: /* @__PURE__ */ o("svg", {
|
|
27
27
|
className: s.clockIcon,
|
|
28
28
|
fill: "none",
|
|
29
29
|
viewBox: "0 0 24 24",
|
|
30
30
|
strokeWidth: 1.5,
|
|
31
31
|
stroke: "currentColor",
|
|
32
|
-
children: [/* @__PURE__ */
|
|
32
|
+
children: [/* @__PURE__ */ a("title", { children: "Clock" }), /* @__PURE__ */ a("path", {
|
|
33
33
|
strokeLinecap: "round",
|
|
34
34
|
strokeLinejoin: "round",
|
|
35
35
|
d: "M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
36
36
|
})]
|
|
37
37
|
})
|
|
38
38
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ a("h1", {
|
|
40
40
|
className: s.title,
|
|
41
41
|
children: h ? "Request Access" : "Signup Request Received"
|
|
42
42
|
}),
|
|
43
|
-
h ? /* @__PURE__ */
|
|
43
|
+
h ? /* @__PURE__ */ o("p", {
|
|
44
44
|
className: s.subtitle,
|
|
45
|
-
children: ["Please fill out this form to access content on ", /* @__PURE__ */
|
|
46
|
-
}) : /* @__PURE__ */
|
|
45
|
+
children: ["Please fill out this form to access content on ", /* @__PURE__ */ a("strong", { children: l })]
|
|
46
|
+
}) : /* @__PURE__ */ o("p", {
|
|
47
47
|
className: s.subtitle,
|
|
48
|
-
children: ["Your access requires approval.", l && /* @__PURE__ */
|
|
48
|
+
children: ["Your access requires approval.", l && /* @__PURE__ */ o(i, { children: [
|
|
49
49
|
" ",
|
|
50
50
|
"You will be notified once the admins of ",
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ a("strong", { children: l }),
|
|
52
52
|
" review your request."
|
|
53
53
|
] })]
|
|
54
54
|
})
|
|
55
55
|
]
|
|
56
56
|
}),
|
|
57
|
-
h && /* @__PURE__ */
|
|
57
|
+
h && /* @__PURE__ */ a("div", {
|
|
58
58
|
className: s.formContainer,
|
|
59
|
-
children: /* @__PURE__ */
|
|
59
|
+
children: /* @__PURE__ */ a(e, {
|
|
60
60
|
collection_id: d.collection,
|
|
61
61
|
workspace_id: u,
|
|
62
62
|
uiConfig: {
|
|
@@ -73,7 +73,7 @@ var s = {
|
|
|
73
73
|
}
|
|
74
74
|
})
|
|
75
75
|
}),
|
|
76
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ a(n, {})
|
|
77
77
|
]
|
|
78
78
|
});
|
|
79
79
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as e } from "./AuthProvider-
|
|
3
|
-
import { t } from "./Button-
|
|
4
|
-
import { n, t as r } from "./StripePaymentModal-
|
|
5
|
-
import { BillingStep as ee } from "./BillingStep-
|
|
2
|
+
import { n as e } from "./AuthProvider-56TywIOB.js";
|
|
3
|
+
import { t } from "./Button-_hpg7Rxx.js";
|
|
4
|
+
import { n, t as r } from "./StripePaymentModal-CajqohNM.js";
|
|
5
|
+
import { BillingStep as ee } from "./BillingStep-o2yIMjLk.js";
|
|
6
6
|
import { useRef as i, useState as a } from "react";
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import { cn as te, errorHandler as l, useLevo as u } from "@levo-so/react";
|