@marimo-team/islands 0.25.3-dev209 → 0.25.3-dev210
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-ApTYh0V3.js → ConnectedDataExplorerComponent-D6RHJV8D.js} +114 -112
- package/dist/{ErrorBoundary-B1QlXN-y.js → ErrorBoundary-VruaQLnK.js} +10 -10
- package/dist/{abnfDiagram-VCTEODGH-uo9xhZY0.js → abnfDiagram-VCTEODGH-0q7Lbmii.js} +2 -2
- package/dist/{any-language-editor-BVFHDDQ3.js → any-language-editor-jGaR0EAo.js} +5 -5
- package/dist/{architectureDiagram-5GKGNRK7-Hz6eyeOD.js → architectureDiagram-5GKGNRK7-1PydKPmE.js} +1 -1
- package/dist/{button-BQRdqQi1.js → button-B6RjDKJx.js} +54 -51
- package/dist/{capabilities-C2QUNRXi.js → capabilities-CkVzWJEX.js} +1 -1
- package/dist/{chat-ui-BTA1I5i1.js → chat-ui-B5pH_aXk.js} +414 -413
- package/dist/{check-C9Mp9eCK.js → check-Z_vtI3OL.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DBM2i23k.js → chunk-IMKFNOWR-DEzZZ1Zc.js} +1 -1
- package/dist/{chunk-SHT3W25Y-L8KQLLBy.js → chunk-SHT3W25Y-CuHj-hnn.js} +1 -1
- package/dist/{chunk-SVP7TREG-BOUJKJEP.js → chunk-SVP7TREG-BPiZK2bA.js} +1 -1
- package/dist/{chunk-TICWLB2K-DY3CzFjX.js → chunk-TICWLB2K-DF6XcIjM.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-s9iwW-q4.js → classDiagram-ZZMXUADV-CMdR-cP4.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-2GI5CjGB.js → classDiagram-v2-VYDZK3BY-DRvc3_7Y.js} +2 -2
- package/dist/{code-visibility-CCGlDSq4.js → code-visibility-BdFhHfIC.js} +28 -28
- package/dist/{common-C1PmVtVW.js → common-Ce1SgsX1.js} +8034 -8027
- package/dist/{toDate-BZZ64K_m.js → config-DbjzjwxX.js} +98 -164
- package/dist/{copy-icon-De584pZ4.js → copy-icon-CG57cxwb.js} +3 -3
- package/dist/createReducer-DePYJ0F3.js +63 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-DOxnhBK2.js → cynefinDiagram-5FMLGOSQ-BkBjEY9l.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-D1AhEfpM.js → dagre-GXQ25YYZ-D-HEaW4I.js} +1 -1
- package/dist/{data-grid-overlay-editor-B3KXkZvo.js → data-grid-overlay-editor-Bps1p6jQ.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-DV_GebF_.js → diagram-S7CK7UJ4-Bn-oF-rB.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-6dNzGFfD.js → diagram-UQ7AKVKN-BpzzXWBj.js} +1 -1
- package/dist/{diagram-VX7I27RA-DUh9jsfi.js → diagram-VX7I27RA-COOtvfBP.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Cug-qcQ8.js → diagram-Z3DM3KII-K5cXvbrl.js} +1 -1
- package/dist/{dialog-DVRfQuhD.js → dialog-DsZ49mmU.js} +26 -26
- package/dist/{dist-BJtmSgcE.js → dist-11T5wq3_.js} +41 -40
- package/dist/{dist-B1M0bGO3.js → dist-17ugwGZc.js} +59 -58
- package/dist/{dist-D7mrh5sO.js → dist-7cRjf--y.js} +135 -134
- package/dist/{dist-Ck_C32ye.js → dist-B8pkfkzc.js} +31 -30
- package/dist/{dist-Ba2VIn1K.js → dist-B9UoM_wq.js} +54 -53
- package/dist/{dist-KN80qWCP.js → dist-BGuMTs1i.js} +118 -117
- package/dist/{dist-T5rh6JvL.js → dist-BHW11fni.js} +18 -17
- package/dist/dist-BLY4m1Wi.js +850 -0
- package/dist/{dist-Bj4bmwUm.js → dist-BNlcVoxs.js} +31 -30
- package/dist/{dist-BA13RJj5.js → dist-BQYe5Bju.js} +47 -46
- package/dist/{dist-OUle2RT7.js → dist-BX1mn8na.js} +297 -297
- package/dist/{dist-CTi5FTiV.js → dist-Bh0PTKUW.js} +108 -107
- package/dist/{dist-D9Q3xjiP.js → dist-CKaXK92p.js} +56 -55
- package/dist/{dist-DYXM73-k.js → dist-CLhwfhpJ.js} +58 -57
- package/dist/{dist-BmS-ZGjl.js → dist-CYeqK4Xw.js} +1854 -2702
- package/dist/{dist-D1fnFp1J.js → dist-Cxlp3WH6.js} +16 -15
- package/dist/{dist-DVVwOfrD.js → dist-DSJPGj42.js} +64 -63
- package/dist/{dist-Bzogh7CW.js → dist-DU9ICsWZ.js} +93 -92
- package/dist/{dist-DjeybPOb.js → dist-DWv0ALBi.js} +47 -46
- package/dist/{dist-D3x9__Fu.js → dist-DiBpWEsB.js} +39 -38
- package/dist/{dist-DtGn9N4h.js → dist-DiLFTlnl.js} +165 -165
- package/dist/{dist-DTv9KkpW.js → dist-cVDV5IuI.js} +26 -25
- package/dist/{dist-DP60Ubh8.js → dist-fRfaOoq8.js} +44 -43
- package/dist/{dist-O0qFpEJh.js → dist-gTTI-9Px.js} +66 -65
- package/dist/{dropdown-menu-dlEm41Bt.js → dropdown-menu-CSNdPSnS.js} +2886 -1529
- package/dist/{ebnfDiagram-PWID7BFC-d5LKx7Vb.js → ebnfDiagram-PWID7BFC-BI1ZmjVm.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-BwvlkcID.js → erDiagram-RLTQ6QDP-BtWjj9xy.js} +1 -1
- package/dist/{error-banner-DxJ3s8YO.js → error-banner-IsonnvA0.js} +47 -46
- package/dist/error-entries-CRPfxMqm.js +2505 -0
- package/dist/{esm-Bbw_Njjx.js → esm-BgKjMvWw.js} +389 -388
- package/dist/{esm-mDQNEFe_.js → esm-CHjVSexr.js} +305 -306
- package/dist/{feedback-button-UsovT9sL.js → feedback-button-2ycmR9GG.js} +112 -112
- package/dist/{flowDiagram-HODETNUW-CJcSoFer.js → flowDiagram-HODETNUW-DQvZh96A.js} +2 -2
- package/dist/{formats-Ry7c-aIV.js → formats-BK4VefeF.js} +6 -6
- package/dist/{glide-data-editor-CRd8kBSp.js → glide-data-editor-Buj2OZjL.js} +99 -99
- package/dist/{glide-utils-D98laidb.js → glide-utils-CQddGpa-.js} +3 -3
- package/dist/{globals-BDWrOstF.js → globals-B-14fUeb.js} +3 -3
- package/dist/{error-entries-CVUHA5r_.js → html-to-image-CgAnxFi8.js} +26314 -25474
- package/dist/{infoDiagram-27XIBGKW-Cezgppw3.js → infoDiagram-27XIBGKW-BdAObnc_.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-BahZQwJz.js → ishikawaDiagram-5VMMS53U-DP-jE8dw.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-Cvfn_Obm.js → kanban-definition-UXKFOSKX-BkMgPjfm.js} +1 -1
- package/dist/{loader-DOVB0Syl.js → loader-BisjOLiW.js} +1 -1
- package/dist/main.js +2996 -2992
- package/dist/{mermaid-BrdwbArF.js → mermaid-B-OFqheA.js} +36 -36
- package/dist/{mindmap-definition-YA3MSWOX-uB4B2d-J.js → mindmap-definition-YA3MSWOX-Du7toAZX.js} +1 -1
- package/dist/{number-overlay-editor-Bp9a4z5Q.js → number-overlay-editor-ZVFcJ7_u.js} +1 -1
- package/dist/{dist-CThPVKaP.js → objectWithoutPropertiesLoose-ai5NUqGa.js} +1139 -1120
- package/dist/{pegDiagram-XKGWAZYB-CYaIwAmH.js → pegDiagram-XKGWAZYB-CX_729j0.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BJ1oUxVv.js → pieDiagram-E7YTZNPT-dtTFJcVI.js} +1 -1
- package/dist/{process-output-SjJxB1wh.js → process-output-Bmev5azU.js} +5 -5
- package/dist/{railroadDiagram-O6MQD6OU-BqKSaBux.js → railroadDiagram-O6MQD6OU-Dsc2Cf4c.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DwFhgDhH.js → requirementDiagram-BXWQKSXE-D3g0c60I.js} +1 -1
- package/dist/{reveal-component-ov3pS-oO.js → reveal-component-BWz1KjWe.js} +725 -725
- package/dist/schemas-CdscWNy_.js +4747 -0
- package/dist/select-BSxlITBo.js +1200 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-L7ENjfKF.js → sequenceDiagram-WJ2MYXX4-w1pWbIpk.js} +1 -1
- package/dist/{spec-BcJ9ncAY.js → spec-Dq8RNplp.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-CVf88u-p.js → stateDiagram-D77RDMKH-BCv7kP4H.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DvpkQ1V6.js → stateDiagram-v2-MP3YSRHH-D1cTOt0x.js} +2 -2
- package/dist/static-state-BldGd99T.js +72 -0
- package/dist/strings-BGW-fXVJ.js +507 -0
- package/dist/{swimlanes-42K2YHIH-DIuFHbVE.js → swimlanes-42K2YHIH-DNO6jDnd.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CAqHAziW.js → swimlanesDiagram-VR7AAH4N-CkSWsxYJ.js} +2 -2
- package/dist/{swiper-component-BVfnhbnt.js → swiper-component-Dir1o8ml.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-xO4EQqBm.js → timeline-definition-24CTP7MA-DQvqGFM9.js} +1 -1
- package/dist/toast-BWIPi3aF.js +491 -0
- package/dist/{tooltip-s4zZxwKe.js → tooltip-C3UnvsRe.js} +58 -58
- package/dist/use-restore-focus-BWO0z1lo.js +1672 -0
- package/dist/{useAsyncData-Dqw22wZQ.js → useAsyncData-DsZMvNXn.js} +1 -1
- package/dist/{useDateFormatter-D3Tkfzej.js → useDateFormatter-ChB4eyim.js} +2 -2
- package/dist/{useDeepCompareMemoize-D3gozcjJ.js → useDeepCompareMemoize-KMBBux8C.js} +1 -1
- package/dist/{useIframeCapabilities-6a_yDNXp.js → useIframeCapabilities-cMNQ80CK.js} +1 -1
- package/dist/useLifecycle-BquH9ET-.js +112 -0
- package/dist/useTheme-B9C1JIy9.js +307 -0
- package/dist/utils-DXkj82sK.js +813 -0
- package/dist/{vega-component-Blvspl7v.js → vega-component-9NOEITbg.js} +55 -54
- package/dist/{vennDiagram-4TSXK5OY-DzCi-lRh.js → vennDiagram-4TSXK5OY-BfzXp4SH.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-CW48xa0n.js → wardleyDiagram-VM6X3IG4-CiqEE8eq.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-UPxGGI2B.js → xychartDiagram-S5SC5T6Z-BTIHCVOI.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +1 -1
- package/src/components/editor/cell/code/cell-editor.tsx +13 -36
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +1 -1
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +11 -5
- package/src/components/editor/notebook-cell.tsx +0 -1
- package/src/components/scratchpad/scratchpad.test.tsx +3 -11
- package/src/components/scratchpad/scratchpad.tsx +24 -22
- package/src/components/scratchpad/state.ts +7 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +6 -8
- package/src/core/ai/staged-cells.ts +4 -2
- package/src/core/cells/__tests__/cells.test.ts +44 -60
- package/src/core/cells/__tests__/document.test.ts +1 -139
- package/src/core/cells/__tests__/notebook-outline.test.ts +8 -6
- package/src/core/cells/actions.ts +39 -0
- package/src/core/cells/cells.ts +15 -35
- package/src/core/cells/document.ts +9 -84
- package/src/core/codemirror/__tests__/format.test.ts +0 -34
- package/src/core/codemirror/cells/extensions.ts +20 -18
- package/src/core/codemirror/cells/state.ts +0 -5
- package/src/core/codemirror/format.ts +1 -19
- package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
- package/src/core/codemirror/misc/paste.ts +1 -1
- package/src/core/notebook/document/__tests__/codemirror.test.ts +172 -0
- package/src/stories/layout/vertical/one-column.stories.tsx +26 -18
- package/dist/html-to-image--E3uFbJ9.js +0 -3348
- package/dist/label-Qvw1E97W.js +0 -281
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +0 -23
- package/dist/select-2KOiReNY.js +0 -1423
- package/dist/toast-B5t9o6s_.js +0 -1848
- package/dist/use-restore-focus-BgDTd2tc.js +0 -6418
- package/dist/useLifecycle-CaZi4wTw.js +0 -172
- package/dist/useTheme-TzPgWXwB.js +0 -1114
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { h as t, t as n } from "./button-
|
|
2
|
+
import { h as t, t as n } from "./button-B6RjDKJx.js";
|
|
3
3
|
import { t as r } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { t as a } from "./copy-icon-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { a as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
5
|
+
import { t as a } from "./copy-icon-CG57cxwb.js";
|
|
6
|
+
import { A as o, E as s, I as c, K as l, P as u, T as d, i as f, n as p, zt as m } from "./error-entries-CRPfxMqm.js";
|
|
7
|
+
import { n as h, t as ee } from "./globals-B-14fUeb.js";
|
|
8
|
+
import { t as g } from "./strings-BGW-fXVJ.js";
|
|
9
|
+
import { t as _ } from "./jsx-runtime-3BD1kT0s.js";
|
|
10
|
+
import { l as te, r as v, x as ne } from "./utils-DXkj82sK.js";
|
|
11
|
+
import { a as re, i as ie, n as ae, r as oe } from "./dialog-DsZ49mmU.js";
|
|
12
|
+
import { t as se } from "./useAsyncData-DsZMvNXn.js";
|
|
13
|
+
import { t as ce } from "./code-visibility-BdFhHfIC.js";
|
|
14
14
|
//#region src/components/ui/skeleton.tsx
|
|
15
|
-
var
|
|
16
|
-
let n = (0,
|
|
15
|
+
var y = /* @__PURE__ */ e(r(), 1), b = i(), x = _(), le = (e) => {
|
|
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;
|
|
19
19
|
n[3] === r ? a = n[4] : (a = t("animate-pulse rounded-md bg-muted", r), n[3] = r, n[4] = a);
|
|
20
20
|
let o;
|
|
21
|
-
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ (0,
|
|
21
|
+
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ (0, x.jsx)("div", {
|
|
22
22
|
className: a,
|
|
23
23
|
...i
|
|
24
24
|
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
@@ -65,7 +65,7 @@ function fe(e, t) {
|
|
|
65
65
|
function C(e, t) {
|
|
66
66
|
return [
|
|
67
67
|
"<details>",
|
|
68
|
-
`<summary>${
|
|
68
|
+
`<summary>${g.htmlEscape(e) ?? ""}</summary>`,
|
|
69
69
|
"",
|
|
70
70
|
t,
|
|
71
71
|
"",
|
|
@@ -84,11 +84,11 @@ function he(e) {
|
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/hooks/useLocalStorage.ts
|
|
86
86
|
function ge(e, t) {
|
|
87
|
-
let n = (0,
|
|
87
|
+
let n = (0, b.c)(11), r;
|
|
88
88
|
n[0] === t ? r = n[1] : (r = new u(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,
|
|
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];
|
|
@@ -96,24 +96,24 @@ function ge(e, t) {
|
|
|
96
96
|
return n[8] !== l || n[9] !== o ? (d = [o, l], n[8] = l, n[9] = o, n[10] = d) : d = n[10], d;
|
|
97
97
|
}
|
|
98
98
|
var _e = (e) => {
|
|
99
|
-
let r = (0,
|
|
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;
|
|
102
|
-
r[2] !== i || r[3] !== c ? (l = /* @__PURE__ */ (0,
|
|
102
|
+
r[2] !== i || r[3] !== c ? (l = /* @__PURE__ */ (0, x.jsx)("pre", {
|
|
103
103
|
className: c,
|
|
104
104
|
children: i
|
|
105
105
|
}), r[2] = i, r[3] = c, r[4] = l) : l = r[4];
|
|
106
106
|
let u;
|
|
107
|
-
r[5] === a ? u = r[6] : (u = !a && /* @__PURE__ */ (0,
|
|
107
|
+
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);
|
|
108
108
|
let d;
|
|
109
|
-
r[7] !== l || r[8] !== u ? (d = /* @__PURE__ */ (0,
|
|
109
|
+
r[7] !== l || r[8] !== u ? (d = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
110
110
|
className: "relative",
|
|
111
111
|
children: [l, u]
|
|
112
112
|
}), r[7] = l, r[8] = u, r[9] = d) : d = r[9];
|
|
113
113
|
let f;
|
|
114
114
|
r[10] === Symbol.for("react.memo_cache_sentinel") ? (f = () => o(T), r[10] = f) : f = r[10];
|
|
115
115
|
let p = a ? "Show less" : "Show more", m;
|
|
116
|
-
r[11] === p ? m = r[12] : (m = /* @__PURE__ */ (0,
|
|
116
|
+
r[11] === p ? m = r[12] : (m = /* @__PURE__ */ (0, x.jsx)(n, {
|
|
117
117
|
type: "button",
|
|
118
118
|
variant: "link",
|
|
119
119
|
size: "xs",
|
|
@@ -122,7 +122,7 @@ var _e = (e) => {
|
|
|
122
122
|
children: p
|
|
123
123
|
}), r[11] = p, r[12] = m);
|
|
124
124
|
let h;
|
|
125
|
-
return r[13] !== d || r[14] !== m ? (h = /* @__PURE__ */ (0,
|
|
125
|
+
return r[13] !== d || r[14] !== m ? (h = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
126
126
|
className: "flex flex-col gap-1",
|
|
127
127
|
children: [d, m]
|
|
128
128
|
}), r[13] = d, r[14] = m, r[15] = h) : h = r[15], h;
|
|
@@ -131,91 +131,91 @@ function ve(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 !== o.OPEN) return "Connect the notebook to include its source.";
|
|
135
135
|
}
|
|
136
136
|
var w = () => {
|
|
137
|
-
let e = (0,
|
|
137
|
+
let e = (0, b.c)(56), t = ne(l), 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] !==
|
|
141
|
+
let o = se(r, i), u = f(te), g = ce(), _ = ne(c), y = ne(s), S = t != null, C;
|
|
142
|
+
e[3] !== g || e[4] !== y.state || e[5] !== _ || e[6] !== S ? (C = ve({
|
|
143
143
|
hasRequestClient: S,
|
|
144
|
-
filename:
|
|
145
|
-
codeAvailable:
|
|
146
|
-
connectionState:
|
|
147
|
-
}), e[3] =
|
|
148
|
-
let w = C, T = w === void 0, [E, D] = ge("marimo:issue-report:include-errors", !1), [O,
|
|
149
|
-
e[8] !== O || e[9] !== T || e[10] !== t ? (
|
|
144
|
+
filename: _,
|
|
145
|
+
codeAvailable: g,
|
|
146
|
+
connectionState: y.state
|
|
147
|
+
}), e[3] = g, e[4] = y.state, e[5] = _, e[6] = S, e[7] = C) : C = e[7];
|
|
148
|
+
let w = C, T = w === void 0, [E, D] = ge("marimo:issue-report:include-errors", !1), [O, k] = ge("marimo:issue-report:include-code", !1), A = o.data ? ue(o.data, navigator.userAgent) : o.status === "error" || t == null ? de(ee(), navigator.userAgent, navigator.language, "Server environment information unavailable") : void 0, j, M;
|
|
149
|
+
e[8] !== O || e[9] !== T || e[10] !== t ? (j = async () => {
|
|
150
150
|
if (!O || !T || t == null) return;
|
|
151
151
|
let { contents: e } = await t.readCode();
|
|
152
152
|
return e;
|
|
153
|
-
},
|
|
153
|
+
}, M = [
|
|
154
154
|
O,
|
|
155
155
|
T,
|
|
156
156
|
t
|
|
157
|
-
], e[8] = O, e[9] = T, e[10] = t, e[11] =
|
|
158
|
-
let
|
|
159
|
-
if (
|
|
160
|
-
let e = { env: pe(
|
|
161
|
-
E && u.length > 0 && (e["bug-description"] = me(u)), O &&
|
|
157
|
+
], e[8] = O, e[9] = T, e[10] = t, e[11] = j, e[12] = M) : (j = e[11], M = e[12]);
|
|
158
|
+
let N = se(j, M), be = v.bugReportUrl, xe = [];
|
|
159
|
+
if (A) {
|
|
160
|
+
let e = { env: pe(A) };
|
|
161
|
+
E && u.length > 0 && (e["bug-description"] = me(u)), O && N.data && (e["reproduction-code"] = he(N.data)), {url: be, omitted: xe} = fe(v.bugReportUrl, e);
|
|
162
162
|
}
|
|
163
|
-
let
|
|
164
|
-
e[13] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
165
|
-
let
|
|
166
|
-
e[14] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
167
|
-
let
|
|
168
|
-
e[15] === D ?
|
|
169
|
-
let
|
|
170
|
-
e[17] !== E || e[18] !==
|
|
163
|
+
let Se = xe.map(ye).join(", "), P;
|
|
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
|
+
let F;
|
|
166
|
+
e[14] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, x.jsx)(m, { className: "w-4 h-4 mr-2" }), e[14] = F) : F = e[14];
|
|
167
|
+
let I = u.length === 0, L;
|
|
168
|
+
e[15] === D ? L = e[16] : (L = (e) => D(e === !0), e[15] = D, e[16] = L);
|
|
169
|
+
let R;
|
|
170
|
+
e[17] !== E || e[18] !== I || e[19] !== L ? (R = /* @__PURE__ */ (0, x.jsx)(d, {
|
|
171
171
|
id: "issue-include-errors",
|
|
172
172
|
checked: E,
|
|
173
|
-
disabled:
|
|
174
|
-
onCheckedChange:
|
|
173
|
+
disabled: I,
|
|
174
|
+
onCheckedChange: L,
|
|
175
175
|
"aria-label": "Include errors"
|
|
176
|
-
}), e[17] = E, e[18] =
|
|
177
|
-
let
|
|
178
|
-
e[21] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
176
|
+
}), e[17] = E, e[18] = I, e[19] = L, e[20] = R) : R = e[20];
|
|
177
|
+
let z;
|
|
178
|
+
e[21] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ (0, x.jsx)("label", {
|
|
179
179
|
htmlFor: "issue-include-errors",
|
|
180
180
|
children: "Include errors"
|
|
181
|
-
}), e[21] =
|
|
182
|
-
let
|
|
183
|
-
e[22] ===
|
|
181
|
+
}), e[21] = z) : z = e[21];
|
|
182
|
+
let B;
|
|
183
|
+
e[22] === R ? B = e[23] : (B = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
184
184
|
className: "flex items-center gap-2 text-sm",
|
|
185
|
-
children: [
|
|
186
|
-
}), e[22] =
|
|
187
|
-
let
|
|
188
|
-
e[24] ===
|
|
185
|
+
children: [R, z]
|
|
186
|
+
}), e[22] = R, e[23] = B);
|
|
187
|
+
let Ce = !T, V;
|
|
188
|
+
e[24] === k ? V = e[25] : (V = (e) => k(e === !0), e[24] = k, e[25] = V);
|
|
189
189
|
let H;
|
|
190
|
-
e[26] !== O || e[27] !==
|
|
190
|
+
e[26] !== O || e[27] !== Ce || e[28] !== V ? (H = /* @__PURE__ */ (0, x.jsx)(d, {
|
|
191
191
|
id: "issue-include-code",
|
|
192
192
|
checked: O,
|
|
193
|
-
disabled:
|
|
193
|
+
disabled: Ce,
|
|
194
194
|
onCheckedChange: V,
|
|
195
195
|
"aria-label": "Include notebook code"
|
|
196
|
-
}), e[26] = O, e[27] =
|
|
196
|
+
}), e[26] = O, e[27] = Ce, e[28] = V, e[29] = H) : H = e[29];
|
|
197
197
|
let U;
|
|
198
|
-
e[30] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ (0,
|
|
198
|
+
e[30] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ (0, x.jsx)("label", {
|
|
199
199
|
htmlFor: "issue-include-code",
|
|
200
200
|
children: "Include notebook code"
|
|
201
201
|
}), e[30] = U) : U = e[30];
|
|
202
202
|
let W;
|
|
203
|
-
e[31] === H ? W = e[32] : (W = /* @__PURE__ */ (0,
|
|
203
|
+
e[31] === H ? W = e[32] : (W = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
204
204
|
className: "flex items-center gap-2 text-sm",
|
|
205
205
|
children: [H, U]
|
|
206
206
|
}), e[31] = H, e[32] = W);
|
|
207
207
|
let G;
|
|
208
|
-
e[33] === w ? G = e[34] : (G = w && /* @__PURE__ */ (0,
|
|
208
|
+
e[33] === w ? G = e[34] : (G = w && /* @__PURE__ */ (0, x.jsx)("span", {
|
|
209
209
|
className: "text-xs text-muted-foreground ml-6",
|
|
210
210
|
children: w
|
|
211
211
|
}), e[33] = w, e[34] = G);
|
|
212
212
|
let K;
|
|
213
|
-
e[35] !==
|
|
213
|
+
e[35] !== N || e[36] !== O ? (K = O && 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] =
|
|
216
|
+
}), e[35] = N, e[36] = O, e[37] = K) : K = e[37];
|
|
217
217
|
let q;
|
|
218
|
-
e[38] !== W || e[39] !== G || e[40] !== K ? (q = /* @__PURE__ */ (0,
|
|
218
|
+
e[38] !== W || e[39] !== G || e[40] !== K ? (q = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
219
219
|
className: "flex flex-col gap-1",
|
|
220
220
|
children: [
|
|
221
221
|
W,
|
|
@@ -224,55 +224,55 @@ var w = () => {
|
|
|
224
224
|
]
|
|
225
225
|
}), e[38] = W, e[39] = G, e[40] = K, e[41] = q) : q = e[41];
|
|
226
226
|
let J;
|
|
227
|
-
e[42] !==
|
|
227
|
+
e[42] !== B || e[43] !== q ? (J = /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
228
228
|
className: "flex flex-col gap-2",
|
|
229
|
-
children: [
|
|
230
|
-
}), e[42] =
|
|
229
|
+
children: [B, q]
|
|
230
|
+
}), e[42] = B, e[43] = q, e[44] = J) : J = e[44];
|
|
231
231
|
let Y;
|
|
232
|
-
e[45] !==
|
|
232
|
+
e[45] !== o.status || e[46] !== t ? (Y = o.status === "pending" && t != null && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
233
233
|
className: "flex flex-col gap-2",
|
|
234
234
|
children: [
|
|
235
|
-
/* @__PURE__ */ (0,
|
|
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,
|
|
240
|
-
/* @__PURE__ */ (0,
|
|
241
|
-
/* @__PURE__ */ (0,
|
|
239
|
+
/* @__PURE__ */ (0, x.jsx)(le, { className: "h-4 w-full" }),
|
|
240
|
+
/* @__PURE__ */ (0, x.jsx)(le, { className: "h-4 w-3/4" }),
|
|
241
|
+
/* @__PURE__ */ (0, x.jsx)(le, { className: "h-4 w-1/2" })
|
|
242
242
|
]
|
|
243
|
-
}), e[45] =
|
|
243
|
+
}), e[45] = o.status, e[46] = t, e[47] = Y) : Y = e[47];
|
|
244
244
|
let X;
|
|
245
|
-
e[48] !==
|
|
245
|
+
e[48] !== o || e[49] !== t ? (X = (o.status === "error" || t == null) && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
246
246
|
className: "flex items-center gap-2 text-sm",
|
|
247
247
|
children: [
|
|
248
|
-
/* @__PURE__ */ (0,
|
|
249
|
-
/* @__PURE__ */ (0,
|
|
250
|
-
t != null && /* @__PURE__ */ (0,
|
|
248
|
+
/* @__PURE__ */ (0, x.jsx)(h, { className: "w-4 h-4 text-(--yellow-11) shrink-0" }),
|
|
249
|
+
/* @__PURE__ */ (0, x.jsx)("span", { children: "Server environment information unavailable" }),
|
|
250
|
+
t != null && /* @__PURE__ */ (0, x.jsx)(n, {
|
|
251
251
|
type: "button",
|
|
252
252
|
variant: "link",
|
|
253
253
|
size: "xs",
|
|
254
|
-
onClick: () =>
|
|
254
|
+
onClick: () => o.refetch(),
|
|
255
255
|
children: "Retry"
|
|
256
256
|
})
|
|
257
257
|
]
|
|
258
|
-
}), e[48] =
|
|
258
|
+
}), e[48] = o, e[49] = t, e[50] = X) : X = e[50];
|
|
259
259
|
let Z;
|
|
260
|
-
e[51] !==
|
|
260
|
+
e[51] !== A || e[52] !== u ? (Z = A && u.length === 0 && /* @__PURE__ */ (0, x.jsx)("span", {
|
|
261
261
|
className: "text-sm text-muted-foreground",
|
|
262
262
|
children: "No errors detected."
|
|
263
|
-
}), e[51] =
|
|
263
|
+
}), e[51] = A, e[52] = u, e[53] = Z) : Z = e[53];
|
|
264
264
|
let Q;
|
|
265
|
-
e[54] === Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ (0,
|
|
266
|
-
href:
|
|
265
|
+
e[54] === Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ (0, x.jsx)("a", {
|
|
266
|
+
href: v.feedbackForm,
|
|
267
267
|
target: "_blank",
|
|
268
268
|
rel: "noreferrer",
|
|
269
269
|
className: "underline",
|
|
270
270
|
children: "two-minute survey"
|
|
271
271
|
}), e[54] = Q) : Q = e[54];
|
|
272
272
|
let $;
|
|
273
|
-
return e[55] === Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ (0,
|
|
273
|
+
return e[55] === Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ (0, x.jsx)("div", {
|
|
274
274
|
className: "border-t pt-3",
|
|
275
|
-
children: /* @__PURE__ */ (0,
|
|
275
|
+
children: /* @__PURE__ */ (0, x.jsxs)("p", {
|
|
276
276
|
className: "text-sm text-muted-foreground",
|
|
277
277
|
children: [
|
|
278
278
|
"Other feedback? Take our",
|
|
@@ -281,8 +281,8 @@ var w = () => {
|
|
|
281
281
|
" ",
|
|
282
282
|
"or chat with us on",
|
|
283
283
|
" ",
|
|
284
|
-
/* @__PURE__ */ (0,
|
|
285
|
-
href:
|
|
284
|
+
/* @__PURE__ */ (0, x.jsx)("a", {
|
|
285
|
+
href: v.discordLink,
|
|
286
286
|
target: "_blank",
|
|
287
287
|
rel: "noreferrer",
|
|
288
288
|
className: "underline",
|
|
@@ -291,36 +291,36 @@ var w = () => {
|
|
|
291
291
|
"."
|
|
292
292
|
]
|
|
293
293
|
})
|
|
294
|
-
}), e[55] = $) : $ = e[55], /* @__PURE__ */ (0,
|
|
294
|
+
}), e[55] = $) : $ = e[55], /* @__PURE__ */ (0, x.jsxs)(ae, {
|
|
295
295
|
className: "w-[540px] max-w-[90vw]",
|
|
296
|
-
children: [
|
|
296
|
+
children: [P, /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
297
297
|
className: "flex flex-col gap-4 max-h-[60vh] overflow-y-auto",
|
|
298
298
|
children: [
|
|
299
|
-
/* @__PURE__ */ (0,
|
|
299
|
+
/* @__PURE__ */ (0, x.jsxs)("div", {
|
|
300
300
|
className: "flex flex-col gap-3",
|
|
301
301
|
children: [
|
|
302
|
-
/* @__PURE__ */ (0,
|
|
302
|
+
/* @__PURE__ */ (0, x.jsx)(n, {
|
|
303
303
|
type: "button",
|
|
304
304
|
variant: "default",
|
|
305
305
|
size: "xs",
|
|
306
306
|
asChild: !0,
|
|
307
307
|
className: "self-start",
|
|
308
|
-
children: /* @__PURE__ */ (0,
|
|
309
|
-
href:
|
|
308
|
+
children: /* @__PURE__ */ (0, x.jsxs)("a", {
|
|
309
|
+
href: be,
|
|
310
310
|
target: "_blank",
|
|
311
311
|
rel: "noreferrer",
|
|
312
|
-
children: [
|
|
312
|
+
children: [F, "Open GitHub issue"]
|
|
313
313
|
})
|
|
314
314
|
}),
|
|
315
315
|
J,
|
|
316
|
-
|
|
316
|
+
Se ? /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
317
317
|
className: "flex items-start gap-2 text-xs text-(--yellow-11)",
|
|
318
|
-
children: [/* @__PURE__ */ (0,
|
|
318
|
+
children: [/* @__PURE__ */ (0, x.jsx)(h, { className: "w-3.5 h-3.5 shrink-0 mt-0.5" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [
|
|
319
319
|
"Too large to prefill and left out of the link: ",
|
|
320
|
-
|
|
320
|
+
Se,
|
|
321
321
|
". Paste them into the issue manually."
|
|
322
322
|
] })]
|
|
323
|
-
}) : /* @__PURE__ */ (0,
|
|
323
|
+
}) : /* @__PURE__ */ (0, x.jsx)("p", {
|
|
324
324
|
className: "text-xs text-muted-foreground",
|
|
325
325
|
children: "Your environment is always included."
|
|
326
326
|
})
|
|
@@ -328,35 +328,35 @@ var w = () => {
|
|
|
328
328
|
}),
|
|
329
329
|
Y,
|
|
330
330
|
X,
|
|
331
|
-
|
|
331
|
+
A && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
332
332
|
className: "flex flex-col gap-1",
|
|
333
|
-
children: [/* @__PURE__ */ (0,
|
|
333
|
+
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
|
|
334
334
|
className: "flex items-center justify-between",
|
|
335
|
-
children: [/* @__PURE__ */ (0,
|
|
335
|
+
children: [/* @__PURE__ */ (0, x.jsx)("span", {
|
|
336
336
|
className: "text-sm font-medium",
|
|
337
337
|
children: "Environment details"
|
|
338
|
-
}), /* @__PURE__ */ (0,
|
|
338
|
+
}), /* @__PURE__ */ (0, x.jsx)(a, {
|
|
339
339
|
className: "w-3.5 h-3.5",
|
|
340
|
-
value: JSON.stringify(
|
|
340
|
+
value: JSON.stringify(A, null, 2),
|
|
341
341
|
ariaLabel: "Copy environment JSON",
|
|
342
342
|
toastTitle: "Environment details copied"
|
|
343
343
|
})]
|
|
344
|
-
}), /* @__PURE__ */ (0,
|
|
344
|
+
}), /* @__PURE__ */ (0, x.jsx)(_e, { content: JSON.stringify(A, null, 2) })]
|
|
345
345
|
}),
|
|
346
|
-
|
|
346
|
+
A && u.length > 0 && /* @__PURE__ */ (0, x.jsxs)("div", {
|
|
347
347
|
className: "flex flex-col gap-1",
|
|
348
|
-
children: [/* @__PURE__ */ (0,
|
|
348
|
+
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
|
|
349
349
|
className: "flex items-center justify-between",
|
|
350
|
-
children: [/* @__PURE__ */ (0,
|
|
350
|
+
children: [/* @__PURE__ */ (0, x.jsx)("span", {
|
|
351
351
|
className: "text-sm font-medium",
|
|
352
352
|
children: "Errors"
|
|
353
|
-
}), /* @__PURE__ */ (0,
|
|
353
|
+
}), /* @__PURE__ */ (0, x.jsx)(a, {
|
|
354
354
|
className: "w-3.5 h-3.5",
|
|
355
355
|
value: me(u),
|
|
356
356
|
ariaLabel: "Copy errors",
|
|
357
357
|
toastTitle: "Errors copied"
|
|
358
358
|
})]
|
|
359
|
-
}), /* @__PURE__ */ (0,
|
|
359
|
+
}), /* @__PURE__ */ (0, x.jsx)(_e, { content: u.map(p).join("\n\n---\n\n") })]
|
|
360
360
|
}),
|
|
361
361
|
Z,
|
|
362
362
|
$
|
|
@@ -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-OFqheA.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-CuHj-hnn.js";
|
|
16
16
|
export { e as diagram };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { h as t,
|
|
2
|
+
import { h as t, s as n } from "./button-B6RjDKJx.js";
|
|
3
3
|
import { t as r } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { t as a } from "./
|
|
6
|
-
import {
|
|
7
|
-
import { i as s } from "./loader-
|
|
5
|
+
import { t as a } from "./jsx-runtime-3BD1kT0s.js";
|
|
6
|
+
import { u as o } from "./static-state-BldGd99T.js";
|
|
7
|
+
import { i as s } from "./loader-BisjOLiW.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
|
|
9
9
|
function c(e) {
|
|
10
10
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
@@ -12,11 +12,11 @@ function c(e) {
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
|
|
14
14
|
function l(e) {
|
|
15
|
-
return !(!c(e) && typeof e != "number" || isNaN(+
|
|
15
|
+
return !(!c(e) && typeof e != "number" || isNaN(+o(e)));
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/components/ui/alert.tsx
|
|
19
|
-
var u = i(), d = /* @__PURE__ */ e(r(), 1), f =
|
|
19
|
+
var u = i(), d = /* @__PURE__ */ e(r(), 1), f = a(), p = n("relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] has-[svg]:pl-11", {
|
|
20
20
|
variants: { variant: {
|
|
21
21
|
default: "bg-background text-foreground",
|
|
22
22
|
destructive: "text-destructive border-destructive/50 dark:border-destructive [&>svg]:text-destructive text-destructive",
|