@marimo-team/islands 0.25.1-dev2 → 0.25.1-dev4

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 (21) hide show
  1. package/dist/{ErrorBoundary-DO0ie20N.js → ErrorBoundary-pV36lYEK.js} +1 -1
  2. package/dist/{cells-DYIkSxs6.js → cells-B5-y5EY3.js} +4121 -4148
  3. package/dist/{chat-ui-BXj3uYjy.js → chat-ui-HJZsTl7o.js} +45 -45
  4. package/dist/{code-visibility-64_ACQvC.js → code-visibility-CgZS2a3W.js} +17 -17
  5. package/dist/{common-LlPE7GR6.js → common-DnMDPPaW.js} +611 -611
  6. package/dist/{data-grid-overlay-editor-BUvmnptP.js → data-grid-overlay-editor-hHYgD_Sm.js} +1 -1
  7. package/dist/{error-entries-C0NsUqXl.js → error-entries-Bkbpx0T0.js} +18 -18
  8. package/dist/{feedback-button-B98mEc3M.js → feedback-button-CvKssdG_.js} +19 -19
  9. package/dist/{formats-BR5iGb4s.js → formats-C8rLgZT9.js} +1 -1
  10. package/dist/{glide-data-editor-CBIPbkXG.js → glide-data-editor-Ohetlgag.js} +3 -3
  11. package/dist/{globals-VpAtGRbg.js → globals-CPNNcOJI.js} +1 -1
  12. package/dist/{html-to-image-CeYYvQNb.js → html-to-image-BAgJOlSW.js} +31 -30
  13. package/dist/main.js +581 -581
  14. package/dist/{number-overlay-editor-ClZmv3Qw.js → number-overlay-editor-CHWg5gGO.js} +1 -1
  15. package/dist/{process-output-BCTjlyuH.js → process-output-zDX4jbhd.js} +2 -2
  16. package/dist/{reveal-component-C1s_K6O8.js → reveal-component-BujcZI2B.js} +744 -743
  17. package/dist/{toDate-WXg1yLcI.js → toDate-C67bxMWn.js} +139 -111
  18. package/dist/{vega-component-D0QXopU8.js → vega-component-CNf5gcrm.js} +9 -9
  19. package/package.json +1 -1
  20. package/src/core/kernel/__tests__/session.test.ts +110 -1
  21. package/src/core/kernel/session.ts +46 -15
@@ -3,13 +3,13 @@ import { c as n, g as r, h as i, t as a } from "./button-DdXAm8iz.js";
3
3
  import { t as o } from "./react-ofJbxM4x.js";
4
4
  import { t as s } from "./compiler-runtime-Cj8ZWiNS.js";
5
5
  import { i as c, t as l } from "./copy-icon-CLdENY__.js";
6
- import { F as u, H as d, U as f, V as p, X as m, Y as h, Z as g, _, a as v, c as y, d as b, f as x, g as S, h as C, l as w, m as T, n as E, p as D, r as O, t as k, v as A, x as ee, y as te, z as ne } from "./html-to-image-CeYYvQNb.js";
6
+ import { F as u, H as d, U as f, V as p, X as m, Y as h, Z as g, _, a as v, c as y, d as b, f as x, g as S, h as C, l as w, m as T, n as E, p as D, r as O, t as k, v as A, x as ee, y as te, z as ne } from "./html-to-image-BAgJOlSW.js";
7
7
  import { g as j, t as re } from "./tooltip-qB8NlSqV.js";
8
- import { Ct as ie, Dt as ae, Kt as oe, Lt as se, N as ce, St as le, Vt as ue, Z as de, b as fe, ct as pe, d as me, fn as he, hn as ge, ht as _e, in as ve, it as ye, lt as be, pn as xe, tt as Se, vn as Ce, wt as we } from "./cells-DYIkSxs6.js";
8
+ import { $ as ie, $t as ae, It as oe, K as se, Mt as ce, N as le, St as ue, Vt as de, X as fe, _t as pe, b as me, cn as he, d as ge, it as _e, pn as ve, rt as ye, sn as be, un as xe, ut as Se, vt as Ce, yt as we } from "./cells-B5-y5EY3.js";
9
9
  import { A as Te, C as Ee, M as De, b as Oe } from "./select-C6plhmZr.js";
10
10
  import { _ as ke, f as Ae, h as je, i as Me, n as Ne, t as Pe } from "./dropdown-menu-CZgjYSAh.js";
11
- import { p as Fe, v as Ie } from "./toDate-WXg1yLcI.js";
12
- import { d as Le, f as Re, i as ze, n as Be, t as Ve, u as He } from "./process-output-BCTjlyuH.js";
11
+ import { T as Fe, p as Ie } from "./toDate-C67bxMWn.js";
12
+ import { d as Le, f as Re, i as ze, n as Be, t as Ve, u as He } from "./process-output-zDX4jbhd.js";
13
13
  import { t as Ue } from "./jsx-runtime-DgDPJV9S.js";
14
14
  import { A as We, C as Ge, D as Ke, E as qe, F as Je, L as Ye, M as Xe, O as Ze, P as Qe, R as $e, S as et, T as tt, V as nt, b as rt, j as it, v as at, w as ot, x as st, y as ct, z as lt } from "./use-restore-focus-D5D9xEjZ.js";
15
15
  import { n as ut } from "./error-banner-B94dcDmP.js";
@@ -22,7 +22,7 @@ import { n as kt, o as At, r as jt } from "./dist-B1vYLK28.js";
22
22
  import { n as Mt } from "./dist-BRxfaJgs.js";
23
23
  import { n as Nt, t as Pt } from "./esm-h8f7-1CJ.js";
24
24
  import { t as Ft } from "./useAsyncData-BD6AStMt.js";
25
- import { i as It, r as Lt, t as Rt } from "./error-entries-C0NsUqXl.js";
25
+ import { i as It, r as Lt, t as Rt } from "./error-entries-Bkbpx0T0.js";
26
26
  var zt = j("ban", [["circle", {
27
27
  cx: "12",
28
28
  cy: "12",
@@ -3383,7 +3383,7 @@ var Ea = class extends T {
3383
3383
  super(), this.store = e;
3384
3384
  }
3385
3385
  getItems() {
3386
- let e = this.store.get(me), t = [];
3386
+ let e = this.store.get(ge), t = [];
3387
3387
  for (let n of e.cellIds.inOrderIds) {
3388
3388
  let r = ka(n, e), i = r.cellOutput;
3389
3389
  if (!i) continue;
@@ -3461,7 +3461,7 @@ async function Da(e, t, n) {
3461
3461
  let i = e.filter((e) => e.shouldDownloadImage && e.outputType === "media");
3462
3462
  if (i.length === 0) return [];
3463
3463
  let a = i.flatMap((e) => {
3464
- let i = document.getElementById(oe.create(t));
3464
+ let i = document.getElementById(de.create(t));
3465
3465
  return i ? {
3466
3466
  cellId: t,
3467
3467
  cellName: n,
@@ -3492,7 +3492,7 @@ function Oa(e) {
3492
3492
  };
3493
3493
  }
3494
3494
  function ka(e, t, n) {
3495
- let { includeConsoleOutput: r = !1 } = n || {}, i = t.cellRuntime[e], a = t.cellData[e], o = t.cellIds.inOrderIds.indexOf(e), s = ce(a.name, o), c;
3495
+ let { includeConsoleOutput: r = !1 } = n || {}, i = t.cellRuntime[e], a = t.cellData[e], o = t.cellIds.inOrderIds.indexOf(e), s = le(a.name, o), c;
3496
3496
  r && (c = i.consoleOutputs.map((e) => Oa(e)).filter((e) => e !== null));
3497
3497
  let l, u = i.output;
3498
3498
  return u && !v(u) && (l = Oa(u) ?? void 0), {
@@ -3507,7 +3507,7 @@ function ka(e, t, n) {
3507
3507
  //#region src/core/ai/context/providers/error.ts
3508
3508
  function Aa(e, t) {
3509
3509
  let n = [`Code:\n${e.cellCode}`];
3510
- if (e.tracebackHtml && n.push(`Traceback:\n${fe(e.tracebackHtml)}`), e.errorData.length > 0 && n.push(e.errorData.map((e) => Lt(e)).join("\n\n")), e.errorData.some((e) => e.type === "sql-error")) {
3510
+ if (e.tracebackHtml && n.push(`Traceback:\n${me(e.tracebackHtml)}`), e.errorData.length > 0 && n.push(e.errorData.map((e) => Lt(e)).join("\n\n")), e.errorData.some((e) => e.type === "sql-error")) {
3511
3511
  let r = w(e.cellId, t);
3512
3512
  r && n.push(`Database schema:\n${r}`);
3513
3513
  }
@@ -3524,12 +3524,12 @@ function ja(e, t) {
3524
3524
  });
3525
3525
  }
3526
3526
  function Ma(e) {
3527
- return e.errorData.length === 1 ? Rt(e.errorData[0]) : e.errorData.length > 1 ? `${e.errorData.length} errors` : e.tracebackHtml ? fe(e.tracebackHtml).trim().split("\n").find((e) => e.trim())?.trim() || "traceback" : "error";
3527
+ return e.errorData.length === 1 ? Rt(e.errorData[0]) : e.errorData.length > 1 ? `${e.errorData.length} errors` : e.tracebackHtml ? me(e.tracebackHtml).trim().split("\n").find((e) => e.trim())?.trim() || "traceback" : "error";
3528
3528
  }
3529
3529
  function Na(e) {
3530
3530
  return `Error: ${e.cellName || `Cell ${e.cellId}`}`;
3531
3531
  }
3532
- var Pa = new _e("error", "errors"), Fa = class extends T {
3532
+ var Pa = new Se("error", "errors"), Fa = class extends T {
3533
3533
  title = "Errors";
3534
3534
  mentionPrefix = "@";
3535
3535
  contextType = "error";
@@ -3603,7 +3603,7 @@ var Pa = new _e("error", "errors"), Fa = class extends T {
3603
3603
  formatContext(e) {
3604
3604
  return (e.data.type === "all-errors" ? e.data.errors : [e.data.error]).map((e) => ja(e, this.store)).join("\n\n");
3605
3605
  }
3606
- }, Ia = se(), La = {
3606
+ }, Ia = ce(), La = {
3607
3607
  maxDepth: 3,
3608
3608
  maxResults: 20,
3609
3609
  defaultResultsLimit: 5,
@@ -3894,7 +3894,7 @@ var Pa = new _e("error", "errors"), Fa = class extends T {
3894
3894
  detail: n.dataType ?? "",
3895
3895
  type: this.contextType,
3896
3896
  section: x.VARIABLE,
3897
- info: () => de(n)
3897
+ info: () => se(n)
3898
3898
  };
3899
3899
  }
3900
3900
  formatContext(e) {
@@ -3912,11 +3912,11 @@ var Pa = new _e("error", "errors"), Fa = class extends T {
3912
3912
  //#endregion
3913
3913
  //#region src/core/ai/context/context.ts
3914
3914
  function Va(e) {
3915
- let t = e.get(ie), n = e.get(le), r = e.get(be);
3915
+ let t = e.get(Ce), n = e.get(pe), r = e.get(_e);
3916
3916
  return new C().register(new za(n)).register(new Ba(r, n)).register(new Fa(e)).register(new Ea(e)).register(new y(t.connectionsMap, n));
3917
3917
  }
3918
3918
  function Ha() {
3919
- return new Ra(ae());
3919
+ return new Ra(ue());
3920
3920
  }
3921
3921
  //#endregion
3922
3922
  //#region src/components/editor/ai/completion-utils.ts
@@ -3986,7 +3986,7 @@ var Ka = (e) => {
3986
3986
  s
3987
3987
  ] }), t[4] = n, t[5] = o, t[6] = s, t[7] = c) : c = t[7];
3988
3988
  let l = c;
3989
- if (a && Fe(a)) {
3989
+ if (a && Ie(a)) {
3990
3990
  let e = i ?? r, n;
3991
3991
  return t[8] !== l || t[9] !== a || t[10] !== e ? (n = /* @__PURE__ */ (0, q.jsx)("a", {
3992
3992
  href: a,
@@ -4150,7 +4150,7 @@ var Xa = (e) => {
4150
4150
  let m;
4151
4151
  t[5] === Symbol.for("react.memo_cache_sentinel") ? (m = () => l($a), t[5] = m) : m = t[5];
4152
4152
  let h;
4153
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, q.jsx)(Ce, { className: "h-3.5 w-3.5 shrink-0" }), t[6] = h) : h = t[6];
4153
+ t[6] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, q.jsx)(ve, { className: "h-3.5 w-3.5 shrink-0" }), t[6] = h) : h = t[6];
4154
4154
  let g;
4155
4155
  t[7] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ (0, q.jsx)("span", {
4156
4156
  className: "font-semibold",
@@ -4247,7 +4247,7 @@ var to = Ze({
4247
4247
  let m;
4248
4248
  t[10] === c ? m = t[11] : (m = c && /* @__PURE__ */ (0, q.jsxs)("div", {
4249
4249
  className: "flex items-start gap-2",
4250
- children: [/* @__PURE__ */ (0, q.jsx)(he, { className: "h-3 w-3 text-(--blue-11) mt-0.5 shrink-0" }), /* @__PURE__ */ (0, q.jsx)("div", {
4250
+ children: [/* @__PURE__ */ (0, q.jsx)(be, { className: "h-3 w-3 text-(--blue-11) mt-0.5 shrink-0" }), /* @__PURE__ */ (0, q.jsx)("div", {
4251
4251
  className: "text-xs text-foreground",
4252
4252
  children: c
4253
4253
  })]
@@ -4531,12 +4531,12 @@ var lo = (e) => {
4531
4531
  isActive: i
4532
4532
  }, s);
4533
4533
  case "source-document": return /* @__PURE__ */ (0, q.jsx)(qa, {
4534
- icon: /* @__PURE__ */ (0, q.jsx)(xe, { className: "h-3 w-3 shrink-0" }),
4534
+ icon: /* @__PURE__ */ (0, q.jsx)(he, { className: "h-3 w-3 shrink-0" }),
4535
4535
  title: o.title,
4536
4536
  subtitle: o.filename
4537
4537
  }, s);
4538
4538
  case "source-url": return /* @__PURE__ */ (0, q.jsx)(qa, {
4539
- icon: /* @__PURE__ */ (0, q.jsx)(ge, { className: "h-3 w-3 shrink-0" }),
4539
+ icon: /* @__PURE__ */ (0, q.jsx)(xe, { className: "h-3 w-3 shrink-0" }),
4540
4540
  title: o.title ?? o.url,
4541
4541
  subtitle: o.title ? o.url : void 0,
4542
4542
  href: o.url
@@ -5111,8 +5111,8 @@ function ns(e) {
5111
5111
  let t = document.createElement("div");
5112
5112
  return t.innerHTML = e, { dom: t };
5113
5113
  }
5114
- ve("marimo:ai-language", "python", pe);
5115
- var rs = "marimo:ai-prompt-history", is = new ue(et(Je()), () => []), as = (e) => {
5114
+ ae("marimo:ai-language", "python", ye);
5115
+ var rs = "marimo:ai-prompt-history", is = new oe(et(Je()), () => []), as = (e) => {
5116
5116
  let t = (0, M.c)(35), { value: n, placeholder: r, inputRef: a, className: o, onChange: s, onSubmit: c, onKeyDown: l, onClose: u, onAddFiles: d, additionalCompletions: f, maxHeight: p } = e, m = c, h = u, g = mt(), { theme: _ } = ht(), v;
5117
5117
  t[0] === f ? v = t[1] : (v = (e) => f ? Ua([f.triggerCompletionRegex], f.completions)(e) : null, t[0] = f, t[1] = v);
5118
5118
  let y = pt(v), b, x, S, C;
@@ -5221,7 +5221,7 @@ var ds = (e) => {
5221
5221
  y.current = s;
5222
5222
  let b = (0, K.useRef)(null), x = (0, K.useRef)(null), S = (0, K.useRef)(null), [C, w] = (0, K.useState)(null), T = () => {
5223
5223
  S.current = null, w(null);
5224
- }, { data: D } = Ft(async () => (await e.get_chat_history({})).messages, []), O = e.value.length > 0 ? e.value : D, { messages: k, sendMessage: A, setMessages: ee, status: te, stop: ne, error: j, regenerate: ie, clearError: ae, addToolApprovalResponse: oe } = ba({
5224
+ }, { data: D } = Ft(async () => (await e.get_chat_history({})).messages, []), O = e.value.length > 0 ? e.value : D, { messages: k, sendMessage: A, setMessages: ee, status: te, stop: ne, error: j, regenerate: ae, clearError: oe, addToolApprovalResponse: se } = ba({
5225
5225
  sendAutomaticallyWhen: ({ messages: e }) => Ga(e),
5226
5226
  transport: new ea({ fetch: async (t, n) => {
5227
5227
  if (n === void 0) return fetch(t);
@@ -5237,7 +5237,7 @@ var ds = (e) => {
5237
5237
  let t = i.messages.map((e) => ({
5238
5238
  ...e,
5239
5239
  content: e.parts?.map((e) => "text" in e ? e.text : "").join("\n")
5240
- })), n = ye();
5240
+ })), n = ie();
5241
5241
  T();
5242
5242
  let s = new ReadableStream({
5243
5243
  start(t) {
@@ -5310,30 +5310,30 @@ var ds = (e) => {
5310
5310
  });
5311
5311
  }
5312
5312
  });
5313
- let se = te === "submitted" || te === "streaming", ce = (t) => {
5313
+ let ce = te === "submitted" || te === "streaming", le = (t) => {
5314
5314
  let n = k.findIndex((e) => e.id === t);
5315
5315
  if (n !== -1) {
5316
5316
  let r = k.filter((e) => e.id !== t);
5317
5317
  e.delete_chat_message({ index: n }), ee(r), e.setValue(r), r.length === 0 && T();
5318
5318
  }
5319
- }, le = Array.isArray(e.allowAttachments) && e.allowAttachments.length > 0 || e.allowAttachments === !0, ue = {
5319
+ }, ue = Array.isArray(e.allowAttachments) && e.allowAttachments.length > 0 || e.allowAttachments === !0, de = {
5320
5320
  triggerCompletionRegex: /^\/(\w+)?/,
5321
5321
  completions: e.prompts.map((e) => ({
5322
5322
  label: `/${e}`,
5323
5323
  displayLabel: e,
5324
5324
  apply: e
5325
5325
  }))
5326
- }, de = e.prompts.length > 0 ? "Type your message here, / for prompts" : "Type your message here...";
5326
+ }, pe = e.prompts.length > 0 ? "Type your message here, / for prompts" : "Type your message here...";
5327
5327
  (0, K.useEffect)(() => {
5328
5328
  v.current?.scrollTo({
5329
5329
  top: v.current.scrollHeight,
5330
5330
  behavior: "smooth"
5331
5331
  });
5332
5332
  }, [k.length, v]);
5333
- let fe = _.current?.view, pe = () => {
5334
- if (fe) {
5335
- let e = fe.state.doc.length;
5336
- fe.dispatch({ changes: {
5333
+ let me = _.current?.view, he = () => {
5334
+ if (me) {
5335
+ let e = me.state.doc.length;
5336
+ me.dispatch({ changes: {
5337
5337
  from: 0,
5338
5338
  to: e,
5339
5339
  insert: ""
@@ -5352,7 +5352,7 @@ var ds = (e) => {
5352
5352
  size: "icon",
5353
5353
  disabled: k.length === 0,
5354
5354
  onClick: () => {
5355
- ee([]), e.setValue([]), e.delete_chat_history({}), ae(), T();
5355
+ ee([]), e.setValue([]), e.delete_chat_history({}), oe(), T();
5356
5356
  },
5357
5357
  children: /* @__PURE__ */ (0, q.jsx)(Wt, { className: "h-3 w-3" })
5358
5358
  })
@@ -5385,8 +5385,8 @@ var ds = (e) => {
5385
5385
  message: e,
5386
5386
  isStreamingReasoning: te === "streaming",
5387
5387
  isLast: r,
5388
- isActive: se,
5389
- addToolApprovalResponse: r ? oe : void 0
5388
+ isActive: ce,
5389
+ addToolApprovalResponse: r ? se : void 0
5390
5390
  })
5391
5391
  }), /* @__PURE__ */ (0, q.jsxs)("div", {
5392
5392
  className: "flex justify-end text-xs gap-2 invisible group-hover:visible",
@@ -5396,14 +5396,14 @@ var ds = (e) => {
5396
5396
  buttonClassName: "text-xs text-(--slate-9) hover:text-(--slate-11)"
5397
5397
  }), /* @__PURE__ */ (0, q.jsx)("button", {
5398
5398
  type: "button",
5399
- onClick: () => ce(e.id),
5399
+ onClick: () => le(e.id),
5400
5400
  className: "text-xs text-(--slate-9) hover:text-(--slate-11)",
5401
5401
  children: /* @__PURE__ */ (0, q.jsx)(m, { className: "h-3 w-3 text-(--red-9)" })
5402
5402
  })]
5403
5403
  })]
5404
5404
  }, `${e.id}-${t}`);
5405
5405
  }),
5406
- se && /* @__PURE__ */ (0, q.jsx)("div", {
5406
+ ce && /* @__PURE__ */ (0, q.jsx)("div", {
5407
5407
  className: "flex items-center justify-center mb-4",
5408
5408
  children: /* @__PURE__ */ (0, q.jsx)(E, { size: "small" })
5409
5409
  }),
@@ -5412,11 +5412,11 @@ var ds = (e) => {
5412
5412
  children: [/* @__PURE__ */ (0, q.jsx)(ut, { error: j }), /* @__PURE__ */ (0, q.jsx)(a, {
5413
5413
  variant: "outline",
5414
5414
  size: "sm",
5415
- onClick: () => ie(),
5415
+ onClick: () => ae(),
5416
5416
  children: "Retry"
5417
5417
  })]
5418
5418
  }),
5419
- C && !se && !j && /* @__PURE__ */ (0, q.jsx)("div", {
5419
+ C && !ce && !j && /* @__PURE__ */ (0, q.jsx)("div", {
5420
5420
  className: "flex justify-center py-2",
5421
5421
  children: /* @__PURE__ */ (0, q.jsx)("span", {
5422
5422
  className: "text-xs text-muted-foreground",
@@ -5435,7 +5435,7 @@ var ds = (e) => {
5435
5435
  type: "text",
5436
5436
  text: t
5437
5437
  }, ...r ?? []]
5438
- }), pe();
5438
+ }), he();
5439
5439
  },
5440
5440
  ref: g,
5441
5441
  inert: e.disabled || void 0,
@@ -5449,13 +5449,13 @@ var ds = (e) => {
5449
5449
  prompts: e.prompts,
5450
5450
  onSelect: (e) => {
5451
5451
  o(e), requestAnimationFrame(() => {
5452
- fe?.focus(), Se(fe);
5452
+ me?.focus(), fe(me);
5453
5453
  });
5454
5454
  }
5455
5455
  }),
5456
5456
  /* @__PURE__ */ (0, q.jsx)(as, {
5457
5457
  className: "rounded-sm mr-2",
5458
- placeholder: de,
5458
+ placeholder: pe,
5459
5459
  value: t,
5460
5460
  inputRef: _,
5461
5461
  maxHeight: e.maxHeight ? `${e.maxHeight / 2}px` : void 0,
@@ -5464,7 +5464,7 @@ var ds = (e) => {
5464
5464
  t.trim() && g.current?.requestSubmit();
5465
5465
  },
5466
5466
  onClose: () => {},
5467
- additionalCompletions: ue
5467
+ additionalCompletions: de
5468
5468
  }),
5469
5469
  f && f.length === 1 && /* @__PURE__ */ (0, q.jsx)("span", {
5470
5470
  title: f[0].name,
@@ -5485,7 +5485,7 @@ var ds = (e) => {
5485
5485
  },
5486
5486
  children: /* @__PURE__ */ (0, q.jsx)(Te, { className: "size-3" })
5487
5487
  }),
5488
- le && /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [/* @__PURE__ */ (0, q.jsx)(a, {
5488
+ ue && /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [/* @__PURE__ */ (0, q.jsx)(a, {
5489
5489
  type: "button",
5490
5490
  variant: "text",
5491
5491
  size: "sm",
@@ -5501,7 +5501,7 @@ var ds = (e) => {
5501
5501
  e.target.files && p([...e.target.files]);
5502
5502
  }
5503
5503
  })] }),
5504
- se ? /* @__PURE__ */ (0, q.jsx)(re, {
5504
+ ce ? /* @__PURE__ */ (0, q.jsx)(re, {
5505
5505
  content: "Stop generating",
5506
5506
  children: /* @__PURE__ */ (0, q.jsx)(a, {
5507
5507
  type: "button",
@@ -5610,7 +5610,7 @@ var ds = (e) => {
5610
5610
  className: "text-xs flex flex-col",
5611
5611
  children: fs[t].description
5612
5612
  }),
5613
- children: /* @__PURE__ */ (0, q.jsx)(Ie, { className: "h-3 w-3 cursor-help text-muted-foreground hover:text-foreground" })
5613
+ children: /* @__PURE__ */ (0, q.jsx)(Fe, { className: "h-3 w-3 cursor-help text-muted-foreground hover:text-foreground" })
5614
5614
  })]
5615
5615
  }), /* @__PURE__ */ (0, q.jsx)(ke, {
5616
5616
  id: t,
@@ -1,8 +1,8 @@
1
1
  import { g as e } from "./button-DdXAm8iz.js";
2
2
  import { t } from "./compiler-runtime-Cj8ZWiNS.js";
3
- import { G as n, H as r, V as i, q as a } from "./cells-DYIkSxs6.js";
4
- import { C as o } from "./select-C6plhmZr.js";
5
- import { _ as s, d as c } from "./toDate-WXg1yLcI.js";
3
+ import { H as n, V as r } from "./cells-B5-y5EY3.js";
4
+ import { C as i } from "./select-C6plhmZr.js";
5
+ import { C as a, d as o, x as s, y as c } from "./toDate-C67bxMWn.js";
6
6
  import { C as l, E as u, a as d, b as f } from "./useTheme-DzXmYZ5V.js";
7
7
  //#region src/core/islands/state.ts
8
8
  var p = t(), m = u(!1), h = u(/* @__PURE__ */ new Set()), g = u((e) => e(h)?.size === 0), _ = u(!1), v = u((e) => e(_) && e(m) === !1), y = u({
@@ -18,7 +18,7 @@ function x() {
18
18
  return e.warn("Failed to get version from mount config"), null;
19
19
  }
20
20
  }
21
- var S = x() || "0.25.1-dev2", C = u(S), w = u(!0);
21
+ var S = x() || "0.25.1-dev4", C = u(S), w = u(!0);
22
22
  u(null);
23
23
  //#endregion
24
24
  //#region src/core/wasm/state.ts
@@ -61,22 +61,22 @@ var T = u({
61
61
  supportsLsp: !0
62
62
  },
63
63
  state: u((e) => {
64
- let t = e(i);
64
+ let t = e(r);
65
65
  switch (t.state) {
66
- case r.OPEN: return { kind: "ready" };
67
- case r.CONNECTING: return {
66
+ case n.OPEN: return { kind: "ready" };
67
+ case n.CONNECTING: return {
68
68
  kind: "connecting",
69
69
  progress: { label: "Connecting…" }
70
70
  };
71
- case r.NOT_STARTED: return {
71
+ case n.NOT_STARTED: return {
72
72
  kind: "connecting",
73
73
  progress: { label: "Not connected" }
74
74
  };
75
- case r.CLOSING:
76
- case r.CLOSED: return {
75
+ case n.CLOSING:
76
+ case n.CLOSED: return {
77
77
  kind: "failed",
78
78
  error: {
79
- message: t.state === r.CLOSED ? t.reason : "Disconnecting",
79
+ message: t.state === n.CLOSED ? t.reason : "Disconnecting",
80
80
  errorKind: "runtime"
81
81
  }
82
82
  };
@@ -106,7 +106,7 @@ var T = u({
106
106
  })
107
107
  };
108
108
  function j() {
109
- return c() ? k : f() ? A : s() ? D : O;
109
+ return o() ? k : f() ? A : a() ? D : O;
110
110
  }
111
111
  var M = u(j());
112
112
  u((e) => {
@@ -116,19 +116,19 @@ u((e) => {
116
116
  //#endregion
117
117
  //#region src/core/meta/code-visibility.ts
118
118
  function N(e) {
119
- let t = (0, p.c)(2), r = l(n), { mode: i } = l(a), s = l(w), c = l(M).kind;
120
- if (r && c === "remote") return !0;
121
- switch (i) {
119
+ let t = (0, p.c)(2), n = l(c), { mode: r } = l(s), a = l(w), o = l(M).kind;
120
+ if (n && o === "remote") return !0;
121
+ switch (r) {
122
122
  case "edit":
123
123
  case "present": return !0;
124
124
  case "home":
125
125
  case "gallery": return !1;
126
126
  case "read": {
127
- if (!s || new URLSearchParams(window.location.search).get(d.includeCode) === "false") return !1;
127
+ if (!a || new URLSearchParams(window.location.search).get(d.includeCode) === "false") return !1;
128
128
  let n;
129
129
  return t[0] === e ? n = t[1] : (n = e.some(P), t[0] = e, t[1] = n), n;
130
130
  }
131
- default: return o(i), !1;
131
+ default: return i(r), !1;
132
132
  }
133
133
  }
134
134
  function P(e) {