@levo-so/site-runtime 0.3.7 → 0.3.8
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/CollectionField-C-6a1ud4.js +270 -0
- package/{CollectionInput-B1qV4QEH.js → CollectionInput-BJ__qcbk.js} +40 -40
- package/DateTimeWidget-hFjcn3o6.js +255 -0
- package/{Dialog-DVB4WpBS.js → Dialog-dT7y641z.js} +43 -43
- package/{KBChatWidget-Cnq0DCOQ.js → KBChatWidget-ClHFDgJ5.js} +236 -236
- package/{LevoProvider-nmIbMlsk.js → LevoProvider-Bsjkcwc8.js} +8 -8
- package/PhoneWidget-BmBO-kvA.js +99 -0
- package/{Popover-C7zZHBIc.js → Popover-3N88sRp4.js} +20 -20
- package/{PopupBody-DZVwDLkg-yrot8Uqb.js → PopupBody-DZVwDLkg-Cfy3lWGs.js} +33 -33
- package/{PopupRenderer-BjW1jg70-Biwj2bIc.js → PopupRenderer-BjW1jg70-W2y-PEPH.js} +81 -81
- package/{RichTextWidget-BOrVIR2j.js → RichTextWidget-DkKHEq4j.js} +139 -139
- package/ThemeProvider-DutrjSTF.js +116 -0
- package/{Tooltip-BIgrpetu.js → Tooltip-CQB0LyxK.js} +20 -20
- package/{VerifyButton-CA1GtEZJ.js → VerifyButton-BUT70lgz.js} +65 -65
- package/dist-CRDgdAkQ.js +3631 -0
- package/{dist-Cb6sb7nO.js → dist-DPmVG7VB.js} +13 -13
- package/index.d.ts +560 -3
- package/index.js +1203 -713
- package/inlineBaseTheme-BB9e6h5f.js +9 -0
- package/{inlineCollectionTheme-DYYMrmcE.js → inlineCollectionTheme-CWcMCUti.js} +1 -1
- package/{kbChat-DIb4AS7E.js → kbChat-C00LVlxP.js} +27 -27
- package/{nodeAlignment-D70kOcui.js → nodeAlignment-BnJljFlw.js} +1 -1
- package/package.json +3 -3
- package/popups.js +1 -1
- package/{react-6kO0cqgr.js → react-CV3jf2mc.js} +1 -1
- package/styles.css +1 -1
- package/{generateRadiusScale-54mE9ikx.js → themeVars.cssm-ByhhC2Jm.js} +17 -17
- package/usePopupRedirect-BThP_YPW-COUseDik.js +80 -0
- package/CollectionField-C59pmeQw.js +0 -270
- package/DateTimeWidget-Cctsvcrs.js +0 -255
- package/PhoneWidget-J3VTMWJH.js +0 -99
- package/ThemeProvider-BQmIB5tr.js +0 -116
- package/dist-C8gLeklT.js +0 -3559
- package/inlineBaseTheme-B6E9zzyp.js +0 -9
- package/usePopupRedirect-BThP_YPW-DoixMAB9.js +0 -80
- /package/{createThemeExtension-DhGk81nV.js → createThemeExtension-4AUn51iJ.js} +0 -0
- /package/{theme.cssm-mkQwezuj.js → theme.cssm-DUzmx76l.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { t } from "./LevoProvider-
|
|
2
|
+
import { t } from "./LevoProvider-Bsjkcwc8.js";
|
|
3
3
|
import { a as n, c as r, i, l as a, o, t as s, u as c } from "./popupState-JmpeKzgM-qhNTV79U.js";
|
|
4
|
-
import { t as l } from "./react-
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as
|
|
7
|
-
import {
|
|
4
|
+
import { t as l } from "./react-CV3jf2mc.js";
|
|
5
|
+
import { c as u } from "react/compiler-runtime";
|
|
6
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
7
|
+
import { Suspense as f, lazy as p, useEffect as m, useRef as h, useState as g } from "react";
|
|
8
8
|
import { $isIdentityContextReady as _ } from "@levo-so/insights/stores";
|
|
9
9
|
//#region ../../libraries/popups/dist/index.js
|
|
10
10
|
var v = /* @__PURE__ */ e({
|
|
@@ -14,12 +14,12 @@ 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 =
|
|
18
|
-
let n =
|
|
17
|
+
}, b = p(() => import("./PopupRenderer-BjW1jg70-W2y-PEPH.js").then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), x = (e) => {
|
|
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
|
-
if (
|
|
20
|
+
if (p.current) return;
|
|
21
21
|
let e = () => {
|
|
22
|
-
|
|
22
|
+
p.current || (p.current = !0, y(a, r ? { site_id: r } : void 0).then((e) => {
|
|
23
23
|
o(e), l(e);
|
|
24
24
|
}).catch((e) => {
|
|
25
25
|
s?.error("Failed to fetch popups", { exception: e }), o([]), l([]);
|
|
@@ -37,16 +37,16 @@ var v = /* @__PURE__ */ e({
|
|
|
37
37
|
a,
|
|
38
38
|
s,
|
|
39
39
|
r
|
|
40
|
-
], n[0] = a, n[1] = s, n[2] = r, n[3] = v, n[4] = x) : (v = n[3], x = n[4]),
|
|
40
|
+
], n[0] = a, n[1] = s, n[2] = r, n[3] = v, n[4] = x) : (v = n[3], x = n[4]), m(v, x), !c || c.length === 0) return null;
|
|
41
41
|
let C;
|
|
42
42
|
n[5] === Symbol.for("react.memo_cache_sentinel") ? (C = {
|
|
43
43
|
position: "relative",
|
|
44
44
|
zIndex: 99999
|
|
45
45
|
}, n[5] = C) : C = n[5];
|
|
46
46
|
let w;
|
|
47
|
-
return n[6] !== i || n[7] !== c ? (w = /* @__PURE__ */
|
|
47
|
+
return n[6] !== i || n[7] !== c ? (w = /* @__PURE__ */ d("div", {
|
|
48
48
|
style: C,
|
|
49
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ d(f, { children: /* @__PURE__ */ d(b, {
|
|
50
50
|
popups: c,
|
|
51
51
|
pageId: i
|
|
52
52
|
}) })
|
|
@@ -56,7 +56,7 @@ function S() {
|
|
|
56
56
|
return a(!1);
|
|
57
57
|
}
|
|
58
58
|
var C = () => {
|
|
59
|
-
let e =
|
|
59
|
+
let e = u(3), t = l(n), r = l(c), i = w, a = T, o;
|
|
60
60
|
return e[0] !== r || e[1] !== t ? (o = {
|
|
61
61
|
popups: t,
|
|
62
62
|
isLoading: r,
|