@levo-so/studio 0.1.59 → 0.1.61

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.
Files changed (121) hide show
  1. package/dist/{Beams-0Cg_3upg.js → Beams-sKsW_tr4.js} +46 -55
  2. package/dist/{Dots-turX9wMO.js → Dots-BEIutbKS.js} +44 -40
  3. package/dist/{Gradient-Be4Kqh_1.js → Gradient-DAR7R3Mz.js} +2 -2
  4. package/dist/Grid-BuKIXWMJ.js +174 -0
  5. package/dist/MessageCard-C8v6oHmf.js +45 -0
  6. package/dist/{Waves-DL4kuojY.js → Waves-C8qlIS1W.js} +29 -80
  7. package/dist/bridge/Highlighter.d.ts +3 -5
  8. package/dist/bridge/StudioBlockPreview.d.ts +1 -0
  9. package/dist/bridge/StudioPagePreview.d.ts +2 -2
  10. package/dist/bridge/StudioPreview.d.ts +1 -1
  11. package/dist/bridge/constants.d.ts +2 -0
  12. package/dist/bridge/hooks/useElementTracker.d.ts +9 -0
  13. package/dist/bridge/index.d.ts +3 -3
  14. package/dist/bridge/utils.d.ts +1 -4
  15. package/dist/components/AnimatedBlock.d.ts +50 -0
  16. package/dist/components/backgroundPresets/exports.d.ts +1 -1
  17. package/dist/components/backgroundPresets/presetSystem.d.ts +2 -2
  18. package/dist/components/bookingCard/BookingCard.d.ts +65 -0
  19. package/dist/components/bookingCard/index.d.ts +2 -0
  20. package/dist/components/bookingModal/BookingConfirmation.d.ts +48 -0
  21. package/dist/components/bookingModal/BookingModal.d.ts +19 -0
  22. package/dist/components/bookingModal/BookingSummary.d.ts +34 -0
  23. package/dist/components/bookingModal/index.d.ts +4 -0
  24. package/dist/components/index.d.ts +1 -0
  25. package/dist/components/integrationFilters/FieldRenderer.d.ts +3 -0
  26. package/dist/components/integrationFilters/IntegrationFilters.d.ts +1 -1
  27. package/dist/components/integrationFilters/fields/DropdownField.d.ts +1 -1
  28. package/dist/components/integrationFilters/fields/TextField.d.ts +1 -1
  29. package/dist/components/registerModal/AttendeeForm.d.ts +27 -0
  30. package/dist/components/registerModal/CouponView.d.ts +14 -0
  31. package/dist/components/registerModal/RegisterModal.d.ts +2 -1
  32. package/dist/components/registerModal/TicketSelectionStep.d.ts +15 -0
  33. package/dist/components/registerModal/utils.d.ts +85 -1
  34. package/dist/components/stripePaymentModal/StripePaymentModal.d.ts +22 -0
  35. package/dist/components/stripePaymentModal/index.d.ts +3 -0
  36. package/dist/components/ui/Calendar.d.ts +1 -1
  37. package/dist/components/ui/base/avatar.d.ts +13 -0
  38. package/dist/components/ui/base/index.d.ts +3 -0
  39. package/dist/components/ui/base/input.d.ts +1 -1
  40. package/dist/components/ui/base/skeleton.d.ts +3 -0
  41. package/dist/components/ui/base/textarea.d.ts +4 -0
  42. package/dist/components/ui/base/tooltip.d.ts +17 -0
  43. package/dist/components/ui/form/FormTextarea.d.ts +15 -0
  44. package/dist/components/ui/index.d.ts +3 -0
  45. package/dist/components/withBlockProps.d.ts +6 -14
  46. package/dist/constants/animation.d.ts +10 -0
  47. package/dist/contentEngine/content.d.ts +8 -3
  48. package/dist/contentEngine/index.d.ts +3 -3
  49. package/dist/contentEngine/sourceFetcher.d.ts +1 -1
  50. package/dist/contentEngine/themeUtils.d.ts +13 -0
  51. package/dist/contentEngine/types.d.ts +1 -0
  52. package/dist/contentEngine/useContextEngine.d.ts +11 -0
  53. package/dist/context/ForumContext.d.ts +48 -0
  54. package/dist/core/AccessManager/index.d.ts +1 -1
  55. package/dist/core/LevoBlock.d.ts +3 -2
  56. package/dist/core/LevoPage.d.ts +2 -2
  57. package/dist/core/index.d.ts +1 -1
  58. package/dist/elements/AlertDialog/index.d.ts +23 -0
  59. package/dist/elements/Carousel.d.ts +10 -2
  60. package/dist/elements/Tabs.d.ts +1 -1
  61. package/dist/elements/UserMenu.d.ts +1 -1
  62. package/dist/elements/accordion/index.d.ts +1 -1
  63. package/dist/elements/dialog/index.d.ts +1 -1
  64. package/dist/elements/forum/ForumPost.d.ts +18 -0
  65. package/dist/elements/forum/ForumPostContentRenderer.d.ts +8 -0
  66. package/dist/elements/forum/SearchInput.d.ts +5 -0
  67. package/dist/elements/forum/categoryFilter/CategoryFilter.d.ts +16 -0
  68. package/dist/elements/forum/categoryFilter/index.d.ts +2 -0
  69. package/dist/elements/forum/comments/Comment.d.ts +14 -0
  70. package/dist/elements/forum/comments/Comments.d.ts +9 -0
  71. package/dist/elements/forum/comments/ReplyBox.d.ts +11 -0
  72. package/dist/elements/forum/comments/commentUtility.d.ts +25 -0
  73. package/dist/elements/forum/comments/index.d.ts +2 -0
  74. package/dist/elements/forum/createForumPost/CreateForumPost.d.ts +9 -0
  75. package/dist/elements/forum/createForumPost/CreateForumPostModal.d.ts +87 -0
  76. package/dist/elements/forum/createForumPost/index.d.ts +2 -0
  77. package/dist/elements/forum/index.d.ts +8 -0
  78. package/dist/elements/forum/restrictionOverlays/CommentsRestrictionOverlay.d.ts +16 -0
  79. package/dist/elements/forum/restrictionOverlays/JoinRequestForm.d.ts +14 -0
  80. package/dist/elements/forum/restrictionOverlays/PendingRequestState.d.ts +11 -0
  81. package/dist/elements/forum/restrictionOverlays/PostsRestrictionOverlay.d.ts +16 -0
  82. package/dist/elements/forum/restrictionOverlays/index.d.ts +5 -0
  83. package/dist/elements/forum/utility/Video.d.ts +16 -0
  84. package/dist/elements/forum/utility/index.d.ts +49 -0
  85. package/dist/elements/index.d.ts +10 -9
  86. package/dist/elements-BxhlsyhI.js +9 -0
  87. package/dist/hooks/index.d.ts +3 -0
  88. package/dist/hooks/useLogin.d.ts +1 -1
  89. package/dist/hooks/useStripePayment.d.ts +49 -0
  90. package/dist/index-BJrh8CwF.js +16197 -0
  91. package/dist/{index-BdswdesP.js → index-BYXw6aHi.js} +3 -4
  92. package/dist/index-CV5mr-8e.js +365 -0
  93. package/dist/index-CXtfbmpx.js +23 -0
  94. package/dist/index-CgUU2EbC.js +765 -0
  95. package/dist/index-DsAqikcl.js +29 -0
  96. package/dist/index-DxsNKR4p.js +56 -0
  97. package/dist/{index-DHHPZcEh.js → index-IcG2wuuE.js} +1 -8
  98. package/dist/index.d.ts +16 -13
  99. package/dist/index.js +159 -107
  100. package/dist/interfaces/block.d.ts +2 -2
  101. package/dist/interfaces/levoBlock.d.ts +64 -10
  102. package/dist/interfaces/site.d.ts +1 -193
  103. package/dist/interfaces/sites.d.ts +201 -3
  104. package/dist/interfaces/theme.d.ts +2 -0
  105. package/dist/pixel/parserUtil.d.ts +1 -0
  106. package/dist/providers/AuthProvider.d.ts +1 -0
  107. package/dist/providers/BlockContext.d.ts +2 -1
  108. package/dist/providers/LazyMotionProvider.d.ts +15 -0
  109. package/dist/providers/index.d.ts +1 -0
  110. package/dist/studio.css +1 -1
  111. package/dist/utils/colorUtils.d.ts +7 -0
  112. package/dist/utils/getKeysWithValue.d.ts +1 -1
  113. package/dist/utils/string.d.ts +7 -0
  114. package/dist/utils/withBlockPropsUtils.d.ts +6 -55
  115. package/package.json +13 -16
  116. package/dist/Grid-B0vqOT42.js +0 -184
  117. package/dist/MessageCard-CCngWCHS.js +0 -53
  118. package/dist/components/withBlockProps copy.d.ts +0 -61
  119. package/dist/index-CPJI9a7D.js +0 -13503
  120. package/dist/index-CmNhuPZp.js +0 -34
  121. package/dist/index-kVKDoWCh.js +0 -57
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
+ import { useEffect as n } from "react";
4
+ import { b as l, u as c, D as d, d as m, e as u, f as g, g as h } from "./index-BJrh8CwF.js";
5
+ import { L as f } from "./index-CgUU2EbC.js";
6
+ const p = "_container_301k2_1", a = {
7
+ container: p
8
+ }, x = ({ config: o }) => {
9
+ const { closeModal: i } = l(), { isLoggedIn: r } = c();
10
+ return n(() => {
11
+ r && (o?.redirect_uri && (window.location.href = o.redirect_uri), i());
12
+ }, [r, o?.redirect_uri, i]), /* @__PURE__ */ e(d, { open: !0, onOpenChange: (s) => !s && i(), children: /* @__PURE__ */ t(m, { className: "sm:max-w-md", children: [
13
+ /* @__PURE__ */ t(u, { children: [
14
+ /* @__PURE__ */ e(g, { children: "Login" }),
15
+ /* @__PURE__ */ e(h, {})
16
+ ] }),
17
+ /* @__PURE__ */ e("div", { className: a.container, children: /* @__PURE__ */ e(
18
+ f,
19
+ {
20
+ oAuthTitle: o?.oAuthTitle || "Studio",
21
+ className: a.form,
22
+ oAuthMethods: ["google"]
23
+ }
24
+ ) })
25
+ ] }) });
26
+ };
27
+ export {
28
+ x as default
29
+ };
@@ -0,0 +1,56 @@
1
+ "use client";
2
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
3
+ import { CollectionFormBuilder as a } from "@levo-so/react-collection";
4
+ import { A as d } from "./index-IcG2wuuE.js";
5
+ import { M as m } from "./index-CXtfbmpx.js";
6
+ import { u } from "./index-BJrh8CwF.js";
7
+ const h = "_header_emo7t_1", _ = "_title_emo7t_8", f = "_subtitle_emo7t_15", C = "_formContainer_emo7t_21", t = {
8
+ header: h,
9
+ title: _,
10
+ subtitle: f,
11
+ formContainer: C
12
+ }, y = ({
13
+ logo: n,
14
+ siteName: r,
15
+ workspaceId: c,
16
+ options: o,
17
+ onSuccess: l
18
+ }) => {
19
+ const { account: i } = u();
20
+ return /* @__PURE__ */ s(d, { logo: n, siteName: r, maxWidth: "md", children: [
21
+ /* @__PURE__ */ s("div", { className: t.header, children: [
22
+ /* @__PURE__ */ e("h1", { className: t.title, children: "Access Required" }),
23
+ /* @__PURE__ */ e(
24
+ "div",
25
+ {
26
+ className: t.subtitle,
27
+ dangerouslySetInnerHTML: {
28
+ __html: o?.content?.entryNotFound ?? `Please fill out this form to access content on <strong>${r}</strong>`
29
+ }
30
+ }
31
+ )
32
+ ] }),
33
+ /* @__PURE__ */ e(m, {}),
34
+ i && /* @__PURE__ */ e("div", { className: t.formContainer, children: /* @__PURE__ */ e(
35
+ a,
36
+ {
37
+ collection_id: o?.collection || "",
38
+ workspace_id: c,
39
+ uiConfig: {
40
+ hideFormHeading: !0,
41
+ hideSectionHeadings: !0
42
+ },
43
+ submitButtonConfig: {
44
+ show: !0,
45
+ text: "Submit"
46
+ },
47
+ account: i,
48
+ hiddenFields: o?.hidden ?? [],
49
+ onSuccess: l
50
+ }
51
+ ) })
52
+ ] });
53
+ };
54
+ export {
55
+ y as default
56
+ };
@@ -22,14 +22,7 @@ const e = "_container_t4trl_1", _ = "_card_t4trl_16", i = "_cardSm_t4trl_27", m
22
22
  lg: t.cardLg
23
23
  }[a];
24
24
  return /* @__PURE__ */ c("div", { className: t.container, children: /* @__PURE__ */ l("div", { className: `${t.card} ${d} ${s}`, children: [
25
- r && /* @__PURE__ */ c("div", { className: t.logoContainer, children: /* @__PURE__ */ c(
26
- "img",
27
- {
28
- className: t.logo,
29
- src: r,
30
- alt: o || "Site logo"
31
- }
32
- ) }),
25
+ r && /* @__PURE__ */ c("div", { className: t.logoContainer, children: /* @__PURE__ */ c("img", { className: t.logo, src: r, alt: o || "Site logo" }) }),
33
26
  /* @__PURE__ */ c("div", { className: t.content, children: n })
34
27
  ] }) });
35
28
  };
package/dist/index.d.ts CHANGED
@@ -1,19 +1,22 @@
1
- export * from './elements';
2
- export * from './components';
3
- export * from './providers';
4
- export * from './utils';
5
- export * from './utils/colorUtils';
6
- export * from './interfaces';
7
1
  export * from './blockSmith';
8
- export * from './core';
9
- export * from './pixel/optionsMap';
10
- export * from './pixel/propertyMap';
11
- export * from './pixel/constants/colorOptions';
12
2
  export * from './bridge';
13
- export * from './contentEngine';
14
- export * from './theme/defaultTheme';
3
+ export * from './components';
15
4
  export * from './components/backgroundPresets/exports';
5
+ export { default as IntegrationFilters } from './components/integrationFilters/IntegrationFilters';
16
6
  export * from './components/registerModal/RegisterModal';
7
+ export * from './constants/animation';
17
8
  export * from './constants/authentication';
18
- export { default as IntegrationFilters } from './components/integrationFilters/IntegrationFilters';
9
+ export * from './contentEngine';
10
+ export * from './context/ForumContext';
11
+ export * from './core';
12
+ export * from './elements';
13
+ export * from './hooks';
14
+ export * from './interfaces';
15
+ export * from './pixel/constants/colorOptions';
16
+ export * from './pixel/optionsMap';
17
+ export * from './pixel/propertyMap';
18
+ export * from './providers';
19
+ export * from './theme/defaultTheme';
20
+ export * from './utils';
21
+ export * from './utils/colorUtils';
19
22
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aX as e, aU as o, s as t, q as r, A as n, r as i, K as g, aV as l, aL as c, aK as T, b as C, d as u, j as A, o as E, p as S, x as d, N as m, ah as h, ao as P, B as M, c as p, J as B, e as R, f as H, g as L, i as f, h as I, C as v, au as _, aJ as O, Q as b, E as k, F as y, H as V, ai as D, n as F, k as U, l as K, I as N, ae as x, am as G, an as W, w as Y, as as w, M as z, aM as J, aN as X, aT as j, aW as q, v as Q, P as Z, t as $, at as aa, aS as sa, S as ea, av as oa, af as ta, ag as ra, G as na, z as ia, y as ga, D as la, T as ca, U as Ta, ap as Ca, ar as ua, ak as Aa, aq as Ea, aC as Sa, aB as da, R as ma, ad as ha, Z as Pa, al as Ma, a0 as pa, aj as Ba, aH as Ra, aG as Ha, $ as La, _ as fa, aP as Ia, aQ as va, aA as _a, V as Oa, aE as ba, ay as ka, aO as ya, a9 as Va, aZ as Da, W as Fa, aY as Ua, a8 as Ka, a7 as Na, ac as xa, ab as Ga, a5 as Wa, aa as Ya, az as wa, aF as za, aI as Ja, ax as Xa, aw as ja, a4 as qa, a6 as Qa, aR as Za, X as $a, u as as, O as ss, a3 as es, aD as os, a1 as ts, a2 as rs, Y as ns } from "./index-CPJI9a7D.js";
1
+ import { A as e, a0 as o, at as t, ar as r, aq as n, as as i, bu as l, a1 as b, q as g, t as T, v as c, r as m, s as u, L as C, K as S, B as P, aE as A, b3 as E, bd as d, bj as p, bl as B, bv as h, bq as L, am as R, n as I, o as v, p as F, au as M, av as k, G as y, ax as _, ay as O, aC as H, aD as f, az as D, aB as V, aA as U, aI as N, b2 as x, aJ as K, aN as G, aF as W, aK as z, l as q, Y as w, by as J, Z as Y, _ as j, X as Q, bz as X, aG as Z, aH as $, H as aa, J as sa, aL as ea, ak as oa, b4 as ta, br as ra, b5 as na, b6 as ia, b7 as la, w as ba, I as ga, aP as Ta, bn as ca, bx as ma, ao as ua, ap as Ca, b8 as Sa, M as Pa, b9 as Aa, Q as Ea, R as da, $ as pa, a2 as Ba, aQ as ha, bc as La, ba as Ra, bb as Ia, aZ as va, aV as Fa, aX as Ma, a$ as ka, aU as ya, a_ as _a, aM as Oa, b0 as Ha, b1 as fa, aW as Da, aR as Va, P as Ua, W as Na, aO as xa, aS as Ka, aT as Ga, be as Wa, E as za, x as qa, aY as wa, m as Ja, bo as Ya, bp as ja, bi as Qa, bg as Xa, bf as Za, bh as $a, T as as, z as ss, F as es, C as os, y as ts, bk as rs, bm as ns, an as is, bs as ls, j as bs, bt as gs, ac as Ts, ab as cs, bA as ms, bS as us, k as Cs, bF as Ss, i as Ps, ah as As, ag as Es, bE as ds, N as ps, U as Bs, a9 as hs, bB as Ls, aa as Rs, a7 as Is, O as vs, bR as Fs, bN as Ms, a4 as ks, bC as ys, a3 as _s, bM as Os, ae as Hs, af as fs, bL as Ds, bQ as Vs, bP as Us, bJ as Ns, bO as xs, a8 as Ks, ad as Gs, ai as Ws, a6 as zs, a5 as qs, bI as ws, bK as Js, V as Ys, bD as js, u as Qs, bw as Xs, bH as Zs, aj as $s, aw as ae, al as se, bG as ee, h as oe, a as te } from "./index-BJrh8CwF.js";
2
2
  export {
3
3
  e as ALTERNATE_METHOD_VALUES,
4
4
  o as ALTERNATIVE_AUTH_METHODS,
@@ -6,111 +6,163 @@ export {
6
6
  r as AccordionItem,
7
7
  n as AccordionRoot,
8
8
  i as AccordionTrigger,
9
- g as AuthProvider,
10
- l as AuthenticationOptions,
11
- c as BUILT_IN_PRESETS,
12
- T as BackgroundEffects,
13
- C as BaseButton,
14
- u as BaseContainer,
15
- A as BaseHeading,
16
- E as BaseSection,
17
- S as BaseTypography,
18
- d as BaseUserMenu,
19
- m as BlockProvider,
20
- h as BlockSourceModuleList,
21
- P as BlocksRegistry,
9
+ l as AuthProvider,
10
+ b as AuthenticationOptions,
11
+ g as Avatar,
12
+ T as AvatarFallback,
13
+ c as AvatarFallbackV2,
14
+ m as AvatarImage,
15
+ u as AvatarImageV2,
16
+ C as BUILT_IN_PRESETS,
17
+ S as BackgroundEffects,
18
+ P as BaseButton,
19
+ A as BaseContainer,
20
+ E as BaseHeading,
21
+ d as BaseSection,
22
+ p as BaseTypography,
23
+ B as BaseUserMenu,
24
+ h as BlockProvider,
25
+ L as BlockSourceModuleList,
26
+ R as BlocksRegistry,
27
+ I as BookingConfirmation,
28
+ v as BookingModal,
29
+ F as BookingSummary,
22
30
  M as Box,
23
- p as Button,
24
- B as Calendar,
25
- R as Carousel,
26
- H as CarouselContent,
27
- L as CarouselItem,
28
- f as CarouselNext,
29
- I as CarouselPrevious,
30
- v as Container,
31
- _ as DATA_ATTRIBUTES,
32
- O as DEFAULT_THEME,
33
- b as DEMO_SCHEMA,
34
- k as EditForm,
35
- y as Form,
36
- V as Heading,
37
- D as IMembershipAuthenticationMethods,
38
- F as Icon,
39
- U as Iframe,
40
- K as Image,
41
- N as IntegrationFilters,
42
- x as KindList,
43
- G as LevoBlock,
44
- W as LevoPage,
45
- Y as Link,
46
- w as MESSAGE_TYPES,
47
- z as Media,
48
- J as PRESET_CATEGORIES,
49
- X as PRESET_MAP,
50
- j as PRIMARY_AUTH_METHODS,
51
- q as PRIMARY_METHOD_VALUES,
52
- Q as PopoverContent,
53
- Z as PopoverRoot,
54
- $ as PopoverTrigger,
55
- aa as PreviewHighlighter,
56
- sa as RegisterModal,
57
- ea as Section,
58
- oa as StudioPreview,
59
- ta as StudioWidgetList,
60
- ra as StudioWidgetMap,
61
- na as TabsContent,
62
- ia as TabsList,
63
- ga as TabsRoot,
64
- la as TabsTrigger,
65
- ca as Typography,
66
- Ta as UserMenu,
67
- Ca as blocksRegistry,
68
- ua as colorOptions,
69
- Aa as convertKeysToPascalCase,
70
- Ea as cssOptionsMap,
71
- Sa as fetchCollectionSchema,
72
- da as fetchSource,
73
- ma as findFieldSchema,
74
- ha as generateAccentColor,
75
- Pa as generateAnimationProps,
76
- Ma as generateDefaultContent,
77
- pa as generateElementClassName,
78
- Ba as generateSchemaFromJSX,
79
- Ra as generateThemeStyles,
80
- Ha as generateThemeVariables,
81
- La as generateVariantClasses,
82
- fa as getAnimateValue,
83
- Ia as getAvailableCategories,
84
- va as getEffectConfigFromPresetId,
85
- _a as getInitialPageContent,
86
- Oa as getNestedValue,
87
- ba as getPageData,
88
- ka as getPageSource,
89
- ya as getPresetsByCategory,
90
- Va as hexToOKLCH,
91
- Da as isAlternateMethod,
92
- Fa as isConfigWithVariants,
93
- Ua as isPrimaryMethod,
94
- Ka as isValidOKLCH,
95
- Na as oklchStringToRGBA,
96
- xa as oklchToHex,
97
- Ga as oklchToRGBA,
98
- Wa as oklchToString,
99
- Ya as parseOKLCHString,
100
- wa as parseVariablesFromResolvedSource,
101
- za as processFonts,
102
- Ja as processTheme,
103
- Xa as resolveStyles,
104
- ja as resolveVariables,
105
- qa as rgbaToOKLCH,
106
- Qa as rgbaToOKLCHString,
107
- Za as sanitizeBackgroundEffectConfig,
108
- $a as sanitizeElementKey,
109
- as as useAuth,
110
- ss as useBlockContext,
111
- es as useCommonProps,
112
- os as useContentEngine,
113
- ts as useGeneratedClassName,
114
- rs as useMotionComponent,
115
- ns as useStableAnimationConfig
31
+ k as Button,
32
+ y as Calendar,
33
+ _ as Carousel,
34
+ O as CarouselContent,
35
+ H as CarouselDotButton,
36
+ f as CarouselDots,
37
+ D as CarouselItem,
38
+ V as CarouselNext,
39
+ U as CarouselPrevious,
40
+ N as CategoryFilter,
41
+ x as CommentStatusBadge,
42
+ K as Comments,
43
+ G as CommentsRestrictionOverlay,
44
+ W as Container,
45
+ z as CreateForumPost,
46
+ q as DATA_ATTRIBUTES,
47
+ w as DEFAULT_FROM_STATE,
48
+ J as DEFAULT_THEME,
49
+ Y as DEFAULT_TRANSITION,
50
+ j as DEFAULT_VIEWPORT,
51
+ Q as DEFAULT_VISIBLE_STATE,
52
+ X as DEMO_SCHEMA,
53
+ Z as EditForm,
54
+ $ as Form,
55
+ aa as FormInput,
56
+ sa as FormTextarea,
57
+ ea as ForumPost,
58
+ oa as ForumProvider,
59
+ ta as Heading,
60
+ ra as IMembershipAuthenticationMethods,
61
+ na as Icon,
62
+ ia as Iframe,
63
+ la as Image,
64
+ ba as Input,
65
+ ga as IntegrationFilters,
66
+ Ta as JoinRequestForm,
67
+ ca as KindList,
68
+ ma as LazyMotionProvider,
69
+ ua as LevoBlock,
70
+ Ca as LevoPage,
71
+ Sa as Link,
72
+ Pa as MESSAGE_TYPES,
73
+ Aa as Media,
74
+ Ea as PRESET_CATEGORIES,
75
+ da as PRESET_MAP,
76
+ pa as PRIMARY_AUTH_METHODS,
77
+ Ba as PRIMARY_METHOD_VALUES,
78
+ ha as PendingRequestState,
79
+ La as PopoverContent,
80
+ Ra as PopoverRoot,
81
+ Ia as PopoverTrigger,
82
+ va as PostActions,
83
+ Fa as PostCategory,
84
+ Ma as PostContent,
85
+ ka as PostGallery,
86
+ ya as PostHeader,
87
+ _a as PostLink,
88
+ Oa as PostLinkWrapper,
89
+ Ha as PostPoll,
90
+ fa as PostStatusBadge,
91
+ Da as PostTitle,
92
+ Va as PostsRestrictionOverlay,
93
+ Ua as PreviewHighlighter,
94
+ Na as RegisterModal,
95
+ xa as SampleCommentSkeleton,
96
+ Ka as SamplePostSkeleton,
97
+ Ga as SearchInput,
98
+ Wa as Section,
99
+ za as SimpleTooltipWrapper,
100
+ qa as Skeleton,
101
+ wa as StatContainer,
102
+ Ja as StudioPreview,
103
+ Ya as StudioWidgetList,
104
+ ja as StudioWidgetMap,
105
+ Qa as TabsContent,
106
+ Xa as TabsList,
107
+ Za as TabsRoot,
108
+ $a as TabsTrigger,
109
+ as as Tooltip,
110
+ ss as TooltipContent,
111
+ es as TooltipPortal,
112
+ os as TooltipProvider,
113
+ ts as TooltipTrigger,
114
+ rs as Typography,
115
+ ns as UserMenu,
116
+ is as blocksRegistry,
117
+ ls as colorOptions,
118
+ bs as convertKeysToPascalCase,
119
+ gs as cssOptionsMap,
120
+ Ts as fetchCollectionSchema,
121
+ cs as fetchSource,
122
+ ms as findFieldSchema,
123
+ us as generateAccentColor,
124
+ Cs as generateDefaultContent,
125
+ Ss as generateElementClassName,
126
+ Ps as generateSchemaFromJSX,
127
+ As as generateThemeStyles,
128
+ Es as generateThemeVariables,
129
+ ds as generateVariantClasses,
130
+ ps as getAvailableCategories,
131
+ Bs as getEffectConfigFromPresetId,
132
+ hs as getInitialPageContent,
133
+ Ls as getNestedValue,
134
+ Rs as getPageData,
135
+ Is as getPageSource,
136
+ vs as getPresetsByCategory,
137
+ Fs as getWcagContrast,
138
+ Ms as hexToOKLCH,
139
+ ks as isAlternateMethod,
140
+ ys as isConfigWithVariants,
141
+ _s as isPrimaryMethod,
142
+ Os as isValidOKLCH,
143
+ Hs as normalizeColorName,
144
+ fs as normalizeFontName,
145
+ Ds as oklchStringToRGBA,
146
+ Vs as oklchToHex,
147
+ Us as oklchToRGBA,
148
+ Ns as oklchToString,
149
+ xs as parseOKLCHString,
150
+ Ks as parseVariablesFromResolvedSource,
151
+ Gs as processFonts,
152
+ Ws as processTheme,
153
+ zs as resolveStyles,
154
+ qs as resolveVariables,
155
+ ws as rgbaToOKLCH,
156
+ Js as rgbaToOKLCHString,
157
+ Ys as sanitizeBackgroundEffectConfig,
158
+ js as sanitizeElementKey,
159
+ Qs as useAuth,
160
+ Xs as useBlockContext,
161
+ Zs as useCommonProps,
162
+ $s as useContentEngine,
163
+ ae as useDotButton,
164
+ se as useForumContext,
165
+ ee as useGeneratedClassName,
166
+ oe as useLogin,
167
+ te as useStripePayment
116
168
  };
@@ -1,6 +1,6 @@
1
1
  import { ComponentType, LazyExoticComponent } from 'react';
2
2
  import { CSSStyleKeys } from '../pixel/propertyMap';
3
- import { IBlockSource, IFieldConfig } from './levoBlock';
3
+ import { IFieldConfig, IStudioSource } 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: IBlockSource[];
46
+ source: IStudioSource[];
47
47
  }
48
48
  export type BlockComponent = React.FC<ILevoBlockBaseProps> | LazyExoticComponent<ComponentType<ILevoBlockBaseProps<any>>>;
49
49
  export {};
@@ -1,5 +1,5 @@
1
- import { FormVariantType } from '@levo-so/react-collection';
2
1
  import { IField, ILemaCollection, IMediaObject } from '@levo-so/core';
2
+ import { FormVariantType } from '@levo-so/react-collection';
3
3
  import { MotionProps } from 'motion/react';
4
4
  import { IStudioWidget } from './contentSchema';
5
5
  export interface IBlockLayouts {
@@ -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 = {
@@ -65,10 +60,68 @@ export type ISettingsField = {
65
60
  type MutableDeep<T> = T extends readonly (infer U)[] ? MutableDeep<U>[] : T extends object ? {
66
61
  -readonly [K in keyof T]: MutableDeep<T[K]>;
67
62
  } : T;
63
+ /**
64
+ * Valid scroll offset position strings for Motion's scroll() API
65
+ * Format: "element-position viewport-position"
66
+ * Examples: "start end" means animation starts when element's start meets viewport's end
67
+ */
68
+ type ScrollOffsetPosition = "start start" | "start center" | "start end" | "center start" | "center center" | "center end" | "end start" | "end center" | "end end" | `start ${number}%` | `center ${number}%` | `end ${number}%` | `${number}% start` | `${number}% center` | `${number}% end` | `${number}% ${number}%`;
69
+ /** Scroll animation offset configuration */
70
+ export interface ScrollAnimationOffset {
71
+ start: ScrollOffsetPosition;
72
+ end: ScrollOffsetPosition;
73
+ }
74
+ /** Animation transform properties */
75
+ export interface AnimationProperties {
76
+ opacity?: number;
77
+ scale?: number;
78
+ rotate?: number;
79
+ rotateX?: number;
80
+ rotateY?: number;
81
+ x?: number;
82
+ y?: number;
83
+ skewX?: number;
84
+ skewY?: number;
85
+ }
86
+ /** Available easing functions for tween transitions */
87
+ export type TweenEase = "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
88
+ /** Transition configuration for animations */
89
+ export interface TransitionConfig {
90
+ type?: "spring" | "tween" | "keyframes";
91
+ duration?: number;
92
+ delay?: number;
93
+ /** Easing function for tween transitions */
94
+ ease?: TweenEase;
95
+ /** Bounce amount for spring transitions (0-1) */
96
+ bounce?: number;
97
+ }
98
+ /** Viewport trigger configuration for entry animations */
99
+ export interface ViewportConfig {
100
+ once?: boolean;
101
+ amount?: "some" | "all" | number;
102
+ margin?: string;
103
+ }
104
+ /** Entry animation configuration with from/to states */
105
+ export interface EntryAnimationConfig {
106
+ from?: AnimationProperties;
107
+ to?: AnimationProperties;
108
+ transition?: TransitionConfig;
109
+ viewport?: ViewportConfig;
110
+ }
111
+ /** Scroll-linked animation configuration with from/to states */
112
+ export interface ScrollAnimationConfig {
113
+ from?: AnimationProperties;
114
+ to?: AnimationProperties;
115
+ offset?: ScrollAnimationOffset;
116
+ }
117
+ /** Animation configuration interface */
68
118
  export interface AnimationConfig {
69
- initial?: MutableDeep<MotionProps["initial"]>;
119
+ entry?: EntryAnimationConfig;
70
120
  exit?: MutableDeep<MotionProps["exit"]>;
71
- whileHover?: MutableDeep<MotionProps["whileHover"]>;
121
+ whileHover?: AnimationProperties & {
122
+ transition?: TransitionConfig;
123
+ };
124
+ scroll?: ScrollAnimationConfig;
72
125
  }
73
126
  export interface BackgroundEffectConfig {
74
127
  type: "beams" | "dots" | "grid" | "gradient" | "waves";
@@ -183,7 +236,7 @@ export interface IBlockInstance {
183
236
  title: string;
184
237
  status: string;
185
238
  content: Record<string, any>;
186
- source: IBlockSource[];
239
+ source: IStudioSource[];
187
240
  settings: {
188
241
  [key: string]: any;
189
242
  sources?: never;
@@ -201,6 +254,7 @@ export interface IBlockInstance {
201
254
  created_at: string;
202
255
  updated_at: string;
203
256
  deleted_at: any;
257
+ site_version: "v1" | "v2";
204
258
  }
205
259
  export interface IMyCategory {
206
260
  name: string;