@levo-so/studio 0.3.12 → 0.3.13
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.
- package/{BillingStep-BG4hhiaE.js → BillingStep-Cskl5Sbc.js} +1 -1
- package/{Button-CYXSFoBr.js → Button-D6OAkNtW.js} +1 -1
- package/{EntryCard-Btvieg4y.js → EntryCard-NCSYl-4A.js} +1 -1
- package/{KBChatWidget-aK7vt64V.js → KBChatWidget-C69g1bLL.js} +171 -102
- package/{LoginCard-HUsLBH9Y.js → LoginCard-BC05UxFH.js} +1 -1
- package/{PendingApprovalCard-Cf58Fj0h.js → PendingApprovalCard-B7sm8CZ_.js} +1 -1
- package/{PopupBody-BI-MJqmd-Cj3VgwnW.js → PopupBody-BI-MJqmd-C9i44N2h.js} +1 -1
- package/{PopupRenderer-D66Gx63H-CU-scfrr.js → PopupRenderer-D66Gx63H-dYKKhHdA.js} +1 -1
- package/{ProfileCard-WC8XhXzF.js → ProfileCard-DM1Jspj_.js} +1 -1
- package/{bookingCard-CmsUeDr3.js → bookingCard-DcK7qJ97.js} +2 -2
- package/collection.d.ts +1 -1
- package/collection.js +1 -1
- package/{dist-CveI0e3_.js → dist-Dq-z9c3T.js} +3 -3
- package/index.js +6 -6
- package/{kbChat-DfcTNf0n.js → kbChat-BKA7Fl9L.js} +1 -1
- package/package.json +4 -4
- package/studio.css +1 -1
|
@@ -104,7 +104,7 @@ var oe = (e) => (e ?? "16:9").replace(":", " / "), se = (e) => {
|
|
|
104
104
|
...i,
|
|
105
105
|
children: n
|
|
106
106
|
}), t[15] = n, t[16] = i, t[17] = g, t[18] = _) : _ = t[18], _;
|
|
107
|
-
}, ue = F(() => import("./PopupBody-BI-MJqmd-
|
|
107
|
+
}, ue = F(() => import("./PopupBody-BI-MJqmd-C9i44N2h.js").then((e) => e.n).then((e) => ({ default: e.PopupBody }))), de = (e) => {
|
|
108
108
|
let t = D(7), { size: n } = e, r = n ?? "medium", i;
|
|
109
109
|
t[0] === r ? i = t[1] : (i = E({ size: r }), t[0] = r, t[1] = i);
|
|
110
110
|
let a, o, s;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./Button-
|
|
2
|
+
import { t as e } from "./Button-D6OAkNtW.js";
|
|
3
3
|
import { n as t } from "./AuthProvider-B5NfFwbG.js";
|
|
4
4
|
import { t as n } from "./cn-B6c1DjO_.js";
|
|
5
5
|
import { n as r, t as i } from "./StripePaymentModal-CiKqmQwK.js";
|
|
6
|
-
import { BillingStep as a } from "./BillingStep-
|
|
6
|
+
import { BillingStep as a } from "./BillingStep-Cskl5Sbc.js";
|
|
7
7
|
import { errorHandler as o, useLevo as s } from "@levo-so/react";
|
|
8
8
|
import { useEffect as c, useRef as l, useState as u } from "react";
|
|
9
9
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
package/collection.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare interface ICollectionFormBuilderProps extends Omit<ILevoFormConte
|
|
|
38
38
|
formVariant?: FormVariantType;
|
|
39
39
|
collection_id: string;
|
|
40
40
|
hiddenFields?: string[];
|
|
41
|
-
workspace_id
|
|
41
|
+
workspace_id: string;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export declare interface ICollectionFormProps extends Omit<ILevoFormContext, "onSuccess" | "externalInitialValues" | "onError" | "isLoggedIn" | "toastConfig" | "onFormDirty" | "disableCaptcha" | "enableVerification"> {
|
package/collection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./dist-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./dist-Dq-z9c3T.js";
|
|
2
2
|
export { t as CollectionForm, a as CollectionFormBuilder, r as CollectionFormRenderer, n as FormBuilder, i as LevoFormProvider, e as useLevoForm, o as useLevoFormContext };
|
|
@@ -3633,15 +3633,15 @@ var Aa = (e) => {
|
|
|
3633
3633
|
let t = E(17), n, r, i, a;
|
|
3634
3634
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4]) : ({collection_id: n, hiddenFields: r, enableVerification: a, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a);
|
|
3635
3635
|
let o = a === void 0 ? !0 : a, { collection: s } = A(), [c, l] = B(!0), [u, d] = B(null), f;
|
|
3636
|
-
t[5] !== s || t[6] !== n || t[7] !== r || t[8] !== i
|
|
3637
|
-
n ? s?.getCollectionByIDExpanded(n, { headers: { "Levo-Workspace": i
|
|
3636
|
+
t[5] !== s || t[6] !== n || t[7] !== r || t[8] !== i ? (f = () => {
|
|
3637
|
+
n ? s?.getCollectionByIDExpanded(n, { headers: { "Levo-Workspace": i.workspace_id } }).then((e) => {
|
|
3638
3638
|
let t = e?.content?.data;
|
|
3639
3639
|
if (t) t.sections = t?.sections?.map((e) => (e.fields = e?.fields?.map((e) => (r?.includes(e?.key) && (e.hidden = !0), e)), e)), d(t);
|
|
3640
3640
|
else throw Error(`API response invalid: ${t}`);
|
|
3641
3641
|
}).catch(Ma).finally(() => {
|
|
3642
3642
|
l(!1);
|
|
3643
3643
|
}) : (console.error("[CollectionFormBuilder] Collection ID or Workspace ID is missing."), l(!1));
|
|
3644
|
-
}, t[5] = s, t[6] = n, t[7] = r, t[8] = i
|
|
3644
|
+
}, t[5] = s, t[6] = n, t[7] = r, t[8] = i, t[9] = f) : f = t[9];
|
|
3645
3645
|
let p;
|
|
3646
3646
|
t[10] === n ? p = t[11] : (p = [n], t[10] = n, t[11] = p), L(f, p);
|
|
3647
3647
|
let m;
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { l as e, r as t } from "./dist-
|
|
2
|
+
import { l as e, r as t } from "./dist-Dq-z9c3T.js";
|
|
3
3
|
import { r as n } from "./themeMapping-Bi9Rcr5G-C7UXWE6o.js";
|
|
4
|
-
import { _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, y as S } from "./Button-
|
|
4
|
+
import { _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, y as S } from "./Button-D6OAkNtW.js";
|
|
5
5
|
import { n as C, t as w } from "./AuthProvider-B5NfFwbG.js";
|
|
6
6
|
import { n as T, t as E } from "./ModalManager-CzH36UIk.js";
|
|
7
7
|
import { t as D } from "./cn-B6c1DjO_.js";
|
|
@@ -3800,7 +3800,7 @@ var Di = (e, t) => {
|
|
|
3800
3800
|
getAllBlocks() {
|
|
3801
3801
|
return this.blocks;
|
|
3802
3802
|
}
|
|
3803
|
-
}, yo = vo.getInstance(), bo = nt(() => import("./kbChat-
|
|
3803
|
+
}, yo = vo.getInstance(), bo = nt(() => import("./kbChat-BKA7Fl9L.js"), { ssr: !1 }), xo = () => {
|
|
3804
3804
|
let e = rt(), [t, n] = R(void 0), r = e?.events;
|
|
3805
3805
|
return F(() => {
|
|
3806
3806
|
if (typeof window > "u" || !r) return;
|
|
@@ -4042,7 +4042,7 @@ var Do = ({ site: e }) => {
|
|
|
4042
4042
|
siteSlug: e?.slug,
|
|
4043
4043
|
siteName: e?.name
|
|
4044
4044
|
})] });
|
|
4045
|
-
}, Oo = { loadingContainer: "_loadingContainer_1d4on_1" }, ko = Pe(() => import("./LoginCard-
|
|
4045
|
+
}, Oo = { loadingContainer: "_loadingContainer_1d4on_1" }, ko = Pe(() => import("./LoginCard-BC05UxFH.js")), Ao = Pe(() => import("./EntryCard-NCSYl-4A.js")), jo = Pe(() => import("./MessageCard-Nsxr98n6.js")), Mo = Pe(() => import("./ProfileCard-DM1Jspj_.js")), No = {
|
|
4046
4046
|
"authentication.NOT_LOGGED_IN": ({ logo: e, siteName: t, page: n }) => /* @__PURE__ */ B(je, {
|
|
4047
4047
|
fallback: /* @__PURE__ */ B("div", {}),
|
|
4048
4048
|
children: /* @__PURE__ */ B(ko, {
|
|
@@ -6092,7 +6092,7 @@ var el = d(qc), tl = Ne(({ children: e, className: t, elementKey: n, generatedCl
|
|
|
6092
6092
|
children: [/* @__PURE__ */ B(Vc, { backgroundVideo: a?.backgroundVideo }), e]
|
|
6093
6093
|
}));
|
|
6094
6094
|
tl.displayName = "BaseContainer";
|
|
6095
|
-
var nl = d(tl), rl = Pe(() => import("./dist-
|
|
6095
|
+
var nl = d(tl), rl = Pe(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then((e) => ({ default: e.CollectionForm }))), il = d(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: i, theme: a, onSubmit: o, isLoading: s }) => /* @__PURE__ */ B("div", {
|
|
6096
6096
|
"data-levo_element_key": e,
|
|
6097
6097
|
className: D(r, t),
|
|
6098
6098
|
children: /* @__PURE__ */ B(je, {
|
|
@@ -6114,7 +6114,7 @@ var nl = d(tl), rl = Pe(() => import("./dist-CveI0e3_.js").then((e) => e.t).then
|
|
|
6114
6114
|
isLoading: s
|
|
6115
6115
|
})
|
|
6116
6116
|
})
|
|
6117
|
-
})), al = Pe(() => import("./dist-
|
|
6117
|
+
})), al = Pe(() => import("./dist-Dq-z9c3T.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormRenderer }))), ol = Pe(() => import("./bookingCard-DcK7qJ97.js").then((e) => ({ default: e.BookingCard }))), sl = Pe(() => import("./BillingStep-Cskl5Sbc.js").then((e) => ({ default: e.BillingStep }))), cl = d(({ elementKey: e, generatedClassName: t, config: r, className: i, initialValues: a, theme: o }) => {
|
|
6118
6118
|
let s = M(), { workspace: c, isLoggedIn: l, isAuthLoaded: u } = C(), d = I(() => {
|
|
6119
6119
|
if (!r?.theme && !o) return;
|
|
6120
6120
|
let e = r?.theme;
|
|
@@ -64,7 +64,7 @@ var x = (t) => e("active_agent", t), S = (e) => {
|
|
|
64
64
|
e,
|
|
65
65
|
r
|
|
66
66
|
]), i;
|
|
67
|
-
}, T = (...e) => e.filter(Boolean).join(" "), E = () => import("./KBChatWidget-
|
|
67
|
+
}, T = (...e) => e.filter(Boolean).join(" "), E = () => import("./KBChatWidget-C69g1bLL.js"), D = (e) => {
|
|
68
68
|
let [t, n] = g(null), [r, i] = g(!1), [a, o] = g("");
|
|
69
69
|
return t ? /* @__PURE__ */ _(t, {
|
|
70
70
|
initialOpen: !0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/studio",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"author": "Levo Engineering <devs@theinternetfolks.com>",
|
|
5
5
|
"description": "Levo Studio components and utilities for building block-based pages",
|
|
6
6
|
"type": "module",
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
"react": ">=19",
|
|
124
124
|
"next": ">=14",
|
|
125
125
|
"react-dom": ">=19",
|
|
126
|
-
"@levo-so/
|
|
127
|
-
"@levo-so/
|
|
128
|
-
"@levo-so/
|
|
126
|
+
"@levo-so/react": "0.3.13",
|
|
127
|
+
"@levo-so/core": "0.3.13",
|
|
128
|
+
"@levo-so/insights": "0.3.13"
|
|
129
129
|
}
|
|
130
130
|
}
|