@levo-so/site-runtime 0.3.8 → 0.3.9
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/{DateTimeWidget-hFjcn3o6.js → DateTimeWidget-LfaosVVW.js} +1 -1
- package/{KBChatWidget-ClHFDgJ5.js → KBChatWidget-CuAtGhHT.js} +11 -10
- package/{PopupBody-DZVwDLkg-Cfy3lWGs.js → PopupBody-BI-MJqmd-C0qNyN7V.js} +285 -168
- package/PopupRenderer-D66Gx63H-C6RnOnl2.js +388 -0
- package/{RichTextWidget-DkKHEq4j.js → RichTextWidget-BFWVevY7.js} +3 -3
- package/{dist-DPmVG7VB.js → dist-Rjs__H25.js} +3 -3
- package/{dist-CRDgdAkQ.js → dist-orLT2eNz.js} +498 -466
- package/index.d.ts +511 -0
- package/index.js +925 -783
- package/{kbChat-C00LVlxP.js → kbChat-L55effMi.js} +2 -2
- package/package.json +37 -27
- package/popups.js +1 -1
- package/routes-CyKmkoRM.js +316 -0
- package/start.d.ts +38 -0
- package/start.js +19 -0
- package/styles.css +1 -1
- package/{usePopupRedirect-BThP_YPW-COUseDik.js → usePopupRedirect-CAAdcpaW-D9XoiVhG.js} +15 -13
- package/PopupRenderer-BjW1jg70-W2y-PEPH.js +0 -387
- /package/{PhoneWidget-BmBO-kvA.js → PhoneWidget-D-CcDuie.js} +0 -0
- /package/{Popover-3N88sRp4.js → Popover-BTdlOQP_.js} +0 -0
- /package/{es-CztjLuNy.js → es-Bj3CsMJz.js} +0 -0
- /package/{nodeAlignment-BnJljFlw.js → nodeAlignment-COvc-rIj.js} +0 -0
- /package/{pillChrome-BAu5AfCT.js → pillChrome-uieiq_SK.js} +0 -0
- /package/{popupState-JmpeKzgM-qhNTV79U.js → popupState-JmpeKzgM-D_77LiAa.js} +0 -0
- /package/{react-CV3jf2mc.js → react-B9yvlbH0.js} +0 -0
- /package/{rteTheme.cssm-xg0gJ28J.js → rteTheme.cssm-CaRzrwtu.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e, t } from "./CollectionField-C-6a1ud4.js";
|
|
2
2
|
import { r as n } from "./ThemeProvider-DutrjSTF.js";
|
|
3
3
|
import { t as ee } from "./CollectionInput-BJ__qcbk.js";
|
|
4
|
-
import { a as r, i, n as a, r as o, t as s } from "./Popover-
|
|
4
|
+
import { a as r, i, n as a, r as o, t as s } from "./Popover-BTdlOQP_.js";
|
|
5
5
|
import { FieldInterfaces as c } from "@levo-so/core";
|
|
6
6
|
import l from "dayjs";
|
|
7
7
|
import { useController as u } from "react-hook-form";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _ as e, a as t, c as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, r as d, s as f, t as p, u as m, v as h } from "./pillChrome-
|
|
2
|
+
import { _ as e, a as t, c as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, r as d, s as f, t as p, u as m, v as h } from "./pillChrome-uieiq_SK.js";
|
|
3
3
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
4
4
|
import { Children as y, createContext as b, isValidElement as x, useCallback as S, useContext as C, useEffect as w, useLayoutEffect as T, useRef as E, useState as D } from "react";
|
|
5
5
|
import { ArrowUp as O, Check as k, ChevronDown as ee, Copy as A, MessageSquarePlus as j, Mic as te, RefreshCw as M, Sparkles as ne, Square as N, X as P } from "lucide-react";
|
|
@@ -372,10 +372,10 @@ var H = ({ chips: e, onSelect: t, size: n = "comfortable", className: r, chipCla
|
|
|
372
372
|
})
|
|
373
373
|
]
|
|
374
374
|
});
|
|
375
|
-
}, Ie = () => null, Le = "max-w-none text-sm text-zinc-900 leading-relaxed [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_a:hover]:text-sky-700 [&_a]:break-words [&_a]:font-medium [&_a]:text-sky-600 [&_a]:underline [&_a]:underline-offset-2 [&_li]:text-sm [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_p]:my-2 [&_p]:text-sm [&_strong]:font-semibold [&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5", Re = "group pr-4 pb-6", ze = "mt-2 flex items-center gap-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100", Be = "text-xs text-zinc-500/60", Ve = "rounded p-1.5 text-zinc-500 transition-colors hover:text-zinc-900", He = ({ tools: e = Ie, Parts: t, thinkingIndicator: n = /* @__PURE__ */ _(Fe, {}), rootClassName: r = Re, contentClassName: i = Le, metaClassName: a = ze, wrapContent: o, metaSlot: s, copyIdleClassName: c, copyCopiedClassName: l, reloadClassName: u = Ve, timeClassName: d = Be, timeFormatOptions: f, readOnly: p = !1, belowContent: m }) => {
|
|
376
|
-
let
|
|
375
|
+
}, Ie = () => null, Le = "max-w-none text-sm text-zinc-900 leading-relaxed [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_a:hover]:text-sky-700 [&_a]:break-words [&_a]:font-medium [&_a]:text-sky-600 [&_a]:underline [&_a]:underline-offset-2 [&_li]:text-sm [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_p]:my-2 [&_p]:text-sm [&_strong]:font-semibold [&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5", Re = "group pr-4 pb-6", ze = "mt-2 flex items-center gap-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100", Be = "text-xs text-zinc-500/60", Ve = "rounded p-1.5 text-zinc-500 transition-colors hover:text-zinc-900", He = ({ tools: e = Ie, Parts: t, thinkingIndicator: n = /* @__PURE__ */ _(Fe, {}), rootClassName: r = Re, contentClassName: i = Le, metaClassName: a = ze, wrapContent: o, metaSlot: s, copyIdleClassName: c, copyCopiedClassName: l, reloadClassName: u = Ve, timeClassName: d = Be, timeFormatOptions: f, readOnly: p = !1, belowContent: m, footerSlot: g }) => {
|
|
376
|
+
let y = V((e) => e.message), b = t ?? R.Content, x = y.status?.type === "running", S = /* @__PURE__ */ _("div", {
|
|
377
377
|
className: i,
|
|
378
|
-
children: /* @__PURE__ */ _(
|
|
378
|
+
children: /* @__PURE__ */ _(b, { components: {
|
|
379
379
|
Text: Me,
|
|
380
380
|
tools: { Fallback: e }
|
|
381
381
|
} })
|
|
@@ -385,21 +385,21 @@ var H = ({ chips: e, onSelect: t, size: n = "comfortable", className: r, chipCla
|
|
|
385
385
|
children: /* @__PURE__ */ v("div", {
|
|
386
386
|
className: "flex min-w-0 flex-col",
|
|
387
387
|
children: [
|
|
388
|
-
o ? o(
|
|
389
|
-
|
|
388
|
+
o ? o(S) : S,
|
|
389
|
+
x && /* @__PURE__ */ _("div", {
|
|
390
390
|
className: "mt-1",
|
|
391
391
|
children: n
|
|
392
392
|
}),
|
|
393
|
-
!
|
|
393
|
+
!x && m && /* @__PURE__ */ _("div", {
|
|
394
394
|
className: "mt-2",
|
|
395
395
|
children: m
|
|
396
396
|
}),
|
|
397
|
-
!
|
|
397
|
+
!x && /* @__PURE__ */ v("div", {
|
|
398
398
|
className: a,
|
|
399
399
|
children: [
|
|
400
400
|
/* @__PURE__ */ _("span", {
|
|
401
401
|
className: d,
|
|
402
|
-
children: h(
|
|
402
|
+
children: h(y.createdAt, f)
|
|
403
403
|
}),
|
|
404
404
|
s,
|
|
405
405
|
/* @__PURE__ */ v(F.Root, {
|
|
@@ -413,7 +413,8 @@ var H = ({ chips: e, onSelect: t, size: n = "comfortable", className: r, chipCla
|
|
|
413
413
|
})]
|
|
414
414
|
})
|
|
415
415
|
]
|
|
416
|
-
})
|
|
416
|
+
}),
|
|
417
|
+
!x && g
|
|
417
418
|
]
|
|
418
419
|
})
|
|
419
420
|
});
|