@levo-so/studio 0.1.103 → 0.1.104

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 (28) hide show
  1. package/{BillingStep-BA3H9BVu.js → BillingStep-2cKT5Pir.js} +1 -1
  2. package/{Button-CZycqusY.js → Button-DtPwDEN0.js} +3 -3
  3. package/{DateTimeWidget-DP_nMhqe.js → DateTimeWidget-DPHIhkAi.js} +1 -1
  4. package/{EntryCard-CQpKNX7G.js → EntryCard-j4uZb2cE.js} +3 -3
  5. package/{LoginCard-Cyvm-y_q.js → LoginCard-asvOHIRg.js} +3 -3
  6. package/{LoginModal-Cyw_XKvz.js → LoginModal-CyvbEK26.js} +2 -2
  7. package/{MessageCard-C2lNTxFx.js → MessageCard-lrXKEsBP.js} +2 -2
  8. package/{ModalManager-DHkd0Zdb.js → ModalManager-BcPk4sbK.js} +1 -1
  9. package/{PendingApprovalCard-C8iZjo06.js → PendingApprovalCard-hYkupl9A.js} +3 -3
  10. package/{PopupRenderer-C7OHYphU-Ct5T6tWM.js → PopupRenderer-C7OHYphU-IWM6d7gW.js} +2 -2
  11. package/{RichTextWidget-BqlcssWt.js → RichTextWidget-18XLL8wW.js} +31 -30
  12. package/{Toolbar-BwxoYWO_.js → Toolbar-Y6JtgPFn.js} +152 -245
  13. package/{bookingCard-BDyuBC6X.js → bookingCard-BdV2YSkq.js} +2 -2
  14. package/collection.js +8 -8
  15. package/{dist-CG-pwDW0.js → dist-CsX9NP5P.js} +2 -2
  16. package/index.js +173 -175
  17. package/package.json +38 -52
  18. package/rolldown-runtime-CAFD8bLK.js +11 -0
  19. /package/{Beams-DboMUgCv.js → Beams-DEybrmUZ.js} +0 -0
  20. /package/{Dots-a8xSboDv.js → Dots-CMyy77GM.js} +0 -0
  21. /package/{Gradient-NacpoDCM.js → Gradient-DBn_zXzI.js} +0 -0
  22. /package/{Grid-BJQvxnks.js → Grid-kGCr-6by.js} +0 -0
  23. /package/{LoginForm-_44FtvWg.js → LoginForm-BdsPVHdO.js} +0 -0
  24. /package/{MessageFooter-59Pziq3i.js → MessageFooter-D-dCrzJH.js} +0 -0
  25. /package/{PhoneWidget-CxxxDXkz.js → PhoneWidget-BOFhs8Ra.js} +0 -0
  26. /package/{Popover-DOvRAGzc.js → Popover-O1poOHk2.js} +0 -0
  27. /package/{Waves-DUuT_IFr.js → Waves-DjLcbiBu.js} +0 -0
  28. /package/{card-E2LKF9nT.js → card-5ooLmYSr.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "./Button-CZycqusY.js";
2
+ import { t as e } from "./Button-DtPwDEN0.js";
3
3
  import { useState as t } from "react";
4
4
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  //#region src/components/bookingCard/BillingStep.tsx
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import "./Dialog-IrII0ugb.js";
3
- import { a as e, c as t, h as n, l as r, n as i, o as a, r as o } from "./PopupRenderer-C7OHYphU-Ct5T6tWM.js";
3
+ import { a as e, c as t, h as n, l as r, n as i, o as a, r as o } from "./PopupRenderer-C7OHYphU-IWM6d7gW.js";
4
4
  import { n as s } from "./AuthProvider-C6bvedwF.js";
5
- import { n as c } from "./ModalManager-DHkd0Zdb.js";
5
+ import { n as c } from "./ModalManager-BcPk4sbK.js";
6
6
  import { c as l } from "react/compiler-runtime";
7
7
  import { $isIdentityContextReady as u } from "@levo-so/insights/stores";
8
8
  import { cn as d, useLevo as f } from "@levo-so/react";
@@ -20,7 +20,7 @@ import re from "next/link";
20
20
  var ie = async (e, t) => {
21
21
  let n = {};
22
22
  return t?.site_id && (n.site_id = t.site_id), t?.locale && (n.locale = t.locale), t?.country && (n.country = t.country), (await e.url("/v1/studio/popup/list-active").query(n).get().json())?.content?.data ?? [];
23
- }, ae = _(() => import("./PopupRenderer-C7OHYphU-Ct5T6tWM.js").then((e) => e.s).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), k = (e) => {
23
+ }, ae = _(() => import("./PopupRenderer-C7OHYphU-IWM6d7gW.js").then((e) => e.s).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), k = (e) => {
24
24
  let t = l(9), { siteId: r, pageId: i } = e, { fetch: a, logger: o } = f(), [s, c] = S(null), d = x(!1), p, h;
25
25
  if (t[0] !== a || t[1] !== o || t[2] !== r ? (p = () => {
26
26
  if (d.current) return;
@@ -2,7 +2,7 @@ import { t as e } from "./Button-lUfKisu8.js";
2
2
  import { t } from "./getFieldValidations-CSkSV2hW.js";
3
3
  import { t as n } from "./CollectionField-xa-jed3_.js";
4
4
  import { t as ee } from "./CollectionInput-CpNGIXJx.js";
5
- import { a as r, i, n as a, r as o, t as s } from "./Popover-DOvRAGzc.js";
5
+ import { a as r, i, n as a, r as o, t as s } from "./Popover-O1poOHk2.js";
6
6
  import { c as te } from "react/compiler-runtime";
7
7
  import { useEffect as ne, useRef as c, useState as l } from "react";
8
8
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { r as e } from "./dist-CG-pwDW0.js";
2
+ import { r as e } from "./dist-CsX9NP5P.js";
3
3
  import { n as t } from "./AuthProvider-C6bvedwF.js";
4
- import { t as n } from "./card-E2LKF9nT.js";
5
- import { t as r } from "./MessageFooter-59Pziq3i.js";
4
+ import { t as n } from "./card-5ooLmYSr.js";
5
+ import { t as r } from "./MessageFooter-D-dCrzJH.js";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  var o = {
8
8
  header: "_header_emo7t_1",
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as e } from "./LoginForm-_44FtvWg.js";
3
- import { t } from "./card-E2LKF9nT.js";
2
+ import { t as e } from "./LoginForm-BdsPVHdO.js";
3
+ import { t } from "./card-5ooLmYSr.js";
4
4
  import { Suspense as n, lazy as r, useState as i } from "react";
5
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
6
  var s = {
@@ -8,7 +8,7 @@ var s = {
8
8
  title: "_title_s7k8g_7",
9
9
  subtitle: "_subtitle_s7k8g_14",
10
10
  formWrapper: "_formWrapper_s7k8g_20"
11
- }, c = r(() => import("./PendingApprovalCard-C8iZjo06.js")), l = ({ logo: r, siteName: l, page: u }) => {
11
+ }, c = r(() => import("./PendingApprovalCard-hYkupl9A.js")), l = ({ logo: r, siteName: l, page: u }) => {
12
12
  let [d, f] = i(!1), [p, m] = i(!1), h = u.access?.find((e) => e.kind === "gating" && e.enabled)?.options;
13
13
  return p ? /* @__PURE__ */ a(n, {
14
14
  fallback: /* @__PURE__ */ a("div", {}),
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { n as e } from "./AuthProvider-C6bvedwF.js";
3
- import { n as t } from "./ModalManager-DHkd0Zdb.js";
3
+ import { n as t } from "./ModalManager-BcPk4sbK.js";
4
4
  import { a as n, n as r, o as i, r as a, t as o } from "./dialog-C8-iHixJ.js";
5
- import { t as s } from "./LoginForm-_44FtvWg.js";
5
+ import { t as s } from "./LoginForm-BdsPVHdO.js";
6
6
  import { useEffect as c } from "react";
7
7
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
8
  var d = {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as e } from "./card-E2LKF9nT.js";
3
- import { t } from "./MessageFooter-59Pziq3i.js";
2
+ import { t as e } from "./card-5ooLmYSr.js";
3
+ import { t } from "./MessageFooter-D-dCrzJH.js";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
5
  //#region src/components/accessCard/MessageCard.tsx
6
6
  var i = ({ logo: i, siteName: a, options: o, message: s }) => /* @__PURE__ */ r(e, {
@@ -2,7 +2,7 @@
2
2
  import { Suspense as e, createContext as t, lazy as n, useCallback as r, useContext as i, useState as a } from "react";
3
3
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
4
4
  //#region src/context/ModalManager.tsx
5
- var c = n(() => import("./LoginModal-Cyw_XKvz.js")), l = t({
5
+ var c = n(() => import("./LoginModal-CyvbEK26.js")), l = t({
6
6
  availableModals: ["login"],
7
7
  openModals: { key: null },
8
8
  openModal: () => ({}),
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { r as e } from "./dist-CG-pwDW0.js";
3
- import { t } from "./card-E2LKF9nT.js";
4
- import { t as n } from "./MessageFooter-59Pziq3i.js";
2
+ import { r as e } from "./dist-CsX9NP5P.js";
3
+ import { t } from "./card-5ooLmYSr.js";
4
+ import { t as n } from "./MessageFooter-D-dCrzJH.js";
5
5
  import { useState as r } from "react";
6
6
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  var s = {
@@ -1,4 +1,4 @@
1
- import { a as e } from "./Toolbar-BwxoYWO_.js";
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
2
  import { a as t, c as n, i as r, l as i, o as a, r as o, s, t as c, u as l } from "./Dialog-IrII0ugb.js";
3
3
  import { i as u, t as d } from "./Button-lUfKisu8.js";
4
4
  import { n as f, r as p, t as m } from "./inlineRteTheme-Ajq9PNpQ.js";
@@ -2241,7 +2241,7 @@ var Qe = ae([R, L], (e, t) => ({
2241
2241
  return e[0] === t ? n = e[1] : (n = () => {
2242
2242
  t && (t.callbacks?.onPopupClose?.(t.popup, { trigger_type: tt() }), Y(t.popup.id));
2243
2243
  }, e[0] = t, e[1] = n), n;
2244
- }, vt = "zv6sjd4", yt = "zv6sjd5", bt = "zv6sjd6", xt = k(() => import("./dist-CG-pwDW0.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), St = {
2244
+ }, vt = "zv6sjd4", yt = "zv6sjd5", bt = "zv6sjd6", xt = k(() => import("./dist-CsX9NP5P.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), St = {
2245
2245
  left: vt,
2246
2246
  center: yt,
2247
2247
  right: bt
@@ -1,32 +1,33 @@
1
1
  "use client";
2
- import { i as e, r as t, t as ee } from "./Toolbar-BwxoYWO_.js";
3
- import { r as te, t as n } from "./inlineRteTheme-Ajq9PNpQ.js";
4
- import { t as ne } from "./RteThemeProvider-Cfepkyer.js";
5
- import { t as re } from "./getFieldValidations-CSkSV2hW.js";
6
- import { l as ie, t as r } from "./CollectionField-xa-jed3_.js";
7
- import { i as ae } from "./Tooltip-NEMQqPyr.js";
8
- import { c as oe } from "react/compiler-runtime";
9
- import { useEffect as i, useState as se } from "react";
10
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
11
- import s from "clsx";
12
- import { useController as c } from "react-hook-form";
2
+ import { r as e, t } from "./inlineRteTheme-Ajq9PNpQ.js";
3
+ import { t as ee } from "./RteThemeProvider-Cfepkyer.js";
4
+ import { t as te } from "./getFieldValidations-CSkSV2hW.js";
5
+ import { l as ne, t as re } from "./CollectionField-xa-jed3_.js";
6
+ import { i as n } from "./Tooltip-NEMQqPyr.js";
7
+ import { r, t as ie } from "./Toolbar-Y6JtgPFn.js";
8
+ import { c as ae } from "react/compiler-runtime";
9
+ import { useEffect as i, useState as oe } from "react";
10
+ import { jsx as a, jsxs as se } from "react/jsx-runtime";
11
+ import ce from "clsx";
12
+ import { useController as le } from "react-hook-form";
13
+ import { EditorContent as o, EditorContext as s, useEditor as c } from "@tiptap/react";
13
14
  //#region ../../libraries/react-collection/dist/widgets/richTextWidget/RichTextWidget.cssm.js
14
- var ce = "_1vx76w30", le = "_1vx76w33", ue = "_1vx76w34", de = { style: n({ baseSpacing: ".875rem" }) }, l = (n) => {
15
- let l = oe(58), { field: u } = n, [d, fe] = se(!1), { key: f, label: p, helper_text: m, readonly: h, placeholder: pe } = u, g = f === void 0 ? "" : f, _ = p === void 0 ? "" : p, v = m === void 0 ? "" : m, y = h === void 0 ? !1 : h, b;
16
- l[0] === u ? b = l[1] : (b = re(u), l[0] = u, l[1] = b);
15
+ var ue = "_1vx76w30", de = "_1vx76w33", fe = "_1vx76w34", pe = { style: t({ baseSpacing: ".875rem" }) }, l = (t) => {
16
+ let l = ae(58), { field: u } = t, [d, me] = oe(!1), { key: f, label: p, helper_text: m, readonly: h, placeholder: he } = u, g = f === void 0 ? "" : f, _ = p === void 0 ? "" : p, v = m === void 0 ? "" : m, y = h === void 0 ? !1 : h, b;
17
+ l[0] === u ? b = l[1] : (b = te(u), l[0] = u, l[1] = b);
17
18
  let x;
18
19
  l[2] !== g || l[3] !== b ? (x = {
19
20
  name: g,
20
21
  rules: b
21
22
  }, l[2] = g, l[3] = b, l[4] = x) : x = l[4];
22
- let { field: me, fieldState: he } = c(x), { value: S, onBlur: C, onChange: w, disabled: T } = me, E = pe || "Write something ...", D;
23
- l[5] === E ? D = l[6] : (D = t({ placeholder: E }), l[5] = E, l[6] = D);
23
+ let { field: ge, fieldState: _e } = le(x), { value: S, onBlur: C, onChange: w, disabled: T } = ge, E = he || "Write something ...", D;
24
+ l[5] === E ? D = l[6] : (D = r({ placeholder: E }), l[5] = E, l[6] = D);
24
25
  let O = S || "", k = !T && !y, A;
25
26
  l[7] === Symbol.for("react.memo_cache_sentinel") ? (A = { attributes: {
26
27
  autocomplete: "off",
27
28
  autocorrect: "off",
28
29
  autocapitalize: "off",
29
- class: te
30
+ class: e
30
31
  } }, l[7] = A) : A = l[7];
31
32
  let j;
32
33
  l[8] === w ? j = l[9] : (j = (e) => {
@@ -42,9 +43,9 @@ var ce = "_1vx76w30", le = "_1vx76w33", ue = "_1vx76w34", de = { style: n({ base
42
43
  onUpdate: j,
43
44
  immediatelyRender: !1
44
45
  }, l[10] = O, l[11] = k, l[12] = j, l[13] = D, l[14] = M) : M = l[14];
45
- let N = (0, e.useEditor)(M), P;
46
+ let N = c(M), P;
46
47
  l[15] !== N || l[16] !== d || l[17] !== S ? (P = () => {
47
- N?.commands && !d && (N.commands.setContent(S || ""), fe(!0));
48
+ N?.commands && !d && (N.commands.setContent(S || ""), me(!0));
48
49
  }, l[15] = N, l[16] = d, l[17] = S, l[18] = P) : P = l[18];
49
50
  let F;
50
51
  l[19] === S ? F = l[20] : (F = [S], l[19] = S, l[20] = F), i(P, F);
@@ -62,33 +63,33 @@ var ce = "_1vx76w30", le = "_1vx76w33", ue = "_1vx76w34", de = { style: n({ base
62
63
  N.off("blur", C);
63
64
  };
64
65
  }, z = [N, C], l[26] = N, l[27] = C, l[28] = R, l[29] = z) : (R = l[28], z = l[29]), i(R, z);
65
- let B = he?.error?.message, V = !!u?.required, H = T && "_1vx76w31", U = y && "_1vx76w32", W;
66
- l[30] !== H || l[31] !== U ? (W = s(ce, H, U), l[30] = H, l[31] = U, l[32] = W) : W = l[32];
66
+ let B = _e?.error?.message, V = !!u?.required, H = T && "_1vx76w31", U = y && "_1vx76w32", W;
67
+ l[30] !== H || l[31] !== U ? (W = ce(ue, H, U), l[30] = H, l[31] = U, l[32] = W) : W = l[32];
67
68
  let G;
68
69
  l[33] === N ? G = l[34] : (G = { editor: N }, l[33] = N, l[34] = G);
69
70
  let K, q;
70
- l[35] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ a(ee, {}), q = /* @__PURE__ */ a(ie, { orientation: "horizontal" }), l[35] = K, l[36] = q) : (K = l[35], q = l[36]);
71
+ l[35] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ a(ie, {}), q = /* @__PURE__ */ a(ne, { orientation: "horizontal" }), l[35] = K, l[36] = q) : (K = l[35], q = l[36]);
71
72
  let J;
72
73
  l[37] === N?.commands ? J = l[38] : (J = () => N?.commands.focus(), l[37] = N?.commands, l[38] = J);
73
74
  let Y;
74
- l[39] === N ? Y = l[40] : (Y = /* @__PURE__ */ a(e.EditorContent, { editor: N }), l[39] = N, l[40] = Y);
75
+ l[39] === N ? Y = l[40] : (Y = /* @__PURE__ */ a(o, { editor: N }), l[39] = N, l[40] = Y);
75
76
  let X;
76
- l[41] !== J || l[42] !== Y ? (X = /* @__PURE__ */ o("div", {
77
- className: le,
77
+ l[41] !== J || l[42] !== Y ? (X = /* @__PURE__ */ se("div", {
78
+ className: de,
78
79
  children: [
79
80
  K,
80
81
  q,
81
82
  /* @__PURE__ */ a("div", {
82
- className: ue,
83
+ className: fe,
83
84
  onClick: J,
84
85
  children: Y
85
86
  })
86
87
  ]
87
88
  }), l[41] = J, l[42] = Y, l[43] = X) : X = l[43];
88
89
  let Z;
89
- l[44] !== G || l[45] !== X ? (Z = /* @__PURE__ */ a(ne, {
90
- theme: de,
91
- children: /* @__PURE__ */ a(ae, { children: /* @__PURE__ */ a(e.EditorContext.Provider, {
90
+ l[44] !== G || l[45] !== X ? (Z = /* @__PURE__ */ a(ee, {
91
+ theme: pe,
92
+ children: /* @__PURE__ */ a(n, { children: /* @__PURE__ */ a(s.Provider, {
92
93
  value: G,
93
94
  children: X
94
95
  }) })
@@ -99,7 +100,7 @@ var ce = "_1vx76w30", le = "_1vx76w33", ue = "_1vx76w34", de = { style: n({ base
99
100
  children: Z
100
101
  }), l[47] = W, l[48] = Z, l[49] = Q) : Q = l[49];
101
102
  let $;
102
- return l[50] !== v || l[51] !== g || l[52] !== _ || l[53] !== y || l[54] !== B || l[55] !== V || l[56] !== Q ? ($ = /* @__PURE__ */ a(r, {
103
+ return l[50] !== v || l[51] !== g || l[52] !== _ || l[53] !== y || l[54] !== B || l[55] !== V || l[56] !== Q ? ($ = /* @__PURE__ */ a(re, {
103
104
  error: B,
104
105
  helperText: v,
105
106
  readOnly: y,