@levo-so/studio 0.1.56 → 0.1.58

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 (85) hide show
  1. package/dist/{Beams-BZojhXPB.js → Beams-0Cg_3upg.js} +1 -1
  2. package/dist/{Dots-CcGlHm7F.js → Dots-turX9wMO.js} +1 -1
  3. package/dist/{Gradient-3UANzbFj.js → Gradient-Be4Kqh_1.js} +1 -1
  4. package/dist/{Grid-DNt6KikT.js → Grid-B0vqOT42.js} +28 -35
  5. package/dist/MessageCard-CCngWCHS.js +53 -0
  6. package/dist/{Waves-CzMQ6uqz.js → Waves-DL4kuojY.js} +1 -1
  7. package/dist/bridge/Highlighter.d.ts +9 -1
  8. package/dist/bridge/PreviewHighlighter.d.ts +8 -1
  9. package/dist/bridge/StudioPagePreview.d.ts +4 -0
  10. package/dist/bridge/constants.d.ts +2 -0
  11. package/dist/bridge/types.d.ts +27 -0
  12. package/dist/bridge/utils.d.ts +9 -1
  13. package/dist/components/LoginForm/AuthMethodRenderer.d.ts +12 -0
  14. package/dist/components/LoginForm/GoogleOAuth.d.ts +1 -0
  15. package/dist/components/LoginForm/MagicLinkAuthForm.d.ts +6 -0
  16. package/dist/components/LoginForm/OAuthSection.d.ts +11 -0
  17. package/dist/components/LoginForm/OtpAuthForm.d.ts +2 -0
  18. package/dist/components/LoginForm/WhatsAppAuthForm.d.ts +2 -0
  19. package/dist/components/LoginForm/index.d.ts +5 -0
  20. package/dist/components/accessCard/EntryCard/index.d.ts +2 -2
  21. package/dist/components/accessCard/LoginCard/index.d.ts +2 -0
  22. package/dist/components/accessCard/MessageCard.d.ts +10 -0
  23. package/dist/components/index.d.ts +2 -0
  24. package/dist/components/integrationFilters/FieldRenderer.d.ts +7 -0
  25. package/dist/components/integrationFilters/IntegrationFilters.d.ts +11 -0
  26. package/dist/components/integrationFilters/fields/DropdownField.d.ts +8 -0
  27. package/dist/components/integrationFilters/fields/TextField.d.ts +7 -0
  28. package/dist/components/shared/EmailInput/index.d.ts +1 -1
  29. package/dist/components/shared/MagicLinkSuccess/index.d.ts +7 -0
  30. package/dist/components/shared/PhoneInput/index.d.ts +10 -0
  31. package/dist/components/ui/Calendar.d.ts +5 -0
  32. package/dist/components/ui/FlippingText.d.ts +6 -0
  33. package/dist/components/ui/base/index.d.ts +2 -0
  34. package/dist/components/ui/base/input.d.ts +4 -0
  35. package/dist/components/ui/form/FormInput.d.ts +17 -0
  36. package/dist/components/ui/form/FormSelect.d.ts +17 -0
  37. package/dist/components/ui/form/utils/FieldError.d.ts +5 -0
  38. package/dist/components/ui/form/utils/FieldWrapper.d.ts +19 -0
  39. package/dist/components/ui/form/utils/FormHelperText.d.ts +7 -0
  40. package/dist/components/ui/form/utils/FormLabel.d.ts +8 -0
  41. package/dist/components/ui/index.d.ts +2 -0
  42. package/dist/constants/authentication.d.ts +41 -0
  43. package/dist/contentEngine/content.d.ts +21 -14
  44. package/dist/contentEngine/getPage.d.ts +2 -1
  45. package/dist/contentEngine/sourceFetcher.d.ts +4 -2
  46. package/dist/contentEngine/themeUtils.d.ts +57 -1
  47. package/dist/contentEngine/types.d.ts +3 -1
  48. package/dist/contentEngine/urlBuilder.d.ts +1 -1
  49. package/dist/core/AccessManager/index.d.ts +2 -0
  50. package/dist/core/LevoPage.d.ts +2 -0
  51. package/dist/elements/EditForm.d.ts +11 -0
  52. package/dist/elements/Form.d.ts +3 -0
  53. package/dist/elements/Section.d.ts +1 -0
  54. package/dist/elements/Tabs.d.ts +21 -0
  55. package/dist/elements/accordion/index.d.ts +4 -4
  56. package/dist/elements/index.d.ts +2 -0
  57. package/dist/hooks/useLogin.d.ts +18 -25
  58. package/dist/index-BdswdesP.js +36 -0
  59. package/dist/index-CPJI9a7D.js +13503 -0
  60. package/dist/index-CmNhuPZp.js +34 -0
  61. package/dist/index-kVKDoWCh.js +57 -0
  62. package/dist/index.d.ts +3 -0
  63. package/dist/index.js +112 -92
  64. package/dist/interfaces/contentSchema.d.ts +5 -2
  65. package/dist/interfaces/form.d.ts +33 -0
  66. package/dist/interfaces/levoBlock.d.ts +19 -6
  67. package/dist/interfaces/site.d.ts +21 -5
  68. package/dist/interfaces/sites.d.ts +8 -2
  69. package/dist/pixel/constants/colorOptions.d.ts +5 -0
  70. package/dist/pixel/index.d.ts +2 -1
  71. package/dist/pixel/optionsMap.d.ts +0 -1
  72. package/dist/providers/AuthProvider.d.ts +5 -0
  73. package/dist/schemas/authSchemas.d.ts +46 -0
  74. package/dist/studio.css +1 -1
  75. package/dist/utils/colorUtils.d.ts +5 -0
  76. package/dist/utils/findFieldSchema.d.ts +6 -0
  77. package/dist/utils/index.d.ts +3 -0
  78. package/package.json +9 -4
  79. package/dist/components/accessCard/MessageCard/index.d.ts +0 -8
  80. package/dist/contentEngine/config.d.ts +0 -7
  81. package/dist/index-BoqJQUB1.js +0 -49
  82. package/dist/index-ChtnTSnt.js +0 -10563
  83. package/dist/index-CncAiMll.js +0 -30
  84. package/dist/index-DEfqGdFN.js +0 -54
  85. package/dist/index-YYhmca3b.js +0 -23
@@ -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-ChtnTSnt.js";
4
+ import { m as c } from "./index-CPJI9a7D.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-ChtnTSnt.js";
4
+ import { m as x } from "./index-CPJI9a7D.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-ChtnTSnt.js";
4
+ import { m as r } from "./index-CPJI9a7D.js";
5
5
  const s = o.memo(
6
6
  ({
7
7
  className: e,
@@ -1,31 +1,31 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as g } from "react/jsx-runtime";
3
- import r from "react";
4
- import { m as d } from "./index-ChtnTSnt.js";
5
- const p = r.memo(
3
+ import n from "react";
4
+ import { m as w } from "./index-CPJI9a7D.js";
5
+ const x = n.memo(
6
6
  ({
7
7
  className: e,
8
8
  lineColor: t = "#333333",
9
- lineWidth: n = 1,
9
+ lineWidth: r = 1,
10
10
  spacing: i = 50,
11
11
  // Interactive mode props
12
12
  isInteractive: u = !1,
13
- hoverColor: s = "#93c5fd",
14
- rows: a = 150,
15
- cols: h = 100
13
+ hoverColor: d = "#93c5fd",
14
+ rows: s = 150,
15
+ cols: a = 100
16
16
  }) => {
17
- const y = r.useMemo(() => new Array(a).fill(1), [a]), f = r.useMemo(() => new Array(h).fill(1), [h]), l = r.useMemo(
17
+ const y = n.useMemo(() => new Array(s).fill(1), [s]), f = n.useMemo(() => new Array(a).fill(1), [a]), l = n.useMemo(
18
18
  () => ({
19
19
  rowStyle: {
20
20
  height: `${i}px`,
21
21
  width: `${i * 2}px`,
22
- borderLeft: `${n}px solid ${t}`
22
+ borderLeft: `${r}px solid ${t}`
23
23
  },
24
24
  colStyle: {
25
25
  height: `${i}px`,
26
26
  width: `${i * 2}px`,
27
- borderTop: `${n}px solid ${t}`,
28
- borderRight: `${n}px solid ${t}`
27
+ borderTop: `${r}px solid ${t}`,
28
+ borderRight: `${r}px solid ${t}`
29
29
  },
30
30
  iconStyle: {
31
31
  top: `${-i / 3.8}px`,
@@ -33,18 +33,18 @@ const p = r.memo(
33
33
  color: t
34
34
  }
35
35
  }),
36
- [i, n, t]
37
- ), c = r.useMemo(
36
+ [i, r, t]
37
+ ), h = n.useMemo(
38
38
  () => ({
39
39
  hover: {
40
- backgroundColor: s,
40
+ backgroundColor: d,
41
41
  transition: { duration: 0 }
42
42
  },
43
43
  animate: {
44
44
  transition: { duration: 2 }
45
45
  }
46
46
  }),
47
- [s]
47
+ [d]
48
48
  );
49
49
  return u ? /* @__PURE__ */ o(
50
50
  "div",
@@ -75,17 +75,17 @@ const p = r.memo(
75
75
  width: "100%",
76
76
  padding: "1rem"
77
77
  },
78
- children: y.map((x, m) => /* @__PURE__ */ o(
79
- d.div,
78
+ children: y.map(($, c) => /* @__PURE__ */ o(
79
+ w.div,
80
80
  {
81
81
  style: { ...l.rowStyle, position: "relative" },
82
- children: f.map(($, w) => /* @__PURE__ */ o(
83
- d.div,
82
+ children: f.map((v, m) => /* @__PURE__ */ o(
83
+ w.div,
84
84
  {
85
- whileHover: c.hover,
86
- animate: c.animate,
85
+ whileHover: h.hover,
86
+ animate: h.animate,
87
87
  style: { ...l.colStyle, position: "relative" },
88
- children: w % 2 === 0 && m % 2 === 0 ? /* @__PURE__ */ o(
88
+ children: m % 2 === 0 && c % 2 === 0 ? /* @__PURE__ */ o(
89
89
  "svg",
90
90
  {
91
91
  xmlns: "http://www.w3.org/2000/svg",
@@ -112,10 +112,10 @@ const p = r.memo(
112
112
  }
113
113
  ) : null
114
114
  },
115
- `col-${w}`
115
+ `col-${m}`
116
116
  ))
117
117
  },
118
- `row-${m}`
118
+ `row-${c}`
119
119
  ))
120
120
  }
121
121
  )
@@ -158,19 +158,12 @@ const p = r.memo(
158
158
  height: i,
159
159
  patternUnits: "userSpaceOnUse",
160
160
  children: /* @__PURE__ */ o(
161
- d.path,
161
+ "path",
162
162
  {
163
163
  d: `M ${i} 0 L 0 0 0 ${i}`,
164
164
  fill: "none",
165
165
  stroke: t,
166
- strokeWidth: n,
167
- initial: { opacity: 0.2 },
168
- animate: { opacity: [0.2, 0.5, 0.2] },
169
- transition: {
170
- duration: 3,
171
- repeat: 1 / 0,
172
- ease: "easeInOut"
173
- }
166
+ strokeWidth: r
174
167
  }
175
168
  )
176
169
  }
@@ -185,7 +178,7 @@ const p = r.memo(
185
178
  // Custom comparison function for better memoization
186
179
  (e, t) => e.className === t.className && e.lineColor === t.lineColor && e.lineWidth === t.lineWidth && e.spacing === t.spacing && e.isInteractive === t.isInteractive && e.hoverColor === t.hoverColor && e.rows === t.rows && e.cols === t.cols
187
180
  );
188
- p.displayName = "BackgroundGrid";
181
+ x.displayName = "BackgroundGrid";
189
182
  export {
190
- p as BackgroundGrid
183
+ x as BackgroundGrid
191
184
  };
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
3
+ import { A as d } from "./index-DHHPZcEh.js";
4
+ import { M as n } from "./index-CmNhuPZp.js";
5
+ const x = ({
6
+ logo: a,
7
+ siteName: r,
8
+ options: t,
9
+ message: c
10
+ }) => {
11
+ var l;
12
+ return /* @__PURE__ */ s(d, { logo: a, siteName: r, maxWidth: "sm", children: [
13
+ /* @__PURE__ */ s("div", { className: "mb-6 px-8 sm:px-6", children: [
14
+ /* @__PURE__ */ e("div", { className: "mb-4 flex justify-center", children: /* @__PURE__ */ e(
15
+ "svg",
16
+ {
17
+ className: "h-12 w-12 text-black sm:h-10 sm:w-10",
18
+ fill: "none",
19
+ viewBox: "0 0 24 24",
20
+ strokeWidth: 1.5,
21
+ stroke: "currentColor",
22
+ children: /* @__PURE__ */ e(
23
+ "path",
24
+ {
25
+ strokeLinecap: "round",
26
+ strokeLinejoin: "round",
27
+ 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"
28
+ }
29
+ )
30
+ }
31
+ ) }),
32
+ /* @__PURE__ */ e("h1", { className: "text-text-1 m-0 mb-2 text-center text-2xl font-semibold sm:text-xl", children: "Access Restricted" }),
33
+ r && /* @__PURE__ */ s("p", { className: "m-0 text-center leading-6 text-[--color-text-2]", children: [
34
+ "Content on ",
35
+ /* @__PURE__ */ e("strong", { children: r }),
36
+ " is currently restricted"
37
+ ] })
38
+ ] }),
39
+ /* @__PURE__ */ e("div", { className: "mx-8 mb-8 rounded-lg border-l-4 border-red-300 bg-gray-50 p-4 sm:mx-6", children: /* @__PURE__ */ e(
40
+ "div",
41
+ {
42
+ className: "m-0 flex flex-col gap-3 leading-relaxed text-gray-700",
43
+ dangerouslySetInnerHTML: {
44
+ __html: ((l = t == null ? void 0 : t.content) == null ? void 0 : l.conditionNotFulfilled) ?? c ?? ""
45
+ }
46
+ }
47
+ ) }),
48
+ /* @__PURE__ */ e(n, {})
49
+ ] });
50
+ };
51
+ export {
52
+ x as default
53
+ };
@@ -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-ChtnTSnt.js";
4
+ import { m as d } from "./index-CPJI9a7D.js";
5
5
  const g = u.memo(
6
6
  ({
7
7
  className: p,
@@ -1,7 +1,15 @@
1
- import { SelectionState } from './types';
1
+ import { IUserHighlight, ISocketUser, SelectionState, IGenerationStatusOverlay, IBlockGenerationInfo } from './types';
2
2
  interface HighlighterProps {
3
3
  selections: SelectionState;
4
+ userHighlights: IUserHighlight[];
5
+ users: ISocketUser[];
4
6
  isScrolling: boolean;
7
+ isPageGenerating?: boolean;
8
+ showPill?: boolean;
9
+ isGenerationCompleted?: boolean;
10
+ totalBlocksCount?: number;
11
+ blocksGenerationInfo?: IBlockGenerationInfo[];
12
+ generationStatusOverlays?: IGenerationStatusOverlay[];
5
13
  }
6
14
  export declare const Highlighter: React.FC<HighlighterProps>;
7
15
  export {};
@@ -1,2 +1,9 @@
1
- export declare const PreviewHighlighter: () => import("react/jsx-runtime").JSX.Element;
1
+ import { IBlockGenerationInfo } from './types';
2
+ interface PreviewHighlighterProps {
3
+ isPageGenerating?: boolean;
4
+ totalBlocksCount?: number;
5
+ blocksGenerationInfo?: IBlockGenerationInfo[];
6
+ }
7
+ export declare const PreviewHighlighter: React.FC<PreviewHighlighterProps>;
8
+ export {};
2
9
  //# sourceMappingURL=PreviewHighlighter.d.ts.map
@@ -14,6 +14,10 @@ export declare const StudioPagePreview: React.FC<{
14
14
  studioData: StudioPageData | undefined;
15
15
  workspace: IWorkspace;
16
16
  site: ISite;
17
+ authOverride?: {
18
+ enabled: boolean;
19
+ isLoggedIn: boolean;
20
+ } | null;
17
21
  }>;
18
22
  export {};
19
23
  //# sourceMappingURL=StudioPagePreview.d.ts.map
@@ -11,9 +11,11 @@ export declare const MESSAGE_TYPES: {
11
11
  readonly PREVIEW_MOUSE_LEAVE: "PREVIEW_MOUSE_LEAVE";
12
12
  readonly STUDIO_SELECT: "STUDIO_SELECT";
13
13
  readonly STUDIO_HOVER: "STUDIO_HOVER";
14
+ readonly STUDIO_AUTH_OVERRIDE: "STUDIO_AUTH_OVERRIDE";
14
15
  readonly PREVIEW_TYPE: "PREVIEW_TYPE";
15
16
  readonly LEVO_PAGE_DATA: "LEVO_PAGE_DATA";
16
17
  readonly LEVO_BLOCK_DATA: "LEVO_BLOCK_DATA";
17
18
  readonly FRAME_HEIGHT: "FRAME_HEIGHT";
19
+ readonly LEVO_USERS: "LEVO_USERS";
18
20
  };
19
21
  //# sourceMappingURL=constants.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { IMediaObject } from '@levo-so/core';
1
2
  export type SelectableType = "block" | "element" | "repeatable" | "repeatableParent";
2
3
  export interface HighlightRect {
3
4
  top: number;
@@ -30,4 +31,30 @@ export interface StudioState {
30
31
  setSelected: (params: ISelection) => void;
31
32
  };
32
33
  }
34
+ export interface IUserHighlight {
35
+ id: string;
36
+ blockId: string;
37
+ color: string;
38
+ rect: HighlightRect | null;
39
+ element: HTMLElement | null;
40
+ }
41
+ export interface ISocketUser {
42
+ id: string;
43
+ first_name: string;
44
+ display_email: string;
45
+ profile_picture: IMediaObject;
46
+ last_name: string;
47
+ color: string;
48
+ block_id?: string | null;
49
+ }
50
+ export interface IBlockGenerationInfo {
51
+ id: string;
52
+ status: "pending" | "current" | null;
53
+ }
54
+ export interface IGenerationStatusOverlay {
55
+ id: string;
56
+ rect: HighlightRect | null;
57
+ element: HTMLElement | null;
58
+ status: "pending" | "current";
59
+ }
33
60
  //# sourceMappingURL=types.d.ts.map
@@ -1,8 +1,16 @@
1
- import { ISelection, HighlightRect, SelectionState } from './types';
1
+ import { ISelection, HighlightRect, IUserHighlight, ISocketUser, SelectionState, IGenerationStatusOverlay, IBlockGenerationInfo } from './types';
2
2
  export declare function getElementCoordinates(element: HTMLElement): HighlightRect;
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
6
  export declare function findParentElement(currentSelections: SelectionState): HTMLElement | null;
7
7
  export declare function updateSelectionRects(selections: SelectionState): SelectionState;
8
+ export declare function findBlockElementById(blockId: string): HTMLElement | null;
9
+ export declare function createUserHighlight(user: ISocketUser): IUserHighlight | null;
10
+ export declare function createUserHighlights(users: ISocketUser[]): IUserHighlight[];
11
+ export declare function updateUserHighlightRects(highlights: IUserHighlight[]): IUserHighlight[];
12
+ export declare function isElementWithinUserSelectedBlock(element: HTMLElement, userHighlights: IUserHighlight[]): boolean;
13
+ export declare function createGenerationStatusOverlay(blockInfo: IBlockGenerationInfo): IGenerationStatusOverlay | null;
14
+ export declare function createGenerationStatusOverlays(blocksInfo: IBlockGenerationInfo[]): IGenerationStatusOverlay[];
15
+ export declare function updateGenerationStatusOverlayRects(overlays: IGenerationStatusOverlay[]): IGenerationStatusOverlay[];
8
16
  //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { IMembershipAuthenticationMethods } from '../../interfaces/site';
2
+ /**
3
+ * Passwordless authentication methods supported by AuthMethodRenderer
4
+ */
5
+ type PasswordlessMethod = Extract<(typeof IMembershipAuthenticationMethods)[number], "otp" | "whatsapp" | "magiclink">;
6
+ interface IAuthMethodRendererProps {
7
+ method: PasswordlessMethod;
8
+ onMagicLinkSent?: (sent: boolean) => void;
9
+ }
10
+ export declare const AuthMethodRenderer: React.FC<IAuthMethodRendererProps>;
11
+ export {};
12
+ //# sourceMappingURL=AuthMethodRenderer.d.ts.map
@@ -4,6 +4,7 @@ interface IGoogleOAuthProps {
4
4
  oAuthTitle: string;
5
5
  onOAuthSuccess?: () => void;
6
6
  onOAuthError?: (error?: LevoError) => void;
7
+ oAuthMethods?: string[];
7
8
  }
8
9
  export declare const OAuthButtons: React.FC<IGoogleOAuthProps>;
9
10
  export {};
@@ -0,0 +1,6 @@
1
+ interface IMagicLinkAuthFormProps {
2
+ onMagicLinkSent?: (sent: boolean) => void;
3
+ }
4
+ export declare const MagicLinkAuthForm: React.FC<IMagicLinkAuthFormProps>;
5
+ export {};
6
+ //# sourceMappingURL=MagicLinkAuthForm.d.ts.map
@@ -0,0 +1,11 @@
1
+ interface IOAuthSectionProps {
2
+ oAuthMethods: string[];
3
+ oAuthTitle?: string;
4
+ showDivider: boolean;
5
+ dividerText: string;
6
+ onOAuthSuccess: () => void;
7
+ onOAuthError: (error?: any) => void;
8
+ }
9
+ export declare const OAuthSection: React.FC<IOAuthSectionProps>;
10
+ export {};
11
+ //# sourceMappingURL=OAuthSection.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const OtpAuthForm: React.FC;
2
+ //# sourceMappingURL=OtpAuthForm.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const WhatsAppAuthForm: React.FC;
2
+ //# sourceMappingURL=WhatsAppAuthForm.d.ts.map
@@ -1,6 +1,11 @@
1
+ import { ILevoPageData } from '../../contentEngine';
1
2
  interface ILoginFormProps {
2
3
  className?: string;
3
4
  oAuthTitle?: string;
5
+ page?: ILevoPageData;
6
+ magicLinkSent?: boolean;
7
+ setMagicLinkSent?: React.Dispatch<React.SetStateAction<boolean>>;
8
+ oAuthMethods?: string[];
4
9
  }
5
10
  declare const LoginForm: React.FC<ILoginFormProps>;
6
11
  export default LoginForm;
@@ -1,9 +1,9 @@
1
- import { IPageAccessGatingOptions, IPageAccessAuthenticationOptions } from '../../../interfaces';
1
+ import { IPageAccessGatingOptions } from '../../../interfaces';
2
2
  interface IEntryCardProps {
3
3
  logo?: string;
4
4
  siteName?: string;
5
5
  workspaceId: string;
6
- options: IPageAccessGatingOptions | IPageAccessAuthenticationOptions | Record<string, unknown>;
6
+ options: IPageAccessGatingOptions;
7
7
  onSuccess?: () => void;
8
8
  }
9
9
  declare const EntryCard: React.FC<IEntryCardProps>;
@@ -1,6 +1,8 @@
1
+ import { ILevoPageData } from '../../../contentEngine';
1
2
  interface ILoginCardProps {
2
3
  logo?: string;
3
4
  siteName?: string;
5
+ page: ILevoPageData;
4
6
  }
5
7
  declare const LoginCard: React.FC<ILoginCardProps>;
6
8
  export default LoginCard;
@@ -0,0 +1,10 @@
1
+ import { IPageAccessGatingOptions } from '../../interfaces';
2
+ interface IMessageCardProps {
3
+ logo?: string;
4
+ siteName?: string;
5
+ options: IPageAccessGatingOptions;
6
+ message?: string;
7
+ }
8
+ declare const MessageCard: React.FC<IMessageCardProps>;
9
+ export default MessageCard;
10
+ //# sourceMappingURL=MessageCard.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './ui';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { ILemaField } from '@levo-so/core';
2
+ import { default as React } from 'react';
3
+ declare const FieldRenderer: React.FC<{
4
+ field: ILemaField;
5
+ }>;
6
+ export default FieldRenderer;
7
+ //# sourceMappingURL=FieldRenderer.d.ts.map
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { ILemaCollection } from '@levo-so/core';
3
+ declare const IntegrationFilters: React.FC<{
4
+ selectedFields: string[];
5
+ schema: ILemaCollection;
6
+ query: Record<string, any>;
7
+ setQuery: (val: Record<string, any>) => void;
8
+ enableSearch?: boolean;
9
+ }>;
10
+ export default IntegrationFilters;
11
+ //# sourceMappingURL=IntegrationFilters.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { ILemaField } from '@levo-so/core';
3
+ declare const DropdownField: React.FC<{
4
+ field: ILemaField;
5
+ isMulti?: boolean;
6
+ }>;
7
+ export default DropdownField;
8
+ //# sourceMappingURL=DropdownField.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { ILemaField } from '@levo-so/core';
3
+ declare const TextField: React.FC<{
4
+ field: ILemaField;
5
+ }>;
6
+ export default TextField;
7
+ //# sourceMappingURL=TextField.d.ts.map
@@ -3,7 +3,7 @@ interface IEmailInputProps {
3
3
  email: string;
4
4
  setEmail: Dispatch<SetStateAction<string>>;
5
5
  otpSent: boolean;
6
- handleReset: (skipEmailReset?: boolean) => void;
6
+ handleReset: (skipFieldReset?: boolean) => void;
7
7
  }
8
8
  declare const EmailInput: React.FC<IEmailInputProps>;
9
9
  export default EmailInput;
@@ -0,0 +1,7 @@
1
+ interface IMagicLinkSuccessProps {
2
+ email: string;
3
+ onReset: () => void;
4
+ }
5
+ declare const MagicLinkSuccess: React.FC<IMagicLinkSuccessProps>;
6
+ export default MagicLinkSuccess;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ interface IPhoneInputProps {
3
+ phone: string;
4
+ setPhone: Dispatch<SetStateAction<string>>;
5
+ otpSent: boolean;
6
+ handleReset: (skipFieldReset?: boolean) => void;
7
+ }
8
+ declare const PhoneInput: React.FC<IPhoneInputProps>;
9
+ export default PhoneInput;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { DayPicker } from 'react-day-picker';
2
+ import * as React from "react";
3
+ export type CalendarProps = React.ComponentProps<typeof DayPicker>;
4
+ export declare const Calendar: ({ className, classNames, showOutsideDays, captionLayout, formatters, components, ...props }: CalendarProps) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=Calendar.d.ts.map
@@ -0,0 +1,6 @@
1
+ export declare const LayoutTextFlip: ({ text, words, duration, }: {
2
+ text: string;
3
+ words: string[];
4
+ duration?: number;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=FlippingText.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './input';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
3
+ export { Input };
4
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { IBaseInputProps } from '../../../interfaces/form';
2
+ import * as React from "react";
3
+ export interface IInputProps extends IBaseInputProps {
4
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
5
+ onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
6
+ inputStyles?: string;
7
+ type?: string;
8
+ inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
9
+ leftIcon?: React.ReactNode;
10
+ rightIcon?: React.ReactNode;
11
+ leftIconBoxStyles?: string;
12
+ rightIconBoxStyles?: string;
13
+ inputContainerStyles?: string;
14
+ }
15
+ declare const FormInput: React.ForwardRefExoticComponent<IInputProps & React.RefAttributes<HTMLInputElement>>;
16
+ export { FormInput };
17
+ //# sourceMappingURL=FormInput.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { Props, StylesConfig } from 'react-select';
3
+ import { IBaseInputProps, IFormSelectOptions } from '../../../interfaces/form';
4
+ export type IFormSelectStyles = StylesConfig;
5
+ export interface IFormSelectProps extends IBaseInputProps {
6
+ isSearchable?: boolean;
7
+ options: IFormSelectOptions[];
8
+ selectProps?: Props;
9
+ onChange?: (name: string, value: any) => void;
10
+ onBlur?: (name: string, value: boolean) => void;
11
+ isClearable?: boolean;
12
+ controlStyles?: string;
13
+ listStyles?: string;
14
+ children?: React.ReactNode;
15
+ }
16
+ export declare const FormSelect: React.FC<IFormSelectProps>;
17
+ //# sourceMappingURL=FormSelect.d.ts.map
@@ -0,0 +1,5 @@
1
+ declare const FieldError: React.FC<{
2
+ children: React.ReactNode;
3
+ }>;
4
+ export default FieldError;
5
+ //# sourceMappingURL=FieldError.d.ts.map
@@ -0,0 +1,19 @@
1
+ export interface IFieldWrapperProps {
2
+ name?: string;
3
+ label?: string;
4
+ error?: any;
5
+ touched?: any;
6
+ helperText?: string;
7
+ children: React.ReactNode;
8
+ readOnly?: boolean;
9
+ isRequired?: boolean;
10
+ containerStyles?: string;
11
+ helperTextStyles?: string;
12
+ labelStyles?: string;
13
+ }
14
+ /**
15
+ * @description This component is used to wrap the input components and display the error message and helper text.
16
+ */
17
+ export declare const FieldWrapper: React.FC<IFieldWrapperProps>;
18
+ export default FieldWrapper;
19
+ //# sourceMappingURL=FieldWrapper.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ export declare const FormHelperText: React.FC<{
3
+ children: React.ReactNode;
4
+ styles?: string;
5
+ }>;
6
+ export default FormHelperText;
7
+ //# sourceMappingURL=FormHelperText.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface IFormLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
3
+ isRequired?: boolean;
4
+ children?: React.ReactNode;
5
+ }
6
+ export declare const FormLabel: React.FC<IFormLabelProps>;
7
+ export default FormLabel;
8
+ //# sourceMappingURL=FormLabel.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './Calendar';
2
+ //# sourceMappingURL=index.d.ts.map