@marimo-team/islands 0.25.3-dev224 → 0.25.3-dev226

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.
@@ -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-BUf6rqKQ.js").then((e) => ({ default: e.FeedbackModal }))), L = (e) => {
138
+ var I = (0, T.lazy)(() => import("./feedback-button-BUTYboOI.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,
@@ -17,7 +17,7 @@ function b() {
17
17
  return e.warn("Failed to get version from mount config"), null;
18
18
  }
19
19
  }
20
- var x = b() || "0.25.3-dev224", S = s(x), C = s(!0);
20
+ var x = b() || "0.25.3-dev226", S = s(x), C = s(!0);
21
21
  s(null);
22
22
  //#endregion
23
23
  //#region src/core/wasm/state.ts
@@ -12,7 +12,7 @@ import { A as Re, C as U, M as ze, S as Be, T as Ve, _ as He, b as Ue, c as We,
12
12
  import { $ as at, $t as ot, A as st, At as ct, B as lt, Bt as ut, C as dt, Ct as ft, D as pt, Dt as mt, E as ht, Et as gt, F as _t, Ft as vt, G as yt, Gt as bt, H as xt, Ht as St, I as Ct, It as wt, Jt as Tt, K as Et, Kt as Dt, L as Ot, Lt as kt, M as At, Mt as jt, N as Mt, Nt, O as Pt, Ot as Ft, P as It, Pt as Lt, Q as Rt, Qt as zt, R as Bt, Rt as Vt, S as Ht, St as Ut, T as Wt, Tt as Gt, U as Kt, Ut as qt, V as Jt, Vt as Yt, W as Xt, Wt as Zt, X as Qt, Xt as $t, Yt as en, Z as tn, Zt as nn, _ as rn, _n as an, _t as on, a as sn, an as cn, at as ln, b as un, bn as dn, bt as fn, cn as pn, ct as mn, d as hn, dn as gn, dt as _n, en as vn, et as yn, f as bn, ft as xn, gn as Sn, gt as Cn, h as wn, hn as Tn, ht as En, i as Dn, it as On, j as kn, jt as An, k as jn, kt as Mn, l as Nn, lt as Pn, mn as Fn, mt as In, n as Ln, nn as Rn, nt as zn, o as Bn, on as Vn, ot as Hn, pn as Un, q as Wn, qt as Gn, rn as Kn, rt as qn, s as Jn, sn as Yn, st as Xn, t as Zn, tn as Qn, tt as $n, u as er, un as tr, ut as nr, vn as rr, vt as ir, wt as ar, x as or, xn as sr, xt as cr, yn as lr, yt as ur, z as dr, zt as fr } from "./dropdown-menu-CSNdPSnS.js";
13
13
  import { a as pr, n as mr, r as hr, t as gr } from "./config-DbjzjwxX.js";
14
14
  import { A as _r, E as vr, G as yr, H as br, I as xr, Lt as Sr, Nt as Cr, Q as wr, Rt as Tr, T as Er, Tt as Dr, U as Or, V as kr, b as Ar, et as jr, h as Mr, j as Nr, l as Pr, q as Fr, st as Ir, t as Lr, tt as Rr, u as zr, wt as Br, y as Vr, zt as Hr } from "./error-entries-CRPfxMqm.js";
15
- import { n as Ur, t as Wr } from "./ErrorBoundary-Ba6GHuhB.js";
15
+ import { n as Ur, t as Wr } from "./ErrorBoundary-DLCTT3lV.js";
16
16
  import { i as Gr, r as Kr, s as qr, t as Jr } from "./strings-BGW-fXVJ.js";
17
17
  import { t as Yr } from "./clsx-CoeGtWvn.js";
18
18
  import { t as Xr } from "./react-dom-DUmH0GXv.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-0PJ-9N5n.js";
5
- import { a as o, i as s, n as c, r as l } from "./glide-data-editor-Dm3DXKHl.js";
5
+ import { a as o, i as s, n as c, r as l } from "./glide-data-editor-CwBDUcxl.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_27cffe7f1bc30287d59ac27db3240c5b/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",
@@ -4,13 +4,13 @@ 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-CG57cxwb.js";
6
6
  import { A as o, E as s, I as c, K as l, P as u, T as d, i as f, n as p, zt as m } from "./error-entries-CRPfxMqm.js";
7
- import { n as h, t as ee } from "./globals-DjSaXJeh.js";
7
+ import { n as h, t as ee } from "./globals-DzNEISF4.js";
8
8
  import { t as g } from "./strings-BGW-fXVJ.js";
9
9
  import { t as _ } from "./jsx-runtime-3BD1kT0s.js";
10
10
  import { l as te, r as v, x as ne } from "./utils-DXkj82sK.js";
11
11
  import { a as re, i as ie, n as ae, r as oe } from "./dialog-DsZ49mmU.js";
12
12
  import { t as se } from "./useAsyncData-DsZMvNXn.js";
13
- import { t as ce } from "./code-visibility-BXNYYFb5.js";
13
+ import { t as ce } from "./code-visibility-BLplO_Vw.js";
14
14
  //#region src/components/ui/skeleton.tsx
15
15
  var y = /* @__PURE__ */ e(r(), 1), b = i(), x = _(), le = (e) => {
16
16
  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-CG57cxwb.js";
6
6
  import { c as u, d, i as f, n as p, s as m, t as h } from "./select-BSxlITBo.js";
7
7
  import { d as g, h as _, i as v, l as y, n as b, o as x, q as S, s as C, t as w, u as T } from "./dropdown-menu-CSNdPSnS.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-CQddGpa-.js";
9
- import { n as ne, t as re } from "./ErrorBoundary-Ba6GHuhB.js";
9
+ import { n as ne, t as re } from "./ErrorBoundary-DLCTT3lV.js";
10
10
  import { i as ie, n as M } from "./strings-BGW-fXVJ.js";
11
11
  import { t as N } from "./react-dom-DUmH0GXv.js";
12
12
  import { t as P } from "./jsx-runtime-3BD1kT0s.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_27cffe7f1bc30287d59ac27db3240c5b/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-CGLPw73V.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-D5k4KSJO.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_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
9296
- var Hs = K.lazy(async () => await import("./number-overlay-editor-BVAnAmYf.js")), Us = {
9296
+ var Hs = K.lazy(async () => await import("./number-overlay-editor-rfw1aiUy.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 { m as e } from "./tooltip-C3UnvsRe.js";
2
2
  import { l as t } from "./utils-DXkj82sK.js";
3
- import { r as n } from "./code-visibility-BXNYYFb5.js";
3
+ import { r as n } from "./code-visibility-BLplO_Vw.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",
package/dist/main.js CHANGED
@@ -6,7 +6,7 @@ import { i as x, n as S, r as C, t as w } from "./copy-icon-CG57cxwb.js";
6
6
  import { $ as T, A as E, At as D, B as O, Bt as k, Dt as A, F as j, Ft as M, Gt as N, H as P, Ht as F, I, Kt as L, L as R, Lt as z, M as B, Mt as ee, Nt as te, Ot as ne, Q as re, R as ie, Rt as ae, St as oe, U as se, Ut as ce, V as le, Vt as ue, X as de, Z as fe, _ as pe, a as me, b as he, bt as ge, c as _e, dt as ve, et as ye, ft as be, gt as xe, i as Se, it as Ce, kt as we, n as Te, o as Ee, pt as De, rt as Oe, tt as ke, v as Ae, w as je, wt as Me, x as Ne, xt as Pe, y as Fe, yt as Ie, z as Le, zt as Re } from "./html-to-image-CgAnxFi8.js";
7
7
  import { a as ze, d as Be, i as Ve, m as He, n as Ue, o as We, p as Ge, r as Ke, t as qe } from "./tooltip-C3UnvsRe.js";
8
8
  import { D as Je, E as Ye, O as Xe, S as Ze, T as Qe, _ as $e, a as et, c as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, n as lt, o as ut, p as dt, r as ft, s as pt, t as mt, u as ht, v as gt, w as _t, x as vt, y as yt } from "./spec-Dq8RNplp.js";
9
- import { $t as bt, A as xt, At as St, B as Ct, Bt as wt, C as Tt, Ct as Et, D as Dt, Dt as Ot, E as kt, Et as At, F as jt, Ft as Mt, G as Nt, Gt as Pt, H as Ft, Ht as It, I as Lt, It as Rt, J as zt, Jt as Bt, K as Vt, Kt as Ht, L as Ut, Lt as Wt, M as Gt, Mt as Kt, N as qt, Nt as Jt, O as Yt, Ot as Xt, P as Zt, Pt as Qt, Qt as $t, R as en, Rt as tn, S as nn, St as rn, T as an, Tt as on, U as sn, Ut as cn, V as ln, Vt as un, W as dn, Wt as fn, X as pn, Xt as mn, Y as hn, Yt as gn, Zt as _n, _ as vn, _t as yn, an as bn, at as xn, b as Sn, c as Cn, cn as wn, ct as Tn, d as En, dn as Dn, dt as On, en as kn, et as An, f as jn, fn as Mn, ft as Nn, g as Pn, gt as Fn, h as In, hn as Ln, ht as Rn, in as zn, it as Bn, j as Vn, jt as Hn, k as Un, kt as Wn, ln as Gn, lt as Kn, m as qn, mn as Jn, mt as Yn, nn as Xn, nt as Zn, ot as Qn, p as $n, pn as er, pt as tr, q as nr, qt as rr, r as ir, rn as ar, rt as or, sn as sr, st as cr, t as lr, tn as ur, tt as dr, u as fr, un as pr, ut as mr, v as hr, vt as gr, w as _r, wt as vr, x as yr, y as br, yt as xr, z as Sr, zt as Cr } from "./common-BHSOMSDG.js";
9
+ import { $t as bt, A as xt, At as St, B as Ct, Bt as wt, C as Tt, Ct as Et, D as Dt, Dt as Ot, E as kt, Et as At, F as jt, Ft as Mt, G as Nt, Gt as Pt, H as Ft, Ht as It, I as Lt, It as Rt, J as zt, Jt as Bt, K as Vt, Kt as Ht, L as Ut, Lt as Wt, M as Gt, Mt as Kt, N as qt, Nt as Jt, O as Yt, Ot as Xt, P as Zt, Pt as Qt, Qt as $t, R as en, Rt as tn, S as nn, St as rn, T as an, Tt as on, U as sn, Ut as cn, V as ln, Vt as un, W as dn, Wt as fn, X as pn, Xt as mn, Y as hn, Yt as gn, Zt as _n, _ as vn, _t as yn, an as bn, at as xn, b as Sn, c as Cn, cn as wn, ct as Tn, d as En, dn as Dn, dt as On, en as kn, et as An, f as jn, fn as Mn, ft as Nn, g as Pn, gt as Fn, h as In, hn as Ln, ht as Rn, in as zn, it as Bn, j as Vn, jt as Hn, k as Un, kt as Wn, ln as Gn, lt as Kn, m as qn, mn as Jn, mt as Yn, nn as Xn, nt as Zn, ot as Qn, p as $n, pn as er, pt as tr, q as nr, qt as rr, r as ir, rn as ar, rt as or, sn as sr, st as cr, t as lr, tn as ur, tt as dr, u as fr, un as pr, ut as mr, v as hr, vt as gr, w as _r, wt as vr, x as yr, y as br, yt as xr, z as Sr, zt as Cr } from "./common-IZnt0rVY.js";
10
10
  import { a as wr, n as Tr, s as Er, t as Dr } from "./useLifecycle-BquH9ET-.js";
11
11
  import { t as Or } from "./check-Z_vtI3OL.js";
12
12
  import { A as kr, C as Ar, D as jr, M as Mr, O as Nr, a as Pr, c as Fr, d as Ir, i as Lr, k as Rr, l as zr, n as Br, o as Vr, r as Hr, s as Ur, t as Wr, w as Gr, x as Kr } from "./select-BSxlITBo.js";
@@ -15,8 +15,8 @@ import { c as Ei, i as Di, l as Oi, o as ki, s as Ai, t as ji } from "./config-D
15
15
  import { A as Mi, At as Ni, B as Pi, G as Fi, It as Ii, J as Li, K as Ri, N as zi, Nt as Bi, Ot as Vi, Pt as Hi, R as Ui, St as Wi, T as Gi, Tt as Ki, V as qi, X as Ji, Y as Yi, Z as Xi, _ as Zi, at as Qi, c as $i, ct as ea, d as ta, g as na, h as ra, jt as ia, k as aa, kt as oa, lt as sa, m as ca, ot as la, p as ua, q as da, s as fa, ut as pa, xt as ma, z as ha } from "./error-entries-CRPfxMqm.js";
16
16
  import { a as ga, c as _a, d as va, f as ya, i as ba, l as xa, n as Sa, o as Ca, r as wa, s as Ta, t as Ea } from "./process-output-Bmev5azU.js";
17
17
  import { a as Da, c as Oa, d as ka, i as Aa, l as ja, r as Ma, u as Na } from "./glide-utils-CQddGpa-.js";
18
- import { n as Pa, t as Fa } from "./ErrorBoundary-Ba6GHuhB.js";
19
- import { n as Ia, t as La } from "./globals-DjSaXJeh.js";
18
+ import { n as Pa, t as Fa } from "./ErrorBoundary-DLCTT3lV.js";
19
+ import { n as Ia, t as La } from "./globals-DzNEISF4.js";
20
20
  import { a as Ra, i as za, n as Ba, r as Va, s as Ha, t as Ua } from "./strings-BGW-fXVJ.js";
21
21
  import { t as Wa } from "./react-dom-DUmH0GXv.js";
22
22
  import { t as Ga } from "./jsx-runtime-3BD1kT0s.js";
@@ -44,7 +44,7 @@ import { t as Vs } from "./useAsyncData-DsZMvNXn.js";
44
44
  import { t as Hs } from "./semaphore-89jsoHtS.js";
45
45
  import { D as Us, O as Ws } from "./vega-loader.browser-B9Pz0EGP.js";
46
46
  import { a as Gs, n as Ks } from "./loader-BisjOLiW.js";
47
- import { c as qs, d as Js, i as Ys, l as Xs, o as Zs, s as Qs, t as $s, u as ec } from "./code-visibility-BXNYYFb5.js";
47
+ import { c as qs, d as Js, i as Ys, l as Xs, o as Zs, s as Qs, t as $s, u as ec } from "./code-visibility-BLplO_Vw.js";
48
48
  import { t as tc } from "./useDeepCompareMemoize-KMBBux8C.js";
49
49
  import { t as nc } from "./esm-BgKjMvWw.js";
50
50
  //#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
@@ -3147,7 +3147,7 @@ var Pp = q([
3147
3147
  code: U().nullable().describe("The cell's source code, with newline line endings, or null when the host does not expose source to this client. An empty string is an empty cell. A host normalizes other line endings when it loads a file. Source availability does not grant editing permission; see the notebook's operations."),
3148
3148
  name: U().describe("The cell's name. `_` for an anonymous cell; otherwise a Python identifier, unique within the notebook."),
3149
3149
  config: fm,
3150
- etag: dm.describe("Precondition for edits and cell runs. Covers exact source, name, and config. Its text is the first 16 hex characters of SHA-256 of the source, `name`, and the config values `column`, `disabled`, `hide_code`, and `expand_output`, in that order. Config values are JSON scalars."),
3150
+ etag: dm.describe("Precondition for edits and cell runs. Covers exact source, name, and config. Its text is the newline-joined sequence of the first 16 hex characters of SHA-256 of the UTF-8 source, `name`, and the config values `column`, `disabled`, `hide_code`, and `expand_output`, in that order. Config values are JSON scalars."),
3151
3151
  code_fingerprint: am.describe("Fingerprint of the actual source, including when `code` is null. Formatting-only edits may preserve it. Independent of cell name, config, and source visibility."),
3152
3152
  version: Zo().min(1).describe("The document version at which the cell was created or last changed.")
3153
3153
  }).describe("A unit of code and configuration in the document. A cell event\nfires when its code, name, or config changes. Markdown and SQL\ncells are code that calls `mo.md` or `mo.sql`; a client chooses\nthe editor to show.\n"), mm = G({
@@ -12405,7 +12405,7 @@ function gD(e, t) {
12405
12405
  }
12406
12406
  //#endregion
12407
12407
  //#region src/plugins/impl/DataEditorPlugin.tsx
12408
- var _D = J.lazy(() => import("./glide-data-editor-Dm3DXKHl.js").then((e) => e.t)), vD = $T("marimo-data-editor", { cssStyles: [SE] }).withData(G({
12408
+ var _D = J.lazy(() => import("./glide-data-editor-CwBDUcxl.js").then((e) => e.t)), vD = $T("marimo-data-editor", { cssStyles: [SE] }).withData(G({
12409
12409
  initialValue: G({ edits: K(G({
12410
12410
  rowIdx: W(),
12411
12411
  columnId: U(),
@@ -32196,7 +32196,7 @@ function _H(e) {
32196
32196
  }
32197
32197
  //#endregion
32198
32198
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
32199
- var vH = J.lazy(() => import("./reveal-component-Cfoa8xAb.js")), yH = (e) => {
32199
+ var vH = J.lazy(() => import("./reveal-component-BJO1zy6x.js")), yH = (e) => {
32200
32200
  let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Ao(Uo), s = a === "read" || o, c = Ao(ma) > 1, [l, u] = (0, J.useState)(null), d;
32201
32201
  t[0] !== i || t[1] !== n ? (d = hR(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
32202
32202
  let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
@@ -34380,7 +34380,12 @@ var OW = class {
34380
34380
  sessionGeneration: t.sessionGeneration
34381
34381
  }), await this.putControlRequest({
34382
34382
  type: "execute-cells",
34383
- ...e
34383
+ request: e.request,
34384
+ executionRequests: Ps.zip(e.cellIds, e.codes).map(([e, t]) => ({
34385
+ type: "execute-cell",
34386
+ cellId: e,
34387
+ code: t
34388
+ }))
34384
34389
  }, t), null;
34385
34390
  };
34386
34391
  getUsageStats = v;
@@ -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-Dm3DXKHl.js";
3
+ import { a as n } from "./glide-data-editor-CwBDUcxl.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_27cffe7f1bc30287d59ac27db3240c5b/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",
@@ -3,7 +3,7 @@ import { c as t, g as n, h as r, m as i, t as a } from "./button-B6RjDKJx.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 { m as c, t as l } from "./tooltip-C3UnvsRe.js";
6
- import { $ as u, Q as d, Z as f, an as p, i as m, l as h, ln as g, n as _, on as v, r as y, t as b, u as x } from "./common-BHSOMSDG.js";
6
+ import { $ as u, Q as d, Z as f, an as p, i as m, l as h, ln as g, n as _, on as v, r as y, t as b, u as x } from "./common-IZnt0rVY.js";
7
7
  import { M as S } from "./select-BSxlITBo.js";
8
8
  import { Y as ee } from "./dropdown-menu-CSNdPSnS.js";
9
9
  import { Pt as C } from "./error-entries-CRPfxMqm.js";
@@ -11,7 +11,7 @@ import { t as w } from "./jsx-runtime-3BD1kT0s.js";
11
11
  import { r as T } from "./use-restore-focus-BWO0z1lo.js";
12
12
  import { D as E, t as D, x as O } from "./utils-DXkj82sK.js";
13
13
  import { o as k } from "./static-state-BldGd99T.js";
14
- import { a as A, n as te, t as ne } from "./code-visibility-BXNYYFb5.js";
14
+ import { a as A, n as te, t as ne } from "./code-visibility-BLplO_Vw.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.3-dev224",
3
+ "version": "0.25.3-dev226",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -770,8 +770,19 @@ describe("IslandsPyodideBridge", () => {
770
770
  functionName: "put_control_request",
771
771
  payload: {
772
772
  type: "execute-cells",
773
- cellIds: ["cell-1", "cell-2"],
774
- codes: ["print('hello')", "print('world')"],
773
+ request: undefined,
774
+ executionRequests: [
775
+ {
776
+ type: "execute-cell",
777
+ cellId: "cell-1",
778
+ code: "print('hello')",
779
+ },
780
+ {
781
+ type: "execute-cell",
782
+ cellId: "cell-2",
783
+ code: "print('world')",
784
+ },
785
+ ],
775
786
  },
776
787
  sessionGeneration: 1,
777
788
  });
@@ -3,6 +3,7 @@
3
3
 
4
4
  import type { NotebookTransport } from "@marimo-team/client";
5
5
  import { getWorkerRPC } from "@/core/wasm/rpc";
6
+ import { Arrays } from "@/utils/arrays";
6
7
  import { Deferred } from "@/utils/Deferred";
7
8
  import { throwNotImplemented } from "@/utils/functions";
8
9
  import { Logger } from "@/utils/Logger";
@@ -362,7 +363,14 @@ export class IslandsPyodideBridge implements RunRequests, EditRequests {
362
363
  await this.putControlRequest(
363
364
  {
364
365
  type: "execute-cells",
365
- ...request,
366
+ request: request.request,
367
+ executionRequests: Arrays.zip(request.cellIds, request.codes).map(
368
+ ([cellId, code]) => ({
369
+ type: "execute-cell",
370
+ cellId,
371
+ code,
372
+ }),
373
+ ),
366
374
  },
367
375
  session,
368
376
  );
@@ -5,6 +5,7 @@ import { createRPCRequestHandler } from "rpc-anywhere";
5
5
  import { toast } from "@/components/ui/use-toast";
6
6
  import { userConfigAtom } from "@/core/config/config";
7
7
  import { serializeBlob } from "@/utils/blob";
8
+ import { Arrays } from "@/utils/arrays";
8
9
  import { Deferred } from "@/utils/Deferred";
9
10
  import { throwNotImplemented } from "@/utils/functions";
10
11
  import { Logger } from "@/utils/Logger";
@@ -295,7 +296,14 @@ export class PyodideBridge implements RunRequests, EditRequests {
295
296
 
296
297
  await this.putControlRequest({
297
298
  type: "execute-cells",
298
- ...request,
299
+ request: request.request,
300
+ executionRequests: Arrays.zip(request.cellIds, request.codes).map(
301
+ ([cellId, code]) => ({
302
+ type: "execute-cell",
303
+ cellId,
304
+ code,
305
+ }),
306
+ ),
299
307
  });
300
308
  return null;
301
309
  };