@marimo-team/islands 0.26.1-dev27 → 0.26.1-dev29

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 (76) hide show
  1. package/dist/{ErrorBoundary-zpe6C93k.js → ErrorBoundary-CPcZlpvU.js} +1 -1
  2. package/dist/{chat-ui-DOvIzlMA.js → chat-ui-CWmSnBs8.js} +899 -899
  3. package/dist/{code-visibility-BtvMUvQ6.js → code-visibility-CHvnQsso.js} +2 -2
  4. package/dist/{common-B46KECgx.js → common-9OlCmjdr.js} +6565 -6565
  5. package/dist/{config-DL9e-OWE.js → config-1ku0tAiU.js} +27 -28
  6. package/dist/{data-grid-overlay-editor-CLCJ44fs.js → data-grid-overlay-editor-D6x_MBSD.js} +1 -1
  7. package/dist/{dropdown-menu-DYN2RV5d.js → dropdown-menu-D65ZUqka.js} +1983 -1983
  8. package/dist/{error-entries-CncQR572.js → error-entries-DFHEq_SO.js} +515 -519
  9. package/dist/{feedback-button-CnyHlwaY.js → feedback-button-CodkZ3hF.js} +19 -19
  10. package/dist/{glide-data-editor-C3znsea0.js → glide-data-editor-BZxvtSp-.js} +35 -35
  11. package/dist/{globals-DHoGn4Qt.js → globals-DFf-tSyE.js} +1 -1
  12. package/dist/{html-to-image-BU7H-AM1.js → html-to-image-D6Gtk5ik.js} +24005 -23992
  13. package/dist/main.js +864 -864
  14. package/dist/{number-overlay-editor-DwK5S3_f.js → number-overlay-editor-CfwFMv_U.js} +1 -1
  15. package/dist/{process-output-xJm8T5-E.js → process-output-ZBdibqlG.js} +2 -2
  16. package/dist/{reveal-component-Dsp5kSt3.js → reveal-component-CDfNuSFv.js} +3 -3
  17. package/dist/style.css +1 -1
  18. package/dist/{vega-component-DpTyTrz3.js → vega-component-D61CTW1X.js} +1 -1
  19. package/package.json +1 -1
  20. package/src/__mocks__/intersection-observer.ts +45 -0
  21. package/src/components/databases/engine-variable.tsx +2 -2
  22. package/src/components/dependency-graph/panels.tsx +2 -2
  23. package/src/components/editor/actions/useCellActionButton.tsx +2 -8
  24. package/src/components/editor/cell/code/__tests__/code-placeholder.test.tsx +40 -0
  25. package/src/components/editor/cell/code/cell-editor.tsx +41 -104
  26. package/src/components/editor/cell/code/code-placeholder.css +61 -11
  27. package/src/components/editor/cell/code/code-placeholder.tsx +52 -29
  28. package/src/components/editor/cell/useSplitCell.tsx +2 -2
  29. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +6 -10
  30. package/src/components/editor/errors/auto-fix.tsx +8 -7
  31. package/src/components/editor/navigation/__tests__/navigation.test.ts +3 -12
  32. package/src/components/editor/navigation/focus-utils.ts +20 -8
  33. package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +3 -11
  34. package/src/components/editor/navigation/navigation.ts +2 -2
  35. package/src/components/editor/notebook-cell.tsx +15 -24
  36. package/src/components/editor/output/MarimoTracebackOutput.tsx +2 -2
  37. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +6 -9
  38. package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +2 -5
  39. package/src/components/find-replace/find-replace.tsx +3 -7
  40. package/src/components/variables/__tests__/variables-table.test.tsx +1 -2
  41. package/src/core/ai/__tests__/staged-cells.test.ts +6 -39
  42. package/src/core/ai/staged-cells.ts +2 -20
  43. package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +15 -13
  44. package/src/core/ai/tools/edit-notebook-tool.ts +13 -8
  45. package/src/core/cells/__tests__/cell-editor-view.test.ts +44 -0
  46. package/src/core/cells/__tests__/cells.test.ts +0 -1
  47. package/src/core/cells/__tests__/focus.test.ts +1 -7
  48. package/src/core/cells/__tests__/harness.ts +0 -1
  49. package/src/core/cells/cells.ts +15 -10
  50. package/src/core/cells/focus.ts +1 -1
  51. package/src/core/cells/scrollCellIntoView.ts +4 -14
  52. package/src/core/cells/utils.ts +0 -13
  53. package/src/core/codemirror/__tests__/cell-documents.test.ts +79 -0
  54. package/src/core/codemirror/__tests__/editor-mount-scheduler.test.ts +75 -105
  55. package/src/core/codemirror/__tests__/format.test.ts +85 -63
  56. package/src/core/codemirror/__tests__/use-lazy-editor-mount.test.tsx +193 -0
  57. package/src/core/codemirror/cell-documents.ts +132 -0
  58. package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +0 -1
  59. package/src/core/codemirror/copilot/getCodes.ts +3 -14
  60. package/src/core/codemirror/editor-mount-scheduler.ts +41 -48
  61. package/src/core/codemirror/extensions.ts +2 -2
  62. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -16
  63. package/src/core/codemirror/find-replace/__tests__/search-highlight.test.ts +30 -0
  64. package/src/core/codemirror/find-replace/__tests__/unmounted-cells.test.ts +145 -0
  65. package/src/core/codemirror/find-replace/navigate.ts +88 -129
  66. package/src/core/codemirror/find-replace/search-highlight.ts +3 -1
  67. package/src/core/codemirror/find-replace/state.ts +7 -2
  68. package/src/core/codemirror/format.ts +25 -31
  69. package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +8 -9
  70. package/src/core/codemirror/language/cell-code.ts +7 -0
  71. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +25 -0
  72. package/src/core/codemirror/lsp/notebook-lsp.ts +6 -16
  73. package/src/core/codemirror/use-lazy-editor-mount.ts +67 -0
  74. package/src/core/codemirror/utils.ts +2 -6
  75. package/src/utils/__tests__/shared-intersection-observer.test.ts +49 -0
  76. package/src/utils/shared-intersection-observer.ts +53 -0
@@ -3,14 +3,14 @@ import { h as t, t as n } from "./button-Z2R2272J.js";
3
3
  import { t as r } from "./react-Bgs_wQh3.js";
4
4
  import { t as i } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { t as a } from "./copy-icon-rYV2znAe.js";
6
- import { $t as o, D as s, I as c, K as l, O as u, P as d, i as f, in as p, n as m } from "./error-entries-CncQR572.js";
7
- import { n as h, t as ee } from "./globals-DHoGn4Qt.js";
6
+ import { $t as o, A as s, L as c, Y as l, i as u, in as d, j as f, n as p, z as m } from "./error-entries-DFHEq_SO.js";
7
+ import { n as h, t as ee } from "./globals-DFf-tSyE.js";
8
8
  import { r as g } from "./assertNever-BHnIohkX.js";
9
9
  import { t as _ } from "./jsx-runtime-D8btoEHk.js";
10
10
  import { Bt as v, Ct as te, m as y } from "./use-restore-focus-ocw7t85i.js";
11
11
  import { a as ne, i as re, n as ie, r as ae } from "./dialog-vs6x3On9.js";
12
12
  import { t as oe } from "./useAsyncData-P5-Oovhq.js";
13
- import { t as se } from "./code-visibility-BtvMUvQ6.js";
13
+ import { t as se } from "./code-visibility-CHvnQsso.js";
14
14
  //#region src/components/ui/skeleton.tsx
15
15
  var b = /* @__PURE__ */ e(r(), 1), x = i(), S = _(), ce = (e) => {
16
16
  let n = (0, x.c)(8), r, i;
@@ -72,7 +72,7 @@ function fe(e) {
72
72
  return w("Environment", C("json", JSON.stringify(e, null, 2)));
73
73
  }
74
74
  function pe(e) {
75
- return w("Errors", C("text", e.map(m).join("\n\n---\n\n")));
75
+ return w("Errors", C("text", e.map(p).join("\n\n---\n\n")));
76
76
  }
77
77
  function me(e) {
78
78
  return w("Code", C("python", e));
@@ -81,15 +81,15 @@ function me(e) {
81
81
  //#region src/hooks/useLocalStorage.ts
82
82
  function he(e, t) {
83
83
  let n = (0, x.c)(11), r;
84
- n[0] === t ? r = n[1] : (r = new d(t), n[0] = t, n[1] = r);
84
+ n[0] === t ? r = n[1] : (r = new c(t), n[0] = t, n[1] = r);
85
85
  let i = r, a;
86
86
  n[2] !== e || n[3] !== i ? (a = () => i.get(e), n[2] = e, n[3] = i, n[4] = a) : a = n[4];
87
- let [o, s] = (0, b.useState)(a), c;
88
- n[5] !== e || n[6] !== i ? (c = (t) => {
87
+ let [o, s] = (0, b.useState)(a), l;
88
+ n[5] !== e || n[6] !== i ? (l = (t) => {
89
89
  s(t), i.set(e, t);
90
- }, n[5] = e, n[6] = i, n[7] = c) : c = n[7];
91
- let l = c, u;
92
- return n[8] !== l || n[9] !== o ? (u = [o, l], n[8] = l, n[9] = o, n[10] = u) : u = n[10], u;
90
+ }, n[5] = e, n[6] = i, n[7] = l) : l = n[7];
91
+ let u = l, d;
92
+ return n[8] !== u || n[9] !== o ? (d = [o, u], n[8] = u, n[9] = o, n[10] = d) : d = n[10], d;
93
93
  }
94
94
  var ge = (e) => {
95
95
  let r = (0, x.c)(16), { content: i } = e, [a, o] = (0, b.useState)(!1), s = !a && "max-h-24 overflow-hidden", c;
@@ -134,7 +134,7 @@ var T = () => {
134
134
  e[0] === t ? (r = e[1], i = e[2]) : (r = async () => {
135
135
  if (t != null) return t.getEnvironmentInfo();
136
136
  }, i = [t], e[0] = t, e[1] = r, e[2] = i);
137
- let o = oe(r, i), d = f(te), g = se(), _ = v(c), b = v(u), C = t != null, w;
137
+ let o = oe(r, i), c = u(te), g = se(), _ = v(m), b = v(f), C = t != null, w;
138
138
  e[3] !== g || e[4] !== b.state || e[5] !== _ || e[6] !== C ? (w = _e({
139
139
  hasRequestClient: C,
140
140
  filename: _,
@@ -154,13 +154,13 @@ var T = () => {
154
154
  let P = oe(M, N), ye = y.bugReportUrl, be = [];
155
155
  if (j) {
156
156
  let e = { env: fe(j) };
157
- D && d.length > 0 && (e["bug-description"] = pe(d)), k && P.data && (e["reproduction-code"] = me(P.data)), {url: ye, omitted: be} = de(y.bugReportUrl, e);
157
+ D && c.length > 0 && (e["bug-description"] = pe(c)), k && P.data && (e["reproduction-code"] = me(P.data)), {url: ye, omitted: be} = de(y.bugReportUrl, e);
158
158
  }
159
159
  let xe = be.map(ve).join(", "), F;
160
160
  e[13] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ (0, S.jsxs)(re, { children: [/* @__PURE__ */ (0, S.jsx)(ne, { children: "Report an issue" }), /* @__PURE__ */ (0, S.jsx)(ae, { children: "Open a GitHub bug report prefilled with your environment, and optionally your current errors and notebook code. Nothing is uploaded automatically; review the details before posting." })] }), e[13] = F) : F = e[13];
161
161
  let I;
162
- e[14] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ (0, S.jsx)(p, { className: "w-4 h-4 mr-2" }), e[14] = I) : I = e[14];
163
- let Se = d.length === 0, L;
162
+ e[14] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ (0, S.jsx)(d, { className: "w-4 h-4 mr-2" }), e[14] = I) : I = e[14];
163
+ let Se = c.length === 0, L;
164
164
  e[15] === O ? L = e[16] : (L = (e) => O(e === !0), e[15] = O, e[16] = L);
165
165
  let R;
166
166
  e[17] !== D || e[18] !== Se || e[19] !== L ? (R = /* @__PURE__ */ (0, S.jsx)(s, {
@@ -253,10 +253,10 @@ var T = () => {
253
253
  ]
254
254
  }), e[48] = o, e[49] = t, e[50] = X) : X = e[50];
255
255
  let Z;
256
- e[51] !== j || e[52] !== d ? (Z = j && d.length === 0 && /* @__PURE__ */ (0, S.jsx)("span", {
256
+ e[51] !== j || e[52] !== c ? (Z = j && c.length === 0 && /* @__PURE__ */ (0, S.jsx)("span", {
257
257
  className: "text-sm text-muted-foreground",
258
258
  children: "No errors detected."
259
- }), e[51] = j, e[52] = d, e[53] = Z) : Z = e[53];
259
+ }), e[51] = j, e[52] = c, e[53] = Z) : Z = e[53];
260
260
  let Q;
261
261
  e[54] === Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ (0, S.jsx)("a", {
262
262
  href: y.feedbackForm,
@@ -339,7 +339,7 @@ var T = () => {
339
339
  })]
340
340
  }), /* @__PURE__ */ (0, S.jsx)(ge, { content: JSON.stringify(j, null, 2) })]
341
341
  }),
342
- j && d.length > 0 && /* @__PURE__ */ (0, S.jsxs)("div", {
342
+ j && c.length > 0 && /* @__PURE__ */ (0, S.jsxs)("div", {
343
343
  className: "flex flex-col gap-1",
344
344
  children: [/* @__PURE__ */ (0, S.jsxs)("div", {
345
345
  className: "flex items-center justify-between",
@@ -348,11 +348,11 @@ var T = () => {
348
348
  children: "Errors"
349
349
  }), /* @__PURE__ */ (0, S.jsx)(a, {
350
350
  className: "w-3.5 h-3.5",
351
- value: pe(d),
351
+ value: pe(c),
352
352
  ariaLabel: "Copy errors",
353
353
  toastTitle: "Errors copied"
354
354
  })]
355
- }), /* @__PURE__ */ (0, S.jsx)(ge, { content: d.map(m).join("\n\n---\n\n") })]
355
+ }), /* @__PURE__ */ (0, S.jsx)(ge, { content: c.map(p).join("\n\n---\n\n") })]
356
356
  }),
357
357
  Z,
358
358
  $
@@ -5,7 +5,7 @@ import { t as o } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { i as s, n as c, r as l } from "./copy-icon-rYV2znAe.js";
6
6
  import { d as u } from "./tooltip-DSWC_Td_.js";
7
7
  import { c as d, d as f, i as p, n as m, s as h, t as g } from "./select-CKLRKIzB.js";
8
- import { J as _, d as v, h as y, i as b, l as x, n as S, o as C, s as w, t as T, u as E, xn as D } from "./dropdown-menu-DYN2RV5d.js";
8
+ import { d as _, g as v, i as y, l as b, n as x, o as S, p as C, s as w, t as T, u as E, xn as D } from "./dropdown-menu-D65ZUqka.js";
9
9
  import { t as O } from "./pencil-AWgwbH4D.js";
10
10
  import { c as k, f as A, l as ee, n as j, o as te, s as ne, t as re, u as ie } from "./glide-utils-CZ-O-CB_.js";
11
11
  import { i as M, n as N } from "./assertNever-BHnIohkX.js";
@@ -14,7 +14,7 @@ import { t as F } from "./jsx-runtime-D8btoEHk.js";
14
14
  import { d as ae, r as I } from "./use-restore-focus-ocw7t85i.js";
15
15
  import { t as oe } from "./useEvent-BoN7U38T.js";
16
16
  import { n as L, t as se } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
17
- import { t as ce } from "./ErrorBoundary-zpe6C93k.js";
17
+ import { t as ce } from "./ErrorBoundary-CPcZlpvU.js";
18
18
  import { A as le, C as ue, D as de, E as fe, F as pe, I as me, L as he, M as ge, N as R, O as z, P as _e, R as ve, S as ye, T as be, _ as xe, a as Se, b as B, c as Ce, d as we, f as V, g as Te, h as Ee, i as De, j as H, k as Oe, l as ke, m as Ae, n as je, o as Me, p as Ne, r as U, s as Pe, t as Fe, u as Ie, v as Le, w as Re, x as ze, y as Be, z as Ve } from "./data-grid-types-DBNnjiYJ.js";
19
19
  //#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
20
20
  function He(e) {
@@ -1645,7 +1645,7 @@ var Rt = ft(), zt = (e) => {
1645
1645
  renderMarkdownIntoDiv() {
1646
1646
  let { targetElement: e, props: t } = this;
1647
1647
  if (e === null) return;
1648
- let { contents: n, createNode: r } = t, i = _(n), a = document.createRange();
1648
+ let { contents: n, createNode: r } = t, i = C(n), a = document.createRange();
1649
1649
  a.selectNodeContents(e), a.deleteContents();
1650
1650
  let o = r?.(i);
1651
1651
  if (o === void 0) {
@@ -7061,7 +7061,7 @@ function ds(e, t, n, r, i) {
7061
7061
  }
7062
7062
  //#endregion
7063
7063
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
7064
- var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-CLCJ44fs.js")), hs = 0;
7064
+ var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-D6x_MBSD.js")), hs = 0;
7065
7065
  function gs(e) {
7066
7066
  return (0, fs.default)((0, ps.default)((0, ps.default)(e).filter((e) => e.span !== void 0).map((e) => (0, ao.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
7067
7067
  }
@@ -9284,7 +9284,7 @@ function Ys(e, t, n, r, i) {
9284
9284
  }
9285
9285
  //#endregion
9286
9286
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
9287
- var Xs = W.lazy(async () => await import("./number-overlay-editor-DwK5S3_f.js")), Zs = {
9287
+ var Xs = W.lazy(async () => await import("./number-overlay-editor-CfwFMv_U.js")), Zs = {
9288
9288
  getAccessibilityString: (e) => e.data?.toString() ?? "",
9289
9289
  kind: U.Number,
9290
9290
  needsHover: (e) => e.hoverEffect === !0,
@@ -13415,7 +13415,7 @@ var $ = F(), Zp = (e) => {
13415
13415
  e.key === "Enter" ? l() : e.key === "Escape" && a();
13416
13416
  }, t[4] = l, t[5] = a, t[6] = u) : u = t[6];
13417
13417
  let d = u, p;
13418
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, $.jsxs)(v, { children: [/* @__PURE__ */ (0, $.jsx)(O, { className: "mr-2 h-3.5 w-3.5" }), "Rename column"] }), t[7] = p) : p = t[7];
13418
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, $.jsxs)(_, { children: [/* @__PURE__ */ (0, $.jsx)(O, { className: "mr-2 h-3.5 w-3.5" }), "Rename column"] }), t[7] = p) : p = t[7];
13419
13419
  let m;
13420
13420
  t[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ (0, $.jsx)(f, {
13421
13421
  htmlFor: "rename-input",
@@ -13424,33 +13424,33 @@ var $ = F(), Zp = (e) => {
13424
13424
  let h;
13425
13425
  t[9] === Symbol.for("react.memo_cache_sentinel") ? (h = (e) => s(e.target.value), t[9] = h) : h = t[9];
13426
13426
  let g;
13427
- t[10] !== d || t[11] !== o ? (g = /* @__PURE__ */ (0, $.jsxs)("div", { children: [m, /* @__PURE__ */ (0, $.jsx)(y, {
13427
+ t[10] !== d || t[11] !== o ? (g = /* @__PURE__ */ (0, $.jsxs)("div", { children: [m, /* @__PURE__ */ (0, $.jsx)(v, {
13428
13428
  value: o,
13429
13429
  onChange: h,
13430
13430
  placeholder: "Enter new column name",
13431
13431
  className: "mt-1",
13432
13432
  onKeyDown: d
13433
13433
  })] }), t[10] = d, t[11] = o, t[12] = g) : g = t[12];
13434
- let _;
13435
- t[13] === o ? _ = t[14] : (_ = o.trim(), t[13] = o, t[14] = _);
13436
- let b = !_, S;
13437
- t[15] !== l || t[16] !== b ? (S = /* @__PURE__ */ (0, $.jsx)(i, {
13434
+ let y;
13435
+ t[13] === o ? y = t[14] : (y = o.trim(), t[13] = o, t[14] = y);
13436
+ let x = !y, C;
13437
+ t[15] !== l || t[16] !== x ? (C = /* @__PURE__ */ (0, $.jsx)(i, {
13438
13438
  onClick: l,
13439
- disabled: b,
13439
+ disabled: x,
13440
13440
  size: "sm",
13441
13441
  className: "w-full",
13442
13442
  children: "Rename"
13443
- }), t[15] = l, t[16] = b, t[17] = S) : S = t[17];
13443
+ }), t[15] = l, t[16] = x, t[17] = C) : C = t[17];
13444
13444
  let w;
13445
- return t[18] !== g || t[19] !== S ? (w = /* @__PURE__ */ (0, $.jsxs)(x, { children: [p, /* @__PURE__ */ (0, $.jsx)(C, { children: /* @__PURE__ */ (0, $.jsx)(E, {
13445
+ return t[18] !== g || t[19] !== C ? (w = /* @__PURE__ */ (0, $.jsxs)(b, { children: [p, /* @__PURE__ */ (0, $.jsx)(S, { children: /* @__PURE__ */ (0, $.jsx)(E, {
13446
13446
  className: "w-64 p-4",
13447
13447
  children: /* @__PURE__ */ (0, $.jsxs)("div", {
13448
13448
  className: "space-y-3",
13449
- children: [g, S]
13449
+ children: [g, C]
13450
13450
  })
13451
- }) })] }), t[18] = g, t[19] = S, t[20] = w) : w = t[20], w;
13451
+ }) })] }), t[18] = g, t[19] = C, t[20] = w) : w = t[20], w;
13452
13452
  }, Qp = (e) => {
13453
- let t = (0, Yp.c)(79), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, W.useState)(""), [c, l] = (0, W.useState)("string"), u, p, _, b, S, w, T, O, k, A, ee, j, te, ne, re;
13453
+ let t = (0, Yp.c)(79), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, W.useState)(""), [c, l] = (0, W.useState)("string"), u, p, y, x, C, w, T, O, k, A, ee, j, te, ne, re;
13454
13454
  if (t[0] !== o || t[1] !== c || t[2] !== n || t[3] !== r || t[4] !== a) {
13455
13455
  let e = [
13456
13456
  "string",
@@ -13466,13 +13466,13 @@ var $ = F(), Zp = (e) => {
13466
13466
  e.key === "Enter" ? w() : e.key === "Escape" && a();
13467
13467
  }, t[24] = w, t[25] = a, t[26] = ie) : ie = t[26];
13468
13468
  let M = ie;
13469
- S = x;
13469
+ C = b;
13470
13470
  let N;
13471
- t[27] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ (0, $.jsx)(D, { className: "mr-2 h-3.5 w-3.5" }), t[27] = N) : N = t[27], t[28] === n ? re = t[29] : (re = /* @__PURE__ */ (0, $.jsxs)(v, { children: [
13471
+ t[27] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ (0, $.jsx)(D, { className: "mr-2 h-3.5 w-3.5" }), t[27] = N) : N = t[27], t[28] === n ? re = t[29] : (re = /* @__PURE__ */ (0, $.jsxs)(_, { children: [
13472
13472
  N,
13473
13473
  "Add column to the ",
13474
13474
  n
13475
- ] }), t[28] = n, t[29] = re), b = C, _ = E, ne = "w-64 p-4", j = "space-y-3";
13475
+ ] }), t[28] = n, t[29] = re), x = S, y = E, ne = "w-64 p-4", j = "space-y-3";
13476
13476
  let P = `add-column-input-${n}`, F;
13477
13477
  t[30] === P ? F = t[31] : (F = /* @__PURE__ */ (0, $.jsx)(f, {
13478
13478
  htmlFor: P,
@@ -13481,7 +13481,7 @@ var $ = F(), Zp = (e) => {
13481
13481
  let ae = `add-column-input-${n}`, I;
13482
13482
  t[32] === Symbol.for("react.memo_cache_sentinel") ? (I = (e) => s(e.target.value), t[32] = I) : I = t[32];
13483
13483
  let oe;
13484
- t[33] !== o || t[34] !== M || t[35] !== ae ? (oe = /* @__PURE__ */ (0, $.jsx)(y, {
13484
+ t[33] !== o || t[34] !== M || t[35] !== ae ? (oe = /* @__PURE__ */ (0, $.jsx)(v, {
13485
13485
  id: ae,
13486
13486
  value: o,
13487
13487
  onChange: I,
@@ -13499,8 +13499,8 @@ var $ = F(), Zp = (e) => {
13499
13499
  id: se,
13500
13500
  className: "mt-1",
13501
13501
  children: ce
13502
- }), t[44] = se, t[45] = A), u = m, T = e.map($p), t[0] = o, t[1] = c, t[2] = n, t[3] = r, t[4] = a, t[5] = u, t[6] = p, t[7] = _, t[8] = b, t[9] = S, t[10] = w, t[11] = T, t[12] = O, t[13] = k, t[14] = A, t[15] = ee, t[16] = j, t[17] = te, t[18] = ne, t[19] = re;
13503
- } else u = t[5], p = t[6], _ = t[7], b = t[8], S = t[9], w = t[10], T = t[11], O = t[12], k = t[13], A = t[14], ee = t[15], j = t[16], te = t[17], ne = t[18], re = t[19];
13502
+ }), t[44] = se, t[45] = A), u = m, T = e.map($p), t[0] = o, t[1] = c, t[2] = n, t[3] = r, t[4] = a, t[5] = u, t[6] = p, t[7] = y, t[8] = x, t[9] = C, t[10] = w, t[11] = T, t[12] = O, t[13] = k, t[14] = A, t[15] = ee, t[16] = j, t[17] = te, t[18] = ne, t[19] = re;
13503
+ } else u = t[5], p = t[6], y = t[7], x = t[8], C = t[9], w = t[10], T = t[11], O = t[12], k = t[13], A = t[14], ee = t[15], j = t[16], te = t[17], ne = t[18], re = t[19];
13504
13504
  let ie;
13505
13505
  t[46] !== u || t[47] !== T ? (ie = /* @__PURE__ */ (0, $.jsx)(u, { children: T }), t[46] = u, t[47] = T, t[48] = ie) : ie = t[48];
13506
13506
  let M;
@@ -13531,14 +13531,14 @@ var $ = F(), Zp = (e) => {
13531
13531
  ]
13532
13532
  }), t[63] = N, t[64] = ae, t[65] = j, t[66] = te, t[67] = I) : I = t[67];
13533
13533
  let oe;
13534
- t[68] !== _ || t[69] !== I || t[70] !== ne ? (oe = /* @__PURE__ */ (0, $.jsx)(_, {
13534
+ t[68] !== y || t[69] !== I || t[70] !== ne ? (oe = /* @__PURE__ */ (0, $.jsx)(y, {
13535
13535
  className: ne,
13536
13536
  children: I
13537
- }), t[68] = _, t[69] = I, t[70] = ne, t[71] = oe) : oe = t[71];
13537
+ }), t[68] = y, t[69] = I, t[70] = ne, t[71] = oe) : oe = t[71];
13538
13538
  let L;
13539
- t[72] !== b || t[73] !== oe ? (L = /* @__PURE__ */ (0, $.jsx)(b, { children: oe }), t[72] = b, t[73] = oe, t[74] = L) : L = t[74];
13539
+ t[72] !== x || t[73] !== oe ? (L = /* @__PURE__ */ (0, $.jsx)(x, { children: oe }), t[72] = x, t[73] = oe, t[74] = L) : L = t[74];
13540
13540
  let se;
13541
- return t[75] !== S || t[76] !== L || t[77] !== re ? (se = /* @__PURE__ */ (0, $.jsxs)(S, { children: [re, L] }), t[75] = S, t[76] = L, t[77] = re, t[78] = se) : se = t[78], se;
13541
+ return t[75] !== C || t[76] !== L || t[77] !== re ? (se = /* @__PURE__ */ (0, $.jsxs)(C, { children: [re, L] }), t[75] = C, t[76] = L, t[77] = re, t[78] = se) : se = t[78], se;
13542
13542
  };
13543
13543
  function $p(e) {
13544
13544
  return /* @__PURE__ */ (0, $.jsx)(p, {
@@ -13615,7 +13615,7 @@ var om = (e) => {
13615
13615
  onColumnResize: o
13616
13616
  }, s), t[4] = r, t[5] = e, t[6] = s, t[7] = c) : c = t[7], c;
13617
13617
  }, sm = (e) => {
13618
- let t = (0, Yp.c)(93), { data: n, columnFields: a, columnTypes: o, editableColumns: u, onAddEdits: d, columnWidths: f, onColumnResize: p } = e, { theme: m } = ae(), h = (0, W.useRef)(null), g = (0, W.useRef)(null), [_, v] = (0, W.useState)(), [y, x] = (0, W.useState)(!1), C;
13618
+ let t = (0, Yp.c)(93), { data: n, columnFields: a, columnTypes: o, editableColumns: u, onAddEdits: d, columnWidths: f, onColumnResize: p } = e, { theme: m } = ae(), h = (0, W.useRef)(null), g = (0, W.useRef)(null), [_, v] = (0, W.useState)(), [b, S] = (0, W.useState)(!1), C;
13619
13619
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (C = {
13620
13620
  columns: Fe.empty(),
13621
13621
  rows: Fe.empty()
@@ -13707,7 +13707,7 @@ var om = (e) => {
13707
13707
  columns: N,
13708
13708
  editableColumns: u,
13709
13709
  onAddEdits: d
13710
- }) : r.isMetaOrCtrl(e) && e.key === "f" ? (x(cm), e.stopPropagation(), e.preventDefault()) : e.key === "Escape" && x(!1));
13710
+ }) : r.isMetaOrCtrl(e) && e.key === "f" ? (S(cm), e.stopPropagation(), e.preventDefault()) : e.key === "Escape" && S(!1));
13711
13711
  }, t[20] = N, t[21] = n, t[22] = u, t[23] = d, t[24] = E, t[25] = ue) : ue = t[25];
13712
13712
  let de = ue, fe;
13713
13713
  t[26] !== N || t[27] !== n.length || t[28] !== d ? (fe = () => {
@@ -13824,7 +13824,7 @@ var om = (e) => {
13824
13824
  onCancel: () => v(void 0)
13825
13825
  }),
13826
13826
  /* @__PURE__ */ (0, $.jsx)(w, {}),
13827
- !V && ke && /* @__PURE__ */ (0, $.jsxs)(b, {
13827
+ !V && ke && /* @__PURE__ */ (0, $.jsxs)(y, {
13828
13828
  onClick: B,
13829
13829
  className: "text-destructive focus:text-destructive",
13830
13830
  children: [/* @__PURE__ */ (0, $.jsx)(A, { className: "mr-2 h-3.5 w-3.5" }), "Delete column"]
@@ -13833,13 +13833,13 @@ var om = (e) => {
13833
13833
  return /* @__PURE__ */ (0, $.jsx)(T, {
13834
13834
  open: Te,
13835
13835
  onOpenChange: (e) => !e && v(void 0),
13836
- children: /* @__PURE__ */ (0, $.jsxs)(S, {
13836
+ children: /* @__PURE__ */ (0, $.jsxs)(x, {
13837
13837
  style: {
13838
13838
  left: _?.bounds.x ?? 0,
13839
13839
  top: (_?.bounds.y ?? 0) + (_?.bounds.height ?? 0)
13840
13840
  },
13841
13841
  className: "fixed w-52",
13842
- children: [/* @__PURE__ */ (0, $.jsxs)(b, {
13842
+ children: [/* @__PURE__ */ (0, $.jsxs)(y, {
13843
13843
  onClick: _e,
13844
13844
  children: [/* @__PURE__ */ (0, $.jsx)(l, { className: "mr-2 h-3.5 w-3.5" }), "Copy column name"]
13845
13845
  }), !Oe && e]
@@ -13855,7 +13855,7 @@ var om = (e) => {
13855
13855
  let Be;
13856
13856
  t[65] === m ? Be = t[66] : (Be = Xp(m), t[65] = m, t[66] = Be);
13857
13857
  let Ve;
13858
- t[67] !== N || t[68] !== n.length || t[69] !== F || t[70] !== L || t[71] !== p || t[72] !== R || t[73] !== de || t[74] !== pe || t[75] !== E || t[76] !== y || t[77] !== Ie || t[78] !== Le || t[79] !== Re || t[80] !== Be || t[81] !== le ? (Ve = /* @__PURE__ */ (0, $.jsx)(ce, { children: /* @__PURE__ */ (0, $.jsx)(uc, {
13858
+ t[67] !== N || t[68] !== n.length || t[69] !== F || t[70] !== L || t[71] !== p || t[72] !== R || t[73] !== de || t[74] !== pe || t[75] !== E || t[76] !== b || t[77] !== Ie || t[78] !== Le || t[79] !== Re || t[80] !== Be || t[81] !== le ? (Ve = /* @__PURE__ */ (0, $.jsx)(ce, { children: /* @__PURE__ */ (0, $.jsx)(uc, {
13859
13859
  ref: h,
13860
13860
  portalElementRef: g,
13861
13861
  getCellContent: F,
@@ -13870,7 +13870,7 @@ var om = (e) => {
13870
13870
  validateCell: le,
13871
13871
  getCellsForSelection: !0,
13872
13872
  onPaste: !0,
13873
- showSearch: y,
13873
+ showSearch: b,
13874
13874
  fillHandle: !0,
13875
13875
  allowedFillDirections: "vertical",
13876
13876
  onKeyDown: de,
@@ -13886,7 +13886,7 @@ var om = (e) => {
13886
13886
  onRowAppended: pe,
13887
13887
  maxColumnAutoWidth: 600,
13888
13888
  maxColumnWidth: 600
13889
- }) }), t[67] = N, t[68] = n.length, t[69] = F, t[70] = L, t[71] = p, t[72] = R, t[73] = de, t[74] = pe, t[75] = E, t[76] = y, t[77] = Ie, t[78] = Le, t[79] = Re, t[80] = Be, t[81] = le, t[82] = Ve) : Ve = t[82];
13889
+ }) }), t[67] = N, t[68] = n.length, t[69] = F, t[70] = L, t[71] = p, t[72] = R, t[73] = de, t[74] = pe, t[75] = E, t[76] = b, t[77] = Ie, t[78] = Le, t[79] = Re, t[80] = Be, t[81] = le, t[82] = Ve) : Ve = t[82];
13890
13890
  let He;
13891
13891
  t[83] === je ? He = t[84] : (He = je(), t[83] = je, t[84] = He);
13892
13892
  let Ue = E.rows.length === 0, We = E.rows.length <= 1 ? "Delete row" : "Delete rows", Ge;
@@ -1,6 +1,6 @@
1
1
  import { h as e } from "./tooltip-DSWC_Td_.js";
2
2
  import { Ct as t } from "./use-restore-focus-ocw7t85i.js";
3
- import { r as n } from "./code-visibility-BtvMUvQ6.js";
3
+ import { r as n } from "./code-visibility-CHvnQsso.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",