@levo-so/site-runtime 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/{KBChatWidget-CXIsQEgj.js → KBChatWidget-DCj3mo3P.js} +280 -211
- package/{PopupBody-BI-MJqmd-Dy94OeBQ.js → PopupBody-BI-MJqmd-DgTQEzda.js} +1 -1
- package/{PopupRenderer-D66Gx63H-DkprAQH7.js → PopupRenderer-D66Gx63H-Cd9xJv33.js} +1 -1
- package/blog-content.js +2 -2
- package/{dist-B7c9xjWu.js → dist-6AIgW_iB.js} +1 -1
- package/{dist-1r8apbDv.js → dist-CEdznbFW.js} +3 -3
- package/index.d.ts +10 -1
- package/index.js +285 -282
- package/{kbChat-jqrzqmaT.js → kbChat-BIzoQwEC.js} +1 -1
- package/package.json +3 -3
- package/popups.js +1 -1
- package/styles.css +1 -1
|
@@ -60,7 +60,7 @@ var Q = [
|
|
|
60
60
|
...r,
|
|
61
61
|
children: a
|
|
62
62
|
}) : null;
|
|
63
|
-
}, te = /* @__PURE__ */ O({ PopupBody: () => oe }), ne = B(() => import("./dist-
|
|
63
|
+
}, te = /* @__PURE__ */ O({ PopupBody: () => oe }), ne = B(() => import("./dist-CEdznbFW.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), re = E({ baseSpacing: ".625rem" }), ie = { style: a({ form: { gap: "1rem" } }) }, ae = {
|
|
64
64
|
left: D,
|
|
65
65
|
center: M,
|
|
66
66
|
right: A
|
|
@@ -103,7 +103,7 @@ var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
|
103
103
|
...a,
|
|
104
104
|
children: r
|
|
105
105
|
}), n[15] = r, n[16] = a, n[17] = p, n[18] = m) : m = n[18], m;
|
|
106
|
-
}, de = I(() => import("./PopupBody-BI-MJqmd-
|
|
106
|
+
}, de = I(() => import("./PopupBody-BI-MJqmd-DgTQEzda.js").then((e) => e.n).then((e) => ({ default: e.PopupBody }))), fe = (e) => {
|
|
107
107
|
let t = A(7), { size: n } = e, r = n ?? "medium", i;
|
|
108
108
|
t[0] === r ? i = t[1] : (i = k({ size: r }), t[0] = r, t[1] = i);
|
|
109
109
|
let a, o, s;
|
package/blog-content.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as e } from "./dist-
|
|
2
|
+
import { r as e } from "./dist-CEdznbFW.js";
|
|
3
3
|
import { t } from "./LevoProvider-Bsjkcwc8.js";
|
|
4
4
|
import { t as n } from "./inlineBaseTheme-BB9e6h5f.js";
|
|
5
|
-
import { t as r } from "./dist-
|
|
5
|
+
import { t as r } from "./dist-6AIgW_iB.js";
|
|
6
6
|
import { _ as i, 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 } from "./react-Cj_U6VZQ.js";
|
|
7
7
|
import { i as S, n as C, r as w, t as T } from "./content.cssm-XdMsTGIB.js";
|
|
8
8
|
import { t as E } from "./RteThemeProvider-BQmfSXSl.js";
|
|
@@ -14,7 +14,7 @@ var v = /* @__PURE__ */ e({
|
|
|
14
14
|
}), y = async (e, t) => {
|
|
15
15
|
let n = {};
|
|
16
16
|
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 ?? [];
|
|
17
|
-
}, b = p(() => import("./PopupRenderer-D66Gx63H-
|
|
17
|
+
}, b = p(() => import("./PopupRenderer-D66Gx63H-Cd9xJv33.js").then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), x = (e) => {
|
|
18
18
|
let n = u(9), { siteId: r, pageId: i } = e, { fetch: a, logger: s } = t(), [c, l] = g(null), p = h(!1), v, x;
|
|
19
19
|
if (n[0] !== a || n[1] !== s || n[2] !== r ? (v = () => {
|
|
20
20
|
if (p.current) return;
|
|
@@ -3630,15 +3630,15 @@ var ka = (e) => {
|
|
|
3630
3630
|
let t = W(17), n, r, i, a;
|
|
3631
3631
|
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);
|
|
3632
3632
|
let o = a === void 0 ? !0 : a, { collection: s } = g(), [c, l] = Q(!0), [u, d] = Q(null), f;
|
|
3633
|
-
t[5] !== s || t[6] !== n || t[7] !== r || t[8] !== i
|
|
3634
|
-
n ? s?.getCollectionByIDExpanded(n, { headers: { "Levo-Workspace": i
|
|
3633
|
+
t[5] !== s || t[6] !== n || t[7] !== r || t[8] !== i ? (f = () => {
|
|
3634
|
+
n ? s?.getCollectionByIDExpanded(n, { headers: { "Levo-Workspace": i.workspace_id } }).then((e) => {
|
|
3635
3635
|
let t = e?.content?.data;
|
|
3636
3636
|
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);
|
|
3637
3637
|
else throw Error(`API response invalid: ${t}`);
|
|
3638
3638
|
}).catch(ja).finally(() => {
|
|
3639
3639
|
l(!1);
|
|
3640
3640
|
}) : (console.error("[CollectionFormBuilder] Collection ID or Workspace ID is missing."), l(!1));
|
|
3641
|
-
}, t[5] = s, t[6] = n, t[7] = r, t[8] = i
|
|
3641
|
+
}, t[5] = s, t[6] = n, t[7] = r, t[8] = i, t[9] = f) : f = t[9];
|
|
3642
3642
|
let p;
|
|
3643
3643
|
t[10] === n ? p = t[11] : (p = [n], t[10] = n, t[11] = p), ae(f, p);
|
|
3644
3644
|
let m;
|
package/index.d.ts
CHANGED
|
@@ -902,6 +902,15 @@ export declare interface ILevoRecordConfig {
|
|
|
902
902
|
module: ILevoSourceModule;
|
|
903
903
|
/** What the module's `identifier` names — see {@link ILevoSourceModule}. Round-tripped; the event single endpoint is flat (slug only). */
|
|
904
904
|
identifier: string;
|
|
905
|
+
/**
|
|
906
|
+
* Route param this binding's slug comes from — `"slug"` on `/blog/$slug`, `"events"` on
|
|
907
|
+
* `/legal-events/$events`. Every generated record binding carries it: it is the mapping a
|
|
908
|
+
* multi-param route needs, since with two variable segments nothing else in the file says
|
|
909
|
+
* which binding fills which slot. Round-tripped through the editor binding like the rest.
|
|
910
|
+
*
|
|
911
|
+
* Optional only for the pages written before it existed — see {@link recordSlug}.
|
|
912
|
+
*/
|
|
913
|
+
param?: string;
|
|
905
914
|
/**
|
|
906
915
|
* Reserved for field projection. The slug endpoints return the whole record today, so
|
|
907
916
|
* this is round-tripped through the binding but not yet sent to the API.
|
|
@@ -1931,7 +1940,7 @@ export declare const prefetchLevoSources: ({ queryClient, config, sources, param
|
|
|
1931
1940
|
config: ILevoSiteConfig | undefined;
|
|
1932
1941
|
/** The page's `dataSources` export (undefined = page has none). */
|
|
1933
1942
|
sources: ILevoDataSources | undefined;
|
|
1934
|
-
/** Route params; record
|
|
1943
|
+
/** Route params; each record binding reads the one its `param` names, else the sole segment. */
|
|
1935
1944
|
params?: Record<string, string>;
|
|
1936
1945
|
}) => Promise<Record<string, unknown>>;
|
|
1937
1946
|
|