@levo-so/studio 0.1.7 → 0.1.52

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 (51) hide show
  1. package/dist/{Beams-CS3YOY03.js → Beams-CzAwDqou.js} +1 -1
  2. package/dist/{Dots-ZOcduxeG.js → Dots-BgmklWE-.js} +1 -1
  3. package/dist/{Gradient-cEvo0m5K.js → Gradient-Cr9szXfL.js} +1 -1
  4. package/dist/{Grid-IxhqSV77.js → Grid-Cd1uINyX.js} +1 -1
  5. package/dist/{Waves-Dc0a0Nd8.js → Waves-Q3gpYuM2.js} +57 -13
  6. package/dist/bridge/StudioBlockPreview.d.ts +2 -1
  7. package/dist/bridge/StudioPagePreview.d.ts +4 -1
  8. package/dist/bridge/StudioPreview.d.ts +4 -1
  9. package/dist/bridge/constants.d.ts +12 -0
  10. package/dist/bridge/index.d.ts +1 -0
  11. package/dist/bridge/utils.d.ts +1 -0
  12. package/dist/components/LoginForm/GoogleOAuth.d.ts +1 -1
  13. package/dist/components/accessCard/card/index.d.ts +1 -1
  14. package/dist/components/backgroundPresets/Gradient.d.ts +1 -1
  15. package/dist/components/backgroundPresets/presetSystem.d.ts +1 -1
  16. package/dist/components/registerModal/RegisterModal.d.ts +6 -0
  17. package/dist/components/registerModal/RegistrationConfirmationModal.d.ts +8 -0
  18. package/dist/components/registerModal/useCustomDisclosure.d.ts +18 -0
  19. package/dist/components/registerModal/utils.d.ts +2 -0
  20. package/dist/contentEngine/config.d.ts +5 -1
  21. package/dist/contentEngine/content.d.ts +30 -6
  22. package/dist/contentEngine/getPage.d.ts +3 -1
  23. package/dist/contentEngine/head_code.d.ts +2 -2
  24. package/dist/contentEngine/sourceFetcher.d.ts +8 -5
  25. package/dist/contentEngine/types.d.ts +2 -1
  26. package/dist/contentEngine/urlBuilder.d.ts +7 -1
  27. package/dist/core/AccessManager/index.d.ts +4 -2
  28. package/dist/core/LevoPage.d.ts +7 -4
  29. package/dist/elements/Container.d.ts +1 -0
  30. package/dist/elements/accordion/index.d.ts +1 -1
  31. package/dist/elements/dialog/index.d.ts +1 -1
  32. package/dist/elements/popover/index.d.ts +1 -1
  33. package/dist/index-4Hm8Nq1K.js +54 -0
  34. package/dist/index-BEa73Nqa.js +49 -0
  35. package/dist/index-CICXXChN.js +10185 -0
  36. package/dist/index-CpL9yDVW.js +30 -0
  37. package/dist/index-DHHPZcEh.js +38 -0
  38. package/dist/index-FPch-n1w.js +23 -0
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.js +82 -80
  41. package/dist/interfaces/block.d.ts +1 -1
  42. package/dist/interfaces/levoBlock.d.ts +8 -4
  43. package/dist/interfaces/site.d.ts +6 -7
  44. package/dist/providers/BlockContext.d.ts +1 -0
  45. package/dist/studio.css +1 -0
  46. package/dist/utils/index.d.ts +0 -1
  47. package/dist/utils/withBlockPropsUtils.d.ts +1 -1
  48. package/package.json +8 -7
  49. package/dist/index-CS6HcUVk.js +0 -9640
  50. package/dist/index.css +0 -1
  51. package/dist/utils/levoClient.d.ts +0 -5
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as C, jsxs as a } from "react/jsx-runtime";
3
3
  import r from "react";
4
- import { m as c } from "./index-CS6HcUVk.js";
4
+ import { m as c } from "./index-CICXXChN.js";
5
5
  const h = r.memo(
6
6
  ({
7
7
  className: o,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as l, jsxs as w } from "react/jsx-runtime";
3
3
  import h from "react";
4
- import { m as x } from "./index-CS6HcUVk.js";
4
+ import { m as x } from "./index-CICXXChN.js";
5
5
  const g = h.memo(
6
6
  ({
7
7
  className: i,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import o from "react";
4
- import { m as r } from "./index-CS6HcUVk.js";
4
+ import { m as r } from "./index-CICXXChN.js";
5
5
  const s = o.memo(
6
6
  ({
7
7
  className: e,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as g } from "react/jsx-runtime";
3
3
  import r from "react";
4
- import { m as d } from "./index-CS6HcUVk.js";
4
+ import { m as d } from "./index-CICXXChN.js";
5
5
  const p = r.memo(
6
6
  ({
7
7
  className: e,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as a } from "react/jsx-runtime";
3
3
  import u from "react";
4
- import { m as d } from "./index-CS6HcUVk.js";
4
+ import { m as d } from "./index-CICXXChN.js";
5
5
  const g = u.memo(
6
6
  ({
7
7
  className: p,
@@ -51,18 +51,62 @@ const g = u.memo(
51
51
  xmlns: "http://www.w3.org/2000/svg",
52
52
  children: [
53
53
  /* @__PURE__ */ a("defs", { children: [
54
- /* @__PURE__ */ a("linearGradient", { id: "waveGradient1", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
55
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.3" }),
56
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: n, stopOpacity: "0.1" })
57
- ] }),
58
- /* @__PURE__ */ a("linearGradient", { id: "waveGradient2", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
59
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: n, stopOpacity: "0.2" }),
60
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: o, stopOpacity: "0.05" })
61
- ] }),
62
- /* @__PURE__ */ a("linearGradient", { id: "waveGradient3", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
63
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.1" }),
64
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: n, stopOpacity: "0.3" })
65
- ] })
54
+ /* @__PURE__ */ a(
55
+ "linearGradient",
56
+ {
57
+ id: "waveGradient1",
58
+ x1: "0%",
59
+ y1: "0%",
60
+ x2: "100%",
61
+ y2: "100%",
62
+ children: [
63
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.3" }),
64
+ /* @__PURE__ */ e(
65
+ "stop",
66
+ {
67
+ offset: "100%",
68
+ stopColor: n,
69
+ stopOpacity: "0.1"
70
+ }
71
+ )
72
+ ]
73
+ }
74
+ ),
75
+ /* @__PURE__ */ a(
76
+ "linearGradient",
77
+ {
78
+ id: "waveGradient2",
79
+ x1: "0%",
80
+ y1: "0%",
81
+ x2: "100%",
82
+ y2: "100%",
83
+ children: [
84
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: n, stopOpacity: "0.2" }),
85
+ /* @__PURE__ */ e("stop", { offset: "100%", stopColor: o, stopOpacity: "0.05" })
86
+ ]
87
+ }
88
+ ),
89
+ /* @__PURE__ */ a(
90
+ "linearGradient",
91
+ {
92
+ id: "waveGradient3",
93
+ x1: "0%",
94
+ y1: "0%",
95
+ x2: "100%",
96
+ y2: "100%",
97
+ children: [
98
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.1" }),
99
+ /* @__PURE__ */ e(
100
+ "stop",
101
+ {
102
+ offset: "100%",
103
+ stopColor: n,
104
+ stopOpacity: "0.3"
105
+ }
106
+ )
107
+ ]
108
+ }
109
+ )
66
110
  ] }),
67
111
  f.map((t) => /* @__PURE__ */ e(
68
112
  d.path,
@@ -1,7 +1,8 @@
1
- import { BlockComponent } from '../interfaces';
1
+ import { BlockComponent, ISite } from '../interfaces';
2
2
  import { StudioData } from './StudioPreview';
3
3
  export declare const StudioBlockPreview: React.FC<{
4
4
  blocks: Record<string, BlockComponent>;
5
5
  studioData: StudioData["blockData"] | undefined;
6
+ site: ISite;
6
7
  }>;
7
8
  //# sourceMappingURL=StudioBlockPreview.d.ts.map
@@ -1,4 +1,5 @@
1
- import { IPageExpanded } from '../interfaces';
1
+ import { IWorkspace } from '@levo-so/core';
2
+ import { IPageExpanded, ISite } from '../interfaces';
2
3
  import { ILevoPageProps } from '../core';
3
4
  import { IPageDataContext } from '../contentEngine';
4
5
  interface StudioPageData {
@@ -11,6 +12,8 @@ export declare const StudioPagePreview: React.FC<{
11
12
  blocks: ILevoPageProps["blocks"];
12
13
  renderHighlights?: boolean;
13
14
  studioData: StudioPageData | undefined;
15
+ workspace: IWorkspace;
16
+ site: ISite;
14
17
  }>;
15
18
  export {};
16
19
  //# sourceMappingURL=StudioPagePreview.d.ts.map
@@ -1,4 +1,5 @@
1
- import { IBlockInstance, IPageExpanded, ITheme, BlockComponent } from '../interfaces';
1
+ import { IWorkspace } from '@levo-so/core';
2
+ import { IBlockInstance, IPageExpanded, ITheme, BlockComponent, ISite } from '../interfaces';
2
3
  import { IPageDataContext } from '../contentEngine';
3
4
  export type StudioData = {
4
5
  pageData?: {
@@ -13,6 +14,8 @@ export type StudioData = {
13
14
  context?: IPageDataContext;
14
15
  theme?: ITheme;
15
16
  };
17
+ workspace?: IWorkspace;
18
+ site?: ISite;
16
19
  };
17
20
  export declare const StudioPreview: React.FC<{
18
21
  blocks: Record<string, BlockComponent>;
@@ -4,4 +4,16 @@ export declare const DATA_ATTRIBUTES: {
4
4
  readonly ITEM: "data-levo_group_item";
5
5
  readonly GROUP: "data-levo_group";
6
6
  };
7
+ export declare const MESSAGE_TYPES: {
8
+ readonly PREVIEW_READY: "PREVIEW_READY";
9
+ readonly PREVIEW_HOVER: "PREVIEW_HOVER";
10
+ readonly PREVIEW_SELECT: "PREVIEW_SELECT";
11
+ readonly PREVIEW_MOUSE_LEAVE: "PREVIEW_MOUSE_LEAVE";
12
+ readonly STUDIO_SELECT: "STUDIO_SELECT";
13
+ readonly STUDIO_HOVER: "STUDIO_HOVER";
14
+ readonly PREVIEW_TYPE: "PREVIEW_TYPE";
15
+ readonly LEVO_PAGE_DATA: "LEVO_PAGE_DATA";
16
+ readonly LEVO_BLOCK_DATA: "LEVO_BLOCK_DATA";
17
+ readonly FRAME_HEIGHT: "FRAME_HEIGHT";
18
+ };
7
19
  //# sourceMappingURL=constants.d.ts.map
@@ -2,4 +2,5 @@ export * from './PreviewHighlighter';
2
2
  export * from './types';
3
3
  export * from './constants';
4
4
  export * from './StudioPreview';
5
+ export { MESSAGE_TYPES } from './constants';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -3,5 +3,6 @@ export declare function getElementCoordinates(element: HTMLElement): HighlightRe
3
3
  export declare function getSelectionFromElement(element: HTMLElement): ISelection | null;
4
4
  export declare function findElementBySelection(selection: ISelection): HTMLElement | null;
5
5
  export declare function createSelectionState(element: HTMLElement, type: "selected" | "hovered"): SelectionState;
6
+ export declare function findParentElement(currentSelections: SelectionState): HTMLElement | null;
6
7
  export declare function updateSelectionRects(selections: SelectionState): SelectionState;
7
8
  //# sourceMappingURL=utils.d.ts.map
@@ -5,6 +5,6 @@ interface IGoogleOAuthProps {
5
5
  onOAuthSuccess?: () => void;
6
6
  onOAuthError?: (error?: LevoError) => void;
7
7
  }
8
- export declare const GoogleOAuth: React.FC<IGoogleOAuthProps>;
8
+ export declare const OAuthButtons: React.FC<IGoogleOAuthProps>;
9
9
  export {};
10
10
  //# sourceMappingURL=GoogleOAuth.d.ts.map
@@ -2,7 +2,7 @@ interface IAccessCardProps {
2
2
  logo?: string;
3
3
  siteName?: string;
4
4
  children: React.ReactNode;
5
- maxWidth?: 'sm' | 'md' | 'lg';
5
+ maxWidth?: "sm" | "md" | "lg";
6
6
  className?: string;
7
7
  }
8
8
  declare const AccessCard: React.FC<IAccessCardProps>;
@@ -5,6 +5,6 @@ interface BackgroundGradientProps {
5
5
  toColor?: string;
6
6
  direction?: string;
7
7
  }
8
- export declare const BackgroundGradient: React.MemoExoticComponent<({ className, fromColor, toColor, direction }: BackgroundGradientProps) => import("react/jsx-runtime").JSX.Element>;
8
+ export declare const BackgroundGradient: React.MemoExoticComponent<({ className, fromColor, toColor, direction, }: BackgroundGradientProps) => import("react/jsx-runtime").JSX.Element>;
9
9
  export {};
10
10
  //# sourceMappingURL=Gradient.d.ts.map
@@ -6,5 +6,5 @@
6
6
  */
7
7
  export { BUILT_IN_PRESETS, PRESET_CATEGORIES, PRESET_MAP, getPresetsByCategory, getAvailableCategories, } from './presets';
8
8
  export { getEffectConfigFromPresetId, type PresetOperationResult, } from './presetUtils';
9
- export type { BackgroundPreset, BackgroundEffectConfig } from '../../interfaces';
9
+ export type { BackgroundPreset, BackgroundEffectConfig, } from '../../interfaces';
10
10
  //# sourceMappingURL=presetSystem.d.ts.map
@@ -0,0 +1,6 @@
1
+ export declare const RegisterModal: ({ eventID, title, buttonText, }: {
2
+ eventID: string;
3
+ title?: string;
4
+ buttonText?: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=RegisterModal.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { LevoEvent } from '@levo-so/core';
2
+ declare const RegistrationConfirmationModal: ({ ticketData, paymentData, type, }: {
3
+ paymentData: LevoEvent.Booking.Root;
4
+ ticketData: LevoEvent.Ticket.Root[];
5
+ type: string;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default RegistrationConfirmationModal;
8
+ //# sourceMappingURL=RegistrationConfirmationModal.d.ts.map
@@ -0,0 +1,18 @@
1
+ interface UseDisclosureProps {
2
+ isOpen?: boolean;
3
+ defaultIsOpen?: boolean;
4
+ onClose?(): void;
5
+ onOpen?(): void;
6
+ id?: string;
7
+ }
8
+ declare function useCustomDisclosure(props?: UseDisclosureProps): {
9
+ isOpen: boolean;
10
+ onOpen: () => void;
11
+ onClose: () => void;
12
+ onToggle: () => void;
13
+ isControlled: boolean;
14
+ getButtonProps: (props?: any) => any;
15
+ getDisclosureProps: (props?: any) => any;
16
+ };
17
+ export default useCustomDisclosure;
18
+ //# sourceMappingURL=useCustomDisclosure.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const currencySymbol: any;
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -1,3 +1,7 @@
1
+ import { ILevoClient } from '@levo-so/core';
1
2
  import { IBlockInstance } from '../interfaces';
2
- export declare const parseConfig: (block: IBlockInstance) => Promise<IBlockInstance>;
3
+ export declare const parseConfig: ({ levoClient, block, }: {
4
+ levoClient: ILevoClient;
5
+ block: IBlockInstance;
6
+ }) => Promise<IBlockInstance>;
3
7
  //# sourceMappingURL=config.d.ts.map
@@ -1,19 +1,43 @@
1
- import { IResponseMultiple } from '@levo-so/core';
2
- import { IBlockInstance, IPageExpanded, IStudioSource } from '../interfaces';
1
+ import { ILevoClient, IResponseMultiple } from '@levo-so/core';
2
+ import { IBlockInstance, IPageExpanded, ISite, IStudioSource } from '../interfaces';
3
3
  import { IPageContext, IPageDataContext } from './types';
4
+ export type ILevoPageData = Pick<IPageExpanded, "id" | "workspace_id" | "blocks" | "source" | "title" | "description" | "access">;
4
5
  export declare const resolveVariables: ({ skeleton, blockFetchedContent, blockSource, pageContext, }: {
5
6
  skeleton: any;
6
7
  blockFetchedContent?: Record<string, any>;
7
8
  blockSource?: IStudioSource;
8
9
  pageContext?: Record<string, any>;
9
10
  }) => any;
10
- export declare const getPageSource: (pageData: IPageExpanded, slugs: Record<string, string>) => Promise<{
11
+ export declare const resolveStyles: ({ skeleton, blockFetchedContent, blockSource, }: {
12
+ skeleton: any;
13
+ blockFetchedContent?: Record<string, any>;
14
+ blockSource?: IStudioSource;
15
+ }) => any;
16
+ export declare const getPageSource: ({ levoClient, pageData, slugs, }: {
17
+ levoClient: ILevoClient;
18
+ pageData: IPageExpanded;
19
+ slugs: Record<string, string>;
20
+ }) => Promise<{
11
21
  pageContext: IPageContext;
12
22
  pageNotFound: boolean;
13
23
  }>;
14
- export declare const parseVariablesFromResolvedSource: (block: IBlockInstance, params: Record<string, unknown>, resolvedSource?: IBlockInstance["source"][0], pageContext?: IPageContext) => Promise<[IBlockInstance, IResponseMultiple["content"] | null]>;
15
- export declare const getInitialPageContent: (pageData: IPageExpanded, querySlugs: Record<string, string>, urlSlugs: string[]) => Promise<{
16
- parsedPageData: IPageExpanded;
24
+ export declare const parseVariablesFromResolvedSource: ({ levoClient, block, params, resolvedSource, pageContext, }: {
25
+ levoClient: ILevoClient;
26
+ block: IBlockInstance;
27
+ params: Record<string, unknown>;
28
+ resolvedSource?: IBlockInstance["source"][0];
29
+ pageContext?: IPageContext;
30
+ }) => Promise<[IBlockInstance, IResponseMultiple["content"] | null]>;
31
+ export declare const getInitialPageContent: ({ levoClient, pageData, site, querySlugs, urlSlugs, minifyResponse, }: {
32
+ levoClient: ILevoClient;
33
+ pageData: IPageExpanded;
34
+ site: ISite;
35
+ querySlugs: Record<string, string>;
36
+ urlSlugs: string[];
37
+ minifyResponse?: boolean;
38
+ }) => Promise<{
39
+ parsedPageData: ILevoPageData;
40
+ transformedPageData: ILevoPageData;
17
41
  context?: IPageDataContext;
18
42
  notFound: boolean;
19
43
  headCode: string;
@@ -1,5 +1,7 @@
1
+ import { ILevoClient } from '@levo-so/core';
1
2
  import { IPageFromPath } from '../interfaces';
2
- export declare const getPageData: ({ workspace, url, draft, visitorParams, }: {
3
+ export declare const getPageData: ({ levoClient, workspace, url, draft, visitorParams, }: {
4
+ levoClient: ILevoClient;
3
5
  workspace: string;
4
6
  url: string;
5
7
  draft?: boolean;
@@ -1,3 +1,3 @@
1
- import { IPageExpanded } from '../interfaces';
2
- export declare const generateHeadContent: (pageData: IPageExpanded, url: string) => string;
1
+ import { IPageExpanded, ISite } from '../interfaces';
2
+ export declare const generateHeadContent: (pageData: IPageExpanded, site: ISite, url: string) => string;
3
3
  //# sourceMappingURL=head_code.d.ts.map
@@ -1,9 +1,12 @@
1
- import { ILemaCollection, IResponseMultiple, IResponseSingle } from '@levo-so/core';
1
+ import { ILemaCollection, ILevoClient, IResponseMultiple, IResponseSingle } from '@levo-so/core';
2
2
  import { SourceFetchOptions } from './types';
3
- export declare const fetchSource: ({ source, slugs, params, }: SourceFetchOptions) => Promise<IResponseMultiple | IResponseSingle | null>;
4
- export declare const fetchCollectionSchema: (source: {
5
- workspace_id: string;
6
- collection_id: string;
3
+ export declare const fetchSource: ({ levoClient, source, slugs, params, }: SourceFetchOptions) => Promise<IResponseMultiple | IResponseSingle | null>;
4
+ export declare const fetchCollectionSchema: ({ levoClient, source, }: {
5
+ levoClient: ILevoClient;
6
+ source: {
7
+ workspace_id: string;
8
+ collection_id: string;
9
+ };
7
10
  }) => Promise<{
8
11
  content: {
9
12
  data: ILemaCollection | null;
@@ -1,4 +1,4 @@
1
- import { IResponseMultiple } from '@levo-so/core';
1
+ import { ILevoClient, IResponseMultiple } from '@levo-so/core';
2
2
  import { IStudioSource } from '../interfaces';
3
3
  export interface SourceURL {
4
4
  baseUrl: string;
@@ -6,6 +6,7 @@ export interface SourceURL {
6
6
  query?: Record<string, unknown>;
7
7
  }
8
8
  export interface SourceFetchOptions {
9
+ levoClient: ILevoClient;
9
10
  source: IStudioSource;
10
11
  slugs?: Record<string, string>;
11
12
  params?: Record<string, unknown>;
@@ -1,3 +1,9 @@
1
+ import { ILevoClient } from '@levo-so/core';
1
2
  import { IStudioSource } from '../interfaces';
2
- export declare const createSourceUrl: (source: IStudioSource, slug?: string, query?: Record<string, unknown>) => string;
3
+ export declare const createSourceUrl: ({ levoClient, source, slug, query, }: {
4
+ levoClient: ILevoClient;
5
+ source: IStudioSource;
6
+ slug?: string;
7
+ query?: Record<string, unknown>;
8
+ }) => string;
3
9
  //# sourceMappingURL=urlBuilder.d.ts.map
@@ -1,6 +1,8 @@
1
- import { IPageExpanded } from '../../interfaces';
1
+ import { ISite } from '../../interfaces';
2
+ import { ILevoPageData } from '../../contentEngine';
2
3
  declare const AccessManager: React.FC<{
3
- page: IPageExpanded;
4
+ page: ILevoPageData;
5
+ site: ISite;
4
6
  children: React.ReactNode;
5
7
  }>;
6
8
  export default AccessManager;
@@ -1,12 +1,15 @@
1
1
  import { default as React } from 'react';
2
- import { IPageExpanded, BlockComponent } from '../interfaces';
3
- import { IPageDataContext } from '../contentEngine';
2
+ import { IWorkspace } from '@levo-so/core';
3
+ import { ISite, BlockComponent } from '../interfaces';
4
+ import { ILevoPageData, IPageDataContext } from '../contentEngine';
4
5
  export interface ILevoPageProps {
5
- pageData: IPageExpanded;
6
- parsedPageData: IPageExpanded;
6
+ pageData: ILevoPageData;
7
+ parsedPageData: ILevoPageData;
7
8
  isBuilder?: boolean;
8
9
  context?: IPageDataContext;
9
10
  blocks: Record<string, BlockComponent>;
11
+ workspace: IWorkspace;
12
+ site: ISite;
10
13
  }
11
14
  export declare const LevoPage: React.FC<ILevoPageProps>;
12
15
  //# sourceMappingURL=LevoPage.d.ts.map
@@ -1,6 +1,7 @@
1
1
  import { BaseElementProps } from '../components/withBlockProps';
2
2
  interface BaseContainerProps extends BaseElementProps, Omit<React.HTMLAttributes<HTMLDivElement>, "content"> {
3
3
  }
4
+ export declare const BaseContainer: import('react').ForwardRefExoticComponent<BaseContainerProps & import('react').RefAttributes<HTMLDivElement>>;
4
5
  export declare const Container: import('../components/withBlockProps').WithBlockPropsComponent<BaseContainerProps & import('react').RefAttributes<HTMLDivElement>>;
5
6
  export default Container;
6
7
  //# sourceMappingURL=Container.d.ts.map
@@ -1,6 +1,6 @@
1
+ import { Accordion as AccordionPrimitive } from 'radix-ui';
1
2
  import { BaseElementProps } from '../../components/withBlockProps';
2
3
  import * as React from "react";
3
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
4
4
  type TypeAccordionComponentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
5
5
  interface BaseAccordionRootProps extends BaseElementProps, Omit<TypeAccordionComponentProps, "content"> {
6
6
  }
@@ -1,5 +1,5 @@
1
+ import { Dialog as DialogPrimitive } from 'radix-ui';
1
2
  import * as React from "react";
2
- import * as DialogPrimitive from "@radix-ui/react-dialog";
3
3
  declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
4
  declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
5
  declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
+ import { Popover as PopoverPrimitive } from 'radix-ui';
1
2
  import { BaseElementProps } from '../../components/withBlockProps';
2
- import * as PopoverPrimitive from "@radix-ui/react-popover";
3
3
  import * as React from "react";
4
4
  declare const PopoverRoot: React.FC<PopoverPrimitive.PopoverProps>;
5
5
  type TypePopoverTriggerComponentProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
3
+ import { CollectionFormBuilder as c } from "@levo-so/react-collection";
4
+ import { A as n } from "./index-DHHPZcEh.js";
5
+ import { M as o } from "./index-CpL9yDVW.js";
6
+ import { u as h } from "./index-CICXXChN.js";
7
+ const u = "_header_emo7t_1", f = "_title_emo7t_8", _ = "_subtitle_emo7t_15", C = "_formContainer_emo7t_21", i = {
8
+ header: u,
9
+ title: f,
10
+ subtitle: _,
11
+ formContainer: C
12
+ }, j = ({
13
+ logo: d,
14
+ siteName: l,
15
+ workspaceId: s,
16
+ options: e,
17
+ onSuccess: m
18
+ }) => {
19
+ const { account: t } = h();
20
+ return /* @__PURE__ */ a(n, { logo: d, siteName: l, maxWidth: "md", children: [
21
+ /* @__PURE__ */ a("div", { className: i.header, children: [
22
+ /* @__PURE__ */ r("h1", { className: i.title, children: "Access Required" }),
23
+ l && /* @__PURE__ */ a("p", { className: i.subtitle, children: [
24
+ "Please fill out this form to access content on",
25
+ " ",
26
+ /* @__PURE__ */ r("strong", { children: l })
27
+ ] })
28
+ ] }),
29
+ /* @__PURE__ */ r(o, {}),
30
+ (t == null ? void 0 : t.email) && /* @__PURE__ */ r("div", { className: i.formContainer, children: /* @__PURE__ */ r(
31
+ c,
32
+ {
33
+ collection_id: (e == null ? void 0 : e.collection) || "",
34
+ workspace_id: s,
35
+ uiConfig: {
36
+ hideFormHeading: !0,
37
+ hideSectionHeadings: !0
38
+ },
39
+ submitButtonConfig: {
40
+ show: !0,
41
+ text: "Submit"
42
+ },
43
+ externalInitialValues: {
44
+ [(e == null ? void 0 : e.field) ?? "email"]: t == null ? void 0 : t.email
45
+ },
46
+ hiddenFields: (e == null ? void 0 : e.hidden) ?? [],
47
+ onSuccess: m
48
+ }
49
+ ) })
50
+ ] });
51
+ };
52
+ export {
53
+ j as default
54
+ };
@@ -0,0 +1,49 @@
1
+ "use client";
2
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
3
+ import { A as o } from "./index-DHHPZcEh.js";
4
+ import { M as r } from "./index-CpL9yDVW.js";
5
+ const c = "_header_1vjty_1", l = "_iconContainer_1vjty_6", d = "_icon_1vjty_6", m = "_title_1vjty_18", _ = "_subtitle_1vjty_26", h = "_messageContainer_1vjty_33", v = "_message_1vjty_33", s = {
6
+ header: c,
7
+ iconContainer: l,
8
+ icon: d,
9
+ title: m,
10
+ subtitle: _,
11
+ messageContainer: h,
12
+ message: v
13
+ }, j = ({
14
+ logo: a,
15
+ siteName: t,
16
+ message: i
17
+ }) => /* @__PURE__ */ n(o, { logo: a, siteName: t, maxWidth: "sm", children: [
18
+ /* @__PURE__ */ n("div", { className: s.header, children: [
19
+ /* @__PURE__ */ e("div", { className: s.iconContainer, children: /* @__PURE__ */ e(
20
+ "svg",
21
+ {
22
+ className: s.icon,
23
+ fill: "none",
24
+ viewBox: "0 0 24 24",
25
+ strokeWidth: 1.5,
26
+ stroke: "currentColor",
27
+ children: /* @__PURE__ */ e(
28
+ "path",
29
+ {
30
+ strokeLinecap: "round",
31
+ strokeLinejoin: "round",
32
+ d: "M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"
33
+ }
34
+ )
35
+ }
36
+ ) }),
37
+ /* @__PURE__ */ e("h1", { className: s.title, children: "Access Restricted" }),
38
+ t && /* @__PURE__ */ n("p", { className: s.subtitle, children: [
39
+ "Content on ",
40
+ /* @__PURE__ */ e("strong", { children: t }),
41
+ " is currently restricted"
42
+ ] })
43
+ ] }),
44
+ /* @__PURE__ */ e("div", { className: s.messageContainer, children: /* @__PURE__ */ e("p", { className: s.message, children: i }) }),
45
+ /* @__PURE__ */ e(r, {})
46
+ ] });
47
+ export {
48
+ j as default
49
+ };