@marimo-team/islands 0.25.3-dev266 → 0.25.3-dev268
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-C_hj7Poi.js → ConnectedDataExplorerComponent-eLHPh6uu.js} +9 -9
- package/dist/{ErrorBoundary-CvxlC3F1.js → ErrorBoundary-CQYAoD7X.js} +64 -69
- package/dist/{abnfDiagram-VCTEODGH-DzrZZXRD.js → abnfDiagram-VCTEODGH-hqd0IBtX.js} +2 -2
- package/dist/{any-language-editor-CFeWfC3o.js → any-language-editor-DnG26QXh.js} +1 -1
- package/dist/{architectureDiagram-5GKGNRK7-iF_snyFL.js → architectureDiagram-5GKGNRK7-BzLAFcc0.js} +1 -1
- package/dist/{strings-BCKpLFNU.js → assertNever-DIU3JJbt.js} +14 -14
- package/dist/{chat-ui-DFxNgzXF.js → chat-ui-BAnLgpTe.js} +1964 -1740
- package/dist/{chunk-IMKFNOWR-B7xytD4B.js → chunk-IMKFNOWR-DOeVvuyE.js} +1 -1
- package/dist/{chunk-SHT3W25Y-I8ZFP5L1.js → chunk-SHT3W25Y-DZoFI8wR.js} +1 -1
- package/dist/{chunk-SVP7TREG-Di-uAPdT.js → chunk-SVP7TREG-CWu86PSW.js} +1 -1
- package/dist/{chunk-TICWLB2K-BFpUy0ud.js → chunk-TICWLB2K-BrM0GoP3.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-Cqm4JGpx.js → classDiagram-ZZMXUADV-DYi4V2bB.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DFHRJpN3.js → classDiagram-v2-VYDZK3BY-tN7FIk-m.js} +2 -2
- package/dist/{code-visibility-SRM1JiD_.js → code-visibility-DcZ_RwaH.js} +44 -47
- package/dist/{common-yiRhZ6ZZ.js → common-BGeQilvh.js} +5846 -5519
- package/dist/{config-CmeG_Pb6.js → config-BsPruWMR.js} +2 -2
- package/dist/{createReducer-C_syF8Td.js → createReducer-DdtT_7ji.js} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-cuGOeTBC.js → cynefinDiagram-5FMLGOSQ-D5nCnDc-.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-DJ76aC4k.js → dagre-GXQ25YYZ-BHkd7f_i.js} +1 -1
- package/dist/{data-grid-overlay-editor-DLTzcQ4O.js → data-grid-overlay-editor-Dc4lW4A3.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-DLLc0sw7.js → diagram-S7CK7UJ4-D1ALppT2.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-Tz_d6qmk.js → diagram-UQ7AKVKN-DLv0b83L.js} +1 -1
- package/dist/{diagram-VX7I27RA-D7SzPrDN.js → diagram-VX7I27RA-7XJ7J6qg.js} +1 -1
- package/dist/{diagram-Z3DM3KII-qr37XV58.js → diagram-Z3DM3KII-7M7zbHp_.js} +1 -1
- package/dist/{dialog-BtprQCUw.js → dialog-DzCj1qQv.js} +1 -1
- package/dist/{dropdown-menu-CkJ7ErY6.js → dropdown-menu-CdXE15an.js} +1214 -1208
- package/dist/{ebnfDiagram-PWID7BFC-BKOQb4J0.js → ebnfDiagram-PWID7BFC-DHH1qlmV.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-CM15Vq68.js → erDiagram-RLTQ6QDP-fI_0dGef.js} +1 -1
- package/dist/{error-banner-DbRFOd2O.js → error-banner-DPc9eIw5.js} +3 -3
- package/dist/{error-entries-CMoaUX9V.js → error-entries-CxN-Nq3V.js} +524 -456
- package/dist/{feedback-button-DBUrE4OL.js → feedback-button-BqaeQcvX.js} +77 -77
- package/dist/{flowDiagram-HODETNUW-Dt3N5yFT.js → flowDiagram-HODETNUW-Brg9MA6i.js} +2 -2
- package/dist/{formats-gGospKWJ.js → formats-DbSvAPY-.js} +1 -1
- package/dist/{glide-data-editor-Cfv4HeOh.js → glide-data-editor-CiijPXA7.js} +2042 -2041
- package/dist/{glide-utils-Ba9WD2IN.js → glide-utils-BSw3SSHF.js} +29 -35
- package/dist/{globals-dIbBIR5-.js → globals-CpmSWKI_.js} +2 -2
- package/dist/{html-to-image-D_5CMreP.js → html-to-image-8sywF4my.js} +5452 -5751
- package/dist/{infoDiagram-27XIBGKW-C7axJMCl.js → infoDiagram-27XIBGKW-E9e403YT.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-CdC9Eur7.js → ishikawaDiagram-5VMMS53U-C-RlYDRo.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-BHnMIgD7.js → kanban-definition-UXKFOSKX-CLFl_uqK.js} +1 -1
- package/dist/main.js +6294 -6324
- package/dist/{mermaid-DFYN_PXd.js → mermaid-rd09e1JL.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-BagHoCGU.js → mindmap-definition-YA3MSWOX-BQ8TWtyB.js} +1 -1
- package/dist/{number-overlay-editor-CTiJp5Mj.js → number-overlay-editor-Ft4NiAEN.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-8IIZczip.js → pegDiagram-XKGWAZYB-CN8UHFPi.js} +2 -2
- package/dist/pencil-DcT8AE0h.js +10 -0
- package/dist/{pieDiagram-E7YTZNPT-CE6dKBIr.js → pieDiagram-E7YTZNPT-DGuJ0EBd.js} +1 -1
- package/dist/{process-output-CGFNVC60.js → process-output-Dku5POvm.js} +3 -3
- package/dist/{railroadDiagram-O6MQD6OU-CkexPq3b.js → railroadDiagram-O6MQD6OU-BPDA8wy8.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-B0-OkuAe.js → requirementDiagram-BXWQKSXE-ChzLGbGW.js} +1 -1
- package/dist/{reveal-component-DH09ygHo.js → reveal-component-D0cfwbbl.js} +1094 -1094
- package/dist/{select-C33FVPPN.js → select-OxgozOC8.js} +1 -1
- package/dist/{sequenceDiagram-WJ2MYXX4-Dxysg8DX.js → sequenceDiagram-WJ2MYXX4-DFX-bE6O.js} +1 -1
- package/dist/{spec-DH1lmF7Q.js → spec-oJn0RhpQ.js} +2 -2
- package/dist/{stateDiagram-D77RDMKH-DTEN3-OJ.js → stateDiagram-D77RDMKH-BR7cI3wK.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-vktk3Xc5.js → stateDiagram-v2-MP3YSRHH-oGqB5UDI.js} +2 -2
- package/dist/{static-state-BldGd99T.js → static-state-CuV6Pc3a.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Cjveh9OM.js → swimlanes-42K2YHIH-DwSZl1yC.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-Bdr7Ev_2.js → swimlanesDiagram-VR7AAH4N-BHlcd-Ri.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-KIuDcefn.js → timeline-definition-24CTP7MA-DMmP-G2O.js} +1 -1
- package/dist/{toast-CY1_Qv41.js → toast-DbBHmxmB.js} +2 -2
- package/dist/{useAsyncData-DsZMvNXn.js → useAsyncData-BYIAoMqn.js} +1 -1
- package/dist/{useDateFormatter-Dk_xFci4.js → useDateFormatter-ButWkdcK.js} +1 -1
- package/dist/{useDeepCompareMemoize-KMBBux8C.js → useDeepCompareMemoize-Bz0c5GN6.js} +1 -1
- package/dist/{useTheme-BZ2GGLgm.js → useTheme-DPLobSFs.js} +7 -7
- package/dist/{utils-DXkj82sK.js → utils-EBklsC5R.js} +31 -31
- package/dist/{vega-component-C-lqjV0q.js → vega-component-rxIxAAh9.js} +7 -7
- package/dist/{vennDiagram-4TSXK5OY-DrIOUHfb.js → vennDiagram-4TSXK5OY-Db8GtH1G.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-CJNjf4OH.js → wardleyDiagram-VM6X3IG4-DmIiC3FU.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DEshFho-.js → xychartDiagram-S5SC5T6Z-DS9OPrNq.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +195 -0
- package/src/__mocks__/notebook.ts +0 -1
- package/src/__tests__/CellStatus.test.tsx +19 -20
- package/src/components/chat/__tests__/chat-display.test.tsx +157 -86
- package/src/components/chat/__tests__/chat-utils.test.ts +42 -0
- package/src/components/chat/__tests__/turn-timing.test.ts +84 -0
- package/src/components/chat/__tests__/use-assistant-turn.test.ts +95 -0
- package/src/components/chat/__tests__/user-message.test.tsx +27 -0
- package/src/components/chat/acp/agent-panel.tsx +2 -0
- package/src/components/chat/agent-activity.tsx +132 -0
- package/src/components/chat/chat-display.tsx +125 -96
- package/src/components/chat/chat-panel.tsx +123 -106
- package/src/components/chat/chat-utils.ts +12 -24
- package/src/components/chat/tool-call/__tests__/tool-labels.test.ts +76 -0
- package/src/components/chat/tool-call/__tests__/tool-step.test.tsx +57 -0
- package/src/components/chat/tool-call/shared.ts +6 -0
- package/src/components/chat/tool-call/tool-call-view.tsx +22 -76
- package/src/components/chat/tool-call/tool-labels.ts +172 -0
- package/src/components/chat/tool-call/tool-step.tsx +145 -0
- package/src/components/chat/turn-timing.ts +73 -0
- package/src/components/chat/use-assistant-turn.ts +65 -0
- package/src/components/chat/use-chat-generation.ts +5 -4
- package/src/components/chat/user-message.tsx +145 -0
- package/src/components/dependency-graph/minimap-content.tsx +3 -2
- package/src/components/editor/__tests__/data-attributes.test.tsx +0 -7
- package/src/components/editor/__tests__/output-persistence.test.tsx +2 -2
- package/src/components/editor/actions/__tests__/useCellActionButton.test.tsx +19 -1
- package/src/components/editor/actions/useCellActionButton.tsx +10 -3
- package/src/components/editor/ai/completion-handlers.tsx +0 -37
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +3 -1
- package/src/components/editor/cell/CellStatus.tsx +23 -19
- package/src/components/editor/cell/RunButton.tsx +16 -6
- package/src/components/editor/cell/StagedAICell.tsx +51 -144
- package/src/components/editor/cell/__tests__/useRunCells.test.ts +45 -0
- package/src/components/editor/cell/cell-context-menu.tsx +4 -1
- package/src/components/editor/cell/code/cell-editor.tsx +7 -5
- package/src/components/editor/cell/collapse.tsx +4 -0
- package/src/components/editor/cell/useRunCells.ts +18 -3
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +193 -32
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +2 -2
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +145 -81
- package/src/components/editor/chrome/wrapper/pending-ai-changes-badge.tsx +25 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +8 -4
- package/src/components/editor/header/status.tsx +4 -2
- package/src/components/editor/links/cell-link.tsx +4 -4
- package/src/components/editor/navigation/navigation.ts +3 -2
- package/src/components/editor/notebook-cell.tsx +85 -94
- package/src/components/editor/renderers/grid-layout/__tests__/grid-layout.test.tsx +75 -0
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +22 -16
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -33
- package/src/components/editor/stdin-blocking-alert.tsx +3 -1
- package/src/components/scratchpad/scratchpad.tsx +4 -1
- package/src/components/slides/minimap.tsx +4 -2
- package/src/components/slides/reveal-component.tsx +14 -10
- package/src/components/slides/slide-cell-view.tsx +28 -24
- package/src/components/slides/slide.tsx +3 -4
- package/src/components/ui/toast.tsx +1 -1
- package/src/core/ai/__tests__/staged-cells.test.ts +74 -126
- package/src/core/ai/staged-cells.ts +48 -38
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -389
- package/src/core/cells/__tests__/cell.test.ts +49 -154
- package/src/core/cells/__tests__/cells.test.ts +18 -127
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +11 -20
- package/src/core/cells/__tests__/utils.test.ts +75 -247
- package/src/core/cells/actions.ts +5 -2
- package/src/core/cells/cell.ts +31 -133
- package/src/core/cells/cells.ts +14 -29
- package/src/core/cells/document.ts +3 -3
- package/src/core/cells/focus.ts +27 -6
- package/src/core/cells/layout.ts +1 -1
- package/src/core/cells/pending-delete-service.ts +5 -7
- package/src/core/cells/scrollCellIntoView.ts +6 -0
- package/src/core/cells/types.ts +13 -36
- package/src/core/cells/utils.ts +37 -68
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +59 -0
- package/src/core/codemirror/placeholder/extensions.ts +23 -0
- package/src/core/edit-app.tsx +2 -1
- package/src/core/executions/__tests__/atoms.test.ts +99 -0
- package/src/core/executions/__tests__/select.test.ts +268 -0
- package/src/core/executions/atoms.ts +206 -0
- package/src/core/executions/hooks.ts +31 -0
- package/src/core/executions/index.ts +31 -0
- package/src/core/executions/select.ts +175 -0
- package/src/core/export/__tests__/hooks.test.ts +0 -5
- package/src/core/islands/bootstrap.ts +4 -1
- package/src/core/islands/components/output-wrapper.tsx +5 -5
- package/src/core/kernel/handlers.ts +2 -11
- package/src/core/kernel/state.ts +0 -15
- package/src/core/lifecycle/render-policy.ts +12 -26
- package/src/core/network/__tests__/requests-lazy.test.ts +5 -5
- package/src/core/network/requests-lazy.ts +3 -3
- package/src/core/notebook/operations.ts +1 -1
- package/src/core/run-app.tsx +2 -1
- package/src/core/runtime/__tests__/adapter.test.ts +3 -3
- package/src/core/runtime/adapter.ts +4 -4
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +34 -0
- package/src/core/session/useNotebookSession.tsx +10 -5
- package/src/core/wasm/bridge.ts +1 -1
- package/src/css/app/Cell.css +7 -36
- package/src/plugins/core/registerReactComponent.tsx +4 -13
- package/src/plugins/impl/chat/chat-ui.tsx +2 -3
- package/src/plugins/impl/common/error-banner.tsx +5 -3
- package/src/stories/cell-status.stories.tsx +17 -10
- package/src/stories/cell.stories.tsx +0 -31
- package/src/stories/layout/vertical/one-column.stories.tsx +0 -9
- package/src/utils/time.ts +10 -0
- package/src/components/chat/reasoning-accordion.tsx +0 -61
- package/src/components/chat/tool-call/tool-activity-group.tsx +0 -49
- package/src/components/chat/tool-call/tool-error-card.tsx +0 -81
- package/src/components/chat/tool-call/tool-history-row.tsx +0 -147
- package/src/components/icons/loading-ellipsis.tsx +0 -46
|
@@ -3,16 +3,16 @@ import { h as t, t as n } from "./button-0-RqY1DW.js";
|
|
|
3
3
|
import { t as r } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { t as a } from "./copy-icon-C2I8sw4h.js";
|
|
6
|
-
import {
|
|
7
|
-
import { n as h, t as ee } from "./globals-
|
|
8
|
-
import {
|
|
6
|
+
import { D as o, E as s, F as c, L as l, Wt as u, i as d, j as f, n as p, q as m } from "./error-entries-CxN-Nq3V.js";
|
|
7
|
+
import { n as h, t as ee } from "./globals-CpmSWKI_.js";
|
|
8
|
+
import { r as g } from "./assertNever-DIU3JJbt.js";
|
|
9
9
|
import { t as _ } from "./jsx-runtime-3BD1kT0s.js";
|
|
10
|
-
import {
|
|
11
|
-
import { a as re, i as ie, n as ae, r as oe } from "./dialog-
|
|
12
|
-
import { t as se } from "./useAsyncData-
|
|
13
|
-
import { t as ce } from "./code-visibility-
|
|
10
|
+
import { o as te, r as v, x as ne } from "./utils-EBklsC5R.js";
|
|
11
|
+
import { a as re, i as ie, n as ae, r as oe } from "./dialog-DzCj1qQv.js";
|
|
12
|
+
import { t as se } from "./useAsyncData-BYIAoMqn.js";
|
|
13
|
+
import { t as ce } from "./code-visibility-DcZ_RwaH.js";
|
|
14
14
|
//#region src/components/ui/skeleton.tsx
|
|
15
|
-
var y = /* @__PURE__ */ e(r(), 1), b = i(), x = _(),
|
|
15
|
+
var y = /* @__PURE__ */ e(r(), 1), b = i(), x = _(), S = (e) => {
|
|
16
16
|
let n = (0, b.c)(8), r, i;
|
|
17
17
|
n[0] === e ? (r = n[1], i = n[2]) : ({className: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
|
|
18
18
|
let a;
|
|
@@ -25,7 +25,7 @@ var y = /* @__PURE__ */ e(r(), 1), b = i(), x = _(), le = (e) => {
|
|
|
25
25
|
};
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/core/diagnostics/issue-details.ts
|
|
28
|
-
function
|
|
28
|
+
function le(e, t) {
|
|
29
29
|
return {
|
|
30
30
|
...e,
|
|
31
31
|
Binaries: {
|
|
@@ -34,7 +34,7 @@ function ue(e, t) {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function ue(e, t, n, r) {
|
|
38
38
|
return {
|
|
39
39
|
marimo: e,
|
|
40
40
|
Locale: n || void 0,
|
|
@@ -42,11 +42,11 @@ function de(e, t, n, r) {
|
|
|
42
42
|
"Environment Collection Error": r
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function C(e, t) {
|
|
46
46
|
let n = Math.max(2, ...Array.from(t.matchAll(/`+/g), (e) => e[0].length)), r = "`".repeat(n + 1);
|
|
47
47
|
return `${r}${e}\n${t}\n${r}`;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function de(e, t) {
|
|
50
50
|
let n = e.includes("?") ? "&" : "?", r = [], i = e, a = 0;
|
|
51
51
|
for (let [e, o] of Object.entries(t)) {
|
|
52
52
|
if (o.length === 0) continue;
|
|
@@ -62,7 +62,7 @@ function fe(e, t) {
|
|
|
62
62
|
omitted: r
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function w(e, t) {
|
|
66
66
|
return [
|
|
67
67
|
"<details>",
|
|
68
68
|
`<summary>${g.htmlEscape(e) ?? ""}</summary>`,
|
|
@@ -72,30 +72,30 @@ function C(e, t) {
|
|
|
72
72
|
"</details>"
|
|
73
73
|
].join("\n");
|
|
74
74
|
}
|
|
75
|
+
function fe(e) {
|
|
76
|
+
return w("Environment", C("json", JSON.stringify(e, null, 2)));
|
|
77
|
+
}
|
|
75
78
|
function pe(e) {
|
|
76
|
-
return
|
|
79
|
+
return w("Errors", C("text", e.map(p).join("\n\n---\n\n")));
|
|
77
80
|
}
|
|
78
81
|
function me(e) {
|
|
79
|
-
return
|
|
80
|
-
}
|
|
81
|
-
function he(e) {
|
|
82
|
-
return C("Code", S("python", e));
|
|
82
|
+
return w("Code", C("python", e));
|
|
83
83
|
}
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/hooks/useLocalStorage.ts
|
|
86
|
-
function
|
|
86
|
+
function he(e, t) {
|
|
87
87
|
let n = (0, b.c)(11), r;
|
|
88
|
-
n[0] === t ? r = n[1] : (r = new
|
|
88
|
+
n[0] === t ? r = n[1] : (r = new c(t), n[0] = t, n[1] = r);
|
|
89
89
|
let i = r, a;
|
|
90
90
|
n[2] !== e || n[3] !== i ? (a = () => i.get(e), n[2] = e, n[3] = i, n[4] = a) : a = n[4];
|
|
91
|
-
let [o, s] = (0, y.useState)(a),
|
|
92
|
-
n[5] !== e || n[6] !== i ? (
|
|
91
|
+
let [o, s] = (0, y.useState)(a), l;
|
|
92
|
+
n[5] !== e || n[6] !== i ? (l = (t) => {
|
|
93
93
|
s(t), i.set(e, t);
|
|
94
|
-
}, n[5] = e, n[6] = i, n[7] =
|
|
95
|
-
let
|
|
96
|
-
return n[8] !==
|
|
94
|
+
}, n[5] = e, n[6] = i, n[7] = l) : l = n[7];
|
|
95
|
+
let u = l, d;
|
|
96
|
+
return n[8] !== u || n[9] !== o ? (d = [o, u], n[8] = u, n[9] = o, n[10] = d) : d = n[10], d;
|
|
97
97
|
}
|
|
98
|
-
var
|
|
98
|
+
var ge = (e) => {
|
|
99
99
|
let r = (0, b.c)(16), { content: i } = e, [a, o] = (0, y.useState)(!1), s = !a && "max-h-24 overflow-hidden", c;
|
|
100
100
|
r[0] === s ? c = r[1] : (c = t("text-xs bg-muted rounded p-2 overflow-x-auto whitespace-pre-wrap", s), r[0] = s, r[1] = c);
|
|
101
101
|
let l;
|
|
@@ -111,7 +111,7 @@ var _e = (e) => {
|
|
|
111
111
|
children: [l, u]
|
|
112
112
|
}), r[7] = l, r[8] = u, r[9] = d) : d = r[9];
|
|
113
113
|
let f;
|
|
114
|
-
r[10] === Symbol.for("react.memo_cache_sentinel") ? (f = () => o(
|
|
114
|
+
r[10] === Symbol.for("react.memo_cache_sentinel") ? (f = () => o(E), r[10] = f) : f = r[10];
|
|
115
115
|
let p = a ? "Show less" : "Show more", m;
|
|
116
116
|
r[11] === p ? m = r[12] : (m = /* @__PURE__ */ (0, x.jsx)(n, {
|
|
117
117
|
type: "button",
|
|
@@ -127,53 +127,53 @@ var _e = (e) => {
|
|
|
127
127
|
children: [d, m]
|
|
128
128
|
}), r[13] = d, r[14] = m, r[15] = h) : h = r[15], h;
|
|
129
129
|
};
|
|
130
|
-
function
|
|
130
|
+
function _e(e) {
|
|
131
131
|
if (!e.hasRequestClient) return "Notebook source is unavailable.";
|
|
132
132
|
if (e.filename === null) return "Save the notebook first.";
|
|
133
133
|
if (!e.codeAvailable) return "Notebook source is hidden in this view.";
|
|
134
|
-
if (e.connectionState !==
|
|
134
|
+
if (e.connectionState !== f.OPEN) return "Connect the notebook to include its source.";
|
|
135
135
|
}
|
|
136
|
-
var
|
|
137
|
-
let e = (0, b.c)(56), t = ne(
|
|
136
|
+
var T = () => {
|
|
137
|
+
let e = (0, b.c)(56), t = ne(m), r, i;
|
|
138
138
|
e[0] === t ? (r = e[1], i = e[2]) : (r = async () => {
|
|
139
139
|
if (t != null) return t.getEnvironmentInfo();
|
|
140
140
|
}, i = [t], e[0] = t, e[1] = r, e[2] = i);
|
|
141
|
-
let
|
|
142
|
-
e[3] !== g || e[4] !== y.state || e[5] !== _ || e[6] !==
|
|
143
|
-
hasRequestClient:
|
|
141
|
+
let c = se(r, i), f = d(te), g = ce(), _ = ne(l), y = ne(o), C = t != null, w;
|
|
142
|
+
e[3] !== g || e[4] !== y.state || e[5] !== _ || e[6] !== C ? (w = _e({
|
|
143
|
+
hasRequestClient: C,
|
|
144
144
|
filename: _,
|
|
145
145
|
codeAvailable: g,
|
|
146
146
|
connectionState: y.state
|
|
147
|
-
}), e[3] = g, e[4] = y.state, e[5] = _, e[6] =
|
|
148
|
-
let
|
|
149
|
-
e[8] !==
|
|
150
|
-
if (!
|
|
147
|
+
}), e[3] = g, e[4] = y.state, e[5] = _, e[6] = C, e[7] = w) : w = e[7];
|
|
148
|
+
let T = w, E = T === void 0, [D, O] = he("marimo:issue-report:include-errors", !1), [k, ye] = he("marimo:issue-report:include-code", !1), A = c.data ? le(c.data, navigator.userAgent) : c.status === "error" || t == null ? ue(ee(), navigator.userAgent, navigator.language, "Server environment information unavailable") : void 0, j, M;
|
|
149
|
+
e[8] !== k || e[9] !== E || e[10] !== t ? (j = async () => {
|
|
150
|
+
if (!k || !E || t == null) return;
|
|
151
151
|
let { contents: e } = await t.readCode();
|
|
152
152
|
return e;
|
|
153
153
|
}, M = [
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
k,
|
|
155
|
+
E,
|
|
156
156
|
t
|
|
157
|
-
], e[8] =
|
|
157
|
+
], e[8] = k, e[9] = E, e[10] = t, e[11] = j, e[12] = M) : (j = e[11], M = e[12]);
|
|
158
158
|
let N = se(j, M), be = v.bugReportUrl, xe = [];
|
|
159
159
|
if (A) {
|
|
160
|
-
let e = { env:
|
|
161
|
-
|
|
160
|
+
let e = { env: fe(A) };
|
|
161
|
+
D && f.length > 0 && (e["bug-description"] = pe(f)), k && N.data && (e["reproduction-code"] = me(N.data)), {url: be, omitted: xe} = de(v.bugReportUrl, e);
|
|
162
162
|
}
|
|
163
|
-
let Se = xe.map(
|
|
163
|
+
let Se = xe.map(ve).join(", "), P;
|
|
164
164
|
e[13] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ (0, x.jsxs)(ie, { children: [/* @__PURE__ */ (0, x.jsx)(re, { children: "Report an issue" }), /* @__PURE__ */ (0, x.jsx)(oe, { children: "Open a GitHub bug report prefilled with your environment, and optionally your current errors and notebook code. Nothing is uploaded automatically; review the details before posting." })] }), e[13] = P) : P = e[13];
|
|
165
165
|
let F;
|
|
166
|
-
e[14] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, x.jsx)(
|
|
167
|
-
let I =
|
|
168
|
-
e[15] ===
|
|
166
|
+
e[14] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, x.jsx)(u, { className: "w-4 h-4 mr-2" }), e[14] = F) : F = e[14];
|
|
167
|
+
let I = f.length === 0, L;
|
|
168
|
+
e[15] === O ? L = e[16] : (L = (e) => O(e === !0), e[15] = O, e[16] = L);
|
|
169
169
|
let R;
|
|
170
|
-
e[17] !==
|
|
170
|
+
e[17] !== D || e[18] !== I || e[19] !== L ? (R = /* @__PURE__ */ (0, x.jsx)(s, {
|
|
171
171
|
id: "issue-include-errors",
|
|
172
|
-
checked:
|
|
172
|
+
checked: D,
|
|
173
173
|
disabled: I,
|
|
174
174
|
onCheckedChange: L,
|
|
175
175
|
"aria-label": "Include errors"
|
|
176
|
-
}), e[17] =
|
|
176
|
+
}), e[17] = D, e[18] = I, e[19] = L, e[20] = R) : R = e[20];
|
|
177
177
|
let z;
|
|
178
178
|
e[21] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ (0, x.jsx)("label", {
|
|
179
179
|
htmlFor: "issue-include-errors",
|
|
@@ -184,16 +184,16 @@ var w = () => {
|
|
|
184
184
|
className: "flex items-center gap-2 text-sm",
|
|
185
185
|
children: [R, z]
|
|
186
186
|
}), e[22] = R, e[23] = B);
|
|
187
|
-
let Ce = !
|
|
188
|
-
e[24] ===
|
|
187
|
+
let Ce = !E, V;
|
|
188
|
+
e[24] === ye ? V = e[25] : (V = (e) => ye(e === !0), e[24] = ye, e[25] = V);
|
|
189
189
|
let H;
|
|
190
|
-
e[26] !==
|
|
190
|
+
e[26] !== k || e[27] !== Ce || e[28] !== V ? (H = /* @__PURE__ */ (0, x.jsx)(s, {
|
|
191
191
|
id: "issue-include-code",
|
|
192
|
-
checked:
|
|
192
|
+
checked: k,
|
|
193
193
|
disabled: Ce,
|
|
194
194
|
onCheckedChange: V,
|
|
195
195
|
"aria-label": "Include notebook code"
|
|
196
|
-
}), e[26] =
|
|
196
|
+
}), e[26] = k, e[27] = Ce, e[28] = V, e[29] = H) : H = e[29];
|
|
197
197
|
let U;
|
|
198
198
|
e[30] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ (0, x.jsx)("label", {
|
|
199
199
|
htmlFor: "issue-include-code",
|
|
@@ -205,15 +205,15 @@ var w = () => {
|
|
|
205
205
|
children: [H, U]
|
|
206
206
|
}), e[31] = H, e[32] = W);
|
|
207
207
|
let G;
|
|
208
|
-
e[33] ===
|
|
208
|
+
e[33] === T ? G = e[34] : (G = T && /* @__PURE__ */ (0, x.jsx)("span", {
|
|
209
209
|
className: "text-xs text-muted-foreground ml-6",
|
|
210
|
-
children:
|
|
211
|
-
}), e[33] =
|
|
210
|
+
children: T
|
|
211
|
+
}), e[33] = T, e[34] = G);
|
|
212
212
|
let K;
|
|
213
|
-
e[35] !== N || e[36] !==
|
|
213
|
+
e[35] !== N || e[36] !== k ? (K = k && N.status === "error" && /* @__PURE__ */ (0, x.jsx)("span", {
|
|
214
214
|
className: "text-xs text-(--red-11) ml-6",
|
|
215
215
|
children: "Notebook source could not be loaded."
|
|
216
|
-
}), e[35] = N, e[36] =
|
|
216
|
+
}), e[35] = N, e[36] = k, e[37] = K) : K = e[37];
|
|
217
217
|
let q;
|
|
218
218
|
e[38] !== W || e[39] !== G || e[40] !== K ? (q = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
219
219
|
className: "flex flex-col gap-1",
|
|
@@ -229,20 +229,20 @@ var w = () => {
|
|
|
229
229
|
children: [B, q]
|
|
230
230
|
}), e[42] = B, e[43] = q, e[44] = J) : J = e[44];
|
|
231
231
|
let Y;
|
|
232
|
-
e[45] !==
|
|
232
|
+
e[45] !== c.status || e[46] !== t ? (Y = c.status === "pending" && t != null && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
233
233
|
className: "flex flex-col gap-2",
|
|
234
234
|
children: [
|
|
235
235
|
/* @__PURE__ */ (0, x.jsx)("span", {
|
|
236
236
|
className: "text-sm text-muted-foreground",
|
|
237
237
|
children: "Loading environment details…"
|
|
238
238
|
}),
|
|
239
|
-
/* @__PURE__ */ (0, x.jsx)(
|
|
240
|
-
/* @__PURE__ */ (0, x.jsx)(
|
|
241
|
-
/* @__PURE__ */ (0, x.jsx)(
|
|
239
|
+
/* @__PURE__ */ (0, x.jsx)(S, { className: "h-4 w-full" }),
|
|
240
|
+
/* @__PURE__ */ (0, x.jsx)(S, { className: "h-4 w-3/4" }),
|
|
241
|
+
/* @__PURE__ */ (0, x.jsx)(S, { className: "h-4 w-1/2" })
|
|
242
242
|
]
|
|
243
|
-
}), e[45] =
|
|
243
|
+
}), e[45] = c.status, e[46] = t, e[47] = Y) : Y = e[47];
|
|
244
244
|
let X;
|
|
245
|
-
e[48] !==
|
|
245
|
+
e[48] !== c || e[49] !== t ? (X = (c.status === "error" || t == null) && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
246
246
|
className: "flex items-center gap-2 text-sm",
|
|
247
247
|
children: [
|
|
248
248
|
/* @__PURE__ */ (0, x.jsx)(h, { className: "w-4 h-4 text-(--yellow-11) shrink-0" }),
|
|
@@ -251,16 +251,16 @@ var w = () => {
|
|
|
251
251
|
type: "button",
|
|
252
252
|
variant: "link",
|
|
253
253
|
size: "xs",
|
|
254
|
-
onClick: () =>
|
|
254
|
+
onClick: () => c.refetch(),
|
|
255
255
|
children: "Retry"
|
|
256
256
|
})
|
|
257
257
|
]
|
|
258
|
-
}), e[48] =
|
|
258
|
+
}), e[48] = c, e[49] = t, e[50] = X) : X = e[50];
|
|
259
259
|
let Z;
|
|
260
|
-
e[51] !== A || e[52] !==
|
|
260
|
+
e[51] !== A || e[52] !== f ? (Z = A && f.length === 0 && /* @__PURE__ */ (0, x.jsx)("span", {
|
|
261
261
|
className: "text-sm text-muted-foreground",
|
|
262
262
|
children: "No errors detected."
|
|
263
|
-
}), e[51] = A, e[52] =
|
|
263
|
+
}), e[51] = A, e[52] = f, e[53] = Z) : Z = e[53];
|
|
264
264
|
let Q;
|
|
265
265
|
e[54] === Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ (0, x.jsx)("a", {
|
|
266
266
|
href: v.feedbackForm,
|
|
@@ -341,9 +341,9 @@ var w = () => {
|
|
|
341
341
|
ariaLabel: "Copy environment JSON",
|
|
342
342
|
toastTitle: "Environment details copied"
|
|
343
343
|
})]
|
|
344
|
-
}), /* @__PURE__ */ (0, x.jsx)(
|
|
344
|
+
}), /* @__PURE__ */ (0, x.jsx)(ge, { content: JSON.stringify(A, null, 2) })]
|
|
345
345
|
}),
|
|
346
|
-
A &&
|
|
346
|
+
A && f.length > 0 && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
347
347
|
className: "flex flex-col gap-1",
|
|
348
348
|
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
|
|
349
349
|
className: "flex items-center justify-between",
|
|
@@ -352,11 +352,11 @@ var w = () => {
|
|
|
352
352
|
children: "Errors"
|
|
353
353
|
}), /* @__PURE__ */ (0, x.jsx)(a, {
|
|
354
354
|
className: "w-3.5 h-3.5",
|
|
355
|
-
value:
|
|
355
|
+
value: pe(f),
|
|
356
356
|
ariaLabel: "Copy errors",
|
|
357
357
|
toastTitle: "Errors copied"
|
|
358
358
|
})]
|
|
359
|
-
}), /* @__PURE__ */ (0, x.jsx)(
|
|
359
|
+
}), /* @__PURE__ */ (0, x.jsx)(ge, { content: f.map(p).join("\n\n---\n\n") })]
|
|
360
360
|
}),
|
|
361
361
|
Z,
|
|
362
362
|
$
|
|
@@ -364,11 +364,11 @@ var w = () => {
|
|
|
364
364
|
})]
|
|
365
365
|
});
|
|
366
366
|
};
|
|
367
|
-
function
|
|
367
|
+
function E(e) {
|
|
368
368
|
return !e;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function ve(e) {
|
|
371
371
|
return e === "bug-description" ? "errors" : e === "reproduction-code" ? "code" : e;
|
|
372
372
|
}
|
|
373
373
|
//#endregion
|
|
374
|
-
export {
|
|
374
|
+
export { T as FeedbackModal };
|
|
@@ -8,9 +8,9 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
|
|
|
8
8
|
import "./chunk-GVQU2GXP-Cwbt-lF0.js";
|
|
9
9
|
import "./chunk-L3NEJ4N5-n-zgIVSy.js";
|
|
10
10
|
import "./chunk-OSK3NFVY-DXa-Cxbn.js";
|
|
11
|
-
import "./mermaid-
|
|
11
|
+
import "./mermaid-rd09e1JL.js";
|
|
12
12
|
import "./chunk-F27PBJKO-ufseIn5y.js";
|
|
13
13
|
import "./chunk-XXDRQBXY-Dnl5VBqG.js";
|
|
14
14
|
import "./chunk-POPQ4Y6H-hYOXbYH_.js";
|
|
15
|
-
import { n as e } from "./chunk-SHT3W25Y-
|
|
15
|
+
import { n as e } from "./chunk-SHT3W25Y-DZoFI8wR.js";
|
|
16
16
|
export { e as diagram };
|
|
@@ -3,7 +3,7 @@ import { h as t, s as n } from "./button-0-RqY1DW.js";
|
|
|
3
3
|
import { t as r } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { t as a } from "./jsx-runtime-3BD1kT0s.js";
|
|
6
|
-
import { u as o } from "./static-state-
|
|
6
|
+
import { u as o } from "./static-state-CuV6Pc3a.js";
|
|
7
7
|
import { i as s } from "./loader-BVEtQ4F3.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
|
|
9
9
|
function c(e) {
|