@marimo-team/islands 0.25.3-dev408 → 0.25.3-dev412
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-DCW4bXq-.js → ConnectedDataExplorerComponent-CKIkvMhb.js} +3 -3
- package/dist/{ErrorBoundary-W6a-7ong.js → ErrorBoundary-yrh8zWjd.js} +1 -1
- package/dist/{chat-ui-BGEXB6V4.js → chat-ui-D49-nL6g.js} +5 -5
- package/dist/{code-visibility-0v5rL9iu.js → code-visibility-Bb479kFi.js} +2 -2
- package/dist/{common-B7sS0asw.js → common-I06X3NvT.js} +6 -6
- package/dist/{data-grid-overlay-editor-DtWpYC-j.js → data-grid-overlay-editor-CzHCcLVt.js} +1 -1
- package/dist/{dropdown-menu-CmgUseHo.js → dropdown-menu-CDImlvP4.js} +1 -1
- package/dist/{error-entries-5kRrE4vX.js → error-entries-C72eMO8B.js} +1 -1
- package/dist/{feedback-button-KVSGwnVr.js → feedback-button-BJy-AQQP.js} +3 -3
- package/dist/{glide-data-editor-D0dykzDr.js → glide-data-editor-D7D0Jvth.js} +5 -5
- package/dist/{globals-DOi11Nup.js → globals-BTaZSgBh.js} +1 -1
- package/dist/{html-to-image-Bor20n8N.js → html-to-image-ZjAXncYM.js} +3 -3
- package/dist/main.js +14 -14
- package/dist/{number-overlay-editor-DoR-BTMn.js → number-overlay-editor-DeFINyFW.js} +1 -1
- package/dist/{process-output-BvCDoG-m.js → process-output-CX4EvVxw.js} +2 -2
- package/dist/{reveal-component-Vu8VncD4.js → reveal-component-Qt3AXbdC.js} +5 -5
- package/dist/{select-DW32QOzC.js → select-Lp8Knz8Z.js} +13 -15
- package/dist/{spec-DV8oNpRR.js → spec-DFL4I9cF.js} +1 -1
- package/dist/{useDateFormatter-D5fsC9ot.js → useDateFormatter-D0qb9FqZ.js} +1 -1
- package/package.json +1 -1
- package/src/components/ui/__tests__/select.test.tsx +80 -0
- package/src/components/ui/select.tsx +17 -15
- package/src/core/dom/__tests__/outline.test.ts +23 -0
- package/src/plugins/core/__test__/sanitize.test.ts +27 -0
- package/src/plugins/core/sanitize-html.ts +2 -1
|
@@ -3,10 +3,10 @@ import { g as a, h as o, t as s } from "./button-qQhINE7z.js";
|
|
|
3
3
|
import { t as c } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as l } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { h as u, t as d } from "./tooltip-Bg-SDCwa.js";
|
|
6
|
-
import { E as f, t as p } from "./spec-
|
|
6
|
+
import { E as f, t as p } from "./spec-DFL4I9cF.js";
|
|
7
7
|
import { a as m, i as h, o as g, r as _, s as v, t as y } from "./useLifecycle-Ctr5lECo.js";
|
|
8
|
-
import { a as b, t as x } from "./useDateFormatter-
|
|
9
|
-
import { a as S, c as C, d as w, i as T, n as ee, o as E, r as te, s as ne, t as re, x as D } from "./select-
|
|
8
|
+
import { a as b, t as x } from "./useDateFormatter-D0qb9FqZ.js";
|
|
9
|
+
import { a as S, c as C, d as w, i as T, n as ee, o as E, r as te, s as ne, t as re, x as D } from "./select-Lp8Knz8Z.js";
|
|
10
10
|
import { r as O } from "./assertNever-DXGfUmPW.js";
|
|
11
11
|
import { t as k } from "./jsx-runtime-D8btoEHk.js";
|
|
12
12
|
import { Lt as ie, Mt as ae, Pt as oe, Rt as se, d as ce } from "./use-restore-focus-CE9Sflmg.js";
|
|
@@ -129,7 +129,7 @@ function N(e) {
|
|
|
129
129
|
}
|
|
130
130
|
//#endregion
|
|
131
131
|
//#region src/components/editor/boundary/ErrorBoundary.tsx
|
|
132
|
-
var P = (0, C.lazy)(() => import("./feedback-button-
|
|
132
|
+
var P = (0, C.lazy)(() => import("./feedback-button-BJy-AQQP.js").then((e) => ({ default: e.FeedbackModal }))), F = (e) => {
|
|
133
133
|
let t = (0, S.c)(2), n;
|
|
134
134
|
return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, k.jsx)(E, {
|
|
135
135
|
FallbackComponent: I,
|
|
@@ -3,13 +3,13 @@ import { g as n, h as r, 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 { i as c, t as l } from "./copy-icon-BKcX0ltw.js";
|
|
6
|
-
import { $ as u, Ct as d, Dt as f, Et as p, It as m, J as h, Lt as g, M as _, Nt as v, Pt as y, Tt as b, U as x, V as S, Vt as C, W as w, a as T, bt as E, et as D, f as O, g as k, h as A, kt as j, l as M, m as N, mt as ee, n as te, ot as ne, p as P, r as re, t as ie, tt as ae, u as oe, ut as se, v as ce, zt as le } from "./html-to-image-
|
|
6
|
+
import { $ as u, Ct as d, Dt as f, Et as p, It as m, J as h, Lt as g, M as _, Nt as v, Pt as y, Tt as b, U as x, V as S, Vt as C, W as w, a as T, bt as E, et as D, f as O, g as k, h as A, kt as j, l as M, m as N, mt as ee, n as te, ot as ne, p as P, r as re, t as ie, tt as ae, u as oe, ut as se, v as ce, zt as le } from "./html-to-image-ZjAXncYM.js";
|
|
7
7
|
import { h as F, t as ue } from "./tooltip-Bg-SDCwa.js";
|
|
8
|
-
import { d as de } from "./select-
|
|
9
|
-
import { Cn as fe, _ as pe, f as me, h as he, i as ge, n as _e, t as ve, xn as ye } from "./dropdown-menu-
|
|
8
|
+
import { d as de } from "./select-Lp8Knz8Z.js";
|
|
9
|
+
import { Cn as fe, _ as pe, f as me, h as he, i as ge, n as _e, t as ve, xn as ye } from "./dropdown-menu-CDImlvP4.js";
|
|
10
10
|
import { a as be, l as xe } from "./config-DOwBtRkI.js";
|
|
11
|
-
import { $ as Se, Ct as Ce, P as we, Rt as Te, W as Ee, en as De, h as Oe, i as ke, j as Ae, ot as je, r as Me, t as Ne } from "./error-entries-
|
|
12
|
-
import { c as Pe, d as Fe, l as Ie, n as Le, t as Re, u as ze } from "./process-output-
|
|
11
|
+
import { $ as Se, Ct as Ce, P as we, Rt as Te, W as Ee, en as De, h as Oe, i as ke, j as Ae, ot as je, r as Me, t as Ne } from "./error-entries-C72eMO8B.js";
|
|
12
|
+
import { c as Pe, d as Fe, l as Ie, n as Le, t as Re, u as ze } from "./process-output-CX4EvVxw.js";
|
|
13
13
|
import { t as Be } from "./pencil-CijoRsa3.js";
|
|
14
14
|
import { n as Ve, r as He, s as Ue } from "./assertNever-DXGfUmPW.js";
|
|
15
15
|
import { t as We } from "./jsx-runtime-D8btoEHk.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as e } from "./button-qQhINE7z.js";
|
|
2
|
-
import { D as t, Wt as n, Yt as r } from "./error-entries-
|
|
2
|
+
import { D as t, Wt as n, Yt as r } from "./error-entries-C72eMO8B.js";
|
|
3
3
|
import { n as i } from "./assertNever-DXGfUmPW.js";
|
|
4
4
|
import { Ct as a, Lt as o, Pt as s, f as c } from "./use-restore-focus-CE9Sflmg.js";
|
|
5
5
|
import { _ as l, c as u, f as d, n as f, o as p } from "./static-state-CnQdTBTW.js";
|
|
@@ -14,7 +14,7 @@ function y() {
|
|
|
14
14
|
return e.warn("Failed to get version from mount config"), null;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
var b = y() || "0.25.3-
|
|
17
|
+
var b = y() || "0.25.3-dev412", x = o(b), S = o(!0);
|
|
18
18
|
o(null);
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/core/wasm/state.ts
|
|
@@ -3,15 +3,15 @@ import { _ as t, f as n, g as r, h as i, i as a, m as o, n as s, p as c, r as l,
|
|
|
3
3
|
import { t as d } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as f } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { i as p, n as m, r as h, t as g } from "./copy-icon-BKcX0ltw.js";
|
|
6
|
-
import { A as _, At as v, C as y, D as b, Dt as x, G as S, Gt as C, H as w, Ht as T, It as E, J as D, K as O, Lt as k, M as A, Mt as j, N as M, Pt as N, Q as P, Rt as F, S as I, Tt as L, U as R, Ut as z, V as B, Vt as ee, W as te, Wt as ne, X as V, Z as re, d as ie, dt as ae, ft as oe, ht as se, it as ce, k as le, n as ue, pt as de, r as fe, s as pe, t as me, w as he, wt as ge, x as _e, y as ve, z as ye } from "./html-to-image-
|
|
6
|
+
import { A as _, At as v, C as y, D as b, Dt as x, G as S, Gt as C, H as w, Ht as T, It as E, J as D, K as O, Lt as k, M as A, Mt as j, N as M, Pt as N, Q as P, Rt as F, S as I, Tt as L, U as R, Ut as z, V as B, Vt as ee, W as te, Wt as ne, X as V, Z as re, d as ie, dt as ae, ft as oe, ht as se, it as ce, k as le, n as ue, pt as de, r as fe, s as pe, t as me, w as he, wt as ge, x as _e, y as ve, z as ye } from "./html-to-image-ZjAXncYM.js";
|
|
7
7
|
import { a as be, f as xe, h as H, n as Se, o as Ce, r as we, t as U } from "./tooltip-Bg-SDCwa.js";
|
|
8
8
|
import { r as Te, s as Ee } from "./useLifecycle-Ctr5lECo.js";
|
|
9
|
-
import { a as De, i as Oe, n as ke, o as Ae, r as je, t as Me } from "./useDateFormatter-
|
|
9
|
+
import { a as De, i as Oe, n as ke, o as Ae, r as je, t as Me } from "./useDateFormatter-D0qb9FqZ.js";
|
|
10
10
|
import { t as Ne } from "./check-ywinAQy6.js";
|
|
11
|
-
import { A as Pe, C as Fe, M as Ie, S as Le, T as Re, _ as ze, b as Be, c as Ve, d as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, m as Je, n as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./select-
|
|
12
|
-
import { $ as nt, $t as rt, A as it, At as at, B as ot, Bt as st, C as ct, Cn as lt, Ct as ut, D as dt, Dt as ft, E as pt, Et as mt, F as ht, Ft as gt, G as _t, Gt as vt, H as yt, Ht as bt, I as xt, It as St, J as Ct, Jt as wt, K as Tt, Kt as Et, L as Dt, Lt as Ot, M as kt, Mt as At, N as jt, Nt as Mt, O as Nt, Ot as Pt, P as Ft, Pt as It, Q as Lt, Qt as Rt, R as zt, Rt as Bt, S as Vt, Sn as Ht, St as Ut, Tt as Wt, U as Gt, Ut as Kt, V as qt, Vt as Jt, W as Yt, Wt as Xt, Xt as Zt, Yt as Qt, Z as $t, Zt as en, _ as tn, _n as nn, _t as rn, a as an, at as on, bn as sn, bt as cn, cn as ln, ct as un, d as dn, dn as fn, dt as pn, en as mn, et as hn, f as gn, fn as _n, ft as vn, gn as yn, gt as bn, h as xn, hn as Sn, ht as Cn, i as wn, in as Tn, it as En, j as Dn, jt as On, k as kn, kt as An, l as jn, ln as Mn, lt as Nn, mn as Pn, n as Fn, nn as In, nt as Ln, o as Rn, on as zn, ot as Bn, pt as Vn, q as Hn, qt as Un, rn as Wn, rt as Gn, s as Kn, sn as qn, st as Jn, t as Yn, tn as Xn, tt as Zn, u as Qn, ut as $n, vn as er, vt as tr, w as nr, wt as rr, x as ir, xn as ar, xt as or, yn as sr, yt as cr, z as lr, zt as ur } from "./dropdown-menu-
|
|
11
|
+
import { A as Pe, C as Fe, M as Ie, S as Le, T as Re, _ as ze, b as Be, c as Ve, d as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, m as Je, n as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./select-Lp8Knz8Z.js";
|
|
12
|
+
import { $ as nt, $t as rt, A as it, At as at, B as ot, Bt as st, C as ct, Cn as lt, Ct as ut, D as dt, Dt as ft, E as pt, Et as mt, F as ht, Ft as gt, G as _t, Gt as vt, H as yt, Ht as bt, I as xt, It as St, J as Ct, Jt as wt, K as Tt, Kt as Et, L as Dt, Lt as Ot, M as kt, Mt as At, N as jt, Nt as Mt, O as Nt, Ot as Pt, P as Ft, Pt as It, Q as Lt, Qt as Rt, R as zt, Rt as Bt, S as Vt, Sn as Ht, St as Ut, Tt as Wt, U as Gt, Ut as Kt, V as qt, Vt as Jt, W as Yt, Wt as Xt, Xt as Zt, Yt as Qt, Z as $t, Zt as en, _ as tn, _n as nn, _t as rn, a as an, at as on, bn as sn, bt as cn, cn as ln, ct as un, d as dn, dn as fn, dt as pn, en as mn, et as hn, f as gn, fn as _n, ft as vn, gn as yn, gt as bn, h as xn, hn as Sn, ht as Cn, i as wn, in as Tn, it as En, j as Dn, jt as On, k as kn, kt as An, l as jn, ln as Mn, lt as Nn, mn as Pn, n as Fn, nn as In, nt as Ln, o as Rn, on as zn, ot as Bn, pt as Vn, q as Hn, qt as Un, rn as Wn, rt as Gn, s as Kn, sn as qn, st as Jn, t as Yn, tn as Xn, tt as Zn, u as Qn, ut as $n, vn as er, vt as tr, w as nr, wt as rr, x as ir, xn as ar, xt as or, yn as sr, yt as cr, z as lr, zt as ur } from "./dropdown-menu-CDImlvP4.js";
|
|
13
13
|
import { a as dr, n as fr, r as pr, t as mr } from "./config-DOwBtRkI.js";
|
|
14
|
-
import { $ as hr, $t as gr, A as _r, B as vr, Ct as yr, E as br, F as xr, Ft as Sr, H as Cr, It as wr, K as Tr, Mt as Er, Qt as Dr, Rt as Or, V as kr, W as Ar, Z as jr, b as Mr, en as Nr, et as Pr, h as Fr, l as Ir, ot as Lr, qt as Rr, t as zr, u as Br, w as Vr, wt as Hr, y as Ur, zt as Wr } from "./error-entries-
|
|
14
|
+
import { $ as hr, $t as gr, A as _r, B as vr, Ct as yr, E as br, F as xr, Ft as Sr, H as Cr, It as wr, K as Tr, Mt as Er, Qt as Dr, Rt as Or, V as kr, W as Ar, Z as jr, b as Mr, en as Nr, et as Pr, h as Fr, l as Ir, ot as Lr, qt as Rr, t as zr, u as Br, w as Vr, wt as Hr, y as Ur, zt as Wr } from "./error-entries-C72eMO8B.js";
|
|
15
15
|
import { n as Gr, o as Kr, r as qr, s as Jr, t as Yr } from "./assertNever-DXGfUmPW.js";
|
|
16
16
|
import { t as Xr } from "./clsx-CoeGtWvn.js";
|
|
17
17
|
import { t as Zr } from "./react-dom-DdqGVp5N.js";
|
|
@@ -33,7 +33,7 @@ import { o as ba } from "./dist-DNkrY12t.js";
|
|
|
33
33
|
import { a as xa, i as Sa, n as Ca, o as wa, r as Ta, t as Ea } from "./dialog-mwa6XN15.js";
|
|
34
34
|
import { t as Da } from "./useAsyncData-P5-Oovhq.js";
|
|
35
35
|
import { n as W, t as G } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
|
|
36
|
-
import { t as Oa } from "./ErrorBoundary-
|
|
36
|
+
import { t as Oa } from "./ErrorBoundary-yrh8zWjd.js";
|
|
37
37
|
import { W as ka, n as Aa } from "./vega-loader.browser-Co9gYE8Z.js";
|
|
38
38
|
import { a as ja, n as Ma, r as Na, t as Pa } from "./loader-Bin_dutt.js";
|
|
39
39
|
import { t as Fa } from "./useIframeCapabilities-HTZiVlGV.js";
|
|
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { t } from "./react-Bgs_wQh3.js";
|
|
3
3
|
import { t as n } from "./react-dom-DdqGVp5N.js";
|
|
4
4
|
import { c as r, l as i, u as a } from "./data-grid-types-DIX_pCco.js";
|
|
5
|
-
import { a as o, i as s, n as c, r as l } from "./glide-data-editor-
|
|
5
|
+
import { a as o, i as s, n as c, r as l } from "./glide-data-editor-D7D0Jvth.js";
|
|
6
6
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js
|
|
7
7
|
var u = /* @__PURE__ */ e(t(), 1), d = /* @__PURE__ */ e(n(), 1), f = /*#__PURE__*/ o("div")({
|
|
8
8
|
name: "DataGridOverlayEditorStyle",
|
|
@@ -4,7 +4,7 @@ import { t as o } from "./react-Bgs_wQh3.js";
|
|
|
4
4
|
import { t as s } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { c, h as l, l as u, s as d, u as f } from "./tooltip-Bg-SDCwa.js";
|
|
6
6
|
import { t as p } from "./check-ywinAQy6.js";
|
|
7
|
-
import { A as m, C as h, E as g, M as _, S as v, _ as y, b, g as x, h as S, j as C, m as w, p as T, v as E, x as D, y as O } from "./select-
|
|
7
|
+
import { A as m, C as h, E as g, M as _, S as v, _ as y, b, g as x, h as S, j as C, m as w, p as T, v as E, x as D, y as O } from "./select-Lp8Knz8Z.js";
|
|
8
8
|
import { a as ee, s as k } from "./assertNever-DXGfUmPW.js";
|
|
9
9
|
import { t as te } from "./clsx-CoeGtWvn.js";
|
|
10
10
|
import { t as A } from "./react-dom-DdqGVp5N.js";
|
|
@@ -214,7 +214,7 @@ function Be(e) {
|
|
|
214
214
|
FORCE_BODY: !0,
|
|
215
215
|
CUSTOM_ELEMENT_HANDLING: {
|
|
216
216
|
tagNameCheck: /^(marimo-[A-Za-z][\w-]*|iconify-icon)$/,
|
|
217
|
-
attributeNameCheck: /^[A-Za-z][\w-]
|
|
217
|
+
attributeNameCheck: (e) => !/^on/i.test(e) && /^[A-Za-z][\w-]*$/.test(e)
|
|
218
218
|
},
|
|
219
219
|
SAFE_FOR_XML: !e.includes("marimo-mermaid")
|
|
220
220
|
};
|
|
@@ -3,15 +3,15 @@ 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-BKcX0ltw.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-C72eMO8B.js";
|
|
7
|
+
import { n as h, t as ee } from "./globals-BTaZSgBh.js";
|
|
8
8
|
import { r as g } from "./assertNever-DXGfUmPW.js";
|
|
9
9
|
import { t as _ } from "./jsx-runtime-D8btoEHk.js";
|
|
10
10
|
import { Pt as v, vt as te } from "./use-restore-focus-CE9Sflmg.js";
|
|
11
11
|
import { d as y } from "./static-state-CnQdTBTW.js";
|
|
12
12
|
import { a as ne, i as re, n as ie, r as ae } from "./dialog-mwa6XN15.js";
|
|
13
13
|
import { t as oe } from "./useAsyncData-P5-Oovhq.js";
|
|
14
|
-
import { t as se } from "./code-visibility-
|
|
14
|
+
import { t as se } from "./code-visibility-Bb479kFi.js";
|
|
15
15
|
//#region src/components/ui/skeleton.tsx
|
|
16
16
|
var b = /* @__PURE__ */ e(r(), 1), x = i(), S = _(), ce = (e) => {
|
|
17
17
|
let n = (0, x.c)(8), r, i;
|
|
@@ -4,8 +4,8 @@ import { t as a } from "./react-Bgs_wQh3.js";
|
|
|
4
4
|
import { t as o } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { i as s, n as c, r as l } from "./copy-icon-BKcX0ltw.js";
|
|
6
6
|
import { d as u } from "./tooltip-Bg-SDCwa.js";
|
|
7
|
-
import { c as d, d as f, i as p, n as m, s as h, t as g } from "./select-
|
|
8
|
-
import { J as _, d as v, h as y, i as b, l as x, n as S, o as C, s as w, t as T, u as E, xn as D } from "./dropdown-menu-
|
|
7
|
+
import { c as d, d as f, i as p, n as m, s as h, t as g } from "./select-Lp8Knz8Z.js";
|
|
8
|
+
import { J as _, d as v, h as y, i as b, l as x, n as S, o as C, s as w, t as T, u as E, xn as D } from "./dropdown-menu-CDImlvP4.js";
|
|
9
9
|
import { t as O } from "./pencil-CijoRsa3.js";
|
|
10
10
|
import { c as k, f as A, l as ee, n as j, o as te, s as ne, t as re, u as ie } from "./glide-utils-DYKWS2YV.js";
|
|
11
11
|
import { i as M, n as N } from "./assertNever-DXGfUmPW.js";
|
|
@@ -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-CE9Sflmg.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-yrh8zWjd.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-CzHCcLVt.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-DeFINyFW.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-Bg-SDCwa.js";
|
|
2
2
|
import { vt as t } from "./use-restore-focus-CE9Sflmg.js";
|
|
3
|
-
import { r as n } from "./code-visibility-
|
|
3
|
+
import { r as n } from "./code-visibility-Bb479kFi.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",
|
|
@@ -6,10 +6,10 @@ import { i as m, n as h, t as g } from "./copy-icon-BKcX0ltw.js";
|
|
|
6
6
|
import { c as _, l as v, o as y, r as b, s as x } from "./chunk-7TTQLYRW-DBSfUUe5.js";
|
|
7
7
|
import { c as S, h as C, i as w, l as T, s as ee, t as te, u as E } from "./tooltip-Bg-SDCwa.js";
|
|
8
8
|
import { a as ne, i as re, o as ie, r as D, s as O, t as ae } from "./useLifecycle-Ctr5lECo.js";
|
|
9
|
-
import { a as oe, c as se, i as ce, n as le, o as ue, r as de, s as fe, t as pe } from "./select-
|
|
10
|
-
import { J as me, X as he, ht as ge } from "./dropdown-menu-
|
|
9
|
+
import { a as oe, c as se, i as ce, n as le, o as ue, r as de, s as fe, t as pe } from "./select-Lp8Knz8Z.js";
|
|
10
|
+
import { J as me, X as he, ht as ge } from "./dropdown-menu-CDImlvP4.js";
|
|
11
11
|
import { c as _e, l as ve, n as ye } from "./config-DOwBtRkI.js";
|
|
12
|
-
import { Bt as k, C as A, E as be, Et as xe, F as Se, Ft as Ce, Gt as we, I as j, Kt as Te, Lt as Ee, M as De, O as Oe, P as ke, Pt as Ae, Qt as je, Rt as Me, S as Ne, St as Pe, T as Fe, U as Ie, Ut as Le, Vt as Re, W as ze, Xt as Be, _ as Ve, _t as He, a as Ue, dt as We, f as Ge, ft as Ke, gt as qe, h as Je, ht as Ye, jt as Xe, k as Ze, lt as Qe, mt as $e, nt as et, o as tt, p as nt, pt as rt, qt as it, rt as at, s as ot, tt as st, ut as ct, v as lt, vt as ut, wt as dt, x as ft, yt as pt } from "./error-entries-
|
|
12
|
+
import { Bt as k, C as A, E as be, Et as xe, F as Se, Ft as Ce, Gt as we, I as j, Kt as Te, Lt as Ee, M as De, O as Oe, P as ke, Pt as Ae, Qt as je, Rt as Me, S as Ne, St as Pe, T as Fe, U as Ie, Ut as Le, Vt as Re, W as ze, Xt as Be, _ as Ve, _t as He, a as Ue, dt as We, f as Ge, ft as Ke, gt as qe, h as Je, ht as Ye, jt as Xe, k as Ze, lt as Qe, mt as $e, nt as et, o as tt, p as nt, pt as rt, qt as it, rt as at, s as ot, tt as st, ut as ct, v as lt, vt as ut, wt as dt, x as ft, yt as pt } from "./error-entries-C72eMO8B.js";
|
|
13
13
|
import { n as mt } from "./assertNever-DXGfUmPW.js";
|
|
14
14
|
import { t as ht } from "./react-dom-DdqGVp5N.js";
|
|
15
15
|
import { t as gt } 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-BKcX0ltw.js";
|
|
6
|
-
import { B as T, Bt as E, Dt as D, E as O, F as k, Ft as A, Ht as j, I as M, It as N, L as P, Lt as F, M as I, O as L, Ot as R, P as z, Pt as B, R as ee, Rt as te, St as ne, Ut as re, X as ie, Y as ae, _ as oe, _t as se, a as ce, at as le, b as ue, c as de, ct as fe, gt as pe, i as me, it as he, j as ge, jt as _e, lt as ve, n as ye, nt as be, o as xe, pt as Se, q as Ce, rt as we, st as Te, ut as Ee, vt as De, xt as Oe, yt as ke, z as Ae, zt as je } from "./html-to-image-
|
|
6
|
+
import { B as T, Bt as E, Dt as D, E as O, F as k, Ft as A, Ht as j, I as M, It as N, L as P, Lt as F, M as I, O as L, Ot as R, P as z, Pt as B, R as ee, Rt as te, St as ne, Ut as re, X as ie, Y as ae, _ as oe, _t as se, a as ce, at as le, b as ue, c as de, ct as fe, gt as pe, i as me, it as he, j as ge, jt as _e, lt as ve, n as ye, nt as be, o as xe, pt as Se, q as Ce, rt as we, st as Te, ut as Ee, vt as De, xt as Oe, yt as ke, z as Ae, zt as je } from "./html-to-image-ZjAXncYM.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-Bg-SDCwa.js";
|
|
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-
|
|
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, bn as Sn, bt as Cn, c as wn, cn as Tn, ct as En, d as Dn, dn as On, dt as kn, en as An, f as jn, fn as Mn, ft as Nn, g as Pn, gn as Fn, gt as In, h as Ln, hn as Rn, ht as zn, in as Bn, it as Vn, j as Hn, jt as Un, k 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, yt as Er, z as Dr, zt as Or } from "./common-
|
|
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-DFL4I9cF.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, bn as Sn, bt as Cn, c as wn, cn as Tn, ct as En, d as Dn, dn as On, dt as kn, en as An, f as jn, fn as Mn, ft as Nn, g as Pn, gn as Fn, gt as In, h as Ln, hn as Rn, ht as zn, in as Bn, it as Vn, j as Hn, jt as Un, k 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, yt as Er, z as Dr, zt as Or } from "./common-I06X3NvT.js";
|
|
10
10
|
import { a as kr, n as Ar, s as jr, t as Mr } from "./useLifecycle-Ctr5lECo.js";
|
|
11
11
|
import { t as Nr } from "./check-ywinAQy6.js";
|
|
12
|
-
import { A as Pr, C as Fr, D as Ir, M as Lr, O as Rr, a as zr, c as Br, d as Vr, i as Hr, k as Ur, l as Wr, n as Gr, o as Kr, r as qr, s as Jr, t as Yr, w as Xr, x as Zr } from "./select-
|
|
13
|
-
import { $ as Qr, At as $r, B as ei, C as ti, Cn as ni, G as ri, Nt as ii, Q as ai, Sn as oi, T as si, V as ci, X as li, Y as ui, Z as di, _ as fi, a as pi, b as mi, c as hi, f as gi, g as _i, h as vi, i as yi, m as bi, mt as xi, n as Si, p as Ci, r as wi, rt as Ti, s as Ei, t as Di, v as Oi, vt as ki, w as Ai, xn as ji, y as Mi } from "./dropdown-menu-
|
|
12
|
+
import { A as Pr, C as Fr, D as Ir, M as Lr, O as Rr, a as zr, c as Br, d as Vr, i as Hr, k as Ur, l as Wr, n as Gr, o as Kr, r as qr, s as Jr, t as Yr, w as Xr, x as Zr } from "./select-Lp8Knz8Z.js";
|
|
13
|
+
import { $ as Qr, At as $r, B as ei, C as ti, Cn as ni, G as ri, Nt as ii, Q as ai, Sn as oi, T as si, V as ci, X as li, Y as ui, Z as di, _ as fi, a as pi, b as mi, c as hi, f as gi, g as _i, h as vi, i as yi, m as bi, mt as xi, n as Si, p as Ci, r as wi, rt as Ti, s as Ei, t as Di, v as Oi, vt as ki, w as Ai, xn as ji, y as Mi } from "./dropdown-menu-CDImlvP4.js";
|
|
14
14
|
import { c as Ni, i as Pi, l as Fi, o as Ii, s as Li, t as Ri } from "./config-DOwBtRkI.js";
|
|
15
|
-
import { At as zi, B as Bi, Dt as Vi, E as Hi, Ft as Ui, G as Wi, Ht as Gi, J as Ki, Jt as qi, K as Ji, L as Yi, M as Xi, Mt as Zi, Nt as Qi, Ot as $i, R as ea, W as ta, Wt as na, X as ra, Y as ia, Yt as aa, Zt as oa, _ as sa, at as ca, bt as la, c as ua, ct as da, d as fa, g as pa, h as ma, it as ha, kt as ga, lt as _a, m as va, p as ya, q as ba, qt as xa, s as Sa, st as Ca, wt as wa, xt as Ta, z as Ea } from "./error-entries-
|
|
16
|
-
import { a as Da, d as Oa, i as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa, u as Fa } from "./process-output-
|
|
15
|
+
import { At as zi, B as Bi, Dt as Vi, E as Hi, Ft as Ui, G as Wi, Ht as Gi, J as Ki, Jt as qi, K as Ji, L as Yi, M as Xi, Mt as Zi, Nt as Qi, Ot as $i, R as ea, W as ta, Wt as na, X as ra, Y as ia, Yt as aa, Zt as oa, _ as sa, at as ca, bt as la, c as ua, ct as da, d as fa, g as pa, h as ma, it as ha, kt as ga, lt as _a, m as va, p as ya, q as ba, qt as xa, s as Sa, st as Ca, wt as wa, xt as Ta, z as Ea } from "./error-entries-C72eMO8B.js";
|
|
16
|
+
import { a as Da, d as Oa, i as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa, u as Fa } from "./process-output-CX4EvVxw.js";
|
|
17
17
|
import { t as Ia } from "./pencil-CijoRsa3.js";
|
|
18
18
|
import { a as La, c as Ra, d as za, f as Ba, i as Va, l as Ha, r as Ua } from "./glide-utils-DYKWS2YV.js";
|
|
19
|
-
import { n as Wa, t as Ga } from "./globals-
|
|
19
|
+
import { n as Wa, t as Ga } from "./globals-BTaZSgBh.js";
|
|
20
20
|
import { a as Ka, i as qa, n as Ja, r as Ya, s as Xa, t as Za } from "./assertNever-DXGfUmPW.js";
|
|
21
21
|
import { t as Qa } from "./react-dom-DdqGVp5N.js";
|
|
22
22
|
import { t as $a } from "./jsx-runtime-D8btoEHk.js";
|
|
@@ -40,10 +40,10 @@ import { n as Xs, t as Zs } from "./esm-Bwp_FHP0.js";
|
|
|
40
40
|
import { p as Qs } from "./dist-DpYpG8Yc.js";
|
|
41
41
|
import { t as $s } from "./useAsyncData-P5-Oovhq.js";
|
|
42
42
|
import { n as ec, r as tc, t as nc } from "./useDeepCompareMemoize-C90a6_io.js";
|
|
43
|
-
import { t as rc } from "./ErrorBoundary-
|
|
43
|
+
import { t as rc } from "./ErrorBoundary-yrh8zWjd.js";
|
|
44
44
|
import { G as ic, W as ac } from "./vega-loader.browser-Co9gYE8Z.js";
|
|
45
45
|
import { a as oc, n as sc } from "./loader-Bin_dutt.js";
|
|
46
|
-
import { a as cc, c as lc, i as uc, l as dc, o as fc, s as pc, t as mc } from "./code-visibility-
|
|
46
|
+
import { a as cc, c as lc, i as uc, l as dc, o as fc, s as pc, t as mc } from "./code-visibility-Bb479kFi.js";
|
|
47
47
|
import { t as hc } 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 gc = Object.freeze({
|
|
@@ -12489,7 +12489,7 @@ var cD = (e) => {
|
|
|
12489
12489
|
output: t
|
|
12490
12490
|
};
|
|
12491
12491
|
} };
|
|
12492
|
-
} }, mD = J.lazy(() => import("./chat-ui-
|
|
12492
|
+
} }, mD = J.lazy(() => import("./chat-ui-D49-nL6g.js").then((e) => ({ default: e.Chatbot }))), hD = U(K({
|
|
12493
12493
|
id: W(),
|
|
12494
12494
|
role: V([
|
|
12495
12495
|
"system",
|
|
@@ -12958,7 +12958,7 @@ function pO(e, t) {
|
|
|
12958
12958
|
}
|
|
12959
12959
|
//#endregion
|
|
12960
12960
|
//#region src/plugins/impl/DataEditorPlugin.tsx
|
|
12961
|
-
var mO = J.lazy(() => import("./glide-data-editor-
|
|
12961
|
+
var mO = J.lazy(() => import("./glide-data-editor-D7D0Jvth.js").then((e) => e.t)), hO = YE("marimo-data-editor", { cssStyles: [vD, yD] }).withData(K({
|
|
12962
12962
|
initialValue: K({ edits: U(K({
|
|
12963
12963
|
rowIdx: G(),
|
|
12964
12964
|
columnId: W(),
|
|
@@ -18116,7 +18116,7 @@ function Hj(e) {
|
|
|
18116
18116
|
}
|
|
18117
18117
|
//#endregion
|
|
18118
18118
|
//#region src/plugins/impl/data-explorer/DataExplorerPlugin.tsx
|
|
18119
|
-
var Uj = J.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
18119
|
+
var Uj = J.lazy(() => import("./ConnectedDataExplorerComponent-CKIkvMhb.js")), Wj = YE("marimo-data-explorer").withData(K({
|
|
18120
18120
|
label: W().nullish(),
|
|
18121
18121
|
data: W()
|
|
18122
18122
|
})).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(Uj, {
|
|
@@ -32704,7 +32704,7 @@ function _U(e) {
|
|
|
32704
32704
|
}
|
|
32705
32705
|
//#endregion
|
|
32706
32706
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
32707
|
-
var vU = J.lazy(() => import("./reveal-component-
|
|
32707
|
+
var vU = J.lazy(() => import("./reveal-component-Qt3AXbdC.js")), yU = (e) => {
|
|
32708
32708
|
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = xo(Ls), s = a === "read" || o, c = xo(la) > 1, [l, u] = (0, J.useState)(null), d;
|
|
32709
32709
|
t[0] !== i || t[1] !== n ? (d = hz(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
32710
32710
|
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-D7D0Jvth.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-ZjAXncYM.js";
|
|
2
2
|
import { h as t } from "./tooltip-Bg-SDCwa.js";
|
|
3
|
-
import { $ as n, Q as r } from "./error-entries-
|
|
3
|
+
import { $ as n, Q as r } from "./error-entries-C72eMO8B.js";
|
|
4
4
|
import { r as i } from "./assertNever-DXGfUmPW.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-Bg-SDCwa.js";
|
|
6
|
-
import { $ as u, Q as d, Sn as f, an as p, et as m, i as h, l as g, n as _, on as v, r as y, t as b, u as x, vn as S, yn as C } from "./common-
|
|
7
|
-
import { M as w } from "./select-
|
|
8
|
-
import { X as T } from "./dropdown-menu-
|
|
9
|
-
import { Nt as E } from "./error-entries-
|
|
6
|
+
import { $ as u, Q as d, Sn as f, an as p, et as m, i as h, l as g, n as _, on as v, r as y, t as b, u as x, vn as S, yn as C } from "./common-I06X3NvT.js";
|
|
7
|
+
import { M as w } from "./select-Lp8Knz8Z.js";
|
|
8
|
+
import { X as T } from "./dropdown-menu-CDImlvP4.js";
|
|
9
|
+
import { Nt as E } from "./error-entries-C72eMO8B.js";
|
|
10
10
|
import { t as D } from "./jsx-runtime-D8btoEHk.js";
|
|
11
11
|
import { Lt as O, Pt as k, f as A, i as ee } from "./use-restore-focus-CE9Sflmg.js";
|
|
12
12
|
import { t as j } from "./useEvent-BoN7U38T.js";
|
|
13
13
|
import { o as te } from "./static-state-CnQdTBTW.js";
|
|
14
|
-
import { n as ne, t as re } from "./code-visibility-
|
|
14
|
+
import { n as ne, t as re } from "./code-visibility-Bb479kFi.js";
|
|
15
15
|
/* empty css */
|
|
16
16
|
var M = c("sticky-note", [["path", {
|
|
17
17
|
d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
|
|
@@ -1080,29 +1080,27 @@ rn.displayName = "NativeSelect";
|
|
|
1080
1080
|
//#endregion
|
|
1081
1081
|
//#region src/components/ui/select.tsx
|
|
1082
1082
|
var an = xe, on = Ue, sn = D(ke), cn = Te, ln = P.forwardRef((e, n) => {
|
|
1083
|
-
let r = (0, $.c)(
|
|
1083
|
+
let r = (0, $.c)(19), i, a, o, s, c, l;
|
|
1084
1084
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5], l = r[6]) : ({className: a, children: i, onClear: o, variant: l, hideChevron: c, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c, r[6] = l);
|
|
1085
1085
|
let u = c !== void 0 && c, d;
|
|
1086
1086
|
r[7] !== a || r[8] !== l ? (d = t(nn({ variant: l }), "mb-0", a), r[7] = a, r[8] = l, r[9] = d) : d = r[9];
|
|
1087
1087
|
let f;
|
|
1088
|
-
r[10] !== u || r[11] !== o ? (f = o
|
|
1089
|
-
onPointerDown: (e) => {
|
|
1090
|
-
e.preventDefault(), e.stopPropagation(), o();
|
|
1091
|
-
},
|
|
1092
|
-
children: /* @__PURE__ */ (0, F.jsx)(g, { className: "h-4 w-4 opacity-50 hover:opacity-90" })
|
|
1093
|
-
}) : !u && /* @__PURE__ */ (0, F.jsx)(M, { className: "h-4 w-4 opacity-50" }), r[10] = u, r[11] = o, r[12] = f) : f = r[12];
|
|
1094
|
-
let p;
|
|
1095
|
-
r[13] === f ? p = r[14] : (p = /* @__PURE__ */ (0, F.jsx)(Ee, {
|
|
1088
|
+
r[10] !== u || r[11] !== o ? (f = (o || !u) && /* @__PURE__ */ (0, F.jsx)(Ee, {
|
|
1096
1089
|
asChild: !0,
|
|
1097
|
-
children:
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1090
|
+
children: o ? /* @__PURE__ */ (0, F.jsx)("span", {
|
|
1091
|
+
onPointerDown: (e) => {
|
|
1092
|
+
e.preventDefault(), e.stopPropagation(), o();
|
|
1093
|
+
},
|
|
1094
|
+
children: /* @__PURE__ */ (0, F.jsx)(g, { className: "h-4 w-4 opacity-50 hover:opacity-90" })
|
|
1095
|
+
}) : /* @__PURE__ */ (0, F.jsx)(M, { className: "h-4 w-4 opacity-50" })
|
|
1096
|
+
}), r[10] = u, r[11] = o, r[12] = f) : f = r[12];
|
|
1097
|
+
let p;
|
|
1098
|
+
return r[13] !== i || r[14] !== s || r[15] !== n || r[16] !== d || r[17] !== f ? (p = /* @__PURE__ */ (0, F.jsxs)(Ce, {
|
|
1101
1099
|
ref: n,
|
|
1102
1100
|
className: d,
|
|
1103
1101
|
...s,
|
|
1104
|
-
children: [i,
|
|
1105
|
-
}), r[
|
|
1102
|
+
children: [i, f]
|
|
1103
|
+
}), r[13] = i, r[14] = s, r[15] = n, r[16] = d, r[17] = f, r[18] = p) : p = r[18], p;
|
|
1106
1104
|
});
|
|
1107
1105
|
ln.displayName = Ce.displayName;
|
|
1108
1106
|
var un = re(Ae), dn = P.forwardRef((e, n) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./tooltip-Bg-SDCwa.js";
|
|
2
2
|
import { o as t } from "./useLifecycle-Ctr5lECo.js";
|
|
3
|
-
import { i as n, o as r } from "./useDateFormatter-
|
|
3
|
+
import { i as n, o as r } from "./useDateFormatter-D0qb9FqZ.js";
|
|
4
4
|
import { n as i } from "./assertNever-DXGfUmPW.js";
|
|
5
5
|
var a = e("align-center-vertical", [
|
|
6
6
|
["path", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
2
2
|
import { t } from "./react-Bgs_wQh3.js";
|
|
3
3
|
import { h as n } from "./tooltip-Bg-SDCwa.js";
|
|
4
|
-
import { C as r } from "./select-
|
|
4
|
+
import { C as r } from "./select-Lp8Knz8Z.js";
|
|
5
5
|
var i = n("chart-pie", [["path", {
|
|
6
6
|
d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
|
|
7
7
|
key: "pzmjnu"
|
package/package.json
CHANGED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
import { createEvent, fireEvent, render } from "@testing-library/react";
|
|
3
|
+
import { Database } from "lucide-react";
|
|
4
|
+
import { describe, expect, it, vi } from "vitest";
|
|
5
|
+
import { Select, SelectTrigger } from "../select";
|
|
6
|
+
|
|
7
|
+
describe("SelectTrigger", () => {
|
|
8
|
+
it("renders its children without a chevron when hideChevron is true", () => {
|
|
9
|
+
const { getByRole } = render(
|
|
10
|
+
<Select>
|
|
11
|
+
<SelectTrigger aria-label="Data explorer" hideChevron={true}>
|
|
12
|
+
<Database aria-hidden="true" data-testid="trigger-icon" />
|
|
13
|
+
Data explorer
|
|
14
|
+
</SelectTrigger>
|
|
15
|
+
</Select>,
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
const trigger = getByRole("combobox", { name: "Data explorer" });
|
|
19
|
+
expect(trigger).toBeEnabled();
|
|
20
|
+
expect(
|
|
21
|
+
trigger.querySelector('[data-testid="trigger-icon"]'),
|
|
22
|
+
).toBeInTheDocument();
|
|
23
|
+
expect(trigger.querySelectorAll("svg")).toHaveLength(1);
|
|
24
|
+
expect(trigger).not.toHaveTextContent("▼");
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it("shows the default chevron and updates when hideChevron changes", () => {
|
|
28
|
+
const { getByRole, rerender } = render(
|
|
29
|
+
<Select>
|
|
30
|
+
<SelectTrigger aria-label="Data explorer">Data explorer</SelectTrigger>
|
|
31
|
+
</Select>,
|
|
32
|
+
);
|
|
33
|
+
const trigger = getByRole("combobox", { name: "Data explorer" });
|
|
34
|
+
expect(trigger.querySelectorAll("svg")).toHaveLength(1);
|
|
35
|
+
|
|
36
|
+
rerender(
|
|
37
|
+
<Select>
|
|
38
|
+
<SelectTrigger aria-label="Data explorer" hideChevron={true}>
|
|
39
|
+
Data explorer
|
|
40
|
+
</SelectTrigger>
|
|
41
|
+
</Select>,
|
|
42
|
+
);
|
|
43
|
+
expect(trigger.querySelectorAll("svg")).toHaveLength(0);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it.each([false, true])(
|
|
47
|
+
"clears on pointer down without opening when hideChevron is %s",
|
|
48
|
+
(hideChevron) => {
|
|
49
|
+
const onClear = vi.fn();
|
|
50
|
+
const onOpenChange = vi.fn();
|
|
51
|
+
const { getByRole } = render(
|
|
52
|
+
<Select onOpenChange={onOpenChange}>
|
|
53
|
+
<SelectTrigger
|
|
54
|
+
aria-label="Data explorer"
|
|
55
|
+
hideChevron={hideChevron}
|
|
56
|
+
onClear={onClear}
|
|
57
|
+
>
|
|
58
|
+
Data explorer
|
|
59
|
+
</SelectTrigger>
|
|
60
|
+
</Select>,
|
|
61
|
+
);
|
|
62
|
+
const trigger = getByRole("combobox", { name: "Data explorer" });
|
|
63
|
+
const icon = trigger.querySelector("svg");
|
|
64
|
+
expect(icon).not.toBeNull();
|
|
65
|
+
if (!icon) {
|
|
66
|
+
throw new Error("Expected clear icon");
|
|
67
|
+
}
|
|
68
|
+
const event = createEvent.pointerDown(icon, {
|
|
69
|
+
bubbles: true,
|
|
70
|
+
cancelable: true,
|
|
71
|
+
});
|
|
72
|
+
fireEvent(icon, event);
|
|
73
|
+
|
|
74
|
+
expect(event.defaultPrevented).toBe(true);
|
|
75
|
+
expect(onClear).toHaveBeenCalledOnce();
|
|
76
|
+
expect(onOpenChange).not.toHaveBeenCalled();
|
|
77
|
+
expect(trigger).toHaveAttribute("aria-expanded", "false");
|
|
78
|
+
},
|
|
79
|
+
);
|
|
80
|
+
});
|
|
@@ -40,21 +40,23 @@ const SelectTrigger = React.forwardRef<
|
|
|
40
40
|
{...props}
|
|
41
41
|
>
|
|
42
42
|
{children}
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
e
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
43
|
+
{(onClear || !hideChevron) && (
|
|
44
|
+
<SelectPrimitive.Icon asChild={true}>
|
|
45
|
+
{onClear ? (
|
|
46
|
+
<span
|
|
47
|
+
onPointerDown={(e) => {
|
|
48
|
+
e.preventDefault();
|
|
49
|
+
e.stopPropagation();
|
|
50
|
+
onClear();
|
|
51
|
+
}}
|
|
52
|
+
>
|
|
53
|
+
<XIcon className="h-4 w-4 opacity-50 hover:opacity-90" />
|
|
54
|
+
</span>
|
|
55
|
+
) : (
|
|
56
|
+
<ChevronDown className="h-4 w-4 opacity-50" />
|
|
57
|
+
)}
|
|
58
|
+
</SelectPrimitive.Icon>
|
|
59
|
+
)}
|
|
58
60
|
</SelectPrimitive.Trigger>
|
|
59
61
|
),
|
|
60
62
|
);
|
|
@@ -9,6 +9,29 @@ import {
|
|
|
9
9
|
} from "../outline";
|
|
10
10
|
|
|
11
11
|
describe("parseOutline", () => {
|
|
12
|
+
it.each(["text/html", "text/markdown"] as const)(
|
|
13
|
+
"removes custom-element handlers from %s headings",
|
|
14
|
+
(mimetype) => {
|
|
15
|
+
const outline = parseOutline({
|
|
16
|
+
mimetype,
|
|
17
|
+
timestamp: 0,
|
|
18
|
+
channel: "output",
|
|
19
|
+
data: `<h1 id="title"><marimo-test style="animation: spin 1s linear;" onanimationstart="alert(1)">Title</marimo-test> <strong>bold</strong></h1><h2 id="next">Next</h2>`,
|
|
20
|
+
});
|
|
21
|
+
expect(outline).toEqual({
|
|
22
|
+
items: [
|
|
23
|
+
{
|
|
24
|
+
by: { id: "title" },
|
|
25
|
+
level: 1,
|
|
26
|
+
name: "Title bold",
|
|
27
|
+
html: '<marimo-test style="animation: spin 1s linear;">Title</marimo-test> <strong>bold</strong>',
|
|
28
|
+
},
|
|
29
|
+
{ by: { id: "next" }, level: 2, name: "Next" },
|
|
30
|
+
],
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
);
|
|
34
|
+
|
|
12
35
|
it("can parse html outline", () => {
|
|
13
36
|
const html = `
|
|
14
37
|
<span class="markdown">
|
|
@@ -126,6 +126,33 @@ describe("sanitizeHtml", () => {
|
|
|
126
126
|
);
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
+
describe.each(["marimo-slider", "marimo-custom-element", "iconify-icon"])(
|
|
130
|
+
"%s attributes",
|
|
131
|
+
(tag) => {
|
|
132
|
+
test.each([
|
|
133
|
+
"onclick",
|
|
134
|
+
"onerror",
|
|
135
|
+
"onload",
|
|
136
|
+
"onfocus",
|
|
137
|
+
"onanimationstart",
|
|
138
|
+
"ontransitionend",
|
|
139
|
+
"onpointerover",
|
|
140
|
+
"ONCLICK",
|
|
141
|
+
"onAnimationStart",
|
|
142
|
+
"onfutureevent",
|
|
143
|
+
])("removes %s", (attribute) => {
|
|
144
|
+
expect(
|
|
145
|
+
sanitizeHtml(`<${tag} ${attribute}="alert(1)">Text</${tag}>`),
|
|
146
|
+
).toBe(`<${tag}>Text</${tag}>`);
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
test("preserves widget and presentation attributes", () => {
|
|
150
|
+
const html = `<${tag} value="50" data-value="50" aria-label="Example" class="widget" style="color: blue;" icon="lucide:leaf" flip="horizontal"></${tag}>`;
|
|
151
|
+
expect(sanitizeHtml(html)).toBe(html);
|
|
152
|
+
});
|
|
153
|
+
},
|
|
154
|
+
);
|
|
155
|
+
|
|
129
156
|
test("preserves marimo elements with valid naming", () => {
|
|
130
157
|
const html = "<marimo-custom-element></marimo-custom-element>";
|
|
131
158
|
expect(sanitizeHtml(html)).toMatchInlineSnapshot(
|
|
@@ -53,7 +53,8 @@ export function sanitizeHtml(html: string) {
|
|
|
53
53
|
FORCE_BODY: true,
|
|
54
54
|
CUSTOM_ELEMENT_HANDLING: {
|
|
55
55
|
tagNameCheck: /^(marimo-[A-Za-z][\w-]*|iconify-icon)$/,
|
|
56
|
-
attributeNameCheck:
|
|
56
|
+
attributeNameCheck: (name) =>
|
|
57
|
+
!/^on/i.test(name) && /^[A-Za-z][\w-]*$/.test(name),
|
|
57
58
|
},
|
|
58
59
|
// This flag means we should sanitize such that is it safe for XML,
|
|
59
60
|
// but this is only used for HTML content.
|