@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.
Files changed (37) hide show
  1. package/CollectionField-C-6a1ud4.js +270 -0
  2. package/{CollectionInput-B1qV4QEH.js → CollectionInput-BJ__qcbk.js} +40 -40
  3. package/DateTimeWidget-hFjcn3o6.js +255 -0
  4. package/{Dialog-DVB4WpBS.js → Dialog-dT7y641z.js} +43 -43
  5. package/{KBChatWidget-Cnq0DCOQ.js → KBChatWidget-ClHFDgJ5.js} +236 -236
  6. package/{LevoProvider-nmIbMlsk.js → LevoProvider-Bsjkcwc8.js} +8 -8
  7. package/PhoneWidget-BmBO-kvA.js +99 -0
  8. package/{Popover-C7zZHBIc.js → Popover-3N88sRp4.js} +20 -20
  9. package/{PopupBody-DZVwDLkg-yrot8Uqb.js → PopupBody-DZVwDLkg-Cfy3lWGs.js} +33 -33
  10. package/{PopupRenderer-BjW1jg70-Biwj2bIc.js → PopupRenderer-BjW1jg70-W2y-PEPH.js} +81 -81
  11. package/{RichTextWidget-BOrVIR2j.js → RichTextWidget-DkKHEq4j.js} +139 -139
  12. package/ThemeProvider-DutrjSTF.js +116 -0
  13. package/{Tooltip-BIgrpetu.js → Tooltip-CQB0LyxK.js} +20 -20
  14. package/{VerifyButton-CA1GtEZJ.js → VerifyButton-BUT70lgz.js} +65 -65
  15. package/dist-CRDgdAkQ.js +3631 -0
  16. package/{dist-Cb6sb7nO.js → dist-DPmVG7VB.js} +13 -13
  17. package/index.d.ts +560 -3
  18. package/index.js +1203 -713
  19. package/inlineBaseTheme-BB9e6h5f.js +9 -0
  20. package/{inlineCollectionTheme-DYYMrmcE.js → inlineCollectionTheme-CWcMCUti.js} +1 -1
  21. package/{kbChat-DIb4AS7E.js → kbChat-C00LVlxP.js} +27 -27
  22. package/{nodeAlignment-D70kOcui.js → nodeAlignment-BnJljFlw.js} +1 -1
  23. package/package.json +3 -3
  24. package/popups.js +1 -1
  25. package/{react-6kO0cqgr.js → react-CV3jf2mc.js} +1 -1
  26. package/styles.css +1 -1
  27. package/{generateRadiusScale-54mE9ikx.js → themeVars.cssm-ByhhC2Jm.js} +17 -17
  28. package/usePopupRedirect-BThP_YPW-COUseDik.js +80 -0
  29. package/CollectionField-C59pmeQw.js +0 -270
  30. package/DateTimeWidget-Cctsvcrs.js +0 -255
  31. package/PhoneWidget-J3VTMWJH.js +0 -99
  32. package/ThemeProvider-BQmIB5tr.js +0 -116
  33. package/dist-C8gLeklT.js +0 -3559
  34. package/inlineBaseTheme-B6E9zzyp.js +0 -9
  35. package/usePopupRedirect-BThP_YPW-DoixMAB9.js +0 -80
  36. /package/{createThemeExtension-DhGk81nV.js → createThemeExtension-4AUn51iJ.js} +0 -0
  37. /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-nmIbMlsk.js";
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-6kO0cqgr.js";
5
- import { Suspense as u, lazy as d, useEffect as f, useRef as p, useState as m } from "react";
6
- import { jsx as h } from "react/jsx-runtime";
7
- import { c as g } from "react/compiler-runtime";
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 = d(() => import("./PopupRenderer-BjW1jg70-Biwj2bIc.js").then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), x = (e) => {
18
- let n = g(9), { siteId: r, pageId: i } = e, { fetch: a, logger: s } = t(), [c, l] = m(null), d = p(!1), v, x;
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 (d.current) return;
20
+ if (p.current) return;
21
21
  let e = () => {
22
- d.current || (d.current = !0, y(a, r ? { site_id: r } : void 0).then((e) => {
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]), f(v, x), !c || c.length === 0) return null;
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__ */ h("div", {
47
+ return n[6] !== i || n[7] !== c ? (w = /* @__PURE__ */ d("div", {
48
48
  style: C,
49
- children: /* @__PURE__ */ h(u, { children: /* @__PURE__ */ h(b, {
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 = g(3), t = l(n), r = l(c), i = w, a = T, o;
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,