@levo-so/studio 0.1.81 → 0.1.82
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/{BillingStep-BbQdIZN7.js → BillingStep-DcZbhRY9.js} +1 -1
- package/dist/{MessageCard-BIF1Gvn5.js → MessageCard-B-uaKUq5.js} +1 -1
- package/dist/components/LoginForm/AuthMethodRenderer.d.ts +1 -0
- package/dist/components/LoginForm/AuthMethodRenderer.d.ts.map +1 -1
- package/dist/components/LoginForm/MagicLinkAuthForm.d.ts +1 -0
- package/dist/components/LoginForm/MagicLinkAuthForm.d.ts.map +1 -1
- package/dist/components/LoginForm/OtpAuthForm.d.ts +5 -1
- package/dist/components/LoginForm/OtpAuthForm.d.ts.map +1 -1
- package/dist/components/LoginForm/WhatsAppAuthForm.d.ts +5 -1
- package/dist/components/LoginForm/WhatsAppAuthForm.d.ts.map +1 -1
- package/dist/components/LoginForm/index.d.ts +1 -0
- package/dist/components/LoginForm/index.d.ts.map +1 -1
- package/dist/components/accessCard/LoginCard/index.d.ts.map +1 -1
- package/dist/components/accessCard/PendingApprovalCard/index.d.ts +11 -0
- package/dist/components/accessCard/PendingApprovalCard/index.d.ts.map +1 -0
- package/dist/components/withBlockProps.d.ts.map +1 -1
- package/dist/constants/authentication.d.ts +4 -0
- package/dist/constants/authentication.d.ts.map +1 -1
- package/dist/contentEngine/head_code.d.ts.map +1 -1
- package/dist/core/LevoBlock.d.ts +2 -2
- package/dist/core/LevoBlock.d.ts.map +1 -1
- package/dist/core/LevoPage.d.ts +2 -0
- package/dist/core/LevoPage.d.ts.map +1 -1
- package/dist/elements/forum/ForumPost.d.ts +3 -2
- package/dist/elements/forum/ForumPost.d.ts.map +1 -1
- package/dist/elements/forum/comments/Comments.d.ts.map +1 -1
- package/dist/elements/forum/utility/index.d.ts +2 -2
- package/dist/elements/forum/utility/index.d.ts.map +1 -1
- package/dist/{index-DCDaZb-C.js → index-BM9B_-Oa.js} +2 -2
- package/dist/{index-BMInQJyD.js → index-Btn2IEPB.js} +1 -1
- package/dist/{index-Cch5jWlo.js → index-CjQJ_4Xf.js} +2 -2
- package/dist/{index-BHRWOQZs.js → index-D6LjzTKx.js} +2 -2
- package/dist/{index-Ch9QPTz1.js → index-DvqlCYn2.js} +345 -321
- package/dist/index-ekxl-RSq.js +43 -0
- package/dist/index-qvImrx6Q.js +83 -0
- package/dist/index-vtvLeTPv.js +793 -0
- package/dist/index.js +111 -109
- package/dist/interfaces/block.d.ts +1 -1
- package/dist/interfaces/block.d.ts.map +1 -1
- package/dist/interfaces/sites.d.ts +1 -0
- package/dist/interfaces/sites.d.ts.map +1 -1
- package/dist/pixel/propertyMap.d.ts +1 -1
- package/dist/pixel/propertyMap.d.ts.map +1 -1
- package/dist/studio.css +1 -1
- package/package.json +10 -8
- package/dist/index-BJBZFS85.js +0 -35
- package/dist/index-BuNQ7dUE.js +0 -765
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { useState as c, Suspense as m, lazy as u } from "react";
|
|
4
|
+
import { L as h } from "./index-vtvLeTPv.js";
|
|
5
|
+
import { A as f } from "./index-IcG2wuuE.js";
|
|
6
|
+
const _ = "_header_s7k8g_1", k = "_title_s7k8g_7", A = "_subtitle_s7k8g_14", v = "_formWrapper_s7k8g_20", s = {
|
|
7
|
+
header: _,
|
|
8
|
+
title: k,
|
|
9
|
+
subtitle: A,
|
|
10
|
+
formWrapper: v
|
|
11
|
+
}, b = u(() => import("./index-qvImrx6Q.js")), P = ({ logo: r, siteName: n, page: e }) => {
|
|
12
|
+
const [o, l] = c(!1), [d, p] = c(!1), g = e.access?.find((a) => a.kind === "gating" && a.enabled)?.options;
|
|
13
|
+
return d ? /* @__PURE__ */ t(m, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
|
|
14
|
+
b,
|
|
15
|
+
{
|
|
16
|
+
logo: r,
|
|
17
|
+
siteName: n,
|
|
18
|
+
workspaceId: e.workspace_id || "",
|
|
19
|
+
gatingOptions: g || null
|
|
20
|
+
}
|
|
21
|
+
) }) : /* @__PURE__ */ i(f, { logo: r, siteName: n, maxWidth: "sm", children: [
|
|
22
|
+
!o && /* @__PURE__ */ i("div", { className: s.header, children: [
|
|
23
|
+
/* @__PURE__ */ t("h1", { className: s.title, children: "Sign in to continue" }),
|
|
24
|
+
n && /* @__PURE__ */ i("p", { className: s.subtitle, children: [
|
|
25
|
+
"You need to sign in to access this page on ",
|
|
26
|
+
/* @__PURE__ */ t("strong", { children: n })
|
|
27
|
+
] })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ t("div", { className: s.formWrapper, children: /* @__PURE__ */ t(
|
|
30
|
+
h,
|
|
31
|
+
{
|
|
32
|
+
oAuthTitle: n || "Studio",
|
|
33
|
+
page: e,
|
|
34
|
+
magicLinkSent: o,
|
|
35
|
+
setMagicLinkSent: l,
|
|
36
|
+
onPendingApproval: () => p(!0)
|
|
37
|
+
}
|
|
38
|
+
) })
|
|
39
|
+
] });
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
P as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as t, jsx as e, Fragment as u } from "react/jsx-runtime";
|
|
3
|
+
import { CollectionFormBuilder as h } from "@levo-so/react-collection";
|
|
4
|
+
import { useState as _ } from "react";
|
|
5
|
+
import { A as f } from "./index-IcG2wuuE.js";
|
|
6
|
+
import { M as C } from "./index-Btn2IEPB.js";
|
|
7
|
+
const p = "_header_17w1a_1", w = "_iconContainer_17w1a_8", b = "_clockIcon_17w1a_14", k = "_title_17w1a_23", v = "_subtitle_17w1a_30", F = "_formContainer_17w1a_36", o = {
|
|
8
|
+
header: p,
|
|
9
|
+
iconContainer: w,
|
|
10
|
+
clockIcon: b,
|
|
11
|
+
title: k,
|
|
12
|
+
subtitle: v,
|
|
13
|
+
formContainer: F
|
|
14
|
+
}, I = ({
|
|
15
|
+
logo: s,
|
|
16
|
+
siteName: n,
|
|
17
|
+
workspaceId: c,
|
|
18
|
+
gatingOptions: i,
|
|
19
|
+
onFormSuccess: l
|
|
20
|
+
}) => {
|
|
21
|
+
const [a, d] = _(!1), r = !!i?.collection && !a, m = () => {
|
|
22
|
+
d(!0), l?.();
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ t(f, { logo: s, siteName: n, maxWidth: r ? "md" : "sm", children: [
|
|
25
|
+
/* @__PURE__ */ t("div", { className: o.header, children: [
|
|
26
|
+
/* @__PURE__ */ e("div", { className: o.iconContainer, children: /* @__PURE__ */ t(
|
|
27
|
+
"svg",
|
|
28
|
+
{
|
|
29
|
+
className: o.clockIcon,
|
|
30
|
+
fill: "none",
|
|
31
|
+
viewBox: "0 0 24 24",
|
|
32
|
+
strokeWidth: 1.5,
|
|
33
|
+
stroke: "currentColor",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ e("title", { children: "Clock" }),
|
|
36
|
+
/* @__PURE__ */ e(
|
|
37
|
+
"path",
|
|
38
|
+
{
|
|
39
|
+
strokeLinecap: "round",
|
|
40
|
+
strokeLinejoin: "round",
|
|
41
|
+
d: "M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
) }),
|
|
47
|
+
/* @__PURE__ */ e("h1", { className: o.title, children: r ? "Request Access" : "Signup Request Received" }),
|
|
48
|
+
r ? /* @__PURE__ */ t("p", { className: o.subtitle, children: [
|
|
49
|
+
"Please fill out this form to access content on ",
|
|
50
|
+
/* @__PURE__ */ e("strong", { children: n })
|
|
51
|
+
] }) : /* @__PURE__ */ t("p", { className: o.subtitle, children: [
|
|
52
|
+
"Your access requires approval.",
|
|
53
|
+
n && /* @__PURE__ */ t(u, { children: [
|
|
54
|
+
" ",
|
|
55
|
+
"You will be notified once the admins of ",
|
|
56
|
+
/* @__PURE__ */ e("strong", { children: n }),
|
|
57
|
+
" review your request."
|
|
58
|
+
] })
|
|
59
|
+
] })
|
|
60
|
+
] }),
|
|
61
|
+
r && /* @__PURE__ */ e("div", { className: o.formContainer, children: /* @__PURE__ */ e(
|
|
62
|
+
h,
|
|
63
|
+
{
|
|
64
|
+
collection_id: i.collection,
|
|
65
|
+
workspace_id: c,
|
|
66
|
+
uiConfig: {
|
|
67
|
+
hideFormHeading: !0,
|
|
68
|
+
hideSectionHeadings: !0
|
|
69
|
+
},
|
|
70
|
+
submitButtonConfig: {
|
|
71
|
+
show: !0,
|
|
72
|
+
text: "Submit"
|
|
73
|
+
},
|
|
74
|
+
hiddenFields: i.hidden ?? [],
|
|
75
|
+
onSuccess: m
|
|
76
|
+
}
|
|
77
|
+
) }),
|
|
78
|
+
/* @__PURE__ */ e(C, {})
|
|
79
|
+
] });
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
I as default
|
|
83
|
+
};
|