@marimo-team/islands 0.23.16-dev26 → 0.23.16-dev28

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.
@@ -6,13 +6,13 @@ import { c as useEventListener, g as Logger, h as cn, t as Button } from "./butt
6
6
  import { t as require_react } from "./react-DA-nE2FX.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
8
8
  import { r as toast } from "./copy-DNq8q3zw.js";
9
- import { $t as isErrorMime, An as Wrench, C as Accordion, E as AccordionTrigger, Et as moveToEndOfEditor, F as base64ToDataURL, Gt as getTableType, H as renderHTML, In as LoaderCircle, Mt as jotaiJsonStorage, Nt as variablesAtom, O as ChatBubbleIcon, Q as notebookAtom, Rn as Info, Rt as PluralWord, S as AIContextRegistry, Sn as atomWithStorage, St as createVariableInfoElement, T as AccordionItem, Ut as allTablesAtom, Vn as ExternalLink, Wn as CircleX, Wt as dataSourceConnectionsAtom, b as contextToXml, c as Popover, d as PopoverTrigger, en as isMarimoErrorsMime, f as isOutputEmpty, fn as CellOutputId, g as formatDatasourceContextForCell, h as DatasourceContextProvider, ht as displayCellName, jn as Trash2, kt as generateUUID, n as Spinner, nn as singleFacet, qt as getRequestClient, r as MarkdownRenderer, sn as ZodLocalStorage, st as parseHtmlContent, t as toPng, tn as isTracebackMime, u as PopoverContent, v as Boosts, w as AccordionContent, wn as Anchor2, x as AIContextProvider, y as Sections, zn as FileText } from "./html-to-image-27MFfyOf.js";
9
+ import { $t as isErrorMime, An as Wrench, C as Accordion, Dt as moveToEndOfEditor, E as AccordionTrigger, F as base64ToDataURL, Gt as getTableType, H as renderHTML, In as LoaderCircle, Mt as jotaiJsonStorage, Nt as variablesAtom, O as ChatBubbleIcon, Q as notebookAtom, Rn as Info, Rt as PluralWord, S as AIContextRegistry, Sn as atomWithStorage, St as createVariableInfoElement, T as AccordionItem, Ut as allTablesAtom, Vn as ExternalLink, Wn as CircleX, Wt as dataSourceConnectionsAtom, b as contextToXml, c as Popover, d as PopoverTrigger, en as isMarimoErrorsMime, f as isOutputEmpty, fn as CellOutputId, g as formatDatasourceContextForCell, h as DatasourceContextProvider, ht as displayCellName, jn as Trash2, kt as generateUUID, n as Spinner, nn as singleFacet, qt as getRequestClient, r as MarkdownRenderer, sn as ZodLocalStorage, st as parseHtmlContent, t as toPng, tn as isTracebackMime, u as PopoverContent, v as Boosts, w as AccordionContent, wn as Anchor2, x as AIContextProvider, y as Sections, zn as FileText } from "./html-to-image-Bza3T2dl.js";
10
10
  import "./chunk-5FQGJX7Z-B9WoXK1R.js";
11
11
  import { u as createLucideIcon } from "./dist-DIlxLFXG.js";
12
12
  import { C as logNever, I as X, R as ChevronDown, t as Strings } from "./strings-DIy9NAmg.js";
13
13
  import { C as DropdownMenuTrigger, a as NumberField, f as DropdownMenu, h as DropdownMenuItem, p as DropdownMenuContent, r as Input } from "./input-C5K4VBvB.js";
14
14
  import { p as isUrl, w as CircleQuestionMark } from "./toDate-CqhBWjvO.js";
15
- import { a as MarimoIncomingMessageEvent, d as Square, f as File$1, n as blobToString, t as processOutput, u as deserializeBlob } from "./process-output-BpssYna4.js";
15
+ import { a as MarimoIncomingMessageEvent, d as Square, f as File$1, n as blobToString, t as processOutput, u as deserializeBlob } from "./process-output-pCEXvnhG.js";
16
16
  import "./react-dom-BTJzcVJ9.js";
17
17
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
18
18
  import { A as looseObject, B as union, C as any, D as discriminatedUnion, E as custom, H as safeParseAsync, I as record, L as strictObject, M as never, N as number, O as lazy, P as object$1, R as string, S as _null, T as boolean, V as unknown, W as toJSONSchema, b as _enum, k as literal, w as array$1, x as _instanceof } from "./zod-BUcyXSdR.js";
@@ -6613,18 +6613,18 @@ const ReasoningAccordion = (e18) => {
6613
6613
  if (!g && !b) return null;
6614
6614
  let C = b ? "reasoning" : x, w;
6615
6615
  h[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BotMessageSquare, { className: "h-3 w-3" }), h[0] = w) : w = h[0];
6616
- let D = b ? "Thinking" : "View reasoning", O = g.length > 0 && ` (${g.length} chars)`, k;
6617
- h[1] !== D || h[2] !== O ? (k = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
6616
+ let E = b ? "Thinking" : "View reasoning", O = g.length > 0 && ` (${g.length} chars)`, k;
6617
+ h[1] !== E || h[2] !== O ? (k = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
6618
6618
  className: "text-xs text-muted-foreground hover:bg-muted/50 px-2 py-1 h-auto rounded-sm [&[data-state=open]>svg]:rotate-180",
6619
6619
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
6620
6620
  className: "flex items-center gap-2",
6621
6621
  children: [
6622
6622
  w,
6623
- D,
6623
+ E,
6624
6624
  O
6625
6625
  ]
6626
6626
  })
6627
- }), h[1] = D, h[2] = O, h[3] = k) : k = h[3];
6627
+ }), h[1] = E, h[2] = O, h[3] = k) : k = h[3];
6628
6628
  let A;
6629
6629
  h[4] === g ? A = h[5] : (A = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
6630
6630
  className: "pb-2 px-2",
@@ -6950,9 +6950,9 @@ function getTriggerToneClass(e18) {
6950
6950
  }
6951
6951
  }
6952
6952
  const ToolHistoryRow = (e18) => {
6953
- let h = (0, import_compiler_runtime$3.c)(34), { toolName: g, state: _, input: y, result: b, approval: x, index: S, className: C, isActive: w } = e18, D = S === void 0 ? 0 : S, O = w === void 0 ? true : w, k;
6953
+ let h = (0, import_compiler_runtime$3.c)(34), { toolName: g, state: _, input: y, result: b, approval: x, index: S, className: C, isActive: w } = e18, E = S === void 0 ? 0 : S, O = w === void 0 ? true : w, k;
6954
6954
  h[0] !== O || h[1] !== _ ? (k = !O && PENDING_STATES.has(_), h[0] = O, h[1] = _, h[2] = k) : k = h[2];
6955
- let A = k, j = `tool-${D}`, M;
6955
+ let A = k, j = `tool-${E}`, M;
6956
6956
  h[3] === C ? M = h[4] : (M = cn("w-full", C), h[3] = C, h[4] = M);
6957
6957
  let N;
6958
6958
  h[5] !== A || h[6] !== _ ? (N = cn("h-6 text-xs border-border shadow-none! ring-0! bg-muted/60 hover:bg-muted py-0 px-2 gap-1 rounded-sm [&[data-state=open]>svg]:rotate-180 hover:no-underline", A ? "text-muted-foreground" : getTriggerToneClass(_)), h[5] = A, h[6] = _, h[7] = N) : N = h[7];
@@ -7822,7 +7822,7 @@ function routeIncomingChatChunk(e18, h) {
7822
7822
  }
7823
7823
  const Chatbot = (e18) => {
7824
7824
  var _a;
7825
- let [h, b] = (0, import_react.useState)(""), [x, S] = (0, import_react.useState)(e18.config), [C, w] = (0, import_react.useState)(e18.config), [T, E] = (0, import_react.useState)(void 0), O = (0, import_react.useRef)(null), k = (0, import_react.useRef)(null), A = (0, import_react.useRef)(null), j = (0, import_react.useRef)(null);
7825
+ let [h, b] = (0, import_react.useState)(""), [x, S] = (0, import_react.useState)(e18.config), [C, w] = (0, import_react.useState)(e18.config), [T, D] = (0, import_react.useState)(void 0), O = (0, import_react.useRef)(null), k = (0, import_react.useRef)(null), A = (0, import_react.useRef)(null), j = (0, import_react.useRef)(null);
7826
7826
  Object.keys(e18.config).some((h2) => e18.config[h2] !== C[h2]) && (S(e18.config), w(e18.config));
7827
7827
  let M = (0, import_react.useRef)(x);
7828
7828
  M.current = x;
@@ -7883,7 +7883,7 @@ const Chatbot = (e18) => {
7883
7883
  } }),
7884
7884
  messages: I,
7885
7885
  onFinish: (h2) => {
7886
- E(void 0), O.current && (O.current.value = ""), Logger.debug("Finished streaming message:", h2), e18.setValue(h2.messages);
7886
+ D(void 0), O.current && (O.current.value = ""), Logger.debug("Finished streaming message:", h2), e18.setValue(h2.messages);
7887
7887
  },
7888
7888
  onError: (e19) => {
7889
7889
  Logger.error("An error occurred:", e19);
@@ -8064,7 +8064,7 @@ const Chatbot = (e18) => {
8064
8064
  variant: "text",
8065
8065
  size: "sm",
8066
8066
  onClick: () => {
8067
- E(void 0), O.current && (O.current.value = "");
8067
+ D(void 0), O.current && (O.current.value = "");
8068
8068
  },
8069
8069
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { className: "size-3" })
8070
8070
  }),
@@ -8084,7 +8084,7 @@ const Chatbot = (e18) => {
8084
8084
  multiple: true,
8085
8085
  accept: Array.isArray(e18.allowAttachments) ? e18.allowAttachments.join(",") : void 0,
8086
8086
  onChange: (e19) => {
8087
- e19.target.files && E([...e19.target.files]);
8087
+ e19.target.files && D([...e19.target.files]);
8088
8088
  }
8089
8089
  })] }),
8090
8090
  K ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip, {