@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
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-ofJbxM4x.js";
3
3
  import { t as n } from "./react-dom-BUgJ-ab_.js";
4
4
  import { c as r, l as i, u as a } from "./data-grid-types-BucVmDDp.js";
5
- import { a as o, i as s, n as c, r as l } from "./glide-data-editor-CBIPbkXG.js";
5
+ import { a as o, i as s, n as c, r as l } from "./glide-data-editor-Ohetlgag.js";
6
6
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.2.8_b9e6aec46d952f631ce71b0585d2a8e5/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js
7
7
  var u = /* @__PURE__ */ e(t(), 1), d = /* @__PURE__ */ e(n(), 1), f = /*#__PURE__*/ o("div")({
8
8
  name: "DataGridOverlayEditorStyle",
@@ -1,42 +1,42 @@
1
- import { Ft as e, It as t, N as n, Pt as r, b as i, d as a } from "./cells-DYIkSxs6.js";
1
+ import { At as e, N as t, b as n, d as r, jt as i, kt as a } from "./cells-B5-y5EY3.js";
2
2
  import { C as o } from "./select-C6plhmZr.js";
3
3
  //#region src/core/errors/error-entries.ts
4
- function s(n) {
5
- if (e(n.mimetype)) {
6
- if (!Array.isArray(n.data)) return null;
7
- let e = n.data.filter((e) => !e.type.includes("ancestor"));
4
+ function s(t) {
5
+ if (e(t.mimetype)) {
6
+ if (!Array.isArray(t.data)) return null;
7
+ let e = t.data.filter((e) => !e.type.includes("ancestor"));
8
8
  return e.length === 0 ? null : { errorData: e };
9
9
  }
10
- return t(n.mimetype) ? typeof n.data != "string" || n.data.length === 0 ? null : {
10
+ return i(t.mimetype) ? typeof t.data != "string" || t.data.length === 0 ? null : {
11
11
  errorData: [],
12
- tracebackHtml: n.data
12
+ tracebackHtml: t.data
13
13
  } : null;
14
14
  }
15
15
  function c(e) {
16
16
  return e.some((e) => "traceback" in e && e.traceback);
17
17
  }
18
18
  function l(e) {
19
- let n = e?.find((e) => t(e.mimetype));
20
- if (!(!n || typeof n.data != "string" || n.data.length === 0)) return n.data;
19
+ let t = e?.find((e) => i(e.mimetype));
20
+ if (!(!t || typeof t.data != "string" || t.data.length === 0)) return t.data;
21
21
  }
22
22
  function u(e, t) {
23
23
  if (e.tracebackHtml) return e.tracebackHtml;
24
24
  if (!c(e.errorData)) return l(t);
25
25
  }
26
26
  function d(e) {
27
- let { cellIds: t, cellRuntime: i, cellData: o } = e.get(a), c = [];
28
- for (let [e, a] of t.inOrderIds.entries()) {
29
- let t = i[a], l = t.output;
30
- if (!l || !r(l.mimetype)) continue;
27
+ let { cellIds: n, cellRuntime: i, cellData: o } = e.get(r), c = [];
28
+ for (let [e, r] of n.inOrderIds.entries()) {
29
+ let n = i[r], l = n.output;
30
+ if (!l || !a(l.mimetype)) continue;
31
31
  let d = s(l);
32
32
  if (!d) continue;
33
- let f = n(o[a].name, e), p = o[a].lastCodeRun ?? o[a].code;
33
+ let f = t(o[r].name, e), p = o[r].lastCodeRun ?? o[r].code;
34
34
  c.push({
35
- cellId: a,
35
+ cellId: r,
36
36
  cellName: f,
37
37
  cellCode: p,
38
38
  errorData: d.errorData,
39
- tracebackHtml: u(d, t.consoleOutputs)
39
+ tracebackHtml: u(d, n.consoleOutputs)
40
40
  });
41
41
  }
42
42
  return c;
@@ -46,11 +46,11 @@ function f(e) {
46
46
  }
47
47
  function p(e) {
48
48
  let t = f(e);
49
- return "traceback" in e && e.traceback && (t += `\n\nTraceback:\n${i(e.traceback)}`), t;
49
+ return "traceback" in e && e.traceback && (t += `\n\nTraceback:\n${n(e.traceback)}`), t;
50
50
  }
51
51
  function m(e) {
52
52
  let t = [e.cellName];
53
- return e.tracebackHtml && t.push(i(e.tracebackHtml)), e.errorData.length > 0 && t.push(e.errorData.map(p).join("\n\n")), t.join("\n\n");
53
+ return e.tracebackHtml && t.push(n(e.tracebackHtml)), e.errorData.length > 0 && t.push(e.errorData.map(p).join("\n\n")), t.join("\n\n");
54
54
  }
55
55
  //#endregion
56
56
  export { d as i, m as n, p as r, f as t };
@@ -3,15 +3,15 @@ import { h as t, t as n } from "./button-DdXAm8iz.js";
3
3
  import { t as r } from "./react-ofJbxM4x.js";
4
4
  import { t as i } from "./compiler-runtime-Cj8ZWiNS.js";
5
5
  import { t as a } from "./copy-icon-CLdENY__.js";
6
- import { Bt as o, H as s, Ht as c, L as l, Ot as u, V as d, d as f, hn as p } from "./cells-DYIkSxs6.js";
6
+ import { Ct as o, Ft as s, H as c, L as l, Lt as u, V as d, d as f, un as p } from "./cells-B5-y5EY3.js";
7
7
  import { b as m } from "./select-C6plhmZr.js";
8
- import { n as h, t as ee } from "./globals-VpAtGRbg.js";
8
+ import { n as h, t as ee } from "./globals-CPNNcOJI.js";
9
9
  import { t as g } from "./jsx-runtime-DgDPJV9S.js";
10
10
  import { C as _, _ as te, i as v } from "./useTheme-DzXmYZ5V.js";
11
11
  import { a as ne, i as re, n as ie, r as ae } from "./dialog-CgNq6y9-.js";
12
12
  import { t as oe } from "./useAsyncData-BD6AStMt.js";
13
- import { t as se } from "./code-visibility-64_ACQvC.js";
14
- import { i as ce, n as le } from "./error-entries-C0NsUqXl.js";
13
+ import { t as se } from "./code-visibility-CgZS2a3W.js";
14
+ import { i as ce, n as le } from "./error-entries-Bkbpx0T0.js";
15
15
  //#region src/components/ui/skeleton.tsx
16
16
  var y = /* @__PURE__ */ e(r(), 1), b = i(), x = g(), ue = (e) => {
17
17
  let n = (0, b.c)(8), r, i;
@@ -86,15 +86,15 @@ function ge(e) {
86
86
  //#region src/hooks/useLocalStorage.ts
87
87
  function _e(e, t) {
88
88
  let n = (0, b.c)(11), r;
89
- n[0] === t ? r = n[1] : (r = new o(t), n[0] = t, n[1] = r);
89
+ n[0] === t ? r = n[1] : (r = new s(t), n[0] = t, n[1] = r);
90
90
  let i = r, a;
91
91
  n[2] !== e || n[3] !== i ? (a = () => i.get(e), n[2] = e, n[3] = i, n[4] = a) : a = n[4];
92
- let [s, c] = (0, y.useState)(a), l;
92
+ let [o, c] = (0, y.useState)(a), l;
93
93
  n[5] !== e || n[6] !== i ? (l = (t) => {
94
94
  c(t), i.set(e, t);
95
95
  }, n[5] = e, n[6] = i, n[7] = l) : l = n[7];
96
96
  let u = l, d;
97
- return n[8] !== u || n[9] !== s ? (d = [s, u], n[8] = u, n[9] = s, n[10] = d) : d = n[10], d;
97
+ return n[8] !== u || n[9] !== o ? (d = [o, u], n[8] = u, n[9] = o, n[10] = d) : d = n[10], d;
98
98
  }
99
99
  var ve = (e) => {
100
100
  let r = (0, b.c)(16), { content: i } = e, [a, o] = (0, y.useState)(!1), s = !a && "max-h-24 overflow-hidden", c;
@@ -132,26 +132,26 @@ function ye(e) {
132
132
  if (!e.hasRequestClient) return "Notebook source is unavailable.";
133
133
  if (e.filename === null) return "Save the notebook first.";
134
134
  if (!e.codeAvailable) return "Notebook source is hidden in this view.";
135
- if (e.connectionState !== s.OPEN) return "Connect the notebook to include its source.";
135
+ if (e.connectionState !== c.OPEN) return "Connect the notebook to include its source.";
136
136
  }
137
137
  var w = () => {
138
- let e = (0, b.c)(61), t = _(u), r, i;
138
+ let e = (0, b.c)(61), t = _(o), r, i;
139
139
  e[0] === t ? (r = e[1], i = e[2]) : (r = async () => {
140
140
  if (t != null) return t.getEnvironmentInfo();
141
141
  }, i = [t], e[0] = t, e[1] = r, e[2] = i);
142
- let o = oe(r, i), s = _(f), m = ce(te), g;
143
- if (e[3] !== s.cellData || e[4] !== s.cellIds.inOrderIds) {
142
+ let s = oe(r, i), c = _(f), m = ce(te), g;
143
+ if (e[3] !== c.cellData || e[4] !== c.cellIds.inOrderIds) {
144
144
  let t;
145
- e[6] === s.cellData ? t = e[7] : (t = (e) => s.cellData[e], e[6] = s.cellData, e[7] = t), g = s.cellIds.inOrderIds.map(t), e[3] = s.cellData, e[4] = s.cellIds.inOrderIds, e[5] = g;
145
+ e[6] === c.cellData ? t = e[7] : (t = (e) => c.cellData[e], e[6] = c.cellData, e[7] = t), g = c.cellIds.inOrderIds.map(t), e[3] = c.cellData, e[4] = c.cellIds.inOrderIds, e[5] = g;
146
146
  } else g = e[5];
147
- let y = se(g), S = _(c), C = _(d), w = t != null, T;
147
+ let y = se(g), S = _(u), C = _(d), w = t != null, T;
148
148
  e[8] !== y || e[9] !== C.state || e[10] !== S || e[11] !== w ? (T = ye({
149
149
  hasRequestClient: w,
150
150
  filename: S,
151
151
  codeAvailable: y,
152
152
  connectionState: C.state
153
153
  }), e[8] = y, e[9] = C.state, e[10] = S, e[11] = w, e[12] = T) : T = e[12];
154
- let E = T, D = E === void 0, [O, k] = _e("marimo:issue-report:include-errors", !1), [A, xe] = _e("marimo:issue-report:include-code", !1), j = o.data ? de(o.data, navigator.userAgent) : o.status === "error" || t == null ? fe(ee(), navigator.userAgent, navigator.language, "Server environment information unavailable") : void 0, M, N;
154
+ let E = T, D = E === void 0, [O, k] = _e("marimo:issue-report:include-errors", !1), [A, xe] = _e("marimo:issue-report:include-code", !1), j = s.data ? de(s.data, navigator.userAgent) : s.status === "error" || t == null ? fe(ee(), navigator.userAgent, navigator.language, "Server environment information unavailable") : void 0, M, N;
155
155
  e[13] !== A || e[14] !== D || e[15] !== t ? (M = async () => {
156
156
  if (!A || !D || t == null) return;
157
157
  let { contents: e } = await t.readCode();
@@ -235,7 +235,7 @@ var w = () => {
235
235
  children: [B, q]
236
236
  }), e[47] = B, e[48] = q, e[49] = J) : J = e[49];
237
237
  let Y;
238
- e[50] !== o.status || e[51] !== t ? (Y = o.status === "pending" && t != null && /* @__PURE__ */ (0, x.jsxs)("div", {
238
+ e[50] !== s.status || e[51] !== t ? (Y = s.status === "pending" && t != null && /* @__PURE__ */ (0, x.jsxs)("div", {
239
239
  className: "flex flex-col gap-2",
240
240
  children: [
241
241
  /* @__PURE__ */ (0, x.jsx)("span", {
@@ -246,9 +246,9 @@ var w = () => {
246
246
  /* @__PURE__ */ (0, x.jsx)(ue, { className: "h-4 w-3/4" }),
247
247
  /* @__PURE__ */ (0, x.jsx)(ue, { className: "h-4 w-1/2" })
248
248
  ]
249
- }), e[50] = o.status, e[51] = t, e[52] = Y) : Y = e[52];
249
+ }), e[50] = s.status, e[51] = t, e[52] = Y) : Y = e[52];
250
250
  let X;
251
- e[53] !== o || e[54] !== t ? (X = (o.status === "error" || t == null) && /* @__PURE__ */ (0, x.jsxs)("div", {
251
+ e[53] !== s || e[54] !== t ? (X = (s.status === "error" || t == null) && /* @__PURE__ */ (0, x.jsxs)("div", {
252
252
  className: "flex items-center gap-2 text-sm",
253
253
  children: [
254
254
  /* @__PURE__ */ (0, x.jsx)(h, { className: "w-4 h-4 text-(--yellow-11) shrink-0" }),
@@ -257,11 +257,11 @@ var w = () => {
257
257
  type: "button",
258
258
  variant: "link",
259
259
  size: "xs",
260
- onClick: () => o.refetch(),
260
+ onClick: () => s.refetch(),
261
261
  children: "Retry"
262
262
  })
263
263
  ]
264
- }), e[53] = o, e[54] = t, e[55] = X) : X = e[55];
264
+ }), e[53] = s, e[54] = t, e[55] = X) : X = e[55];
265
265
  let Z;
266
266
  e[56] !== j || e[57] !== m ? (Z = j && m.length === 0 && /* @__PURE__ */ (0, x.jsx)("span", {
267
267
  className: "text-sm text-muted-foreground",
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { h as t, r as n } from "./button-DdXAm8iz.js";
3
3
  import { t as r } from "./react-ofJbxM4x.js";
4
4
  import { t as i } from "./compiler-runtime-Cj8ZWiNS.js";
5
- import { t as a } from "./toDate-WXg1yLcI.js";
5
+ import { t as a } from "./toDate-C67bxMWn.js";
6
6
  import { t as o } from "./jsx-runtime-DgDPJV9S.js";
7
7
  import { i as s } from "./loader-D2W4oM-3.js";
8
8
  //#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
@@ -6,7 +6,7 @@ import { i as s, n as c, r as l } from "./copy-icon-CLdENY__.js";
6
6
  import { C as u, c as d, i as f, n as p, s as m, t as h, x as g } from "./select-C6plhmZr.js";
7
7
  import { d as _, h as v, i as y, l as b, n as x, o as S, s as C, t as w, u as T } from "./dropdown-menu-CZgjYSAh.js";
8
8
  import { c as E, d as D, l as O, n as k, o as A, s as ee, t as j, u as te } from "./glide-utils-B3rUT5PI.js";
9
- import { n as ne, t as re } from "./ErrorBoundary-DO0ie20N.js";
9
+ import { n as ne, t as re } from "./ErrorBoundary-pV36lYEK.js";
10
10
  import { t as M } from "./react-dom-BUgJ-ab_.js";
11
11
  import { t as N } from "./jsx-runtime-DgDPJV9S.js";
12
12
  import { t as ie } from "./label-BJ49YTvk.js";
@@ -7062,7 +7062,7 @@ function rs(e, t, n, r, i) {
7062
7062
  }
7063
7063
  //#endregion
7064
7064
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.2.8_b9e6aec46d952f631ce71b0585d2a8e5/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
7065
- var is = /* @__PURE__ */ e(_r(), 1), as = /* @__PURE__ */ e(xr(), 1), os = K.lazy(async () => await import("./data-grid-overlay-editor-BUvmnptP.js")), ss = 0;
7065
+ var is = /* @__PURE__ */ e(_r(), 1), as = /* @__PURE__ */ e(xr(), 1), os = K.lazy(async () => await import("./data-grid-overlay-editor-hHYgD_Sm.js")), ss = 0;
7066
7066
  function cs(e) {
7067
7067
  return (0, is.default)((0, as.default)((0, as.default)(e).filter((e) => e.span !== void 0).map((e) => (0, Za.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
7068
7068
  }
@@ -9293,7 +9293,7 @@ function Vs(e, t, n, r, i) {
9293
9293
  }
9294
9294
  //#endregion
9295
9295
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.2.8_b9e6aec46d952f631ce71b0585d2a8e5/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
9296
- var Hs = K.lazy(async () => await import("./number-overlay-editor-ClZmv3Qw.js")), Us = {
9296
+ var Hs = K.lazy(async () => await import("./number-overlay-editor-CHWg5gGO.js")), Us = {
9297
9297
  getAccessibilityString: (e) => e.data?.toString() ?? "",
9298
9298
  kind: W.Number,
9299
9299
  needsHover: (e) => e.hoverEffect === !0,
@@ -1,6 +1,6 @@
1
1
  import { g as e } from "./tooltip-qB8NlSqV.js";
2
2
  import { _ as t } from "./useTheme-DzXmYZ5V.js";
3
- import { r as n } from "./code-visibility-64_ACQvC.js";
3
+ import { r as n } from "./code-visibility-CgZS2a3W.js";
4
4
  var r = e("triangle-alert", [
5
5
  ["path", {
6
6
  d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
@@ -5,9 +5,10 @@ import { t as l } from "./compiler-runtime-Cj8ZWiNS.js";
5
5
  import { n as u, t as d } from "./copy-icon-CLdENY__.js";
6
6
  import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DrWbKnxA.js";
7
7
  import { c as _, d as v, g as y, l as b, s as x, t as ee, u as te } from "./tooltip-qB8NlSqV.js";
8
- import { A as ne, Ct as re, Dt as ie, E as ae, Et as oe, O as se, R as ce, Rt as le, St as ue, U as de, X as fe, an as pe, at as me, bt as he, h as ge, mt as _e, nn as ve, nt as ye, q as be, s as xe, t as Se, wt as Ce, xt as we, z as Te } from "./cells-DYIkSxs6.js";
9
- import { M as Ee, O as De, k as Oe } from "./select-C6plhmZr.js";
10
- import { J as ke, ht as Ae } from "./dropdown-menu-CZgjYSAh.js";
8
+ import { A as ne, E as re, G as ie, Nt as ae, O as oe, R as se, St as ce, Z as le, Zt as ue, _t as de, en as fe, et as pe, gt as me, h as he, ht as ge, lt as _e, s as ve, t as ye, vt as be, xt as xe, yt as Se, z as Ce } from "./cells-B5-y5EY3.js";
9
+ import { M as we, O as Te, k as Ee } from "./select-C6plhmZr.js";
10
+ import { J as De, ht as Oe } from "./dropdown-menu-CZgjYSAh.js";
11
+ import { g as ke, x as Ae } from "./toDate-C67bxMWn.js";
11
12
  import { t as je } from "./jsx-runtime-DgDPJV9S.js";
12
13
  import { Ct as S, K as Me, Q as Ne, St as Pe, Tt as C, X as Fe, Y as Ie, bt as Le, ft as Re, gt as ze, lt as Be, mt as Ve, pt as He, ut as Ue, wt as We, xt as w, yt as Ge } from "./use-restore-focus-D5D9xEjZ.js";
13
14
  import { A as Ke, C as T, E as qe, _ as E, c as D, n as Je } from "./useTheme-DzXmYZ5V.js";
@@ -1422,7 +1423,7 @@ var Et = yt, Dt = xt, Ot = Ct, N = "Accordion", kt = [
1422
1423
  "ArrowUp",
1423
1424
  "ArrowLeft",
1424
1425
  "ArrowRight"
1425
- ], [P, At, jt] = Oe(N), [F, Mt] = We(N, [jt, gt]), Nt = gt(), Pt = O.forwardRef((e, t) => {
1426
+ ], [P, At, jt] = Ee(N), [F, Mt] = We(N, [jt, gt]), Nt = gt(), Pt = O.forwardRef((e, t) => {
1426
1427
  let { type: n, ...r } = e, i = r, a = r;
1427
1428
  return /* @__PURE__ */ (0, j.jsx)(P.Provider, {
1428
1429
  scope: e.__scopeAccordion,
@@ -1479,7 +1480,7 @@ var [Ft, It] = F(N), [Lt, Rt] = F(N, { collapsible: !1 }), zt = O.forwardRef((e,
1479
1480
  })
1480
1481
  });
1481
1482
  }), [Vt, I] = F(N), Ht = O.forwardRef((e, t) => {
1482
- let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = "vertical", ...s } = e, c = O.useRef(null), l = i(c, t), u = At(n), d = De(a) === "ltr", f = S(e.onKeyDown, (e) => {
1483
+ let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = "vertical", ...s } = e, c = O.useRef(null), l = i(c, t), u = At(n), d = Te(a) === "ltr", f = S(e.onKeyDown, (e) => {
1483
1484
  if (!kt.includes(e.key)) return;
1484
1485
  let t = e.target, n = u().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
1485
1486
  if (r === -1) return;
@@ -1786,7 +1787,7 @@ var Tn = sn, En = ln, Dn = dn, On = mn, kn = hn, An = xn, jn = (e) => {
1786
1787
  t[6] === s ? c = t[7] : (c = { onPress: () => {
1787
1788
  s();
1788
1789
  } }, t[6] = s, t[7] = c);
1789
- let { pressProps: l } = Ae(c), u;
1790
+ let { pressProps: l } = Oe(c), u;
1790
1791
  t[8] === s ? u = t[9] : (u = (e) => {
1791
1792
  e.preventDefault(), s();
1792
1793
  }, t[8] = s, t[9] = u);
@@ -1829,15 +1830,15 @@ Ln.displayName = kn.displayName;
1829
1830
  //#endregion
1830
1831
  //#region src/core/documentation/doc-lookup.ts
1831
1832
  async function Rn(e) {
1832
- let t = xe().inOrderIds.at(0);
1833
+ let t = ve().inOrderIds.at(0);
1833
1834
  if (t) try {
1834
- let n = await ye.request({
1835
+ let n = await le.request({
1835
1836
  document: e,
1836
1837
  cellId: t
1837
1838
  });
1838
1839
  if (!n || n.options.length === 0) return;
1839
1840
  let r = e.split(".").pop() ?? e, i = n.options[0], a = n.options.find((e) => e.name === r) ?? i;
1840
- a?.completion_info && E.set(me, { documentation: a.completion_info });
1841
+ a?.completion_info && E.set(pe, { documentation: a.completion_info });
1841
1842
  } catch (t) {
1842
1843
  n.debug(`Doc lookup failed for "${e}"`, t);
1843
1844
  }
@@ -1849,7 +1850,7 @@ var zn = (e) => {
1849
1850
  t[0] === n ? i = t[1] : (i = () => {
1850
1851
  Rn(n);
1851
1852
  }, t[0] = n, t[1] = i);
1852
- let a = ke(i, 100), o;
1853
+ let a = De(i, 100), o;
1853
1854
  t[2] === a ? o = t[3] : (o = () => a.cancel(), t[2] = a, t[3] = o);
1854
1855
  let s;
1855
1856
  return t[4] !== r || t[5] !== a || t[6] !== o ? (s = /* @__PURE__ */ (0, j.jsx)("span", {
@@ -1875,7 +1876,7 @@ function W() {
1875
1876
  function Un() {
1876
1877
  if (E.get(Bn) || W() || E.get(D)) return !0;
1877
1878
  try {
1878
- if (de() === "read") return !0;
1879
+ if (ke() === "read") return !0;
1879
1880
  } catch {}
1880
1881
  return !1;
1881
1882
  }
@@ -1886,7 +1887,7 @@ var Wn = qe((e) => {
1886
1887
  if (t || n || W()) return !1;
1887
1888
  let r = !0;
1888
1889
  try {
1889
- r = de() === "read";
1890
+ r = ke() === "read";
1890
1891
  } catch {
1891
1892
  return !0;
1892
1893
  }
@@ -2003,7 +2004,7 @@ var Kn = [], qn = (e) => {
2003
2004
  bb0: {
2004
2005
  if (i || o) {
2005
2006
  let e;
2006
- t[0] === n ? e = t[1] : (e = ae(n), t[0] = n, t[1] = e), s = e;
2007
+ t[0] === n ? e = t[1] : (e = re(n), t[0] = n, t[1] = e), s = e;
2007
2008
  break bb0;
2008
2009
  }
2009
2010
  s = n;
@@ -2286,7 +2287,7 @@ var Ir = O.forwardRef((e, t) => {
2286
2287
  let s;
2287
2288
  n[4] === a ? s = n[5] : (s = r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180 text-start", a), n[4] = a, n[5] = s);
2288
2289
  let c;
2289
- n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, j.jsx)(Ee, { className: "h-4 w-4 transition-transform duration-200" }), n[6] = c) : c = n[6];
2290
+ n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, j.jsx)(we, { className: "h-4 w-4 transition-transform duration-200" }), n[6] = c) : c = n[6];
2290
2291
  let l;
2291
2292
  return n[7] !== i || n[8] !== o || n[9] !== t || n[10] !== s ? (l = /* @__PURE__ */ (0, j.jsx)(en, {
2292
2293
  className: "flex",
@@ -2322,7 +2323,7 @@ var Lr = O.forwardRef((e, t) => {
2322
2323
  Lr.displayName = nn.displayName;
2323
2324
  //#endregion
2324
2325
  //#region src/utils/multi-map.ts
2325
- var Rr = /* @__PURE__ */ e(we(), 1), zr = class {
2326
+ var Rr = /* @__PURE__ */ e(me(), 1), zr = class {
2326
2327
  map = /* @__PURE__ */ new Map();
2327
2328
  get(e) {
2328
2329
  return this.map.get(e) ?? [];
@@ -2462,7 +2463,7 @@ var Vr = class {
2462
2463
  return (await Promise.all(i)).flat();
2463
2464
  }
2464
2465
  };
2465
- le([ve()], Hr.prototype, "getAllItems", null);
2466
+ ae([ue()], Hr.prototype, "getAllItems", null);
2466
2467
  //#endregion
2467
2468
  //#region src/core/ai/context/utils.ts
2468
2469
  function Ur(e) {
@@ -2517,12 +2518,12 @@ var Gr = {
2517
2518
  connectionsMap;
2518
2519
  dataframes;
2519
2520
  constructor(e, t) {
2520
- super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => Ce(e) === "dataframe");
2521
+ super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => Se(e) === "dataframe");
2521
2522
  }
2522
2523
  getItems() {
2523
2524
  return [...this.connectionsMap.values()].map((e) => {
2524
2525
  let t = "Database schema.", n = { connection: e };
2525
- return oe.has(e.name) && (n.tables = this.dataframes, t = "Database schema and the dataframes that can be queried"), e.databases.length === 0 && (n.tables?.length ?? 0) === 0 ? null : {
2526
+ return xe.has(e.name) && (n.tables = this.dataframes, t = "Database schema and the dataframes that can be queried"), e.databases.length === 0 && (n.tables?.length ?? 0) === 0 ? null : {
2526
2527
  uri: this.asURI(e.name),
2527
2528
  name: e.name,
2528
2529
  description: t,
@@ -2533,7 +2534,7 @@ var Gr = {
2533
2534
  }
2534
2535
  formatContext(e) {
2535
2536
  let t = e.data, { name: n, display_name: r, source: i, ...a } = t.connection, o = a;
2536
- return oe.has(n) || (o = {
2537
+ return xe.has(n) || (o = {
2537
2538
  ...a,
2538
2539
  engine_name: n
2539
2540
  }), Wr({
@@ -2546,10 +2547,10 @@ var Gr = {
2546
2547
  }
2547
2548
  formatCompletion(e) {
2548
2549
  let t = e.data, n = t.connection, r = t.tables, i = n.name;
2549
- return oe.has(n.name) && (i = "In-Memory"), {
2550
+ return xe.has(n.name) && (i = "In-Memory"), {
2550
2551
  label: `@${i}`,
2551
2552
  displayLabel: i,
2552
- detail: he(n.dialect),
2553
+ detail: ge(n.dialect),
2553
2554
  boost: Gr.MEDIUM,
2554
2555
  type: this.contextType,
2555
2556
  section: Kr.DATA_SOURCES,
@@ -2561,23 +2562,23 @@ var Gr = {
2561
2562
  }
2562
2563
  };
2563
2564
  function Yr(e, t) {
2564
- let n = t.get(Se(e))?.code;
2565
+ let n = t.get(ye(e))?.code;
2565
2566
  if (!n || n.trim() === "") return null;
2566
- let [r, i, a] = ce.sql.transformIn(n), o = t.get(re).connectionsMap.get(a.engine);
2567
+ let [r, i, a] = se.sql.transformIn(n), o = t.get(be).connectionsMap.get(a.engine);
2567
2568
  return o ? `@${qr}://${o.name}` : null;
2568
2569
  }
2569
2570
  function Xr(e, t) {
2570
2571
  let n = Yr(e, t);
2571
2572
  if (!n) return null;
2572
- let r = t.get(re).connectionsMap, i = new Jr(r, t.get(ue)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
2573
+ let r = t.get(be).connectionsMap, i = new Jr(r, t.get(de)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
2573
2574
  return o ? i.formatContext(o) : null;
2574
2575
  }
2575
2576
  //#endregion
2576
2577
  //#region src/core/cells/outputs.ts
2577
2578
  var Zr = {}, Qr = {};
2578
2579
  function $r(e) {
2579
- let t = (0, k.c)(16), { mode: n } = T(be), { updateCellConfig: r } = ge(), i;
2580
- t[0] === e ? i = t[1] : (i = pe(Se(e), ti, Object.is), t[0] = e, t[1] = i);
2580
+ let t = (0, k.c)(16), { mode: n } = T(Ae), { updateCellConfig: r } = he(), i;
2581
+ t[0] === e ? i = t[1] : (i = fe(ye(e), ti, Object.is), t[0] = e, t[1] = i);
2581
2582
  let a = T(i), o;
2582
2583
  t[2] !== e || t[3] !== a ? (o = () => Zr[e] ?? a, t[2] = e, t[3] = a, t[4] = o) : o = t[4];
2583
2584
  let [s, c] = (0, O.useState)(o), l, u;
@@ -2591,7 +2592,7 @@ function $r(e) {
2591
2592
  r({
2592
2593
  cellId: e,
2593
2594
  config: n
2594
- }), ie().saveCellConfig({ configs: { [e]: n } }).catch(ei);
2595
+ }), ce().saveCellConfig({ configs: { [e]: n } }).catch(ei);
2595
2596
  }, t[9] = e, t[10] = d, t[11] = r, t[12] = p) : p = t[12];
2596
2597
  let m = Ke(p), h;
2597
2598
  return t[13] !== f || t[14] !== m ? (h = [f, m], t[13] = f, t[14] = m, t[15] = h) : h = t[15], h;
@@ -2622,10 +2623,10 @@ function oi(e, t) {
2622
2623
  code: t
2623
2624
  } : e === "sql" ? {
2624
2625
  language: "python",
2625
- code: Te.fromQuery(t)
2626
+ code: Ce.fromQuery(t)
2626
2627
  } : e === "markdown" ? {
2627
2628
  language: "python",
2628
- code: fe.fromMarkdown(t)
2629
+ code: ie.fromMarkdown(t)
2629
2630
  } : e === "shell" || e === "bash" ? {
2630
2631
  language: "python",
2631
2632
  code: `import subprocess\nsubprocess.run("${t}")`
@@ -2638,7 +2639,7 @@ function oi(e, t) {
2638
2639
  };
2639
2640
  }
2640
2641
  var si = (e) => {
2641
- let t = (0, k.c)(9), { code: n, language: r } = e, { createNewCell: i } = ge(), a = se(), s = T(D), c;
2642
+ let t = (0, k.c)(9), { code: n, language: r } = e, { createNewCell: i } = he(), a = oe(), s = T(D), c;
2642
2643
  t[0] !== s || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (c = () => {
2643
2644
  let e = oi(r, n);
2644
2645
  r === "sql" && ne({