@marimo-team/islands 0.25.3-dev419 → 0.25.3-dev420
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-DU3_5kY8.js → ConnectedDataExplorerComponent-CoEU9snz.js} +9 -9
- package/dist/{ErrorBoundary-QucJ8UcH.js → ErrorBoundary-OkPCZwqd.js} +6 -6
- package/dist/{abnfDiagram-VCTEODGH-B8K0jAls.js → abnfDiagram-VCTEODGH-RbfxpmIE.js} +2 -2
- package/dist/{any-language-editor-B4_DB75O.js → any-language-editor-CvTbmCdJ.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-CvIQmetx.js → architectureDiagram-5GKGNRK7-DzzNVRo4.js} +1 -1
- package/dist/{assertNever-mSPR3shX.js → assertNever-ChGm2jYv.js} +13 -13
- package/dist/{chat-ui-B_RJOYcP.js → chat-ui-DxD-0lMF.js} +42 -42
- package/dist/{check-Cy7tgHcN.js → check-BHRB6N0I.js} +1 -1
- package/dist/{chunk-IMKFNOWR-BAjKQ-DW.js → chunk-IMKFNOWR-1Zy6M_oP.js} +1 -1
- package/dist/{chunk-SHT3W25Y-ZNgk9609.js → chunk-SHT3W25Y-yAttqZEk.js} +1 -1
- package/dist/{chunk-SVP7TREG-C-eCzAlq.js → chunk-SVP7TREG-MKJpuJHR.js} +1 -1
- package/dist/{chunk-TICWLB2K-B6K_lMGd.js → chunk-TICWLB2K-BOC0OebH.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-WvEzff6_.js → classDiagram-ZZMXUADV-BOlD7kH9.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-C6jq882I.js → classDiagram-v2-VYDZK3BY-C3p3seuT.js} +2 -2
- package/dist/{code-visibility-DvjOxSCU.js → code-visibility-Cjmof3go.js} +18 -18
- package/dist/{common-KGFvhdv7.js → common-IWr3ajS6.js} +190 -190
- package/dist/{config-B8EcwkGB.js → config-EJnOxh0i.js} +15 -15
- package/dist/{copy-icon-BJpgGeTC.js → copy-icon-CeOpTht4.js} +2 -2
- package/dist/{createReducer-sm4RC5mJ.js → createReducer-BJJ0K5Tu.js} +5 -5
- package/dist/{cynefinDiagram-5FMLGOSQ-D803PUnc.js → cynefinDiagram-5FMLGOSQ-BKnxm64C.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-C-aJg32d.js → dagre-GXQ25YYZ-COBTexAI.js} +1 -1
- package/dist/{data-grid-overlay-editor-7Dtv34Jd.js → data-grid-overlay-editor-CJ4s7ulW.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BLVxtHnY.js → diagram-S7CK7UJ4-Dyt3J6ek.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-Beh5Pbg6.js → diagram-UQ7AKVKN-CJCsT4fA.js} +1 -1
- package/dist/{diagram-VX7I27RA-CULTkxM5.js → diagram-VX7I27RA-BboxCtbh.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BMCLEP1m.js → diagram-Z3DM3KII-DfRWWQ5t.js} +1 -1
- package/dist/{dialog-B6nQQBnz.js → dialog-B8vU2hHC.js} +19 -19
- package/dist/{dropdown-menu-DjX80o4Y.js → dropdown-menu-DzhAnAhr.js} +710 -710
- package/dist/{ebnfDiagram-PWID7BFC-C1nrF9vr.js → ebnfDiagram-PWID7BFC-DYxwv-nl.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-DdyMtJ9L.js → erDiagram-RLTQ6QDP-D9e5WUw7.js} +1 -1
- package/dist/{error-banner-B_inJFwt.js → error-banner-BRkKwvku.js} +58 -58
- package/dist/{error-entries-PI7-JXTO.js → error-entries-BNzYy3Ci.js} +199 -199
- package/dist/{feedback-button-K8GaXx54.js → feedback-button-CNlw0PFL.js} +7 -8
- package/dist/{flowDiagram-HODETNUW-bvV00CVg.js → flowDiagram-HODETNUW-tt7EepxX.js} +2 -2
- package/dist/{formats-CHMpl6QC.js → formats-HRSqKdFt.js} +1 -1
- package/dist/{glide-data-editor-DOTyVaei.js → glide-data-editor-SsDU5p2r.js} +11 -11
- package/dist/{glide-utils-BRuD_rZU.js → glide-utils-BzjESEmr.js} +2 -2
- package/dist/{globals-BXqXiOgm.js → globals-BET0Lqsh.js} +3 -3
- package/dist/{html-to-image-DRDPLn_a.js → html-to-image-CO_NVoKY.js} +4364 -4364
- package/dist/{infoDiagram-27XIBGKW-CJP3yC0n.js → infoDiagram-27XIBGKW-CpQH_joy.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-C1pLHIdi.js → ishikawaDiagram-5VMMS53U-d-it4xqm.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-NdrIJPqy.js → kanban-definition-UXKFOSKX-DItpqTFY.js} +1 -1
- package/dist/main.js +1303 -1303
- package/dist/{mermaid-BocCIdw6.js → mermaid-BugOVfeH.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-Vl1SDmoX.js → mindmap-definition-YA3MSWOX-D6IpF-_J.js} +1 -1
- package/dist/{number-overlay-editor-C5pRNGgM.js → number-overlay-editor-CQB7RHTl.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-B8WAtwHg.js → pegDiagram-XKGWAZYB-CXUu3QwE.js} +2 -2
- package/dist/{pencil-DM3KeZSc.js → pencil-DWRFEz2B.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-3UwTA4Ji.js → pieDiagram-E7YTZNPT-DoUJF0yj.js} +1 -1
- package/dist/{process-output-Dox_yeXz.js → process-output-CznNfcKe.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-C3w0QQqv.js → railroadDiagram-O6MQD6OU-BsGDhtLL.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-XfIlHoUh.js → requirementDiagram-BXWQKSXE-BHW0qW2Z.js} +1 -1
- package/dist/{reveal-component-CxH2xcwO.js → reveal-component-C1RY2hz7.js} +8 -8
- package/dist/{select-C9YSRW_M.js → select-Brvb-RwP.js} +114 -114
- package/dist/{sequenceDiagram-WJ2MYXX4-lwpyGn1v.js → sequenceDiagram-WJ2MYXX4-DpgYJzLl.js} +1 -1
- package/dist/{spec-VVUHPhhG.js → spec-BWpscSQi.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-DYBi4cqk.js → stateDiagram-D77RDMKH-Btf1jiYb.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DNc3nkzs.js → stateDiagram-v2-MP3YSRHH-DN9FyEf3.js} +2 -2
- package/dist/static-state-BhCfPRoz.js +68 -0
- package/dist/{swimlanes-42K2YHIH-DhzVHdX1.js → swimlanes-42K2YHIH-2l_tR9qL.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-Cok6zuub.js → swimlanesDiagram-VR7AAH4N-BAkmv8kE.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-IlEStAoK.js → timeline-definition-24CTP7MA-AxSxEOhx.js} +1 -1
- package/dist/{toast-BP9h0yJZ.js → toast-DOWc3HtU.js} +106 -106
- package/dist/{tooltip-DY2U4Rke.js → tooltip-DsQZP310.js} +57 -57
- package/dist/{use-restore-focus-Mex26exl.js → use-restore-focus-CTa7IRP6.js} +584 -550
- package/dist/{useDateFormatter-L6M4ljVG.js → useDateFormatter-CRuBYwR6.js} +2 -2
- package/dist/{useDeepCompareMemoize-MdvXCwAP.js → useDeepCompareMemoize-B2RNcTmn.js} +1 -1
- package/dist/{useLifecycle-CDeB28JV.js → useLifecycle-Bw0JtmoB.js} +1 -1
- package/dist/{vega-component-CIkkx4lH.js → vega-component-BV9sYHhU.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-3XmjJpX3.js → vennDiagram-4TSXK5OY-oHztO7MH.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-CLQU2FaC.js → wardleyDiagram-VM6X3IG4-DWeEjZSc.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-ZYCgWrwe.js → xychartDiagram-S5SC5T6Z-ESBlsY9i.js} +1 -1
- package/package.json +1 -1
- package/src/core/constants.ts +6 -0
- package/src/core/runtime/__tests__/runtime.test.ts +3 -1
- package/src/theme/__tests__/useTheme.test.ts +38 -9
- package/src/theme/useTheme.ts +16 -1
- package/dist/static-state-Ccv-89qp.js +0 -90
|
@@ -2,18 +2,18 @@ import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
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
|
-
import { h as u, t as d } from "./tooltip-
|
|
6
|
-
import { E as f, t as p } from "./spec-
|
|
7
|
-
import { a as m, i as h, o as g, r as _, s as v, t as y } from "./useLifecycle-
|
|
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-
|
|
10
|
-
import { r as O } from "./assertNever-
|
|
5
|
+
import { h as u, t as d } from "./tooltip-DsQZP310.js";
|
|
6
|
+
import { E as f, t as p } from "./spec-BWpscSQi.js";
|
|
7
|
+
import { a as m, i as h, o as g, r as _, s as v, t as y } from "./useLifecycle-Bw0JtmoB.js";
|
|
8
|
+
import { a as b, t as x } from "./useDateFormatter-CRuBYwR6.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-Brvb-RwP.js";
|
|
10
|
+
import { r as O } from "./assertNever-ChGm2jYv.js";
|
|
11
11
|
import { t as k } from "./jsx-runtime-D8btoEHk.js";
|
|
12
|
-
import {
|
|
13
|
-
import { n as le } from "./error-banner-
|
|
12
|
+
import { Bt as ie, Ft as ae, Lt as oe, Vt as se, d as ce } from "./use-restore-focus-CTa7IRP6.js";
|
|
13
|
+
import { n as le } from "./error-banner-BRkKwvku.js";
|
|
14
14
|
import { t as ue } from "./objects-DCmMvZtn.js";
|
|
15
15
|
import { t as de } from "./invariant-DLmrl-hA.js";
|
|
16
|
-
import { t as fe } from "./createReducer-
|
|
16
|
+
import { t as fe } from "./createReducer-BJJ0K5Tu.js";
|
|
17
17
|
import { t as pe } from "./useAsyncData-P5-Oovhq.js";
|
|
18
18
|
import { W as me } from "./vega-loader.browser-Co9gYE8Z.js";
|
|
19
19
|
import { n as he, r as ge } from "./react-vega-CGgQEf0O.js";
|
|
@@ -2,13 +2,13 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
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
|
-
import { a, t as o } from "./copy-icon-
|
|
6
|
-
import { i as s } from "./tooltip-
|
|
5
|
+
import { a, t as o } from "./copy-icon-CeOpTht4.js";
|
|
6
|
+
import { i as s } from "./tooltip-DsQZP310.js";
|
|
7
7
|
import { t as c } from "./react-dom-DdqGVp5N.js";
|
|
8
8
|
import { t as l } from "./jsx-runtime-D8btoEHk.js";
|
|
9
|
-
import {
|
|
10
|
-
import { a as m, i as h, o as g, r as _, s as v, t as y } from "./toast-
|
|
11
|
-
import { o as b, t as x } from "./dialog-
|
|
9
|
+
import { Ft as u, l as d, o as f, xt as p } from "./use-restore-focus-CTa7IRP6.js";
|
|
10
|
+
import { a as m, i as h, o as g, r as _, s as v, t as y } from "./toast-DOWc3HtU.js";
|
|
11
|
+
import { o as b, t as x } from "./dialog-B8vU2hHC.js";
|
|
12
12
|
//#region ../node_modules/.pnpm/react-error-boundary@5.0.0_react@19.3.1/node_modules/react-error-boundary/dist/react-error-boundary.esm.js
|
|
13
13
|
var S = i(), C = /* @__PURE__ */ e(r()), w = (0, C.createContext)(null), T = {
|
|
14
14
|
didCatch: !1,
|
|
@@ -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-CNlw0PFL.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,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as e } from "./src-D5uZaZib.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
3
3
|
import "./chunk-DU6HZSFF-4SDIhUTY.js";
|
|
4
|
-
import "./mermaid-
|
|
4
|
+
import "./mermaid-BugOVfeH.js";
|
|
5
5
|
import { m as n, t as r } from "./mermaid-parser.core-DtOnl7m4.js";
|
|
6
|
-
import { n as i, r as a, t as o } from "./chunk-SVP7TREG-
|
|
6
|
+
import { n as i, r as a, t as o } from "./chunk-SVP7TREG-MKJpuJHR.js";
|
|
7
7
|
import { t as s } from "./chunk-JWPE2WC7-DJvv1t8U.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-VCTEODGH.mjs
|
|
9
9
|
var c = n().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
|
|
@@ -2,9 +2,9 @@ import "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { g as e } from "./button-qQhINE7z.js";
|
|
3
3
|
import { t } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as n } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { t as r } from "./copy-icon-
|
|
5
|
+
import { t as r } from "./copy-icon-CeOpTht4.js";
|
|
6
6
|
import { t as i } from "./jsx-runtime-D8btoEHk.js";
|
|
7
|
-
import { n as a } from "./error-banner-
|
|
7
|
+
import { n as a } from "./error-banner-BRkKwvku.js";
|
|
8
8
|
import { t as o } from "./esm-Bwp_FHP0.js";
|
|
9
9
|
import { n as s, t as c } from "./esm-B9n0caHs.js";
|
|
10
10
|
//#region src/plugins/impl/code/any-language-editor.tsx
|
package/dist/{architectureDiagram-5GKGNRK7-CvIQmetx.js → architectureDiagram-5GKGNRK7-DzzNVRo4.js}
RENAMED
|
@@ -5,7 +5,7 @@ import { n as o } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
|
5
5
|
import { H as s, J as c, K as l, U as u, a as d, b as f, f as p, v as m, w as h, x as g, y as _, z as v } from "./chunk-DU6HZSFF-4SDIhUTY.js";
|
|
6
6
|
import { i as y, r as b, t as x } from "./chunk-PWAF6VOD-CRu_RGP2.js";
|
|
7
7
|
import { n as S } from "./chunk-GMAD6QVW-BJGF8QZL.js";
|
|
8
|
-
import { p as C } from "./mermaid-
|
|
8
|
+
import { p as C } from "./mermaid-BugOVfeH.js";
|
|
9
9
|
import { n as w } from "./mermaid-parser.core-DtOnl7m4.js";
|
|
10
10
|
import { t as T } from "./chunk-JWPE2WC7-DJvv1t8U.js";
|
|
11
11
|
import { t as E } from "./cytoscape.esm-BbeMznK5.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
2
2
|
import { g as t, p as n, u as r } from "./button-qQhINE7z.js";
|
|
3
3
|
import { t as i } from "./react-Bgs_wQh3.js";
|
|
4
|
-
import { h as a } from "./tooltip-
|
|
4
|
+
import { h as a } from "./tooltip-DsQZP310.js";
|
|
5
5
|
import { t as o } from "./jsx-runtime-D8btoEHk.js";
|
|
6
|
-
import {
|
|
6
|
+
import { hn as s, mn as c } from "./use-restore-focus-CTa7IRP6.js";
|
|
7
7
|
import { t as l } from "./invariant-DLmrl-hA.js";
|
|
8
8
|
var u = a("x", [["path", {
|
|
9
9
|
d: "M18 6 6 18",
|
|
@@ -17,7 +17,7 @@ var u = a("x", [["path", {
|
|
|
17
17
|
});
|
|
18
18
|
// @__NO_SIDE_EFFECTS__
|
|
19
19
|
function h(e) {
|
|
20
|
-
let t = e + "CollectionProvider", [i, a] =
|
|
20
|
+
let t = e + "CollectionProvider", [i, a] = s(t), [o, c] = i(t, {
|
|
21
21
|
collectionRef: { current: null },
|
|
22
22
|
itemMap: /* @__PURE__ */ new Map()
|
|
23
23
|
}), l = /* @__PURE__ */ m((e) => {
|
|
@@ -31,7 +31,7 @@ function h(e) {
|
|
|
31
31
|
}, "CollectionProvider");
|
|
32
32
|
l.displayName = t;
|
|
33
33
|
let u = e + "CollectionSlot", p = r(u), h = d.forwardRef((e, t) => {
|
|
34
|
-
let { scope: r, children: i } = e, a =
|
|
34
|
+
let { scope: r, children: i } = e, a = c(u, r), o = n(t, a.collectionRef);
|
|
35
35
|
return /* @__PURE__ */ (0, f.jsx)(p, {
|
|
36
36
|
ref: o,
|
|
37
37
|
children: i
|
|
@@ -39,19 +39,19 @@ function h(e) {
|
|
|
39
39
|
});
|
|
40
40
|
h.displayName = u;
|
|
41
41
|
let g = e + "CollectionItemSlot", _ = "data-radix-collection-item", v = r(g), y = d.forwardRef((e, t) => {
|
|
42
|
-
let { scope: r, children: i, ...a } = e, o = d.useRef(null),
|
|
42
|
+
let { scope: r, children: i, ...a } = e, o = d.useRef(null), s = n(t, o), l = c(g, r);
|
|
43
43
|
return d.useEffect(() => (l.itemMap.set(o, {
|
|
44
44
|
ref: o,
|
|
45
45
|
...a
|
|
46
46
|
}), () => void l.itemMap.delete(o))), /* @__PURE__ */ (0, f.jsx)(v, {
|
|
47
47
|
[_]: "",
|
|
48
|
-
ref:
|
|
48
|
+
ref: s,
|
|
49
49
|
children: i
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
y.displayName = g;
|
|
53
53
|
function b(t) {
|
|
54
|
-
let n =
|
|
54
|
+
let n = c(e + "CollectionConsumer", t);
|
|
55
55
|
return d.useCallback(() => {
|
|
56
56
|
let e = n.collectionRef.current;
|
|
57
57
|
if (!e) return [];
|
|
@@ -297,7 +297,7 @@ function b(e) {
|
|
|
297
297
|
m(b, "toSafeInteger");
|
|
298
298
|
// @__NO_SIDE_EFFECTS__
|
|
299
299
|
function x(e) {
|
|
300
|
-
let t = e + "CollectionProvider", [i, a] =
|
|
300
|
+
let t = e + "CollectionProvider", [i, a] = s(t), [o, l] = i(t);
|
|
301
301
|
o.displayName = e + "CollectionStableContextProvider";
|
|
302
302
|
let [u, p] = i(t);
|
|
303
303
|
u.displayName = e + "CollectionStatefulContextProvider";
|
|
@@ -358,7 +358,7 @@ function x(e) {
|
|
|
358
358
|
});
|
|
359
359
|
x.displayName = y;
|
|
360
360
|
let C = e + "CollectionItemSlot", D = r(C), O = d.forwardRef((e, t) => {
|
|
361
|
-
let { scope: r, children: i, ...a } = e, o = d.useRef(null), { setCollection:
|
|
361
|
+
let { scope: r, children: i, ...a } = e, o = d.useRef(null), { setCollection: s, registryRef: u } = l(C, r), p = d.useRef(a);
|
|
362
362
|
S(p.current, a) || (p.current = a);
|
|
363
363
|
let m = p.current, h = d.useCallback((e) => {
|
|
364
364
|
let t = u.current;
|
|
@@ -367,7 +367,7 @@ function x(e) {
|
|
|
367
367
|
element: e
|
|
368
368
|
}) : o.current && t.delete(o.current);
|
|
369
369
|
}, [u]), g = n(t, h, o);
|
|
370
|
-
|
|
370
|
+
c(() => {
|
|
371
371
|
let e = o.current, t = u.current;
|
|
372
372
|
e && t.has(e) && t.set(e, {
|
|
373
373
|
...m,
|
|
@@ -380,7 +380,7 @@ function x(e) {
|
|
|
380
380
|
((t?.element ?? null) !== e || e && t?.itemData !== m) && (v.current = e ? {
|
|
381
381
|
element: e,
|
|
382
382
|
itemData: m
|
|
383
|
-
} : null,
|
|
383
|
+
} : null, s((n) => {
|
|
384
384
|
let r = new _(n);
|
|
385
385
|
return t && t.element !== e && r.delete(t.element), e && r.set(e, {
|
|
386
386
|
...m,
|
|
@@ -389,12 +389,12 @@ function x(e) {
|
|
|
389
389
|
}));
|
|
390
390
|
}), d.useEffect(() => () => {
|
|
391
391
|
let e = v.current;
|
|
392
|
-
v.current = null, e &&
|
|
392
|
+
v.current = null, e && s((t) => {
|
|
393
393
|
if (!t.has(e.element)) return t;
|
|
394
394
|
let n = new _(t);
|
|
395
395
|
return n.delete(e.element), n;
|
|
396
396
|
});
|
|
397
|
-
}, [
|
|
397
|
+
}, [s]), /* @__PURE__ */ (0, f.jsx)(D, {
|
|
398
398
|
"data-radix-collection-item": "",
|
|
399
399
|
ref: g,
|
|
400
400
|
children: i
|
|
@@ -2,19 +2,19 @@ import { a as e, t } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
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
|
-
import { i as c, t as l } from "./copy-icon-
|
|
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-
|
|
7
|
-
import { h as F, t as ue } from "./tooltip-
|
|
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-
|
|
10
|
-
import { a as be, l as xe } from "./config-
|
|
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-
|
|
13
|
-
import { t as Be } from "./pencil-
|
|
14
|
-
import { n as Ve, r as He, s as Ue } from "./assertNever-
|
|
5
|
+
import { i as c, t as l } from "./copy-icon-CeOpTht4.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-CO_NVoKY.js";
|
|
7
|
+
import { h as F, t as ue } from "./tooltip-DsQZP310.js";
|
|
8
|
+
import { d as de } from "./select-Brvb-RwP.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-DzhAnAhr.js";
|
|
10
|
+
import { a as be, l as xe } from "./config-EJnOxh0i.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-BNzYy3Ci.js";
|
|
12
|
+
import { c as Pe, d as Fe, l as Ie, n as Le, t as Re, u as ze } from "./process-output-CznNfcKe.js";
|
|
13
|
+
import { t as Be } from "./pencil-DWRFEz2B.js";
|
|
14
|
+
import { n as Ve, r as He, s as Ue } from "./assertNever-ChGm2jYv.js";
|
|
15
15
|
import { t as We } from "./jsx-runtime-D8btoEHk.js";
|
|
16
|
-
import { $ as Ge,
|
|
17
|
-
import { n as ht } from "./error-banner-
|
|
16
|
+
import { $ as Ge, G as Ke, J as qe, K as Je, Lt as Ye, Q as Xe, U as Ze, W as Qe, X as $e, Y as et, ct as tt, d as nt, dt as rt, et as it, ft as at, g as ot, it as st, mt as ct, nt as lt, ot as ut, q as dt, rt as ft, ut as pt, zt as mt } from "./use-restore-focus-CTa7IRP6.js";
|
|
17
|
+
import { n as ht } from "./error-banner-BRkKwvku.js";
|
|
18
18
|
import { t as gt } from "./isEmpty-CdX7MTE1.js";
|
|
19
19
|
import { t as _t } from "./objects-DCmMvZtn.js";
|
|
20
20
|
import { t as vt } from "./useEvent-BoN7U38T.js";
|
|
@@ -1417,12 +1417,12 @@ function Jr(e, t) {
|
|
|
1417
1417
|
}
|
|
1418
1418
|
function Yr(e, t) {
|
|
1419
1419
|
let n = t?.useReferences ?? !1;
|
|
1420
|
-
return Ur(() => Gn(
|
|
1420
|
+
return Ur(() => Gn(ct(e, {
|
|
1421
1421
|
target: "draft-7",
|
|
1422
1422
|
io: "input",
|
|
1423
1423
|
reused: n ? "ref" : "inline"
|
|
1424
1424
|
})), { validate: async (t) => {
|
|
1425
|
-
let n = await
|
|
1425
|
+
let n = await at(e, t);
|
|
1426
1426
|
return n.success ? {
|
|
1427
1427
|
success: !0,
|
|
1428
1428
|
value: n.data
|
|
@@ -1556,23 +1556,23 @@ function ui(e, t) {
|
|
|
1556
1556
|
return n;
|
|
1557
1557
|
}
|
|
1558
1558
|
var q = {
|
|
1559
|
-
array:
|
|
1559
|
+
array: dt,
|
|
1560
1560
|
boolean: qe,
|
|
1561
|
-
custom:
|
|
1562
|
-
discriminatedUnion:
|
|
1563
|
-
enum:
|
|
1564
|
-
instanceof:
|
|
1565
|
-
lazy:
|
|
1566
|
-
literal:
|
|
1567
|
-
looseObject:
|
|
1568
|
-
never:
|
|
1569
|
-
null:
|
|
1570
|
-
number:
|
|
1571
|
-
object:
|
|
1572
|
-
record:
|
|
1573
|
-
string:
|
|
1561
|
+
custom: et,
|
|
1562
|
+
discriminatedUnion: $e,
|
|
1563
|
+
enum: Ze,
|
|
1564
|
+
instanceof: Qe,
|
|
1565
|
+
lazy: Xe,
|
|
1566
|
+
literal: Ge,
|
|
1567
|
+
looseObject: it,
|
|
1568
|
+
never: lt,
|
|
1569
|
+
null: Ke,
|
|
1570
|
+
number: ft,
|
|
1571
|
+
object: st,
|
|
1572
|
+
record: ut,
|
|
1573
|
+
string: tt,
|
|
1574
1574
|
union: pt,
|
|
1575
|
-
unknown:
|
|
1575
|
+
unknown: rt
|
|
1576
1576
|
}, di = q.lazy(() => q.union([
|
|
1577
1577
|
q.null(),
|
|
1578
1578
|
q.string(),
|
|
@@ -3745,7 +3745,7 @@ var Ma = (e) => {
|
|
|
3745
3745
|
//#endregion
|
|
3746
3746
|
//#region src/components/chat/chat-markdown.tsx
|
|
3747
3747
|
function Pa(e) {
|
|
3748
|
-
let t = (0, I.c)(3), { content: n } = e, r =
|
|
3748
|
+
let t = (0, I.c)(3), { content: n } = e, r = Ye(ot)?.mode, i = r !== "agent" && r !== "code_mode", a;
|
|
3749
3749
|
return t[0] !== n || t[1] !== i ? (a = /* @__PURE__ */ (0, Z.jsx)(re, {
|
|
3750
3750
|
content: n,
|
|
3751
3751
|
allowNotebookInsertion: i
|
|
@@ -3973,13 +3973,13 @@ function Wa(e) {
|
|
|
3973
3973
|
function Ga(e) {
|
|
3974
3974
|
return e == null || typeof e == "object" && gt(e);
|
|
3975
3975
|
}
|
|
3976
|
-
var Ka =
|
|
3977
|
-
status:
|
|
3976
|
+
var Ka = it({
|
|
3977
|
+
status: tt().default("success"),
|
|
3978
3978
|
auth_required: qe().default(!1),
|
|
3979
|
-
action_url:
|
|
3980
|
-
next_steps:
|
|
3981
|
-
meta:
|
|
3982
|
-
message:
|
|
3979
|
+
action_url: Je().optional(),
|
|
3980
|
+
next_steps: Je().optional(),
|
|
3981
|
+
meta: Je().optional(),
|
|
3982
|
+
message: tt().nullish()
|
|
3983
3983
|
}), qa = (e) => {
|
|
3984
3984
|
let t = (0, I.c)(12), { data: n } = e, r;
|
|
3985
3985
|
if (t[0] !== n) {
|
|
@@ -5515,8 +5515,8 @@ function Ss(e) {
|
|
|
5515
5515
|
}
|
|
5516
5516
|
//#endregion
|
|
5517
5517
|
//#region src/components/editor/ai/prompt-input.tsx
|
|
5518
|
-
var Cs = "marimo:ai-prompt-history", ws = new we(
|
|
5519
|
-
let t = (0, I.c)(35), { value: n, placeholder: i, inputRef: a, className: o, onChange: s, onSubmit: c, onKeyDown: l, onClose: u, onAddFiles: d, additionalCompletions: f, maxHeight: p } = e, m = vt(c), h = vt(u), g =
|
|
5518
|
+
var Cs = "marimo:ai-prompt-history", ws = new we(dt(tt()), () => []), Ts = (e) => {
|
|
5519
|
+
let t = (0, I.c)(35), { value: n, placeholder: i, inputRef: a, className: o, onChange: s, onSubmit: c, onKeyDown: l, onClose: u, onAddFiles: d, additionalCompletions: f, maxHeight: p } = e, m = vt(c), h = vt(u), g = mt(), { theme: _ } = nt(), v;
|
|
5520
5520
|
t[0] === f ? v = t[1] : (v = (e) => f ? No([f.triggerCompletionRegex], f.completions)(e) : null, t[0] = f, t[1] = v);
|
|
5521
5521
|
let y = vt(v), b, x, S, C;
|
|
5522
5522
|
if (t[2] !== y || t[3] !== d || t[4] !== g) {
|
|
@@ -5587,10 +5587,10 @@ function Ds(e) {
|
|
|
5587
5587
|
}
|
|
5588
5588
|
//#endregion
|
|
5589
5589
|
//#region src/plugins/impl/chat/chat-ui.tsx
|
|
5590
|
-
var Os = d, ks =
|
|
5591
|
-
type:
|
|
5592
|
-
message_id:
|
|
5593
|
-
content:
|
|
5590
|
+
var Os = d, ks = st({
|
|
5591
|
+
type: Ge("stream_chunk"),
|
|
5592
|
+
message_id: tt(),
|
|
5593
|
+
content: Je().nullable().transform((e) => e),
|
|
5594
5594
|
is_final: qe().optional()
|
|
5595
5595
|
});
|
|
5596
5596
|
function As(e, t) {
|
|
@@ -3,7 +3,7 @@ import { g as t, s as n } from "./chunk-75Z2AOVW-76L6My3P.js";
|
|
|
3
3
|
import { n as r, t as i } from "./src-D5uZaZib.js";
|
|
4
4
|
import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
5
5
|
import { H as o, K as s, U as c, a as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-DU6HZSFF-4SDIhUTY.js";
|
|
6
|
-
import { r as h } from "./mermaid-
|
|
6
|
+
import { r as h } from "./mermaid-BugOVfeH.js";
|
|
7
7
|
import { t as g } from "./chunk-F27PBJKO-COH2t-FO.js";
|
|
8
8
|
import { t as _ } from "./chunk-XXDRQBXY-BM-YIt-_.js";
|
|
9
9
|
import { t as v } from "./chunk-POPQ4Y6H-BFSZel4w.js";
|
|
@@ -5,7 +5,7 @@ import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
|
5
5
|
import { G as o, H as s, K as c, U as l, a as u, d, k as f, rt as p, s as ee, v as m, w as h, x as g, y as _ } from "./chunk-DU6HZSFF-4SDIhUTY.js";
|
|
6
6
|
import { t as te } from "./channel-B9eaiezW.js";
|
|
7
7
|
import { i as ne } from "./chunk-4HAMMTFA-qKgadZwy.js";
|
|
8
|
-
import { a as re, i as v, n as y, r as b } from "./mermaid-
|
|
8
|
+
import { a as re, i as v, n as y, r as b } from "./mermaid-BugOVfeH.js";
|
|
9
9
|
import { t as x } from "./chunk-5VM5RSS4-DKsmPCL6.js";
|
|
10
10
|
import { t as S } from "./chunk-F27PBJKO-COH2t-FO.js";
|
|
11
11
|
import { t as C } from "./chunk-XXDRQBXY-BM-YIt-_.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./src-D5uZaZib.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
3
3
|
import { D as n, a as r, b as i, c as a, x as o, z as s } from "./chunk-DU6HZSFF-4SDIhUTY.js";
|
|
4
|
-
import { p as c } from "./mermaid-
|
|
4
|
+
import { p as c } from "./mermaid-BugOVfeH.js";
|
|
5
5
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-SVP7TREG.mjs
|
|
6
6
|
var l = "", u = "", d = "", f = [], p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ t((e) => s(e, o()), "sanitizeText"), h = /* @__PURE__ */ t((e) => {
|
|
7
7
|
switch (e.type) {
|
|
@@ -3,7 +3,7 @@ import { c as t, g as n } from "./chunk-75Z2AOVW-76L6My3P.js";
|
|
|
3
3
|
import { n as r, t as i } from "./src-D5uZaZib.js";
|
|
4
4
|
import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
5
5
|
import { H as o, K as s, M as c, U as l, a as u, s as d, v as f, w as p, x as m, y as h, z as g } from "./chunk-DU6HZSFF-4SDIhUTY.js";
|
|
6
|
-
import { n as _, r as v } from "./mermaid-
|
|
6
|
+
import { n as _, r as v } from "./mermaid-BugOVfeH.js";
|
|
7
7
|
import { t as y } from "./chunk-5VM5RSS4-DKsmPCL6.js";
|
|
8
8
|
import { t as b } from "./chunk-F27PBJKO-COH2t-FO.js";
|
|
9
9
|
import { t as x } from "./chunk-XXDRQBXY-BM-YIt-_.js";
|
|
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-qKgadZwy.js";
|
|
|
9
9
|
import "./chunk-GVQU2GXP-BkolpSXU.js";
|
|
10
10
|
import "./chunk-L3NEJ4N5-B-BFQp9t.js";
|
|
11
11
|
import "./chunk-OSK3NFVY-BzfZ4VBG.js";
|
|
12
|
-
import "./mermaid-
|
|
12
|
+
import "./mermaid-BugOVfeH.js";
|
|
13
13
|
import "./chunk-F27PBJKO-COH2t-FO.js";
|
|
14
14
|
import "./chunk-XXDRQBXY-BM-YIt-_.js";
|
|
15
15
|
import "./chunk-POPQ4Y6H-BFSZel4w.js";
|
|
16
|
-
import { i as t, n, r, t as i } from "./chunk-TICWLB2K-
|
|
16
|
+
import { i as t, n, r, t as i } from "./chunk-TICWLB2K-BOC0OebH.js";
|
|
17
17
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-ZZMXUADV.mjs
|
|
18
18
|
var a = {
|
|
19
19
|
parser: n,
|
|
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-qKgadZwy.js";
|
|
|
9
9
|
import "./chunk-GVQU2GXP-BkolpSXU.js";
|
|
10
10
|
import "./chunk-L3NEJ4N5-B-BFQp9t.js";
|
|
11
11
|
import "./chunk-OSK3NFVY-BzfZ4VBG.js";
|
|
12
|
-
import "./mermaid-
|
|
12
|
+
import "./mermaid-BugOVfeH.js";
|
|
13
13
|
import "./chunk-F27PBJKO-COH2t-FO.js";
|
|
14
14
|
import "./chunk-XXDRQBXY-BM-YIt-_.js";
|
|
15
15
|
import "./chunk-POPQ4Y6H-BFSZel4w.js";
|
|
16
|
-
import { i as t, n, r, t as i } from "./chunk-TICWLB2K-
|
|
16
|
+
import { i as t, n, r, t as i } from "./chunk-TICWLB2K-BOC0OebH.js";
|
|
17
17
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-VYDZK3BY.mjs
|
|
18
18
|
var a = {
|
|
19
19
|
parser: n,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { g as e } from "./button-qQhINE7z.js";
|
|
2
|
-
import { D as t, Wt as n, Yt as r } from "./error-entries-
|
|
3
|
-
import { n as i } from "./assertNever-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { D as t, Wt as n, Yt as r } from "./error-entries-BNzYy3Ci.js";
|
|
3
|
+
import { n as i } from "./assertNever-ChGm2jYv.js";
|
|
4
|
+
import { Bt as a, Et as o, Lt as s, f as c, h as l } from "./use-restore-focus-CTa7IRP6.js";
|
|
5
|
+
import { c as u, m as d, n as f, o as p } from "./static-state-BhCfPRoz.js";
|
|
6
6
|
//#region src/core/islands/state.ts
|
|
7
|
-
var m =
|
|
7
|
+
var m = a(!1), h = a(/* @__PURE__ */ new Set()), g = a((e) => e(h)?.size === 0), _ = a(!1), v = a((e) => e(_) && e(m) === !1);
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/core/meta/state.ts
|
|
10
10
|
function y() {
|
|
@@ -14,11 +14,11 @@ 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-
|
|
18
|
-
|
|
17
|
+
var b = y() || "0.25.3-dev420", x = a(b), S = a(!0);
|
|
18
|
+
a(null);
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/core/wasm/state.ts
|
|
21
|
-
var C =
|
|
21
|
+
var C = a({
|
|
22
22
|
kind: "loading",
|
|
23
23
|
message: "Initializing..."
|
|
24
24
|
}), w = {
|
|
@@ -30,7 +30,7 @@ var C = o({
|
|
|
30
30
|
kind: "wasm",
|
|
31
31
|
label: "Pyodide",
|
|
32
32
|
capabilities: w,
|
|
33
|
-
state:
|
|
33
|
+
state: a((e) => {
|
|
34
34
|
let t = e(C);
|
|
35
35
|
switch (t.kind) {
|
|
36
36
|
case "loading": return {
|
|
@@ -56,7 +56,7 @@ var C = o({
|
|
|
56
56
|
canRestart: !0,
|
|
57
57
|
supportsLsp: !0
|
|
58
58
|
},
|
|
59
|
-
state:
|
|
59
|
+
state: a((e) => {
|
|
60
60
|
let n = e(t);
|
|
61
61
|
switch (n.state) {
|
|
62
62
|
case r.OPEN: return { kind: "ready" };
|
|
@@ -81,12 +81,12 @@ var C = o({
|
|
|
81
81
|
kind: "static",
|
|
82
82
|
label: "Static",
|
|
83
83
|
capabilities: w,
|
|
84
|
-
state:
|
|
84
|
+
state: a({ kind: "ready" })
|
|
85
85
|
}, O = {
|
|
86
86
|
kind: "islands",
|
|
87
87
|
label: "Islands",
|
|
88
88
|
capabilities: w,
|
|
89
|
-
state:
|
|
89
|
+
state: a((e) => {
|
|
90
90
|
let t = e(m);
|
|
91
91
|
return t === !0 ? { kind: "ready" } : typeof t == "string" ? {
|
|
92
92
|
kind: "failed",
|
|
@@ -101,17 +101,17 @@ var C = o({
|
|
|
101
101
|
})
|
|
102
102
|
};
|
|
103
103
|
function k() {
|
|
104
|
-
return f() ? D : c() ? O :
|
|
104
|
+
return f() ? D : c() ? O : d() ? T : E;
|
|
105
105
|
}
|
|
106
|
-
var A =
|
|
107
|
-
|
|
106
|
+
var A = a(k());
|
|
107
|
+
a((e) => {
|
|
108
108
|
let t = e(A);
|
|
109
109
|
return e(t.state).kind !== "ready" || t.kind === "static" ? !1 : t.kind !== "remote" || e(n) === "running";
|
|
110
110
|
});
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region src/core/meta/code-visibility.ts
|
|
113
|
-
var j =
|
|
114
|
-
let t = e(
|
|
113
|
+
var j = a((e) => {
|
|
114
|
+
let t = e(o);
|
|
115
115
|
return t !== null && [...t.cells.values()].some((e) => e.code !== null);
|
|
116
116
|
});
|
|
117
117
|
function M() {
|
|
@@ -122,7 +122,7 @@ function M() {
|
|
|
122
122
|
case "present": return !0;
|
|
123
123
|
case "home":
|
|
124
124
|
case "gallery": return !1;
|
|
125
|
-
case "read": return !r || new URLSearchParams(window.location.search).get(
|
|
125
|
+
case "read": return !r || new URLSearchParams(window.location.search).get(l.includeCode) === "false" ? !1 : e;
|
|
126
126
|
default: return i(n), !1;
|
|
127
127
|
}
|
|
128
128
|
}
|