@marimo-team/islands 0.25.3-dev307 → 0.25.3-dev308

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.
@@ -129,7 +129,7 @@ function N(e) {
129
129
  }
130
130
  //#endregion
131
131
  //#region src/components/editor/boundary/ErrorBoundary.tsx
132
- var P = (0, C.lazy)(() => import("./feedback-button-Cwh6IkXm.js").then((e) => ({ default: e.FeedbackModal }))), F = (e) => {
132
+ var P = (0, C.lazy)(() => import("./feedback-button-D4eVjeNs.js").then((e) => ({ default: e.FeedbackModal }))), F = (e) => {
133
133
  let t = (0, S.c)(2), n;
134
134
  return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, k.jsx)(E, {
135
135
  FallbackComponent: I,
@@ -14,7 +14,7 @@ function y() {
14
14
  return e.warn("Failed to get version from mount config"), null;
15
15
  }
16
16
  }
17
- var b = y() || "0.25.3-dev307", x = o(b), S = o(!0);
17
+ var b = y() || "0.25.3-dev308", x = o(b), S = o(!0);
18
18
  o(null);
19
19
  //#endregion
20
20
  //#region src/core/wasm/state.ts
@@ -33,7 +33,7 @@ import { o as ba } from "./dist-f1h5p-fp.js";
33
33
  import { a as xa, i as Sa, n as Ca, o as wa, r as Ta, t as Ea } from "./dialog-BIUdMLIS.js";
34
34
  import { t as Da } from "./useAsyncData-DMBliR6D.js";
35
35
  import { n as W, t as G } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
36
- import { t as Oa } from "./ErrorBoundary-CZJkKuxP.js";
36
+ import { t as Oa } from "./ErrorBoundary-flfhLFje.js";
37
37
  import { D as ka, n as Aa } from "./vega-loader.browser-Cnf7IHA8.js";
38
38
  import { a as ja, n as Ma, r as Na, t as Pa } from "./loader-BIlwkY0d.js";
39
39
  import { t as Fa } from "./useIframeCapabilities--px_wpZL.js";
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { t } from "./react-CHbZqgBF.js";
3
3
  import { t as n } from "./react-dom-DhWGW7e0.js";
4
4
  import { c as r, l as i, u as a } from "./data-grid-types-CSElxhxo.js";
5
- import { a as o, i as s, n as c, r as l } from "./glide-data-editor-De46AjJm.js";
5
+ import { a as o, i as s, n as c, r as l } from "./glide-data-editor-ahfaPdFW.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-CHbZqgBF.js";
4
4
  import { t as i } from "./compiler-runtime-DNezxW8I.js";
5
5
  import { t as a } from "./copy-icon-oHFcxX_y.js";
6
6
  import { D as o, E as s, F as c, Gt as l, L as u, i as d, j as f, n as p, q as m } from "./error-entries-BWmleiL0.js";
7
- import { n as h, t as ee } from "./globals-BRv8LYXv.js";
7
+ import { n as h, t as ee } from "./globals-m8oswz--.js";
8
8
  import { r as g } from "./assertNever-efcK_v3t.js";
9
9
  import { t as _ } from "./jsx-runtime-6ZiU38At.js";
10
10
  import { Ft as te, p as v, yt as ne } from "./use-restore-focus-DyrKLdSB.js";
11
11
  import { a as re, i as ie, n as ae, r as oe } from "./dialog-BIUdMLIS.js";
12
12
  import { t as se } from "./useAsyncData-DMBliR6D.js";
13
- import { t as ce } from "./code-visibility-BY_Zb6NL.js";
13
+ import { t as ce } from "./code-visibility-BDs_r7jH.js";
14
14
  //#region src/components/ui/skeleton.tsx
15
15
  var y = /* @__PURE__ */ e(r(), 1), b = i(), x = _(), S = (e) => {
16
16
  let n = (0, b.c)(8), r, i;
@@ -14,7 +14,7 @@ import { t as P } from "./jsx-runtime-6ZiU38At.js";
14
14
  import { u as oe } from "./use-restore-focus-DyrKLdSB.js";
15
15
  import { t as F } from "./useEvent-xDnF2X04.js";
16
16
  import { n as I, t as se } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
17
- import { t as ce } from "./ErrorBoundary-CZJkKuxP.js";
17
+ import { t as ce } from "./ErrorBoundary-flfhLFje.js";
18
18
  import { A as le, C as ue, D as de, E as fe, F as pe, I as me, L as he, M as ge, N as _e, O as L, P as ve, R as ye, S as be, T as xe, _ as Se, a as R, b as Ce, c as z, d as we, f as B, g as V, h as Te, i as Ee, j as H, k as U, l as De, m as Oe, n as ke, o as Ae, p as je, r as W, s as Me, t as Ne, u as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "./data-grid-types-CSElxhxo.js";
19
19
  //#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
20
20
  function Be(e) {
@@ -7061,7 +7061,7 @@ function us(e, t, n, r, i) {
7061
7061
  }
7062
7062
  //#endregion
7063
7063
  //#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
7064
- var ds = /* @__PURE__ */ e(wr(), 1), fs = /* @__PURE__ */ e(Or(), 1), ps = G.lazy(async () => await import("./data-grid-overlay-editor-b2JGNCmt.js")), ms = 0;
7064
+ var ds = /* @__PURE__ */ e(wr(), 1), fs = /* @__PURE__ */ e(Or(), 1), ps = G.lazy(async () => await import("./data-grid-overlay-editor-es6V6qf-.js")), ms = 0;
7065
7065
  function hs(e) {
7066
7066
  return (0, ds.default)((0, fs.default)((0, fs.default)(e).filter((e) => e.span !== void 0).map((e) => (0, io.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
7067
7067
  }
@@ -9284,7 +9284,7 @@ function Js(e, t, n, r, i) {
9284
9284
  }
9285
9285
  //#endregion
9286
9286
  //#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
9287
- var Ys = G.lazy(async () => await import("./number-overlay-editor-D8NqnK59.js")), Xs = {
9287
+ var Ys = G.lazy(async () => await import("./number-overlay-editor-C6klKzEr.js")), Xs = {
9288
9288
  getAccessibilityString: (e) => e.data?.toString() ?? "",
9289
9289
  kind: W.Number,
9290
9290
  needsHover: (e) => e.hoverEffect === !0,
@@ -1,6 +1,6 @@
1
1
  import { h as e } from "./tooltip-BekOCQ3v.js";
2
2
  import { yt as t } from "./use-restore-focus-DyrKLdSB.js";
3
- import { r as n } from "./code-visibility-BY_Zb6NL.js";
3
+ import { r as n } from "./code-visibility-BDs_r7jH.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-oHFcxX_y.js";
6
6
  import { B as T, Bt as E, Dt as D, E as O, F as k, Ft as A, Ht as j, I as M, It as N, L as P, Lt as F, M as I, O as L, Ot as R, P as z, Pt as B, R as ee, Rt as te, St as ne, Ut as re, X as ie, Z as ae, _ as oe, _t as se, a as ce, at as le, b as ue, bt as de, c as fe, ct as pe, dt as me, i as he, it as ge, j as _e, jt as ve, lt as ye, mt as be, n as xe, o as Se, ot as Ce, q as we, rt as Te, ut as Ee, vt as De, yt as Oe, z as ke, zt as Ae } from "./html-to-image-B8hE6HIH.js";
7
7
  import { a as je, f as Me, h as Ne, i as Pe, m as Fe, n as Ie, o as Le, r as Re, t as ze } from "./tooltip-BekOCQ3v.js";
8
8
  import { D as Be, E as Ve, O as He, S as Ue, T as We, _ as Ge, a as Ke, c as qe, d as Je, f as Ye, g as Xe, h as Ze, i as Qe, l as $e, m as et, n as tt, o as nt, p as rt, r as it, s as at, t as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./spec-CSS9g9Su.js";
9
- import { $t as ft, A as pt, At as mt, B as ht, Bt as gt, C as _t, Cn as vt, Ct as yt, D as bt, Dt as xt, E as St, En as Ct, Et as wt, F as Tt, Ft as Et, G as Dt, Gt as Ot, H as kt, Ht as At, I as jt, It as Mt, J as Nt, Jt as Pt, K as Ft, Kt as It, L as Lt, Lt as Rt, M as zt, Mt as Bt, N as Vt, Nt as Ht, O as Ut, Ot as Wt, P as Gt, Pt as Kt, Qt as qt, R as Jt, Rt as Yt, S as Xt, Sn as Zt, T as Qt, Tn as $t, Tt as en, U as tn, Ut as nn, V as rn, Vt as an, W as on, Wt as sn, X as cn, Xt as ln, Y as un, Yt as dn, Z as fn, Zt as pn, _ as mn, _t as hn, an as gn, at as _n, b as vn, bn as yn, bt as bn, c as xn, cn as Sn, ct as Cn, d as wn, dn as Tn, dt as En, en as Dn, f as On, fn as kn, ft as An, g as jn, gn as Mn, gt as Nn, h as Pn, hn as Fn, ht as In, in as Ln, it as Rn, j as zn, jt as Bn, k as Vn, kt as Hn, ln as Un, lt as Wn, m as Gn, mn as Kn, mt as qn, nn as Jn, nt as Yn, on as Xn, ot as Zn, p as Qn, pn as $n, pt as er, q as tr, qt as nr, r as rr, rn as ir, rt as ar, sn as or, st as sr, t as cr, tn as lr, tt as ur, u as dr, un as fr, ut as pr, v as mr, vn as hr, vt as gr, w as _r, wn as vr, wt as yr, x as br, xn as xr, y as Sr, yn as Cr, yt as wr, z as Tr, zt as Er } from "./common-Bef_cRSs.js";
9
+ import { $t as ft, A as pt, At as mt, B as ht, Bt as gt, C as _t, Cn as vt, Ct as yt, D as bt, Dt as xt, E as St, En as Ct, Et as wt, F as Tt, Ft as Et, G as Dt, Gt as Ot, H as kt, Ht as At, I as jt, It as Mt, J as Nt, Jt as Pt, K as Ft, Kt as It, L as Lt, Lt as Rt, M as zt, Mt as Bt, N as Vt, Nt as Ht, O as Ut, Ot as Wt, P as Gt, Pt as Kt, Qt as qt, R as Jt, Rt as Yt, S as Xt, Sn as Zt, T as Qt, Tn as $t, Tt as en, U as tn, Ut as nn, V as rn, Vt as an, W as on, Wt as sn, X as cn, Xt as ln, Y as un, Yt as dn, Z as fn, Zt as pn, _ as mn, _t as hn, an as gn, at as _n, b as vn, bn as yn, bt as bn, c as xn, cn as Sn, ct as Cn, d as wn, dn as Tn, dt as En, en as Dn, f as On, fn as kn, ft as An, g as jn, gn as Mn, gt as Nn, h as Pn, hn as Fn, ht as In, in as Ln, it as Rn, j as zn, jt as Bn, k as Vn, kt as Hn, ln as Un, lt as Wn, m as Gn, mn as Kn, mt as qn, nn as Jn, nt as Yn, on as Xn, ot as Zn, p as Qn, pn as $n, pt as er, q as tr, qt as nr, r as rr, rn as ir, rt as ar, sn as or, st as sr, t as cr, tn as lr, tt as ur, u as dr, un as fr, ut as pr, v as mr, vn as hr, vt as gr, w as _r, wn as vr, wt as yr, x as br, xn as xr, y as Sr, yn as Cr, yt as wr, z as Tr, zt as Er } from "./common-CMTsL35V.js";
10
10
  import { a as Dr, n as Or, s as kr, t as Ar } from "./useLifecycle-BMlFy2yY.js";
11
11
  import { t as jr } from "./check-DCQEEsUn.js";
12
12
  import { A as Mr, C as Nr, D as Pr, M as Fr, O as Ir, a as Lr, c as Rr, d as zr, i as Br, k as Vr, l as Hr, n as Ur, o as Wr, r as Gr, s as Kr, t as qr, w as Jr, x as Yr } from "./select-XmXyen3r.js";
@@ -16,7 +16,7 @@ import { A as Ii, At as Li, B as Ri, Ct as zi, E as Bi, Et as Vi, Ft as Hi, H as
16
16
  import { a as wa, c as Ta, d as Ea, f as Da, i as Oa, l as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa } from "./process-output-DZDL_j1a.js";
17
17
  import { t as Fa } from "./pencil-BUfnNZAE.js";
18
18
  import { a as Ia, c as La, d as Ra, f as za, i as Ba, l as Va, r as Ha } from "./glide-utils-C4TKZeBA.js";
19
- import { n as Ua, t as Wa } from "./globals-BRv8LYXv.js";
19
+ import { n as Ua, t as Wa } from "./globals-m8oswz--.js";
20
20
  import { a as Ga, i as Ka, n as qa, r as Ja, s as Ya, t as Xa } from "./assertNever-efcK_v3t.js";
21
21
  import { t as Za } from "./react-dom-DhWGW7e0.js";
22
22
  import { t as Qa } from "./jsx-runtime-6ZiU38At.js";
@@ -40,10 +40,10 @@ import { n as qs, t as Js } from "./esm-BvhFNYzM.js";
40
40
  import { p as Ys } from "./dist-B_EswY8r.js";
41
41
  import { t as Xs } from "./useAsyncData-DMBliR6D.js";
42
42
  import { t as Zs } from "./semaphore-8KhQouXt.js";
43
- import { t as Qs } from "./ErrorBoundary-CZJkKuxP.js";
43
+ import { t as Qs } from "./ErrorBoundary-flfhLFje.js";
44
44
  import { D as $s, O as ec } from "./vega-loader.browser-Cnf7IHA8.js";
45
45
  import { a as tc, n as nc } from "./loader-BIlwkY0d.js";
46
- import { a as rc, c as ic, i as ac, l as oc, o as sc, s as cc, t as lc } from "./code-visibility-BY_Zb6NL.js";
46
+ import { a as rc, c as ic, i as ac, l as oc, o as sc, s as cc, t as lc } from "./code-visibility-BDs_r7jH.js";
47
47
  import { t as uc } from "./useDeepCompareMemoize-CxywEb3a.js";
48
48
  import { t as dc } from "./esm-wKplZtOX.js";
49
49
  //#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
@@ -12298,7 +12298,7 @@ function ED(e, t) {
12298
12298
  }
12299
12299
  //#endregion
12300
12300
  //#region src/plugins/impl/DataEditorPlugin.tsx
12301
- var DD = J.lazy(() => import("./glide-data-editor-De46AjJm.js").then((e) => e.t)), OD = cE("marimo-data-editor", { cssStyles: [jE, ME] }).withData(K({
12301
+ var DD = J.lazy(() => import("./glide-data-editor-ahfaPdFW.js").then((e) => e.t)), OD = cE("marimo-data-editor", { cssStyles: [jE, ME] }).withData(K({
12302
12302
  initialValue: K({ edits: H(K({
12303
12303
  rowIdx: U(),
12304
12304
  columnId: W(),
@@ -32011,7 +32011,7 @@ function DH(e) {
32011
32011
  }
32012
32012
  //#endregion
32013
32013
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
32014
- var OH = J.lazy(() => import("./reveal-component-BWK6Zy_D.js")), kH = (e) => {
32014
+ var OH = J.lazy(() => import("./reveal-component-DwnxPyVz.js")), kH = (e) => {
32015
32015
  let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = lo(Fs), s = a === "read" || o, c = lo(Qi) > 1, [l, u] = (0, J.useState)(null), d;
32016
32016
  t[0] !== i || t[1] !== n ? (d = TR(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
32017
32017
  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-BPCzCO3I.js";
2
2
  import { t } from "./react-CHbZqgBF.js";
3
- import { a as n } from "./glide-data-editor-De46AjJm.js";
3
+ import { a as n } from "./glide-data-editor-ahfaPdFW.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 { g as t, h as n, i as r, m as i, t as a } from "./button-BuSV-mLI.js";
3
3
  import { t as o } from "./react-CHbZqgBF.js";
4
4
  import { t as s } from "./compiler-runtime-DNezxW8I.js";
5
5
  import { h as c, t as l } from "./tooltip-BekOCQ3v.js";
6
- import { $ as u, Q as d, _n as f, an as p, bn as m, et as h, gn as g, i as _, l as v, n as y, on as b, r as x, t as S, u as C } from "./common-Bef_cRSs.js";
6
+ import { $ as u, Q as d, _n as f, an as p, bn as m, et as h, gn as g, i as _, l as v, n as y, on as b, r as x, t as S, u as C } from "./common-CMTsL35V.js";
7
7
  import { M as w } from "./select-XmXyen3r.js";
8
8
  import { Y as T } from "./dropdown-menu-CAejOChE.js";
9
9
  import { Ft as E } from "./error-entries-BWmleiL0.js";
@@ -11,7 +11,7 @@ import { t as D } from "./jsx-runtime-6ZiU38At.js";
11
11
  import { Ft as O, Rt as k, d as A, r as ee } from "./use-restore-focus-DyrKLdSB.js";
12
12
  import { t as j } from "./useEvent-xDnF2X04.js";
13
13
  import { o as te } from "./static-state-Dtocd9UO.js";
14
- import { n as ne, t as re } from "./code-visibility-BY_Zb6NL.js";
14
+ import { n as ne, t as re } from "./code-visibility-BDs_r7jH.js";
15
15
  /* empty css */
16
16
  var M = 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-dev307",
3
+ "version": "0.25.3-dev308",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -79,6 +79,7 @@ async function startWorker(subscribing = Promise.resolve()) {
79
79
  unsubscribe: (id: string) => subscribers.delete(id),
80
80
  set_persistence: vi.fn(),
81
81
  set_package_loader: vi.fn(),
82
+ allow_input: vi.fn(),
82
83
  destroy: vi.fn(),
83
84
  };
84
85
  const bridge = { notebook, destroy: vi.fn() };
@@ -129,6 +130,8 @@ it("delivers startup notifications after a delayed first subscription, without r
129
130
  expect(notebook.set_persistence).toHaveBeenCalledExactlyOnceWith(
130
131
  expect.any(Function),
131
132
  );
133
+ // The editor's user can answer a prompt, so its runs may ask for one.
134
+ expect(notebook.allow_input).toHaveBeenCalledExactlyOnceWith(true);
132
135
  expect(pyodide.loadPackagesFromImports).toHaveResolved();
133
136
  expect(init).not.toHaveBeenCalled();
134
137
 
@@ -131,6 +131,7 @@ export type SerializedBridge = {
131
131
  persist: (contents: string, filename: string) => Promise<void>,
132
132
  ): void;
133
133
  set_package_loader(load: (code: string) => Promise<void>): void;
134
+ allow_input(allowed: boolean): void;
134
135
  destroy(): void;
135
136
  };
136
137
  };
@@ -200,6 +200,8 @@ const requestHandler = createRPCRequestHandler({
200
200
  });
201
201
  // Host runs name cells, so the worker loads their imports itself.
202
202
  notebook.set_package_loader(loadPackagesForCode);
203
+ // This worker serves the editor, whose user can answer a prompt.
204
+ notebook.allow_input(true);
203
205
  } finally {
204
206
  notebook.destroy();
205
207
  }