@marimo-team/islands 0.26.1-dev20 → 0.26.1-dev25
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-CR9WyiEc.js → ConnectedDataExplorerComponent-jtTaDisw.js} +16 -16
- package/dist/{ErrorBoundary-Cx-CwafE.js → ErrorBoundary-Bs2ehxEI.js} +6 -6
- package/dist/{abnfDiagram-VCTEODGH-DGAbsdXT.js → abnfDiagram-VCTEODGH-cUj3Gnnh.js} +2 -2
- package/dist/{any-language-editor-DzGF1ll-.js → any-language-editor-BHgkY7jY.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-D4DnIo7R.js → architectureDiagram-5GKGNRK7-CIAZgn9d.js} +1 -1
- package/dist/{assertNever-CqwxSD_2.js → assertNever-BHnIohkX.js} +13 -13
- package/dist/{chat-ui-qZdDDrzU.js → chat-ui-DOvIzlMA.js} +46 -46
- package/dist/{check-D9vf6LYF.js → check-LtjuWmNn.js} +1 -1
- package/dist/{chunk-IMKFNOWR-Bc_i6jWx.js → chunk-IMKFNOWR-CB9N3qYR.js} +1 -1
- package/dist/{chunk-SHT3W25Y-CGML5pnF.js → chunk-SHT3W25Y-D9njV7TI.js} +1 -1
- package/dist/{chunk-SVP7TREG-ZpeFKfFT.js → chunk-SVP7TREG-CUCE0BFm.js} +1 -1
- package/dist/{chunk-TICWLB2K-C6cLmcg8.js → chunk-TICWLB2K-iQB6ttkI.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV--q40NTXr.js → classDiagram-ZZMXUADV-BI1VBNIo.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-Dt_Pp94L.js → classDiagram-v2-VYDZK3BY-BYL3asWh.js} +2 -2
- package/dist/{code-visibility-CVfXV6fG.js → code-visibility-BnMkbydx.js} +19 -19
- package/dist/{common-BXRJCkJO.js → common-CQur5dRA.js} +156 -156
- package/dist/{config-B8JCQMby.js → config-DL9e-OWE.js} +3 -3
- package/dist/{copy-icon-BLig0ZKb.js → copy-icon-rYV2znAe.js} +2 -2
- package/dist/{createReducer-BIUQ3TbG.js → createReducer-BdiSrxHu.js} +5 -5
- package/dist/{cynefinDiagram-5FMLGOSQ-2FtF_-cc.js → cynefinDiagram-5FMLGOSQ-DpGtYvnZ.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-Cymu2SPS.js → dagre-GXQ25YYZ-B5GDC2kN.js} +1 -1
- package/dist/{data-grid-overlay-editor-Mbtx3F9C.js → data-grid-overlay-editor-BXEY35Xl.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-OwDa8kAa.js → diagram-S7CK7UJ4-B2T25t1t.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CzRDwZwd.js → diagram-UQ7AKVKN-Dy3B5L_z.js} +1 -1
- package/dist/{diagram-VX7I27RA-XRIcgMDs.js → diagram-VX7I27RA-tOptWvNh.js} +1 -1
- package/dist/{diagram-Z3DM3KII-DdRDYAs6.js → diagram-Z3DM3KII-DsgZAokO.js} +1 -1
- package/dist/{dialog-DGh2HNAO.js → dialog-vs6x3On9.js} +19 -19
- package/dist/{dropdown-menu-ChH3oiqI.js → dropdown-menu-DYN2RV5d.js} +193 -193
- package/dist/{ebnfDiagram-PWID7BFC-CZMNMGNP.js → ebnfDiagram-PWID7BFC-CGWECzS1.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-ByxHAN4b.js → erDiagram-RLTQ6QDP-CZLi87y3.js} +1 -1
- package/dist/{error-banner-BvRaQnGH.js → error-banner-D-AC7pQx.js} +70 -70
- package/dist/{error-entries-DhI0hGvj.js → error-entries-CncQR572.js} +443 -436
- package/dist/{feedback-button-zx4NcNDn.js → feedback-button-BAOp7zqu.js} +120 -120
- package/dist/{flowDiagram-HODETNUW-BQpzWx5O.js → flowDiagram-HODETNUW-CS86WYbX.js} +2 -2
- package/dist/{formats-BxP8k8Un.js → formats-BUFLQJXY.js} +1 -1
- package/dist/{glide-data-editor-CvezoJKg.js → glide-data-editor-Ce94qTW7.js} +11 -11
- package/dist/{glide-utils-bKdvDwwo.js → glide-utils-CZ-O-CB_.js} +2 -2
- package/dist/{globals-CQuPaxzy.js → globals-Uqg4j5z5.js} +3 -3
- package/dist/{html-to-image-B803aaWE.js → html-to-image-BU7H-AM1.js} +4323 -4318
- package/dist/{infoDiagram-27XIBGKW-C9EWHkak.js → infoDiagram-27XIBGKW-C9JBFfpC.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-D67SGFvp.js → ishikawaDiagram-5VMMS53U-Eh3iuw2D.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CTMTiazR.js → kanban-definition-UXKFOSKX-DYtuVwYD.js} +1 -1
- package/dist/main.js +401 -400
- package/dist/{mermaid-DE_tvTGF.js → mermaid--k1o49nH.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-LzNgDy8O.js → mindmap-definition-YA3MSWOX-Dn1Cnqys.js} +1 -1
- package/dist/{number-overlay-editor-DxM7vsCk.js → number-overlay-editor-Br_Vp3Ws.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-DFMS6feI.js → pegDiagram-XKGWAZYB-DiY7rITR.js} +2 -2
- package/dist/{pencil-CHkdsX07.js → pencil-AWgwbH4D.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-C0MSBop-.js → pieDiagram-E7YTZNPT-BL6InbDs.js} +1 -1
- package/dist/{process-output-CnCLfvnL.js → process-output-xJm8T5-E.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-mbdav2pV.js → railroadDiagram-O6MQD6OU-DterenMu.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-C1HNBBO6.js → requirementDiagram-BXWQKSXE-Vb5_9LHC.js} +1 -1
- package/dist/{reveal-component-BefmhjJF.js → reveal-component-B7TgfbYJ.js} +1008 -1008
- package/dist/{select-CvorIE3l.js → select-CKLRKIzB.js} +298 -298
- package/dist/{sequenceDiagram-WJ2MYXX4-D6gBHifq.js → sequenceDiagram-WJ2MYXX4-BWsq8hMt.js} +1 -1
- package/dist/{spec-ayzaXGVq.js → spec-C4uOz0Em.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-Bx-fTtRZ.js → stateDiagram-D77RDMKH-nfKKy6aQ.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-Cec8T2yO.js → stateDiagram-v2-MP3YSRHH-DMUHA_9A.js} +2 -2
- package/dist/{static-state-CqwW3B_X.js → static-state-DZ1nSa6e.js} +9 -9
- package/dist/{swimlanes-42K2YHIH-C2bAgnov.js → swimlanes-42K2YHIH-N4qHIMoc.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CzeG-Mnb.js → swimlanesDiagram-VR7AAH4N-DQpDDjQb.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-DTJ0Rx8X.js → timeline-definition-24CTP7MA-Od8dY9F5.js} +1 -1
- package/dist/{toast-6V8Og7d5.js → toast-bhZHUEal.js} +187 -187
- package/dist/{tooltip-D0h-ZJ6j.js → tooltip-DSWC_Td_.js} +40 -40
- package/dist/{use-restore-focus-BFvwj2Hj.js → use-restore-focus-ocw7t85i.js} +1371 -1373
- package/dist/{useDateFormatter-D6o9PsWt.js → useDateFormatter-BiDS8uXQ.js} +2 -2
- package/dist/{useDeepCompareMemoize-D-Pbv7dN.js → useDeepCompareMemoize-BsaXfZ8C.js} +1 -1
- package/dist/{useLifecycle-CE0yGTMF.js → useLifecycle-CCV7yZ-v.js} +1 -1
- package/dist/{vega-component-DTf7GHQe.js → vega-component-DpTyTrz3.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-lIM3SAjl.js → vennDiagram-4TSXK5OY-Di3T2YMb.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-Bw_t7uvA.js → wardleyDiagram-VM6X3IG4-CKOF5DTi.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-BXwkLYKj.js → xychartDiagram-S5SC5T6Z-GYLPWSeb.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +27 -5
- package/src/__tests__/branded.ts +4 -0
- package/src/__tests__/notebook-analysis.ts +48 -0
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +28 -61
- package/src/components/editor/cell/__tests__/useRunCells.test.tsx +2 -2
- package/src/components/editor/navigation/__tests__/navigation.test.ts +0 -4
- package/src/components/tracing/tracing-keyboard.test.tsx +4 -3
- package/src/core/cells/__tests__/add-missing-import.test.ts +14 -9
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -11
- package/src/core/cells/__tests__/runs.test.ts +11 -11
- package/src/core/cells/add-missing-import.ts +2 -3
- package/src/core/cells/runs.ts +6 -4
- package/src/core/cells/session.ts +4 -1
- package/src/core/codemirror/code-lens/__tests__/entities.test.ts +7 -11
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +8 -13
- package/src/core/codemirror/code-lens/__tests__/perf.test.ts +7 -9
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +9 -13
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +16 -35
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +2 -18
- package/src/core/codemirror/reactive-references/__tests__/extension.test.ts +8 -14
- package/src/core/datasets/__tests__/data-source.test.ts +15 -17
- package/src/core/datasets/data-source-connections.ts +8 -11
- package/src/core/datasets/state.ts +7 -12
- package/src/core/executions/__tests__/atoms.test.ts +2 -2
- package/src/core/executions/__tests__/freshness.test.ts +10 -5
- package/src/core/executions/__tests__/interrupt.test.ts +3 -1
- package/src/core/executions/__tests__/output-lifecycle.test.ts +3 -3
- package/src/core/executions/__tests__/output.test.ts +2 -2
- package/src/core/executions/__tests__/run.test.ts +2 -2
- package/src/core/executions/__tests__/select.test.ts +10 -10
- package/src/core/executions/atoms.ts +2 -1
- package/src/core/executions/freshness.ts +2 -2
- package/src/core/islands/bootstrap.ts +0 -2
- package/src/core/notebook/replica/__tests__/executions.test.ts +13 -9
- package/src/core/notebook/replica/__tests__/replica.test.ts +7 -2
- package/src/core/notebook/replica/replica.ts +11 -2
- package/src/core/notebook/replica/resources/executions.ts +29 -20
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +192 -1
- package/src/core/session/useNotebookSession.tsx +37 -37
- package/src/core/storage/__tests__/state.test.ts +6 -9
- package/src/core/storage/state.ts +5 -8
- package/src/core/transports/__tests__/static.test.ts +2 -1
- package/src/core/variables/state.ts +73 -68
- package/src/core/variables/types.ts +2 -2
- package/src/core/wasm/bridge.ts +5 -4
- package/src/core/variables/__tests__/state.test.ts +0 -148
|
@@ -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-Z2R2272J.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-DSWC_Td_.js";
|
|
6
|
+
import { E as f, t as p } from "./spec-C4uOz0Em.js";
|
|
7
|
+
import { a as m, i as h, o as g, r as _, s as v, t as y } from "./useLifecycle-CCV7yZ-v.js";
|
|
8
|
+
import { a as b, t as x } from "./useDateFormatter-BiDS8uXQ.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-CKLRKIzB.js";
|
|
10
|
+
import { r as O } from "./assertNever-BHnIohkX.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, Rt as ae, Ut as oe, Wt as se, d as ce } from "./use-restore-focus-ocw7t85i.js";
|
|
13
|
+
import { n as le } from "./error-banner-D-AC7pQx.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-BdiSrxHu.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";
|
|
@@ -5880,7 +5880,7 @@ var { valueAtom: gu, useActions: _u } = fe(hu, {
|
|
|
5880
5880
|
function vu() {
|
|
5881
5881
|
return _u();
|
|
5882
5882
|
}
|
|
5883
|
-
var yu =
|
|
5883
|
+
var yu = oe((e) => {
|
|
5884
5884
|
let t = e(gu);
|
|
5885
5885
|
if (!t.schema) return {};
|
|
5886
5886
|
let n = pu({
|
|
@@ -5904,7 +5904,7 @@ var yu = ie((e) => {
|
|
|
5904
5904
|
"size",
|
|
5905
5905
|
"shape"
|
|
5906
5906
|
], Su = (e) => {
|
|
5907
|
-
let t = (0, xe.c)(26), { schema: n, mark: r } = e, i =
|
|
5907
|
+
let t = (0, xe.c)(26), { schema: n, mark: r } = e, i = ie(gu), a = vu(), o = i.encoding.x && i.encoding.y, s;
|
|
5908
5908
|
t[0] !== a || t[1] !== o || t[2] !== n || t[3] !== i.encoding ? (s = (e) => /* @__PURE__ */ (0, $.jsx)(Cu, {
|
|
5909
5909
|
schema: n,
|
|
5910
5910
|
label: e,
|
|
@@ -6145,7 +6145,7 @@ function Ou(e) {
|
|
|
6145
6145
|
//#region src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx
|
|
6146
6146
|
var ku = (e) => {
|
|
6147
6147
|
let t = (0, xe.c)(5), n;
|
|
6148
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n =
|
|
6148
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = se(), t[0] = n) : n = t[0];
|
|
6149
6149
|
let r = n, i;
|
|
6150
6150
|
t[1] === e ? i = t[2] : (i = () => {
|
|
6151
6151
|
let t = r.sub(gu, () => {
|
|
@@ -6197,7 +6197,7 @@ var ju = (e) => {
|
|
|
6197
6197
|
}, t[0] = r, t[1] = n, t[2] = i) : i = t[2];
|
|
6198
6198
|
let a;
|
|
6199
6199
|
t[3] === n ? a = t[4] : (a = [n], t[3] = n, t[4] = a);
|
|
6200
|
-
let { data: c, isPending: l, error: u } = pe(i, a), { mark: f } =
|
|
6200
|
+
let { data: c, isPending: l, error: u } = pe(i, a), { mark: f } = ie(gu), m = ie(yu), { theme: h } = ce();
|
|
6201
6201
|
if (u) {
|
|
6202
6202
|
let e;
|
|
6203
6203
|
return t[5] === u ? e = t[6] : (e = /* @__PURE__ */ (0, $.jsx)(le, { error: u }), t[5] = u, t[6] = e), e;
|
|
@@ -6278,11 +6278,11 @@ var ju = (e) => {
|
|
|
6278
6278
|
} else O = t[32];
|
|
6279
6279
|
let k;
|
|
6280
6280
|
t[38] === O ? k = t[39] : (k = /* @__PURE__ */ (0, $.jsx)(Mu, { children: O }), t[38] = O, t[39] = k);
|
|
6281
|
-
let
|
|
6282
|
-
return t[40] !== k || t[41] !== E ? (
|
|
6281
|
+
let ae;
|
|
6282
|
+
return t[40] !== k || t[41] !== E ? (ae = /* @__PURE__ */ (0, $.jsxs)("div", {
|
|
6283
6283
|
className: "flex flex-col gap-2",
|
|
6284
6284
|
children: [E, k]
|
|
6285
|
-
}), t[40] = k, t[41] = E, t[42] =
|
|
6285
|
+
}), t[40] = k, t[41] = E, t[42] = ae) : ae = t[42], ae;
|
|
6286
6286
|
}, Mu = (e) => {
|
|
6287
6287
|
let t = (0, xe.c)(2), { children: n } = e;
|
|
6288
6288
|
if (kl.Children.count(n) === 0) return null;
|
|
@@ -2,13 +2,13 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { g as t, h as n, t as r } from "./button-Z2R2272J.js";
|
|
3
3
|
import { t as i } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as a } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { a as o, i as s, t as c } from "./copy-icon-
|
|
6
|
-
import { i as l } from "./tooltip-
|
|
5
|
+
import { a as o, i as s, t as c } from "./copy-icon-rYV2znAe.js";
|
|
6
|
+
import { i as l } from "./tooltip-DSWC_Td_.js";
|
|
7
7
|
import { t as u } from "./react-dom-DdqGVp5N.js";
|
|
8
8
|
import { t as d } from "./jsx-runtime-D8btoEHk.js";
|
|
9
|
-
import { Ct as f,
|
|
10
|
-
import { a as g, i as _, o as v, r as y, s as b, t as x } from "./toast-
|
|
11
|
-
import { o as S, t as C } from "./dialog-
|
|
9
|
+
import { Ct as f, Rt as p, l as m, o as h } from "./use-restore-focus-ocw7t85i.js";
|
|
10
|
+
import { a as g, i as _, o as v, r as y, s as b, t as x } from "./toast-bhZHUEal.js";
|
|
11
|
+
import { o as S, t as C } from "./dialog-vs6x3On9.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 w = a(), T = /* @__PURE__ */ e(i()), E = (0, T.createContext)(null), D = {
|
|
14
14
|
didCatch: !1,
|
|
@@ -148,7 +148,7 @@ function L(e) {
|
|
|
148
148
|
}
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region src/components/editor/boundary/ErrorBoundary.tsx
|
|
151
|
-
var R = (0, T.lazy)(() => import("./feedback-button-
|
|
151
|
+
var R = (0, T.lazy)(() => import("./feedback-button-BAOp7zqu.js").then((e) => ({ default: e.FeedbackModal }))), z = (e) => {
|
|
152
152
|
let t = (0, w.c)(2), n;
|
|
153
153
|
return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, N.jsx)(O, {
|
|
154
154
|
FallbackComponent: B,
|
|
@@ -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--k1o49nH.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-CUCE0BFm.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-Z2R2272J.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-rYV2znAe.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-D-AC7pQx.js";
|
|
8
8
|
import { t as o } from "./esm-Dw2ZydG_.js";
|
|
9
9
|
import { n as s, t as c } from "./esm-DY8dGAjJ.js";
|
|
10
10
|
//#region src/plugins/impl/code/any-language-editor.tsx
|
package/dist/{architectureDiagram-5GKGNRK7-D4DnIo7R.js → architectureDiagram-5GKGNRK7-CIAZgn9d.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--k1o49nH.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-Z2R2272J.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-DSWC_Td_.js";
|
|
5
5
|
import { t as o } from "./jsx-runtime-D8btoEHk.js";
|
|
6
|
-
import { _n as s,
|
|
6
|
+
import { _n as s, vn as c } from "./use-restore-focus-ocw7t85i.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] = c(t), [o, s] = 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 = s(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), c = n(t, o), l = s(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: c,
|
|
49
49
|
children: i
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
y.displayName = g;
|
|
53
53
|
function b(t) {
|
|
54
|
-
let n =
|
|
54
|
+
let n = s(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] = c(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: c, 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
|
+
s(() => {
|
|
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, c((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 && c((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
|
+
}, [c]), /* @__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, r as i, t as a } from "./button-Z2R2272J.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 { At as u, Bt as d, Dt as f, Et as p, Ft as m, Ht as h, J as g, Lt as _, M as v, Ot as y, Pt as b, Rt as x, U as S, V as C, W as w, Y as T, a as E, dt as D, et as O, f as k, g as A, h as j, ht as M, l as N, m as P, n as ee, nt as te, p as F, r as ne, st as re, t as ie, tt as ae, u as oe, v as se, wt as ce, xt as le } from "./html-to-image-
|
|
7
|
-
import { h as I, 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 { F as Se, G as Ce, M as we, Tt as Te, Vt as Ee, g as De, i as Oe, in as ke, kt as Ae, r as je, t as Me, yt 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-rYV2znAe.js";
|
|
6
|
+
import { At as u, Bt as d, Dt as f, Et as p, Ft as m, Ht as h, J as g, Lt as _, M as v, Ot as y, Pt as b, Rt as x, U as S, V as C, W as w, Y as T, a as E, dt as D, et as O, f as k, g as A, h as j, ht as M, l as N, m as P, n as ee, nt as te, p as F, r as ne, st as re, t as ie, tt as ae, u as oe, v as se, wt as ce, xt as le } from "./html-to-image-BU7H-AM1.js";
|
|
7
|
+
import { h as I, t as ue } from "./tooltip-DSWC_Td_.js";
|
|
8
|
+
import { d as de } from "./select-CKLRKIzB.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-DYN2RV5d.js";
|
|
10
|
+
import { a as be, l as xe } from "./config-DL9e-OWE.js";
|
|
11
|
+
import { F as Se, G as Ce, M as we, Tt as Te, Vt as Ee, g as De, i as Oe, in as ke, kt as Ae, r as je, t as Me, yt as Ne } from "./error-entries-CncQR572.js";
|
|
12
|
+
import { c as Pe, d as Fe, l as Ie, n as Le, t as Re, u as ze } from "./process-output-xJm8T5-E.js";
|
|
13
|
+
import { t as Be } from "./pencil-AWgwbH4D.js";
|
|
14
|
+
import { n as Ve, r as He, s as Ue } from "./assertNever-BHnIohkX.js";
|
|
15
15
|
import { t as We } from "./jsx-runtime-D8btoEHk.js";
|
|
16
|
-
import {
|
|
17
|
-
import { n as ht } from "./error-banner-
|
|
16
|
+
import { Bt as Ge, G as Ke, Ht as qe, J as Je, K as Ye, W as Xe, X as Ze, Y as Qe, Z as $e, at as et, ct as tt, d as nt, et as rt, ft as it, g as at, gt as ot, it as st, mt as ct, nt as lt, ot as ut, pt as dt, q as ft, tt as pt, ut as mt } from "./use-restore-focus-ocw7t85i.js";
|
|
17
|
+
import { n as ht } from "./error-banner-D-AC7pQx.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(ot(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 ct(e, t);
|
|
1426
1426
|
return n.success ? {
|
|
1427
1427
|
success: !0,
|
|
1428
1428
|
value: n.data
|
|
@@ -1556,23 +1556,23 @@ function di(e, t) {
|
|
|
1556
1556
|
return n;
|
|
1557
1557
|
}
|
|
1558
1558
|
var q = {
|
|
1559
|
-
array:
|
|
1560
|
-
boolean:
|
|
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:
|
|
1574
|
-
union:
|
|
1575
|
-
unknown:
|
|
1559
|
+
array: Je,
|
|
1560
|
+
boolean: Qe,
|
|
1561
|
+
custom: Ze,
|
|
1562
|
+
discriminatedUnion: $e,
|
|
1563
|
+
enum: Xe,
|
|
1564
|
+
instanceof: Ke,
|
|
1565
|
+
lazy: rt,
|
|
1566
|
+
literal: pt,
|
|
1567
|
+
looseObject: lt,
|
|
1568
|
+
never: st,
|
|
1569
|
+
null: Ye,
|
|
1570
|
+
number: et,
|
|
1571
|
+
object: ut,
|
|
1572
|
+
record: tt,
|
|
1573
|
+
string: mt,
|
|
1574
|
+
union: it,
|
|
1575
|
+
unknown: dt
|
|
1576
1576
|
}, fi = q.lazy(() => q.union([
|
|
1577
1577
|
q.null(),
|
|
1578
1578
|
q.string(),
|
|
@@ -3745,7 +3745,7 @@ var Na = (e) => {
|
|
|
3745
3745
|
//#endregion
|
|
3746
3746
|
//#region src/components/chat/chat-markdown.tsx
|
|
3747
3747
|
function Fa(e) {
|
|
3748
|
-
let t = (0, L.c)(3), { content: n } = e, r =
|
|
3748
|
+
let t = (0, L.c)(3), { content: n } = e, r = Ge(at)?.mode, i = r !== "agent" && r !== "code_mode", a;
|
|
3749
3749
|
return t[0] !== n || t[1] !== i ? (a = /* @__PURE__ */ (0, Z.jsx)(ne, {
|
|
3750
3750
|
content: n,
|
|
3751
3751
|
allowNotebookInsertion: i
|
|
@@ -3973,13 +3973,13 @@ function Ga(e) {
|
|
|
3973
3973
|
function Ka(e) {
|
|
3974
3974
|
return e == null || typeof e == "object" && gt(e);
|
|
3975
3975
|
}
|
|
3976
|
-
var qa =
|
|
3977
|
-
status:
|
|
3978
|
-
auth_required:
|
|
3979
|
-
action_url:
|
|
3980
|
-
next_steps:
|
|
3981
|
-
meta:
|
|
3982
|
-
message:
|
|
3976
|
+
var qa = lt({
|
|
3977
|
+
status: mt().default("success"),
|
|
3978
|
+
auth_required: Qe().default(!1),
|
|
3979
|
+
action_url: ft().optional(),
|
|
3980
|
+
next_steps: ft().optional(),
|
|
3981
|
+
meta: ft().optional(),
|
|
3982
|
+
message: mt().nullish()
|
|
3983
3983
|
}), Ja = (e) => {
|
|
3984
3984
|
let t = (0, L.c)(12), { data: n } = e, r;
|
|
3985
3985
|
if (t[0] !== n) {
|
|
@@ -5513,8 +5513,8 @@ function Cs(e) {
|
|
|
5513
5513
|
}
|
|
5514
5514
|
//#endregion
|
|
5515
5515
|
//#region src/components/editor/ai/prompt-input.tsx
|
|
5516
|
-
var ws = "marimo:ai-prompt-history", Ts = new Se(
|
|
5517
|
-
let t = (0, L.c)(28), { value: n, placeholder: i, placeholderAction: a, inputRef: o, className: s, onChange: c, onSubmit: l, onKeyDown: u, onClose: d, onAddFiles: f, additionalCompletions: p, maxHeight: m } = e, h = vt(l), _ = vt(d), v =
|
|
5516
|
+
var ws = "marimo:ai-prompt-history", Ts = new Se(Je(mt()), () => []), Es = (e) => {
|
|
5517
|
+
let t = (0, L.c)(28), { value: n, placeholder: i, placeholderAction: a, inputRef: o, className: s, onChange: c, onSubmit: l, onKeyDown: u, onClose: d, onAddFiles: f, additionalCompletions: p, maxHeight: m } = e, h = vt(l), _ = vt(d), v = qe(), { theme: y } = nt(), b;
|
|
5518
5518
|
t[0] === p ? b = t[1] : (b = (e) => p ? Po([p.triggerCompletionRegex], p.completions)(e) : null, t[0] = p, t[1] = b);
|
|
5519
5519
|
let x = vt(b), S;
|
|
5520
5520
|
if (t[2] !== x || t[3] !== _ || t[4] !== h || t[5] !== f || t[6] !== a || t[7] !== v) {
|
|
@@ -5584,11 +5584,11 @@ function Os(e) {
|
|
|
5584
5584
|
}
|
|
5585
5585
|
//#endregion
|
|
5586
5586
|
//#region src/plugins/impl/chat/chat-ui.tsx
|
|
5587
|
-
var ks = ce, As =
|
|
5588
|
-
type:
|
|
5589
|
-
message_id:
|
|
5590
|
-
content:
|
|
5591
|
-
is_final:
|
|
5587
|
+
var ks = ce, As = ut({
|
|
5588
|
+
type: pt("stream_chunk"),
|
|
5589
|
+
message_id: mt(),
|
|
5590
|
+
content: ft().nullable().transform((e) => e),
|
|
5591
|
+
is_final: Qe().optional()
|
|
5592
5592
|
});
|
|
5593
5593
|
function js(e, t) {
|
|
5594
5594
|
let { controllerRef: r, activeRequestIdRef: i } = t, a = r.current;
|
|
@@ -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--k1o49nH.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--k1o49nH.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--k1o49nH.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--k1o49nH.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--k1o49nH.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-iQB6ttkI.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--k1o49nH.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-iQB6ttkI.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-Z2R2272J.js";
|
|
2
|
-
import { $t as t, Kt as n, O as r } from "./error-entries-
|
|
3
|
-
import { n as i } from "./assertNever-
|
|
4
|
-
import {
|
|
5
|
-
import { c as u, m as d, n as f, o as p } from "./static-state-
|
|
2
|
+
import { $t as t, Kt as n, O as r } from "./error-entries-CncQR572.js";
|
|
3
|
+
import { n as i } from "./assertNever-BHnIohkX.js";
|
|
4
|
+
import { Bt as a, Ot as o, Ut as s, f as c, h as l } from "./use-restore-focus-ocw7t85i.js";
|
|
5
|
+
import { c as u, m as d, n as f, o as p } from "./static-state-DZ1nSa6e.js";
|
|
6
6
|
//#region src/core/islands/state.ts
|
|
7
|
-
var m =
|
|
7
|
+
var m = s(!1), h = s(/* @__PURE__ */ new Set()), g = s((e) => e(h)?.size === 0), _ = s(!1), v = s((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.26.1-
|
|
18
|
-
|
|
17
|
+
var b = y() || "0.26.1-dev25", x = s(b), S = s(!0);
|
|
18
|
+
s(null);
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/core/wasm/state.ts
|
|
21
|
-
var C =
|
|
21
|
+
var C = s({
|
|
22
22
|
kind: "loading",
|
|
23
23
|
message: "Initializing..."
|
|
24
24
|
}), w = {
|
|
@@ -30,7 +30,7 @@ var C = a({
|
|
|
30
30
|
kind: "wasm",
|
|
31
31
|
label: "Pyodide",
|
|
32
32
|
capabilities: w,
|
|
33
|
-
state:
|
|
33
|
+
state: s((e) => {
|
|
34
34
|
let t = e(C);
|
|
35
35
|
switch (t.kind) {
|
|
36
36
|
case "loading": return {
|
|
@@ -56,7 +56,7 @@ var C = a({
|
|
|
56
56
|
canRestart: !0,
|
|
57
57
|
supportsLsp: !0
|
|
58
58
|
},
|
|
59
|
-
state:
|
|
59
|
+
state: s((e) => {
|
|
60
60
|
let n = e(r);
|
|
61
61
|
switch (n.state) {
|
|
62
62
|
case t.OPEN: return { kind: "ready" };
|
|
@@ -81,12 +81,12 @@ var C = a({
|
|
|
81
81
|
kind: "static",
|
|
82
82
|
label: "Static",
|
|
83
83
|
capabilities: w,
|
|
84
|
-
state:
|
|
84
|
+
state: s({ kind: "ready" })
|
|
85
85
|
}, O = {
|
|
86
86
|
kind: "islands",
|
|
87
87
|
label: "Islands",
|
|
88
88
|
capabilities: w,
|
|
89
|
-
state:
|
|
89
|
+
state: s((e) => {
|
|
90
90
|
let t = e(m);
|
|
91
91
|
return t === !0 ? { kind: "ready" } : typeof t == "string" ? {
|
|
92
92
|
kind: "failed",
|
|
@@ -101,28 +101,28 @@ var C = a({
|
|
|
101
101
|
})
|
|
102
102
|
};
|
|
103
103
|
function k() {
|
|
104
|
-
return f() ? D :
|
|
104
|
+
return f() ? D : c() ? O : d() ? T : E;
|
|
105
105
|
}
|
|
106
|
-
var A =
|
|
107
|
-
|
|
106
|
+
var A = s(k());
|
|
107
|
+
s((e) => {
|
|
108
108
|
let t = e(A);
|
|
109
109
|
return e(t.state).kind !== "ready" || t.kind === "static" ? !1 : t.kind !== "remote" || e(n) === "ready";
|
|
110
110
|
});
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region src/core/meta/code-visibility.ts
|
|
113
|
-
var j =
|
|
113
|
+
var j = s((e) => {
|
|
114
114
|
let t = e(o);
|
|
115
115
|
return t !== null && [...t.cells.values()].some((e) => e.code !== null);
|
|
116
116
|
});
|
|
117
117
|
function M() {
|
|
118
|
-
let e =
|
|
119
|
-
if (t &&
|
|
118
|
+
let e = a(j), t = a(p), { mode: n } = a(u), r = a(S), o = a(A).kind;
|
|
119
|
+
if (t && o === "remote") return !0;
|
|
120
120
|
switch (n) {
|
|
121
121
|
case "edit":
|
|
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
|
}
|