@marimo-team/islands 0.25.3-dev265 → 0.25.3-dev267

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 (106) hide show
  1. package/dist/{ConnectedDataExplorerComponent-C_hj7Poi.js → ConnectedDataExplorerComponent-C4yCN38h.js} +1 -1
  2. package/dist/{ErrorBoundary-DzYPyiOs.js → ErrorBoundary-CewXPyL5.js} +64 -69
  3. package/dist/{abnfDiagram-VCTEODGH-DzrZZXRD.js → abnfDiagram-VCTEODGH-o6Ay6Q63.js} +2 -2
  4. package/dist/{any-language-editor-CFeWfC3o.js → any-language-editor-DnG26QXh.js} +1 -1
  5. package/dist/{architectureDiagram-5GKGNRK7-iF_snyFL.js → architectureDiagram-5GKGNRK7-BhiwwlVg.js} +1 -1
  6. package/dist/{chat-ui-DFxNgzXF.js → chat-ui-CbgR5ivy.js} +1964 -1740
  7. package/dist/{chunk-IMKFNOWR-B7xytD4B.js → chunk-IMKFNOWR-WMSMf4Nj.js} +1 -1
  8. package/dist/{chunk-SHT3W25Y-I8ZFP5L1.js → chunk-SHT3W25Y-BRfADrzD.js} +1 -1
  9. package/dist/{chunk-SVP7TREG-Di-uAPdT.js → chunk-SVP7TREG-CuK5QFre.js} +1 -1
  10. package/dist/{chunk-TICWLB2K-BFpUy0ud.js → chunk-TICWLB2K-Bcun_jhJ.js} +1 -1
  11. package/dist/{classDiagram-ZZMXUADV-Cqm4JGpx.js → classDiagram-ZZMXUADV-CgWDbUDT.js} +2 -2
  12. package/dist/{classDiagram-v2-VYDZK3BY-DFHRJpN3.js → classDiagram-v2-VYDZK3BY-DYmc9SFU.js} +2 -2
  13. package/dist/{code-visibility-CJExrSFe.js → code-visibility-BKBl9Rh6.js} +9 -9
  14. package/dist/{common-5mM7a8cm.js → common-N3Jd_6m9.js} +5944 -5626
  15. package/dist/{cynefinDiagram-5FMLGOSQ-cuGOeTBC.js → cynefinDiagram-5FMLGOSQ-PPKWipjT.js} +1 -1
  16. package/dist/{dagre-GXQ25YYZ-DJ76aC4k.js → dagre-GXQ25YYZ-niRBZh--.js} +1 -1
  17. package/dist/{data-grid-overlay-editor--Un2Lk6m.js → data-grid-overlay-editor-Cp59CrqZ.js} +1 -1
  18. package/dist/{diagram-S7CK7UJ4-DLLc0sw7.js → diagram-S7CK7UJ4-DPiP9rot.js} +1 -1
  19. package/dist/{diagram-UQ7AKVKN-Tz_d6qmk.js → diagram-UQ7AKVKN-B0WZuaxV.js} +1 -1
  20. package/dist/{diagram-VX7I27RA-D7SzPrDN.js → diagram-VX7I27RA-Rn42WBuN.js} +1 -1
  21. package/dist/{diagram-Z3DM3KII-qr37XV58.js → diagram-Z3DM3KII-BB93--ry.js} +1 -1
  22. package/dist/{dropdown-menu-CkJ7ErY6.js → dropdown-menu-BpImEfn3.js} +1211 -1205
  23. package/dist/{ebnfDiagram-PWID7BFC-BKOQb4J0.js → ebnfDiagram-PWID7BFC-V4t5h6mZ.js} +2 -2
  24. package/dist/{erDiagram-RLTQ6QDP-CM15Vq68.js → erDiagram-RLTQ6QDP-C1MsAKXd.js} +1 -1
  25. package/dist/{error-banner-DbRFOd2O.js → error-banner-DPc9eIw5.js} +3 -3
  26. package/dist/{error-entries-CMoaUX9V.js → error-entries-CJGdD2ky.js} +49 -42
  27. package/dist/{feedback-button-C2NUXbzh.js → feedback-button-Qc1f9iPq.js} +70 -70
  28. package/dist/{flowDiagram-HODETNUW-Dt3N5yFT.js → flowDiagram-HODETNUW-DHjeJP96.js} +2 -2
  29. package/dist/{glide-data-editor-Dj9U-NK9.js → glide-data-editor-hCq3K0sd.js} +2042 -2041
  30. package/dist/{glide-utils-Ba9WD2IN.js → glide-utils-DC3sk6EX.js} +28 -34
  31. package/dist/{globals-CkbsxIrq.js → globals-B2_uMYDY.js} +1 -1
  32. package/dist/{html-to-image-D_5CMreP.js → html-to-image-S7spRQCi.js} +5526 -5828
  33. package/dist/{infoDiagram-27XIBGKW-C7axJMCl.js → infoDiagram-27XIBGKW-Dovv6iKx.js} +1 -1
  34. package/dist/{ishikawaDiagram-5VMMS53U-CdC9Eur7.js → ishikawaDiagram-5VMMS53U-D2nyygsc.js} +1 -1
  35. package/dist/{kanban-definition-UXKFOSKX-BHnMIgD7.js → kanban-definition-UXKFOSKX-KyVx0uTY.js} +1 -1
  36. package/dist/main.js +1288 -1287
  37. package/dist/{mermaid-DFYN_PXd.js → mermaid-B-jKSwGt.js} +33 -33
  38. package/dist/{mindmap-definition-YA3MSWOX-BagHoCGU.js → mindmap-definition-YA3MSWOX-Bz9tKQFl.js} +1 -1
  39. package/dist/{number-overlay-editor-H8QAAmdr.js → number-overlay-editor-CfNYvbdz.js} +1 -1
  40. package/dist/{pegDiagram-XKGWAZYB-8IIZczip.js → pegDiagram-XKGWAZYB-C_qpq6Tv.js} +2 -2
  41. package/dist/pencil-DcT8AE0h.js +10 -0
  42. package/dist/{pieDiagram-E7YTZNPT-CE6dKBIr.js → pieDiagram-E7YTZNPT-Bp9ucgI4.js} +1 -1
  43. package/dist/{process-output-CGFNVC60.js → process-output-f34bkXTm.js} +2 -2
  44. package/dist/{railroadDiagram-O6MQD6OU-CkexPq3b.js → railroadDiagram-O6MQD6OU-tq-VEH6j.js} +2 -2
  45. package/dist/{requirementDiagram-BXWQKSXE-B0-OkuAe.js → requirementDiagram-BXWQKSXE-DW-vHadb.js} +1 -1
  46. package/dist/{reveal-component-BperrCFw.js → reveal-component-CUxv-kkP.js} +9 -9
  47. package/dist/{sequenceDiagram-WJ2MYXX4-Dxysg8DX.js → sequenceDiagram-WJ2MYXX4-Dv9U9qRP.js} +1 -1
  48. package/dist/{stateDiagram-D77RDMKH-DTEN3-OJ.js → stateDiagram-D77RDMKH-DTmPQ0EB.js} +2 -2
  49. package/dist/{stateDiagram-v2-MP3YSRHH-vktk3Xc5.js → stateDiagram-v2-MP3YSRHH-CkCif0Iw.js} +2 -2
  50. package/dist/style.css +1 -1
  51. package/dist/{swimlanes-42K2YHIH-Cjveh9OM.js → swimlanes-42K2YHIH-21kCq6l8.js} +1 -1
  52. package/dist/{swimlanesDiagram-VR7AAH4N-Bdr7Ev_2.js → swimlanesDiagram-VR7AAH4N-BpRJP6KU.js} +2 -2
  53. package/dist/{timeline-definition-24CTP7MA-KIuDcefn.js → timeline-definition-24CTP7MA-Ckgh4lS4.js} +1 -1
  54. package/dist/{toast-CY1_Qv41.js → toast-DpczUryP.js} +1 -1
  55. package/dist/{vega-component-C-lqjV0q.js → vega-component-CF9kI6C4.js} +1 -1
  56. package/dist/{vennDiagram-4TSXK5OY-DrIOUHfb.js → vennDiagram-4TSXK5OY-CDei2Bt3.js} +1 -1
  57. package/dist/{wardleyDiagram-VM6X3IG4-CJNjf4OH.js → wardleyDiagram-VM6X3IG4-CXavT601.js} +1 -1
  58. package/dist/{xychartDiagram-S5SC5T6Z-DEshFho-.js → xychartDiagram-S5SC5T6Z-CvJhcZri.js} +1 -1
  59. package/package.json +1 -1
  60. package/src/components/chat/__tests__/chat-display.test.tsx +157 -86
  61. package/src/components/chat/__tests__/chat-utils.test.ts +42 -0
  62. package/src/components/chat/__tests__/turn-timing.test.ts +84 -0
  63. package/src/components/chat/__tests__/use-assistant-turn.test.ts +95 -0
  64. package/src/components/chat/__tests__/user-message.test.tsx +27 -0
  65. package/src/components/chat/acp/agent-panel.tsx +2 -0
  66. package/src/components/chat/agent-activity.tsx +132 -0
  67. package/src/components/chat/chat-display.tsx +125 -96
  68. package/src/components/chat/chat-panel.tsx +123 -106
  69. package/src/components/chat/chat-utils.ts +12 -24
  70. package/src/components/chat/tool-call/__tests__/tool-labels.test.ts +76 -0
  71. package/src/components/chat/tool-call/__tests__/tool-step.test.tsx +57 -0
  72. package/src/components/chat/tool-call/shared.ts +6 -0
  73. package/src/components/chat/tool-call/tool-call-view.tsx +22 -76
  74. package/src/components/chat/tool-call/tool-labels.ts +172 -0
  75. package/src/components/chat/tool-call/tool-step.tsx +145 -0
  76. package/src/components/chat/turn-timing.ts +73 -0
  77. package/src/components/chat/use-assistant-turn.ts +65 -0
  78. package/src/components/chat/use-chat-generation.ts +5 -4
  79. package/src/components/chat/user-message.tsx +145 -0
  80. package/src/components/editor/actions/__tests__/useCellActionButton.test.tsx +18 -1
  81. package/src/components/editor/actions/useCellActionButton.tsx +3 -0
  82. package/src/components/editor/ai/completion-handlers.tsx +0 -37
  83. package/src/components/editor/cell/StagedAICell.tsx +51 -144
  84. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +193 -32
  85. package/src/components/editor/chrome/wrapper/app-chrome.tsx +2 -2
  86. package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +145 -81
  87. package/src/components/editor/chrome/wrapper/pending-ai-changes-badge.tsx +25 -0
  88. package/src/components/editor/chrome/wrapper/sidebar.tsx +6 -0
  89. package/src/components/editor/links/cell-link.tsx +4 -4
  90. package/src/components/editor/notebook-cell.tsx +3 -11
  91. package/src/components/ui/toast.tsx +1 -1
  92. package/src/core/ai/__tests__/staged-cells.test.ts +74 -126
  93. package/src/core/ai/staged-cells.ts +48 -38
  94. package/src/core/cells/scrollCellIntoView.ts +6 -0
  95. package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +59 -0
  96. package/src/core/codemirror/placeholder/extensions.ts +23 -0
  97. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +34 -0
  98. package/src/core/session/useNotebookSession.tsx +7 -2
  99. package/src/css/app/Cell.css +7 -36
  100. package/src/plugins/impl/chat/chat-ui.tsx +2 -3
  101. package/src/plugins/impl/common/error-banner.tsx +5 -3
  102. package/src/components/chat/reasoning-accordion.tsx +0 -61
  103. package/src/components/chat/tool-call/tool-activity-group.tsx +0 -49
  104. package/src/components/chat/tool-call/tool-error-card.tsx +0 -81
  105. package/src/components/chat/tool-call/tool-history-row.tsx +0 -147
  106. package/src/components/icons/loading-ellipsis.tsx +0 -46
@@ -3,13 +3,7 @@ import { g as t } from "./button-0-RqY1DW.js";
3
3
  import { h as n } from "./tooltip-BfcDQd2j.js";
4
4
  import { i as r } from "./strings-BCKpLFNU.js";
5
5
  import { i, r as a } from "./data-grid-types-0PJ-9N5n.js";
6
- var o = n("pencil", [["path", {
7
- d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
8
- key: "1a8usu"
9
- }], ["path", {
10
- d: "m15 5 4 4",
11
- key: "1mk7zo"
12
- }]]), s = n("trash", [
6
+ var o = n("trash", [
13
7
  ["path", {
14
8
  d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",
15
9
  key: "miytrc"
@@ -22,13 +16,13 @@ var o = n("pencil", [["path", {
22
16
  d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
23
17
  key: "e791ji"
24
18
  }]
25
- ]), c = /* @__PURE__ */ new Set([
19
+ ]), s = /* @__PURE__ */ new Set([
26
20
  "true",
27
21
  "t",
28
22
  "yes",
29
23
  "y",
30
24
  "1"
31
- ]), l = /* @__PURE__ */ new Set([
25
+ ]), c = /* @__PURE__ */ new Set([
32
26
  "false",
33
27
  "f",
34
28
  "no",
@@ -36,37 +30,37 @@ var o = n("pencil", [["path", {
36
30
  "0",
37
31
  ""
38
32
  ]);
39
- function u(e, t) {
33
+ function l(e, t) {
40
34
  if (typeof e == "boolean") return e;
41
35
  if (typeof e == "bigint" || typeof e == "number" && Number.isFinite(e)) return !!e;
42
36
  if (typeof e == "string") {
43
37
  let t = e.trim().toLowerCase();
44
- if (c.has(t)) return !0;
45
- if (l.has(t)) return !1;
38
+ if (s.has(t)) return !0;
39
+ if (c.has(t)) return !1;
46
40
  }
47
41
  throw Error(`Invalid boolean value for column '${t}': ${String(e)}`);
48
42
  }
49
- function d(e, t) {
43
+ function u(e, t) {
50
44
  return e.map((e) => {
51
45
  let n = { ...e };
52
46
  for (let [e, r] of t) {
53
47
  if (!(e in n)) continue;
54
48
  let t = n[e];
55
- r === "boolean" ? n[e] = u(t, e) : (typeof t == "number" || typeof t == "bigint") && (n[e] = String(t));
49
+ r === "boolean" ? n[e] = l(t, e) : (typeof t == "number" || typeof t == "bigint") && (n[e] = String(t));
56
50
  }
57
51
  return n;
58
52
  });
59
53
  }
60
54
  //#endregion
61
55
  //#region src/plugins/impl/data-editor/types.ts
62
- var f = {
56
+ var d = {
63
57
  Insert: "insert",
64
58
  Remove: "remove",
65
59
  Rename: "rename"
66
- }, p = /* @__PURE__ */ e(((e, t) => {
60
+ }, f = /* @__PURE__ */ e(((e, t) => {
67
61
  t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
68
- })), m = /* @__PURE__ */ e(((e, t) => {
69
- var n = p();
62
+ })), p = /* @__PURE__ */ e(((e, t) => {
63
+ var n = f();
70
64
  function r() {}
71
65
  function i() {}
72
66
  i.resetWarningCache = r, t.exports = function() {
@@ -105,12 +99,12 @@ var f = {
105
99
  };
106
100
  return a.PropTypes = a, a;
107
101
  };
108
- })), h = /* @__PURE__ */ e(((e, t) => {
109
- t.exports = m()();
102
+ })), m = /* @__PURE__ */ e(((e, t) => {
103
+ t.exports = p()();
110
104
  }));
111
105
  //#endregion
112
106
  //#region src/plugins/impl/data-editor/glide-utils.ts
113
- function g(e) {
107
+ function h(e) {
114
108
  switch (e) {
115
109
  case "string": return a.Text;
116
110
  case "number": return a.Number;
@@ -124,7 +118,7 @@ function g(e) {
124
118
  default: return r(e), a.Text;
125
119
  }
126
120
  }
127
- function _(e) {
121
+ function g(e) {
128
122
  switch (e) {
129
123
  case "string": return i.HeaderString;
130
124
  case "number":
@@ -138,7 +132,7 @@ function _(e) {
138
132
  default: return r(e), i.HeaderString;
139
133
  }
140
134
  }
141
- function v(e, t, n) {
135
+ function _(e, t, n) {
142
136
  if (Array.isArray(n)) return typeof t == "string" && n.includes(t);
143
137
  switch (e) {
144
138
  case "number": return Number.isFinite(Number(t));
@@ -161,19 +155,19 @@ function v(e, t, n) {
161
155
  default: return r(e), !1;
162
156
  }
163
157
  }
164
- function y(e) {
158
+ function v(e) {
165
159
  return "rowIdx" in e && "columnId" in e && "value" in e;
166
160
  }
167
- function b(e) {
161
+ function y(e) {
168
162
  return "rowIdx" in e && "type" in e;
169
163
  }
170
- function x(e) {
164
+ function b(e) {
171
165
  return "columnIdx" in e && "type" in e;
172
166
  }
173
- function S(e) {
167
+ function x(e) {
174
168
  let { selection: n, data: i, onAddEdits: a, columns: o, editableColumns: s } = e;
175
169
  if (!n.current) return;
176
- let { range: c } = n.current, { x: l, y: d } = c;
170
+ let { range: c } = n.current, { x: u, y: d } = c;
177
171
  navigator.clipboard.readText().then((e) => {
178
172
  if (!e.trim()) return;
179
173
  let t = e.split("\n").filter((e) => e.trim()), n = [];
@@ -189,22 +183,22 @@ function S(e) {
189
183
  if (n >= i.length) break;
190
184
  for (let [e, i] of t.entries()) {
191
185
  if (i === void 0) continue;
192
- let t = l + e;
186
+ let t = u + e;
193
187
  if (t >= o.length) break;
194
188
  let a = o[t], s = a.dataType, d = a.configuredType;
195
189
  if (!(f === null || f.has(a.title))) continue;
196
190
  let p = i;
197
- if (Array.isArray(d) && !v(s, i, d)) continue;
191
+ if (Array.isArray(d) && !_(s, i, d)) continue;
198
192
  switch (s) {
199
193
  case "integer": {
200
194
  let e = Number(i);
201
- if (!v(s, i, d)) continue;
195
+ if (!_(s, i, d)) continue;
202
196
  p = Number.isSafeInteger(e) ? e : i.trim();
203
197
  break;
204
198
  }
205
199
  case "number": {
206
200
  let e = Number(i);
207
- if (!v(s, e, d)) continue;
201
+ if (!_(s, e, d)) continue;
208
202
  p = e;
209
203
  break;
210
204
  }
@@ -214,7 +208,7 @@ function S(e) {
214
208
  break;
215
209
  }
216
210
  try {
217
- p = u(i, a.title);
211
+ p = l(i, a.title);
218
212
  } catch {
219
213
  continue;
220
214
  }
@@ -243,4 +237,4 @@ function S(e) {
243
237
  });
244
238
  }
245
239
  //#endregion
246
- export { b as a, h as c, d, s as f, y as i, f as l, g as n, v as o, o as p, x as r, S as s, _ as t, u };
240
+ export { y as a, m as c, u as d, o as f, v as i, d as l, h as n, _ as o, b as r, x as s, g as t, l as u };
@@ -1,6 +1,6 @@
1
1
  import { h as e } from "./tooltip-BfcDQd2j.js";
2
2
  import { l as t } from "./utils-DXkj82sK.js";
3
- import { r as n } from "./code-visibility-CJExrSFe.js";
3
+ import { r as n } from "./code-visibility-BKBl9Rh6.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",