@marimo-team/islands 0.24.3-dev39 → 0.24.3-dev40
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-DeiKXaGB.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1062 -1062
- package/dist/ErrorBoundary-CacTZz7K.js +200 -0
- package/dist/{abnfDiagram-VCTEODGH-DKNGRyhn.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +2 -2
- package/dist/{any-language-editor-BdvsE_1G.js → any-language-editor-CycIVIeP.js} +13 -13
- package/dist/{architectureDiagram-5GKGNRK7-C9oCEyV-.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +1 -1
- package/dist/{html-to-image-CZm_DMIE.js → cells-BSgNCBZ8.js} +5177 -8831
- package/dist/{chat-ui-D15itIKJ.js → chat-ui-CygzVJ9s.js} +1345 -1394
- package/dist/{check-mcQyZmFG.js → check-B7cIK6gb.js} +1 -1
- package/dist/{chunk-IMKFNOWR-ByL0a1rh.js → chunk-IMKFNOWR-BfwTebD0.js} +1 -1
- package/dist/{chunk-SHT3W25Y-D1Nb5X1c.js → chunk-SHT3W25Y-BspJEJ5H.js} +1 -1
- package/dist/{chunk-SVP7TREG-BShKxcfD.js → chunk-SVP7TREG-DX3rFNTe.js} +1 -1
- package/dist/{chunk-TICWLB2K-zpDbKPt8.js → chunk-TICWLB2K-fVF7Uujg.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-qcsoIIQw.js → classDiagram-ZZMXUADV-Fe-V14Sc.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-CAgMct5x.js → classDiagram-v2-VYDZK3BY-xTDg7lOs.js} +2 -2
- package/dist/code-visibility-BBNwvBcV.js +138 -0
- package/dist/{common-eNTtBSo2.js → common-DM3lblo7.js} +5531 -5730
- package/dist/copy-icon-CLdENY__.js +190 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-BzBXigwN.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-B-75J283.js → dagre-GXQ25YYZ-xHNAUTyG.js} +1 -1
- package/dist/{data-grid-overlay-editor-DMu5X3F1.js → data-grid-overlay-editor-DjRvSwGI.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-Bzr5oWc0.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CVIH_HJ_.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +1 -1
- package/dist/{diagram-VX7I27RA-BmoMwYLC.js → diagram-VX7I27RA-BMwGFVD6.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BW1w6mnj.js → diagram-Z3DM3KII--KLDR9Pl.js} +1 -1
- package/dist/dialog-CgNq6y9-.js +94 -0
- package/dist/{objectWithoutPropertiesLoose-BbiTb8zy.js → dist-CO1AwwG_.js} +516 -572
- package/dist/{dropdown-menu-WMrB1UnI.js → dropdown-menu-CZgjYSAh.js} +1437 -2793
- package/dist/{ebnfDiagram-PWID7BFC-90Q6gkC0.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-BZkLy3TR.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1 -1
- package/dist/error-banner-B94dcDmP.js +391 -0
- package/dist/error-entries-iJn-Nryx.js +56 -0
- package/dist/{esm-qM9GvHZi.js → esm-h8f7-1CJ.js} +316 -315
- package/dist/feedback-button-BkFFL-wb.js +380 -0
- package/dist/{flowDiagram-HODETNUW-CD1F_wj5.js → flowDiagram-HODETNUW-6dMdB8pR.js} +2 -2
- package/dist/{formats-B-gajYGs.js → formats-BR5iGb4s.js} +1 -1
- package/dist/{glide-data-editor-DzFEatOq.js → glide-data-editor-CeAOHG6x.js} +117 -116
- package/dist/{glide-utils-4WmLlefP.js → glide-utils-B3rUT5PI.js} +2 -2
- package/dist/globals-C74RodJy.js +19 -0
- package/dist/html-to-image-kpuRfdfZ.js +3253 -0
- package/dist/{infoDiagram-27XIBGKW-t0zIIRVa.js → infoDiagram-27XIBGKW-BagtCX_5.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DtQUIYgx.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CUMmwuNB.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +1 -1
- package/dist/{label-e37ixur5.js → label-BJ49YTvk.js} +1 -1
- package/dist/main.js +4717 -4728
- package/dist/{mermaid-CMLxoJ0m.js → mermaid-DPNuhemn.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-DnbkiQla.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +1 -1
- package/dist/{number-overlay-editor-lGqRHkFt.js → number-overlay-editor-DDyIkEk3.js} +1 -1
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
- package/dist/{pegDiagram-XKGWAZYB-qgqAYMdv.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-DJUB6w6B.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +1 -1
- package/dist/{process-output-DuupNR0m.js → process-output-DFe2tVIY.js} +7 -6
- package/dist/{railroadDiagram-O6MQD6OU-C0dtw4sR.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DqaTsUuC.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +1 -1
- package/dist/{reveal-component-CNqmC7b6.js → reveal-component-CRy68FxJ.js} +625 -625
- package/dist/{select-UMOSCa3W.js → select-C6plhmZr.js} +308 -553
- package/dist/{sequenceDiagram-WJ2MYXX4-D2NyWGuu.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +1 -1
- package/dist/{spec-BiD5y7ft.js → spec-CAYwFeV6.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-JChw35bc.js → stateDiagram-D77RDMKH-orN6AwMx.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-BfVY7OxA.js → stateDiagram-v2-MP3YSRHH-o05_rJN8.js} +2 -2
- package/dist/{swimlanes-42K2YHIH-eAB6utyY.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-Cnpd2YtA.js → swimlanesDiagram-VR7AAH4N-D_nFQfRc.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-DlnODX3U.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +1 -1
- package/dist/{toDate-0cxDmdsp.js → toDate-WXg1yLcI.js} +2 -2
- package/dist/toast-DvY70eFX.js +1834 -0
- package/dist/tooltip-qB8NlSqV.js +1742 -0
- package/dist/{schemas-BDZr-nP0.js → use-restore-focus-D5D9xEjZ.js} +1385 -1166
- package/dist/{useAsyncData-DCIhDLCe.js → useAsyncData-BD6AStMt.js} +1 -1
- package/dist/{useDateFormatter-BKpQHt-W.js → useDateFormatter-BRTPsUK7.js} +2 -2
- package/dist/{useDeepCompareMemoize-CLaZB7Gc.js → useDeepCompareMemoize-D_HNdyvI.js} +1 -1
- package/dist/{useLifecycle-C1ViBACC.js → useLifecycle-DPgiiwwU.js} +2 -2
- package/dist/useNumberFormatter-BfDpa21j.js +251 -0
- package/dist/{useTheme-Da9LJvrQ.js → useTheme-DzXmYZ5V.js} +83 -83
- package/dist/{vega-component-Bt6d8B4Q.js → vega-component-D0QXopU8.js} +27 -27
- package/dist/{vennDiagram-4TSXK5OY-B_m5KxUg.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-Dw-Lgv3D.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-BjfRms1e.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +53 -33
- package/src/components/ui/use-toast.ts +8 -0
- package/dist/ErrorBoundary-B3IKS4qY.js +0 -125
- package/dist/copy-C0N4m1lm.js +0 -141
- package/dist/dist-6ChWbo8z.js +0 -1360
- package/dist/error-banner-hCaH06e3.js +0 -611
- package/dist/tooltip-CdE8k0pS.js +0 -390
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
+
import { h as t, t as n } from "./button-DdXAm8iz.js";
|
|
3
|
+
import { t as r } from "./react-ofJbxM4x.js";
|
|
4
|
+
import { t as i } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
+
import { t as a } from "./copy-icon-CLdENY__.js";
|
|
6
|
+
import { Bt as o, H as s, Ht as c, L as l, Ot as u, V as d, d as f, hn as p } from "./cells-BSgNCBZ8.js";
|
|
7
|
+
import { b as m } from "./select-C6plhmZr.js";
|
|
8
|
+
import { n as h, t as ee } from "./globals-C74RodJy.js";
|
|
9
|
+
import { t as g } from "./jsx-runtime-DgDPJV9S.js";
|
|
10
|
+
import { C as _, _ as te, i as v } from "./useTheme-DzXmYZ5V.js";
|
|
11
|
+
import { a as ne, i as re, n as ie, r as ae } from "./dialog-CgNq6y9-.js";
|
|
12
|
+
import { t as oe } from "./useAsyncData-BD6AStMt.js";
|
|
13
|
+
import { t as se } from "./code-visibility-BBNwvBcV.js";
|
|
14
|
+
import { i as ce, n as le } from "./error-entries-iJn-Nryx.js";
|
|
15
|
+
//#region src/components/ui/skeleton.tsx
|
|
16
|
+
var y = /* @__PURE__ */ e(r(), 1), b = i(), x = g(), ue = (e) => {
|
|
17
|
+
let n = (0, b.c)(8), r, i;
|
|
18
|
+
n[0] === e ? (r = n[1], i = n[2]) : ({className: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
|
|
19
|
+
let a;
|
|
20
|
+
n[3] === r ? a = n[4] : (a = t("animate-pulse rounded-md bg-muted", r), n[3] = r, n[4] = a);
|
|
21
|
+
let o;
|
|
22
|
+
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ (0, x.jsx)("div", {
|
|
23
|
+
className: a,
|
|
24
|
+
...i
|
|
25
|
+
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/core/diagnostics/issue-details.ts
|
|
29
|
+
function de(e, t) {
|
|
30
|
+
return {
|
|
31
|
+
...e,
|
|
32
|
+
Binaries: {
|
|
33
|
+
...e.Binaries,
|
|
34
|
+
Browser: t
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function fe(e, t, n, r) {
|
|
39
|
+
return {
|
|
40
|
+
marimo: e,
|
|
41
|
+
Locale: n || void 0,
|
|
42
|
+
Binaries: { Browser: t },
|
|
43
|
+
"Environment Collection Error": r
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function S(e, t) {
|
|
47
|
+
let n = Math.max(2, ...Array.from(t.matchAll(/`+/g), (e) => e[0].length)), r = "`".repeat(n + 1);
|
|
48
|
+
return `${r}${e}\n${t}\n${r}`;
|
|
49
|
+
}
|
|
50
|
+
function pe(e, t) {
|
|
51
|
+
let n = e.includes("?") ? "&" : "?", r = [], i = e, a = 0;
|
|
52
|
+
for (let [e, o] of Object.entries(t)) {
|
|
53
|
+
if (o.length === 0) continue;
|
|
54
|
+
let t = `${e}=${encodeURIComponent(o)}`, s = `${i}${a === 0 ? n : "&"}${t}`;
|
|
55
|
+
if (s.length > 6e3) {
|
|
56
|
+
r.push(e);
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
i = s, a += 1;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
url: i,
|
|
63
|
+
omitted: r
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function C(e, t) {
|
|
67
|
+
return [
|
|
68
|
+
"<details>",
|
|
69
|
+
`<summary>${m.htmlEscape(e) ?? ""}</summary>`,
|
|
70
|
+
"",
|
|
71
|
+
t,
|
|
72
|
+
"",
|
|
73
|
+
"</details>"
|
|
74
|
+
].join("\n");
|
|
75
|
+
}
|
|
76
|
+
function me(e) {
|
|
77
|
+
return C("Environment", S("json", JSON.stringify(e, null, 2)));
|
|
78
|
+
}
|
|
79
|
+
function he(e) {
|
|
80
|
+
return C("Errors", S("text", e.map(le).join("\n\n---\n\n")));
|
|
81
|
+
}
|
|
82
|
+
function ge(e) {
|
|
83
|
+
return C("Code", S("python", e));
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/hooks/useLocalStorage.ts
|
|
87
|
+
function _e(e, t) {
|
|
88
|
+
let n = (0, b.c)(11), r;
|
|
89
|
+
n[0] === t ? r = n[1] : (r = new o(t), n[0] = t, n[1] = r);
|
|
90
|
+
let i = r, a;
|
|
91
|
+
n[2] !== e || n[3] !== i ? (a = () => i.get(e), n[2] = e, n[3] = i, n[4] = a) : a = n[4];
|
|
92
|
+
let [s, c] = (0, y.useState)(a), l;
|
|
93
|
+
n[5] !== e || n[6] !== i ? (l = (t) => {
|
|
94
|
+
c(t), i.set(e, t);
|
|
95
|
+
}, n[5] = e, n[6] = i, n[7] = l) : l = n[7];
|
|
96
|
+
let u = l, d;
|
|
97
|
+
return n[8] !== u || n[9] !== s ? (d = [s, u], n[8] = u, n[9] = s, n[10] = d) : d = n[10], d;
|
|
98
|
+
}
|
|
99
|
+
var ve = (e) => {
|
|
100
|
+
let r = (0, b.c)(16), { content: i } = e, [a, o] = (0, y.useState)(!1), s = !a && "max-h-24 overflow-hidden", c;
|
|
101
|
+
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);
|
|
102
|
+
let l;
|
|
103
|
+
r[2] !== i || r[3] !== c ? (l = /* @__PURE__ */ (0, x.jsx)("pre", {
|
|
104
|
+
className: c,
|
|
105
|
+
children: i
|
|
106
|
+
}), r[2] = i, r[3] = c, r[4] = l) : l = r[4];
|
|
107
|
+
let u;
|
|
108
|
+
r[5] === a ? u = r[6] : (u = !a && /* @__PURE__ */ (0, x.jsx)("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 h-10 rounded-b bg-gradient-to-b from-transparent to-muted" }), r[5] = a, r[6] = u);
|
|
109
|
+
let d;
|
|
110
|
+
r[7] !== l || r[8] !== u ? (d = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
111
|
+
className: "relative",
|
|
112
|
+
children: [l, u]
|
|
113
|
+
}), r[7] = l, r[8] = u, r[9] = d) : d = r[9];
|
|
114
|
+
let f;
|
|
115
|
+
r[10] === Symbol.for("react.memo_cache_sentinel") ? (f = () => o(T), r[10] = f) : f = r[10];
|
|
116
|
+
let p = a ? "Show less" : "Show more", m;
|
|
117
|
+
r[11] === p ? m = r[12] : (m = /* @__PURE__ */ (0, x.jsx)(n, {
|
|
118
|
+
type: "button",
|
|
119
|
+
variant: "link",
|
|
120
|
+
size: "xs",
|
|
121
|
+
className: "self-start",
|
|
122
|
+
onClick: f,
|
|
123
|
+
children: p
|
|
124
|
+
}), r[11] = p, r[12] = m);
|
|
125
|
+
let h;
|
|
126
|
+
return r[13] !== d || r[14] !== m ? (h = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
127
|
+
className: "flex flex-col gap-1",
|
|
128
|
+
children: [d, m]
|
|
129
|
+
}), r[13] = d, r[14] = m, r[15] = h) : h = r[15], h;
|
|
130
|
+
};
|
|
131
|
+
function ye(e) {
|
|
132
|
+
if (!e.hasRequestClient) return "Notebook source is unavailable.";
|
|
133
|
+
if (e.filename === null) return "Save the notebook first.";
|
|
134
|
+
if (!e.codeAvailable) return "Notebook source is hidden in this view.";
|
|
135
|
+
if (e.connectionState !== s.OPEN) return "Connect the notebook to include its source.";
|
|
136
|
+
}
|
|
137
|
+
var w = () => {
|
|
138
|
+
let e = (0, b.c)(61), t = _(u), r, i;
|
|
139
|
+
e[0] === t ? (r = e[1], i = e[2]) : (r = async () => {
|
|
140
|
+
if (t != null) return t.getEnvironmentInfo();
|
|
141
|
+
}, i = [t], e[0] = t, e[1] = r, e[2] = i);
|
|
142
|
+
let o = oe(r, i), s = _(f), m = ce(te), g;
|
|
143
|
+
if (e[3] !== s.cellData || e[4] !== s.cellIds.inOrderIds) {
|
|
144
|
+
let t;
|
|
145
|
+
e[6] === s.cellData ? t = e[7] : (t = (e) => s.cellData[e], e[6] = s.cellData, e[7] = t), g = s.cellIds.inOrderIds.map(t), e[3] = s.cellData, e[4] = s.cellIds.inOrderIds, e[5] = g;
|
|
146
|
+
} else g = e[5];
|
|
147
|
+
let y = se(g), S = _(c), C = _(d), w = t != null, T;
|
|
148
|
+
e[8] !== y || e[9] !== C.state || e[10] !== S || e[11] !== w ? (T = ye({
|
|
149
|
+
hasRequestClient: w,
|
|
150
|
+
filename: S,
|
|
151
|
+
codeAvailable: y,
|
|
152
|
+
connectionState: C.state
|
|
153
|
+
}), e[8] = y, e[9] = C.state, e[10] = S, e[11] = w, e[12] = T) : T = e[12];
|
|
154
|
+
let E = T, D = E === void 0, [O, k] = _e("marimo:issue-report:include-errors", !1), [A, xe] = _e("marimo:issue-report:include-code", !1), j = o.data ? de(o.data, navigator.userAgent) : o.status === "error" || t == null ? fe(ee(), navigator.userAgent, navigator.language, "Server environment information unavailable") : void 0, M, N;
|
|
155
|
+
e[13] !== A || e[14] !== D || e[15] !== t ? (M = async () => {
|
|
156
|
+
if (!A || !D || t == null) return;
|
|
157
|
+
let { contents: e } = await t.readCode();
|
|
158
|
+
return e;
|
|
159
|
+
}, N = [
|
|
160
|
+
A,
|
|
161
|
+
D,
|
|
162
|
+
t
|
|
163
|
+
], e[13] = A, e[14] = D, e[15] = t, e[16] = M, e[17] = N) : (M = e[16], N = e[17]);
|
|
164
|
+
let P = oe(M, N), Se = v.bugReportUrl, Ce = [];
|
|
165
|
+
if (j) {
|
|
166
|
+
let e = { env: me(j) };
|
|
167
|
+
O && m.length > 0 && (e["bug-description"] = he(m)), A && P.data && (e["reproduction-code"] = ge(P.data)), {url: Se, omitted: Ce} = pe(v.bugReportUrl, e);
|
|
168
|
+
}
|
|
169
|
+
let we = Ce.map(be).join(", "), F;
|
|
170
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, x.jsxs)(re, { children: [/* @__PURE__ */ (0, x.jsx)(ne, { children: "Report an issue" }), /* @__PURE__ */ (0, x.jsx)(ae, { 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[18] = F) : F = e[18];
|
|
171
|
+
let I;
|
|
172
|
+
e[19] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ (0, x.jsx)(p, { className: "w-4 h-4 mr-2" }), e[19] = I) : I = e[19];
|
|
173
|
+
let Te = m.length === 0, L;
|
|
174
|
+
e[20] === k ? L = e[21] : (L = (e) => k(e === !0), e[20] = k, e[21] = L);
|
|
175
|
+
let R;
|
|
176
|
+
e[22] !== O || e[23] !== L || e[24] !== Te ? (R = /* @__PURE__ */ (0, x.jsx)(l, {
|
|
177
|
+
id: "issue-include-errors",
|
|
178
|
+
checked: O,
|
|
179
|
+
disabled: Te,
|
|
180
|
+
onCheckedChange: L,
|
|
181
|
+
"aria-label": "Include errors"
|
|
182
|
+
}), e[22] = O, e[23] = L, e[24] = Te, e[25] = R) : R = e[25];
|
|
183
|
+
let z;
|
|
184
|
+
e[26] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ (0, x.jsx)("label", {
|
|
185
|
+
htmlFor: "issue-include-errors",
|
|
186
|
+
children: "Include errors"
|
|
187
|
+
}), e[26] = z) : z = e[26];
|
|
188
|
+
let B;
|
|
189
|
+
e[27] === R ? B = e[28] : (B = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
190
|
+
className: "flex items-center gap-2 text-sm",
|
|
191
|
+
children: [R, z]
|
|
192
|
+
}), e[27] = R, e[28] = B);
|
|
193
|
+
let Ee = !D, V;
|
|
194
|
+
e[29] === xe ? V = e[30] : (V = (e) => xe(e === !0), e[29] = xe, e[30] = V);
|
|
195
|
+
let H;
|
|
196
|
+
e[31] !== A || e[32] !== Ee || e[33] !== V ? (H = /* @__PURE__ */ (0, x.jsx)(l, {
|
|
197
|
+
id: "issue-include-code",
|
|
198
|
+
checked: A,
|
|
199
|
+
disabled: Ee,
|
|
200
|
+
onCheckedChange: V,
|
|
201
|
+
"aria-label": "Include notebook code"
|
|
202
|
+
}), e[31] = A, e[32] = Ee, e[33] = V, e[34] = H) : H = e[34];
|
|
203
|
+
let U;
|
|
204
|
+
e[35] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ (0, x.jsx)("label", {
|
|
205
|
+
htmlFor: "issue-include-code",
|
|
206
|
+
children: "Include notebook code"
|
|
207
|
+
}), e[35] = U) : U = e[35];
|
|
208
|
+
let W;
|
|
209
|
+
e[36] === H ? W = e[37] : (W = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
210
|
+
className: "flex items-center gap-2 text-sm",
|
|
211
|
+
children: [H, U]
|
|
212
|
+
}), e[36] = H, e[37] = W);
|
|
213
|
+
let G;
|
|
214
|
+
e[38] === E ? G = e[39] : (G = E && /* @__PURE__ */ (0, x.jsx)("span", {
|
|
215
|
+
className: "text-xs text-muted-foreground ml-6",
|
|
216
|
+
children: E
|
|
217
|
+
}), e[38] = E, e[39] = G);
|
|
218
|
+
let K;
|
|
219
|
+
e[40] !== P || e[41] !== A ? (K = A && P.status === "error" && /* @__PURE__ */ (0, x.jsx)("span", {
|
|
220
|
+
className: "text-xs text-(--red-11) ml-6",
|
|
221
|
+
children: "Notebook source could not be loaded."
|
|
222
|
+
}), e[40] = P, e[41] = A, e[42] = K) : K = e[42];
|
|
223
|
+
let q;
|
|
224
|
+
e[43] !== W || e[44] !== G || e[45] !== K ? (q = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
225
|
+
className: "flex flex-col gap-1",
|
|
226
|
+
children: [
|
|
227
|
+
W,
|
|
228
|
+
G,
|
|
229
|
+
K
|
|
230
|
+
]
|
|
231
|
+
}), e[43] = W, e[44] = G, e[45] = K, e[46] = q) : q = e[46];
|
|
232
|
+
let J;
|
|
233
|
+
e[47] !== B || e[48] !== q ? (J = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
234
|
+
className: "flex flex-col gap-2",
|
|
235
|
+
children: [B, q]
|
|
236
|
+
}), e[47] = B, e[48] = q, e[49] = J) : J = e[49];
|
|
237
|
+
let Y;
|
|
238
|
+
e[50] !== o.status || e[51] !== t ? (Y = o.status === "pending" && t != null && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
239
|
+
className: "flex flex-col gap-2",
|
|
240
|
+
children: [
|
|
241
|
+
/* @__PURE__ */ (0, x.jsx)("span", {
|
|
242
|
+
className: "text-sm text-muted-foreground",
|
|
243
|
+
children: "Loading environment details…"
|
|
244
|
+
}),
|
|
245
|
+
/* @__PURE__ */ (0, x.jsx)(ue, { className: "h-4 w-full" }),
|
|
246
|
+
/* @__PURE__ */ (0, x.jsx)(ue, { className: "h-4 w-3/4" }),
|
|
247
|
+
/* @__PURE__ */ (0, x.jsx)(ue, { className: "h-4 w-1/2" })
|
|
248
|
+
]
|
|
249
|
+
}), e[50] = o.status, e[51] = t, e[52] = Y) : Y = e[52];
|
|
250
|
+
let X;
|
|
251
|
+
e[53] !== o || e[54] !== t ? (X = (o.status === "error" || t == null) && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
252
|
+
className: "flex items-center gap-2 text-sm",
|
|
253
|
+
children: [
|
|
254
|
+
/* @__PURE__ */ (0, x.jsx)(h, { className: "w-4 h-4 text-(--yellow-11) shrink-0" }),
|
|
255
|
+
/* @__PURE__ */ (0, x.jsx)("span", { children: "Server environment information unavailable" }),
|
|
256
|
+
t != null && /* @__PURE__ */ (0, x.jsx)(n, {
|
|
257
|
+
type: "button",
|
|
258
|
+
variant: "link",
|
|
259
|
+
size: "xs",
|
|
260
|
+
onClick: () => o.refetch(),
|
|
261
|
+
children: "Retry"
|
|
262
|
+
})
|
|
263
|
+
]
|
|
264
|
+
}), e[53] = o, e[54] = t, e[55] = X) : X = e[55];
|
|
265
|
+
let Z;
|
|
266
|
+
e[56] !== j || e[57] !== m ? (Z = j && m.length === 0 && /* @__PURE__ */ (0, x.jsx)("span", {
|
|
267
|
+
className: "text-sm text-muted-foreground",
|
|
268
|
+
children: "No errors detected."
|
|
269
|
+
}), e[56] = j, e[57] = m, e[58] = Z) : Z = e[58];
|
|
270
|
+
let Q;
|
|
271
|
+
e[59] === Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ (0, x.jsx)("a", {
|
|
272
|
+
href: v.feedbackForm,
|
|
273
|
+
target: "_blank",
|
|
274
|
+
rel: "noreferrer",
|
|
275
|
+
className: "underline",
|
|
276
|
+
children: "two-minute survey"
|
|
277
|
+
}), e[59] = Q) : Q = e[59];
|
|
278
|
+
let $;
|
|
279
|
+
return e[60] === Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ (0, x.jsx)("div", {
|
|
280
|
+
className: "border-t pt-3",
|
|
281
|
+
children: /* @__PURE__ */ (0, x.jsxs)("p", {
|
|
282
|
+
className: "text-sm text-muted-foreground",
|
|
283
|
+
children: [
|
|
284
|
+
"Other feedback? Take our",
|
|
285
|
+
" ",
|
|
286
|
+
Q,
|
|
287
|
+
" ",
|
|
288
|
+
"or chat with us on",
|
|
289
|
+
" ",
|
|
290
|
+
/* @__PURE__ */ (0, x.jsx)("a", {
|
|
291
|
+
href: v.discordLink,
|
|
292
|
+
target: "_blank",
|
|
293
|
+
rel: "noreferrer",
|
|
294
|
+
className: "underline",
|
|
295
|
+
children: "Discord"
|
|
296
|
+
}),
|
|
297
|
+
"."
|
|
298
|
+
]
|
|
299
|
+
})
|
|
300
|
+
}), e[60] = $) : $ = e[60], /* @__PURE__ */ (0, x.jsxs)(ie, {
|
|
301
|
+
className: "w-[540px] max-w-[90vw]",
|
|
302
|
+
children: [F, /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
303
|
+
className: "flex flex-col gap-4 max-h-[60vh] overflow-y-auto",
|
|
304
|
+
children: [
|
|
305
|
+
/* @__PURE__ */ (0, x.jsxs)("div", {
|
|
306
|
+
className: "flex flex-col gap-3",
|
|
307
|
+
children: [
|
|
308
|
+
/* @__PURE__ */ (0, x.jsx)(n, {
|
|
309
|
+
type: "button",
|
|
310
|
+
variant: "default",
|
|
311
|
+
size: "xs",
|
|
312
|
+
asChild: !0,
|
|
313
|
+
className: "self-start",
|
|
314
|
+
children: /* @__PURE__ */ (0, x.jsxs)("a", {
|
|
315
|
+
href: Se,
|
|
316
|
+
target: "_blank",
|
|
317
|
+
rel: "noreferrer",
|
|
318
|
+
children: [I, "Open GitHub issue"]
|
|
319
|
+
})
|
|
320
|
+
}),
|
|
321
|
+
J,
|
|
322
|
+
we ? /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
323
|
+
className: "flex items-start gap-2 text-xs text-(--yellow-11)",
|
|
324
|
+
children: [/* @__PURE__ */ (0, x.jsx)(h, { className: "w-3.5 h-3.5 shrink-0 mt-0.5" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [
|
|
325
|
+
"Too large to prefill and left out of the link: ",
|
|
326
|
+
we,
|
|
327
|
+
". Paste them into the issue manually."
|
|
328
|
+
] })]
|
|
329
|
+
}) : /* @__PURE__ */ (0, x.jsx)("p", {
|
|
330
|
+
className: "text-xs text-muted-foreground",
|
|
331
|
+
children: "Your environment is always included."
|
|
332
|
+
})
|
|
333
|
+
]
|
|
334
|
+
}),
|
|
335
|
+
Y,
|
|
336
|
+
X,
|
|
337
|
+
j && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
338
|
+
className: "flex flex-col gap-1",
|
|
339
|
+
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
|
|
340
|
+
className: "flex items-center justify-between",
|
|
341
|
+
children: [/* @__PURE__ */ (0, x.jsx)("span", {
|
|
342
|
+
className: "text-sm font-medium",
|
|
343
|
+
children: "Environment details"
|
|
344
|
+
}), /* @__PURE__ */ (0, x.jsx)(a, {
|
|
345
|
+
className: "w-3.5 h-3.5",
|
|
346
|
+
value: JSON.stringify(j, null, 2),
|
|
347
|
+
ariaLabel: "Copy environment JSON",
|
|
348
|
+
toastTitle: "Environment details copied"
|
|
349
|
+
})]
|
|
350
|
+
}), /* @__PURE__ */ (0, x.jsx)(ve, { content: JSON.stringify(j, null, 2) })]
|
|
351
|
+
}),
|
|
352
|
+
j && m.length > 0 && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
353
|
+
className: "flex flex-col gap-1",
|
|
354
|
+
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
|
|
355
|
+
className: "flex items-center justify-between",
|
|
356
|
+
children: [/* @__PURE__ */ (0, x.jsx)("span", {
|
|
357
|
+
className: "text-sm font-medium",
|
|
358
|
+
children: "Errors"
|
|
359
|
+
}), /* @__PURE__ */ (0, x.jsx)(a, {
|
|
360
|
+
className: "w-3.5 h-3.5",
|
|
361
|
+
value: he(m),
|
|
362
|
+
ariaLabel: "Copy errors",
|
|
363
|
+
toastTitle: "Errors copied"
|
|
364
|
+
})]
|
|
365
|
+
}), /* @__PURE__ */ (0, x.jsx)(ve, { content: m.map(le).join("\n\n---\n\n") })]
|
|
366
|
+
}),
|
|
367
|
+
Z,
|
|
368
|
+
$
|
|
369
|
+
]
|
|
370
|
+
})]
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
function T(e) {
|
|
374
|
+
return !e;
|
|
375
|
+
}
|
|
376
|
+
function be(e) {
|
|
377
|
+
return e === "bug-description" ? "errors" : e === "reproduction-code" ? "code" : e;
|
|
378
|
+
}
|
|
379
|
+
//#endregion
|
|
380
|
+
export { w as FeedbackModal };
|
|
@@ -8,9 +8,9 @@ import "./chunk-4HAMMTFA-D2qv8E0X.js";
|
|
|
8
8
|
import "./chunk-GVQU2GXP-yQEdulRS.js";
|
|
9
9
|
import "./chunk-L3NEJ4N5-DwRWnDDK.js";
|
|
10
10
|
import "./chunk-OSK3NFVY-BBKU_Ign.js";
|
|
11
|
-
import "./mermaid-
|
|
11
|
+
import "./mermaid-DPNuhemn.js";
|
|
12
12
|
import "./chunk-F27PBJKO-DHmYWZXr.js";
|
|
13
13
|
import "./chunk-XXDRQBXY-Dnl5VBqG.js";
|
|
14
14
|
import "./chunk-POPQ4Y6H-BCbS3Ozc.js";
|
|
15
|
-
import { n as e } from "./chunk-SHT3W25Y-
|
|
15
|
+
import { n as e } from "./chunk-SHT3W25Y-BspJEJ5H.js";
|
|
16
16
|
export { e as diagram };
|
|
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { h as t, r as n } from "./button-DdXAm8iz.js";
|
|
3
3
|
import { t as r } from "./react-ofJbxM4x.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
-
import { t as a } from "./toDate-
|
|
5
|
+
import { t as a } from "./toDate-WXg1yLcI.js";
|
|
6
6
|
import { t as o } from "./jsx-runtime-DgDPJV9S.js";
|
|
7
7
|
import { i as s } from "./loader-D2W4oM-3.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
|