@levo-so/studio 0.1.58 → 0.1.60
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/{Beams-0Cg_3upg.js → Beams-BMno1Tvc.js} +42 -45
- package/dist/{Dots-turX9wMO.js → Dots-DTupNond.js} +1 -1
- package/dist/{Gradient-Be4Kqh_1.js → Gradient-BzroE-hh.js} +1 -1
- package/dist/{Grid-B0vqOT42.js → Grid-t3zbAQxh.js} +1 -1
- package/dist/MessageCard-D9UDjWQS.js +50 -0
- package/dist/{Waves-DL4kuojY.js → Waves-E46HcLxm.js} +1 -1
- package/dist/blockSmith/ContentSchemaGenerator.d.ts.map +1 -0
- package/dist/blockSmith/DefaultContentGenerator.d.ts.map +1 -0
- package/dist/blockSmith/DefaultStylesGenerator.d.ts.map +1 -0
- package/dist/blockSmith/index.d.ts.map +1 -0
- package/dist/blockSmith/variablePropertMap.d.ts.map +1 -0
- package/dist/bridge/Highlighter.d.ts.map +1 -0
- package/dist/bridge/PreviewHighlighter.d.ts.map +1 -0
- package/dist/bridge/StudioBlockPreview.d.ts +1 -0
- package/dist/bridge/StudioBlockPreview.d.ts.map +1 -0
- package/dist/bridge/StudioPagePreview.d.ts.map +1 -0
- package/dist/bridge/StudioPreview.d.ts.map +1 -0
- package/dist/bridge/constants.d.ts +2 -0
- package/dist/bridge/constants.d.ts.map +1 -0
- package/dist/bridge/index.d.ts.map +1 -0
- package/dist/bridge/types.d.ts.map +1 -0
- package/dist/bridge/utils.d.ts.map +1 -0
- package/dist/components/ActionWrapper.d.ts.map +1 -0
- package/dist/components/BackgroundVideo.d.ts.map +1 -0
- package/dist/components/LoginForm/AuthMethodRenderer.d.ts.map +1 -0
- package/dist/components/LoginForm/ErrorDisplay.d.ts.map +1 -0
- package/dist/components/LoginForm/GoogleOAuth.d.ts.map +1 -0
- package/dist/components/LoginForm/MagicLinkAuthForm.d.ts.map +1 -0
- package/dist/components/LoginForm/OAuthSection.d.ts.map +1 -0
- package/dist/components/LoginForm/OtpAuthForm.d.ts.map +1 -0
- package/dist/components/LoginForm/WhatsAppAuthForm.d.ts.map +1 -0
- package/dist/components/LoginForm/index.d.ts.map +1 -0
- package/dist/components/LoginModal/index.d.ts.map +1 -0
- package/dist/components/accessCard/EntryCard/index.d.ts.map +1 -0
- package/dist/components/accessCard/LoginCard/index.d.ts.map +1 -0
- package/dist/components/accessCard/MessageCard.d.ts.map +1 -0
- package/dist/components/accessCard/MessageFooter/index.d.ts.map +1 -0
- package/dist/components/accessCard/card/index.d.ts.map +1 -0
- package/dist/components/backgroundPresets/Beams.d.ts.map +1 -0
- package/dist/components/backgroundPresets/Dots.d.ts.map +1 -0
- package/dist/components/backgroundPresets/Gradient.d.ts.map +1 -0
- package/dist/components/backgroundPresets/Grid.d.ts.map +1 -0
- package/dist/components/backgroundPresets/Waves.d.ts.map +1 -0
- package/dist/components/backgroundPresets/exports.d.ts.map +1 -0
- package/dist/components/backgroundPresets/index.d.ts.map +1 -0
- package/dist/components/backgroundPresets/presetSystem.d.ts.map +1 -0
- package/dist/components/backgroundPresets/presetUtils.d.ts.map +1 -0
- package/dist/components/backgroundPresets/presets.d.ts.map +1 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/integrationFilters/FieldRenderer.d.ts.map +1 -0
- package/dist/components/integrationFilters/IntegrationFilters.d.ts.map +1 -0
- package/dist/components/integrationFilters/fields/DropdownField.d.ts.map +1 -0
- package/dist/components/integrationFilters/fields/TextField.d.ts.map +1 -0
- package/dist/components/registerModal/RegisterModal.d.ts +2 -1
- package/dist/components/registerModal/RegisterModal.d.ts.map +1 -0
- package/dist/components/registerModal/RegistrationConfirmationModal.d.ts.map +1 -0
- package/dist/components/registerModal/useCustomDisclosure.d.ts.map +1 -0
- package/dist/components/registerModal/utils.d.ts.map +1 -0
- package/dist/components/shared/EmailInput/index.d.ts.map +1 -0
- package/dist/components/shared/MagicLinkSuccess/index.d.ts.map +1 -0
- package/dist/components/shared/OTPInput/index.d.ts.map +1 -0
- package/dist/components/shared/PhoneInput/index.d.ts.map +1 -0
- package/dist/components/ui/Calendar.d.ts.map +1 -0
- package/dist/components/ui/FlippingText.d.ts.map +1 -0
- package/dist/components/ui/StatefulButton/index.d.ts.map +1 -0
- package/dist/components/ui/base/avatar.d.ts +13 -0
- package/dist/components/ui/base/avatar.d.ts.map +1 -0
- package/dist/components/ui/base/index.d.ts +2 -0
- package/dist/components/ui/base/index.d.ts.map +1 -0
- package/dist/components/ui/base/input.d.ts.map +1 -0
- package/dist/components/ui/base/skeleton.d.ts +3 -0
- package/dist/components/ui/base/skeleton.d.ts.map +1 -0
- package/dist/components/ui/base/textarea.d.ts +4 -0
- package/dist/components/ui/base/textarea.d.ts.map +1 -0
- package/dist/components/ui/form/FormInput.d.ts.map +1 -0
- package/dist/components/ui/form/FormSelect.d.ts.map +1 -0
- package/dist/components/ui/form/FormTextarea.d.ts +15 -0
- package/dist/components/ui/form/FormTextarea.d.ts.map +1 -0
- package/dist/components/ui/form/utils/FieldError.d.ts.map +1 -0
- package/dist/components/ui/form/utils/FieldWrapper.d.ts.map +1 -0
- package/dist/components/ui/form/utils/FormHelperText.d.ts.map +1 -0
- package/dist/components/ui/form/utils/FormLabel.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/withBlockProps copy.d.ts.map +1 -0
- package/dist/components/withBlockProps.d.ts.map +1 -0
- package/dist/constants/authentication.d.ts.map +1 -0
- package/dist/contentEngine/cache.d.ts.map +1 -0
- package/dist/contentEngine/content.d.ts +3 -2
- package/dist/contentEngine/content.d.ts.map +1 -0
- package/dist/contentEngine/getPage.d.ts.map +1 -0
- package/dist/contentEngine/head_code.d.ts.map +1 -0
- package/dist/contentEngine/index.d.ts.map +1 -0
- package/dist/contentEngine/sourceFetcher.d.ts +1 -1
- package/dist/contentEngine/sourceFetcher.d.ts.map +1 -0
- package/dist/contentEngine/themeUtils.d.ts.map +1 -0
- package/dist/contentEngine/types.d.ts +1 -0
- package/dist/contentEngine/types.d.ts.map +1 -0
- package/dist/contentEngine/urlBuilder.d.ts.map +1 -0
- package/dist/contentEngine/useContentEngine.d.ts.map +1 -0
- package/dist/contentEngine/useContextEngine.d.ts +11 -0
- package/dist/contentEngine/useContextEngine.d.ts.map +1 -0
- package/dist/context/ModalManager.d.ts.map +1 -0
- package/dist/core/AccessManager/index.d.ts.map +1 -0
- package/dist/core/BlockRegistry.d.ts.map +1 -0
- package/dist/core/LevoBlock.d.ts +2 -1
- package/dist/core/LevoBlock.d.ts.map +1 -0
- package/dist/core/LevoPage.d.ts.map +1 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/elements/Box.d.ts.map +1 -0
- package/dist/elements/Button.d.ts.map +1 -0
- package/dist/elements/Carousel.d.ts +9 -1
- package/dist/elements/Carousel.d.ts.map +1 -0
- package/dist/elements/Container.d.ts.map +1 -0
- package/dist/elements/EditForm.d.ts.map +1 -0
- package/dist/elements/Form.d.ts.map +1 -0
- package/dist/elements/Heading.d.ts.map +1 -0
- package/dist/elements/Icon.d.ts.map +1 -0
- package/dist/elements/Iframe.d.ts.map +1 -0
- package/dist/elements/Image.d.ts.map +1 -0
- package/dist/elements/Link.d.ts.map +1 -0
- package/dist/elements/Media.d.ts.map +1 -0
- package/dist/elements/Section.d.ts.map +1 -0
- package/dist/elements/Tabs.d.ts.map +1 -0
- package/dist/elements/Typography.d.ts.map +1 -0
- package/dist/elements/UserMenu.d.ts.map +1 -0
- package/dist/elements/accordion/index.d.ts.map +1 -0
- package/dist/elements/dialog/index.d.ts.map +1 -0
- package/dist/elements/forum/ForumPost.d.ts +16 -0
- package/dist/elements/forum/ForumPost.d.ts.map +1 -0
- package/dist/elements/forum/ForumPostContentRenderer.d.ts +8 -0
- package/dist/elements/forum/ForumPostContentRenderer.d.ts.map +1 -0
- package/dist/elements/forum/comments/Comment.d.ts +11 -0
- package/dist/elements/forum/comments/Comment.d.ts.map +1 -0
- package/dist/elements/forum/comments/Comments.d.ts +8 -0
- package/dist/elements/forum/comments/Comments.d.ts.map +1 -0
- package/dist/elements/forum/comments/ReplyBox.d.ts +10 -0
- package/dist/elements/forum/comments/ReplyBox.d.ts.map +1 -0
- package/dist/elements/forum/comments/commentUtility.d.ts +22 -0
- package/dist/elements/forum/comments/commentUtility.d.ts.map +1 -0
- package/dist/elements/forum/comments/index.d.ts +2 -0
- package/dist/elements/forum/comments/index.d.ts.map +1 -0
- package/dist/elements/forum/index.d.ts +3 -0
- package/dist/elements/forum/index.d.ts.map +1 -0
- package/dist/elements/forum/utility/Video.d.ts +16 -0
- package/dist/elements/forum/utility/Video.d.ts.map +1 -0
- package/dist/elements/forum/utility/index.d.ts +35 -0
- package/dist/elements/forum/utility/index.d.ts.map +1 -0
- package/dist/elements/index.d.ts +1 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/popover/index.d.ts.map +1 -0
- package/dist/hooks/useLogin.d.ts.map +1 -0
- package/dist/index-BNwqk7Nf.js +56 -0
- package/dist/{index-BdswdesP.js → index-BkICuRR-.js} +1 -1
- package/dist/{index-CPJI9a7D.js → index-D-C30ZH_.js} +5603 -4358
- package/dist/index-a__5b49U.js +33 -0
- package/dist/index.js +119 -105
- package/dist/interfaces/block.d.ts +2 -2
- package/dist/interfaces/block.d.ts.map +1 -0
- package/dist/interfaces/contentSchema.d.ts.map +1 -0
- package/dist/interfaces/form.d.ts.map +1 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/levoBlock.d.ts +3 -7
- package/dist/interfaces/levoBlock.d.ts.map +1 -0
- package/dist/interfaces/site.d.ts +1 -193
- package/dist/interfaces/site.d.ts.map +1 -0
- package/dist/interfaces/sites.d.ts +198 -2
- package/dist/interfaces/sites.d.ts.map +1 -0
- package/dist/interfaces/theme.d.ts.map +1 -0
- package/dist/pixel/constants/borderRadius.d.ts.map +1 -0
- package/dist/pixel/constants/colorOptions.d.ts.map +1 -0
- package/dist/pixel/constants/fontSizeOptions.d.ts.map +1 -0
- package/dist/pixel/constants/marginOptions.d.ts.map +1 -0
- package/dist/pixel/constants/spaceOptions.d.ts.map +1 -0
- package/dist/pixel/index.d.ts.map +1 -0
- package/dist/pixel/optionsMap.d.ts.map +1 -0
- package/dist/pixel/parserUtil.d.ts.map +1 -0
- package/dist/pixel/propertyMap.d.ts.map +1 -0
- package/dist/providers/AuthProvider.d.ts.map +1 -0
- package/dist/providers/BlockContext.d.ts +1 -0
- package/dist/providers/BlockContext.d.ts.map +1 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/schemas/authSchemas.d.ts.map +1 -0
- package/dist/studio.css +1 -1
- package/dist/theme/defaultTheme.d.ts.map +1 -0
- package/dist/utils/blockHelpers.d.ts.map +1 -0
- package/dist/utils/colorUtils.d.ts.map +1 -0
- package/dist/utils/findFieldSchema.d.ts.map +1 -0
- package/dist/utils/getKeysWithValue.d.ts.map +1 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/withBlockPropsUtils.d.ts.map +1 -0
- package/package.json +25 -28
- package/dist/MessageCard-CCngWCHS.js +0 -53
- package/dist/index-CmNhuPZp.js +0 -34
- package/dist/index-kVKDoWCh.js +0 -57
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import l from "libphonenumber-js";
|
|
4
|
+
import { u as r, a as c } from "./index-D-C30ZH_.js";
|
|
5
|
+
const g = "_footnote_v8hnh_1", f = "_footnoteText_v8hnh_11", m = "_logoutButton_v8hnh_17", t = {
|
|
6
|
+
footnote: g,
|
|
7
|
+
footnoteText: f,
|
|
8
|
+
logoutButton: m
|
|
9
|
+
}, p = () => {
|
|
10
|
+
const { account: o, isSignOutLoading: n } = r(), { signOut: u } = c(), a = () => {
|
|
11
|
+
u();
|
|
12
|
+
}, e = o?.email || l(
|
|
13
|
+
o?.mobile ? `+${o?.mobile}` : ""
|
|
14
|
+
)?.formatInternational();
|
|
15
|
+
return e ? /* @__PURE__ */ s("div", { className: t.footnote, children: [
|
|
16
|
+
/* @__PURE__ */ s("span", { className: t.footnoteText, children: [
|
|
17
|
+
"You are signed in as ",
|
|
18
|
+
/* @__PURE__ */ i("strong", { children: e })
|
|
19
|
+
] }),
|
|
20
|
+
/* @__PURE__ */ i(
|
|
21
|
+
"button",
|
|
22
|
+
{
|
|
23
|
+
className: t.logoutButton,
|
|
24
|
+
onClick: a,
|
|
25
|
+
disabled: n,
|
|
26
|
+
children: n ? "Signing out..." : "Sign out"
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
] }) : null;
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
p as M
|
|
33
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b9 as e, b6 as o, w as t, t as r, A as n, v as i, a2 as g, b7 as l, X as c, _ as T, $ as u, Y as C, Z as A, aZ as S, aY as E, b as m, d, n as b, r as P, s as h, D as p, a3 as B, av as M, aC as v, B as R, c as I, V as L, f as k, g as H, k as f, l as _, h as O, j as y, i as F, R as V, C as D, aI as U, aX as K, a5 as x, E as N, F as G, a1 as W, O as Y, H as w, aw as z, q as J, o as X, p as j, W as q, I as Q, as as Z, aA as $, aB as aa, z as sa, aG as ea, M as oa, a_ as ta, a$ as ra, b5 as na, b8 as ia, y as ga, P as la, x as ca, Q as Ta, aH as ua, b4 as Ca, S as Aa, a0 as Sa, aJ as Ea, at as ma, au as da, N as ba, J as Pa, G as ha, K as pa, T as Ba, U as Ma, aD as va, aF as Ra, ay as Ia, aE as La, aQ as ka, aP as Ha, a6 as fa, ar as _a, ab as Oa, az as ya, ae as Fa, ax as Va, aV as Da, aU as Ua, ad as Ka, ac as xa, b1 as Na, b2 as Ga, aO as Wa, a7 as Ya, aS as wa, aM as za, b0 as Ja, an as Xa, bb as ja, a8 as qa, ba as Qa, am as Za, al as $a, aq as as, ap as ss, aj as es, ao as os, aN as ts, aT as rs, aW as ns, aL as is, aK as gs, ai as ls, ak as cs, b3 as Ts, a9 as us, u as Cs, a4 as As, ah as Ss, aR as Es, e as ms, af as ds, ag as bs, aa as Ps } from "./index-D-C30ZH_.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ALTERNATE_METHOD_VALUES,
|
|
4
4
|
o as ALTERNATIVE_AUTH_METHODS,
|
|
@@ -8,109 +8,123 @@ export {
|
|
|
8
8
|
i as AccordionTrigger,
|
|
9
9
|
g as AuthProvider,
|
|
10
10
|
l as AuthenticationOptions,
|
|
11
|
-
c as
|
|
12
|
-
T as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
A as
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
P as
|
|
22
|
-
|
|
23
|
-
p as
|
|
24
|
-
B as
|
|
25
|
-
|
|
11
|
+
c as Avatar,
|
|
12
|
+
T as AvatarFallback,
|
|
13
|
+
u as AvatarFallbackV2,
|
|
14
|
+
C as AvatarImage,
|
|
15
|
+
A as AvatarImageV2,
|
|
16
|
+
S as BUILT_IN_PRESETS,
|
|
17
|
+
E as BackgroundEffects,
|
|
18
|
+
m as BaseButton,
|
|
19
|
+
d as BaseContainer,
|
|
20
|
+
b as BaseHeading,
|
|
21
|
+
P as BaseSection,
|
|
22
|
+
h as BaseTypography,
|
|
23
|
+
p as BaseUserMenu,
|
|
24
|
+
B as BlockProvider,
|
|
25
|
+
M as BlockSourceModuleList,
|
|
26
|
+
v as BlocksRegistry,
|
|
27
|
+
R as Box,
|
|
28
|
+
I as Button,
|
|
29
|
+
L as Calendar,
|
|
30
|
+
k as Carousel,
|
|
26
31
|
H as CarouselContent,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
Ha as
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
32
|
+
f as CarouselDotButton,
|
|
33
|
+
_ as CarouselDots,
|
|
34
|
+
O as CarouselItem,
|
|
35
|
+
y as CarouselNext,
|
|
36
|
+
F as CarouselPrevious,
|
|
37
|
+
V as Comments,
|
|
38
|
+
D as Container,
|
|
39
|
+
U as DATA_ATTRIBUTES,
|
|
40
|
+
K as DEFAULT_THEME,
|
|
41
|
+
x as DEMO_SCHEMA,
|
|
42
|
+
N as EditForm,
|
|
43
|
+
G as Form,
|
|
44
|
+
W as FormTextarea,
|
|
45
|
+
Y as ForumPost,
|
|
46
|
+
w as Heading,
|
|
47
|
+
z as IMembershipAuthenticationMethods,
|
|
48
|
+
J as Icon,
|
|
49
|
+
X as Iframe,
|
|
50
|
+
j as Image,
|
|
51
|
+
q as Input,
|
|
52
|
+
Q as IntegrationFilters,
|
|
53
|
+
Z as KindList,
|
|
54
|
+
$ as LevoBlock,
|
|
55
|
+
aa as LevoPage,
|
|
56
|
+
sa as Link,
|
|
57
|
+
ea as MESSAGE_TYPES,
|
|
58
|
+
oa as Media,
|
|
59
|
+
ta as PRESET_CATEGORIES,
|
|
60
|
+
ra as PRESET_MAP,
|
|
61
|
+
na as PRIMARY_AUTH_METHODS,
|
|
62
|
+
ia as PRIMARY_METHOD_VALUES,
|
|
63
|
+
ga as PopoverContent,
|
|
64
|
+
la as PopoverRoot,
|
|
65
|
+
ca as PopoverTrigger,
|
|
66
|
+
Ta as PostLinkWrapper,
|
|
67
|
+
ua as PreviewHighlighter,
|
|
68
|
+
Ca as RegisterModal,
|
|
69
|
+
Aa as Section,
|
|
70
|
+
Sa as Skeleton,
|
|
71
|
+
Ea as StudioPreview,
|
|
72
|
+
ma as StudioWidgetList,
|
|
73
|
+
da as StudioWidgetMap,
|
|
74
|
+
ba as TabsContent,
|
|
75
|
+
Pa as TabsList,
|
|
76
|
+
ha as TabsRoot,
|
|
77
|
+
pa as TabsTrigger,
|
|
78
|
+
Ba as Typography,
|
|
79
|
+
Ma as UserMenu,
|
|
80
|
+
va as blocksRegistry,
|
|
81
|
+
Ra as colorOptions,
|
|
82
|
+
Ia as convertKeysToPascalCase,
|
|
83
|
+
La as cssOptionsMap,
|
|
84
|
+
ka as fetchCollectionSchema,
|
|
85
|
+
Ha as fetchSource,
|
|
86
|
+
fa as findFieldSchema,
|
|
87
|
+
_a as generateAccentColor,
|
|
88
|
+
Oa as generateAnimationProps,
|
|
89
|
+
ya as generateDefaultContent,
|
|
90
|
+
Fa as generateElementClassName,
|
|
91
|
+
Va as generateSchemaFromJSX,
|
|
92
|
+
Da as generateThemeStyles,
|
|
93
|
+
Ua as generateThemeVariables,
|
|
94
|
+
Ka as generateVariantClasses,
|
|
95
|
+
xa as getAnimateValue,
|
|
96
|
+
Na as getAvailableCategories,
|
|
97
|
+
Ga as getEffectConfigFromPresetId,
|
|
98
|
+
Wa as getInitialPageContent,
|
|
99
|
+
Ya as getNestedValue,
|
|
100
|
+
wa as getPageData,
|
|
101
|
+
za as getPageSource,
|
|
102
|
+
Ja as getPresetsByCategory,
|
|
103
|
+
Xa as hexToOKLCH,
|
|
104
|
+
ja as isAlternateMethod,
|
|
105
|
+
qa as isConfigWithVariants,
|
|
106
|
+
Qa as isPrimaryMethod,
|
|
107
|
+
Za as isValidOKLCH,
|
|
108
|
+
$a as oklchStringToRGBA,
|
|
109
|
+
as as oklchToHex,
|
|
110
|
+
ss as oklchToRGBA,
|
|
111
|
+
es as oklchToString,
|
|
112
|
+
os as parseOKLCHString,
|
|
113
|
+
ts as parseVariablesFromResolvedSource,
|
|
114
|
+
rs as processFonts,
|
|
115
|
+
ns as processTheme,
|
|
116
|
+
is as resolveStyles,
|
|
117
|
+
gs as resolveVariables,
|
|
118
|
+
ls as rgbaToOKLCH,
|
|
119
|
+
cs as rgbaToOKLCHString,
|
|
120
|
+
Ts as sanitizeBackgroundEffectConfig,
|
|
121
|
+
us as sanitizeElementKey,
|
|
122
|
+
Cs as useAuth,
|
|
123
|
+
As as useBlockContext,
|
|
124
|
+
Ss as useCommonProps,
|
|
125
|
+
Es as useContentEngine,
|
|
126
|
+
ms as useDotButton,
|
|
127
|
+
ds as useGeneratedClassName,
|
|
128
|
+
bs as useMotionComponent,
|
|
129
|
+
Ps as useStableAnimationConfig
|
|
116
130
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType, LazyExoticComponent } from 'react';
|
|
2
2
|
import { CSSStyleKeys } from '../pixel/propertyMap';
|
|
3
|
-
import {
|
|
3
|
+
import { IStudioSource, IFieldConfig } from './levoBlock';
|
|
4
4
|
export type IStyles = {
|
|
5
5
|
[key in CSSStyleKeys]?: string;
|
|
6
6
|
} & {
|
|
@@ -43,7 +43,7 @@ export interface ILevoBlockProps<ContentType = Record<string, any>> extends ILev
|
|
|
43
43
|
block_key: string;
|
|
44
44
|
block_version: string;
|
|
45
45
|
settings: ISettingsType;
|
|
46
|
-
source:
|
|
46
|
+
source: IStudioSource[];
|
|
47
47
|
}
|
|
48
48
|
export type BlockComponent = React.FC<ILevoBlockBaseProps> | LazyExoticComponent<ComponentType<ILevoBlockBaseProps<any>>>;
|
|
49
49
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../src/interfaces/block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,MAAM,OAAO,GAAG;KACnB,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM;CAC/B,GAAG;IACF,MAAM,CAAC,EAAE;SACN,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM;KAC/B,CAAC;IACF,MAAM,CAAC,EAAE;SACN,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM;KAC/B,CAAC;CACH,CAAC;AAEF,KAAK,UAAU,CAAC,CAAC,IACf,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACpB,OAAO,GAAG;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,CAAA;CAAE,GAC5C,CAAC,SAAS,MAAM,GACd;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,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;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -24,10 +24,9 @@ export interface IBlockCategory {
|
|
|
24
24
|
description: string;
|
|
25
25
|
media?: any[];
|
|
26
26
|
}
|
|
27
|
-
export declare const BlockSourceModuleList: readonly ["collection", "event", "blog", "context", "form"];
|
|
27
|
+
export declare const BlockSourceModuleList: readonly ["collection", "event", "blog", "community", "context", "form"];
|
|
28
28
|
export type IStudioSource = {
|
|
29
29
|
id?: string;
|
|
30
|
-
workspace_id: string;
|
|
31
30
|
module: (typeof BlockSourceModuleList)[number];
|
|
32
31
|
identifier: string;
|
|
33
32
|
field_key: string;
|
|
@@ -45,11 +44,7 @@ export type IStudioSource = {
|
|
|
45
44
|
filters?: string[];
|
|
46
45
|
created_at?: string;
|
|
47
46
|
updated_at?: string;
|
|
48
|
-
};
|
|
49
|
-
export type IBlockSource = IStudioSource & {
|
|
50
47
|
block_instance_id?: string;
|
|
51
|
-
};
|
|
52
|
-
export type IPageSource = IStudioSource & {
|
|
53
48
|
page_id?: string;
|
|
54
49
|
};
|
|
55
50
|
export type ISettingsField = {
|
|
@@ -183,7 +178,7 @@ export interface IBlockInstance {
|
|
|
183
178
|
title: string;
|
|
184
179
|
status: string;
|
|
185
180
|
content: Record<string, any>;
|
|
186
|
-
source:
|
|
181
|
+
source: IStudioSource[];
|
|
187
182
|
settings: {
|
|
188
183
|
[key: string]: any;
|
|
189
184
|
sources?: never;
|
|
@@ -201,6 +196,7 @@ export interface IBlockInstance {
|
|
|
201
196
|
created_at: string;
|
|
202
197
|
updated_at: string;
|
|
203
198
|
deleted_at: any;
|
|
199
|
+
site_version: "v1" | "v2";
|
|
204
200
|
}
|
|
205
201
|
export interface IMyCategory {
|
|
206
202
|
name: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"levoBlock.d.ts","sourceRoot":"","sources":["../../src/interfaces/levoBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC;IACb,MAAM,EAAE,GAAG,CAAC;CACb;AAED,MAAM,WAAW,MAAM;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,C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MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,GAAG,CAAC;IAChB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG;IACpD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -1,194 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { ISite, ISiteStyleConfig } from './sites';
|
|
3
|
-
import { IBlockInstance, IBlockSource, IPageSource } from './levoBlock';
|
|
4
|
-
export interface IPageSpeedData {
|
|
5
|
-
audit_id: string;
|
|
6
|
-
mobile: Scores;
|
|
7
|
-
desktop: Scores;
|
|
8
|
-
completed_at: string;
|
|
9
|
-
}
|
|
10
|
-
interface Scores {
|
|
11
|
-
performance: number;
|
|
12
|
-
seo: number;
|
|
13
|
-
"best-practices": number;
|
|
14
|
-
accessibility: number;
|
|
15
|
-
}
|
|
16
|
-
export interface IStudioTags {
|
|
17
|
-
id: string;
|
|
18
|
-
title: string;
|
|
19
|
-
slug: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IPageStatMetric {
|
|
22
|
-
current: number | null;
|
|
23
|
-
past: number | null;
|
|
24
|
-
change: number | null;
|
|
25
|
-
}
|
|
26
|
-
export interface IPageSettings {
|
|
27
|
-
structured_data_json?: string;
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}
|
|
30
|
-
export interface ILocalizedPage {
|
|
31
|
-
id: string;
|
|
32
|
-
language: string;
|
|
33
|
-
title: string;
|
|
34
|
-
}
|
|
35
|
-
export interface IPage {
|
|
36
|
-
id: string;
|
|
37
|
-
workspace_id: string;
|
|
38
|
-
site_id: string;
|
|
39
|
-
site_version?: "v1" | "v2";
|
|
40
|
-
title: string;
|
|
41
|
-
description: string;
|
|
42
|
-
key: string;
|
|
43
|
-
url: string;
|
|
44
|
-
live_url: string;
|
|
45
|
-
domain: string;
|
|
46
|
-
status: "published" | "draft";
|
|
47
|
-
meta: IPageMeta;
|
|
48
|
-
tags: IStudioTags[];
|
|
49
|
-
pagespeed_score: IPageSpeedData;
|
|
50
|
-
access: IPageAccess[];
|
|
51
|
-
settings: IPageSettings;
|
|
52
|
-
parent_id?: string;
|
|
53
|
-
language?: string;
|
|
54
|
-
is_generating?: boolean;
|
|
55
|
-
localized_pages?: ILocalizedPage[];
|
|
56
|
-
style_config?: ISiteStyleConfig | null;
|
|
57
|
-
countries?: string[];
|
|
58
|
-
theme: {
|
|
59
|
-
colors: {
|
|
60
|
-
brand: {
|
|
61
|
-
main: string;
|
|
62
|
-
foreground: string;
|
|
63
|
-
background: string;
|
|
64
|
-
};
|
|
65
|
-
brandSecondary: {
|
|
66
|
-
main: string;
|
|
67
|
-
foreground: string;
|
|
68
|
-
background: string;
|
|
69
|
-
};
|
|
70
|
-
text1: string;
|
|
71
|
-
text2: string;
|
|
72
|
-
text3: string;
|
|
73
|
-
[x: string]: any;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
block_count: number;
|
|
77
|
-
variable_count: number;
|
|
78
|
-
source_count: number;
|
|
79
|
-
url_count: number;
|
|
80
|
-
created_at: string;
|
|
81
|
-
updated_at: string;
|
|
82
|
-
source?: (IPageSource | IBlockSource)[];
|
|
83
|
-
kind: IPageKind;
|
|
84
|
-
sample_url: string;
|
|
85
|
-
insights: {
|
|
86
|
-
bounce_rate: IPageStatMetric;
|
|
87
|
-
page_views: IPageStatMetric;
|
|
88
|
-
scroll_depth: IPageStatMetric;
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
export interface IPageMeta {
|
|
92
|
-
meta_title: string;
|
|
93
|
-
meta_description: string;
|
|
94
|
-
og_title: string;
|
|
95
|
-
og_description: string;
|
|
96
|
-
og_image: IMediaObject | null;
|
|
97
|
-
og_url: string;
|
|
98
|
-
keywords: string;
|
|
99
|
-
disable_indexing: boolean;
|
|
100
|
-
}
|
|
101
|
-
export type IPageKind = "blog.page" | "collection.page" | "event.page" | "static";
|
|
102
|
-
export interface IPageExpanded extends IPage {
|
|
103
|
-
source: IPageSource[];
|
|
104
|
-
kind: IPageKind;
|
|
105
|
-
blocks: (IBlockInstance & {
|
|
106
|
-
isPreview?: boolean;
|
|
107
|
-
})[];
|
|
108
|
-
access: IPageAccess[];
|
|
109
|
-
}
|
|
110
|
-
export interface IPageFromPath {
|
|
111
|
-
workspace: IWorkspace;
|
|
112
|
-
site: ISite;
|
|
113
|
-
query: Record<string, string>;
|
|
114
|
-
data: IPageExpanded | null;
|
|
115
|
-
access: IPageAccessCheck | null;
|
|
116
|
-
}
|
|
117
|
-
export interface IPageAccessGatingOptions {
|
|
118
|
-
collection: string;
|
|
119
|
-
field: string;
|
|
120
|
-
condition?: LevoQuery.Where;
|
|
121
|
-
default_value?: Record<string, any>;
|
|
122
|
-
hidden?: string[];
|
|
123
|
-
content?: {
|
|
124
|
-
entryNotFound?: string;
|
|
125
|
-
conditionNotFulfilled?: string;
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
export declare const IMembershipAuthenticationMethods: readonly ["linkedin", "google", "oauth", "microsoft", "otp", "whatsapp", "magiclink", "password"];
|
|
129
|
-
export interface IPageAccessAuthenticationOptions {
|
|
130
|
-
methods: (typeof IMembershipAuthenticationMethods)[number][];
|
|
131
|
-
primary_method: (typeof IMembershipAuthenticationMethods)[number];
|
|
132
|
-
}
|
|
133
|
-
export type IPageAccessGating = {
|
|
134
|
-
kind: "gating";
|
|
135
|
-
options: IPageAccessGatingOptions;
|
|
136
|
-
};
|
|
137
|
-
export type IPageAccessAuthentication = {
|
|
138
|
-
kind: "authentication";
|
|
139
|
-
options: IPageAccessAuthenticationOptions;
|
|
140
|
-
};
|
|
141
|
-
export type IPageAccess = (IPageAccessGating | IPageAccessAuthentication) & {
|
|
142
|
-
enabled: boolean;
|
|
143
|
-
};
|
|
144
|
-
export type IPageAccessAuthenticationCodes =
|
|
145
|
-
/**
|
|
146
|
-
* if `options.methods` is empty
|
|
147
|
-
*/
|
|
148
|
-
"authentication.NOT_CONFIGURED"
|
|
149
|
-
/**
|
|
150
|
-
* if `getNullableAccount` returns `null`, when `kind: authentication` is not optional
|
|
151
|
-
*/
|
|
152
|
-
| "authentication.NOT_LOGGED_IN" | "authentication.SUCCESS";
|
|
153
|
-
export type IPageAccessGatingCodes =
|
|
154
|
-
/**
|
|
155
|
-
* if `options.collection` is empty
|
|
156
|
-
*/
|
|
157
|
-
"gating.NOT_CONFIGURED"
|
|
158
|
-
/**
|
|
159
|
-
* if not `email` is given, and it could not fetched with authentication also
|
|
160
|
-
*/
|
|
161
|
-
| "gating.IDENTIFIER_NOT_FOUND"
|
|
162
|
-
/**
|
|
163
|
-
* if `options.collection` does not have entry with the given `email`
|
|
164
|
-
*/
|
|
165
|
-
| "gating.ENTRY_NOT_FOUND"
|
|
166
|
-
/**
|
|
167
|
-
* if `options.collection` has entry, but doesn't pass the `options.condition` criteria
|
|
168
|
-
*/
|
|
169
|
-
| "gating.ENTRY_CONDITION_NOT_FULFILLED" | "gating.SUCCESS";
|
|
170
|
-
export interface IPageAccessCheck {
|
|
171
|
-
has_access: boolean;
|
|
172
|
-
code?: IPageAccessAuthenticationCodes | IPageAccessGatingCodes;
|
|
173
|
-
message: string;
|
|
174
|
-
options?: Pick<IPageAccessGatingOptions, "collection" | "field" | "content"> | IPageAccessAuthenticationOptions;
|
|
175
|
-
}
|
|
176
|
-
export interface ISitemap {
|
|
177
|
-
created_at: string;
|
|
178
|
-
filename: string;
|
|
179
|
-
id: string;
|
|
180
|
-
location: string;
|
|
181
|
-
name: string;
|
|
182
|
-
page_id: string | null;
|
|
183
|
-
path: string;
|
|
184
|
-
updated_at: string;
|
|
185
|
-
url_count: number;
|
|
186
|
-
workspace_id: string;
|
|
187
|
-
}
|
|
188
|
-
export interface ISitemapsSettings {
|
|
189
|
-
allow: string[];
|
|
190
|
-
disallow: string[];
|
|
191
|
-
sitemaps: string[];
|
|
192
|
-
}
|
|
193
|
-
export {};
|
|
1
|
+
export * from './sites';
|
|
194
2
|
//# sourceMappingURL=site.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../../src/interfaces/site.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|