@marimo-team/islands 0.25.3-dev438 → 0.25.3-dev439
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.
- package/dist/{ErrorBoundary-Bvtsf3zB.js → ErrorBoundary-B4npV6Uy.js} +1 -1
- package/dist/{chat-ui-ZGXdN6Vr.js → chat-ui-2c_3M6FX.js} +3 -3
- package/dist/{code-visibility-CmfNaZAX.js → code-visibility-Dx3sTl1s.js} +2 -2
- package/dist/{common-i_ykKLxU.js → common-Cx3bd6pm.js} +3 -3
- package/dist/{data-grid-overlay-editor-kj617zpx.js → data-grid-overlay-editor-CqMKHPcR.js} +1 -1
- package/dist/{error-entries-DMgIKuK1.js → error-entries-CNB7O2yS.js} +313 -313
- package/dist/{feedback-button-CGAe5hFZ.js → feedback-button-CUPrIFyj.js} +3 -3
- package/dist/{glide-data-editor-BiU_hF9A.js → glide-data-editor-T1r8b4Cr.js} +3 -3
- package/dist/{globals-jz3DTWzC.js → globals-BweO1Da5.js} +1 -1
- package/dist/{html-to-image-Dopvv40j.js → html-to-image-B0UiwmMu.js} +1 -1
- package/dist/main.js +71 -70
- package/dist/{number-overlay-editor-D3OSLsDB.js → number-overlay-editor-eynzhDoK.js} +1 -1
- package/dist/{process-output-BidrKebE.js → process-output-3Epq3rw6.js} +2 -2
- package/dist/{reveal-component-CnyvRvqy.js → reveal-component-C-ZgAhoP.js} +3 -3
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +1 -0
- package/src/core/executions/__tests__/atoms.test.ts +0 -18
- package/src/core/executions/__tests__/output-lifecycle.test.ts +90 -22
- package/src/core/executions/atoms.ts +51 -65
- package/src/core/notebook/replica/replica.ts +8 -0
|
@@ -3,14 +3,14 @@ import { h as t, t as n } from "./button-qQhINE7z.js";
|
|
|
3
3
|
import { t as r } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { t as a } from "./copy-icon-CDvvlY90.js";
|
|
6
|
-
import { D as o, E as s, F as c, G as l, N as u, Yt as d, en as f, i as p, n as m } from "./error-entries-
|
|
7
|
-
import { n as h, t as ee } from "./globals-
|
|
6
|
+
import { D as o, E as s, F as c, G as l, N as u, Yt as d, en as f, i as p, n as m } from "./error-entries-CNB7O2yS.js";
|
|
7
|
+
import { n as h, t as ee } from "./globals-BweO1Da5.js";
|
|
8
8
|
import { r as g } from "./assertNever-DOTNJ2Y4.js";
|
|
9
9
|
import { t as _ } from "./jsx-runtime-D8btoEHk.js";
|
|
10
10
|
import { Rt as v, St as te, m as y } from "./use-restore-focus-BLj45Ibw.js";
|
|
11
11
|
import { a as ne, i as re, n as ie, r as ae } from "./dialog-rgayPemF.js";
|
|
12
12
|
import { t as oe } from "./useAsyncData-P5-Oovhq.js";
|
|
13
|
-
import { t as se } from "./code-visibility-
|
|
13
|
+
import { t as se } from "./code-visibility-Dx3sTl1s.js";
|
|
14
14
|
//#region src/components/ui/skeleton.tsx
|
|
15
15
|
var b = /* @__PURE__ */ e(r(), 1), x = i(), S = _(), ce = (e) => {
|
|
16
16
|
let n = (0, x.c)(8), r, i;
|
|
@@ -14,7 +14,7 @@ import { t as F } from "./jsx-runtime-D8btoEHk.js";
|
|
|
14
14
|
import { d as ae, r as I } from "./use-restore-focus-BLj45Ibw.js";
|
|
15
15
|
import { t as oe } from "./useEvent-BoN7U38T.js";
|
|
16
16
|
import { n as L, t as se } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
|
|
17
|
-
import { t as ce } from "./ErrorBoundary-
|
|
17
|
+
import { t as ce } from "./ErrorBoundary-B4npV6Uy.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 R, O as z, P as _e, R as ve, S as ye, T as be, _ as xe, a as Se, b as B, c as Ce, d as we, f as V, g as Te, h as Ee, i as De, j as H, k as Oe, l as ke, m as Ae, n as je, o as Me, p as Ne, r as U, s as Pe, t as Fe, u as Ie, v as Le, w as Re, x as ze, y as Be, z as Ve } from "./data-grid-types-DIX_pCco.js";
|
|
19
19
|
//#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
20
20
|
function He(e) {
|
|
@@ -7061,7 +7061,7 @@ function ds(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.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
|
|
7064
|
-
var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-
|
|
7064
|
+
var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-CqMKHPcR.js")), hs = 0;
|
|
7065
7065
|
function gs(e) {
|
|
7066
7066
|
return (0, fs.default)((0, ps.default)((0, ps.default)(e).filter((e) => e.span !== void 0).map((e) => (0, ao.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
|
|
7067
7067
|
}
|
|
@@ -9284,7 +9284,7 @@ function Ys(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.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
|
|
9287
|
-
var Xs = W.lazy(async () => await import("./number-overlay-editor-
|
|
9287
|
+
var Xs = W.lazy(async () => await import("./number-overlay-editor-eynzhDoK.js")), Zs = {
|
|
9288
9288
|
getAccessibilityString: (e) => e.data?.toString() ?? "",
|
|
9289
9289
|
kind: U.Number,
|
|
9290
9290
|
needsHover: (e) => e.hoverEffect === !0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./tooltip-CiJ919pg.js";
|
|
2
2
|
import { St as t } from "./use-restore-focus-BLj45Ibw.js";
|
|
3
|
-
import { r as n } from "./code-visibility-
|
|
3
|
+
import { r as n } from "./code-visibility-Dx3sTl1s.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",
|
|
@@ -9,7 +9,7 @@ import { a as D, i as ne, o as re, r as O, s as k, t as ie } from "./useLifecycl
|
|
|
9
9
|
import { a as ae, c as oe, i as se, n as ce, o as le, r as ue, s as de, t as fe } from "./select-PQHWLm64.js";
|
|
10
10
|
import { J as pe, X as me, ht as he } from "./dropdown-menu-B12Nf3Zf.js";
|
|
11
11
|
import { c as ge, l as _e, n as ve } from "./config-C8TXSDmC.js";
|
|
12
|
-
import { Bt as A, C as j, E as ye, Et as be, F as xe, Ft as Se, Gt as Ce, I as M, Kt as we, Lt as Te, M as Ee, O as De, P as Oe, Pt as ke, Qt as Ae, Rt as je, S as Me, St as Ne, T as Pe, U as Fe, Ut as Ie, Vt as Le, W as Re, Xt as ze, _ as Be, _t as Ve, a as He, dt as Ue, f as We, ft as Ge, gt as Ke, h as qe, ht as Je, jt as Ye, k as Xe, lt as Ze, mt as Qe, nt as $e, o as et, p as tt, pt as nt, qt as rt, rt as it, s as at, tt as ot, ut as st, v as ct, vt as lt, wt as ut, x as dt, yt as ft } from "./error-entries-
|
|
12
|
+
import { Bt as A, C as j, E as ye, Et as be, F as xe, Ft as Se, Gt as Ce, I as M, Kt as we, Lt as Te, M as Ee, O as De, P as Oe, Pt as ke, Qt as Ae, Rt as je, S as Me, St as Ne, T as Pe, U as Fe, Ut as Ie, Vt as Le, W as Re, Xt as ze, _ as Be, _t as Ve, a as He, dt as Ue, f as We, ft as Ge, gt as Ke, h as qe, ht as Je, jt as Ye, k as Xe, lt as Ze, mt as Qe, nt as $e, o as et, p as tt, pt as nt, qt as rt, rt as it, s as at, tt as ot, ut as st, v as ct, vt as lt, wt as ut, x as dt, yt as ft } from "./error-entries-CNB7O2yS.js";
|
|
13
13
|
import { n as pt } from "./assertNever-DOTNJ2Y4.js";
|
|
14
14
|
import { t as mt } from "./react-dom-DdqGVp5N.js";
|
|
15
15
|
import { t as ht } from "./jsx-runtime-D8btoEHk.js";
|
package/dist/main.js
CHANGED
|
@@ -3,20 +3,20 @@ import { _ as a, a as o, d as s, g as c, h as l, i as u, l as d, m as f, n as p,
|
|
|
3
3
|
import { t as y } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as b } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { i as x, n as S, r as C, t as w } from "./copy-icon-CDvvlY90.js";
|
|
6
|
-
import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, L as N, Lt as P, M as F, Mt as I, O as L, Ot as R, P as z, R as B, Rt as ee, St as te, Ut as ne, Vt as re, Wt as ie, X as ae, Z as oe, _ as se, _t as ce, a as le, at as ue, b as de, bt as fe, c as pe, ct as me, dt as he, i as ge, it as _e, j as ve, kt as ye, lt as be, mt as xe, n as Se, o as Ce, ot as we, q as Te, rt as Ee, ut as De, vt as Oe, yt as ke, z as Ae, zt as je } from "./html-to-image-
|
|
6
|
+
import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, L as N, Lt as P, M as F, Mt as I, O as L, Ot as R, P as z, R as B, Rt as ee, St as te, Ut as ne, Vt as re, Wt as ie, X as ae, Z as oe, _ as se, _t as ce, a as le, at as ue, b as de, bt as fe, c as pe, ct as me, dt as he, i as ge, it as _e, j as ve, kt as ye, lt as be, mt as xe, n as Se, o as Ce, ot as we, q as Te, rt as Ee, ut as De, vt as Oe, yt as ke, z as Ae, zt as je } from "./html-to-image-B0UiwmMu.js";
|
|
7
7
|
import { a as Me, f as Ne, h as Pe, i as Fe, m as Ie, n as Le, o as Re, r as ze, t as Be } from "./tooltip-CiJ919pg.js";
|
|
8
8
|
import { D as Ve, E 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-6shN7lEe.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, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mt as Vt, N as Ht, Nt as Ut, O as Wt, On as Gt, Ot as Kt, P as qt, Pt as Jt, Qt as Yt, R as Xt, Rt as Zt, S as Qt, Sn as $t, T as en, Tn as tn, Tt as nn, U as rn, Ut as an, V as on, Vt as sn, W as cn, Wt as ln, X as un, Xt as dn, Y as fn, Yt as pn, Z as mn, Zt as hn, _ as gn, _n, _t as vn, an as yn, at as bn, b as xn, bt as Sn, c as Cn, cn as wn, ct as Tn, d as En, dn as Dn, dt as On, en as kn, f as An, fn as jn, ft as Mn, g as Nn, gn 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, kn as Wn, kt as Gn, ln as Kn, lt as qn, m as Jn, mn as Yn, mt as Xn, nn as Zn, nt as Qn, on as $n, ot as er, p as tr, pn as nr, pt as rr, q as ir, qt as ar, r as or, rn as sr, rt as cr, sn as lr, st as ur, t as dr, tn as fr, tt as pr, u as mr, un as hr, ut as gr, v as _r, vn as vr, vt as yr, w as br, wn as xr, wt as Sr, x as Cr, xn as wr, y as Tr, yn as Er, yt as Dr, z as Or, zt as kr } from "./common-
|
|
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, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mt as Vt, N as Ht, Nt as Ut, O as Wt, On as Gt, Ot as Kt, P as qt, Pt as Jt, Qt as Yt, R as Xt, Rt as Zt, S as Qt, Sn as $t, T as en, Tn as tn, Tt as nn, U as rn, Ut as an, V as on, Vt as sn, W as cn, Wt as ln, X as un, Xt as dn, Y as fn, Yt as pn, Z as mn, Zt as hn, _ as gn, _n, _t as vn, an as yn, at as bn, b as xn, bt as Sn, c as Cn, cn as wn, ct as Tn, d as En, dn as Dn, dt as On, en as kn, f as An, fn as jn, ft as Mn, g as Nn, gn 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, kn as Wn, kt as Gn, ln as Kn, lt as qn, m as Jn, mn as Yn, mt as Xn, nn as Zn, nt as Qn, on as $n, ot as er, p as tr, pn as nr, pt as rr, q as ir, qt as ar, r as or, rn as sr, rt as cr, sn as lr, st as ur, t as dr, tn as fr, tt as pr, u as mr, un as hr, ut as gr, v as _r, vn as vr, vt as yr, w as br, wn as xr, wt as Sr, x as Cr, xn as wr, y as Tr, yn as Er, yt as Dr, z as Or, zt as kr } from "./common-Cx3bd6pm.js";
|
|
10
10
|
import { a as Ar, n as jr, s as Mr, t as Nr } from "./useLifecycle-mKiMNa4V.js";
|
|
11
11
|
import { t as Pr } from "./check-CApwK1fD.js";
|
|
12
12
|
import { A as Fr, C as Ir, D as Lr, M as Rr, O as zr, a as Br, c as Vr, d as Hr, i as Ur, k as Wr, l as Gr, n as Kr, o as qr, r as Jr, s as Yr, t as Xr, w as Zr, x as Qr } from "./select-PQHWLm64.js";
|
|
13
13
|
import { $ as $r, At as ei, B as ti, C as ni, Cn as ri, G as ii, Nt as ai, Q as oi, Sn as si, T as ci, V as li, X as ui, Y as di, Z as fi, _ as pi, a as mi, b as hi, c as gi, f as _i, g as vi, h as yi, i as bi, m as xi, mt as Si, n as Ci, p as wi, r as Ti, rt as Ei, s as Di, t as Oi, v as ki, vt as Ai, w as ji, xn as Mi, y as Ni } from "./dropdown-menu-B12Nf3Zf.js";
|
|
14
14
|
import { c as Pi, i as Fi, l as Ii, o as Li, s as Ri, t as zi } from "./config-C8TXSDmC.js";
|
|
15
|
-
import { At as Bi, B as Vi, Dt as Hi, E as Ui, Ft as Wi, G as Gi, Ht as Ki, J as qi, Jt as Ji, K as Yi, L as Xi, M as Zi, Mt as Qi, Nt as $i, Ot as ea, R as ta, W as na, Wt as ra, X as ia, Y as aa, Yt as oa, Zt as sa, _ as ca, at as la, bt as ua, c as da, ct as fa, d as pa, g as ma, h as ha, it as ga, kt as _a, lt as va, m as ya, p as ba, q as xa, qt as Sa, s as Ca, st as wa, wt as Ta, xt as Ea, z as Da } from "./error-entries-
|
|
16
|
-
import { a as Oa, d as ka, i as Aa, n as ja, o as Ma, r as Na, s as Pa, t as Fa, u as Ia } from "./process-output-
|
|
15
|
+
import { At as Bi, B as Vi, Dt as Hi, E as Ui, Ft as Wi, G as Gi, Ht as Ki, J as qi, Jt as Ji, K as Yi, L as Xi, M as Zi, Mt as Qi, Nt as $i, Ot as ea, R as ta, W as na, Wt as ra, X as ia, Y as aa, Yt as oa, Zt as sa, _ as ca, at as la, bt as ua, c as da, ct as fa, d as pa, g as ma, h as ha, it as ga, kt as _a, lt as va, m as ya, p as ba, q as xa, qt as Sa, s as Ca, st as wa, wt as Ta, xt as Ea, z as Da } from "./error-entries-CNB7O2yS.js";
|
|
16
|
+
import { a as Oa, d as ka, i as Aa, n as ja, o as Ma, r as Na, s as Pa, t as Fa, u as Ia } from "./process-output-3Epq3rw6.js";
|
|
17
17
|
import { t as La } from "./pencil-BC7pOv9g.js";
|
|
18
18
|
import { a as Ra, c as za, d as Ba, f as Va, i as Ha, l as Ua, r as Wa } from "./glide-utils-D1McS0Pn.js";
|
|
19
|
-
import { n as Ga, t as Ka } from "./globals-
|
|
19
|
+
import { n as Ga, t as Ka } from "./globals-BweO1Da5.js";
|
|
20
20
|
import { a as qa, i as Ja, n as Ya, r as Xa, s as Za, t as Qa } from "./assertNever-DOTNJ2Y4.js";
|
|
21
21
|
import { t as $a } from "./react-dom-DdqGVp5N.js";
|
|
22
22
|
import { t as eo } from "./jsx-runtime-D8btoEHk.js";
|
|
@@ -40,10 +40,10 @@ import { n as Zs, t as Qs } from "./esm-Bwp_FHP0.js";
|
|
|
40
40
|
import { p as $s } from "./dist-DpYpG8Yc.js";
|
|
41
41
|
import { t as ec } from "./useAsyncData-P5-Oovhq.js";
|
|
42
42
|
import { n as tc, r as nc, t as rc } from "./useDeepCompareMemoize-CDhinwm7.js";
|
|
43
|
-
import { t as ic } from "./ErrorBoundary-
|
|
43
|
+
import { t as ic } from "./ErrorBoundary-B4npV6Uy.js";
|
|
44
44
|
import { G as ac, W as oc } from "./vega-loader.browser-Co9gYE8Z.js";
|
|
45
45
|
import { a as sc, n as cc } from "./loader-Bin_dutt.js";
|
|
46
|
-
import { a as lc, c as uc, i as dc, l as fc, o as pc, s as mc, t as hc } from "./code-visibility-
|
|
46
|
+
import { a as lc, c as uc, i as dc, l as fc, o as pc, s as mc, t as hc } from "./code-visibility-Dx3sTl1s.js";
|
|
47
47
|
import { t as gc } from "./esm-B9n0caHs.js";
|
|
48
48
|
//#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
49
49
|
var _c = Object.freeze({
|
|
@@ -4644,20 +4644,20 @@ function t_(e) {
|
|
|
4644
4644
|
return e instanceof ng && e_(e.cause) ? e.cause : e instanceof ng && e.cause instanceof ns ? $g : Qg;
|
|
4645
4645
|
}
|
|
4646
4646
|
function n_(e) {
|
|
4647
|
-
let t = Mo({ state: oa.NOT_STARTED }), n = Mg({
|
|
4647
|
+
let t = Mo({ state: oa.NOT_STARTED }), n = Mo(0), r = Mg({
|
|
4648
4648
|
document: Ig,
|
|
4649
4649
|
attachments: Ng,
|
|
4650
4650
|
runtime: Yg,
|
|
4651
4651
|
executions: Jg
|
|
4652
|
-
}),
|
|
4653
|
-
stream:
|
|
4652
|
+
}), i = Mo({
|
|
4653
|
+
stream: r.initial,
|
|
4654
4654
|
retained: null
|
|
4655
|
-
}),
|
|
4656
|
-
let { stream: t, retained: n } = e(
|
|
4655
|
+
}), a = Mo((e) => e(i).stream), o = Mo((e) => {
|
|
4656
|
+
let { stream: t, retained: n } = e(i);
|
|
4657
4657
|
return n ?? t;
|
|
4658
|
-
}),
|
|
4659
|
-
function
|
|
4660
|
-
e.set(
|
|
4658
|
+
}), s = Mo((e) => e(a).phase === "live" && e(t).state === oa.OPEN), l = Mo((e) => e(s) ? e(a).notebook : null), u = Mo((e) => e(a).resources.document.current), d = Mo((e) => e(o).resources.document.current), f = Mo((e) => e(s) ? e(a).resources.attachments : Ng.initial), p = Mo((e) => e(s) ? e(a).resources.runtime : null), m = Mo((e) => e(o).resources.executions), h = Mo((e) => e(m).results), g = Mo(null), _;
|
|
4659
|
+
function v(t) {
|
|
4660
|
+
e.set(i, (e) => {
|
|
4661
4661
|
let { stream: n, retained: r } = e;
|
|
4662
4662
|
return t === n ? e : t.phase === "snapshot" ? {
|
|
4663
4663
|
stream: t,
|
|
@@ -4674,89 +4674,90 @@ function n_(e) {
|
|
|
4674
4674
|
});
|
|
4675
4675
|
});
|
|
4676
4676
|
}
|
|
4677
|
-
function
|
|
4678
|
-
|
|
4677
|
+
function y(n) {
|
|
4678
|
+
n.state === oa.CONNECTING && v(r.resume(e.get(a))), e.set(t, n);
|
|
4679
4679
|
}
|
|
4680
|
-
function
|
|
4681
|
-
e.set(
|
|
4682
|
-
stream:
|
|
4680
|
+
function b(t) {
|
|
4681
|
+
e.set(i, {
|
|
4682
|
+
stream: r.initial,
|
|
4683
4683
|
retained: null
|
|
4684
|
-
}),
|
|
4684
|
+
}), y(t);
|
|
4685
4685
|
}
|
|
4686
4686
|
return {
|
|
4687
4687
|
connectionAtom: t,
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4688
|
+
generationAtom: n,
|
|
4689
|
+
notebookAtom: l,
|
|
4690
|
+
documentAtom: u,
|
|
4691
|
+
shownDocumentAtom: d,
|
|
4692
|
+
backendAtom: g,
|
|
4693
|
+
attachmentsAtom: f,
|
|
4694
|
+
runtimeAtom: p,
|
|
4695
|
+
executionsAtom: m,
|
|
4696
|
+
resultsAtom: h,
|
|
4697
|
+
connect: x,
|
|
4698
|
+
reconnect: async () => _?.reconnect()
|
|
4698
4699
|
};
|
|
4699
|
-
function
|
|
4700
|
-
|
|
4701
|
-
let
|
|
4702
|
-
e.set(
|
|
4703
|
-
let { transport:
|
|
4704
|
-
function
|
|
4705
|
-
|
|
4706
|
-
let
|
|
4700
|
+
function x(t, { onNotification: i }) {
|
|
4701
|
+
_?.end();
|
|
4702
|
+
let o = new AbortController(), { signal: s } = o, l = t.checkHealth ?? (async () => !0);
|
|
4703
|
+
e.set(g, t);
|
|
4704
|
+
let { transport: u } = t, d, f = !1;
|
|
4705
|
+
function p(t) {
|
|
4706
|
+
t === void 0 && v(r.initial);
|
|
4707
|
+
let i = new Dg(u, {
|
|
4707
4708
|
types: Xg,
|
|
4708
|
-
cursor:
|
|
4709
|
-
signal:
|
|
4710
|
-
onStatus: (
|
|
4711
|
-
|
|
4709
|
+
cursor: t,
|
|
4710
|
+
signal: s,
|
|
4711
|
+
onStatus: (t) => {
|
|
4712
|
+
t === "connecting" ? y({ state: oa.CONNECTING }) : t === "connected" && (e.set(n, (e) => e + 1), y({ state: oa.OPEN }));
|
|
4712
4713
|
}
|
|
4713
4714
|
});
|
|
4714
|
-
|
|
4715
|
-
if (!
|
|
4715
|
+
i.subscribe((e) => h(i, e), (e) => {
|
|
4716
|
+
if (!s.aborted && i === d) {
|
|
4716
4717
|
c.warn("Notebook stream stopped", e);
|
|
4717
|
-
let
|
|
4718
|
-
|
|
4718
|
+
let t = t_(e);
|
|
4719
|
+
t === $g ? m(i) : y(t);
|
|
4719
4720
|
}
|
|
4720
|
-
}),
|
|
4721
|
+
}), d = i;
|
|
4721
4722
|
}
|
|
4722
|
-
function
|
|
4723
|
-
e.close(),
|
|
4723
|
+
function m(e) {
|
|
4724
|
+
e.close(), b($g);
|
|
4724
4725
|
}
|
|
4725
|
-
function
|
|
4726
|
-
if (
|
|
4727
|
-
let e = Zg.safeParse(
|
|
4728
|
-
e.success ?
|
|
4726
|
+
function h(t, o) {
|
|
4727
|
+
if (o.event === "marimo") {
|
|
4728
|
+
let e = Zg.safeParse(o.data);
|
|
4729
|
+
e.success ? i(e.data.marimo) : (c.error("Failed to decode notebook message", o), m(t));
|
|
4729
4730
|
} else try {
|
|
4730
|
-
|
|
4731
|
+
v(r.reduce(e.get(a), o)), o.event === "reset" && e.set(n, (e) => e + 1);
|
|
4731
4732
|
} catch (e) {
|
|
4732
|
-
c.error("Failed to apply notebook event", e),
|
|
4733
|
+
c.error("Failed to apply notebook event", e), m(t);
|
|
4733
4734
|
return;
|
|
4734
4735
|
}
|
|
4735
4736
|
}
|
|
4736
|
-
let
|
|
4737
|
+
let x = {
|
|
4737
4738
|
end: () => {
|
|
4738
|
-
|
|
4739
|
+
s.aborted || (o.abort(), _ === x && (_ = void 0, e.set(g, null)), b({ state: oa.NOT_STARTED }));
|
|
4739
4740
|
},
|
|
4740
4741
|
reconnect: async () => {
|
|
4741
|
-
if (!(
|
|
4742
|
-
|
|
4742
|
+
if (!(s.aborted || f || d?.status !== "closed")) {
|
|
4743
|
+
f = !0, y({ state: oa.CONNECTING });
|
|
4743
4744
|
try {
|
|
4744
|
-
let t = await
|
|
4745
|
-
if (
|
|
4745
|
+
let t = await l();
|
|
4746
|
+
if (s.aborted) return;
|
|
4746
4747
|
if (!t) {
|
|
4747
|
-
|
|
4748
|
+
y(Qg);
|
|
4748
4749
|
return;
|
|
4749
4750
|
}
|
|
4750
|
-
|
|
4751
|
+
p(e.get(a).phase === "snapshot" ? void 0 : d.cursor ?? void 0);
|
|
4751
4752
|
} catch (e) {
|
|
4752
|
-
|
|
4753
|
+
s.aborted || (c.error("Notebook health check failed", e), y(Qg));
|
|
4753
4754
|
} finally {
|
|
4754
|
-
|
|
4755
|
+
f = !1;
|
|
4755
4756
|
}
|
|
4756
4757
|
}
|
|
4757
4758
|
}
|
|
4758
4759
|
};
|
|
4759
|
-
return
|
|
4760
|
+
return _ = x, y({ state: oa.CONNECTING }), p(), x.end;
|
|
4760
4761
|
}
|
|
4761
4762
|
}
|
|
4762
4763
|
//#endregion
|
|
@@ -12489,7 +12490,7 @@ var lD = (e) => {
|
|
|
12489
12490
|
output: t
|
|
12490
12491
|
};
|
|
12491
12492
|
} };
|
|
12492
|
-
} }, hD = J.lazy(() => import("./chat-ui-
|
|
12493
|
+
} }, hD = J.lazy(() => import("./chat-ui-2c_3M6FX.js").then((e) => ({ default: e.Chatbot }))), gD = V(W({
|
|
12493
12494
|
id: K(),
|
|
12494
12495
|
role: H([
|
|
12495
12496
|
"system",
|
|
@@ -12958,7 +12959,7 @@ function mO(e, t) {
|
|
|
12958
12959
|
}
|
|
12959
12960
|
//#endregion
|
|
12960
12961
|
//#region src/plugins/impl/DataEditorPlugin.tsx
|
|
12961
|
-
var hO = J.lazy(() => import("./glide-data-editor-
|
|
12962
|
+
var hO = J.lazy(() => import("./glide-data-editor-T1r8b4Cr.js").then((e) => e.t)), gO = XE("marimo-data-editor", { cssStyles: [yD, bD] }).withData(W({
|
|
12962
12963
|
initialValue: W({ edits: V(W({
|
|
12963
12964
|
rowIdx: G(),
|
|
12964
12965
|
columnId: K(),
|
|
@@ -32681,7 +32682,7 @@ function _U(e) {
|
|
|
32681
32682
|
}
|
|
32682
32683
|
//#endregion
|
|
32683
32684
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
32684
|
-
var vU = J.lazy(() => import("./reveal-component-
|
|
32685
|
+
var vU = J.lazy(() => import("./reveal-component-C-ZgAhoP.js")), yU = (e) => {
|
|
32685
32686
|
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = To(zs), s = a === "read" || o, c = To(ua) > 1, [l, u] = (0, J.useState)(null), d;
|
|
32686
32687
|
t[0] !== i || t[1] !== n ? (d = hz(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
32687
32688
|
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-Bgs_wQh3.js";
|
|
3
|
-
import { a as n } from "./glide-data-editor-
|
|
3
|
+
import { a as n } from "./glide-data-editor-T1r8b4Cr.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-
|
|
1
|
+
import { T as e } from "./html-to-image-B0UiwmMu.js";
|
|
2
2
|
import { h as t } from "./tooltip-CiJ919pg.js";
|
|
3
|
-
import { $ as n, Q as r } from "./error-entries-
|
|
3
|
+
import { $ as n, Q as r } from "./error-entries-CNB7O2yS.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,15 +3,15 @@ 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 { $ as u, Cn as d, Q as f, bn as p, cn as m, et as h, i as g, l as _, n as v, r as y, t as b, u as x, yn as S } from "./common-
|
|
6
|
+
import { $ as u, Cn as d, Q as f, bn as p, cn as m, et as h, i as g, l as _, n as v, r as y, t as b, u as x, yn as S } from "./common-Cx3bd6pm.js";
|
|
7
7
|
import { M as C } from "./select-PQHWLm64.js";
|
|
8
8
|
import { X as ee } from "./dropdown-menu-B12Nf3Zf.js";
|
|
9
|
-
import { Nt as w } from "./error-entries-
|
|
9
|
+
import { Nt as w } from "./error-entries-CNB7O2yS.js";
|
|
10
10
|
import { t as T } from "./jsx-runtime-D8btoEHk.js";
|
|
11
11
|
import { Rt as E, Vt as D, f as O, i as k } from "./use-restore-focus-BLj45Ibw.js";
|
|
12
12
|
import { t as A } from "./useEvent-BoN7U38T.js";
|
|
13
13
|
import { o as te } from "./static-state-CWXd6dYX.js";
|
|
14
|
-
import { n as ne, t as re } from "./code-visibility-
|
|
14
|
+
import { n as ne, t as re } from "./code-visibility-Dx3sTl1s.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
|
@@ -248,6 +248,7 @@ export const MockExecutions = {
|
|
|
248
248
|
// Settable, so a test can close the connection or give the replica a
|
|
249
249
|
// backend to command.
|
|
250
250
|
connectionAtom: atom<ConnectionStatus>({ state: ConnectionState.OPEN }),
|
|
251
|
+
generationAtom: atom(1),
|
|
251
252
|
backendAtom: atom<NotebookBackend | null>(null),
|
|
252
253
|
notebookAtom: atom<Protocol.Notebook | null>(MockExecutions.notebook()),
|
|
253
254
|
documentAtom,
|
|
@@ -233,24 +233,6 @@ describe("acceptRun", () => {
|
|
|
233
233
|
expect(statusOf(store)).toBe("idle");
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
-
it("keeps waiting while the stream is between a reset and its snapshot", () => {
|
|
237
|
-
const { store, replica } = shown();
|
|
238
|
-
const made = request(store, [C1]);
|
|
239
|
-
acceptRun(store, made, run([C1]));
|
|
240
|
-
|
|
241
|
-
const notebook = store.get(replica.notebookAtom);
|
|
242
|
-
store.set(replica.notebookAtom, null);
|
|
243
|
-
const stream = store.get(replica.executionsAtom);
|
|
244
|
-
store.set(replica.executionsAtom, { ...stream });
|
|
245
|
-
store.set(replica.notebookAtom, notebook);
|
|
246
|
-
expect(requested(store)).toEqual([C1]);
|
|
247
|
-
expect(statusOf(store)).toBe("queued");
|
|
248
|
-
|
|
249
|
-
store.set(replica.executionsAtom, withRuns(stream, [run([C1])]));
|
|
250
|
-
expect(requested(store)).toEqual([]);
|
|
251
|
-
expect(statusOf(store)).toBe("queued");
|
|
252
|
-
});
|
|
253
|
-
|
|
254
236
|
it("drops the request once the replica shows another notebook", () => {
|
|
255
237
|
const { store, replica } = shown();
|
|
256
238
|
const made = request(store, [C1]);
|
|
@@ -14,7 +14,16 @@ import {
|
|
|
14
14
|
} from "@/core/notebook/replica/__tests__/fixtures";
|
|
15
15
|
import { activeNotebookReplicaAtom } from "@/core/session/active-notebook";
|
|
16
16
|
import { Deferred } from "@/utils/Deferred";
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
acceptRun,
|
|
19
|
+
cellExecutionInputsAtom,
|
|
20
|
+
cellOutputAtom,
|
|
21
|
+
clearCellOutputs,
|
|
22
|
+
isCurrent,
|
|
23
|
+
observeCellMessage,
|
|
24
|
+
requestRun,
|
|
25
|
+
withdrawRequest,
|
|
26
|
+
} from "../atoms";
|
|
18
27
|
import { scratchOutputView } from "../output";
|
|
19
28
|
|
|
20
29
|
const C1 = cellId("c1");
|
|
@@ -24,12 +33,16 @@ const value = (data: string): Protocol.Outcome => ({
|
|
|
24
33
|
});
|
|
25
34
|
|
|
26
35
|
async function setup() {
|
|
27
|
-
|
|
36
|
+
interface Attempt {
|
|
37
|
+
message: Parameters<NotebookTransport>[1]["message"];
|
|
38
|
+
drop(): void;
|
|
39
|
+
}
|
|
40
|
+
let opened = new Deferred<Attempt>();
|
|
28
41
|
const backend = fakeBackend({
|
|
29
42
|
transport: ({ signal }, handlers) =>
|
|
30
43
|
new Promise<void>((resolve) => {
|
|
31
44
|
handlers.open();
|
|
32
|
-
|
|
45
|
+
opened.resolve({ message: handlers.message, drop: resolve });
|
|
33
46
|
signal.addEventListener("abort", () => resolve(), { once: true });
|
|
34
47
|
}),
|
|
35
48
|
});
|
|
@@ -38,7 +51,14 @@ async function setup() {
|
|
|
38
51
|
store.set(activeNotebookReplicaAtom, replica);
|
|
39
52
|
const disconnect = replica.connect(backend, { onNotification: vi.fn() });
|
|
40
53
|
onTestFinished(disconnect);
|
|
41
|
-
|
|
54
|
+
let attempt = await opened.promise;
|
|
55
|
+
const message: Attempt["message"] = (frame) => attempt.message(frame);
|
|
56
|
+
const reconnect = async () => {
|
|
57
|
+
opened = new Deferred<Attempt>();
|
|
58
|
+
attempt.drop();
|
|
59
|
+
await vi.advanceTimersByTimeAsync(2000);
|
|
60
|
+
attempt = await opened.promise;
|
|
61
|
+
};
|
|
42
62
|
let cursor = 100;
|
|
43
63
|
const emit = (execution: Protocol.Execution) =>
|
|
44
64
|
message({ event: "execution", id: String(++cursor), data: { execution } });
|
|
@@ -65,24 +85,76 @@ async function setup() {
|
|
|
65
85
|
records.forEach(emit);
|
|
66
86
|
message({ event: "ready", id: String(++cursor), data: {} });
|
|
67
87
|
};
|
|
68
|
-
return {
|
|
88
|
+
return {
|
|
89
|
+
store,
|
|
90
|
+
replica,
|
|
91
|
+
emit,
|
|
92
|
+
remove,
|
|
93
|
+
snapshot,
|
|
94
|
+
message,
|
|
95
|
+
reconnect,
|
|
96
|
+
};
|
|
69
97
|
}
|
|
70
98
|
|
|
71
99
|
describe("output lifetime", () => {
|
|
72
|
-
it("
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
100
|
+
it.each(["replay", "snapshot", "in-place reset"] as const)(
|
|
101
|
+
"expires editor marks on %s for the same notebook",
|
|
102
|
+
async (recovery) => {
|
|
103
|
+
vi.useFakeTimers();
|
|
104
|
+
onTestFinished(() => {
|
|
105
|
+
vi.useRealTimers();
|
|
106
|
+
});
|
|
107
|
+
const { store, snapshot, message, reconnect } = await setup();
|
|
108
|
+
const result = MockExecutions.completed(C1, { outcome: value("A") });
|
|
109
|
+
snapshot([result]);
|
|
110
|
+
const run: Protocol.Run = {
|
|
111
|
+
id: "missed",
|
|
112
|
+
notebook_id: "n1",
|
|
113
|
+
runtime_id: "r1",
|
|
114
|
+
cells: [C1],
|
|
115
|
+
status: "queued",
|
|
116
|
+
outcome: null,
|
|
117
|
+
started_at: null,
|
|
118
|
+
completed_at: null,
|
|
119
|
+
};
|
|
120
|
+
const pending = requestRun(store, [C1])!;
|
|
121
|
+
acceptRun(store, pending, run);
|
|
122
|
+
const late = requestRun(store, [C1])!;
|
|
123
|
+
observeCellMessage(store, {
|
|
124
|
+
cell_id: C1,
|
|
125
|
+
status: "disabled-transitively",
|
|
126
|
+
timestamp: 1,
|
|
127
|
+
output: null,
|
|
128
|
+
console: null,
|
|
129
|
+
});
|
|
130
|
+
clearCellOutputs(store, [C1]);
|
|
131
|
+
expect(store.get(cellExecutionInputsAtom).blocked.has(C1)).toBe(true);
|
|
132
|
+
expect(store.get(cellOutputAtom(C1))).toBeNull();
|
|
133
|
+
|
|
134
|
+
if (recovery !== "in-place reset") {
|
|
135
|
+
await reconnect();
|
|
136
|
+
}
|
|
137
|
+
if (recovery !== "replay") {
|
|
138
|
+
snapshot([result]);
|
|
139
|
+
} else {
|
|
140
|
+
message({ event: "ready", id: "120", data: {} });
|
|
141
|
+
}
|
|
142
|
+
const { requested, blocked } = store.get(cellExecutionInputsAtom);
|
|
143
|
+
expect([...requested]).toEqual([]);
|
|
144
|
+
expect([...blocked]).toEqual([]);
|
|
145
|
+
expect(store.get(cellOutputAtom(C1))?.data).toBe("A");
|
|
146
|
+
expect(isCurrent(store, late)).toBe(false);
|
|
147
|
+
|
|
148
|
+
const current = requestRun(store, [C1])!;
|
|
149
|
+
acceptRun(store, late, run);
|
|
150
|
+
withdrawRequest(store, pending);
|
|
151
|
+
expect(isCurrent(store, current)).toBe(true);
|
|
152
|
+
expect([...store.get(cellExecutionInputsAtom).requested]).toEqual([C1]);
|
|
153
|
+
withdrawRequest(store, current);
|
|
154
|
+
expect([...store.get(cellExecutionInputsAtom).requested]).toEqual([]);
|
|
155
|
+
},
|
|
156
|
+
);
|
|
78
157
|
|
|
79
|
-
message({ event: "reset", data: {} });
|
|
80
|
-
expect(store.get(cellOutputAtom(C1))).toBeNull();
|
|
81
|
-
snapshot([result]);
|
|
82
|
-
expect(store.get(cellOutputAtom(C1))).toBeNull();
|
|
83
|
-
disconnect();
|
|
84
|
-
expect(store.get(cellOutputAtom(C1))).toBeNull();
|
|
85
|
-
});
|
|
86
158
|
it("keeps a changed display visible after its execution retires", async () => {
|
|
87
159
|
const { store, replica, emit, remove, snapshot } = await setup();
|
|
88
160
|
const result = MockExecutions.completed(C1, { outcome: value("A") });
|
|
@@ -121,14 +193,10 @@ describe("output lifetime", () => {
|
|
|
121
193
|
};
|
|
122
194
|
emit(completed);
|
|
123
195
|
expect(store.get(cellOutputAtom(C1))).toBeNull();
|
|
124
|
-
snapshot([completed]);
|
|
125
|
-
expect(store.get(cellOutputAtom(C1))).toBeNull();
|
|
126
196
|
remove(completed);
|
|
127
197
|
const next = MockExecutions.running(C1);
|
|
128
198
|
emit(next);
|
|
129
199
|
expect(store.get(cellOutputAtom(C1))).toBeNull();
|
|
130
|
-
snapshot([next]);
|
|
131
|
-
expect(store.get(cellOutputAtom(C1))).toBeNull();
|
|
132
200
|
emit({ ...next, outcome: value("A") });
|
|
133
201
|
expect(store.get(cellOutputAtom(C1))?.data).toBe("A");
|
|
134
202
|
});
|