@marimo-team/islands 0.25.3-dev169 → 0.25.3-dev170

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 (123) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BbDrlHvG.js → ConnectedDataExplorerComponent-BbSXV-Xa.js} +8 -8
  2. package/dist/{ErrorBoundary-RaIwGWT3.js → ErrorBoundary-NE86qEWZ.js} +4 -4
  3. package/dist/{abnfDiagram-VCTEODGH-Dr-fo8_z.js → abnfDiagram-VCTEODGH-D7n07nXf.js} +2 -2
  4. package/dist/{architectureDiagram-5GKGNRK7-ByKIl9GG.js → architectureDiagram-5GKGNRK7-D6CjRib5.js} +1 -1
  5. package/dist/{chat-ui-BsV2WH-4.js → chat-ui-CC7GekpG.js} +34 -34
  6. package/dist/{chunk-IMKFNOWR-IKDP18MQ.js → chunk-IMKFNOWR-6dtPz7uS.js} +1 -1
  7. package/dist/{chunk-SHT3W25Y-LkIgegwh.js → chunk-SHT3W25Y-BwnFNKDA.js} +1 -1
  8. package/dist/{chunk-SVP7TREG-DReBYtnB.js → chunk-SVP7TREG-D2eV4vBJ.js} +1 -1
  9. package/dist/{chunk-TICWLB2K-DQ0A0-1D.js → chunk-TICWLB2K-BDs4-_-r.js} +1 -1
  10. package/dist/{classDiagram-ZZMXUADV-CwvXdCNE.js → classDiagram-ZZMXUADV-DCJnf_8v.js} +2 -2
  11. package/dist/{classDiagram-v2-VYDZK3BY-D0XAxDsc.js → classDiagram-v2-VYDZK3BY-BOmSzPBD.js} +2 -2
  12. package/dist/{code-visibility-BMi0KLAQ.js → code-visibility-Bzvc6ajl.js} +23 -23
  13. package/dist/{common-BMkJrZsD.js → common-Ciw4zkh2.js} +3412 -3412
  14. package/dist/{cynefinDiagram-5FMLGOSQ-BFN68nHr.js → cynefinDiagram-5FMLGOSQ-Bln_Soky.js} +1 -1
  15. package/dist/{dagre-GXQ25YYZ-CZt4rtLq.js → dagre-GXQ25YYZ-D-nf7WzW.js} +1 -1
  16. package/dist/{data-grid-overlay-editor-CCc1P42P.js → data-grid-overlay-editor-AQREmxI7.js} +1 -1
  17. package/dist/{diagram-S7CK7UJ4-D5cOz47_.js → diagram-S7CK7UJ4-PsgSMkY2.js} +1 -1
  18. package/dist/{diagram-UQ7AKVKN-Qgdppb4a.js → diagram-UQ7AKVKN-DfwfUuSw.js} +1 -1
  19. package/dist/{diagram-VX7I27RA-BsDCvily.js → diagram-VX7I27RA-C9_e-oMc.js} +1 -1
  20. package/dist/{diagram-Z3DM3KII-igTkGjKI.js → diagram-Z3DM3KII-CWLa5tuY.js} +1 -1
  21. package/dist/{dropdown-menu-BWnnAstC.js → dropdown-menu-B6ftyzOg.js} +1 -1
  22. package/dist/{ebnfDiagram-PWID7BFC-BHuZGjIr.js → ebnfDiagram-PWID7BFC-B1QRM58v.js} +2 -2
  23. package/dist/{erDiagram-RLTQ6QDP-DKObXTVE.js → erDiagram-RLTQ6QDP-DJK_FqvW.js} +1 -1
  24. package/dist/{error-entries-BpUJSLUZ.js → error-entries-DgK3wUJR.js} +5640 -5591
  25. package/dist/{feedback-button-CMVkEos_.js → feedback-button-8a6SETmT.js} +24 -24
  26. package/dist/{flowDiagram-HODETNUW-DZI_kit0.js → flowDiagram-HODETNUW-Uxc25XSJ.js} +2 -2
  27. package/dist/{formats-CwJHWasD.js → formats-DQCyPd5Z.js} +1 -1
  28. package/dist/{glide-data-editor-BA2pcHSV.js → glide-data-editor-B70oke_v.js} +5 -5
  29. package/dist/{globals-B5jjJ0ms.js → globals-Cxd5hNlI.js} +2 -2
  30. package/dist/{html-to-image-CQr2-IDA.js → html-to-image-D4yG5Ru0.js} +25 -25
  31. package/dist/{infoDiagram-27XIBGKW-DdPl-7-n.js → infoDiagram-27XIBGKW-DmjxqwL0.js} +1 -1
  32. package/dist/{ishikawaDiagram-5VMMS53U-DbyW6l59.js → ishikawaDiagram-5VMMS53U-NgCLHqQi.js} +1 -1
  33. package/dist/{kanban-definition-UXKFOSKX-BMX9SyBS.js → kanban-definition-UXKFOSKX-CZaG-iam.js} +1 -1
  34. package/dist/main.js +187 -188
  35. package/dist/{mermaid-C8W8mTbA.js → mermaid-CSvw7c71.js} +34 -34
  36. package/dist/{mindmap-definition-YA3MSWOX-Zd_tAxWL.js → mindmap-definition-YA3MSWOX-DJYQBDH_.js} +1 -1
  37. package/dist/{number-overlay-editor-BIWiV-TU.js → number-overlay-editor-ChK-SKUk.js} +1 -1
  38. package/dist/{pegDiagram-XKGWAZYB-DjYydPdo.js → pegDiagram-XKGWAZYB-CHKO_dAe.js} +2 -2
  39. package/dist/{pieDiagram-E7YTZNPT-R5LKjO2n.js → pieDiagram-E7YTZNPT-DVevbMAo.js} +1 -1
  40. package/dist/{process-output-Uw-VJE5V.js → process-output-DxvBAeL3.js} +3 -3
  41. package/dist/{railroadDiagram-O6MQD6OU-C7uNKtfm.js → railroadDiagram-O6MQD6OU-Detj1kcB.js} +2 -2
  42. package/dist/{requirementDiagram-BXWQKSXE-CxAIzQfl.js → requirementDiagram-BXWQKSXE-BLFD0T_Z.js} +1 -1
  43. package/dist/{reveal-component-XiecZ3Ua.js → reveal-component-CXMXeDZD.js} +6 -6
  44. package/dist/{sequenceDiagram-WJ2MYXX4-B5tmlPd5.js → sequenceDiagram-WJ2MYXX4-BZBgatQV.js} +1 -1
  45. package/dist/{spec-45FnujvG.js → spec-Mnkn3XEr.js} +1 -1
  46. package/dist/{stateDiagram-D77RDMKH-C1hc5H7Y.js → stateDiagram-D77RDMKH-4BZW9-6_.js} +2 -2
  47. package/dist/{stateDiagram-v2-MP3YSRHH-DRWeqQTn.js → stateDiagram-v2-MP3YSRHH-C4sKC8Iq.js} +2 -2
  48. package/dist/style.css +1 -1
  49. package/dist/{swimlanes-42K2YHIH-NTLas--s.js → swimlanes-42K2YHIH-SL5yeGe2.js} +1 -1
  50. package/dist/{swimlanesDiagram-VR7AAH4N-ChPggljD.js → swimlanesDiagram-VR7AAH4N-DqPmAYUv.js} +2 -2
  51. package/dist/{timeline-definition-24CTP7MA-B4CZ9srJ.js → timeline-definition-24CTP7MA-BfXUMWkq.js} +1 -1
  52. package/dist/{toDate-rySyYxqk.js → toDate-TMubKIVL.js} +22 -22
  53. package/dist/{useAsyncData-B7MiltyV.js → useAsyncData-DjMGFzFy.js} +1 -1
  54. package/dist/{useDeepCompareMemoize-DZmHBD_1.js → useDeepCompareMemoize-BQR5TJot.js} +1 -1
  55. package/dist/{useLifecycle-DRbRhzxg.js → useLifecycle-C_GvKWbQ.js} +26 -23
  56. package/dist/{useTheme-TLkqJsvo.js → useTheme-Bns2gJZ6.js} +179 -178
  57. package/dist/{vega-component-DC6P127L.js → vega-component-BsVptuhz.js} +5 -5
  58. package/dist/{vennDiagram-4TSXK5OY-DJIvMt44.js → vennDiagram-4TSXK5OY-CH65znGa.js} +1 -1
  59. package/dist/{wardleyDiagram-VM6X3IG4-45H0zg0u.js → wardleyDiagram-VM6X3IG4-z9pWKb2_.js} +1 -1
  60. package/dist/{xychartDiagram-S5SC5T6Z-ZT-XzcPN.js → xychartDiagram-S5SC5T6Z-MxyaWjjq.js} +1 -1
  61. package/package.json +1 -1
  62. package/src/__mocks__/requests.ts +0 -1
  63. package/src/components/editor/cell/StagedAICell.tsx +10 -2
  64. package/src/components/editor/cell/code/cell-editor.tsx +7 -14
  65. package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +92 -0
  66. package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
  67. package/src/components/editor/chrome/wrapper/footer.tsx +2 -0
  68. package/src/core/ai/__tests__/staged-cells.test.ts +8 -5
  69. package/src/core/ai/staged-cells.ts +7 -2
  70. package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +3 -15
  71. package/src/core/ai/tools/edit-notebook-tool.ts +14 -3
  72. package/src/core/cells/__tests__/cells.test.ts +0 -297
  73. package/src/core/cells/__tests__/document.test.ts +410 -0
  74. package/src/core/cells/__tests__/flush-document.test.ts +40 -0
  75. package/src/core/cells/__tests__/notebook-outline.test.ts +1 -6
  76. package/src/core/cells/__tests__/with-document-save.test.ts +67 -0
  77. package/src/core/cells/cells.ts +27 -158
  78. package/src/core/cells/columns.ts +38 -0
  79. package/src/core/cells/document.ts +360 -0
  80. package/src/core/cells/types.ts +12 -0
  81. package/src/core/codemirror/cells/__tests__/extensions.test.ts +27 -1
  82. package/src/core/codemirror/cells/extensions.ts +14 -0
  83. package/src/core/codemirror/format.ts +6 -5
  84. package/src/core/codemirror/language/__tests__/utils.test.ts +187 -15
  85. package/src/core/codemirror/language/cell-code.ts +114 -0
  86. package/src/core/codemirror/language/extension.ts +47 -30
  87. package/src/core/codemirror/language/languages/sql/sql.ts +7 -17
  88. package/src/core/codemirror/language/utils.ts +9 -39
  89. package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
  90. package/src/core/codemirror/rtc/extension.ts +0 -1
  91. package/src/core/edit-app.tsx +4 -3
  92. package/src/core/export/layout.ts +2 -2
  93. package/src/core/islands/bridge.ts +0 -1
  94. package/src/core/network/requests-lazy.ts +0 -1
  95. package/src/core/network/requests-network.ts +0 -9
  96. package/src/core/network/requests-static.ts +0 -1
  97. package/src/core/network/requests-toasting.tsx +0 -1
  98. package/src/core/network/types.ts +0 -5
  99. package/src/core/notebook/document/__tests__/codemirror.test.ts +76 -14
  100. package/src/core/notebook/document/__tests__/hold.test.ts +88 -0
  101. package/src/core/notebook/document/__tests__/hooks.test.tsx +3 -3
  102. package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +3 -3
  103. package/src/core/notebook/document/__tests__/model.test.ts +71 -15
  104. package/src/core/notebook/document/__tests__/scenario-fixture.ts +1 -1
  105. package/src/core/notebook/document/codemirror.ts +27 -122
  106. package/src/core/notebook/document/hooks.tsx +2 -2
  107. package/src/core/notebook/document/index.ts +9 -1
  108. package/src/core/notebook/document/model.ts +74 -24
  109. package/src/core/notebook/document/sync.ts +53 -4
  110. package/src/core/run-app.tsx +44 -41
  111. package/src/core/saving/save-component.tsx +2 -5
  112. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +63 -3
  113. package/src/core/session/active-notebook.ts +4 -0
  114. package/src/core/session/useNotebookSession.tsx +39 -19
  115. package/src/core/wasm/__tests__/bridge.test.ts +3 -3
  116. package/src/core/wasm/bridge.ts +5 -12
  117. package/src/core/wasm/worker/worker.ts +0 -9
  118. package/src/utils/__tests__/{createReducer.test.ts → createReducer.test.tsx} +28 -0
  119. package/src/utils/createReducer.ts +42 -21
  120. package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
  121. package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
  122. package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
  123. package/src/core/cells/document-changes.ts +0 -944
@@ -3,14 +3,14 @@ import { h as t, t as n } from "./button-BQRdqQi1.js";
3
3
  import { t as r } from "./react-sHtZdjeP.js";
4
4
  import { t as i } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { t as a } from "./copy-icon-C1trdvVt.js";
6
- import { H as o, K as s, Lt as c, Ot as l, fn as u, h as d, i as f, n as p, q as m, zt as h } from "./error-entries-BpUJSLUZ.js";
6
+ import { Bt as o, J as s, Rt as c, U as l, h as u, i as d, kt as f, n as p, pn as m, q as h } from "./error-entries-DgK3wUJR.js";
7
7
  import { b as g } from "./select-CkF_GBxO.js";
8
- import { n as ee, t as te } from "./globals-B5jjJ0ms.js";
8
+ import { n as ee, t as te } from "./globals-Cxd5hNlI.js";
9
9
  import { t as _ } from "./jsx-runtime-3BD1kT0s.js";
10
- import { C as v, _ as ne, i as y } from "./useTheme-TLkqJsvo.js";
10
+ import { _ as ne, i as v, w as y } from "./useTheme-Bns2gJZ6.js";
11
11
  import { a as re, i as ie, n as ae, r as oe } from "./dialog-DgeqyrEZ.js";
12
- import { t as se } from "./useAsyncData-B7MiltyV.js";
13
- import { t as ce } from "./code-visibility-BMi0KLAQ.js";
12
+ import { t as se } from "./useAsyncData-DjMGFzFy.js";
13
+ import { t as ce } from "./code-visibility-Bzvc6ajl.js";
14
14
  //#region src/components/ui/skeleton.tsx
15
15
  var b = /* @__PURE__ */ e(r(), 1), x = i(), S = _(), le = (e) => {
16
16
  let n = (0, x.c)(8), r, i;
@@ -131,26 +131,26 @@ 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 !== m.OPEN) return "Connect the notebook to include its source.";
134
+ if (e.connectionState !== s.OPEN) return "Connect the notebook to include its source.";
135
135
  }
136
136
  var T = () => {
137
- let e = (0, x.c)(61), t = v(l), r, i;
137
+ let e = (0, x.c)(61), t = y(f), 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 c = se(r, i), m = v(d), g = f(ne), _;
142
- if (e[3] !== m.cellData || e[4] !== m.cellIds.inOrderIds) {
141
+ let s = se(r, i), c = y(u), g = d(ne), _;
142
+ if (e[3] !== c.cellData || e[4] !== c.cellIds.inOrderIds) {
143
143
  let t;
144
- e[6] === m.cellData ? t = e[7] : (t = (e) => m.cellData[e], e[6] = m.cellData, e[7] = t), _ = m.cellIds.inOrderIds.map(t), e[3] = m.cellData, e[4] = m.cellIds.inOrderIds, e[5] = _;
144
+ e[6] === c.cellData ? t = e[7] : (t = (e) => c.cellData[e], e[6] = c.cellData, e[7] = t), _ = c.cellIds.inOrderIds.map(t), e[3] = c.cellData, e[4] = c.cellIds.inOrderIds, e[5] = _;
145
145
  } else _ = e[5];
146
- let b = ce(_), C = v(h), w = v(s), T = t != null, E;
146
+ let b = ce(_), C = y(o), w = y(h), T = t != null, E;
147
147
  e[8] !== b || e[9] !== w.state || e[10] !== C || e[11] !== T ? (E = ve({
148
148
  hasRequestClient: T,
149
149
  filename: C,
150
150
  codeAvailable: b,
151
151
  connectionState: w.state
152
152
  }), e[8] = b, e[9] = w.state, e[10] = C, e[11] = T, e[12] = E) : E = e[12];
153
- let D = E, O = D === void 0, [k, be] = ge("marimo:issue-report:include-errors", !1), [A, xe] = ge("marimo:issue-report:include-code", !1), j = c.data ? ue(c.data, navigator.userAgent) : c.status === "error" || t == null ? de(te(), navigator.userAgent, navigator.language, "Server environment information unavailable") : void 0, M, N;
153
+ let D = E, O = D === void 0, [k, be] = ge("marimo:issue-report:include-errors", !1), [A, xe] = ge("marimo:issue-report:include-code", !1), j = s.data ? ue(s.data, navigator.userAgent) : s.status === "error" || t == null ? de(te(), navigator.userAgent, navigator.language, "Server environment information unavailable") : void 0, M, N;
154
154
  e[13] !== A || e[14] !== O || e[15] !== t ? (M = async () => {
155
155
  if (!A || !O || t == null) return;
156
156
  let { contents: e } = await t.readCode();
@@ -160,19 +160,19 @@ var T = () => {
160
160
  O,
161
161
  t
162
162
  ], e[13] = A, e[14] = O, e[15] = t, e[16] = M, e[17] = N) : (M = e[16], N = e[17]);
163
- let P = se(M, N), Se = y.bugReportUrl, Ce = [];
163
+ let P = se(M, N), Se = v.bugReportUrl, Ce = [];
164
164
  if (j) {
165
165
  let e = { env: pe(j) };
166
- k && g.length > 0 && (e["bug-description"] = me(g)), A && P.data && (e["reproduction-code"] = he(P.data)), {url: Se, omitted: Ce} = fe(y.bugReportUrl, e);
166
+ k && g.length > 0 && (e["bug-description"] = me(g)), A && P.data && (e["reproduction-code"] = he(P.data)), {url: Se, omitted: Ce} = fe(v.bugReportUrl, e);
167
167
  }
168
168
  let we = Ce.map(ye).join(", "), F;
169
169
  e[18] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, S.jsxs)(ie, { children: [/* @__PURE__ */ (0, S.jsx)(re, { children: "Report an issue" }), /* @__PURE__ */ (0, S.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[18] = F) : F = e[18];
170
170
  let I;
171
- e[19] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ (0, S.jsx)(u, { className: "w-4 h-4 mr-2" }), e[19] = I) : I = e[19];
171
+ e[19] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ (0, S.jsx)(m, { className: "w-4 h-4 mr-2" }), e[19] = I) : I = e[19];
172
172
  let Te = g.length === 0, L;
173
173
  e[20] === be ? L = e[21] : (L = (e) => be(e === !0), e[20] = be, e[21] = L);
174
174
  let R;
175
- e[22] !== k || e[23] !== L || e[24] !== Te ? (R = /* @__PURE__ */ (0, S.jsx)(o, {
175
+ e[22] !== k || e[23] !== L || e[24] !== Te ? (R = /* @__PURE__ */ (0, S.jsx)(l, {
176
176
  id: "issue-include-errors",
177
177
  checked: k,
178
178
  disabled: Te,
@@ -192,7 +192,7 @@ var T = () => {
192
192
  let Ee = !O, V;
193
193
  e[29] === xe ? V = e[30] : (V = (e) => xe(e === !0), e[29] = xe, e[30] = V);
194
194
  let H;
195
- e[31] !== A || e[32] !== Ee || e[33] !== V ? (H = /* @__PURE__ */ (0, S.jsx)(o, {
195
+ e[31] !== A || e[32] !== Ee || e[33] !== V ? (H = /* @__PURE__ */ (0, S.jsx)(l, {
196
196
  id: "issue-include-code",
197
197
  checked: A,
198
198
  disabled: Ee,
@@ -234,7 +234,7 @@ var T = () => {
234
234
  children: [B, q]
235
235
  }), e[47] = B, e[48] = q, e[49] = J) : J = e[49];
236
236
  let Y;
237
- e[50] !== c.status || e[51] !== t ? (Y = c.status === "pending" && t != null && /* @__PURE__ */ (0, S.jsxs)("div", {
237
+ e[50] !== s.status || e[51] !== t ? (Y = s.status === "pending" && t != null && /* @__PURE__ */ (0, S.jsxs)("div", {
238
238
  className: "flex flex-col gap-2",
239
239
  children: [
240
240
  /* @__PURE__ */ (0, S.jsx)("span", {
@@ -245,9 +245,9 @@ var T = () => {
245
245
  /* @__PURE__ */ (0, S.jsx)(le, { className: "h-4 w-3/4" }),
246
246
  /* @__PURE__ */ (0, S.jsx)(le, { className: "h-4 w-1/2" })
247
247
  ]
248
- }), e[50] = c.status, e[51] = t, e[52] = Y) : Y = e[52];
248
+ }), e[50] = s.status, e[51] = t, e[52] = Y) : Y = e[52];
249
249
  let X;
250
- e[53] !== c || e[54] !== t ? (X = (c.status === "error" || t == null) && /* @__PURE__ */ (0, S.jsxs)("div", {
250
+ e[53] !== s || e[54] !== t ? (X = (s.status === "error" || t == null) && /* @__PURE__ */ (0, S.jsxs)("div", {
251
251
  className: "flex items-center gap-2 text-sm",
252
252
  children: [
253
253
  /* @__PURE__ */ (0, S.jsx)(ee, { className: "w-4 h-4 text-(--yellow-11) shrink-0" }),
@@ -256,11 +256,11 @@ var T = () => {
256
256
  type: "button",
257
257
  variant: "link",
258
258
  size: "xs",
259
- onClick: () => c.refetch(),
259
+ onClick: () => s.refetch(),
260
260
  children: "Retry"
261
261
  })
262
262
  ]
263
- }), e[53] = c, e[54] = t, e[55] = X) : X = e[55];
263
+ }), e[53] = s, e[54] = t, e[55] = X) : X = e[55];
264
264
  let Z;
265
265
  e[56] !== j || e[57] !== g ? (Z = j && g.length === 0 && /* @__PURE__ */ (0, S.jsx)("span", {
266
266
  className: "text-sm text-muted-foreground",
@@ -268,7 +268,7 @@ var T = () => {
268
268
  }), e[56] = j, e[57] = g, e[58] = Z) : Z = e[58];
269
269
  let Q;
270
270
  e[59] === Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ (0, S.jsx)("a", {
271
- href: y.feedbackForm,
271
+ href: v.feedbackForm,
272
272
  target: "_blank",
273
273
  rel: "noreferrer",
274
274
  className: "underline",
@@ -287,7 +287,7 @@ var T = () => {
287
287
  "or chat with us on",
288
288
  " ",
289
289
  /* @__PURE__ */ (0, S.jsx)("a", {
290
- href: y.discordLink,
290
+ href: v.discordLink,
291
291
  target: "_blank",
292
292
  rel: "noreferrer",
293
293
  className: "underline",
@@ -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-C8W8mTbA.js";
11
+ import "./mermaid-CSvw7c71.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-LkIgegwh.js";
15
+ import { n as e } from "./chunk-SHT3W25Y-BwnFNKDA.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-BQRdqQi1.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-rySyYxqk.js";
5
+ import { t as a } from "./toDate-TMubKIVL.js";
6
6
  import { t as o } from "./jsx-runtime-3BD1kT0s.js";
7
7
  import { i as s } from "./loader-DOVB0Syl.js";
8
8
  //#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
@@ -4,14 +4,14 @@ import { t as a } from "./react-sHtZdjeP.js";
4
4
  import { t as o } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { i as s, n as c, r as l } from "./copy-icon-C1trdvVt.js";
6
6
  import { C as u, c as d, i as f, n as p, s as m, t as h, x as g } from "./select-CkF_GBxO.js";
7
- import { d as _, h as v, i as y, l as b, n as x, o as S, s as C, t as w, u as T } from "./dropdown-menu-BWnnAstC.js";
7
+ import { d as _, h as v, i as y, l as b, n as x, o as S, s as C, t as w, u as T } from "./dropdown-menu-B6ftyzOg.js";
8
8
  import { c as E, d as D, l as O, n as k, o as A, s as ee, t as j, u as te } from "./glide-utils-Dz_F4pAY.js";
9
- import { n as ne, t as re } from "./ErrorBoundary-RaIwGWT3.js";
9
+ import { n as ne, t as re } from "./ErrorBoundary-NE86qEWZ.js";
10
10
  import { t as ie } from "./react-dom-DUmH0GXv.js";
11
11
  import { t as M } from "./jsx-runtime-3BD1kT0s.js";
12
12
  import { t as N } from "./label-D9_-zSg-.js";
13
13
  import { c as P } from "./toast-Btbve3Lm.js";
14
- import { A as F, n as ae } from "./useTheme-TLkqJsvo.js";
14
+ import { A as F, n as ae } from "./useTheme-Bns2gJZ6.js";
15
15
  import { A as I, C as L, D as R, E as oe, F as se, I as ce, L as le, M as ue, N as de, O as fe, P as pe, R as me, S as he, T as z, _ as ge, a as _e, b as ve, c as ye, d as be, f as B, g as xe, h as V, i as Se, j as H, k as U, l as Ce, m as we, n as Te, o as Ee, p as De, r as W, s as Oe, t as G, u as ke, v as Ae, w as je, x as Me, y as Ne, z as Pe } from "./data-grid-types-0PJ-9N5n.js";
16
16
  //#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
17
17
  function Fe(e) {
@@ -7062,7 +7062,7 @@ function rs(e, t, n, r, i) {
7062
7062
  }
7063
7063
  //#endregion
7064
7064
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
7065
- var is = /* @__PURE__ */ e(_r(), 1), as = /* @__PURE__ */ e(xr(), 1), os = K.lazy(async () => await import("./data-grid-overlay-editor-CCc1P42P.js")), ss = 0;
7065
+ var is = /* @__PURE__ */ e(_r(), 1), as = /* @__PURE__ */ e(xr(), 1), os = K.lazy(async () => await import("./data-grid-overlay-editor-AQREmxI7.js")), ss = 0;
7066
7066
  function cs(e) {
7067
7067
  return (0, is.default)((0, as.default)((0, as.default)(e).filter((e) => e.span !== void 0).map((e) => (0, Za.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
7068
7068
  }
@@ -9293,7 +9293,7 @@ function Vs(e, t, n, r, i) {
9293
9293
  }
9294
9294
  //#endregion
9295
9295
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
9296
- var Hs = K.lazy(async () => await import("./number-overlay-editor-BIWiV-TU.js")), Us = {
9296
+ var Hs = K.lazy(async () => await import("./number-overlay-editor-ChK-SKUk.js")), Us = {
9297
9297
  getAccessibilityString: (e) => e.data?.toString() ?? "",
9298
9298
  kind: W.Number,
9299
9299
  needsHover: (e) => e.hoverEffect === !0,
@@ -1,6 +1,6 @@
1
1
  import { m as e } from "./tooltip-CJ4Rqasp.js";
2
- import { _ as t } from "./useTheme-TLkqJsvo.js";
3
- import { r as n } from "./code-visibility-BMi0KLAQ.js";
2
+ import { _ as t } from "./useTheme-Bns2gJZ6.js";
3
+ import { r as n } from "./code-visibility-Bzvc6ajl.js";
4
4
  var r = e("triangle-alert", [
5
5
  ["path", {
6
6
  d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
@@ -5,15 +5,15 @@ import { t as l } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { n as u, t as d } from "./copy-icon-C1trdvVt.js";
6
6
  import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DKplTrBY.js";
7
7
  import { c as _, l as v, m as y, s as b, t as x, u as ee } from "./tooltip-CJ4Rqasp.js";
8
- import { $t as te, Ct as ne, Dt as re, Et as ie, F as ae, Ft as oe, N as se, St as ce, U as le, W as ue, X as de, a as fe, at as pe, bt as me, d as he, j as ge, mt as _e, nn as ve, nt as ye, wt as be, xt as xe, y as Se } from "./error-entries-BpUJSLUZ.js";
8
+ import { Ct as te, Dt as ne, G as re, I as ie, It as ae, M as oe, Ot as se, P as ce, St as le, Tt as ue, W as de, Z as fe, a as pe, d as me, en as he, ht as ge, ot as _e, rn as ve, rt as ye, wt as be, xt as xe, y as Se } from "./error-entries-DgK3wUJR.js";
9
9
  import { D as Ce, M as we, k as Te } from "./select-CkF_GBxO.js";
10
- import { J as Ee, pt as De } from "./dropdown-menu-BWnnAstC.js";
11
- import { m as Oe, y as ke } from "./toDate-rySyYxqk.js";
10
+ import { J as Ee, pt as De } from "./dropdown-menu-B6ftyzOg.js";
11
+ import { m as Oe, y as ke } from "./toDate-TMubKIVL.js";
12
12
  import { t as Ae } from "./jsx-runtime-3BD1kT0s.js";
13
13
  import { Ct as S, Et as C, K as je, Q as Me, St as w, Tt as Ne, X as Pe, Y as Fe, _t as Ie, bt as T, ct as Le, dt as Re, ft as ze, gt as Be, ht as Ve, lt as He, mt as Ue, pt as We, wt as Ge, xt as E } from "./use-restore-focus-CmGwRNId.js";
14
- import { A as Ke, C as D, E as qe, _ as Je, c as Ye, n as Xe } from "./useTheme-TLkqJsvo.js";
14
+ import { A as Ke, D as qe, _ as Je, c as Ye, n as Xe, w as D } from "./useTheme-Bns2gJZ6.js";
15
15
  import { $ as Ze } from "./dist-DoE4XJBC.js";
16
- import { t as Qe } from "./useAsyncData-B7MiltyV.js";
16
+ import { t as Qe } from "./useAsyncData-DjMGFzFy.js";
17
17
  //#region ../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js
18
18
  var $e = /* @__PURE__ */ t(((e) => {
19
19
  Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
@@ -1845,7 +1845,7 @@ Mn.displayName = _n.displayName;
1845
1845
  //#endregion
1846
1846
  //#region src/core/documentation/doc-lookup.ts
1847
1847
  async function Nn(e) {
1848
- let t = he().inOrderIds.at(0);
1848
+ let t = me().inOrderIds.at(0);
1849
1849
  if (t) try {
1850
1850
  let n = await ye.request({
1851
1851
  document: e,
@@ -1853,7 +1853,7 @@ async function Nn(e) {
1853
1853
  });
1854
1854
  if (!n || n.options.length === 0) return;
1855
1855
  let r = e.split(".").pop() ?? e, i = n.options[0], a = n.options.find((e) => e.name === r) ?? i;
1856
- a?.completion_info && Je.set(pe, { documentation: a.completion_info });
1856
+ a?.completion_info && Je.set(_e, { documentation: a.completion_info });
1857
1857
  } catch (t) {
1858
1858
  n.debug(`Doc lookup failed for "${e}"`, t);
1859
1859
  }
@@ -2019,7 +2019,7 @@ var Hn = [], Un = (e) => {
2019
2019
  bb0: {
2020
2020
  if (i || o) {
2021
2021
  let e;
2022
- t[0] === n ? e = t[1] : (e = ge(n), t[0] = n, t[1] = e), s = e;
2022
+ t[0] === n ? e = t[1] : (e = oe(n), t[0] = n, t[1] = e), s = e;
2023
2023
  break bb0;
2024
2024
  }
2025
2025
  s = n;
@@ -2338,7 +2338,7 @@ var Nr = O.forwardRef((e, t) => {
2338
2338
  Nr.displayName = en.displayName;
2339
2339
  //#endregion
2340
2340
  //#region src/utils/multi-map.ts
2341
- var Pr = /* @__PURE__ */ e(xe(), 1), Fr = class {
2341
+ var Pr = /* @__PURE__ */ e(le(), 1), Fr = class {
2342
2342
  map = /* @__PURE__ */ new Map();
2343
2343
  get(e) {
2344
2344
  return this.map.get(e) ?? [];
@@ -2478,7 +2478,7 @@ var Lr = class {
2478
2478
  return (await Promise.all(i)).flat();
2479
2479
  }
2480
2480
  };
2481
- oe([te()], Rr.prototype, "getAllItems", null);
2481
+ ae([he()], Rr.prototype, "getAllItems", null);
2482
2482
  //#endregion
2483
2483
  //#region src/core/ai/context/utils.ts
2484
2484
  function zr(e) {
@@ -2533,12 +2533,12 @@ var Vr = {
2533
2533
  connectionsMap;
2534
2534
  dataframes;
2535
2535
  constructor(e, t) {
2536
- super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => be(e) === "dataframe");
2536
+ super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => ue(e) === "dataframe");
2537
2537
  }
2538
2538
  getItems() {
2539
2539
  return [...this.connectionsMap.values()].map((e) => {
2540
2540
  let t = "Database schema.", n = { connection: e };
2541
- return ie.has(e.name) && (n.tables = this.dataframes, t = "Database schema and the dataframes that can be queried"), e.databases.length === 0 && (n.tables?.length ?? 0) === 0 ? null : {
2541
+ return ne.has(e.name) && (n.tables = this.dataframes, t = "Database schema and the dataframes that can be queried"), e.databases.length === 0 && (n.tables?.length ?? 0) === 0 ? null : {
2542
2542
  uri: this.asURI(e.name),
2543
2543
  name: e.name,
2544
2544
  description: t,
@@ -2549,7 +2549,7 @@ var Vr = {
2549
2549
  }
2550
2550
  formatContext(e) {
2551
2551
  let t = e.data, { name: n, display_name: r, source: i, ...a } = t.connection, o = a;
2552
- return ie.has(n) || (o = {
2552
+ return ne.has(n) || (o = {
2553
2553
  ...a,
2554
2554
  engine_name: n
2555
2555
  }), Br({
@@ -2562,30 +2562,30 @@ var Vr = {
2562
2562
  }
2563
2563
  formatCompletion(e) {
2564
2564
  let t = e.data, n = t.connection, r = t.tables, i = n.name;
2565
- return ie.has(n.name) && (i = "In-Memory"), {
2565
+ return ne.has(n.name) && (i = "In-Memory"), {
2566
2566
  label: `@${i}`,
2567
2567
  displayLabel: i,
2568
- detail: me(n.dialect),
2568
+ detail: xe(n.dialect),
2569
2569
  boost: Vr.MEDIUM,
2570
2570
  type: this.contextType,
2571
2571
  section: Hr.DATA_SOURCES,
2572
2572
  info: () => {
2573
2573
  let e = document.createElement("div");
2574
- return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Pr.createRoot)(e).render(_e(n, r)), e;
2574
+ return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Pr.createRoot)(e).render(ge(n, r)), e;
2575
2575
  }
2576
2576
  };
2577
2577
  }
2578
2578
  };
2579
2579
  function Gr(e, t) {
2580
- let n = t.get(fe(e))?.code;
2580
+ let n = t.get(pe(e))?.code;
2581
2581
  if (!n || n.trim() === "") return null;
2582
- let [r, i, a] = le.sql.transformIn(n), o = t.get(ne).connectionsMap.get(a.engine);
2582
+ let [r, i, a] = de.sql.transformIn(n), o = t.get(be).connectionsMap.get(a.engine);
2583
2583
  return o ? `@${Ur}://${o.name}` : null;
2584
2584
  }
2585
2585
  function Kr(e, t) {
2586
2586
  let n = Gr(e, t);
2587
2587
  if (!n) return null;
2588
- let r = t.get(ne).connectionsMap, i = new Wr(r, t.get(ce)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
2588
+ let r = t.get(be).connectionsMap, i = new Wr(r, t.get(te)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
2589
2589
  return o ? i.formatContext(o) : null;
2590
2590
  }
2591
2591
  //#endregion
@@ -2593,7 +2593,7 @@ function Kr(e, t) {
2593
2593
  var qr = {}, Jr = {};
2594
2594
  function Yr(e) {
2595
2595
  let t = (0, k.c)(16), { mode: n } = D(ke), { updateCellConfig: r } = Se(), i;
2596
- t[0] === e ? i = t[1] : (i = ve(fe(e), Zr, Object.is), t[0] = e, t[1] = i);
2596
+ t[0] === e ? i = t[1] : (i = ve(pe(e), Zr, Object.is), t[0] = e, t[1] = i);
2597
2597
  let a = D(i), o;
2598
2598
  t[2] !== e || t[3] !== a ? (o = () => qr[e] ?? a, t[2] = e, t[3] = a, t[4] = o) : o = t[4];
2599
2599
  let [s, c] = (0, O.useState)(o), l, u;
@@ -2607,7 +2607,7 @@ function Yr(e) {
2607
2607
  r({
2608
2608
  cellId: e,
2609
2609
  config: n
2610
- }), re().saveCellConfig({ configs: { [e]: n } }).catch(Xr);
2610
+ }), se().saveCellConfig({ configs: { [e]: n } }).catch(Xr);
2611
2611
  }, t[9] = e, t[10] = d, t[11] = r, t[12] = p) : p = t[12];
2612
2612
  let m = Ke(p), h;
2613
2613
  return t[13] !== f || t[14] !== m ? (h = [f, m], t[13] = f, t[14] = m, t[15] = h) : h = t[15], h;
@@ -2638,10 +2638,10 @@ function ni(e, t) {
2638
2638
  code: t
2639
2639
  } : e === "sql" ? {
2640
2640
  language: "python",
2641
- code: ue.fromQuery(t)
2641
+ code: re.fromQuery(t)
2642
2642
  } : e === "markdown" ? {
2643
2643
  language: "python",
2644
- code: de.fromMarkdown(t)
2644
+ code: fe.fromMarkdown(t)
2645
2645
  } : e === "shell" || e === "bash" ? {
2646
2646
  language: "python",
2647
2647
  code: `import subprocess\nsubprocess.run("${t}")`
@@ -2654,10 +2654,10 @@ function ni(e, t) {
2654
2654
  };
2655
2655
  }
2656
2656
  var ri = (e) => {
2657
- let t = (0, k.c)(9), { code: n, language: r } = e, { createNewCell: i } = Se(), a = se(), s = D(Ye), c;
2657
+ let t = (0, k.c)(9), { code: n, language: r } = e, { createNewCell: i } = Se(), a = ce(), s = D(Ye), c;
2658
2658
  t[0] !== s || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (c = () => {
2659
2659
  let e = ni(r, n);
2660
- r === "sql" && ae({
2660
+ r === "sql" && ie({
2661
2661
  autoInstantiate: s,
2662
2662
  createNewCell: i,
2663
2663
  fromCellId: a
@@ -1,7 +1,7 @@
1
1
  import { n as e } from "./src-CA_m4ONl.js";
2
2
  import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
3
3
  import { c as n } from "./chunk-DU6HZSFF-BwiyaNpg.js";
4
- import { p as r } from "./mermaid-C8W8mTbA.js";
4
+ import { p as r } from "./mermaid-CSvw7c71.js";
5
5
  import { n as i } from "./mermaid-parser.core-DxuSfYwJ.js";
6
6
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-27XIBGKW.mjs
7
7
  var a = { parse: /* @__PURE__ */ t(async (t) => {
@@ -3,7 +3,7 @@ import "./src-CA_m4ONl.js";
3
3
  import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
4
  import { H as n, K as r, U as i, a, c as o, s, v as c, w as l, x as u, y as d } from "./chunk-DU6HZSFF-BwiyaNpg.js";
5
5
  import { t as f } from "./rough.esm-CtV9AnV1.js";
6
- import { p } from "./mermaid-C8W8mTbA.js";
6
+ import { p } from "./mermaid-CSvw7c71.js";
7
7
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-5VMMS53U.mjs
8
8
  var m = (function() {
9
9
  var e = /* @__PURE__ */ t(function(e, t, n, r) {
@@ -8,7 +8,7 @@ import "./chunk-GMAD6QVW-BhaJx0X3.js";
8
8
  import "./chunk-4HAMMTFA-D4eFPyFh.js";
9
9
  import { i as l, r as u } from "./chunk-GVQU2GXP-Cwbt-lF0.js";
10
10
  import { n as d } from "./chunk-L3NEJ4N5-n-zgIVSy.js";
11
- import { a as f, i as p, p as m } from "./mermaid-C8W8mTbA.js";
11
+ import { a as f, i as p, p as m } from "./mermaid-CSvw7c71.js";
12
12
  import { t as h } from "./chunk-5VM5RSS4-DKsmPCL6.js";
13
13
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-UXKFOSKX.mjs
14
14
  var g = (function() {