@marimo-team/islands 0.25.3-dev453 → 0.25.3-dev458

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 (28) hide show
  1. package/dist/{ErrorBoundary-CIYMOu2p.js → ErrorBoundary-CwkGSYmm.js} +1 -1
  2. package/dist/{chat-ui-DEHpKH2l.js → chat-ui-6d75EmD5.js} +3 -3
  3. package/dist/{code-visibility-BQE60zOk.js → code-visibility-Xv_t4WwT.js} +2 -2
  4. package/dist/{common-DfUux6zJ.js → common-BlMwQJMs.js} +3 -3
  5. package/dist/{data-grid-overlay-editor-B9zW4oN1.js → data-grid-overlay-editor-Bd8kunYq.js} +1 -1
  6. package/dist/{error-entries-BG7ifiDg.js → error-entries-Y2oBe6wK.js} +2 -2
  7. package/dist/{feedback-button-BEUh4iQQ.js → feedback-button-nET4jF-9.js} +3 -3
  8. package/dist/{glide-data-editor-CbdIXPTZ.js → glide-data-editor-DzQRP0yA.js} +3 -3
  9. package/dist/{globals-BkxG-Y8L.js → globals-IFL15lCt.js} +1 -1
  10. package/dist/{html-to-image-9HLBGrIx.js → html-to-image-BMB3OKAk.js} +1 -1
  11. package/dist/main.js +8452 -8443
  12. package/dist/{number-overlay-editor-BFzdth50.js → number-overlay-editor-BtYxGlC3.js} +1 -1
  13. package/dist/{process-output-B8HPq5iZ.js → process-output-lVSjjNuD.js} +2 -2
  14. package/dist/{reveal-component-DK_-9fAX.js → reveal-component-BtbTYMke.js} +2 -2
  15. package/package.json +1 -1
  16. package/src/__mocks__/executions.ts +0 -1
  17. package/src/components/editor/cell/__tests__/useRunCells.test.tsx +1 -1
  18. package/src/core/cells/__tests__/runs.test.ts +0 -1
  19. package/src/core/cells/session.ts +0 -1
  20. package/src/core/executions/__tests__/atoms.test.ts +1 -1
  21. package/src/core/executions/__tests__/freshness.test.ts +0 -1
  22. package/src/core/executions/__tests__/interrupt.test.ts +1 -1
  23. package/src/core/executions/__tests__/output-lifecycle.test.ts +1 -1
  24. package/src/core/executions/__tests__/run.test.ts +1 -1
  25. package/src/core/executions/__tests__/select.test.ts +1 -2
  26. package/src/core/executions/select.ts +4 -3
  27. package/src/core/islands/__tests__/bridge.test.ts +1 -1
  28. package/src/core/wasm/__tests__/bridge.test.ts +3 -3
@@ -1,6 +1,6 @@
1
1
  import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { t } from "./react-Bgs_wQh3.js";
3
- import { a as n } from "./glide-data-editor-CbdIXPTZ.js";
3
+ import { a as n } from "./glide-data-editor-DzQRP0yA.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.1_57c124ac5a994dbbf13fd11838cf9ba9/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 { T as e } from "./html-to-image-9HLBGrIx.js";
1
+ import { T as e } from "./html-to-image-BMB3OKAk.js";
2
2
  import { h as t } from "./tooltip-CiJ919pg.js";
3
- import { Tt as n, wt as r } from "./error-entries-BG7ifiDg.js";
3
+ import { Tt as n, wt as r } from "./error-entries-Y2oBe6wK.js";
4
4
  import { r as i } from "./assertNever-DOTNJ2Y4.js";
5
5
  var a = t("file", [["path", {
6
6
  d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
@@ -3,14 +3,14 @@ import { g as t, h as n, i as r, m as i, t as a } from "./button-qQhINE7z.js";
3
3
  import { t as o } from "./react-Bgs_wQh3.js";
4
4
  import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { h as c, t as l } from "./tooltip-CiJ919pg.js";
6
- import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-DfUux6zJ.js";
6
+ import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-BlMwQJMs.js";
7
7
  import { M as w } from "./select-PQHWLm64.js";
8
8
  import { X as T } from "./dropdown-menu-B12Nf3Zf.js";
9
9
  import { t as E } from "./jsx-runtime-D8btoEHk.js";
10
10
  import { Rt as D, Vt as O, f as k, i as ee } from "./use-restore-focus-BLj45Ibw.js";
11
11
  import { t as A } from "./useEvent-BoN7U38T.js";
12
12
  import { o as te } from "./static-state-CWXd6dYX.js";
13
- import { n as ne, t as re } from "./code-visibility-BQE60zOk.js";
13
+ import { n as ne, t as re } from "./code-visibility-Xv_t4WwT.js";
14
14
  /* empty css */
15
15
  var j = c("sticky-note", [["path", {
16
16
  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-dev453",
3
+ "version": "0.25.3-dev458",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -43,7 +43,6 @@ function completed(
43
43
  runtime_id: "r1",
44
44
  caused_by: null,
45
45
  cell_id: cellId,
46
- code: null,
47
46
  code_fingerprint: "0f71456db2ea83f4",
48
47
  depends_on: {},
49
48
  status: "completed",
@@ -40,7 +40,7 @@ function accepted(cells: Protocol.CellId[]): Protocol.Run {
40
40
  id: "run-1",
41
41
  notebook_id: "n1",
42
42
  runtime_id: "r1",
43
- cells,
43
+ origin: { kind: "cells", cell_ids: cells },
44
44
  status: "queued",
45
45
  outcome: null,
46
46
  started_at: null,
@@ -19,7 +19,6 @@ const queued = {
19
19
  runtime_id: "runtime",
20
20
  caused_by: null,
21
21
  cell_id: "cell",
22
- code: null,
23
22
  code_fingerprint: "fp",
24
23
  depends_on: {},
25
24
  status: "queued",
@@ -257,7 +257,6 @@ function resultRecord(
257
257
  runtime_id: EMBEDDED,
258
258
  caused_by: null,
259
259
  cell_id: cell.id,
260
- code: null,
261
260
  code_fingerprint: cell.code_fingerprint,
262
261
  depends_on: {},
263
262
  status: "completed",
@@ -35,7 +35,7 @@ function run(
35
35
  id,
36
36
  notebook_id: "n1",
37
37
  runtime_id: "r1",
38
- cells,
38
+ origin: { kind: "cells", cell_ids: cells },
39
39
  status,
40
40
  outcome: status === "completed" ? "succeeded" : null,
41
41
  started_at: null,
@@ -46,7 +46,6 @@ function record(
46
46
  run_id: "run-1",
47
47
  runtime_id: "r1",
48
48
  caused_by: null,
49
- code: null,
50
49
  depends_on: {},
51
50
  status: "completed",
52
51
  outcome: { kind: "value", display: null },
@@ -28,7 +28,7 @@ function run(
28
28
  id,
29
29
  notebook_id: "n1",
30
30
  runtime_id: runtimeId,
31
- cells: [],
31
+ origin: { kind: "code", code: "pass" },
32
32
  status,
33
33
  outcome: status === "completed" ? "succeeded" : null,
34
34
  started_at: status === "queued" ? null : MockExecutions.T0,
@@ -111,7 +111,7 @@ describe("output lifetime", () => {
111
111
  id: "missed",
112
112
  notebook_id: "n1",
113
113
  runtime_id: "r1",
114
- cells: [C1],
114
+ origin: { kind: "cells", cell_ids: [C1] },
115
115
  status: "queued",
116
116
  outcome: null,
117
117
  started_at: null,
@@ -39,7 +39,7 @@ function accepted(cells: Protocol.CellId[]): Protocol.Run {
39
39
  id: "run-1",
40
40
  notebook_id: "n1",
41
41
  runtime_id: "r1",
42
- cells,
42
+ origin: { kind: "cells", cell_ids: cells },
43
43
  status: "queued",
44
44
  outcome: null,
45
45
  started_at: null,
@@ -25,7 +25,6 @@ function record(
25
25
  runtime_id: "r1",
26
26
  caused_by: null,
27
27
  cell_id: "c1",
28
- code: null,
29
28
  code_fingerprint: "0f71456db2ea83f4",
30
29
  depends_on: {},
31
30
  status: "completed",
@@ -54,7 +53,7 @@ function run(
54
53
  id,
55
54
  notebook_id: "n1",
56
55
  runtime_id: "r1",
57
- cells,
56
+ origin: { kind: "cells", cell_ids: cells },
58
57
  status,
59
58
  outcome: status === "completed" ? "succeeded" : null,
60
59
  started_at: null,
@@ -110,7 +110,8 @@ function awaited(inputs: CellExecutionInputs, id: Protocol.CellId): boolean {
110
110
  if (
111
111
  run.status !== "completed" &&
112
112
  run.id !== planned &&
113
- run.cells.includes(id)
113
+ run.origin.kind === "cells" &&
114
+ run.origin.cell_ids.includes(id)
114
115
  ) {
115
116
  return true;
116
117
  }
@@ -176,8 +177,8 @@ export function queuedOrRunningCount(inputs: CellExecutionInputs): number {
176
177
  );
177
178
  const named = new Set<Protocol.CellId>(inputs.requested);
178
179
  for (const run of inputs.executions.runs.values()) {
179
- if (run.status !== "completed") {
180
- for (const cellId of run.cells) {
180
+ if (run.status !== "completed" && run.origin.kind === "cells") {
181
+ for (const cellId of run.origin.cell_ids) {
181
182
  named.add(cellId);
182
183
  }
183
184
  }
@@ -818,7 +818,7 @@ describe("IslandsPyodideBridge", () => {
818
818
  id: "run-1",
819
819
  notebook_id: "n1",
820
820
  runtime_id: "r1",
821
- cells: ["c1"],
821
+ origin: { kind: "cells", cell_ids: ["c1"] },
822
822
  status: "queued",
823
823
  outcome: null,
824
824
  started_at: null,
@@ -274,7 +274,7 @@ it("raises the interrupt buffer for a cancelled running run before the worker ta
274
274
  id: "run-1",
275
275
  notebook_id: "n1",
276
276
  runtime_id: "r1",
277
- cells: [],
277
+ origin: { kind: "code", code: "pass" },
278
278
  status: "running",
279
279
  outcome: null,
280
280
  started_at: "2026-10-01T09:20:11Z",
@@ -326,7 +326,7 @@ it.each(["running", "completed", null])(
326
326
  id: "run-1",
327
327
  notebook_id: "n1",
328
328
  runtime_id: "r1",
329
- cells: [],
329
+ origin: { kind: "code", code: "pass" },
330
330
  status: "running",
331
331
  outcome: null,
332
332
  started_at: "2026-10-01T09:20:11Z",
@@ -406,7 +406,7 @@ it("raises the interrupt buffer once a run cancelled while queued starts", async
406
406
  id: "run-1",
407
407
  notebook_id: "n1",
408
408
  runtime_id: "r1",
409
- cells: [],
409
+ origin: { kind: "code", code: "pass" },
410
410
  status: "queued",
411
411
  outcome: null,
412
412
  started_at: null,