@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.
Files changed (140) hide show
  1. package/dist/{ConnectedDataExplorerComponent-ApTYh0V3.js → ConnectedDataExplorerComponent-D6RHJV8D.js} +114 -112
  2. package/dist/{ErrorBoundary-B1QlXN-y.js → ErrorBoundary-VruaQLnK.js} +10 -10
  3. package/dist/{abnfDiagram-VCTEODGH-uo9xhZY0.js → abnfDiagram-VCTEODGH-0q7Lbmii.js} +2 -2
  4. package/dist/{any-language-editor-BVFHDDQ3.js → any-language-editor-jGaR0EAo.js} +5 -5
  5. package/dist/{architectureDiagram-5GKGNRK7-Hz6eyeOD.js → architectureDiagram-5GKGNRK7-1PydKPmE.js} +1 -1
  6. package/dist/{button-BQRdqQi1.js → button-B6RjDKJx.js} +54 -51
  7. package/dist/{capabilities-C2QUNRXi.js → capabilities-CkVzWJEX.js} +1 -1
  8. package/dist/{chat-ui-BTA1I5i1.js → chat-ui-B5pH_aXk.js} +414 -413
  9. package/dist/{check-C9Mp9eCK.js → check-Z_vtI3OL.js} +1 -1
  10. package/dist/{chunk-IMKFNOWR-DBM2i23k.js → chunk-IMKFNOWR-DEzZZ1Zc.js} +1 -1
  11. package/dist/{chunk-SHT3W25Y-L8KQLLBy.js → chunk-SHT3W25Y-CuHj-hnn.js} +1 -1
  12. package/dist/{chunk-SVP7TREG-BOUJKJEP.js → chunk-SVP7TREG-BPiZK2bA.js} +1 -1
  13. package/dist/{chunk-TICWLB2K-DY3CzFjX.js → chunk-TICWLB2K-DF6XcIjM.js} +1 -1
  14. package/dist/{classDiagram-ZZMXUADV-s9iwW-q4.js → classDiagram-ZZMXUADV-CMdR-cP4.js} +2 -2
  15. package/dist/{classDiagram-v2-VYDZK3BY-2GI5CjGB.js → classDiagram-v2-VYDZK3BY-DRvc3_7Y.js} +2 -2
  16. package/dist/{code-visibility-CCGlDSq4.js → code-visibility-BdFhHfIC.js} +28 -28
  17. package/dist/{common-C1PmVtVW.js → common-Ce1SgsX1.js} +8034 -8027
  18. package/dist/{toDate-BZZ64K_m.js → config-DbjzjwxX.js} +98 -164
  19. package/dist/{copy-icon-De584pZ4.js → copy-icon-CG57cxwb.js} +3 -3
  20. package/dist/createReducer-DePYJ0F3.js +63 -0
  21. package/dist/{cynefinDiagram-5FMLGOSQ-DOxnhBK2.js → cynefinDiagram-5FMLGOSQ-BkBjEY9l.js} +1 -1
  22. package/dist/{dagre-GXQ25YYZ-D1AhEfpM.js → dagre-GXQ25YYZ-D-HEaW4I.js} +1 -1
  23. package/dist/{data-grid-overlay-editor-B3KXkZvo.js → data-grid-overlay-editor-Bps1p6jQ.js} +1 -1
  24. package/dist/{diagram-S7CK7UJ4-DV_GebF_.js → diagram-S7CK7UJ4-Bn-oF-rB.js} +1 -1
  25. package/dist/{diagram-UQ7AKVKN-6dNzGFfD.js → diagram-UQ7AKVKN-BpzzXWBj.js} +1 -1
  26. package/dist/{diagram-VX7I27RA-DUh9jsfi.js → diagram-VX7I27RA-COOtvfBP.js} +1 -1
  27. package/dist/{diagram-Z3DM3KII-Cug-qcQ8.js → diagram-Z3DM3KII-K5cXvbrl.js} +1 -1
  28. package/dist/{dialog-DVRfQuhD.js → dialog-DsZ49mmU.js} +26 -26
  29. package/dist/{dist-BJtmSgcE.js → dist-11T5wq3_.js} +41 -40
  30. package/dist/{dist-B1M0bGO3.js → dist-17ugwGZc.js} +59 -58
  31. package/dist/{dist-D7mrh5sO.js → dist-7cRjf--y.js} +135 -134
  32. package/dist/{dist-Ck_C32ye.js → dist-B8pkfkzc.js} +31 -30
  33. package/dist/{dist-Ba2VIn1K.js → dist-B9UoM_wq.js} +54 -53
  34. package/dist/{dist-KN80qWCP.js → dist-BGuMTs1i.js} +118 -117
  35. package/dist/{dist-T5rh6JvL.js → dist-BHW11fni.js} +18 -17
  36. package/dist/dist-BLY4m1Wi.js +850 -0
  37. package/dist/{dist-Bj4bmwUm.js → dist-BNlcVoxs.js} +31 -30
  38. package/dist/{dist-BA13RJj5.js → dist-BQYe5Bju.js} +47 -46
  39. package/dist/{dist-OUle2RT7.js → dist-BX1mn8na.js} +297 -297
  40. package/dist/{dist-CTi5FTiV.js → dist-Bh0PTKUW.js} +108 -107
  41. package/dist/{dist-D9Q3xjiP.js → dist-CKaXK92p.js} +56 -55
  42. package/dist/{dist-DYXM73-k.js → dist-CLhwfhpJ.js} +58 -57
  43. package/dist/{dist-BmS-ZGjl.js → dist-CYeqK4Xw.js} +1854 -2702
  44. package/dist/{dist-D1fnFp1J.js → dist-Cxlp3WH6.js} +16 -15
  45. package/dist/{dist-DVVwOfrD.js → dist-DSJPGj42.js} +64 -63
  46. package/dist/{dist-Bzogh7CW.js → dist-DU9ICsWZ.js} +93 -92
  47. package/dist/{dist-DjeybPOb.js → dist-DWv0ALBi.js} +47 -46
  48. package/dist/{dist-D3x9__Fu.js → dist-DiBpWEsB.js} +39 -38
  49. package/dist/{dist-DtGn9N4h.js → dist-DiLFTlnl.js} +165 -165
  50. package/dist/{dist-DTv9KkpW.js → dist-cVDV5IuI.js} +26 -25
  51. package/dist/{dist-DP60Ubh8.js → dist-fRfaOoq8.js} +44 -43
  52. package/dist/{dist-O0qFpEJh.js → dist-gTTI-9Px.js} +66 -65
  53. package/dist/{dropdown-menu-dlEm41Bt.js → dropdown-menu-CSNdPSnS.js} +2886 -1529
  54. package/dist/{ebnfDiagram-PWID7BFC-d5LKx7Vb.js → ebnfDiagram-PWID7BFC-BI1ZmjVm.js} +2 -2
  55. package/dist/{erDiagram-RLTQ6QDP-BwvlkcID.js → erDiagram-RLTQ6QDP-BtWjj9xy.js} +1 -1
  56. package/dist/{error-banner-DxJ3s8YO.js → error-banner-IsonnvA0.js} +47 -46
  57. package/dist/error-entries-CRPfxMqm.js +2505 -0
  58. package/dist/{esm-Bbw_Njjx.js → esm-BgKjMvWw.js} +389 -388
  59. package/dist/{esm-mDQNEFe_.js → esm-CHjVSexr.js} +305 -306
  60. package/dist/{feedback-button-UsovT9sL.js → feedback-button-2ycmR9GG.js} +112 -112
  61. package/dist/{flowDiagram-HODETNUW-CJcSoFer.js → flowDiagram-HODETNUW-DQvZh96A.js} +2 -2
  62. package/dist/{formats-Ry7c-aIV.js → formats-BK4VefeF.js} +6 -6
  63. package/dist/{glide-data-editor-CRd8kBSp.js → glide-data-editor-Buj2OZjL.js} +99 -99
  64. package/dist/{glide-utils-D98laidb.js → glide-utils-CQddGpa-.js} +3 -3
  65. package/dist/{globals-BDWrOstF.js → globals-B-14fUeb.js} +3 -3
  66. package/dist/{error-entries-CVUHA5r_.js → html-to-image-CgAnxFi8.js} +26314 -25474
  67. package/dist/{infoDiagram-27XIBGKW-Cezgppw3.js → infoDiagram-27XIBGKW-BdAObnc_.js} +1 -1
  68. package/dist/{ishikawaDiagram-5VMMS53U-BahZQwJz.js → ishikawaDiagram-5VMMS53U-DP-jE8dw.js} +1 -1
  69. package/dist/{kanban-definition-UXKFOSKX-Cvfn_Obm.js → kanban-definition-UXKFOSKX-BkMgPjfm.js} +1 -1
  70. package/dist/{loader-DOVB0Syl.js → loader-BisjOLiW.js} +1 -1
  71. package/dist/main.js +2996 -2992
  72. package/dist/{mermaid-BrdwbArF.js → mermaid-B-OFqheA.js} +36 -36
  73. package/dist/{mindmap-definition-YA3MSWOX-uB4B2d-J.js → mindmap-definition-YA3MSWOX-Du7toAZX.js} +1 -1
  74. package/dist/{number-overlay-editor-Bp9a4z5Q.js → number-overlay-editor-ZVFcJ7_u.js} +1 -1
  75. package/dist/{dist-CThPVKaP.js → objectWithoutPropertiesLoose-ai5NUqGa.js} +1139 -1120
  76. package/dist/{pegDiagram-XKGWAZYB-CYaIwAmH.js → pegDiagram-XKGWAZYB-CX_729j0.js} +2 -2
  77. package/dist/{pieDiagram-E7YTZNPT-BJ1oUxVv.js → pieDiagram-E7YTZNPT-dtTFJcVI.js} +1 -1
  78. package/dist/{process-output-SjJxB1wh.js → process-output-Bmev5azU.js} +5 -5
  79. package/dist/{railroadDiagram-O6MQD6OU-BqKSaBux.js → railroadDiagram-O6MQD6OU-Dsc2Cf4c.js} +2 -2
  80. package/dist/{requirementDiagram-BXWQKSXE-DwFhgDhH.js → requirementDiagram-BXWQKSXE-D3g0c60I.js} +1 -1
  81. package/dist/{reveal-component-ov3pS-oO.js → reveal-component-BWz1KjWe.js} +725 -725
  82. package/dist/schemas-CdscWNy_.js +4747 -0
  83. package/dist/select-BSxlITBo.js +1200 -0
  84. package/dist/{sequenceDiagram-WJ2MYXX4-L7ENjfKF.js → sequenceDiagram-WJ2MYXX4-w1pWbIpk.js} +1 -1
  85. package/dist/{spec-BcJ9ncAY.js → spec-Dq8RNplp.js} +4 -4
  86. package/dist/{stateDiagram-D77RDMKH-CVf88u-p.js → stateDiagram-D77RDMKH-BCv7kP4H.js} +2 -2
  87. package/dist/{stateDiagram-v2-MP3YSRHH-DvpkQ1V6.js → stateDiagram-v2-MP3YSRHH-D1cTOt0x.js} +2 -2
  88. package/dist/static-state-BldGd99T.js +72 -0
  89. package/dist/strings-BGW-fXVJ.js +507 -0
  90. package/dist/{swimlanes-42K2YHIH-DIuFHbVE.js → swimlanes-42K2YHIH-DNO6jDnd.js} +1 -1
  91. package/dist/{swimlanesDiagram-VR7AAH4N-CAqHAziW.js → swimlanesDiagram-VR7AAH4N-CkSWsxYJ.js} +2 -2
  92. package/dist/{swiper-component-BVfnhbnt.js → swiper-component-Dir1o8ml.js} +2 -2
  93. package/dist/{timeline-definition-24CTP7MA-xO4EQqBm.js → timeline-definition-24CTP7MA-DQvqGFM9.js} +1 -1
  94. package/dist/toast-BWIPi3aF.js +491 -0
  95. package/dist/{tooltip-s4zZxwKe.js → tooltip-C3UnvsRe.js} +58 -58
  96. package/dist/use-restore-focus-BWO0z1lo.js +1672 -0
  97. package/dist/{useAsyncData-Dqw22wZQ.js → useAsyncData-DsZMvNXn.js} +1 -1
  98. package/dist/{useDateFormatter-D3Tkfzej.js → useDateFormatter-ChB4eyim.js} +2 -2
  99. package/dist/{useDeepCompareMemoize-D3gozcjJ.js → useDeepCompareMemoize-KMBBux8C.js} +1 -1
  100. package/dist/{useIframeCapabilities-6a_yDNXp.js → useIframeCapabilities-cMNQ80CK.js} +1 -1
  101. package/dist/useLifecycle-BquH9ET-.js +112 -0
  102. package/dist/useTheme-B9C1JIy9.js +307 -0
  103. package/dist/utils-DXkj82sK.js +813 -0
  104. package/dist/{vega-component-Blvspl7v.js → vega-component-9NOEITbg.js} +55 -54
  105. package/dist/{vennDiagram-4TSXK5OY-DzCi-lRh.js → vennDiagram-4TSXK5OY-BfzXp4SH.js} +1 -1
  106. package/dist/{wardleyDiagram-VM6X3IG4-CW48xa0n.js → wardleyDiagram-VM6X3IG4-CiqEE8eq.js} +1 -1
  107. package/dist/{xychartDiagram-S5SC5T6Z-UPxGGI2B.js → xychartDiagram-S5SC5T6Z-BTIHCVOI.js} +1 -1
  108. package/package.json +1 -1
  109. package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +1 -1
  110. package/src/components/editor/cell/code/cell-editor.tsx +13 -36
  111. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +1 -1
  112. package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +11 -5
  113. package/src/components/editor/notebook-cell.tsx +0 -1
  114. package/src/components/scratchpad/scratchpad.test.tsx +3 -11
  115. package/src/components/scratchpad/scratchpad.tsx +24 -22
  116. package/src/components/scratchpad/state.ts +7 -0
  117. package/src/core/ai/__tests__/staged-cells.test.ts +6 -8
  118. package/src/core/ai/staged-cells.ts +4 -2
  119. package/src/core/cells/__tests__/cells.test.ts +44 -60
  120. package/src/core/cells/__tests__/document.test.ts +1 -139
  121. package/src/core/cells/__tests__/notebook-outline.test.ts +8 -6
  122. package/src/core/cells/actions.ts +39 -0
  123. package/src/core/cells/cells.ts +15 -35
  124. package/src/core/cells/document.ts +9 -84
  125. package/src/core/codemirror/__tests__/format.test.ts +0 -34
  126. package/src/core/codemirror/cells/extensions.ts +20 -18
  127. package/src/core/codemirror/cells/state.ts +0 -5
  128. package/src/core/codemirror/format.ts +1 -19
  129. package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
  130. package/src/core/codemirror/misc/paste.ts +1 -1
  131. package/src/core/notebook/document/__tests__/codemirror.test.ts +172 -0
  132. package/src/stories/layout/vertical/one-column.stories.tsx +26 -18
  133. package/dist/html-to-image--E3uFbJ9.js +0 -3348
  134. package/dist/label-Qvw1E97W.js +0 -281
  135. package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +0 -23
  136. package/dist/select-2KOiReNY.js +0 -1423
  137. package/dist/toast-B5t9o6s_.js +0 -1848
  138. package/dist/use-restore-focus-BgDTd2tc.js +0 -6418
  139. package/dist/useLifecycle-CaZi4wTw.js +0 -172
  140. 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-BQRdqQi1.js";
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-De584pZ4.js";
6
- import { H as o, Ht as s, R as c, W as l, at as u, i as d, ln as f, n as p, st as m } from "./error-entries-CVUHA5r_.js";
7
- import { b as h } from "./select-2KOiReNY.js";
8
- import { n as ee, t as te } from "./globals-BDWrOstF.js";
9
- import { t as g } from "./jsx-runtime-3BD1kT0s.js";
10
- import { M as ne, b as re, i as _ } from "./useTheme-TzPgWXwB.js";
11
- import { a as ie, i as ae, n as oe, r as se } from "./dialog-DVRfQuhD.js";
12
- import { t as ce } from "./useAsyncData-Dqw22wZQ.js";
13
- import { t as le } from "./code-visibility-CCGlDSq4.js";
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 v = /* @__PURE__ */ e(r(), 1), y = i(), b = g(), x = (e) => {
16
- let n = (0, y.c)(8), r, i;
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, b.jsx)("div", {
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>${h.htmlEscape(e) ?? ""}</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, y.c)(11), r;
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, v.useState)(a), c;
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, y.c)(16), { content: i } = e, [a, o] = (0, v.useState)(!1), s = !a && "max-h-24 overflow-hidden", c;
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, b.jsx)("pre", {
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, b.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);
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, b.jsxs)("div", {
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, b.jsx)(n, {
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, b.jsxs)("div", {
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 !== l.OPEN) return "Connect the notebook to include its source.";
134
+ if (e.connectionState !== o.OPEN) return "Connect the notebook to include its source.";
135
135
  }
136
136
  var w = () => {
137
- let e = (0, y.c)(56), t = ne(s), r, i;
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 l = ce(r, i), u = d(re), h = le(), g = ne(m), v = ne(o), S = t != null, C;
142
- e[3] !== h || e[4] !== v.state || e[5] !== g || e[6] !== S ? (C = ve({
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: g,
145
- codeAvailable: h,
146
- connectionState: v.state
147
- }), e[3] = h, e[4] = v.state, e[5] = g, 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, be] = ge("marimo:issue-report:include-code", !1), k = l.data ? ue(l.data, navigator.userAgent) : l.status === "error" || t == null ? de(te(), navigator.userAgent, navigator.language, "Server environment information unavailable") : void 0, A, j;
149
- e[8] !== O || e[9] !== T || e[10] !== t ? (A = async () => {
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
- }, j = [
153
+ }, M = [
154
154
  O,
155
155
  T,
156
156
  t
157
- ], e[8] = O, e[9] = T, e[10] = t, e[11] = A, e[12] = j) : (A = e[11], j = e[12]);
158
- let M = ce(A, j), xe = _.bugReportUrl, Se = [];
159
- if (k) {
160
- let e = { env: pe(k) };
161
- E && u.length > 0 && (e["bug-description"] = me(u)), O && M.data && (e["reproduction-code"] = he(M.data)), {url: xe, omitted: Se} = fe(_.bugReportUrl, e);
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 Ce = Se.map(ye).join(", "), N;
164
- e[13] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ (0, b.jsxs)(ae, { children: [/* @__PURE__ */ (0, b.jsx)(ie, { children: "Report an issue" }), /* @__PURE__ */ (0, b.jsx)(se, { 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] = N) : N = e[13];
165
- let P;
166
- e[14] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ (0, b.jsx)(f, { className: "w-4 h-4 mr-2" }), e[14] = P) : P = e[14];
167
- let F = u.length === 0, I;
168
- e[15] === D ? I = e[16] : (I = (e) => D(e === !0), e[15] = D, e[16] = I);
169
- let L;
170
- e[17] !== E || e[18] !== F || e[19] !== I ? (L = /* @__PURE__ */ (0, b.jsx)(c, {
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: F,
174
- onCheckedChange: I,
173
+ disabled: I,
174
+ onCheckedChange: L,
175
175
  "aria-label": "Include errors"
176
- }), e[17] = E, e[18] = F, e[19] = I, e[20] = L) : L = e[20];
177
- let R;
178
- e[21] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ (0, b.jsx)("label", {
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] = R) : R = e[21];
182
- let z;
183
- e[22] === L ? z = e[23] : (z = /* @__PURE__ */ (0, b.jsxs)("div", {
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: [L, R]
186
- }), e[22] = L, e[23] = z);
187
- let B = !T, V;
188
- e[24] === be ? V = e[25] : (V = (e) => be(e === !0), e[24] = be, e[25] = V);
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] !== B || e[28] !== V ? (H = /* @__PURE__ */ (0, b.jsx)(c, {
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: B,
193
+ disabled: Ce,
194
194
  onCheckedChange: V,
195
195
  "aria-label": "Include notebook code"
196
- }), e[26] = O, e[27] = B, e[28] = V, e[29] = H) : H = e[29];
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, b.jsx)("label", {
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, b.jsxs)("div", {
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, b.jsx)("span", {
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] !== M || e[36] !== O ? (K = O && M.status === "error" && /* @__PURE__ */ (0, b.jsx)("span", {
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] = M, e[36] = O, e[37] = K) : K = e[37];
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, b.jsxs)("div", {
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] !== z || e[43] !== q ? (J = /* @__PURE__ */ (0, b.jsxs)("div", {
227
+ e[42] !== B || e[43] !== q ? (J = /* @__PURE__ */ (0, x.jsxs)("div", {
228
228
  className: "flex flex-col gap-2",
229
- children: [z, q]
230
- }), e[42] = z, e[43] = q, e[44] = J) : J = e[44];
229
+ children: [B, q]
230
+ }), e[42] = B, e[43] = q, e[44] = J) : J = e[44];
231
231
  let Y;
232
- e[45] !== l.status || e[46] !== t ? (Y = l.status === "pending" && t != null && /* @__PURE__ */ (0, b.jsxs)("div", {
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, b.jsx)("span", {
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, b.jsx)(x, { className: "h-4 w-full" }),
240
- /* @__PURE__ */ (0, b.jsx)(x, { className: "h-4 w-3/4" }),
241
- /* @__PURE__ */ (0, b.jsx)(x, { className: "h-4 w-1/2" })
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] = l.status, e[46] = t, e[47] = Y) : Y = e[47];
243
+ }), e[45] = o.status, e[46] = t, e[47] = Y) : Y = e[47];
244
244
  let X;
245
- e[48] !== l || e[49] !== t ? (X = (l.status === "error" || t == null) && /* @__PURE__ */ (0, b.jsxs)("div", {
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, b.jsx)(ee, { className: "w-4 h-4 text-(--yellow-11) shrink-0" }),
249
- /* @__PURE__ */ (0, b.jsx)("span", { children: "Server environment information unavailable" }),
250
- t != null && /* @__PURE__ */ (0, b.jsx)(n, {
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: () => l.refetch(),
254
+ onClick: () => o.refetch(),
255
255
  children: "Retry"
256
256
  })
257
257
  ]
258
- }), e[48] = l, e[49] = t, e[50] = X) : X = e[50];
258
+ }), e[48] = o, e[49] = t, e[50] = X) : X = e[50];
259
259
  let Z;
260
- e[51] !== k || e[52] !== u ? (Z = k && u.length === 0 && /* @__PURE__ */ (0, b.jsx)("span", {
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] = k, e[52] = u, e[53] = Z) : Z = e[53];
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, b.jsx)("a", {
266
- href: _.feedbackForm,
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, b.jsx)("div", {
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, b.jsxs)("p", {
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, b.jsx)("a", {
285
- href: _.discordLink,
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, b.jsxs)(oe, {
294
+ }), e[55] = $) : $ = e[55], /* @__PURE__ */ (0, x.jsxs)(ae, {
295
295
  className: "w-[540px] max-w-[90vw]",
296
- children: [N, /* @__PURE__ */ (0, b.jsxs)("div", {
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, b.jsxs)("div", {
299
+ /* @__PURE__ */ (0, x.jsxs)("div", {
300
300
  className: "flex flex-col gap-3",
301
301
  children: [
302
- /* @__PURE__ */ (0, b.jsx)(n, {
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, b.jsxs)("a", {
309
- href: xe,
308
+ children: /* @__PURE__ */ (0, x.jsxs)("a", {
309
+ href: be,
310
310
  target: "_blank",
311
311
  rel: "noreferrer",
312
- children: [P, "Open GitHub issue"]
312
+ children: [F, "Open GitHub issue"]
313
313
  })
314
314
  }),
315
315
  J,
316
- Ce ? /* @__PURE__ */ (0, b.jsxs)("div", {
316
+ Se ? /* @__PURE__ */ (0, x.jsxs)("div", {
317
317
  className: "flex items-start gap-2 text-xs text-(--yellow-11)",
318
- children: [/* @__PURE__ */ (0, b.jsx)(ee, { className: "w-3.5 h-3.5 shrink-0 mt-0.5" }), /* @__PURE__ */ (0, b.jsxs)("span", { children: [
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
- Ce,
320
+ Se,
321
321
  ". Paste them into the issue manually."
322
322
  ] })]
323
- }) : /* @__PURE__ */ (0, b.jsx)("p", {
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
- k && /* @__PURE__ */ (0, b.jsxs)("div", {
331
+ A && /* @__PURE__ */ (0, x.jsxs)("div", {
332
332
  className: "flex flex-col gap-1",
333
- children: [/* @__PURE__ */ (0, b.jsxs)("div", {
333
+ children: [/* @__PURE__ */ (0, x.jsxs)("div", {
334
334
  className: "flex items-center justify-between",
335
- children: [/* @__PURE__ */ (0, b.jsx)("span", {
335
+ children: [/* @__PURE__ */ (0, x.jsx)("span", {
336
336
  className: "text-sm font-medium",
337
337
  children: "Environment details"
338
- }), /* @__PURE__ */ (0, b.jsx)(a, {
338
+ }), /* @__PURE__ */ (0, x.jsx)(a, {
339
339
  className: "w-3.5 h-3.5",
340
- value: JSON.stringify(k, null, 2),
340
+ value: JSON.stringify(A, null, 2),
341
341
  ariaLabel: "Copy environment JSON",
342
342
  toastTitle: "Environment details copied"
343
343
  })]
344
- }), /* @__PURE__ */ (0, b.jsx)(_e, { content: JSON.stringify(k, null, 2) })]
344
+ }), /* @__PURE__ */ (0, x.jsx)(_e, { content: JSON.stringify(A, null, 2) })]
345
345
  }),
346
- k && u.length > 0 && /* @__PURE__ */ (0, b.jsxs)("div", {
346
+ A && u.length > 0 && /* @__PURE__ */ (0, x.jsxs)("div", {
347
347
  className: "flex flex-col gap-1",
348
- children: [/* @__PURE__ */ (0, b.jsxs)("div", {
348
+ children: [/* @__PURE__ */ (0, x.jsxs)("div", {
349
349
  className: "flex items-center justify-between",
350
- children: [/* @__PURE__ */ (0, b.jsx)("span", {
350
+ children: [/* @__PURE__ */ (0, x.jsx)("span", {
351
351
  className: "text-sm font-medium",
352
352
  children: "Errors"
353
- }), /* @__PURE__ */ (0, b.jsx)(a, {
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, b.jsx)(_e, { content: u.map(p).join("\n\n---\n\n") })]
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-BrdwbArF.js";
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-L8KQLLBy.js";
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, r as n } from "./button-BQRdqQi1.js";
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 "./toDate-BZZ64K_m.js";
6
- import { t as o } from "./jsx-runtime-3BD1kT0s.js";
7
- import { i as s } from "./loader-DOVB0Syl.js";
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(+a(e)));
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 = o(), 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", {
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",