@marimo-team/islands 0.25.2-dev114 → 0.25.2-dev116

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 (24) hide show
  1. package/dist/{ErrorBoundary-Cw4bjr36.js → ErrorBoundary-uaj_Zevl.js} +1 -1
  2. package/dist/{cells-CnomFgoS.js → cells-CuYwqnV8.js} +51 -34
  3. package/dist/{chat-ui-DIoRDU4g.js → chat-ui-C6oDg4Zu.js} +6 -6
  4. package/dist/{code-visibility-C5htpRDt.js → code-visibility-BgyEIgVT.js} +2 -2
  5. package/dist/{common-y0tssAuW.js → common-DswFee7V.js} +3 -3
  6. package/dist/{data-grid-overlay-editor-CBW9hkuu.js → data-grid-overlay-editor-D-TqyZFT.js} +1 -1
  7. package/dist/{error-entries-uqmpke4z.js → error-entries-zfHL6H60.js} +1 -1
  8. package/dist/{feedback-button-B1a8mBuC.js → feedback-button-DIrc_NA9.js} +4 -4
  9. package/dist/{glide-data-editor-wQLG9-08.js → glide-data-editor-BUIgwGIy.js} +3 -3
  10. package/dist/{globals-cySln-Wb.js → globals-C_EzUOYR.js} +1 -1
  11. package/dist/{html-to-image-utL-jAuh.js → html-to-image-BJJsbNZ1.js} +1 -1
  12. package/dist/main.js +10 -10
  13. package/dist/{number-overlay-editor-BZiZkBdR.js → number-overlay-editor-DeqVia1v.js} +1 -1
  14. package/dist/{process-output-tkY7JSAu.js → process-output-C1GGFU6Q.js} +2 -2
  15. package/dist/{reveal-component-CLcCq8tA.js → reveal-component-DC_fgfV2.js} +3 -3
  16. package/package.json +3 -3
  17. package/src/core/codemirror/copilot/__tests__/completion-integration.test.ts +447 -0
  18. package/src/core/codemirror/copilot/__tests__/inline-completion.test.ts +395 -0
  19. package/src/core/codemirror/copilot/__tests__/language-server.test.ts +511 -2
  20. package/src/core/codemirror/copilot/__tests__/rpc-cancellation.test.ts +201 -0
  21. package/src/core/codemirror/copilot/extension.ts +22 -11
  22. package/src/core/codemirror/copilot/language-server.ts +109 -60
  23. package/src/core/network/__tests__/api.test.ts +114 -1
  24. package/src/core/network/api.ts +3 -2
@@ -135,7 +135,7 @@ function F(e) {
135
135
  }
136
136
  //#endregion
137
137
  //#region src/components/editor/boundary/ErrorBoundary.tsx
138
- var I = (0, T.lazy)(() => import("./feedback-button-B1a8mBuC.js").then((e) => ({ default: e.FeedbackModal }))), L = (e) => {
138
+ var I = (0, T.lazy)(() => import("./feedback-button-DIrc_NA9.js").then((e) => ({ default: e.FeedbackModal }))), L = (e) => {
139
139
  let t = (0, w.c)(2), n;
140
140
  return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, j.jsx)(O, {
141
141
  FallbackComponent: R,
@@ -6507,7 +6507,7 @@ function _s(e, t) {
6507
6507
  }), n;
6508
6508
  }
6509
6509
  //#endregion
6510
- //#region ../node_modules/.pnpm/@marimo-team+codemirror-languageserver@2.0.0_@codemirror+autocomplete@6.20.3_@codemirro_b08a5e96647dbc025cf6c745aabcfd79/node_modules/@marimo-team/codemirror-languageserver/dist/completion.js
6510
+ //#region ../node_modules/.pnpm/@marimo-team+codemirror-languageserver@2.0.1_@codemirror+autocomplete@6.20.3_@codemirro_bee57a85ecc34915859b7c2066696d96/node_modules/@marimo-team/codemirror-languageserver/dist/completion.js
6511
6511
  var vs = Object.fromEntries(Object.entries(Go.CompletionItemKind).map(([e, t]) => [t, e]));
6512
6512
  function ys(e) {
6513
6513
  return !!(e.deprecated || e.tags?.includes(Go.CompletionItemTag.Deprecated));
@@ -6751,7 +6751,7 @@ function Us(e) {
6751
6751
  return typeof e == "string" ? e : "";
6752
6752
  }
6753
6753
  //#endregion
6754
- //#region ../node_modules/.pnpm/@marimo-team+codemirror-languageserver@2.0.0_@codemirror+autocomplete@6.20.3_@codemirro_b08a5e96647dbc025cf6c745aabcfd79/node_modules/@marimo-team/codemirror-languageserver/dist/config.js
6754
+ //#region ../node_modules/.pnpm/@marimo-team+codemirror-languageserver@2.0.1_@codemirror+autocomplete@6.20.3_@codemirro_bee57a85ecc34915859b7c2066696d96/node_modules/@marimo-team/codemirror-languageserver/dist/config.js
6755
6755
  function Ws(e) {
6756
6756
  let t = new Proxy({}, { get() {
6757
6757
  throw Error(e);
@@ -6825,36 +6825,43 @@ var tc = class {
6825
6825
  onRequest(e) {
6826
6826
  this.requestHandler = e;
6827
6827
  }
6828
- request(e, t, n = Qs) {
6828
+ request(e, t, n = Qs, r) {
6829
+ if (r?.aborted) return Promise.reject(new DOMException("Request aborted", "AbortError"));
6829
6830
  if (this.closed) return Promise.reject(new Zs(Xs.InternalError, "Client closed"));
6830
6831
  if (this.closeError) return Promise.reject(this.closeError);
6831
- let r = this.nextId++;
6832
- return new Promise((i, a) => {
6833
- let o = setTimeout(() => {
6834
- this.pending.delete(r), a(new Zs(Xs.RequestTimeout, `Request "${e}" timed out after ${n}ms`));
6835
- }, n);
6836
- this.pending.set(r, {
6837
- resolve: i,
6838
- reject: a,
6839
- timer: o
6840
- });
6841
- let s = () => {
6842
- if (this.pending.has(r)) try {
6843
- this.transport.send({
6844
- jsonrpc: "2.0",
6845
- id: r,
6846
- method: e,
6847
- params: t
6848
- });
6849
- } catch (e) {
6850
- this.settle(r, (t) => t.reject(ec(e)));
6832
+ let i = this.nextId++;
6833
+ return new Promise((a, o) => {
6834
+ let s = !1, c = (e) => {
6835
+ this.pending.has(i) && (this.settle(i, (t) => t.reject(e)), s && this.notify("$/cancelRequest", { id: i }).catch(() => {}));
6836
+ }, l = () => c(new DOMException("Request aborted", "AbortError"));
6837
+ this.pending.set(i, {
6838
+ resolve: a,
6839
+ reject: o,
6840
+ cleanup: () => r?.removeEventListener("abort", l)
6841
+ }), r?.addEventListener("abort", l, { once: !0 });
6842
+ let u = () => {
6843
+ let r = this.pending.get(i);
6844
+ if (r) {
6845
+ r.timer = setTimeout(() => {
6846
+ c(new Zs(Xs.RequestTimeout, `Request "${e}" timed out after ${n}ms`));
6847
+ }, n);
6848
+ try {
6849
+ s = !0, this.transport.send({
6850
+ jsonrpc: "2.0",
6851
+ id: i,
6852
+ method: e,
6853
+ params: t
6854
+ });
6855
+ } catch (e) {
6856
+ this.settle(i, (t) => t.reject(ec(e)));
6857
+ }
6851
6858
  }
6852
6859
  };
6853
6860
  if (this.isConnected) {
6854
- s();
6861
+ u();
6855
6862
  return;
6856
6863
  }
6857
- this.connected.then(s, (e) => this.settle(r, (t) => t.reject(ec(e))));
6864
+ this.connected.then(u, (e) => this.settle(i, (t) => t.reject(ec(e))));
6858
6865
  });
6859
6866
  }
6860
6867
  notify(e, t) {
@@ -6871,8 +6878,8 @@ var tc = class {
6871
6878
  close() {
6872
6879
  if (!this.closed) {
6873
6880
  this.closed = !0;
6874
- for (let e of this.pending.values()) clearTimeout(e.timer), e.reject(new Zs(Xs.InternalError, "Client closed"));
6875
- this.pending.clear(), this.disconnect(), this.disconnectClose?.(), this.transport.close();
6881
+ for (let e of [...this.pending.keys()]) this.settle(e, (e) => e.reject(new Zs(Xs.InternalError, "Client closed")));
6882
+ this.disconnect(), this.disconnectClose?.(), this.transport.close();
6876
6883
  }
6877
6884
  }
6878
6885
  dispatch(e) {
@@ -6888,7 +6895,7 @@ var tc = class {
6888
6895
  }
6889
6896
  settle(e, t) {
6890
6897
  let n = this.pending.get(e);
6891
- n && (clearTimeout(n.timer), this.pending.delete(e), t(n));
6898
+ n && (n.timer !== void 0 && clearTimeout(n.timer), n.cleanup(), this.pending.delete(e), t(n));
6892
6899
  }
6893
6900
  receive(e) {
6894
6901
  if (this.closed || typeof e != "object" || !e || Array.isArray(e) || e.jsonrpc !== "2.0") return;
@@ -7187,13 +7194,23 @@ var tc = class {
7187
7194
  onNotification(e) {
7188
7195
  return this.notificationListeners.add(e), () => this.notificationListeners.delete(e);
7189
7196
  }
7190
- request(e, t, n) {
7191
- if (e === "initialize") return this.client.request(e, t, n);
7192
- let r = this.hasCapability(e), i = !(this.ready || this.capabilities) && this.mayRegisterDynamically(e);
7193
- return this.initializePromise.then(() => {
7197
+ waitForInitialization(e) {
7198
+ if (!e) return this.initializePromise;
7199
+ if (e.aborted) return Promise.reject(new DOMException("Request aborted", "AbortError"));
7200
+ let t, n = new Promise((n, r) => {
7201
+ t = () => r(new DOMException("Request aborted", "AbortError")), e.addEventListener("abort", t, { once: !0 });
7202
+ });
7203
+ return Promise.race([this.initializePromise, n]).finally(() => {
7204
+ e.removeEventListener("abort", t);
7205
+ });
7206
+ }
7207
+ request(e, t, n, r) {
7208
+ if (e === "initialize") return this.client.request(e, t, n, r);
7209
+ let i = this.hasCapability(e), a = !(this.ready || this.capabilities) && this.mayRegisterDynamically(e);
7210
+ return this.waitForInitialization(r).then(() => {
7194
7211
  if (this.isClosed) throw Error("Language server client is closed");
7195
- if (ic[e] && !i && !(r || this.hasCapability(e))) throw Error(`Language server does not support method ${e}`);
7196
- return this.client.request(e, t, n);
7212
+ if (ic[e] && !a && !(i || this.hasCapability(e))) throw Error(`Language server does not support method ${e}`);
7213
+ return this.client.request(e, t, n, r);
7197
7214
  });
7198
7215
  }
7199
7216
  notify(e, t) {
@@ -3,13 +3,13 @@ import { c as n, g as r, h as i, t as a } from "./button-CvjkwdSk.js";
3
3
  import { t as o } from "./react-sHtZdjeP.js";
4
4
  import { t as s } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { i as c, t as l } from "./copy-icon-Ft7t9bqz.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 j, z as te } from "./html-to-image-utL-jAuh.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 j, z as te } from "./html-to-image-BJJsbNZ1.js";
7
7
  import { h as M, t as ne } from "./tooltip-BO1REbqs.js";
8
- import { $ as re, $t as ie, It as ae, K as oe, Mt as se, N as ce, St as le, Vt as ue, X as de, _t as fe, b as pe, cn as me, d as he, it as ge, pn as _e, rt as ve, sn as ye, un as be, ut as xe, vt as Se, yt as Ce } from "./cells-CnomFgoS.js";
8
+ import { $ as re, $t as ie, It as ae, K as oe, Mt as se, N as ce, St as le, Vt as ue, X as de, _t as fe, b as pe, cn as me, d as he, it as ge, pn as _e, rt as ve, sn as ye, un as be, ut as xe, vt as Se, yt as Ce } from "./cells-CuYwqnV8.js";
9
9
  import { A as we, C as Te, M as Ee, b as De } from "./select-BButFi-d.js";
10
10
  import { _ as Oe, f as ke, h as Ae, i as je, n as Me, t as Ne } from "./dropdown-menu-CP_qCYHC.js";
11
11
  import { T as Pe, p as Fe } from "./toDate-Dwcg_x_5.js";
12
- import { d as Ie, f as Le, i as Re, n as ze, t as Be, u as Ve } from "./process-output-tkY7JSAu.js";
12
+ import { d as Ie, f as Le, i as Re, n as ze, t as Be, u as Ve } from "./process-output-C1GGFU6Q.js";
13
13
  import { t as He } from "./jsx-runtime-3BD1kT0s.js";
14
14
  import { A as Ue, C as We, D as Ge, E as Ke, F as qe, L as Je, M as Ye, O as Xe, P as Ze, R as Qe, S as $e, T as et, V as tt, b as nt, j as rt, v as it, w as at, x as ot, y as st, z as ct } from "./use-restore-focus-BEM7sFWl.js";
15
15
  import { n as lt } from "./error-banner-Da600cwz.js";
@@ -22,7 +22,7 @@ import { n as Ot, o as kt, r as At } from "./dist-CkTTIdBe.js";
22
22
  import { n as jt } from "./dist-CrSP_H1M.js";
23
23
  import { n as Mt, t as Nt } from "./esm-AMFssoNp.js";
24
24
  import { t as Pt } from "./useAsyncData-Deh5kszT.js";
25
- import { i as Ft, r as It, t as Lt } from "./error-entries-uqmpke4z.js";
25
+ import { i as Ft, r as It, t as Lt } from "./error-entries-zfHL6H60.js";
26
26
  var Rt = M("ban", [["circle", {
27
27
  cx: "12",
28
28
  cy: "12",
@@ -4750,12 +4750,12 @@ function Yo(e) {
4750
4750
  return e.type.startsWith("data-");
4751
4751
  }
4752
4752
  //#endregion
4753
- //#region ../node_modules/.pnpm/@marimo-team+codemirror-ai@0.3.9_@codemirror+state@6.7.6_@codemirror+view@6.43.13/node_modules/@marimo-team/codemirror-ai/dist/utils/facet.js
4753
+ //#region ../node_modules/.pnpm/@marimo-team+codemirror-ai@0.3.10_@codemirror+state@6.7.6_@codemirror+view@6.43.13/node_modules/@marimo-team/codemirror-ai/dist/utils/facet.js
4754
4754
  function Xo(e) {
4755
4755
  return gt.define({ combine: (t) => t[0] ?? e });
4756
4756
  }
4757
4757
  //#endregion
4758
- //#region ../node_modules/.pnpm/@marimo-team+codemirror-ai@0.3.9_@codemirror+state@6.7.6_@codemirror+view@6.43.13/node_modules/@marimo-team/codemirror-ai/dist/prompt-history/extension.js
4758
+ //#region ../node_modules/.pnpm/@marimo-team+codemirror-ai@0.3.10_@codemirror+state@6.7.6_@codemirror+view@6.43.13/node_modules/@marimo-team/codemirror-ai/dist/prompt-history/extension.js
4759
4759
  var Zo = Xo({}), Qo = vt.define(), $o = vt.define(), es = 50, ts = Et.define({
4760
4760
  create() {
4761
4761
  return {
@@ -1,6 +1,6 @@
1
1
  import { g as e } from "./button-CvjkwdSk.js";
2
2
  import { t } from "./compiler-runtime-CldRdSsv.js";
3
- import { H as n, V as r } from "./cells-CnomFgoS.js";
3
+ import { H as n, V as r } from "./cells-CuYwqnV8.js";
4
4
  import { C as i } from "./select-BButFi-d.js";
5
5
  import { C as a, d as o, x as s, y as c } from "./toDate-Dwcg_x_5.js";
6
6
  import { C as l, E as u, a as d, b as f } from "./useTheme-CRnjkku0.js";
@@ -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.2-dev114", C = u(S), w = u(!0);
21
+ var S = x() || "0.25.2-dev116", C = u(S), w = u(!0);
22
22
  u(null);
23
23
  //#endregion
24
24
  //#region src/core/wasm/state.ts
@@ -3,16 +3,16 @@ import { _ as t, c as n, f as r, g as i, h as a, m as o, n as s, p as c, r as l,
3
3
  import { t as d } from "./react-sHtZdjeP.js";
4
4
  import { t as f } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { i as p, n as m, r as h, t as g } from "./copy-icon-Ft7t9bqz.js";
6
- import { $ as _, A as v, B as y, D as b, E as x, F as S, H as C, M as w, N as T, Q as E, S as D, T as O, V as k, W as A, X as j, Y as M, Z as N, _ as P, g as F, n as I, r as L, s as R, t as z, u as ee, v as te, w as B, y as ne, z as re } from "./html-to-image-utL-jAuh.js";
6
+ import { $ as _, A as v, B as y, D as b, E as x, F as S, H as C, M as w, N as T, Q as E, S as D, T as O, V as k, W as A, X as j, Y as M, Z as N, _ as P, g as F, n as I, r as L, s as R, t as z, u as ee, v as te, w as B, y as ne, z as re } from "./html-to-image-BJJsbNZ1.js";
7
7
  import { a as ie, d as ae, h as V, n as oe, o as se, r as ce, t as H } from "./tooltip-BO1REbqs.js";
8
- import { $t as le, C as ue, E as de, H as fe, Ht as pe, Jt as me, L as he, Lt as ge, M as _e, N as ve, St as ye, V as be, Vt as xe, W as Se, Xt as Ce, Y as we, Yt as Te, _ as Ee, a as De, an as Oe, at as ke, cn as Ae, d as je, ft as Me, g as Ne, h as Pe, hn as Fe, i as Ie, in as Le, j as Re, ln as ze, mn as Be, mt as Ve, nn as He, nt as Ue, pn as We, pt as Ge, rt as Ke, sn as qe, tt as Je, un as Ye, ut as Xe, wt as Ze, x as Qe } from "./cells-CnomFgoS.js";
8
+ import { $t as le, C as ue, E as de, H as fe, Ht as pe, Jt as me, L as he, Lt as ge, M as _e, N as ve, St as ye, V as be, Vt as xe, W as Se, Xt as Ce, Y as we, Yt as Te, _ as Ee, a as De, an as Oe, at as ke, cn as Ae, d as je, ft as Me, g as Ne, h as Pe, hn as Fe, i as Ie, in as Le, j as Re, ln as ze, mn as Be, mt as Ve, nn as He, nt as Ue, pn as We, pt as Ge, rt as Ke, sn as qe, tt as Je, un as Ye, ut as Xe, wt as Ze, x as Qe } from "./cells-CuYwqnV8.js";
9
9
  import { c as $e, i as et, r as tt } from "./useLifecycle-j7D9uD1o.js";
10
10
  import { a as nt, i as rt, n as it, o as at, r as ot, t as st } from "./useDateFormatter-D8XruNGG.js";
11
11
  import { t as ct } from "./check-EDwSwP89.js";
12
12
  import { A as lt, C as ut, M as dt, O as ft, S as pt, _ as mt, b as ht, c as gt, d as _t, g as vt, h as yt, i as bt, l as xt, m as St, n as Ct, p as wt, s as Tt, t as Et, u as Dt, v as Ot, y as kt } from "./select-BButFi-d.js";
13
13
  import { $ as At, $t as jt, A as Mt, At as Nt, B as Pt, Bt as Ft, Ct as It, D as Lt, Dt as Rt, E as zt, Et as Bt, F as Vt, Ft as Ht, G as Ut, Gt as Wt, H as Gt, Ht as Kt, I as qt, It as Jt, J as Yt, Jt as Xt, Kt as Zt, L as Qt, Lt as $t, M as en, Mt as tn, N as nn, Nt as rn, O as an, Ot as on, P as sn, Pt as cn, Q as ln, Qt as un, R as dn, Rt as fn, S as pn, St as mn, T as hn, Tt as gn, U as _n, Ut as vn, V as yn, Vt as bn, W as xn, Wt as Sn, X as Cn, Xt as wn, Y as Tn, Yt as En, Z as Dn, Zt as On, _ as kn, _n as An, _t as jn, a as Mn, at as Nn, b as Pn, bt as Fn, cn as In, ct as Ln, d as Rn, dn as zn, dt as Bn, et as Vn, f as Hn, fn as Un, ft as Wn, gn as Gn, gt as Kn, h as qn, hn as Jn, ht as Yn, i as Xn, in as Zn, it as Qn, j as $n, jt as er, k as tr, kt as nr, l as rr, lt as ir, mn as ar, mt as or, n as sr, nn as cr, nt as lr, o as ur, on as dr, ot as fr, pn as pr, pt as mr, qt as hr, rn as gr, rt as _r, s as vr, sn as yr, st as br, t as xr, tn as Sr, tt as Cr, u as wr, un as Tr, vn as Er, vt as Dr, w as Or, wt as kr, x as Ar, xt as jr, y as Mr, yt as Nr, z as Pr, zt as Fr } from "./dropdown-menu-CP_qCYHC.js";
14
14
  import { C as Ir, a as Lr, b as Rr, c as zr, d as Br, i as Vr, n as Hr, o as Ur, p as Wr, r as Gr, s as Kr, t as qr, x as Jr } from "./toDate-Dwcg_x_5.js";
15
- import { n as Yr, t as Xr } from "./ErrorBoundary-Cw4bjr36.js";
15
+ import { n as Yr, t as Xr } from "./ErrorBoundary-uaj_Zevl.js";
16
16
  import { t as Zr } from "./clsx-CoeGtWvn.js";
17
17
  import { t as Qr } from "./react-dom-DUmH0GXv.js";
18
18
  import { t as $r } from "./jsx-runtime-3BD1kT0s.js";
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-sHtZdjeP.js";
3
3
  import { t as n } from "./react-dom-DUmH0GXv.js";
4
4
  import { c as r, l as i, u as a } from "./data-grid-types-BH_r7g7l.js";
5
- import { a as o, i as s, n as c, r as l } from "./glide-data-editor-wQLG9-08.js";
5
+ import { a as o, i as s, n as c, r as l } from "./glide-data-editor-BUIgwGIy.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.3.0_aca11a353ce3b112922852200b9c160f/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,4 +1,4 @@
1
- import { At as e, N as t, b as n, d as r, jt as i, kt as a } from "./cells-CnomFgoS.js";
1
+ import { At as e, N as t, b as n, d as r, jt as i, kt as a } from "./cells-CuYwqnV8.js";
2
2
  import { C as o } from "./select-BButFi-d.js";
3
3
  //#region src/core/errors/error-entries.ts
4
4
  function s(t) {
@@ -3,15 +3,15 @@ import { h as t, t as n } from "./button-CvjkwdSk.js";
3
3
  import { t as r } from "./react-sHtZdjeP.js";
4
4
  import { t as i } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { t as a } from "./copy-icon-Ft7t9bqz.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-CnomFgoS.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-CuYwqnV8.js";
7
7
  import { b as m } from "./select-BButFi-d.js";
8
- import { n as h, t as ee } from "./globals-cySln-Wb.js";
8
+ import { n as h, t as ee } from "./globals-C_EzUOYR.js";
9
9
  import { t as g } from "./jsx-runtime-3BD1kT0s.js";
10
10
  import { C as _, _ as te, i as v } from "./useTheme-CRnjkku0.js";
11
11
  import { a as ne, i as re, n as ie, r as ae } from "./dialog-CEBFZNyc.js";
12
12
  import { t as oe } from "./useAsyncData-Deh5kszT.js";
13
- import { t as se } from "./code-visibility-C5htpRDt.js";
14
- import { i as ce, n as le } from "./error-entries-uqmpke4z.js";
13
+ import { t as se } from "./code-visibility-BgyEIgVT.js";
14
+ import { i as ce, n as le } from "./error-entries-zfHL6H60.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;
@@ -6,7 +6,7 @@ import { i as s, n as c, r as l } from "./copy-icon-Ft7t9bqz.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-BButFi-d.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-CP_qCYHC.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-DJyqh0EM.js";
9
- import { n as ne, t as re } from "./ErrorBoundary-Cw4bjr36.js";
9
+ import { n as ne, t as re } from "./ErrorBoundary-uaj_Zevl.js";
10
10
  import { t as M } from "./react-dom-DUmH0GXv.js";
11
11
  import { t as N } from "./jsx-runtime-3BD1kT0s.js";
12
12
  import { t as ie } from "./label-BDKF3Afc.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.3.0_aca11a353ce3b112922852200b9c160f/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-CBW9hkuu.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-D-TqyZFT.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.3.0_aca11a353ce3b112922852200b9c160f/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
9296
- var Hs = K.lazy(async () => await import("./number-overlay-editor-BZiZkBdR.js")), Us = {
9296
+ var Hs = K.lazy(async () => await import("./number-overlay-editor-DeqVia1v.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 { h as e } from "./tooltip-BO1REbqs.js";
2
2
  import { _ as t } from "./useTheme-CRnjkku0.js";
3
- import { r as n } from "./code-visibility-C5htpRDt.js";
3
+ import { r as n } from "./code-visibility-BgyEIgVT.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,7 +5,7 @@ import { t as l } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { n as u, t as d } from "./copy-icon-Ft7t9bqz.js";
6
6
  import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DPZk8vhS.js";
7
7
  import { c as _, h as v, l as y, s as b, t as x, u as ee } from "./tooltip-BO1REbqs.js";
8
- import { A as te, E as ne, G as re, Nt as ie, O as ae, R as oe, St as se, Z as ce, Zt as le, _t as ue, en as de, et as fe, gt as pe, h as me, ht as he, lt as ge, s as _e, t as ve, vt as ye, xt as be, yt as xe, z as Se } from "./cells-CnomFgoS.js";
8
+ import { A as te, E as ne, G as re, Nt as ie, O as ae, R as oe, St as se, Z as ce, Zt as le, _t as ue, en as de, et as fe, gt as pe, h as me, ht as he, lt as ge, s as _e, t as ve, vt as ye, xt as be, yt as xe, z as Se } from "./cells-CuYwqnV8.js";
9
9
  import { M as Ce, O as we, k as Te } from "./select-BButFi-d.js";
10
10
  import { dt as Ee, q as De } from "./dropdown-menu-CP_qCYHC.js";
11
11
  import { g as Oe, x as ke } from "./toDate-Dwcg_x_5.js";
package/dist/main.js CHANGED
@@ -3,20 +3,20 @@ import { _ as a, c as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p,
3
3
  import { t as v } from "./react-sHtZdjeP.js";
4
4
  import { t as y } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { i as b, n as x, r as S, t as C } from "./copy-icon-Ft7t9bqz.js";
6
- import { C as w, F as T, G as E, I as D, J as O, K as k, L as A, P as j, R as M, X as N, Z as P, _ as F, a as I, b as L, g as R, i as z, j as B, k as ee, n as te, o as ne, q as re, v as ie, y as ae } from "./html-to-image-utL-jAuh.js";
6
+ import { C as w, F as T, G as E, I as D, J as O, K as k, L as A, P as j, R as M, X as N, Z as P, _ as F, a as I, b as L, g as R, i as z, j as B, k as ee, n as te, o as ne, q as re, v as ie, y as ae } from "./html-to-image-BJJsbNZ1.js";
7
7
  import { a as oe, d as se, f as ce, h as V, i as le, n as ue, o as de, r as fe, t as pe } from "./tooltip-BO1REbqs.js";
8
- import { $ as me, $t as he, B as ge, Bt as _e, C as ve, Ct as ye, D as be, Dt as xe, Et as Se, F as Ce, G as we, Gt as Te, Ht as Ee, I as De, J as Oe, Jt as ke, Kt as Ae, L as je, O as Me, Ot as Ne, P as Pe, Pt as Fe, Q as Ie, Qt as Le, Rt as Re, S as ze, St as Be, T as Ve, Tt as He, U as Ue, W as We, Wt as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, d as Xe, dn as Ze, dt as Qe, en as $e, f as et, fn as tt, ft as nt, g as rt, gt as it, h as at, hn as ot, k as st, l as ct, ln as lt, m as ut, mn as dt, n as ft, o as pt, on as mt, ot as ht, p as gt, q as _t, qt as vt, r as yt, rn as bt, rt as xt, sn as St, st as Ct, tn as wt, u as Tt, v as Et, w as Dt, wt as Ot, zt as kt } from "./cells-CnomFgoS.js";
8
+ import { $ as me, $t as he, B as ge, Bt as _e, C as ve, Ct as ye, D as be, Dt as xe, Et as Se, F as Ce, G as we, Gt as Te, Ht as Ee, I as De, J as Oe, Jt as ke, Kt as Ae, L as je, O as Me, Ot as Ne, P as Pe, Pt as Fe, Q as Ie, Qt as Le, Rt as Re, S as ze, St as Be, T as Ve, Tt as He, U as Ue, W as We, Wt as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, d as Xe, dn as Ze, dt as Qe, en as $e, f as et, fn as tt, ft as nt, g as rt, gt as it, h as at, hn as ot, k as st, l as ct, ln as lt, m as ut, mn as dt, n as ft, o as pt, on as mt, ot as ht, p as gt, q as _t, qt as vt, r as yt, rn as bt, rt as xt, sn as St, st as Ct, tn as wt, u as Tt, v as Et, w as Dt, wt as Ot, zt as kt } from "./cells-CuYwqnV8.js";
9
9
  import { D as At, E as jt, O as Mt, S as Nt, T as Pt, _ as Ft, a as It, c as Lt, d as Rt, f as zt, g as Bt, h as Vt, i as Ht, l as Ut, m as Wt, n as Gt, o as Kt, p as qt, r as Jt, s as Yt, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./spec-BwarBpUJ.js";
10
- import { $t as nn, A as rn, At as an, B as on, Bt as sn, C as cn, Ct as ln, D as un, Dt as dn, E as fn, Et as pn, F as mn, Ft as hn, G as gn, Gt as _n, H as vn, Ht as yn, I as bn, It as xn, J as Sn, Jt as Cn, K as wn, Kt as Tn, L as En, Lt as Dn, M as On, Mt as kn, N as An, Nt as jn, O as Mn, Ot as Nn, P as Pn, Pt as Fn, Qt as In, R as Ln, Rt as Rn, S as zn, St as Bn, T as Vn, Tt as Hn, U as Un, Ut as Wn, V as Gn, Vt as Kn, W as qn, Wt as Jn, X as Yn, Xt as Xn, Y as Zn, Yt as Qn, Zt as $n, _ as er, _t as tr, an as nr, at as rr, b as ir, c as ar, cn as or, ct as sr, d as cr, dn as lr, dt as ur, en as dr, et as fr, f as pr, fn as mr, ft as hr, g as gr, gt as _r, h as vr, hn as yr, ht as br, in as xr, it as Sr, j as Cr, jt as wr, k as Tr, kt as Er, ln as Dr, lt as Or, m as kr, mn as Ar, mt as jr, nn as Mr, nt as Nr, ot as Pr, p as Fr, pn as Ir, pt as Lr, q as Rr, qt as zr, r as Br, rn as Vr, rt as Hr, sn as Ur, st as Wr, t as Gr, tn as Kr, tt as qr, u as Jr, un as Yr, ut as Xr, v as Zr, vt as Qr, w as $r, wt as ei, x as ti, y as ni, yt as ri, z as ii, zt as ai } from "./common-y0tssAuW.js";
10
+ import { $t as nn, A as rn, At as an, B as on, Bt as sn, C as cn, Ct as ln, D as un, Dt as dn, E as fn, Et as pn, F as mn, Ft as hn, G as gn, Gt as _n, H as vn, Ht as yn, I as bn, It as xn, J as Sn, Jt as Cn, K as wn, Kt as Tn, L as En, Lt as Dn, M as On, Mt as kn, N as An, Nt as jn, O as Mn, Ot as Nn, P as Pn, Pt as Fn, Qt as In, R as Ln, Rt as Rn, S as zn, St as Bn, T as Vn, Tt as Hn, U as Un, Ut as Wn, V as Gn, Vt as Kn, W as qn, Wt as Jn, X as Yn, Xt as Xn, Y as Zn, Yt as Qn, Zt as $n, _ as er, _t as tr, an as nr, at as rr, b as ir, c as ar, cn as or, ct as sr, d as cr, dn as lr, dt as ur, en as dr, et as fr, f as pr, fn as mr, ft as hr, g as gr, gt as _r, h as vr, hn as yr, ht as br, in as xr, it as Sr, j as Cr, jt as wr, k as Tr, kt as Er, ln as Dr, lt as Or, m as kr, mn as Ar, mt as jr, nn as Mr, nt as Nr, ot as Pr, p as Fr, pn as Ir, pt as Lr, q as Rr, qt as zr, r as Br, rn as Vr, rt as Hr, sn as Ur, st as Wr, t as Gr, tn as Kr, tt as qr, u as Jr, un as Yr, ut as Xr, v as Zr, vt as Qr, w as $r, wt as ei, x as ti, y as ni, yt as ri, z as ii, zt as ai } from "./common-DswFee7V.js";
11
11
  import { c as oi, i as si, n as ci, o as li, t as ui } from "./useLifecycle-j7D9uD1o.js";
12
12
  import { t as di } from "./check-EDwSwP89.js";
13
13
  import { A as fi, C as pi, D as mi, E as hi, M as gi, O as _i, S as vi, T as yi, a as bi, b as xi, c as Si, i as Ci, k as wi, l as Ti, n as Ei, o as Di, r as Oi, s as ki, t as Ai, w as ji, x as Mi } from "./select-BButFi-d.js";
14
14
  import { $ as Ni, C as Pi, Et as Fi, J as Ii, K as Li, R as Ri, S as zi, U as Bi, Y as Vi, _ as Hi, _n as Ui, a as Wi, c as Gi, f as Ki, g as qi, h as Ji, i as Yi, kt as Xi, m as Zi, mt as Qi, n as $i, p as ea, q as ta, r as na, s as ra, t as ia, ut as aa, v as oa, vn as sa, x as ca, z as la } from "./dropdown-menu-CP_qCYHC.js";
15
15
  import { C as ua, S as da, T as fa, _ as pa, c as ma, d as ha, f as ga, g as _a, h as va, m as ya, u as ba, x as xa, y as Sa } from "./toDate-Dwcg_x_5.js";
16
- import { a as Ca, c as wa, d as Ta, f as Ea, i as Da, l as Oa, n as ka, o as Aa, r as ja, s as Ma, t as Na } from "./process-output-tkY7JSAu.js";
16
+ import { a as Ca, c as wa, d as Ta, f as Ea, i as Da, l as Oa, n as ka, o as Aa, r as ja, s as Ma, t as Na } from "./process-output-C1GGFU6Q.js";
17
17
  import { a as Pa, c as Fa, d as Ia, i as La, l as Ra, r as za, u as Ba } from "./glide-utils-DJyqh0EM.js";
18
- import { n as Va, t as Ha } from "./ErrorBoundary-Cw4bjr36.js";
19
- import { n as Ua, t as Wa } from "./globals-cySln-Wb.js";
18
+ import { n as Va, t as Ha } from "./ErrorBoundary-uaj_Zevl.js";
19
+ import { n as Ua, t as Wa } from "./globals-C_EzUOYR.js";
20
20
  import { t as Ga } from "./react-dom-DUmH0GXv.js";
21
21
  import { t as Ka } from "./jsx-runtime-3BD1kT0s.js";
22
22
  import { B as qa, C as H, Ct as Ja, D as Ya, E as Xa, F as U, G as Za, H as Qa, I as $a, L as eo, M as W, N as to, O as no, P as ro, Q as io, R as ao, S as G, St as oo, Tt as so, U as co, W as lo, Y as uo, Z as fo, _ as po, _t as mo, a as ho, b as go, bt as _o, c as vo, d as yo, f as bo, g as xo, h as So, ht as Co, i as wo, j as K, k as To, l as Eo, m as Do, n as Oo, o as ko, p as Ao, r as jo, s as Mo, u as No, ut as Po, v as Fo, vt as Io, w as Lo, wt as Ro, x as zo, xt as Bo, y as Vo, yt as Ho } from "./use-restore-focus-BEM7sFWl.js";
@@ -39,7 +39,7 @@ import { t as Ms } from "./useAsyncData-Deh5kszT.js";
39
39
  import { i as Ns, n as Ps, r as Fs } from "./formats-DLtvJPnj.js";
40
40
  import { M as Is, N as Ls } from "./vega-loader.browser-DNST6uVf.js";
41
41
  import { a as Rs, n as zs } from "./loader-BQOfjTIJ.js";
42
- import { c as Bs, d as Vs, i as Hs, l as Us, o as Ws, s as Gs, t as Ks, u as qs } from "./code-visibility-C5htpRDt.js";
42
+ import { c as Bs, d as Vs, i as Hs, l as Us, o as Ws, s as Gs, t as Ks, u as qs } from "./code-visibility-BgyEIgVT.js";
43
43
  import { t as Js } from "./useDeepCompareMemoize-DXwzRINI.js";
44
44
  import { t as Ys } from "./esm-D2gTsXEV.js";
45
45
  //#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
@@ -10067,7 +10067,7 @@ var LS = (e) => {
10067
10067
  output: t
10068
10068
  };
10069
10069
  } };
10070
- } }, US = J.lazy(() => import("./chat-ui-DIoRDU4g.js").then((e) => ({ default: e.Chatbot }))), WS = G(W({
10070
+ } }, US = J.lazy(() => import("./chat-ui-C6oDg4Zu.js").then((e) => ({ default: e.Chatbot }))), WS = G(W({
10071
10071
  id: U(),
10072
10072
  role: Fo([
10073
10073
  "system",
@@ -10533,7 +10533,7 @@ function VC(e, t) {
10533
10533
  }
10534
10534
  //#endregion
10535
10535
  //#region src/plugins/impl/DataEditorPlugin.tsx
10536
- var HC = J.lazy(() => import("./glide-data-editor-wQLG9-08.js").then((e) => e.t)), UC = wS("marimo-data-editor", { cssStyles: [qS] }).withData(W({
10536
+ var HC = J.lazy(() => import("./glide-data-editor-BUIgwGIy.js").then((e) => e.t)), UC = wS("marimo-data-editor", { cssStyles: [qS] }).withData(W({
10537
10537
  initialValue: W({ edits: G(W({
10538
10538
  rowIdx: K(),
10539
10539
  columnId: U(),
@@ -30099,7 +30099,7 @@ function OR(e) {
30099
30099
  }
30100
30100
  //#endregion
30101
30101
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
30102
- var kR = J.lazy(() => import("./reveal-component-CLcCq8tA.js")), AR = (e) => {
30102
+ var kR = J.lazy(() => import("./reveal-component-DC_fgfV2.js")), AR = (e) => {
30103
30103
  let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = ns(Sa), s = a === "read" || o, c = ns(gt) > 1, [l, u] = (0, J.useState)(null), d;
30104
30104
  t[0] !== i || t[1] !== n ? (d = EP(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
30105
30105
  let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
@@ -1,6 +1,6 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-sHtZdjeP.js";
3
- import { a as n } from "./glide-data-editor-wQLG9-08.js";
3
+ import { a as n } from "./glide-data-editor-BUIgwGIy.js";
4
4
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_aca11a353ce3b112922852200b9c160f/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/private/number-overlay-editor-style.js
5
5
  var r = /* @__PURE__ */ e(t()), i = /*#__PURE__*/ n("div")({
6
6
  name: "NumberOverlayEditorStyle",
@@ -1,6 +1,6 @@
1
- import { O as e } from "./html-to-image-utL-jAuh.js";
1
+ import { O as e } from "./html-to-image-BJJsbNZ1.js";
2
2
  import { h as t } from "./tooltip-BO1REbqs.js";
3
- import { b as n, y as r } from "./cells-CnomFgoS.js";
3
+ import { b as n, y as r } from "./cells-CuYwqnV8.js";
4
4
  import { b as i } from "./select-BButFi-d.js";
5
5
  import { n as a } from "./semaphore-89jsoHtS.js";
6
6
  var o = t("file", [["path", {
@@ -3,15 +3,15 @@ import { c as t, g as n, h as r, m as i, t as a } from "./button-CvjkwdSk.js";
3
3
  import { t as o } from "./react-sHtZdjeP.js";
4
4
  import { t as s } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { h as c, t as l } from "./tooltip-BO1REbqs.js";
6
- import { w as u } from "./cells-CnomFgoS.js";
7
- import { $ as d, Q as f, Z as p, an as m, i as h, l as g, ln as _, n as v, on as y, r as b, t as x, u as S } from "./common-y0tssAuW.js";
6
+ import { w as u } from "./cells-CuYwqnV8.js";
7
+ import { $ as d, Q as f, Z as p, an as m, i as h, l as g, ln as _, n as v, on as y, r as b, t as x, u as S } from "./common-DswFee7V.js";
8
8
  import { M as C } from "./select-BButFi-d.js";
9
9
  import { q as ee } from "./dropdown-menu-CP_qCYHC.js";
10
10
  import { y as w } from "./toDate-Dwcg_x_5.js";
11
11
  import { t as T } from "./jsx-runtime-3BD1kT0s.js";
12
12
  import { q as E } from "./use-restore-focus-BEM7sFWl.js";
13
13
  import { A as D, C as O, b as k } from "./useTheme-CRnjkku0.js";
14
- import { a as A, n as te, t as ne } from "./code-visibility-C5htpRDt.js";
14
+ import { a as A, n as te, t as ne } from "./code-visibility-BgyEIgVT.js";
15
15
  /* empty css */
16
16
  var j = c("sticky-note", [["path", {
17
17
  d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.25.2-dev114",
3
+ "version": "0.25.2-dev116",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -52,8 +52,8 @@
52
52
  "@lezer/lr": "^1.4.10",
53
53
  "@lezer/markdown": "^1.7.2",
54
54
  "@lezer/python": "^1.1.19",
55
- "@marimo-team/codemirror-ai": "^0.3.9",
56
- "@marimo-team/codemirror-languageserver": "^2.0.0",
55
+ "@marimo-team/codemirror-ai": "^0.3.10",
56
+ "@marimo-team/codemirror-languageserver": "^2.0.1",
57
57
  "@marimo-team/codemirror-mcp": "^0.1.7",
58
58
  "@marimo-team/codemirror-sql": "^0.3.0",
59
59
  "@marimo-team/llm-info": "workspace:*",