@marimo-team/islands 0.25.3-dev266 → 0.25.3-dev267
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-C4yCN38h.js} +1 -1
- package/dist/{ErrorBoundary-CvxlC3F1.js → ErrorBoundary-CewXPyL5.js} +64 -69
- package/dist/{abnfDiagram-VCTEODGH-DzrZZXRD.js → abnfDiagram-VCTEODGH-o6Ay6Q63.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-BhiwwlVg.js} +1 -1
- package/dist/{chat-ui-DFxNgzXF.js → chat-ui-CbgR5ivy.js} +1964 -1740
- package/dist/{chunk-IMKFNOWR-B7xytD4B.js → chunk-IMKFNOWR-WMSMf4Nj.js} +1 -1
- package/dist/{chunk-SHT3W25Y-I8ZFP5L1.js → chunk-SHT3W25Y-BRfADrzD.js} +1 -1
- package/dist/{chunk-SVP7TREG-Di-uAPdT.js → chunk-SVP7TREG-CuK5QFre.js} +1 -1
- package/dist/{chunk-TICWLB2K-BFpUy0ud.js → chunk-TICWLB2K-Bcun_jhJ.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-Cqm4JGpx.js → classDiagram-ZZMXUADV-CgWDbUDT.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DFHRJpN3.js → classDiagram-v2-VYDZK3BY-DYmc9SFU.js} +2 -2
- package/dist/{code-visibility-SRM1JiD_.js → code-visibility-BKBl9Rh6.js} +9 -9
- package/dist/{common-yiRhZ6ZZ.js → common-N3Jd_6m9.js} +5944 -5626
- package/dist/{cynefinDiagram-5FMLGOSQ-cuGOeTBC.js → cynefinDiagram-5FMLGOSQ-PPKWipjT.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-DJ76aC4k.js → dagre-GXQ25YYZ-niRBZh--.js} +1 -1
- package/dist/{data-grid-overlay-editor-DLTzcQ4O.js → data-grid-overlay-editor-Cp59CrqZ.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-DLLc0sw7.js → diagram-S7CK7UJ4-DPiP9rot.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-Tz_d6qmk.js → diagram-UQ7AKVKN-B0WZuaxV.js} +1 -1
- package/dist/{diagram-VX7I27RA-D7SzPrDN.js → diagram-VX7I27RA-Rn42WBuN.js} +1 -1
- package/dist/{diagram-Z3DM3KII-qr37XV58.js → diagram-Z3DM3KII-BB93--ry.js} +1 -1
- package/dist/{dropdown-menu-CkJ7ErY6.js → dropdown-menu-BpImEfn3.js} +1211 -1205
- package/dist/{ebnfDiagram-PWID7BFC-BKOQb4J0.js → ebnfDiagram-PWID7BFC-V4t5h6mZ.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-CM15Vq68.js → erDiagram-RLTQ6QDP-C1MsAKXd.js} +1 -1
- package/dist/{error-banner-DbRFOd2O.js → error-banner-DPc9eIw5.js} +3 -3
- package/dist/{error-entries-CMoaUX9V.js → error-entries-CJGdD2ky.js} +49 -42
- package/dist/{feedback-button-DBUrE4OL.js → feedback-button-Qc1f9iPq.js} +70 -70
- package/dist/{flowDiagram-HODETNUW-Dt3N5yFT.js → flowDiagram-HODETNUW-DHjeJP96.js} +2 -2
- package/dist/{glide-data-editor-Cfv4HeOh.js → glide-data-editor-hCq3K0sd.js} +2042 -2041
- package/dist/{glide-utils-Ba9WD2IN.js → glide-utils-DC3sk6EX.js} +28 -34
- package/dist/{globals-dIbBIR5-.js → globals-B2_uMYDY.js} +1 -1
- package/dist/{html-to-image-D_5CMreP.js → html-to-image-S7spRQCi.js} +5526 -5828
- package/dist/{infoDiagram-27XIBGKW-C7axJMCl.js → infoDiagram-27XIBGKW-Dovv6iKx.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-CdC9Eur7.js → ishikawaDiagram-5VMMS53U-D2nyygsc.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-BHnMIgD7.js → kanban-definition-UXKFOSKX-KyVx0uTY.js} +1 -1
- package/dist/main.js +1288 -1287
- package/dist/{mermaid-DFYN_PXd.js → mermaid-B-jKSwGt.js} +33 -33
- package/dist/{mindmap-definition-YA3MSWOX-BagHoCGU.js → mindmap-definition-YA3MSWOX-Bz9tKQFl.js} +1 -1
- package/dist/{number-overlay-editor-CTiJp5Mj.js → number-overlay-editor-CfNYvbdz.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-8IIZczip.js → pegDiagram-XKGWAZYB-C_qpq6Tv.js} +2 -2
- package/dist/pencil-DcT8AE0h.js +10 -0
- package/dist/{pieDiagram-E7YTZNPT-CE6dKBIr.js → pieDiagram-E7YTZNPT-Bp9ucgI4.js} +1 -1
- package/dist/{process-output-CGFNVC60.js → process-output-f34bkXTm.js} +2 -2
- package/dist/{railroadDiagram-O6MQD6OU-CkexPq3b.js → railroadDiagram-O6MQD6OU-tq-VEH6j.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-B0-OkuAe.js → requirementDiagram-BXWQKSXE-DW-vHadb.js} +1 -1
- package/dist/{reveal-component-DH09ygHo.js → reveal-component-CUxv-kkP.js} +9 -9
- package/dist/{sequenceDiagram-WJ2MYXX4-Dxysg8DX.js → sequenceDiagram-WJ2MYXX4-Dv9U9qRP.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-DTEN3-OJ.js → stateDiagram-D77RDMKH-DTmPQ0EB.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-vktk3Xc5.js → stateDiagram-v2-MP3YSRHH-CkCif0Iw.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Cjveh9OM.js → swimlanes-42K2YHIH-21kCq6l8.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-Bdr7Ev_2.js → swimlanesDiagram-VR7AAH4N-BpRJP6KU.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-KIuDcefn.js → timeline-definition-24CTP7MA-Ckgh4lS4.js} +1 -1
- package/dist/{toast-CY1_Qv41.js → toast-DpczUryP.js} +1 -1
- package/dist/{vega-component-C-lqjV0q.js → vega-component-CF9kI6C4.js} +1 -1
- package/dist/{vennDiagram-4TSXK5OY-DrIOUHfb.js → vennDiagram-4TSXK5OY-CDei2Bt3.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-CJNjf4OH.js → wardleyDiagram-VM6X3IG4-CXavT601.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DEshFho-.js → xychartDiagram-S5SC5T6Z-CvJhcZri.js} +1 -1
- package/package.json +1 -1
- 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/editor/actions/__tests__/useCellActionButton.test.tsx +18 -1
- package/src/components/editor/actions/useCellActionButton.tsx +3 -0
- package/src/components/editor/ai/completion-handlers.tsx +0 -37
- package/src/components/editor/cell/StagedAICell.tsx +51 -144
- 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 +6 -0
- package/src/components/editor/links/cell-link.tsx +4 -4
- package/src/components/editor/notebook-cell.tsx +3 -11
- 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/scrollCellIntoView.ts +6 -0
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +59 -0
- package/src/core/codemirror/placeholder/extensions.ts +23 -0
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +34 -0
- package/src/core/session/useNotebookSession.tsx +7 -2
- package/src/css/app/Cell.css +7 -36
- package/src/plugins/impl/chat/chat-ui.tsx +2 -3
- package/src/plugins/impl/common/error-banner.tsx +5 -3
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as e } from "./src-CA_m4ONl.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
3
3
|
import "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
4
|
-
import "./mermaid-
|
|
4
|
+
import "./mermaid-B-jKSwGt.js";
|
|
5
5
|
import { f as n, t as r } from "./mermaid-parser.core-DxuSfYwJ.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-CuK5QFre.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/ebnfDiagram-PWID7BFC.mjs
|
|
9
9
|
var c = n().RailroadEbnf.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
|
|
@@ -10,7 +10,7 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
|
|
|
10
10
|
import "./chunk-GVQU2GXP-Cwbt-lF0.js";
|
|
11
11
|
import "./chunk-L3NEJ4N5-n-zgIVSy.js";
|
|
12
12
|
import "./chunk-OSK3NFVY-DXa-Cxbn.js";
|
|
13
|
-
import { n as _, r as v } from "./mermaid-
|
|
13
|
+
import { n as _, r as v } from "./mermaid-B-jKSwGt.js";
|
|
14
14
|
import { t as y } from "./chunk-XXDRQBXY-Dnl5VBqG.js";
|
|
15
15
|
import { t as b } from "./chunk-POPQ4Y6H-hYOXbYH_.js";
|
|
16
16
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-RLTQ6QDP.mjs
|
|
@@ -290,13 +290,13 @@ var ce = class extends Error {
|
|
|
290
290
|
}), n[7] = i, n[8] = d, n[9] = f, n[10] = p) : p = n[10];
|
|
291
291
|
let m;
|
|
292
292
|
n[11] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ (0, T.jsx)(H, { children: /* @__PURE__ */ (0, T.jsx)(W, {
|
|
293
|
-
className: "text-
|
|
293
|
+
className: "text-(--red-11)",
|
|
294
294
|
children: "Error"
|
|
295
295
|
}) }), n[11] = m) : m = n[11];
|
|
296
296
|
let h;
|
|
297
297
|
n[12] === l ? h = n[13] : (h = /* @__PURE__ */ (0, T.jsx)(G, {
|
|
298
298
|
asChild: !0,
|
|
299
|
-
className: "text-
|
|
299
|
+
className: "text-(--red-11) text-sm p-2 font-mono overflow-auto whitespace-pre-wrap",
|
|
300
300
|
children: /* @__PURE__ */ (0, T.jsx)("pre", { children: l })
|
|
301
301
|
}), n[12] = l, n[13] = h);
|
|
302
302
|
let g;
|
|
@@ -325,7 +325,7 @@ var ce = class extends Error {
|
|
|
325
325
|
}, de = a("text-sm p-2 border whitespace-pre-wrap overflow-hidden", {
|
|
326
326
|
variants: {
|
|
327
327
|
kind: {
|
|
328
|
-
danger: "text-
|
|
328
|
+
danger: "text-(--red-11) border-(--red-6) shadow-md-solid shadow-error bg-(--red-1)",
|
|
329
329
|
info: "text-primary border-(--blue-6) shadow-md-solid shadow-accent bg-(--blue-1)",
|
|
330
330
|
warn: "border-(--yellow-6) bg-(--yellow-2) dark:bg-(--yellow-4) text-(--yellow-11) dark:text-(--yellow-12)"
|
|
331
331
|
},
|
|
@@ -8,7 +8,7 @@ import { t as l } from "./check-gUSZbRsl.js";
|
|
|
8
8
|
import { i as u, t as d } from "./strings-BCKpLFNU.js";
|
|
9
9
|
import { t as f } from "./jsx-runtime-3BD1kT0s.js";
|
|
10
10
|
import { F as p, I as m, M as ee, N as h, j as g } from "./use-restore-focus-CmflVLWJ.js";
|
|
11
|
-
import { n as _ } from "./toast-
|
|
11
|
+
import { n as _ } from "./toast-DpczUryP.js";
|
|
12
12
|
import { _ as v, a as y, c as b, d as x, f as S, l as C, m as te, p as w, t as ne, v as re, w as T, x as E } from "./utils-DXkj82sK.js";
|
|
13
13
|
import { t as D } from "./invariant-DLmrl-hA.js";
|
|
14
14
|
import { t as ie } from "./objects-DCmMvZtn.js";
|
|
@@ -823,7 +823,7 @@ function Mt(e, t, n) {
|
|
|
823
823
|
}) };
|
|
824
824
|
}
|
|
825
825
|
var z = T((e) => {
|
|
826
|
-
let t = e(y), n = t === null ? null : e(t.documentAtom), r = e(
|
|
826
|
+
let t = e(y), n = t === null ? null : e(t.documentAtom), r = e(Fr);
|
|
827
827
|
return Mt(At(n, e(L), e(R)), (e) => r[e] ?? null, e(Dt));
|
|
828
828
|
}), Nt = () => E(z), Pt = T((e) => e(z).columns.length);
|
|
829
829
|
function Ft(e, t) {
|
|
@@ -2171,9 +2171,16 @@ function Tr() {
|
|
|
2171
2171
|
behavior: "smooth"
|
|
2172
2172
|
});
|
|
2173
2173
|
}
|
|
2174
|
+
function Er(e) {
|
|
2175
|
+
let t = document.getElementById(F.create(e));
|
|
2176
|
+
return t?.scrollIntoView({
|
|
2177
|
+
behavior: "smooth",
|
|
2178
|
+
block: "center"
|
|
2179
|
+
}), t;
|
|
2180
|
+
}
|
|
2174
2181
|
//#endregion
|
|
2175
2182
|
//#region src/core/cells/cells.ts
|
|
2176
|
-
function
|
|
2183
|
+
function Dr(e) {
|
|
2177
2184
|
let t = {
|
|
2178
2185
|
column: 0,
|
|
2179
2186
|
hide_code: !1,
|
|
@@ -2199,8 +2206,8 @@ function Er(e) {
|
|
|
2199
2206
|
}
|
|
2200
2207
|
};
|
|
2201
2208
|
}
|
|
2202
|
-
function
|
|
2203
|
-
return
|
|
2209
|
+
function Or() {
|
|
2210
|
+
return Dr({
|
|
2204
2211
|
cellIds: [],
|
|
2205
2212
|
cellData: {},
|
|
2206
2213
|
cellRuntime: {},
|
|
@@ -2210,10 +2217,10 @@ function Dr() {
|
|
|
2210
2217
|
cellLogs: []
|
|
2211
2218
|
});
|
|
2212
2219
|
}
|
|
2213
|
-
var { reducer:
|
|
2220
|
+
var { reducer: kr, createActions: Ar, useActions: jr, valueAtom: Z } = ae(Or, {
|
|
2214
2221
|
codeFormatted: (e, t) => {
|
|
2215
2222
|
let { cellId: n, before: r, after: i } = t;
|
|
2216
|
-
return e.cellData[n] ?
|
|
2223
|
+
return e.cellData[n] ? Mr({
|
|
2217
2224
|
state: e,
|
|
2218
2225
|
cellId: n,
|
|
2219
2226
|
cellReducer: (e) => {
|
|
@@ -2226,7 +2233,7 @@ var { reducer: Or, createActions: kr, useActions: Ar, valueAtom: Z } = ae(Dr, {
|
|
|
2226
2233
|
}
|
|
2227
2234
|
}) : e;
|
|
2228
2235
|
},
|
|
2229
|
-
prepareForRun: (e, t) =>
|
|
2236
|
+
prepareForRun: (e, t) => Mr({
|
|
2230
2237
|
state: Q({
|
|
2231
2238
|
state: e,
|
|
2232
2239
|
cellId: t.cellId,
|
|
@@ -2245,7 +2252,7 @@ var { reducer: Or, createActions: kr, useActions: Ar, valueAtom: Z } = ae(Dr, {
|
|
|
2245
2252
|
cellId: n,
|
|
2246
2253
|
cellReducer: (e) => ft(e, t)
|
|
2247
2254
|
});
|
|
2248
|
-
return t.status === "queued" && (r =
|
|
2255
|
+
return t.status === "queued" && (r = Mr({
|
|
2249
2256
|
state: r,
|
|
2250
2257
|
cellId: n,
|
|
2251
2258
|
cellReducer: (e) => ({
|
|
@@ -2264,7 +2271,7 @@ var { reducer: Or, createActions: kr, useActions: Ar, valueAtom: Z } = ae(Dr, {
|
|
|
2264
2271
|
}),
|
|
2265
2272
|
reconcileDocument: (e, t) => {
|
|
2266
2273
|
let n = Jt(e, t);
|
|
2267
|
-
for (let t of e.cellIds) t in n.cellData ||
|
|
2274
|
+
for (let t of e.cellIds) t in n.cellData || qr(t);
|
|
2268
2275
|
return n;
|
|
2269
2276
|
},
|
|
2270
2277
|
setStdinResponse: (e, n) => {
|
|
@@ -2382,7 +2389,7 @@ function Q({ state: e, cellId: n, cellReducer: r }) {
|
|
|
2382
2389
|
}
|
|
2383
2390
|
} : (t.warn(`Cell ${n} not found in state`), e);
|
|
2384
2391
|
}
|
|
2385
|
-
function
|
|
2392
|
+
function Mr({ state: e, cellId: n, cellReducer: r }) {
|
|
2386
2393
|
return n in e.cellData ? {
|
|
2387
2394
|
...e,
|
|
2388
2395
|
cellData: {
|
|
@@ -2391,11 +2398,11 @@ function jr({ state: e, cellId: n, cellReducer: r }) {
|
|
|
2391
2398
|
}
|
|
2392
2399
|
} : (t.warn(`Cell ${n} not found in state`), e);
|
|
2393
2400
|
}
|
|
2394
|
-
var
|
|
2395
|
-
C.set(Z, (t) =>
|
|
2401
|
+
var Nr = Ar((e) => {
|
|
2402
|
+
C.set(Z, (t) => kr(t, e));
|
|
2396
2403
|
}).addLogs, $ = T((e) => e(Z).cellIds);
|
|
2397
2404
|
T((e) => e($).length === 1), T((e) => wn(e(Z)).length > 0), T((e) => Tn(e(Z)).length > 0), T((e) => En(e(Z))), T((e) => Dn(e(Z))), T((e) => Sn(e(Z)));
|
|
2398
|
-
var
|
|
2405
|
+
var Pr = T((e) => {
|
|
2399
2406
|
let { cellIds: t, cellRuntime: n, cellData: r } = e(Z);
|
|
2400
2407
|
return t.map((e) => {
|
|
2401
2408
|
let t = n[e], { name: i } = r[e];
|
|
@@ -2413,44 +2420,44 @@ var Nr = T((e) => {
|
|
|
2413
2420
|
}
|
|
2414
2421
|
return null;
|
|
2415
2422
|
}).filter(Boolean);
|
|
2416
|
-
}),
|
|
2423
|
+
}), Fr = b(T((e) => {
|
|
2417
2424
|
let t = {};
|
|
2418
2425
|
for (let [n, r] of ie.entries(e(Z).cellRuntime)) r.outline !== null && r.outline.items.length > 0 && (t[n] = r.outline);
|
|
2419
2426
|
return t;
|
|
2420
|
-
})),
|
|
2421
|
-
let t = e($), n = e(
|
|
2427
|
+
})), Ir = T((e) => {
|
|
2428
|
+
let t = e($), n = e(Ur);
|
|
2422
2429
|
return Ye(t.map((e) => n[e].outline));
|
|
2423
2430
|
});
|
|
2424
|
-
T((e) => e(
|
|
2425
|
-
var
|
|
2431
|
+
T((e) => e(Pr).length);
|
|
2432
|
+
var Lr = b(T((e) => {
|
|
2426
2433
|
let { cellIds: t, cellData: n } = e(Z);
|
|
2427
2434
|
return ie.fromEntries(t.map((e) => [e, n[e]?.name]));
|
|
2428
2435
|
}));
|
|
2429
2436
|
T((e) => e(Z).scrollKey);
|
|
2430
|
-
var
|
|
2437
|
+
var Rr = () => E($), zr = () => E(Lr), Br = () => C.get(Z), Vr = () => C.get(Z).cellIds, Hr = () => {
|
|
2431
2438
|
let { cellIds: e, cellData: t } = C.get(Z);
|
|
2432
2439
|
return e.map((e) => t[e]?.name).filter(Boolean);
|
|
2433
2440
|
};
|
|
2434
2441
|
re(v(Z, (e) => e.cellIds.map((t) => e.cellData[t])));
|
|
2435
|
-
var
|
|
2442
|
+
var Ur = T((e) => e(Z).cellRuntime);
|
|
2436
2443
|
T((e) => bn(e(Z))), T((e) => {
|
|
2437
2444
|
let { cellRuntime: t } = e(Z);
|
|
2438
2445
|
return Object.entries(t).every(([e, t]) => t.status !== "running" || e === "__scratch__");
|
|
2439
2446
|
}), T((e) => xn(e(Z))), T((e) => e(Z).cellIds.length > 0);
|
|
2440
|
-
var
|
|
2441
|
-
function
|
|
2442
|
-
|
|
2447
|
+
var Wr = w((e) => T((t) => t(Z).cellData[e])), Gr = w((e) => T((t) => t(Z).cellRuntime[e])), Kr = w((e) => T((t) => t(Z).cellHandles[e]));
|
|
2448
|
+
function qr(e) {
|
|
2449
|
+
Wr.remove(e), Gr.remove(e), Kr.remove(e);
|
|
2443
2450
|
}
|
|
2444
|
-
var
|
|
2451
|
+
var Jr = (e) => {
|
|
2445
2452
|
let { cellHandles: t } = C.get(Z);
|
|
2446
2453
|
return t[e].current?.editorView;
|
|
2447
|
-
},
|
|
2448
|
-
function
|
|
2449
|
-
return
|
|
2454
|
+
}, Yr = (e) => (He.promote(e), Jr(e));
|
|
2455
|
+
function Xr() {
|
|
2456
|
+
return jr();
|
|
2450
2457
|
}
|
|
2451
2458
|
//#endregion
|
|
2452
2459
|
//#region src/core/errors/error-entries.ts
|
|
2453
|
-
function
|
|
2460
|
+
function Zr(e) {
|
|
2454
2461
|
if ($e(e.mimetype)) {
|
|
2455
2462
|
if (!Array.isArray(e.data)) return null;
|
|
2456
2463
|
let t = e.data.filter((e) => !e.type.includes("ancestor"));
|
|
@@ -2461,23 +2468,23 @@ function Xr(e) {
|
|
|
2461
2468
|
tracebackHtml: e.data
|
|
2462
2469
|
} : null;
|
|
2463
2470
|
}
|
|
2464
|
-
function
|
|
2471
|
+
function Qr(e) {
|
|
2465
2472
|
return e.some((e) => "traceback" in e && e.traceback);
|
|
2466
2473
|
}
|
|
2467
|
-
function
|
|
2474
|
+
function $r(e) {
|
|
2468
2475
|
let t = e?.find((e) => et(e.mimetype));
|
|
2469
2476
|
if (!(!t || typeof t.data != "string" || t.data.length === 0)) return t.data;
|
|
2470
2477
|
}
|
|
2471
|
-
function
|
|
2478
|
+
function ei(e, t) {
|
|
2472
2479
|
if (e.tracebackHtml) return e.tracebackHtml;
|
|
2473
|
-
if (!
|
|
2480
|
+
if (!Qr(e.errorData)) return $r(t);
|
|
2474
2481
|
}
|
|
2475
|
-
function
|
|
2482
|
+
function ti(e) {
|
|
2476
2483
|
let { cellIds: t, cellRuntime: n, cellData: r } = e.get(Z), i = [];
|
|
2477
2484
|
for (let [e, a] of t.entries()) {
|
|
2478
2485
|
let t = n[a], o = t.output;
|
|
2479
2486
|
if (!o || !M(o.mimetype)) continue;
|
|
2480
|
-
let s =
|
|
2487
|
+
let s = Zr(o);
|
|
2481
2488
|
if (!s) continue;
|
|
2482
2489
|
let c = Ut(r[a].name, e), l = r[a].lastCodeRun ?? r[a].code;
|
|
2483
2490
|
i.push({
|
|
@@ -2485,21 +2492,21 @@ function ei(e) {
|
|
|
2485
2492
|
cellName: c,
|
|
2486
2493
|
cellCode: l,
|
|
2487
2494
|
errorData: s.errorData,
|
|
2488
|
-
tracebackHtml:
|
|
2495
|
+
tracebackHtml: ei(s, t.consoleOutputs)
|
|
2489
2496
|
});
|
|
2490
2497
|
}
|
|
2491
2498
|
return i;
|
|
2492
2499
|
}
|
|
2493
|
-
function
|
|
2500
|
+
function ni(e) {
|
|
2494
2501
|
return e.type === "setup-refs" ? "The setup cell cannot have references" : e.type === "cycle" ? "This cell is in a cycle" : e.type === "multiple-defs" ? `The variable '${e.name}' was defined by another cell` : e.type === "import-star" || e.type === "lazy-import" || e.type === "ancestor-stopped" || e.type === "ancestor-prevented" || e.type === "exception" || e.type === "strict-exception" ? e.msg : e.type === "interruption" ? "This cell was interrupted and needs to be re-run" : e.type === "syntax" || e.type === "unknown" || e.type === "sql-error" ? e.msg : e.type === "internal" ? e.msg || "An internal error occurred" : (u(e), "Unknown error");
|
|
2495
2502
|
}
|
|
2496
|
-
function
|
|
2497
|
-
let t =
|
|
2503
|
+
function ri(e) {
|
|
2504
|
+
let t = ni(e);
|
|
2498
2505
|
return "traceback" in e && e.traceback && (t += `\n\nTraceback:\n${W(e.traceback)}`), t;
|
|
2499
2506
|
}
|
|
2500
|
-
function
|
|
2507
|
+
function ii(e) {
|
|
2501
2508
|
let t = [e.cellName];
|
|
2502
|
-
return e.tracebackHtml && t.push(W(e.tracebackHtml)), e.errorData.length > 0 && t.push(e.errorData.map(
|
|
2509
|
+
return e.tracebackHtml && t.push(W(e.tracebackHtml)), e.errorData.length > 0 && t.push(e.errorData.map(ri).join("\n\n")), t.join("\n\n");
|
|
2503
2510
|
}
|
|
2504
2511
|
//#endregion
|
|
2505
|
-
export {
|
|
2512
|
+
export { gn as $, yr as A, Tt as At, Zn as B, _e as Bt, wr as C, Nt as Ct, X as D, P as Dt, Sr as E, F as Et, tr as F, ht as Ft, Ln as G, Wn as H, nr as I, Ze as It, Nn as J, Pn as K, G as L, Je as Lt, vr as M, yt as Mt, ar as N, gt as Nt, br as O, Ct as Ot, rr as P, mt as Pt, jn as Q, er as R, Ue as Rt, Cr as S, Pt as St, Tr as T, Et as Tt, Gn as U, Qn as V, Hn as W, Cn as X, kn as Y, An as Z, kr as _, Lt as _t, Nr as a, H as at, zr as b, z as bt, Ar as c, Ut as ct, Hr as d, Vt as dt, ln as et, Vr as f, Dt as ft, Ir as g, Ft as gt, Z as h, R as ht, ti as i, Qt as it, Y as j, vt as jt, xr as k, I as kt, Yr as l, Ht as lt, Or as m, It as mt, ii as n, tn as nt, Wr as o, Xt as ot, Br as p, L as pt, Mn as q, ri as r, Zt as rt, $ as s, Yt as st, ni as t, W as tt, Jr as u, Wt as ut, qr as v, zt as vt, Er as w, wt, Xr as x, Ot as xt, Rr as y, Rt as yt, Xn as z, ve as zt };
|
|
@@ -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-
|
|
6
|
+
import { Bt as o, D as s, E as c, F as l, L as u, i as d, j as f, n as p, q as m } from "./error-entries-CJGdD2ky.js";
|
|
7
|
+
import { n as h, t as ee } from "./globals-B2_uMYDY.js";
|
|
8
8
|
import { t as g } from "./strings-BCKpLFNU.js";
|
|
9
9
|
import { t as _ } from "./jsx-runtime-3BD1kT0s.js";
|
|
10
10
|
import { l as te, r as v, x as ne } from "./utils-DXkj82sK.js";
|
|
11
11
|
import { a as re, i as ie, n as ae, r as oe } from "./dialog-BtprQCUw.js";
|
|
12
12
|
import { t as se } from "./useAsyncData-DsZMvNXn.js";
|
|
13
|
-
import { t as ce } from "./code-visibility-
|
|
13
|
+
import { t as ce } from "./code-visibility-BKBl9Rh6.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 l(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
91
|
let [o, s] = (0, y.useState)(a), c;
|
|
92
92
|
n[5] !== e || n[6] !== i ? (c = (t) => {
|
|
93
93
|
s(t), i.set(e, t);
|
|
94
94
|
}, n[5] = e, n[6] = i, n[7] = c) : c = n[7];
|
|
95
|
-
let
|
|
96
|
-
return n[8] !==
|
|
95
|
+
let u = c, 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 l = se(r, i), f = d(te), g = ce(), _ = ne(u), y = ne(s), 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 = l.data ? le(l.data, navigator.userAgent) : l.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)(o, { 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)(c, {
|
|
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)(c, {
|
|
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] !== l.status || e[46] !== t ? (Y = l.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] = l.status, e[46] = t, e[47] = Y) : Y = e[47];
|
|
244
244
|
let X;
|
|
245
|
-
e[48] !==
|
|
245
|
+
e[48] !== l || e[49] !== t ? (X = (l.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: () => l.refetch(),
|
|
255
255
|
children: "Retry"
|
|
256
256
|
})
|
|
257
257
|
]
|
|
258
|
-
}), e[48] =
|
|
258
|
+
}), e[48] = l, 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-B-jKSwGt.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-BRfADrzD.js";
|
|
16
16
|
export { e as diagram };
|