@marimo-team/islands 0.25.3-dev4 → 0.25.3-dev5
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/{ConnectedDataExplorerComponent-CNSxdKyJ.js → ConnectedDataExplorerComponent-CNMliVzw.js} +1 -1
- package/dist/{ErrorBoundary-CuU5CuVr.js → ErrorBoundary-BiZWOrv4.js} +1 -1
- package/dist/{abnfDiagram-VCTEODGH-DQDjNXt3.js → abnfDiagram-VCTEODGH-D-Ez91gV.js} +2 -2
- package/dist/{any-language-editor-B9REGlD9.js → any-language-editor-DZ_YTVus.js} +1 -1
- package/dist/{architectureDiagram-5GKGNRK7-Nmls7Wxn.js → architectureDiagram-5GKGNRK7-CTpcNtO8.js} +1 -1
- package/dist/{chat-ui-BDpymeoe.js → chat-ui-0lKdOoQ3.js} +436 -437
- package/dist/{chunk-IMKFNOWR-CoIFEo-1.js → chunk-IMKFNOWR-DGxi-zeo.js} +1 -1
- package/dist/{chunk-SHT3W25Y-lHiGx3ZC.js → chunk-SHT3W25Y-CV9J3rAB.js} +1 -1
- package/dist/{chunk-SVP7TREG-BvsHIrY_.js → chunk-SVP7TREG-BL-9Fqgg.js} +1 -1
- package/dist/{chunk-TICWLB2K-BC8YIm_n.js → chunk-TICWLB2K-Cu_XMjDM.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-Bt98lkkv.js → classDiagram-ZZMXUADV-BXXV13Hq.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-D9bfbcC3.js → classDiagram-v2-VYDZK3BY-B7FXJ1Cp.js} +2 -2
- package/dist/{code-visibility-Lu0dkrFO.js → code-visibility-CW5_8ZOI.js} +14 -14
- package/dist/{common-DiWGWDIM.js → common-mzWw4FdI.js} +6413 -6254
- package/dist/{cynefinDiagram-5FMLGOSQ-CgWra7wt.js → cynefinDiagram-5FMLGOSQ-CH96rwba.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-CFZ8-35c.js → dagre-GXQ25YYZ-BD3PmpFY.js} +1 -1
- package/dist/{data-grid-overlay-editor-ga7ytgbj.js → data-grid-overlay-editor-CJmehSdc.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-lCNQrW7d.js → diagram-S7CK7UJ4-BsSJJldB.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CQPQ6pP_.js → diagram-UQ7AKVKN-muQtNZc4.js} +1 -1
- package/dist/{diagram-VX7I27RA-Cf3b0llz.js → diagram-VX7I27RA-CdhuZAqR.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Bt4QLrpn.js → diagram-Z3DM3KII-BD8mXjOj.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-D3NAyPFY.js → ebnfDiagram-PWID7BFC-BIN1sweE.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Tlu09_Nm.js → erDiagram-RLTQ6QDP-Ctp5cfoN.js} +1 -1
- package/dist/{error-banner-Da600cwz.js → error-banner-D-WCIiMt.js} +10 -5
- package/dist/{cells-C8iCYvLU.js → error-entries-DSvFWT_M.js} +2262 -2206
- package/dist/{feedback-button-DQA-pzxi.js → feedback-button-BcT1FBud.js} +115 -116
- package/dist/{flowDiagram-HODETNUW-CAYbpJmV.js → flowDiagram-HODETNUW-3EfLrlFb.js} +2 -2
- package/dist/{formats-BGh2thRc.js → formats-CeOmU1MU.js} +1 -1
- package/dist/{glide-data-editor-Bv75MH6g.js → glide-data-editor-XckatD0j.js} +3 -3
- package/dist/{globals-EDQGFIvi.js → globals-jRrLCkrP.js} +1 -1
- package/dist/{html-to-image-CZY1pIZH.js → html-to-image-B8s5SgGm.js} +23 -23
- package/dist/{infoDiagram-27XIBGKW-XrDxhr0x.js → infoDiagram-27XIBGKW-DipQoHxl.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-CD1muzov.js → ishikawaDiagram-5VMMS53U-DgFMjSGz.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-Dg9W142_.js → kanban-definition-UXKFOSKX-w1ACVjgl.js} +1 -1
- package/dist/main.js +164 -163
- package/dist/{mermaid-CiAXjLpA.js → mermaid-CHo49Yv-.js} +33 -33
- package/dist/{mindmap-definition-YA3MSWOX-DgCidgYJ.js → mindmap-definition-YA3MSWOX-CrT0KSfX.js} +1 -1
- package/dist/{number-overlay-editor-BCP3MxhC.js → number-overlay-editor-pZx8dUDV.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-coOYYKB6.js → pegDiagram-XKGWAZYB-BqvywNJA.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BnXTc3bj.js → pieDiagram-E7YTZNPT-BfxJ_XCc.js} +1 -1
- package/dist/{process-output-e4jj9Ijt.js → process-output-CKRXyszb.js} +3 -3
- package/dist/{railroadDiagram-O6MQD6OU-B28-u83n.js → railroadDiagram-O6MQD6OU-8vFLVTPu.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-CdYCTMu0.js → requirementDiagram-BXWQKSXE-a_MxGvxe.js} +1 -1
- package/dist/{reveal-component-DO5BJB9l.js → reveal-component-79ez8-D5.js} +4 -4
- package/dist/{sequenceDiagram-WJ2MYXX4-CM3aRAe_.js → sequenceDiagram-WJ2MYXX4-CXFMnxGh.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-DOZUMVj8.js → stateDiagram-D77RDMKH-DQeA_CwI.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-CISYxma6.js → stateDiagram-v2-MP3YSRHH-BxxQucm1.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-BkSppxp8.js → swimlanes-42K2YHIH-Do6L-cYg.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-c8G5pGxC.js → swimlanesDiagram-VR7AAH4N-DUzPvSVU.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-CaMQayqK.js → timeline-definition-24CTP7MA-D3c46WM5.js} +1 -1
- package/dist/{toDate-BNJf01u1.js → toDate-vIXljnsr.js} +39 -38
- package/dist/{vega-component-DG29TAB7.js → vega-component-DTG6zxaY.js} +3 -3
- package/dist/{vennDiagram-4TSXK5OY-CF8pfaK3.js → vennDiagram-4TSXK5OY-BSZD8JcZ.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-dGPu39d-.js → wardleyDiagram-VM6X3IG4-48cUWkfA.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-CP6-9q56.js → xychartDiagram-S5SC5T6Z-CswYgYeu.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/Output.tsx +5 -2
- package/src/components/editor/chrome/panels/error-panel.tsx +1 -0
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +167 -0
- package/src/components/editor/chrome/wrapper/footer-item.tsx +32 -24
- package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +82 -0
- package/src/components/editor/chrome/wrapper/footer.tsx +2 -0
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +434 -0
- package/src/components/editor/errors/send-error-report-button.tsx +66 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +21 -5
- package/src/components/editor/output/MarimoTracebackOutput.tsx +9 -0
- package/src/components/editor/output/__tests__/ansi-reduce.test.ts +18 -0
- package/src/components/editor/output/ansi-reduce.ts +6 -0
- package/src/core/attachments/state.ts +21 -0
- package/src/core/cells/__tests__/cells.test.ts +52 -0
- package/src/core/cells/__tests__/error-report.test.ts +89 -0
- package/src/core/cells/__tests__/session.test.ts +34 -0
- package/src/core/cells/error-report.ts +55 -0
- package/src/core/cells/session.ts +9 -0
- package/src/core/islands/__tests__/bootstrap.test.ts +26 -0
- package/src/core/islands/bootstrap.ts +1 -0
- package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +193 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +9 -0
- package/dist/error-entries-CzoYkIQZ.js +0 -56
package/dist/main.js
CHANGED
|
@@ -3,24 +3,24 @@ 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-
|
|
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-B8s5SgGm.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,
|
|
8
|
+
import { $ as me, At as he, B as ge, Bt as _e, D as ve, Dt as ye, E as be, Ht as xe, It as Se, J as Ce, Jt as we, Kt as Te, M as Ee, Mt as De, N as Oe, Nt as ke, O as Ae, Ot as je, Q as Me, R as Ne, S as Pe, Tt as Fe, V as Ie, Vt as Le, W as Re, Wt as ze, X as Be, Xt as Ve, Y as He, Yt as Ue, _ as We, _n as Ge, _t as Ke, an as qe, b as Je, cn as Ye, ct as Xe, dn as Ze, dt as Qe, en as $e, f as et, ft as tt, g as nt, gn as rt, gt as it, h as at, it as ot, j as st, jt as ct, k as lt, kt as ut, ln as dt, m as ft, mn as pt, nn as mt, o as ht, p as gt, pn as _t, pt as vt, qt as yt, rn as bt, rt as xt, s as St, tn as Ct, u as wt, un as Tt, v as Et, xt as Dt, y as Ot, z as kt } from "./error-entries-DSvFWT_M.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-
|
|
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-mzWw4FdI.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
|
-
import {
|
|
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-
|
|
15
|
+
import { C as ua, _ as da, a as fa, b as pa, c as ma, f as ha, h as ga, m as _a, p as va, s as ya, u as ba, x as xa, y as Sa } from "./toDate-vIXljnsr.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-CKRXyszb.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-
|
|
19
|
-
import { n as Ua, t as Wa } from "./globals-
|
|
18
|
+
import { n as Va, t as Ha } from "./ErrorBoundary-BiZWOrv4.js";
|
|
19
|
+
import { n as Ua, t as Wa } from "./globals-jRrLCkrP.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";
|
|
23
|
-
import { i as Uo, n as Wo, r as Go, t as Ko } from "./error-banner-
|
|
23
|
+
import { i as Uo, n as Wo, r as Go, t as Ko } from "./error-banner-D-WCIiMt.js";
|
|
24
24
|
import { a as qo, i as Jo, n as Yo, t as Xo } from "./label-BDKF3Afc.js";
|
|
25
25
|
import { a as Zo } from "./hasIn-o2Us0uVx.js";
|
|
26
26
|
import { n as Qo, t as $o } from "./pick-CJeoxYOS.js";
|
|
@@ -36,10 +36,10 @@ import { n as Os } from "./dist-CrSP_H1M.js";
|
|
|
36
36
|
import { i as ks } from "./dist-BorMD-uX.js";
|
|
37
37
|
import { n as As, t as js } from "./esm-AMFssoNp.js";
|
|
38
38
|
import { t as Ms } from "./useAsyncData-Deh5kszT.js";
|
|
39
|
-
import { i as Ns, n as Ps, r as Fs } from "./formats-
|
|
39
|
+
import { i as Ns, n as Ps, r as Fs } from "./formats-CeOmU1MU.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-
|
|
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-CW5_8ZOI.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
|
|
@@ -2903,7 +2903,7 @@ function hp(e) {
|
|
|
2903
2903
|
}
|
|
2904
2904
|
//#endregion
|
|
2905
2905
|
//#region ../node_modules/.pnpm/react-hook-form@7.54.2_react@19.3.0/node_modules/react-hook-form/dist/index.esm.mjs
|
|
2906
|
-
var X = y(), gp = /* @__PURE__ */ e(
|
|
2906
|
+
var X = y(), gp = /* @__PURE__ */ e(Dt(), 1), _p = va(), vp = (e) => e.type === "checkbox", yp = (e) => e instanceof Date, bp = (e) => e == null, xp = (e) => typeof e == "object", Sp = (e) => !bp(e) && !Array.isArray(e) && xp(e) && !yp(e), Cp = (e) => Sp(e) && e.target ? vp(e.target) ? e.target.checked : e.target.value : e, wp = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Tp = (e, t) => e.has(wp(t)), Ep = (e) => {
|
|
2907
2907
|
let t = e.constructor && e.constructor.prototype;
|
|
2908
2908
|
return Sp(t) && t.hasOwnProperty("isPrototypeOf");
|
|
2909
2909
|
}, Dp = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
@@ -4321,7 +4321,7 @@ var Dh = (e) => {
|
|
|
4321
4321
|
let a;
|
|
4322
4322
|
t[0] === n ? a = t[1] : (a = c("stroke-[1.8px]", n), t[0] = n, t[1] = a);
|
|
4323
4323
|
let o;
|
|
4324
|
-
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(
|
|
4324
|
+
t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, Y.jsx)(rt, { className: a }), t[2] = a, t[3] = o);
|
|
4325
4325
|
let s;
|
|
4326
4326
|
return t[4] !== i || t[5] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(pe, {
|
|
4327
4327
|
content: i,
|
|
@@ -4684,7 +4684,7 @@ function Yh({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
4684
4684
|
name: n,
|
|
4685
4685
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(Sh, { children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
4686
4686
|
className: c("flex flex-row gap-2", a ? "items-start" : "items-center"),
|
|
4687
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(wh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
4687
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(wh, { children: /* @__PURE__ */ (0, Y.jsx)(Ie, {
|
|
4688
4688
|
"data-testid": "marimo-plugin-data-frames-boolean-checkbox",
|
|
4689
4689
|
checked: e.value,
|
|
4690
4690
|
onCheckedChange: e.onChange,
|
|
@@ -5304,18 +5304,18 @@ function pg(e) {
|
|
|
5304
5304
|
return typeof e == "function";
|
|
5305
5305
|
}
|
|
5306
5306
|
function mg(e) {
|
|
5307
|
-
return
|
|
5307
|
+
return He(e) && (fg(e.render) || pg(e.initialize));
|
|
5308
5308
|
}
|
|
5309
5309
|
function hg(e) {
|
|
5310
5310
|
return typeof e == "function" || mg(e);
|
|
5311
5311
|
}
|
|
5312
5312
|
function gg(e) {
|
|
5313
|
-
return
|
|
5313
|
+
return He(e) && hg(e.default);
|
|
5314
5314
|
}
|
|
5315
5315
|
var _g = /* @__PURE__ */ new Set(), vg = /* @__PURE__ */ new WeakMap();
|
|
5316
5316
|
function yg(e, t) {
|
|
5317
5317
|
if (gg(e)) return e.default;
|
|
5318
|
-
if (!
|
|
5318
|
+
if (!He(e) || e.default !== void 0) return null;
|
|
5319
5319
|
let n = fg(e.render) ? e.render : void 0, r = pg(e.initialize) ? e.initialize : void 0;
|
|
5320
5320
|
if (n === void 0 && r === void 0) return null;
|
|
5321
5321
|
let i = vg.get(e);
|
|
@@ -5328,8 +5328,8 @@ function yg(e, t) {
|
|
|
5328
5328
|
return vg.set(e, a), a;
|
|
5329
5329
|
}
|
|
5330
5330
|
function bg(e, t) {
|
|
5331
|
-
let n = "https://anywidget.dev/en/afm/", r =
|
|
5332
|
-
if (
|
|
5331
|
+
let n = "https://anywidget.dev/en/afm/", r = He(e) && Ce(e, "render"), i = He(e) && Ce(e, "initialize");
|
|
5332
|
+
if (He(e) && e.default !== void 0) return /* @__PURE__ */ Error(`Anywidget module at ${t} has an invalid default export. Expected a factory function or an object with \`render\` or \`initialize\`. See ${n}`);
|
|
5333
5333
|
if (r || i) {
|
|
5334
5334
|
let e = [r ? "`render`" : null, i ? "`initialize`" : null].filter(Boolean).join(" and "), a = [r ? "render" : null, i ? "initialize" : null].filter((e) => e !== null), o = `export default { ${a.join(", ")} }`, s = a.length === 1 ? `export function ${a[0]}` : "named export function ...";
|
|
5335
5335
|
return /* @__PURE__ */ Error(`Anywidget module at ${t} uses named exports (${e}). Per the AFM spec, use a default export instead: \`${o}\` (not \`${s}\`). See ${n}`);
|
|
@@ -5341,7 +5341,7 @@ function bg(e, t) {
|
|
|
5341
5341
|
function xg(e) {
|
|
5342
5342
|
return e.startsWith(".") ? e.slice(1) : e;
|
|
5343
5343
|
}
|
|
5344
|
-
function Sg(e, t =
|
|
5344
|
+
function Sg(e, t = ya()) {
|
|
5345
5345
|
let n = Cg(e, t);
|
|
5346
5346
|
if (!n) return e;
|
|
5347
5347
|
let r = Oa(n);
|
|
@@ -5398,8 +5398,8 @@ var Ag = class {
|
|
|
5398
5398
|
}
|
|
5399
5399
|
async #t(e, t = {}) {
|
|
5400
5400
|
if (!(Tg(e) || t.kernelAuthored === !0 && /^(https?:|data:)/.test(e))) throw Error(`Refusing to load anywidget module from untrusted URL: ${String(e)}`);
|
|
5401
|
-
let n =
|
|
5402
|
-
return
|
|
5401
|
+
let n = fa(e).toString();
|
|
5402
|
+
return ma() && (n = Sg(n)), import(
|
|
5403
5403
|
/* @vite-ignore */
|
|
5404
5404
|
n
|
|
5405
5405
|
);
|
|
@@ -5506,7 +5506,7 @@ var Ng = class e {
|
|
|
5506
5506
|
#r;
|
|
5507
5507
|
#i;
|
|
5508
5508
|
#a = new AbortController();
|
|
5509
|
-
#o = new
|
|
5509
|
+
#o = new pa();
|
|
5510
5510
|
#s = /* @__PURE__ */ new Set();
|
|
5511
5511
|
#c = /* @__PURE__ */ new Map();
|
|
5512
5512
|
#l;
|
|
@@ -5746,7 +5746,7 @@ function Vg(e) {
|
|
|
5746
5746
|
//#endregion
|
|
5747
5747
|
//#region src/plugins/impl/anywidget/registry.ts
|
|
5748
5748
|
function Hg() {
|
|
5749
|
-
let e = as.get(
|
|
5749
|
+
let e = as.get(Sa).mode;
|
|
5750
5750
|
return e === "edit" || e === "present";
|
|
5751
5751
|
}
|
|
5752
5752
|
var Ug = new class {
|
|
@@ -5816,7 +5816,7 @@ async function Wg(e, t) {
|
|
|
5816
5816
|
return;
|
|
5817
5817
|
}
|
|
5818
5818
|
e.createModel(n, (e) => {
|
|
5819
|
-
let t =
|
|
5819
|
+
let t = ma() ? {
|
|
5820
5820
|
sendUpdate: async () => void 0,
|
|
5821
5821
|
sendCustomMessage: async () => void 0
|
|
5822
5822
|
} : {
|
|
@@ -5826,7 +5826,7 @@ async function Wg(e, t) {
|
|
|
5826
5826
|
return;
|
|
5827
5827
|
}
|
|
5828
5828
|
let { state: r, buffers: i, bufferPaths: a } = Bg(t);
|
|
5829
|
-
await
|
|
5829
|
+
await ye().sendModelValue({
|
|
5830
5830
|
modelId: n,
|
|
5831
5831
|
message: {
|
|
5832
5832
|
method: "update",
|
|
@@ -5841,7 +5841,7 @@ async function Wg(e, t) {
|
|
|
5841
5841
|
s.debug(`[Model] sendCustomMessage suppressed for model=${n} (signal aborted)`);
|
|
5842
5842
|
return;
|
|
5843
5843
|
}
|
|
5844
|
-
await
|
|
5844
|
+
await ye().sendModelValue({
|
|
5845
5845
|
modelId: n,
|
|
5846
5846
|
message: {
|
|
5847
5847
|
method: "custom",
|
|
@@ -5878,7 +5878,7 @@ async function Wg(e, t) {
|
|
|
5878
5878
|
default: vi(r);
|
|
5879
5879
|
}
|
|
5880
5880
|
}
|
|
5881
|
-
|
|
5881
|
+
Qe(Ug, "WIDGET_REGISTRY");
|
|
5882
5882
|
//#endregion
|
|
5883
5883
|
//#region src/components/ui/navigation.tsx
|
|
5884
5884
|
var Gg = J.forwardRef((e, t) => {
|
|
@@ -6211,7 +6211,7 @@ function f_(e) {
|
|
|
6211
6211
|
}
|
|
6212
6212
|
function p_(e) {
|
|
6213
6213
|
let t = new URL(globalThis.location.href);
|
|
6214
|
-
return
|
|
6214
|
+
return ba({
|
|
6215
6215
|
href: e,
|
|
6216
6216
|
queryParams: t.search,
|
|
6217
6217
|
keys: [os.filePath]
|
|
@@ -6245,7 +6245,7 @@ var h_ = class e {
|
|
|
6245
6245
|
let n = this.entries.get(e);
|
|
6246
6246
|
n === void 0 ? this.entries.set(e, {
|
|
6247
6247
|
objectId: e,
|
|
6248
|
-
value:
|
|
6248
|
+
value: xe(t, this),
|
|
6249
6249
|
elements: /* @__PURE__ */ new Set([t])
|
|
6250
6250
|
}) : n.elements.add(t);
|
|
6251
6251
|
}
|
|
@@ -6310,8 +6310,8 @@ var h_ = class e {
|
|
|
6310
6310
|
detail: { objectId: t }
|
|
6311
6311
|
})));
|
|
6312
6312
|
}
|
|
6313
|
-
}, g_ = h_.INSTANCE, __ = new
|
|
6314
|
-
await
|
|
6313
|
+
}, g_ = h_.INSTANCE, __ = new xt("function-call-result", async (e, t) => {
|
|
6314
|
+
await ye().sendFunctionRequest({
|
|
6315
6315
|
functionCallId: e,
|
|
6316
6316
|
...t
|
|
6317
6317
|
});
|
|
@@ -9295,10 +9295,10 @@ function oS(e) {
|
|
|
9295
9295
|
//#region src/plugins/core/registerReactComponent.tsx
|
|
9296
9296
|
var sS = 3, cS = 150;
|
|
9297
9297
|
function lS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
9298
|
-
let [c, l] = (0, J.useState)(n), [u, d] = (0, J.useState)(r()), { theme: f } = ds(), [p, m] = (0, J.useState)(() => t.validator.safeParse(
|
|
9298
|
+
let [c, l] = (0, J.useState)(n), [u, d] = (0, J.useState)(r()), { theme: f } = ds(), [p, m] = (0, J.useState)(() => t.validator.safeParse(Le(e))), [h, g] = (0, J.useState)(0);
|
|
9299
9299
|
(0, J.useImperativeHandle)(i, () => ({
|
|
9300
9300
|
reset: () => {
|
|
9301
|
-
d(r()), m(t.validator.safeParse(
|
|
9301
|
+
d(r()), m(t.validator.safeParse(Le(e))), g((e) => e + 1);
|
|
9302
9302
|
},
|
|
9303
9303
|
setChildren: (e) => {
|
|
9304
9304
|
l(e);
|
|
@@ -9307,7 +9307,7 @@ function lS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
9307
9307
|
t.detail.element === e && d(t.detail.value);
|
|
9308
9308
|
}), (0, J.useEffect)(() => {
|
|
9309
9309
|
let n = new MutationObserver((n) => {
|
|
9310
|
-
n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(
|
|
9310
|
+
n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(Le(e)));
|
|
9311
9311
|
});
|
|
9312
9312
|
return n.observe(e, { attributes: !0 }), () => {
|
|
9313
9313
|
n.disconnect();
|
|
@@ -9325,10 +9325,10 @@ function lS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
9325
9325
|
let { input: t, output: a } = i;
|
|
9326
9326
|
n[r] = async (...n) => {
|
|
9327
9327
|
bs(n.length <= 1, `Plugin functions only supports a single argument. Called ${r}`);
|
|
9328
|
-
let i =
|
|
9328
|
+
let i = ma(), o = ze.findElementThroughShadowDOMs(e)?.id, c = o ? ze.parse(o) : null;
|
|
9329
9329
|
if (c && !i) {
|
|
9330
|
-
let e = as.get(
|
|
9331
|
-
if (
|
|
9330
|
+
let e = as.get(at), t = e.cellRuntime[c], n = e.cellData[c];
|
|
9331
|
+
if (he({
|
|
9332
9332
|
executionTime: t.runElapsedTimeMs ?? n.lastExecutionTime,
|
|
9333
9333
|
status: t.status,
|
|
9334
9334
|
errored: t.errored,
|
|
@@ -9375,7 +9375,7 @@ function lS({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
9375
9375
|
functions: v
|
|
9376
9376
|
}) })
|
|
9377
9377
|
})
|
|
9378
|
-
}) }) : aS(p.error, Ts.mapValues(e.dataset, (e) => typeof e == "string" ?
|
|
9378
|
+
}) }) : aS(p.error, Ts.mapValues(e.dataset, (e) => typeof e == "string" ? _e(e) : e));
|
|
9379
9379
|
}
|
|
9380
9380
|
var uS = J.forwardRef(lS), dS = /* @__PURE__ */ new Map(), fS = "__custom_marimo_element__";
|
|
9381
9381
|
function pS(e) {
|
|
@@ -9410,7 +9410,7 @@ function pS(e) {
|
|
|
9410
9410
|
return !1;
|
|
9411
9411
|
}
|
|
9412
9412
|
reset() {
|
|
9413
|
-
this.dispatchEvent(wa(
|
|
9413
|
+
this.dispatchEvent(wa(_e(this.dataset.initialValue), this)), this.rerender();
|
|
9414
9414
|
}
|
|
9415
9415
|
rerender() {
|
|
9416
9416
|
this.pluginRef.current?.reset();
|
|
@@ -9431,7 +9431,7 @@ function pS(e) {
|
|
|
9431
9431
|
hostElement: this,
|
|
9432
9432
|
plugin: e,
|
|
9433
9433
|
ref: this.pluginRef,
|
|
9434
|
-
getInitialValue: () =>
|
|
9434
|
+
getInitialValue: () => xe(this, h_.INSTANCE),
|
|
9435
9435
|
children: this.getChildren()
|
|
9436
9436
|
}) })
|
|
9437
9437
|
}));
|
|
@@ -9502,7 +9502,7 @@ function vS() {
|
|
|
9502
9502
|
inputListener = a.NOOP;
|
|
9503
9503
|
init() {
|
|
9504
9504
|
if (this.initialized) return;
|
|
9505
|
-
let e =
|
|
9505
|
+
let e = Te.parseOrThrow(this);
|
|
9506
9506
|
this.inputListener = (n) => {
|
|
9507
9507
|
e !== null && n.detail.element === this.firstElementChild && (g_.has(e) || g_.registerInstance(e, t), g_.broadcastValueUpdate(t, e, n.detail.value));
|
|
9508
9508
|
};
|
|
@@ -9523,14 +9523,14 @@ function vS() {
|
|
|
9523
9523
|
}
|
|
9524
9524
|
connectedCallback() {
|
|
9525
9525
|
if (this.init(), this.initialized) {
|
|
9526
|
-
let e =
|
|
9526
|
+
let e = Te.parseOrThrow(this), t = this.firstElementChild;
|
|
9527
9527
|
g_.registerInstance(e, t), document.addEventListener(Ca.TYPE, this.inputListener);
|
|
9528
9528
|
}
|
|
9529
9529
|
}
|
|
9530
9530
|
disconnectedCallback() {
|
|
9531
9531
|
if (this.initialized) {
|
|
9532
9532
|
document.removeEventListener(Ca.TYPE, this.inputListener);
|
|
9533
|
-
let e =
|
|
9533
|
+
let e = Te.parseOrThrow(this);
|
|
9534
9534
|
g_.removeInstance(e, this.firstElementChild);
|
|
9535
9535
|
}
|
|
9536
9536
|
}
|
|
@@ -9539,7 +9539,7 @@ function vS() {
|
|
|
9539
9539
|
hS(e) ? e.reset() : s.error("[marimo-ui-element] first child must have a reset method");
|
|
9540
9540
|
}
|
|
9541
9541
|
static get observedAttributes() {
|
|
9542
|
-
return [
|
|
9542
|
+
return [Ue];
|
|
9543
9543
|
}
|
|
9544
9544
|
attributeChangedCallback(e, t, n) {
|
|
9545
9545
|
if (this.initialized && e === "random-id" && t !== n) {
|
|
@@ -9553,16 +9553,16 @@ function vS() {
|
|
|
9553
9553
|
}
|
|
9554
9554
|
function yS(e) {
|
|
9555
9555
|
if (!e) return null;
|
|
9556
|
-
if (e.nodeName === _S) return
|
|
9556
|
+
if (e.nodeName === _S) return Te.parseOrThrow(e);
|
|
9557
9557
|
let t = e.parentElement;
|
|
9558
|
-
return t?.nodeName === _S ?
|
|
9558
|
+
return t?.nodeName === _S ? Te.parseOrThrow(t) : null;
|
|
9559
9559
|
}
|
|
9560
9560
|
function bS(e) {
|
|
9561
9561
|
return e.tagName === _S;
|
|
9562
9562
|
}
|
|
9563
9563
|
//#endregion
|
|
9564
9564
|
//#region src/components/editor/renderers/vertical-layout/sidebar/state.ts
|
|
9565
|
-
var xS =
|
|
9565
|
+
var xS = $e({ isOpen: !0 }, (e, t) => {
|
|
9566
9566
|
if (!t) return e;
|
|
9567
9567
|
switch (t.type) {
|
|
9568
9568
|
case "toggle": return {
|
|
@@ -9970,7 +9970,7 @@ var LS = (e) => {
|
|
|
9970
9970
|
e !== "indeterminate" && r(e);
|
|
9971
9971
|
}, t[0] = r, t[1] = a);
|
|
9972
9972
|
let o = a, s = (0, J.useId)(), c;
|
|
9973
|
-
t[2] !== i.disabled || t[3] !== s || t[4] !== o || t[5] !== n ? (c = /* @__PURE__ */ (0, Y.jsx)(
|
|
9973
|
+
t[2] !== i.disabled || t[3] !== s || t[4] !== o || t[5] !== n ? (c = /* @__PURE__ */ (0, Y.jsx)(Ie, {
|
|
9974
9974
|
"data-testid": "marimo-plugin-checkbox",
|
|
9975
9975
|
checked: n,
|
|
9976
9976
|
onCheckedChange: o,
|
|
@@ -10067,7 +10067,7 @@ var LS = (e) => {
|
|
|
10067
10067
|
output: t
|
|
10068
10068
|
};
|
|
10069
10069
|
} };
|
|
10070
|
-
} }, US = J.lazy(() => import("./chat-ui-
|
|
10070
|
+
} }, US = J.lazy(() => import("./chat-ui-0lKdOoQ3.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-
|
|
10536
|
+
var HC = J.lazy(() => import("./glide-data-editor-XckatD0j.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(),
|
|
@@ -10958,9 +10958,9 @@ function hw(e) {
|
|
|
10958
10958
|
//#endregion
|
|
10959
10959
|
//#region src/components/editor/cell/useAddCell.ts
|
|
10960
10960
|
function gw() {
|
|
10961
|
-
let e = (0, X.c)(4), t = ns(cs), n =
|
|
10961
|
+
let e = (0, X.c)(4), t = ns(cs), n = Ee(), { createNewCell: r } = Ot(), i;
|
|
10962
10962
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
10963
|
-
e.includes("alt") &&
|
|
10963
|
+
e.includes("alt") && Oe({
|
|
10964
10964
|
autoInstantiate: t,
|
|
10965
10965
|
createNewCell: r,
|
|
10966
10966
|
fromCellId: n
|
|
@@ -12231,7 +12231,7 @@ var vw = [_w({
|
|
|
12231
12231
|
borderBottom: "2px solid var(--cm-reactive-reference-border-color)"
|
|
12232
12232
|
},
|
|
12233
12233
|
".mo-cm-reactive-reference-hover": { cursor: "pointer" }
|
|
12234
|
-
})], bw = [
|
|
12234
|
+
})], bw = [Re(), gs.lineWrapping], xw = [Ds(), gs.lineWrapping], Sw = [Os(), gs.lineWrapping];
|
|
12235
12235
|
function Cw(e) {
|
|
12236
12236
|
switch (e) {
|
|
12237
12237
|
case "sql": return xw;
|
|
@@ -12315,7 +12315,7 @@ var Tw = (e) => {
|
|
|
12315
12315
|
}), t[3] = r, t[4] = a), a;
|
|
12316
12316
|
}, Ew = (e) => {
|
|
12317
12317
|
let t = (0, X.c)(9), n = e.hidden ? "Show code" : "Hide code", r = e.hidden ? "Show code" : "Hide code", i;
|
|
12318
|
-
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(
|
|
12318
|
+
t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, Y.jsx)(Ze, {
|
|
12319
12319
|
size: 14,
|
|
12320
12320
|
strokeWidth: 1.5
|
|
12321
12321
|
}) : /* @__PURE__ */ (0, Y.jsx)(nr, {
|
|
@@ -12370,7 +12370,7 @@ var kw = (e) => {
|
|
|
12370
12370
|
let t = (0, X.c)(5), { text: n, tooltip: r } = e, i;
|
|
12371
12371
|
t[0] === r ? i = t[1] : (i = r && /* @__PURE__ */ (0, Y.jsx)(pe, {
|
|
12372
12372
|
content: r,
|
|
12373
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12373
|
+
children: /* @__PURE__ */ (0, Y.jsx)(dt, { className: "w-3 h-3 mt-0.5" })
|
|
12374
12374
|
}), t[0] = r, t[1] = i);
|
|
12375
12375
|
let a;
|
|
12376
12376
|
return t[2] !== i || t[3] !== n ? (a = /* @__PURE__ */ (0, Y.jsxs)("h2", {
|
|
@@ -12576,7 +12576,7 @@ var kw = (e) => {
|
|
|
12576
12576
|
let { field: t } = e;
|
|
12577
12577
|
return /* @__PURE__ */ (0, Y.jsxs)(Sh, {
|
|
12578
12578
|
className: c("flex flex-row items-center gap-2", i),
|
|
12579
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(Ch, { children: r }), /* @__PURE__ */ (0, Y.jsx)(wh, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
12579
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ch, { children: r }), /* @__PURE__ */ (0, Y.jsx)(wh, { children: /* @__PURE__ */ (0, Y.jsx)(Ie, {
|
|
12580
12580
|
checked: t.value ?? a ?? !1,
|
|
12581
12581
|
onCheckedChange: t.onChange,
|
|
12582
12582
|
className: "w-4 h-4"
|
|
@@ -12745,7 +12745,7 @@ var kw = (e) => {
|
|
|
12745
12745
|
open: o,
|
|
12746
12746
|
onOpenChange: s,
|
|
12747
12747
|
children: [/* @__PURE__ */ (0, Y.jsx)(ki, { children: /* @__PURE__ */ (0, Y.jsx)(Si, { placeholder: "Select an option" }) }), /* @__PURE__ */ (0, Y.jsx)(Ei, { children: /* @__PURE__ */ (0, Y.jsx)(Oi, { children: Rt.map((e) => {
|
|
12748
|
-
let t =
|
|
12748
|
+
let t = Ke[e], n = e === "string" ? "categorical" : e;
|
|
12749
12749
|
return /* @__PURE__ */ (0, Y.jsx)(Ci, {
|
|
12750
12750
|
value: e,
|
|
12751
12751
|
className: "flex flex-col items-start justify-center",
|
|
@@ -12868,7 +12868,7 @@ var kw = (e) => {
|
|
|
12868
12868
|
};
|
|
12869
12869
|
function Qw(e) {
|
|
12870
12870
|
if (e.name.trim() === "") return null;
|
|
12871
|
-
let t =
|
|
12871
|
+
let t = Ke[e.type];
|
|
12872
12872
|
return /* @__PURE__ */ (0, Y.jsx)(Ci, {
|
|
12873
12873
|
value: e.name,
|
|
12874
12874
|
children: /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
@@ -13315,7 +13315,7 @@ var CT = () => {
|
|
|
13315
13315
|
p,
|
|
13316
13316
|
/* @__PURE__ */ (0, Y.jsxs)("p", {
|
|
13317
13317
|
className: "text-xs",
|
|
13318
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
13318
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(dt, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
|
|
13319
13319
|
})
|
|
13320
13320
|
] })]
|
|
13321
13321
|
}), e[12] = m) : m = e[12];
|
|
@@ -13608,7 +13608,7 @@ var zT = "marimo:charts:v2", BT = W({
|
|
|
13608
13608
|
tabName: U().transform((e) => e),
|
|
13609
13609
|
chartType: U().transform((e) => e),
|
|
13610
13610
|
config: LT
|
|
13611
|
-
}), VT = G($a([U().transform((e) => e), G(BT)])), HT = new
|
|
13611
|
+
}), VT = G($a([U().transform((e) => e), G(BT)])), HT = new Se(zT, VT, () => []), UT = {
|
|
13612
13612
|
getItem: (e) => {
|
|
13613
13613
|
try {
|
|
13614
13614
|
let t = HT.get(e);
|
|
@@ -13623,7 +13623,7 @@ var zT = "marimo:charts:v2", BT = W({
|
|
|
13623
13623
|
removeItem: (e) => {
|
|
13624
13624
|
HT.remove(e);
|
|
13625
13625
|
}
|
|
13626
|
-
}, WT =
|
|
13626
|
+
}, WT = Ct(zT, /* @__PURE__ */ new Map(), UT);
|
|
13627
13627
|
function GT(e, t) {
|
|
13628
13628
|
let n = Mi(t);
|
|
13629
13629
|
return e === 0 ? `${n} Chart` : `${n} Chart ${e + 1}`;
|
|
@@ -13875,7 +13875,7 @@ var eE = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13875
13875
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsxs)(jn, {
|
|
13876
13876
|
value: "data",
|
|
13877
13877
|
className: "w-1/2 h-6",
|
|
13878
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
13878
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(_t, { className: "w-4 h-4 mr-2" }), "Data"]
|
|
13879
13879
|
}), t[10] = f) : f = t[10];
|
|
13880
13880
|
let p;
|
|
13881
13881
|
t[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, Y.jsxs)(kn, {
|
|
@@ -13883,7 +13883,7 @@ var eE = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
|
|
|
13883
13883
|
children: [f, /* @__PURE__ */ (0, Y.jsxs)(jn, {
|
|
13884
13884
|
value: "style",
|
|
13885
13885
|
className: "w-1/2 h-6",
|
|
13886
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
13886
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(qe, { className: "w-4 h-4 mr-2" }), "Style"]
|
|
13887
13887
|
})]
|
|
13888
13888
|
}), t[11] = p) : p = t[11];
|
|
13889
13889
|
let m;
|
|
@@ -13938,7 +13938,7 @@ function aE(e) {
|
|
|
13938
13938
|
//#endregion
|
|
13939
13939
|
//#region src/components/data-table/hooks/use-panel-ownership.ts
|
|
13940
13940
|
function oE(e, t) {
|
|
13941
|
-
let n = (0, X.c)(16), r = ns(D_), { focusCell: i } =
|
|
13941
|
+
let n = (0, X.c)(16), r = ns(D_), { focusCell: i } = st(), a = Ee(), [o, c] = is(T_), [l, u] = is(w_), [d, f] = is(E_), p = sE(e, t);
|
|
13942
13942
|
!t && r && (s.error("CellId is not found, defaulting to fixed mode"), r = !1);
|
|
13943
13943
|
let m = (e) => l === p && d && e === o, h = a === t, g = l && cE(l, t);
|
|
13944
13944
|
r && h && l !== p && !g && u(p);
|
|
@@ -14030,7 +14030,7 @@ function gE({ stats: e, dataType: t, locale: n }) {
|
|
|
14030
14030
|
children: [
|
|
14031
14031
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
14032
14032
|
className: "text-xs min-w-[60px] capitalize",
|
|
14033
|
-
children:
|
|
14033
|
+
children: Fe(e, t)
|
|
14034
14034
|
}),
|
|
14035
14035
|
/* @__PURE__ */ (0, Y.jsx)("span", {
|
|
14036
14036
|
className: "text-xs font-bold text-muted-foreground tracking-wide",
|
|
@@ -14072,9 +14072,9 @@ function vE(e, t) {
|
|
|
14072
14072
|
});
|
|
14073
14073
|
}
|
|
14074
14074
|
var yE = (e) => {
|
|
14075
|
-
let t = (0, X.c)(10), { chartCode: n } = e, r = ns(cs), i =
|
|
14075
|
+
let t = (0, X.c)(10), { chartCode: n } = e, r = ns(cs), i = Ee(), { createNewCell: a } = Ot(), o;
|
|
14076
14076
|
t[0] !== r || t[1] !== a || t[2] !== i ? (o = (e) => {
|
|
14077
|
-
e.includes("alt") &&
|
|
14077
|
+
e.includes("alt") && Oe({
|
|
14078
14078
|
autoInstantiate: r,
|
|
14079
14079
|
createNewCell: a,
|
|
14080
14080
|
fromCellId: i
|
|
@@ -14134,7 +14134,7 @@ function bE({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
|
|
|
14134
14134
|
className: "gap-1",
|
|
14135
14135
|
disabled: f === 0,
|
|
14136
14136
|
onClick: () => a.toggleAllColumnsVisible(!0),
|
|
14137
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14137
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ze, { className: "w-3 h-3" }), "Show all"]
|
|
14138
14138
|
})
|
|
14139
14139
|
}), /* @__PURE__ */ (0, Y.jsx)(pe, {
|
|
14140
14140
|
content: "Hide all columns",
|
|
@@ -14217,7 +14217,7 @@ function xE({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
14217
14217
|
onClick: (e) => {
|
|
14218
14218
|
e.preventDefault(), e.stopPropagation(), t.toggleVisibility(!t.getIsVisible());
|
|
14219
14219
|
},
|
|
14220
|
-
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(
|
|
14220
|
+
children: t.getIsVisible() ? /* @__PURE__ */ (0, Y.jsx)(Ze, {
|
|
14221
14221
|
className: "h-3 w-3",
|
|
14222
14222
|
strokeWidth: 2.5
|
|
14223
14223
|
}) : /* @__PURE__ */ (0, Y.jsx)(nr, {
|
|
@@ -14310,7 +14310,7 @@ var SE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14310
14310
|
title: "Select/unselect the current row",
|
|
14311
14311
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
14312
14312
|
className: "flex items-center gap-1.5",
|
|
14313
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
14313
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(Ie, {
|
|
14314
14314
|
id: d,
|
|
14315
14315
|
checked: o,
|
|
14316
14316
|
onCheckedChange: v,
|
|
@@ -14386,7 +14386,7 @@ var SE = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
|
14386
14386
|
});
|
|
14387
14387
|
if (n === 0) return /* @__PURE__ */ (0, Y.jsx)(TE, {
|
|
14388
14388
|
kind: "info",
|
|
14389
|
-
Icon:
|
|
14389
|
+
Icon: dt,
|
|
14390
14390
|
message: "No rows selected"
|
|
14391
14391
|
});
|
|
14392
14392
|
if (!m) return /* @__PURE__ */ (0, Y.jsx)(jr, {
|
|
@@ -14714,8 +14714,8 @@ function zE(e, t) {
|
|
|
14714
14714
|
var BE = (e) => {
|
|
14715
14715
|
let t = (0, X.c)(13), { isLazy: n, children: r, preload: i, host: a } = e, o, s, c, l;
|
|
14716
14716
|
if (t[0] !== a || t[1] !== n || t[2] !== i) {
|
|
14717
|
-
let e = a.closest(`[${
|
|
14718
|
-
l = e ?
|
|
14717
|
+
let e = a.closest(`[${we}]`);
|
|
14718
|
+
l = e ? Te.parse(e) : null, o = a.closest(`[${Ue}]`)?.getAttribute(Ue), s = J.useState, c = n && !i && !RE(l, o), t[0] = a, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = l;
|
|
14719
14719
|
} else o = t[3], s = t[4], c = t[5], l = t[6];
|
|
14720
14720
|
let [u, d] = s(c);
|
|
14721
14721
|
if (u) {
|
|
@@ -14724,7 +14724,7 @@ var BE = (e) => {
|
|
|
14724
14724
|
zE(l, o), d(!1);
|
|
14725
14725
|
}, t[7] = o, t[8] = l, t[9] = e) : e = t[9];
|
|
14726
14726
|
let n;
|
|
14727
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(
|
|
14727
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)(bt, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
|
|
14728
14728
|
let r;
|
|
14729
14729
|
return t[11] === e ? r = t[12] : (r = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
14730
14730
|
className: "flex h-20 items-center justify-center",
|
|
@@ -14739,7 +14739,7 @@ var BE = (e) => {
|
|
|
14739
14739
|
return r;
|
|
14740
14740
|
}, VE = (0, J.memo)((e) => {
|
|
14741
14741
|
let t = (0, X.c)(119), n;
|
|
14742
|
-
t[0] === e.host ? n = t[1] : (n =
|
|
14742
|
+
t[0] === e.host ? n = t[1] : (n = yt(e.host), t[0] = e.host, t[1] = n);
|
|
14743
14743
|
let r = n, i = e.search, a = e.setValue, o;
|
|
14744
14744
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = [], t[2] = o) : o = t[2];
|
|
14745
14745
|
let [c, l] = (0, J.useState)(o), u;
|
|
@@ -14846,7 +14846,7 @@ var BE = (e) => {
|
|
|
14846
14846
|
t[66] === se ? ce = t[67] : (ce = [se], t[66] = se, t[67] = ce), (0, J.useEffect)(oe, ce);
|
|
14847
14847
|
let V;
|
|
14848
14848
|
t[68] === e ? V = t[69] : (V = async () => {
|
|
14849
|
-
let t =
|
|
14849
|
+
let t = ma();
|
|
14850
14850
|
return e.totalRows === 0 || !e.showColumnSummaries || t ? {
|
|
14851
14851
|
data: null,
|
|
14852
14852
|
stats: {},
|
|
@@ -14878,7 +14878,7 @@ var BE = (e) => {
|
|
|
14878
14878
|
if (k) {
|
|
14879
14879
|
s.error(k);
|
|
14880
14880
|
let e;
|
|
14881
|
-
t[82] === k ? e = t[83] : (e = !
|
|
14881
|
+
t[82] === k ? e = t[83] : (e = !ma() && /* @__PURE__ */ (0, Y.jsxs)(Ps, {
|
|
14882
14882
|
variant: "destructive",
|
|
14883
14883
|
className: "mb-2",
|
|
14884
14884
|
children: [/* @__PURE__ */ (0, Y.jsx)(Ns, { children: "Error" }), /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
@@ -14917,8 +14917,8 @@ var BE = (e) => {
|
|
|
14917
14917
|
cellId: r,
|
|
14918
14918
|
maxHeight: e.maxHeight
|
|
14919
14919
|
}), t[86] = r, t[87] = ue, t[88] = y, t[89] = g, t[90] = ae, t[91] = d, t[92] = e, t[93] = p, t[94] = ne, t[95] = re, t[96] = c, t[97] = _e, t[98] = ve, t[99] = ye, t[100] = be, t[101] = xe, t[102] = Se, t[103] = ge, t[104] = Ce) : Ce = t[104];
|
|
14920
|
-
let we = Ce,
|
|
14921
|
-
t[105] !== r || t[106] !== we || t[107] !== O?.rows || t[108] !== y || t[109] !== e.fieldTypes || t[110] !== e.get_data_url || t[111] !== e.rowHeaders || t[112] !== e.showChartBuilder || t[113] !== e.totalColumns || t[114] !== e.totalRows ? (
|
|
14920
|
+
let we = Ce, Te;
|
|
14921
|
+
t[105] !== r || t[106] !== we || t[107] !== O?.rows || t[108] !== y || t[109] !== e.fieldTypes || t[110] !== e.get_data_url || t[111] !== e.rowHeaders || t[112] !== e.showChartBuilder || t[113] !== e.totalColumns || t[114] !== e.totalRows ? (Te = e.showChartBuilder ? /* @__PURE__ */ (0, Y.jsx)(eE, {
|
|
14922
14922
|
displayHeader: y,
|
|
14923
14923
|
onCloseChartBuilder: () => b(!1),
|
|
14924
14924
|
data: O?.rows || [],
|
|
@@ -14929,9 +14929,9 @@ var BE = (e) => {
|
|
|
14929
14929
|
fieldTypes: e.fieldTypes,
|
|
14930
14930
|
rowHeaders: e.rowHeaders,
|
|
14931
14931
|
cellId: r
|
|
14932
|
-
}) : we, t[105] = r, t[106] = we, t[107] = O?.rows, t[108] = y, t[109] = e.fieldTypes, t[110] = e.get_data_url, t[111] = e.rowHeaders, t[112] = e.showChartBuilder, t[113] = e.totalColumns, t[114] = e.totalRows, t[115] =
|
|
14933
|
-
let
|
|
14934
|
-
return t[116] !== me || t[117] !==
|
|
14932
|
+
}) : we, t[105] = r, t[106] = we, t[107] = O?.rows, t[108] = y, t[109] = e.fieldTypes, t[110] = e.get_data_url, t[111] = e.rowHeaders, t[112] = e.showChartBuilder, t[113] = e.totalColumns, t[114] = e.totalRows, t[115] = Te) : Te = t[115];
|
|
14933
|
+
let Ee;
|
|
14934
|
+
return t[116] !== me || t[117] !== Te ? (Ee = /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [me, Te] }), t[116] = me, t[117] = Te, t[118] = Ee) : Ee = t[118], Ee;
|
|
14935
14935
|
});
|
|
14936
14936
|
VE.displayName = "LoadingDataTableComponent";
|
|
14937
14937
|
var HE = (e) => {
|
|
@@ -14947,7 +14947,7 @@ var HE = (e) => {
|
|
|
14947
14947
|
});
|
|
14948
14948
|
}, t[0] = w, t[1] = T, t[2] = ve) : ve = t[2];
|
|
14949
14949
|
let ye = ve, { locale: be } = Jo(), [xe, Se] = (0, J.useState)(0), { isPanelOpen: Ce, isAnyPanelOpen: we, togglePanel: Te, panelType: Ee, setPanelType: De } = oE(_e, pe), Oe;
|
|
14950
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (Oe =
|
|
14950
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (Oe = ma(), t[3] = Oe) : Oe = t[3];
|
|
14951
14951
|
let ke = Oe, Ae;
|
|
14952
14952
|
bb0: {
|
|
14953
14953
|
if (!D) {
|
|
@@ -15529,7 +15529,7 @@ var sD = class {
|
|
|
15529
15529
|
fullWidth: s,
|
|
15530
15530
|
children: _
|
|
15531
15531
|
}), t[20] = s, t[21] = u, t[22] = n, t[23] = _, t[24] = v) : v = t[24], v;
|
|
15532
|
-
}, uD = J.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
15532
|
+
}, uD = J.lazy(() => import("./ConnectedDataExplorerComponent-CNMliVzw.js")), dD = wS("marimo-data-explorer").withData(W({
|
|
15533
15533
|
label: U().nullish(),
|
|
15534
15534
|
data: U()
|
|
15535
15535
|
})).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(uD, {
|
|
@@ -15541,7 +15541,7 @@ var sD = class {
|
|
|
15541
15541
|
too_many_values: !1
|
|
15542
15542
|
})), hD = (e) => {
|
|
15543
15543
|
let t = (0, X.c)(4), { type: n } = e, r;
|
|
15544
|
-
t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, Y.jsx)(ku, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(ju, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(oi, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(li, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(
|
|
15544
|
+
t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, Y.jsx)(ku, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, Y.jsx)(ju, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, Y.jsx)(oi, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, Y.jsx)(li, { size: 14 }) : /* @__PURE__ */ (0, Y.jsx)(Ge, { size: 14 }), t[0] = n, t[1] = r);
|
|
15545
15545
|
let i = r, a;
|
|
15546
15546
|
return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
15547
15547
|
className: "border p-px border-border bg-(--slate-2) flex items-center justify-center rounded",
|
|
@@ -16019,7 +16019,7 @@ var kD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
16019
16019
|
"to automatically apply transformations."
|
|
16020
16020
|
] })]
|
|
16021
16021
|
}),
|
|
16022
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
16022
|
+
children: /* @__PURE__ */ (0, Y.jsx)(dt, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
|
|
16023
16023
|
})]
|
|
16024
16024
|
})
|
|
16025
16025
|
]
|
|
@@ -16114,7 +16114,7 @@ var kD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
16114
16114
|
}), t[9] = i, t[10] = l, t[11] = u) : u = t[11], u;
|
|
16115
16115
|
}, MD = {
|
|
16116
16116
|
aggregate: At,
|
|
16117
|
-
column_conversion:
|
|
16117
|
+
column_conversion: pt,
|
|
16118
16118
|
filter_rows: xr,
|
|
16119
16119
|
group_by: Gu,
|
|
16120
16120
|
rename_column: Ia,
|
|
@@ -16125,7 +16125,7 @@ var kD = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
|
|
|
16125
16125
|
explode_columns: Au,
|
|
16126
16126
|
expand_dict: Iu,
|
|
16127
16127
|
unique: Pu,
|
|
16128
|
-
pivot:
|
|
16128
|
+
pivot: bt
|
|
16129
16129
|
};
|
|
16130
16130
|
function ND(e) {
|
|
16131
16131
|
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank");
|
|
@@ -16228,7 +16228,7 @@ var PD = wS("marimo-dataframe").withData(W({
|
|
|
16228
16228
|
t[20] === A ? ie = t[21] : (ie = A && /* @__PURE__ */ (0, Y.jsxs)(jn, {
|
|
16229
16229
|
value: "sql-code",
|
|
16230
16230
|
className: "text-xs py-1",
|
|
16231
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
16231
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(_t, { className: "w-3 h-3 mr-2" }), "SQL Code"]
|
|
16232
16232
|
}), t[20] = A, t[21] = ie);
|
|
16233
16233
|
let ae;
|
|
16234
16234
|
t[22] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ (0, Y.jsx)("div", { className: "grow" }), t[22] = ae) : ae = t[22];
|
|
@@ -16405,12 +16405,12 @@ var BD = {
|
|
|
16405
16405
|
python: Lu,
|
|
16406
16406
|
code: Lu,
|
|
16407
16407
|
json: Iu,
|
|
16408
|
-
text:
|
|
16408
|
+
text: Tt,
|
|
16409
16409
|
image: Ku,
|
|
16410
16410
|
audio: Ru,
|
|
16411
16411
|
video: zu,
|
|
16412
16412
|
data: Bu,
|
|
16413
|
-
pdf:
|
|
16413
|
+
pdf: Tt,
|
|
16414
16414
|
zip: Vu,
|
|
16415
16415
|
unknown: Ea
|
|
16416
16416
|
};
|
|
@@ -16470,7 +16470,7 @@ function WD(e) {
|
|
|
16470
16470
|
let s = !r, l;
|
|
16471
16471
|
t[2] === s ? l = t[3] : (l = c({ "hidden group-hover:flex group-focus:flex": s }), t[2] = s, t[3] = l);
|
|
16472
16472
|
let u;
|
|
16473
|
-
t[4] !== r || t[5] !== e || t[6] !== i || t[7] !== l ? (u = /* @__PURE__ */ (0, Y.jsx)(
|
|
16473
|
+
t[4] !== r || t[5] !== e || t[6] !== i || t[7] !== l ? (u = /* @__PURE__ */ (0, Y.jsx)(Ie, {
|
|
16474
16474
|
checked: r,
|
|
16475
16475
|
"aria-label": e,
|
|
16476
16476
|
tabIndex: -1,
|
|
@@ -16497,7 +16497,7 @@ function WD(e) {
|
|
|
16497
16497
|
}), t[18] = a, t[19] = s), s;
|
|
16498
16498
|
}
|
|
16499
16499
|
var GD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i, label: a, restrictNavigation: o, list_directory: s, host: l }) => {
|
|
16500
|
-
let [u, d] = vn(n), [f, p] = (0, J.useState)(!1), [m, h] = (0, J.useState)(!1), [_, v] = (0, J.useState)(0), y = (0, J.useRef)([]), x = (0, J.useRef)(null), S = (0, J.useRef)(!1), C = l.closest(`[${
|
|
16500
|
+
let [u, d] = vn(n), [f, p] = (0, J.useState)(!1), [m, h] = (0, J.useState)(!1), [_, v] = (0, J.useState)(0), y = (0, J.useRef)([]), x = (0, J.useRef)(null), S = (0, J.useRef)(!1), C = l.closest(`[${Ue}]`)?.getAttribute(Ue), { data: w, error: E, isPending: D } = Ms(() => s({ path: u }), [
|
|
16501
16501
|
u,
|
|
16502
16502
|
C,
|
|
16503
16503
|
s
|
|
@@ -16529,7 +16529,7 @@ var GD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16529
16529
|
kind: "danger",
|
|
16530
16530
|
children: E.message
|
|
16531
16531
|
});
|
|
16532
|
-
let L =
|
|
16532
|
+
let L = Me.guessDeliminator(n).deliminator, R = e.map((e) => /* @__PURE__ */ (0, Y.jsx)("li", { children: e.path }, e.id));
|
|
16533
16533
|
function z(e) {
|
|
16534
16534
|
if (f) return;
|
|
16535
16535
|
if (p(!0), e === UD) {
|
|
@@ -16537,7 +16537,7 @@ var GD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16537
16537
|
p(!1);
|
|
16538
16538
|
return;
|
|
16539
16539
|
}
|
|
16540
|
-
e =
|
|
16540
|
+
e = me.dirname(u), e === "" && (e = L);
|
|
16541
16541
|
}
|
|
16542
16542
|
let t = e.length < n.length;
|
|
16543
16543
|
if (o && t) {
|
|
@@ -16567,7 +16567,7 @@ var GD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16567
16567
|
M.has(n) ? t(e.filter((e) => e.path !== n)) : t(i ? [...e, o] : [o]);
|
|
16568
16568
|
}
|
|
16569
16569
|
function ne() {
|
|
16570
|
-
t(e.filter((e) =>
|
|
16570
|
+
t(e.filter((e) => me.dirname(e.path) !== u));
|
|
16571
16571
|
}
|
|
16572
16572
|
function re() {
|
|
16573
16573
|
let n = [];
|
|
@@ -16640,7 +16640,7 @@ var GD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
|
|
|
16640
16640
|
}), V = ce.toReversed().map((e) => ({
|
|
16641
16641
|
path: e,
|
|
16642
16642
|
name: e === se ? se : e.split(L).findLast(Boolean) ?? e
|
|
16643
|
-
})), le = r === "all" ?
|
|
16643
|
+
})), le = r === "all" ? it.of("file", "folder") : r === "directory" ? it.of("folder") : it.of("file");
|
|
16644
16644
|
return /* @__PURE__ */ (0, Y.jsxs)("div", { children: [
|
|
16645
16645
|
E && /* @__PURE__ */ (0, Y.jsx)(Ko, {
|
|
16646
16646
|
kind: "danger",
|
|
@@ -21710,7 +21710,7 @@ var Jj = class {
|
|
|
21710
21710
|
passwordHasValue: H().optional()
|
|
21711
21711
|
});
|
|
21712
21712
|
render(e) {
|
|
21713
|
-
let t = e.data.kind === "password" ? e.host.closest(`[${
|
|
21713
|
+
let t = e.data.kind === "password" ? e.host.closest(`[${Ue}]`)?.getAttribute(Ue) : void 0;
|
|
21714
21714
|
return /* @__PURE__ */ (0, Y.jsx)(Qj, {
|
|
21715
21715
|
...e.data,
|
|
21716
21716
|
value: e.value,
|
|
@@ -21832,7 +21832,7 @@ function $j(e, t) {
|
|
|
21832
21832
|
}
|
|
21833
21833
|
//#endregion
|
|
21834
21834
|
//#region src/plugins/impl/vega/VegaPlugin.tsx
|
|
21835
|
-
var eM = J.lazy(() => import("./vega-component-
|
|
21835
|
+
var eM = J.lazy(() => import("./vega-component-DTG6zxaY.js")), tM = class {
|
|
21836
21836
|
tagName = "marimo-vega";
|
|
21837
21837
|
validator = W({
|
|
21838
21838
|
spec: W({}).passthrough().transform((e) => e),
|
|
@@ -22099,11 +22099,11 @@ var oM = class {
|
|
|
22099
22099
|
themeVariables: e.data.theme_variables
|
|
22100
22100
|
});
|
|
22101
22101
|
}
|
|
22102
|
-
}, TM = (0, J.lazy)(() => import("./mermaid-
|
|
22102
|
+
}, TM = (0, J.lazy)(() => import("./mermaid-CHo49Yv-.js").then((e) => e.t));
|
|
22103
22103
|
//#endregion
|
|
22104
22104
|
//#region src/components/editor/chrome/panels/outline/useActiveOutline.tsx
|
|
22105
22105
|
function EM() {
|
|
22106
|
-
return
|
|
22106
|
+
return _a() === "edit" ? document.getElementById("App") : void 0;
|
|
22107
22107
|
}
|
|
22108
22108
|
function DM(e) {
|
|
22109
22109
|
let t = (0, X.c)(7), [n, r] = (0, J.useState)(void 0), [i, a] = (0, J.useState)(void 0), o = (0, J.useRef)(null), s = (0, J.useRef)(null), c;
|
|
@@ -22115,7 +22115,7 @@ function DM(e) {
|
|
|
22115
22115
|
let n = e.target;
|
|
22116
22116
|
e.isIntersecting ? (!s.current || n.getBoundingClientRect().top < s.current.getBoundingClientRect().top) && (s.current = n, t = !0) : n === s.current && (s.current = null, t = !0);
|
|
22117
22117
|
}), t && s.current) {
|
|
22118
|
-
let e =
|
|
22118
|
+
let e = lt(s.current), t = "id" in e ? e.id : e.path;
|
|
22119
22119
|
r(t), a(l.current.get(s.current));
|
|
22120
22120
|
}
|
|
22121
22121
|
}, {
|
|
@@ -22124,7 +22124,7 @@ function DM(e) {
|
|
|
22124
22124
|
threshold: 0
|
|
22125
22125
|
}), e.forEach((t) => {
|
|
22126
22126
|
if (t) {
|
|
22127
|
-
let n =
|
|
22127
|
+
let n = lt(t[0]), r = e.map(OM).filter((e) => "id" in n ? e.id === n.id : e.textContent === t[0].textContent).indexOf(t[0]);
|
|
22128
22128
|
l.current.set(t[0], r), o.current?.observe(t[0]);
|
|
22129
22129
|
}
|
|
22130
22130
|
}), () => {
|
|
@@ -22169,7 +22169,7 @@ function jM(e, t) {
|
|
|
22169
22169
|
//#endregion
|
|
22170
22170
|
//#region src/components/editor/chrome/panels/outline/floating-outline.tsx
|
|
22171
22171
|
var MM = () => {
|
|
22172
|
-
let e = (0, X.c)(19), { items: t } = ns(
|
|
22172
|
+
let e = (0, X.c)(19), { items: t } = ns(nt), n;
|
|
22173
22173
|
e[0] === t ? n = e[1] : (n = kM(t), e[0] = t, e[1] = n);
|
|
22174
22174
|
let { activeHeaderId: r, activeOccurrences: i } = DM(n), [a, o] = J.useState(!1);
|
|
22175
22175
|
if (t.length < 2) return null;
|
|
@@ -22240,7 +22240,7 @@ var MM = () => {
|
|
|
22240
22240
|
children: s
|
|
22241
22241
|
}), t[8] = o, t[9] = s, t[10] = l) : l = t[10], l;
|
|
22242
22242
|
}, FM = (e) => {
|
|
22243
|
-
let t = (0, X.c)(12), { label: n } = e, { items: r } = ns(
|
|
22243
|
+
let t = (0, X.c)(12), { label: n } = e, { items: r } = ns(nt), i;
|
|
22244
22244
|
t[0] === r ? i = t[1] : (i = kM(r), t[0] = r, t[1] = i);
|
|
22245
22245
|
let { activeHeaderId: a, activeOccurrences: o } = DM(i);
|
|
22246
22246
|
if (r.length === 0) {
|
|
@@ -26649,7 +26649,7 @@ var uP = (0, aP.WidthProvider)(aP.Responsive), dP = [0, 0], fP = "grid-drag-hand
|
|
|
26649
26649
|
cellId: t.id,
|
|
26650
26650
|
output: t.output,
|
|
26651
26651
|
status: t.status,
|
|
26652
|
-
stale:
|
|
26652
|
+
stale: Ae(t, !1),
|
|
26653
26653
|
isScrollable: o,
|
|
26654
26654
|
side: s,
|
|
26655
26655
|
hidden: t.errored || t.interrupted || t.stopped
|
|
@@ -26725,7 +26725,7 @@ var uP = (0, aP.WidthProvider)(aP.Responsive), dP = [0, 0], fP = "grid-drag-hand
|
|
|
26725
26725
|
cellId: e.id,
|
|
26726
26726
|
output: e.output,
|
|
26727
26727
|
status: e.status,
|
|
26728
|
-
stale:
|
|
26728
|
+
stale: Ae(e, !1),
|
|
26729
26729
|
isScrollable: !1,
|
|
26730
26730
|
hidden: !1
|
|
26731
26731
|
}, e.id), t[130] = a, t[131] = r), me = /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [ce, /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
@@ -26783,7 +26783,7 @@ var uP = (0, aP.WidthProvider)(aP.Responsive), dP = [0, 0], fP = "grid-drag-hand
|
|
|
26783
26783
|
output: e.output,
|
|
26784
26784
|
isScrollable: !1,
|
|
26785
26785
|
status: e.status,
|
|
26786
|
-
stale:
|
|
26786
|
+
stale: Ae(e, !1),
|
|
26787
26787
|
hidden: !1
|
|
26788
26788
|
})
|
|
26789
26789
|
}, e.id), t[146] = n.columns, t[147] = n.rowHeight, t[148] = a, t[149] = m) : m = t[149], ue = s.map(m);
|
|
@@ -27229,10 +27229,10 @@ var DP = (e) => {
|
|
|
27229
27229
|
//#endregion
|
|
27230
27230
|
//#region src/components/editor/cell/useDeleteCell.tsx
|
|
27231
27231
|
function OP() {
|
|
27232
|
-
let e = (0, X.c)(4), { deleteCell: t, undoDeleteCell: n } =
|
|
27232
|
+
let e = (0, X.c)(4), { deleteCell: t, undoDeleteCell: n } = Ot(), { sendDeleteCell: r } = ut(), i;
|
|
27233
27233
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
27234
|
-
if (as.get(
|
|
27235
|
-
let { cellId: i } = e, a = (as.get(
|
|
27234
|
+
if (as.get(gt)) return;
|
|
27235
|
+
let { cellId: i } = e, a = (as.get(at).cellData[i]?.code ?? "").trim() === "";
|
|
27236
27236
|
if (t({ cellId: i }), r({ cellId: i }).catch(() => {
|
|
27237
27237
|
n();
|
|
27238
27238
|
}), !a) {
|
|
@@ -29762,7 +29762,7 @@ function gR() {
|
|
|
29762
29762
|
return /* @__PURE__ */ new Set();
|
|
29763
29763
|
}
|
|
29764
29764
|
var _R = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skippedIds: i, noOutputIds: a, slideTypes: o, onSlideClick: c }) => {
|
|
29765
|
-
let l =
|
|
29765
|
+
let l = Je(), { moveCellToIndex: u, createNewCell: d } = Ot(), f = OP(), p = (0, J.useRef)(null), m = hR(p), [h, g] = (0, J.useState)(null), [_, v] = (0, J.useState)(null), y = uR(t), b = (e, t) => {
|
|
29766
29766
|
d({
|
|
29767
29767
|
cellId: e,
|
|
29768
29768
|
before: t,
|
|
@@ -29846,7 +29846,7 @@ var _R = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
29846
29846
|
ref: p,
|
|
29847
29847
|
children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
29848
29848
|
className: "text-xs text-gray-500 flex items-center gap-0.5",
|
|
29849
|
-
children: [/* @__PURE__ */ (0, Y.jsx)(
|
|
29849
|
+
children: [/* @__PURE__ */ (0, Y.jsx)(dt, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
|
|
29850
29850
|
}), e.map((e, t) => /* @__PURE__ */ (0, Y.jsx)(bR, {
|
|
29851
29851
|
cell: e,
|
|
29852
29852
|
dimensions: y,
|
|
@@ -30034,7 +30034,7 @@ var _R = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
|
|
|
30034
30034
|
cellId: n.id,
|
|
30035
30035
|
status: n.status,
|
|
30036
30036
|
output: n.output,
|
|
30037
|
-
stale:
|
|
30037
|
+
stale: Ae(n, !1)
|
|
30038
30038
|
})
|
|
30039
30039
|
}), t[30] = n, t[31] = x, t[32] = y, t[33] = S, t[34] = k, t[35] = b, t[36] = P) : P = t[36];
|
|
30040
30040
|
let F;
|
|
@@ -30107,8 +30107,8 @@ function OR(e) {
|
|
|
30107
30107
|
}
|
|
30108
30108
|
//#endregion
|
|
30109
30109
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
30110
|
-
var kR = J.lazy(() => import("./reveal-component-
|
|
30111
|
-
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = ns(
|
|
30110
|
+
var kR = J.lazy(() => import("./reveal-component-79ez8-D5.js")), AR = (e) => {
|
|
30111
|
+
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = ns(da), s = a === "read" || o, c = ns(We) > 1, [l, u] = (0, J.useState)(null), d;
|
|
30112
30112
|
t[0] !== i || t[1] !== n ? (d = EP(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
30113
30113
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
30114
30114
|
t[3] !== l || t[4] !== f || t[5] !== g ? (_ = l ? f.findIndex((e) => e.id === l) : g, t[3] = l, t[4] = f, t[5] = g, t[6] = _) : _ = t[6];
|
|
@@ -30314,7 +30314,7 @@ var zR = (e) => {
|
|
|
30314
30314
|
let m;
|
|
30315
30315
|
t[12] === n ? m = t[13] : (m = () => n("bt"), t[12] = n, t[13] = m);
|
|
30316
30316
|
let h;
|
|
30317
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(
|
|
30317
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(Ye, {
|
|
30318
30318
|
fontSize: 36,
|
|
30319
30319
|
className: "w-5 h-5"
|
|
30320
30320
|
}), t[14] = h) : h = t[14];
|
|
@@ -30395,13 +30395,13 @@ function BR(e = !0) {
|
|
|
30395
30395
|
//#endregion
|
|
30396
30396
|
//#region src/components/editor/actions/name-cell-input.tsx
|
|
30397
30397
|
var VR = (e) => {
|
|
30398
|
-
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, { updateCellName: a } =
|
|
30398
|
+
let t = (0, X.c)(12), { value: n, cellId: r, className: i } = e, { updateCellName: a } = Ot(), o;
|
|
30399
30399
|
t[0] !== r || t[1] !== a ? (o = (e) => a({
|
|
30400
30400
|
cellId: r,
|
|
30401
30401
|
name: e
|
|
30402
30402
|
}), t[0] = r, t[1] = a, t[2] = o) : o = t[2];
|
|
30403
30403
|
let s = HR(n, o);
|
|
30404
|
-
if (
|
|
30404
|
+
if (kt(n)) return null;
|
|
30405
30405
|
let l = s.focusing ? "" : "text-ellipsis", u;
|
|
30406
30406
|
t[3] !== i || t[4] !== l ? (u = c("outline-hidden border hover:border-cyan-500/40 focus:border-cyan-500/40", l, i), t[3] = i, t[4] = l, t[5] = u) : u = t[5];
|
|
30407
30407
|
let d;
|
|
@@ -30423,28 +30423,28 @@ function HR(e, t) {
|
|
|
30423
30423
|
let n = (0, X.c)(13), [r, i] = (0, J.useState)(e), [a, o] = (0, J.useState)(!1), s;
|
|
30424
30424
|
n[0] !== t || n[1] !== e ? (s = (n) => {
|
|
30425
30425
|
if (n !== e) {
|
|
30426
|
-
if (!n ||
|
|
30426
|
+
if (!n || kt(n)) {
|
|
30427
30427
|
t(n);
|
|
30428
30428
|
return;
|
|
30429
30429
|
}
|
|
30430
|
-
t(
|
|
30430
|
+
t(Ne(n, wt()));
|
|
30431
30431
|
}
|
|
30432
30432
|
}, n[0] = t, n[1] = e, n[2] = s) : s = n[2];
|
|
30433
30433
|
let c = s, l;
|
|
30434
|
-
n[3] === r ? l = n[4] : (l =
|
|
30434
|
+
n[3] === r ? l = n[4] : (l = kt(r) ? "" : r, n[3] = r, n[4] = l);
|
|
30435
30435
|
let u;
|
|
30436
30436
|
n[5] === Symbol.for("react.memo_cache_sentinel") ? (u = (e) => {
|
|
30437
|
-
let t = e.target.value, n =
|
|
30437
|
+
let t = e.target.value, n = ge(t);
|
|
30438
30438
|
i(n);
|
|
30439
30439
|
}, n[5] = u) : u = n[5];
|
|
30440
30440
|
let d;
|
|
30441
30441
|
n[6] === c ? d = n[7] : (d = (e) => {
|
|
30442
30442
|
if (e.target instanceof HTMLInputElement) {
|
|
30443
30443
|
let t = e.target.value;
|
|
30444
|
-
c(
|
|
30444
|
+
c(ge(t));
|
|
30445
30445
|
} else if (e.target instanceof HTMLSpanElement) {
|
|
30446
30446
|
let t = e.target.innerText.trim();
|
|
30447
|
-
c(
|
|
30447
|
+
c(ge(t)), e.target.scrollLeft = 0, o(!1);
|
|
30448
30448
|
}
|
|
30449
30449
|
}, n[6] = c, n[7] = d);
|
|
30450
30450
|
let f;
|
|
@@ -30465,7 +30465,7 @@ function UR(e) {
|
|
|
30465
30465
|
}
|
|
30466
30466
|
//#endregion
|
|
30467
30467
|
//#region src/components/editor/output/useWrapText.ts
|
|
30468
|
-
var WR =
|
|
30468
|
+
var WR = Ct("marimo:console:wrapText", !1, Xe);
|
|
30469
30469
|
function GR() {
|
|
30470
30470
|
let e = (0, X.c)(3), [t, n] = is(WR), r;
|
|
30471
30471
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
@@ -30496,7 +30496,7 @@ var qR = (e) => {
|
|
|
30496
30496
|
if (!e) return;
|
|
30497
30497
|
let t = e.scrollHeight - e.clientHeight;
|
|
30498
30498
|
t - e.scrollTop < 120 && (e.scrollTop = t);
|
|
30499
|
-
}, t[2] = D) : D = t[2], (0, J.useLayoutEffect)(D), !w &&
|
|
30499
|
+
}, t[2] = D) : D = t[2], (0, J.useLayoutEffect)(D), !w && kt(h)) return null;
|
|
30500
30500
|
let O, k, A, j, M, N, P, F, I, L;
|
|
30501
30501
|
if (t[3] !== _ || t[4] !== x || t[5] !== S || t[6] !== w || t[7] !== d || t[8] !== m || t[9] !== a || t[10] !== E || t[11] !== y || t[12] !== b || t[13] !== v || t[14] !== T || t[15] !== o || t[16] !== i || t[17] !== p || t[18] !== s || t[19] !== r) {
|
|
30502
30502
|
let e = S.toReversed(), u = e.some(QR), f = e.findIndex($R), h;
|
|
@@ -30671,7 +30671,7 @@ function tz(e) {
|
|
|
30671
30671
|
}
|
|
30672
30672
|
//#endregion
|
|
30673
30673
|
//#region src/core/cells/readonly-code-display.ts
|
|
30674
|
-
var nz = new
|
|
30674
|
+
var nz = new vt(), rz = new tt();
|
|
30675
30675
|
function iz(e) {
|
|
30676
30676
|
let t = e.trim();
|
|
30677
30677
|
return t ? nz.isSupported(t) ? {
|
|
@@ -30691,7 +30691,7 @@ function iz(e) {
|
|
|
30691
30691
|
//#endregion
|
|
30692
30692
|
//#region src/core/export/layout.ts
|
|
30693
30693
|
async function az() {
|
|
30694
|
-
return await
|
|
30694
|
+
return await be(), Fz();
|
|
30695
30695
|
}
|
|
30696
30696
|
//#endregion
|
|
30697
30697
|
//#region src/core/static/virtual-file-tracker.ts
|
|
@@ -30732,7 +30732,7 @@ function cz(e) {
|
|
|
30732
30732
|
//#endregion
|
|
30733
30733
|
//#region src/core/static/download-html.ts
|
|
30734
30734
|
async function lz(e) {
|
|
30735
|
-
let t =
|
|
30735
|
+
let t = ye(), { includeCode: n } = e, r = await t.exportAsHTML({
|
|
30736
30736
|
download: !0,
|
|
30737
30737
|
includeCode: n,
|
|
30738
30738
|
files: sz.INSTANCE.filenames(),
|
|
@@ -30763,10 +30763,10 @@ function dz(e, t) {
|
|
|
30763
30763
|
function fz({ showCodeInRunModePreference: e, kioskMode: t }) {
|
|
30764
30764
|
if (!e) return !1;
|
|
30765
30765
|
let n = new URLSearchParams(window.location.search).get(os.showCode);
|
|
30766
|
-
return n === null ?
|
|
30766
|
+
return n === null ? ma() || xa() || t : n === "true";
|
|
30767
30767
|
}
|
|
30768
30768
|
function pz(e) {
|
|
30769
|
-
|
|
30769
|
+
ma() && ha((t) => {
|
|
30770
30770
|
t.set(os.showCode, String(e));
|
|
30771
30771
|
});
|
|
30772
30772
|
}
|
|
@@ -30778,7 +30778,7 @@ function mz(e) {
|
|
|
30778
30778
|
}), [...t.entries()].toSorted(([e], [t]) => e - t);
|
|
30779
30779
|
}
|
|
30780
30780
|
function hz(e, t) {
|
|
30781
|
-
let n = new
|
|
30781
|
+
let n = new Be().isSupported(e), r = t !== null && !I(t);
|
|
30782
30782
|
return n && r || e.trim() === "";
|
|
30783
30783
|
}
|
|
30784
30784
|
//#endregion
|
|
@@ -30799,7 +30799,7 @@ var gz = (e) => {
|
|
|
30799
30799
|
children: h
|
|
30800
30800
|
}), t[12] = s, t[13] = h, t[14] = g) : g = t[14], g;
|
|
30801
30801
|
}, _z = (e) => {
|
|
30802
|
-
let t = (0, X.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = dz(n.length, i), o = ns(
|
|
30802
|
+
let t = (0, X.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = dz(n.length, i), o = ns(da), s = ns(Ws), [l] = fs(), u = ns(Hs), d;
|
|
30803
30803
|
t[0] !== o || t[1] !== u ? (d = () => fz({
|
|
30804
30804
|
showCodeInRunModePreference: u,
|
|
30805
30805
|
kioskMode: o
|
|
@@ -30882,13 +30882,13 @@ var gz = (e) => {
|
|
|
30882
30882
|
]
|
|
30883
30883
|
}), t[28] = r, t[29] = a, t[30] = w, t[31] = T, t[32] = D) : D = t[32], D;
|
|
30884
30884
|
}, vz = (e) => {
|
|
30885
|
-
let t = (0, X.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } =
|
|
30885
|
+
let t = (0, X.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } = ut(), o = Sz, s = Cz, l;
|
|
30886
30886
|
t[0] === a ? l = t[1] : (l = async () => {
|
|
30887
30887
|
let e = await a();
|
|
30888
30888
|
Zr(new Blob([e.contents], { type: "text/plain" }), cn.toPY(document.title));
|
|
30889
30889
|
}, t[0] = a, t[1] = l);
|
|
30890
30890
|
let u = l, d;
|
|
30891
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (d =
|
|
30891
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (d = ma(), t[2] = d) : d = t[2];
|
|
30892
30892
|
let f = d, p;
|
|
30893
30893
|
if (t[3] !== n || t[4] !== u || t[5] !== i || t[6] !== r) {
|
|
30894
30894
|
if (p = [], n) {
|
|
@@ -30957,7 +30957,7 @@ var gz = (e) => {
|
|
|
30957
30957
|
} else p = t[7];
|
|
30958
30958
|
if (p.length === 0) return null;
|
|
30959
30959
|
let m;
|
|
30960
|
-
t[22] === Symbol.for("react.memo_cache_sentinel") ? (m = c("right-0 top-0 z-50 m-4 print:hidden flex gap-2",
|
|
30960
|
+
t[22] === Symbol.for("react.memo_cache_sentinel") ? (m = c("right-0 top-0 z-50 m-4 print:hidden flex gap-2", ma() ? "absolute" : "fixed"), t[22] = m) : m = t[22];
|
|
30961
30961
|
let h;
|
|
30962
30962
|
t[23] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsx)(Ki, {
|
|
30963
30963
|
asChild: !0,
|
|
@@ -30982,7 +30982,7 @@ var gz = (e) => {
|
|
|
30982
30982
|
}), t[24] = p, t[25] = _), _;
|
|
30983
30983
|
}, yz = (0, J.memo)((e) => {
|
|
30984
30984
|
let t = (0, X.c)(57), { output: n, consoleOutputs: r, cellOutputArea: i, cellId: a, status: o, stopped: s, errored: l, config: u, interrupted: d, staleInputs: f, runStartTimestamp: p, code: m, showCode: h, mode: g, name: _, kiosk: v, showErrorTracebacks: y } = e, b = (0, J.useRef)(null), x;
|
|
30985
|
-
t[0] !== d || t[1] !== n || t[2] !== p || t[3] !== f || t[4] !== o ? (x =
|
|
30985
|
+
t[0] !== d || t[1] !== n || t[2] !== p || t[3] !== f || t[4] !== o ? (x = Ae({
|
|
30986
30986
|
status: o,
|
|
30987
30987
|
output: n,
|
|
30988
30988
|
interrupted: d,
|
|
@@ -30993,8 +30993,8 @@ var gz = (e) => {
|
|
|
30993
30993
|
t[6] === o ? C = t[7] : (C = ve(o), t[6] = o, t[7] = C);
|
|
30994
30994
|
let w = C, T = v && g !== "present", E;
|
|
30995
30995
|
if (t[8] !== m || t[9] !== l || t[10] !== T || t[11] !== h || t[12] !== s) {
|
|
30996
|
-
let e = new
|
|
30997
|
-
E = c("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ?
|
|
30996
|
+
let e = new Be().isSupported(m);
|
|
30997
|
+
E = c("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ? De({
|
|
30998
30998
|
errored: l,
|
|
30999
30999
|
stopped: s
|
|
31000
31000
|
}) : {
|
|
@@ -31053,7 +31053,7 @@ var gz = (e) => {
|
|
|
31053
31053
|
]
|
|
31054
31054
|
}), t[37] = D, t[38] = v, t[39] = y, t[40] = p, t[41] = h, t[42] = g, t[43] = x) : x = t[43], x;
|
|
31055
31055
|
}
|
|
31056
|
-
if (
|
|
31056
|
+
if (ke({
|
|
31057
31057
|
errored: l,
|
|
31058
31058
|
interrupted: d,
|
|
31059
31059
|
stopped: s,
|
|
@@ -31191,11 +31191,11 @@ function Pz({ state: e, plugin: t, cells: n }) {
|
|
|
31191
31191
|
}) : t.getInitialLayout(n));
|
|
31192
31192
|
}
|
|
31193
31193
|
function Fz() {
|
|
31194
|
-
let e =
|
|
31194
|
+
let e = et(), t = as.get(jz), { selectedLayout: n } = t;
|
|
31195
31195
|
if (n === "vertical") return null;
|
|
31196
31196
|
let r = Tz.find((e) => e.type === n);
|
|
31197
31197
|
if (r === void 0) return s.error(`Unknown layout type: ${n}`), null;
|
|
31198
|
-
let i =
|
|
31198
|
+
let i = ct(e), a = Pz({
|
|
31199
31199
|
state: t,
|
|
31200
31200
|
plugin: r,
|
|
31201
31201
|
cells: i
|
|
@@ -31211,7 +31211,7 @@ function Iz(e) {
|
|
|
31211
31211
|
let { codes: t, names: n, configs: r, cell_ids: i, last_executed_code: a, last_execution_time: o } = e, s = a || {}, c = o || {};
|
|
31212
31212
|
return t.map((e, t) => {
|
|
31213
31213
|
let a = i[t], o = s[a];
|
|
31214
|
-
return
|
|
31214
|
+
return Pe({
|
|
31215
31215
|
id: a,
|
|
31216
31216
|
code: e,
|
|
31217
31217
|
edited: o ? o !== e : !1,
|
|
@@ -31251,7 +31251,7 @@ function zz(e, t) {
|
|
|
31251
31251
|
return;
|
|
31252
31252
|
}
|
|
31253
31253
|
let { objectIds: y, values: b } = Rz(), x = g ? Object.fromEntries(n.map((e) => [e.id, e.code])) : void 0;
|
|
31254
|
-
|
|
31254
|
+
ye().sendInstantiate({
|
|
31255
31255
|
objectIds: y,
|
|
31256
31256
|
values: b,
|
|
31257
31257
|
autoRun: r,
|
|
@@ -31502,10 +31502,10 @@ function oB(e) {
|
|
|
31502
31502
|
return null;
|
|
31503
31503
|
}
|
|
31504
31504
|
function sB(e) {
|
|
31505
|
-
return
|
|
31505
|
+
return He(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && (e.dependencies === void 0 || Array.isArray(e.dependencies) && e.dependencies.every((e) => typeof e == "string")) && Array.isArray(e.cells) && e.cells.every(cB) : !1;
|
|
31506
31506
|
}
|
|
31507
31507
|
function cB(e) {
|
|
31508
|
-
return
|
|
31508
|
+
return He(e) ? typeof e.cellId == "string" && typeof e.code == "string" && typeof e.outputHtml == "string" && typeof e.outputMimetype == "string" && typeof e.reactive == "boolean" && typeof e.displayCode == "boolean" && typeof e.displayOutput == "boolean" : !1;
|
|
31509
31509
|
}
|
|
31510
31510
|
//#endregion
|
|
31511
31511
|
//#region src/core/islands/components/IslandControls.tsx
|
|
@@ -31525,7 +31525,7 @@ var lB = (e) => {
|
|
|
31525
31525
|
children: a
|
|
31526
31526
|
}), t[3] = a, t[4] = n, t[5] = o) : o = t[5], o;
|
|
31527
31527
|
}, uB = (e) => {
|
|
31528
|
-
let t = (0, X.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } =
|
|
31528
|
+
let t = (0, X.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } = ut(), o;
|
|
31529
31529
|
t[0] === r ? o = t[1] : (o = () => {
|
|
31530
31530
|
x(r());
|
|
31531
31531
|
}, t[0] = r, t[1] = o);
|
|
@@ -31599,7 +31599,7 @@ var pB = (e) => {
|
|
|
31599
31599
|
let t = (0, X.c)(19), { cellId: n, codeCallback: r, alwaysShowRun: i, children: a } = e, o = dB(i), s = (0, J.useRef)(null), c;
|
|
31600
31600
|
t[0] === n ? c = t[1] : (c = (e) => e.cellRuntime[n], t[0] = n, t[1] = c);
|
|
31601
31601
|
let l = c, u;
|
|
31602
|
-
t[2] === l ? u = t[3] : (u =
|
|
31602
|
+
t[2] === l ? u = t[3] : (u = mt(at, l), t[2] = l, t[3] = u);
|
|
31603
31603
|
let d = ns(u), f = ns(Gs);
|
|
31604
31604
|
if (mB(s, d?.status ?? "idle"), !f || !d?.output) {
|
|
31605
31605
|
let e;
|
|
@@ -31689,7 +31689,7 @@ var hB = (e) => {
|
|
|
31689
31689
|
return rB(this);
|
|
31690
31690
|
}
|
|
31691
31691
|
getCellIdFromIndex(e) {
|
|
31692
|
-
let { cellIds: t } = as.get(
|
|
31692
|
+
let { cellIds: t } = as.get(at);
|
|
31693
31693
|
return t.inOrderIds.at(e);
|
|
31694
31694
|
}
|
|
31695
31695
|
connectedCallback() {
|
|
@@ -31703,7 +31703,7 @@ var hB = (e) => {
|
|
|
31703
31703
|
};
|
|
31704
31704
|
syncCellIdsSubscription() {
|
|
31705
31705
|
if (this.isReactive) {
|
|
31706
|
-
this.unsubscribeCellIds ??= as.sub(
|
|
31706
|
+
this.unsubscribeCellIds ??= as.sub(ht, () => {
|
|
31707
31707
|
this.runtimeCellId = this.cellId, this.renderIsland();
|
|
31708
31708
|
});
|
|
31709
31709
|
return;
|
|
@@ -31716,7 +31716,7 @@ var hB = (e) => {
|
|
|
31716
31716
|
code: r,
|
|
31717
31717
|
output: t
|
|
31718
31718
|
});
|
|
31719
|
-
let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(
|
|
31719
|
+
let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(we);
|
|
31720
31720
|
return {
|
|
31721
31721
|
html: t,
|
|
31722
31722
|
codeCallback: n && i ? () => {
|
|
@@ -31775,7 +31775,7 @@ function xB() {
|
|
|
31775
31775
|
//#region src/core/islands/bootstrap.ts
|
|
31776
31776
|
async function SB(e) {
|
|
31777
31777
|
let t = e.store || as, n = e.root || document, r = e.bridge;
|
|
31778
|
-
t.set(
|
|
31778
|
+
t.set(je, r), t.set(ga, "read"), t.set(Us, null), e.autoInitializePlugins !== !1 && rN();
|
|
31779
31779
|
let i = Array.from(n.querySelectorAll(vu.ISLAND));
|
|
31780
31780
|
if (i.length === 0) {
|
|
31781
31781
|
s.log("No islands found, skipping initialization");
|
|
@@ -31783,8 +31783,8 @@ async function SB(e) {
|
|
|
31783
31783
|
}
|
|
31784
31784
|
s.log(`Initializing ${i.length} island(s)`);
|
|
31785
31785
|
for (let e of i) e.classList.add(Su.NAMESPACE);
|
|
31786
|
-
let a =
|
|
31787
|
-
t.set(
|
|
31786
|
+
let a = St((e) => {
|
|
31787
|
+
t.set(at, (t) => Et(t, e));
|
|
31788
31788
|
});
|
|
31789
31789
|
t.sub(qs, () => {
|
|
31790
31790
|
let e = t.get(qs), r = n.querySelectorAll(vu.ISLAND);
|
|
@@ -31803,7 +31803,7 @@ async function SB(e) {
|
|
|
31803
31803
|
}
|
|
31804
31804
|
function CB(e, t, n, r) {
|
|
31805
31805
|
try {
|
|
31806
|
-
let i =
|
|
31806
|
+
let i = Ve(e);
|
|
31807
31807
|
switch (s.debug("Islands received message:", i.op), i.op) {
|
|
31808
31808
|
case "banner":
|
|
31809
31809
|
case "missing-package-alert":
|
|
@@ -31834,7 +31834,8 @@ function CB(e, t, n, r) {
|
|
|
31834
31834
|
case "cache-cleared":
|
|
31835
31835
|
case "cache-info":
|
|
31836
31836
|
case "kernel-startup-error":
|
|
31837
|
-
case "notebook-document-transaction":
|
|
31837
|
+
case "notebook-document-transaction":
|
|
31838
|
+
case "attachments": return;
|
|
31838
31839
|
case "completed-run":
|
|
31839
31840
|
n.set(Us, (e) => {
|
|
31840
31841
|
if (!e?.has(r)) return e;
|
|
@@ -32149,12 +32150,12 @@ var BB = class {
|
|
|
32149
32150
|
store;
|
|
32150
32151
|
root;
|
|
32151
32152
|
session;
|
|
32152
|
-
sessionReady = new
|
|
32153
|
+
sessionReady = new pa();
|
|
32153
32154
|
nextSessionGeneration = 0;
|
|
32154
32155
|
activeSessionGenerations = /* @__PURE__ */ new Set();
|
|
32155
32156
|
appTransition = Promise.resolve();
|
|
32156
|
-
workerReady = new
|
|
32157
|
-
initialized = new
|
|
32157
|
+
workerReady = new pa();
|
|
32158
|
+
initialized = new pa();
|
|
32158
32159
|
constructor(e = {}) {
|
|
32159
32160
|
this.store = e.store || as, this.root = e.root || document;
|
|
32160
32161
|
try {
|
|
@@ -32197,7 +32198,7 @@ var BB = class {
|
|
|
32197
32198
|
appId: n.id,
|
|
32198
32199
|
sessionGeneration: ++this.nextSessionGeneration
|
|
32199
32200
|
}, a = this.session, o = t && a !== void 0;
|
|
32200
|
-
this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(
|
|
32201
|
+
this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(at, ft()), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new pa()), this.session = {
|
|
32201
32202
|
...r,
|
|
32202
32203
|
code: t ? e : void 0
|
|
32203
32204
|
});
|
|
@@ -32215,7 +32216,7 @@ var BB = class {
|
|
|
32215
32216
|
t?.code === void 0 || e && t.appId !== e || (this.activeSessionGenerations.delete(t.sessionGeneration), await this.rpc.proxy.request.stopSession({
|
|
32216
32217
|
appId: t.appId,
|
|
32217
32218
|
sessionGeneration: t.sessionGeneration
|
|
32218
|
-
}), this.store.set(Us, null), this.session = void 0, this.sessionReady = new
|
|
32219
|
+
}), this.store.set(Us, null), this.session = void 0, this.sessionReady = new pa(), this.store.set(at, ft()));
|
|
32219
32220
|
});
|
|
32220
32221
|
}
|
|
32221
32222
|
enqueueAppTransition(e) {
|
|
@@ -32231,7 +32232,7 @@ var BB = class {
|
|
|
32231
32232
|
sendComponentValues = async (e) => (await this.putControlRequest({
|
|
32232
32233
|
type: "update-ui-element",
|
|
32233
32234
|
...e,
|
|
32234
|
-
token:
|
|
32235
|
+
token: ot()
|
|
32235
32236
|
}), null);
|
|
32236
32237
|
sendInstantiate = async () => null;
|
|
32237
32238
|
sendFunctionRequest = async (e) => (await this.putControlRequest({
|