@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,30 +0,0 @@
1
- "use client";
2
- import { jsxs as e, jsx as s } from "react/jsx-runtime";
3
- import { u as i, a } from "./index-ChtnTSnt.js";
4
- const g = "_footnote_v8hnh_1", r = "_footnoteText_v8hnh_11", c = "_logoutButton_v8hnh_17", t = {
5
- footnote: g,
6
- footnoteText: r,
7
- logoutButton: c
8
- }, d = () => {
9
- const { account: o, isSignOutLoading: n } = i(), { signOut: u } = a(), l = () => {
10
- u();
11
- };
12
- return o != null && o.email ? /* @__PURE__ */ e("div", { className: t.footnote, children: [
13
- /* @__PURE__ */ e("span", { className: t.footnoteText, children: [
14
- "You are logged in as ",
15
- /* @__PURE__ */ s("strong", { children: o.email })
16
- ] }),
17
- /* @__PURE__ */ s(
18
- "button",
19
- {
20
- className: t.logoutButton,
21
- onClick: l,
22
- disabled: n,
23
- children: n ? "Logging out..." : "Logout"
24
- }
25
- )
26
- ] }) : null;
27
- };
28
- export {
29
- d as M
30
- };
@@ -1,54 +0,0 @@
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-CncAiMll.js";
6
- import { u as h } from "./index-ChtnTSnt.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
- };
@@ -1,23 +0,0 @@
1
- "use client";
2
- import { jsxs as r, jsx as t } from "react/jsx-runtime";
3
- import { L as i } from "./index-ChtnTSnt.js";
4
- import { A as n } from "./index-DHHPZcEh.js";
5
- const a = "_header_s7k8g_1", c = "_title_s7k8g_7", l = "_subtitle_s7k8g_14", d = "_formWrapper_s7k8g_20", e = {
6
- header: a,
7
- title: c,
8
- subtitle: l,
9
- formWrapper: d
10
- }, _ = ({ logo: o, siteName: s }) => /* @__PURE__ */ r(n, { logo: o, siteName: s, maxWidth: "sm", children: [
11
- /* @__PURE__ */ r("div", { className: e.header, children: [
12
- /* @__PURE__ */ t("h1", { className: e.title, children: "Sign in to continue" }),
13
- s && /* @__PURE__ */ r("p", { className: e.subtitle, children: [
14
- "You need to sign in to access this page on",
15
- " ",
16
- /* @__PURE__ */ t("strong", { children: s })
17
- ] })
18
- ] }),
19
- /* @__PURE__ */ t("div", { className: e.formWrapper, children: /* @__PURE__ */ t(i, { className: e.form, oAuthTitle: s || "Studio" }) })
20
- ] });
21
- export {
22
- _ as default
23
- };