@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.
@@ -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-3N88sRp4.js";
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-BAu5AfCT.js";
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 g = V((e) => e.message), y = t ?? R.Content, b = g.status?.type === "running", x = /* @__PURE__ */ _("div", {
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__ */ _(y, { components: {
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(x) : x,
389
- b && /* @__PURE__ */ _("div", {
388
+ o ? o(S) : S,
389
+ x && /* @__PURE__ */ _("div", {
390
390
  className: "mt-1",
391
391
  children: n
392
392
  }),
393
- !b && m && /* @__PURE__ */ _("div", {
393
+ !x && m && /* @__PURE__ */ _("div", {
394
394
  className: "mt-2",
395
395
  children: m
396
396
  }),
397
- !b && /* @__PURE__ */ v("div", {
397
+ !x && /* @__PURE__ */ v("div", {
398
398
  className: a,
399
399
  children: [
400
400
  /* @__PURE__ */ _("span", {
401
401
  className: d,
402
- children: h(g.createdAt, f)
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
  });