@marimo-team/islands 0.25.3-dev4 → 0.25.3-dev6

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 (90) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CNSxdKyJ.js → ConnectedDataExplorerComponent-CNMliVzw.js} +1 -1
  2. package/dist/{ErrorBoundary-CuU5CuVr.js → ErrorBoundary-Ca-Sa492.js} +1 -1
  3. package/dist/{abnfDiagram-VCTEODGH-DQDjNXt3.js → abnfDiagram-VCTEODGH-D-Ez91gV.js} +2 -2
  4. package/dist/{any-language-editor-B9REGlD9.js → any-language-editor-DZ_YTVus.js} +1 -1
  5. package/dist/{architectureDiagram-5GKGNRK7-Nmls7Wxn.js → architectureDiagram-5GKGNRK7-CTpcNtO8.js} +1 -1
  6. package/dist/{chat-ui-BDpymeoe.js → chat-ui-0lKdOoQ3.js} +436 -437
  7. package/dist/{chunk-IMKFNOWR-CoIFEo-1.js → chunk-IMKFNOWR-DGxi-zeo.js} +1 -1
  8. package/dist/{chunk-SHT3W25Y-lHiGx3ZC.js → chunk-SHT3W25Y-CV9J3rAB.js} +1 -1
  9. package/dist/{chunk-SVP7TREG-BvsHIrY_.js → chunk-SVP7TREG-BL-9Fqgg.js} +1 -1
  10. package/dist/{chunk-TICWLB2K-BC8YIm_n.js → chunk-TICWLB2K-Cu_XMjDM.js} +1 -1
  11. package/dist/{classDiagram-ZZMXUADV-Bt98lkkv.js → classDiagram-ZZMXUADV-BXXV13Hq.js} +2 -2
  12. package/dist/{classDiagram-v2-VYDZK3BY-D9bfbcC3.js → classDiagram-v2-VYDZK3BY-B7FXJ1Cp.js} +2 -2
  13. package/dist/{code-visibility-Lu0dkrFO.js → code-visibility-NGRjhbtA.js} +14 -14
  14. package/dist/{common-DiWGWDIM.js → common-B7_ZSg0P.js} +6426 -6256
  15. package/dist/{cynefinDiagram-5FMLGOSQ-CgWra7wt.js → cynefinDiagram-5FMLGOSQ-CH96rwba.js} +1 -1
  16. package/dist/{dagre-GXQ25YYZ-CFZ8-35c.js → dagre-GXQ25YYZ-BD3PmpFY.js} +1 -1
  17. package/dist/{data-grid-overlay-editor-ga7ytgbj.js → data-grid-overlay-editor-B_cmrkBm.js} +1 -1
  18. package/dist/{diagram-S7CK7UJ4-lCNQrW7d.js → diagram-S7CK7UJ4-BsSJJldB.js} +1 -1
  19. package/dist/{diagram-UQ7AKVKN-CQPQ6pP_.js → diagram-UQ7AKVKN-muQtNZc4.js} +1 -1
  20. package/dist/{diagram-VX7I27RA-Cf3b0llz.js → diagram-VX7I27RA-CdhuZAqR.js} +1 -1
  21. package/dist/{diagram-Z3DM3KII-Bt4QLrpn.js → diagram-Z3DM3KII-BD8mXjOj.js} +1 -1
  22. package/dist/{ebnfDiagram-PWID7BFC-D3NAyPFY.js → ebnfDiagram-PWID7BFC-BIN1sweE.js} +2 -2
  23. package/dist/{erDiagram-RLTQ6QDP-Tlu09_Nm.js → erDiagram-RLTQ6QDP-Ctp5cfoN.js} +1 -1
  24. package/dist/{error-banner-Da600cwz.js → error-banner-D-WCIiMt.js} +10 -5
  25. package/dist/{cells-C8iCYvLU.js → error-entries-DSvFWT_M.js} +2262 -2206
  26. package/dist/{feedback-button-DQA-pzxi.js → feedback-button-CTF2Nj9s.js} +115 -116
  27. package/dist/{flowDiagram-HODETNUW-CAYbpJmV.js → flowDiagram-HODETNUW-3EfLrlFb.js} +2 -2
  28. package/dist/{formats-BGh2thRc.js → formats-CeOmU1MU.js} +1 -1
  29. package/dist/{glide-data-editor-Bv75MH6g.js → glide-data-editor-BQHF9puC.js} +3 -3
  30. package/dist/{globals-EDQGFIvi.js → globals-Cj8iqMEp.js} +1 -1
  31. package/dist/{html-to-image-CZY1pIZH.js → html-to-image-B8s5SgGm.js} +23 -23
  32. package/dist/{infoDiagram-27XIBGKW-XrDxhr0x.js → infoDiagram-27XIBGKW-DipQoHxl.js} +1 -1
  33. package/dist/{ishikawaDiagram-5VMMS53U-CD1muzov.js → ishikawaDiagram-5VMMS53U-DgFMjSGz.js} +1 -1
  34. package/dist/{kanban-definition-UXKFOSKX-Dg9W142_.js → kanban-definition-UXKFOSKX-w1ACVjgl.js} +1 -1
  35. package/dist/main.js +164 -163
  36. package/dist/{mermaid-CiAXjLpA.js → mermaid-CHo49Yv-.js} +33 -33
  37. package/dist/{mindmap-definition-YA3MSWOX-DgCidgYJ.js → mindmap-definition-YA3MSWOX-CrT0KSfX.js} +1 -1
  38. package/dist/{number-overlay-editor-BCP3MxhC.js → number-overlay-editor-DBcnm0SY.js} +1 -1
  39. package/dist/{pegDiagram-XKGWAZYB-coOYYKB6.js → pegDiagram-XKGWAZYB-BqvywNJA.js} +2 -2
  40. package/dist/{pieDiagram-E7YTZNPT-BnXTc3bj.js → pieDiagram-E7YTZNPT-BfxJ_XCc.js} +1 -1
  41. package/dist/{process-output-e4jj9Ijt.js → process-output-CKRXyszb.js} +3 -3
  42. package/dist/{railroadDiagram-O6MQD6OU-B28-u83n.js → railroadDiagram-O6MQD6OU-8vFLVTPu.js} +2 -2
  43. package/dist/{requirementDiagram-BXWQKSXE-CdYCTMu0.js → requirementDiagram-BXWQKSXE-a_MxGvxe.js} +1 -1
  44. package/dist/{reveal-component-DO5BJB9l.js → reveal-component-DTBSuGkC.js} +4 -4
  45. package/dist/{sequenceDiagram-WJ2MYXX4-CM3aRAe_.js → sequenceDiagram-WJ2MYXX4-CXFMnxGh.js} +1 -1
  46. package/dist/{stateDiagram-D77RDMKH-DOZUMVj8.js → stateDiagram-D77RDMKH-DQeA_CwI.js} +2 -2
  47. package/dist/{stateDiagram-v2-MP3YSRHH-CISYxma6.js → stateDiagram-v2-MP3YSRHH-BxxQucm1.js} +2 -2
  48. package/dist/style.css +1 -1
  49. package/dist/{swimlanes-42K2YHIH-BkSppxp8.js → swimlanes-42K2YHIH-Do6L-cYg.js} +1 -1
  50. package/dist/{swimlanesDiagram-VR7AAH4N-c8G5pGxC.js → swimlanesDiagram-VR7AAH4N-DUzPvSVU.js} +2 -2
  51. package/dist/{timeline-definition-24CTP7MA-CaMQayqK.js → timeline-definition-24CTP7MA-D3c46WM5.js} +1 -1
  52. package/dist/{toDate-BNJf01u1.js → toDate-vIXljnsr.js} +39 -38
  53. package/dist/{vega-component-DG29TAB7.js → vega-component-DTG6zxaY.js} +3 -3
  54. package/dist/{vennDiagram-4TSXK5OY-CF8pfaK3.js → vennDiagram-4TSXK5OY-BSZD8JcZ.js} +1 -1
  55. package/dist/{wardleyDiagram-VM6X3IG4-dGPu39d-.js → wardleyDiagram-VM6X3IG4-48cUWkfA.js} +1 -1
  56. package/dist/{xychartDiagram-S5SC5T6Z-CP6-9q56.js → xychartDiagram-S5SC5T6Z-CswYgYeu.js} +1 -1
  57. package/package.json +1 -1
  58. package/src/__tests__/fixtures/{pair-preview.ts → pair-config.ts} +3 -2
  59. package/src/__tests__/mount.test.ts +8 -8
  60. package/src/components/editor/Output.tsx +9 -2
  61. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +80 -252
  62. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +186 -34
  63. package/src/components/editor/actions/pair-with-agent-commands.ts +42 -51
  64. package/src/components/editor/actions/pair-with-agent-modal.tsx +96 -36
  65. package/src/components/editor/chrome/panels/error-panel.tsx +1 -0
  66. package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +372 -0
  67. package/src/components/editor/chrome/wrapper/footer-item.tsx +32 -24
  68. package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +237 -0
  69. package/src/components/editor/chrome/wrapper/footer.tsx +2 -0
  70. package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +548 -0
  71. package/src/components/editor/errors/send-error-report-button.tsx +69 -0
  72. package/src/components/editor/output/MarimoErrorOutput.tsx +21 -5
  73. package/src/components/editor/output/MarimoTracebackOutput.tsx +35 -20
  74. package/src/components/editor/output/__tests__/ansi-reduce.test.ts +18 -0
  75. package/src/components/editor/output/ansi-reduce.ts +6 -0
  76. package/src/core/attachments/__tests__/toast.test.tsx +58 -0
  77. package/src/core/attachments/state.ts +21 -0
  78. package/src/core/attachments/toast.ts +15 -0
  79. package/src/core/cells/__tests__/cells.test.ts +52 -0
  80. package/src/core/cells/__tests__/error-report.test.ts +139 -0
  81. package/src/core/cells/__tests__/session.test.ts +50 -1
  82. package/src/core/cells/error-report.ts +63 -0
  83. package/src/core/cells/session.ts +28 -1
  84. package/src/core/config/pair.ts +5 -3
  85. package/src/core/islands/__tests__/bootstrap.test.ts +26 -0
  86. package/src/core/islands/bootstrap.ts +1 -0
  87. package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +193 -0
  88. package/src/core/websocket/useMarimoKernelConnection.tsx +9 -0
  89. package/src/mount.tsx +3 -3
  90. package/dist/error-entries-CzoYkIQZ.js +0 -56
@@ -5,10 +5,10 @@ import { t as l } from "./compiler-runtime-CldRdSsv.js";
5
5
  import { n as u, t as d } from "./copy-icon-Ft7t9bqz.js";
6
6
  import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DPZk8vhS.js";
7
7
  import { c as _, h as v, l as y, s as b, t as x, u as ee } from "./tooltip-BO1REbqs.js";
8
- import { A as te, E as ne, G as re, Nt as ie, O as ae, R as oe, St as se, Z as ce, Zt as le, _t as ue, en as de, et as fe, gt as pe, h as me, ht as he, lt as ge, s as _e, t as ve, vt as ye, xt as be, yt as xe, z as Se } from "./cells-C8iCYvLU.js";
8
+ import { $t as te, A as ne, Ct as re, Dt as ie, Et as ae, Ft as oe, H as se, M as ce, P as le, St as ue, U as de, X as fe, a as pe, at as me, bt as he, d as ge, mt as _e, nn as ve, nt as ye, wt as be, xt as xe, y as Se } from "./error-entries-DSvFWT_M.js";
9
9
  import { M as Ce, O as we, k as Te } from "./select-BButFi-d.js";
10
10
  import { dt as Ee, q as De } from "./dropdown-menu-CP_qCYHC.js";
11
- import { p as Oe, v as ke } from "./toDate-BNJf01u1.js";
11
+ import { m as Oe, y as ke } from "./toDate-vIXljnsr.js";
12
12
  import { t as Ae } from "./jsx-runtime-3BD1kT0s.js";
13
13
  import { Ct as je, K as Me, Q as Ne, St as S, X as Pe, Y as Fe, bt as C, ct as Ie, dt as Le, ft as Re, ht as ze, lt as Be, pt as Ve, vt as He, wt as w, xt as Ue, yt as We } from "./use-restore-focus-BEM7sFWl.js";
14
14
  import { A as Ge, C as T, E as Ke, _ as E, c as qe, n as Je } from "./useTheme-CRnjkku0.js";
@@ -1808,15 +1808,15 @@ Bn.displayName = Mn.displayName;
1808
1808
  //#endregion
1809
1809
  //#region src/core/documentation/doc-lookup.ts
1810
1810
  async function Vn(e) {
1811
- let t = _e().inOrderIds.at(0);
1811
+ let t = ge().inOrderIds.at(0);
1812
1812
  if (t) try {
1813
- let n = await ce.request({
1813
+ let n = await ye.request({
1814
1814
  document: e,
1815
1815
  cellId: t
1816
1816
  });
1817
1817
  if (!n || n.options.length === 0) return;
1818
1818
  let r = e.split(".").pop() ?? e, i = n.options[0], a = n.options.find((e) => e.name === r) ?? i;
1819
- a?.completion_info && E.set(fe, { documentation: a.completion_info });
1819
+ a?.completion_info && E.set(me, { documentation: a.completion_info });
1820
1820
  } catch (t) {
1821
1821
  n.debug(`Doc lookup failed for "${e}"`, t);
1822
1822
  }
@@ -2301,7 +2301,7 @@ var Vr = D.forwardRef((e, t) => {
2301
2301
  Vr.displayName = on.displayName;
2302
2302
  //#endregion
2303
2303
  //#region src/utils/multi-map.ts
2304
- var Hr = /* @__PURE__ */ e(pe(), 1), Ur = class {
2304
+ var Hr = /* @__PURE__ */ e(xe(), 1), Ur = class {
2305
2305
  map = /* @__PURE__ */ new Map();
2306
2306
  get(e) {
2307
2307
  return this.map.get(e) ?? [];
@@ -2441,7 +2441,7 @@ var Gr = class {
2441
2441
  return (await Promise.all(i)).flat();
2442
2442
  }
2443
2443
  };
2444
- ie([le()], Kr.prototype, "getAllItems", null);
2444
+ oe([te()], Kr.prototype, "getAllItems", null);
2445
2445
  //#endregion
2446
2446
  //#region src/core/ai/context/utils.ts
2447
2447
  function qr(e) {
@@ -2496,12 +2496,12 @@ var Yr = {
2496
2496
  connectionsMap;
2497
2497
  dataframes;
2498
2498
  constructor(e, t) {
2499
- super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => xe(e) === "dataframe");
2499
+ super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => be(e) === "dataframe");
2500
2500
  }
2501
2501
  getItems() {
2502
2502
  return [...this.connectionsMap.values()].map((e) => {
2503
2503
  let t = "Database schema.", n = { connection: e };
2504
- return be.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 : {
2504
+ return ae.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 : {
2505
2505
  uri: this.asURI(e.name),
2506
2506
  name: e.name,
2507
2507
  description: t,
@@ -2512,7 +2512,7 @@ var Yr = {
2512
2512
  }
2513
2513
  formatContext(e) {
2514
2514
  let t = e.data, { name: n, display_name: r, source: i, ...a } = t.connection, o = a;
2515
- return be.has(n) || (o = {
2515
+ return ae.has(n) || (o = {
2516
2516
  ...a,
2517
2517
  engine_name: n
2518
2518
  }), Jr({
@@ -2525,7 +2525,7 @@ var Yr = {
2525
2525
  }
2526
2526
  formatCompletion(e) {
2527
2527
  let t = e.data, n = t.connection, r = t.tables, i = n.name;
2528
- return be.has(n.name) && (i = "In-Memory"), {
2528
+ return ae.has(n.name) && (i = "In-Memory"), {
2529
2529
  label: `@${i}`,
2530
2530
  displayLabel: i,
2531
2531
  detail: he(n.dialect),
@@ -2534,29 +2534,29 @@ var Yr = {
2534
2534
  section: Xr.DATA_SOURCES,
2535
2535
  info: () => {
2536
2536
  let e = document.createElement("div");
2537
- return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Hr.createRoot)(e).render(ge(n, r)), e;
2537
+ return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Hr.createRoot)(e).render(_e(n, r)), e;
2538
2538
  }
2539
2539
  };
2540
2540
  }
2541
2541
  };
2542
2542
  function $r(e, t) {
2543
- let n = t.get(ve(e))?.code;
2543
+ let n = t.get(pe(e))?.code;
2544
2544
  if (!n || n.trim() === "") return null;
2545
- let [r, i, a] = oe.sql.transformIn(n), o = t.get(ye).connectionsMap.get(a.engine);
2545
+ let [r, i, a] = se.sql.transformIn(n), o = t.get(re).connectionsMap.get(a.engine);
2546
2546
  return o ? `@${Zr}://${o.name}` : null;
2547
2547
  }
2548
2548
  function ei(e, t) {
2549
2549
  let n = $r(e, t);
2550
2550
  if (!n) return null;
2551
- let r = t.get(ye).connectionsMap, i = new Qr(r, t.get(ue)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
2551
+ let r = t.get(re).connectionsMap, i = new Qr(r, t.get(ue)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
2552
2552
  return o ? i.formatContext(o) : null;
2553
2553
  }
2554
2554
  //#endregion
2555
2555
  //#region src/core/cells/outputs.ts
2556
2556
  var ti = {}, ni = {};
2557
2557
  function ri(e) {
2558
- let t = (0, O.c)(16), { mode: n } = T(ke), { updateCellConfig: r } = me(), i;
2559
- t[0] === e ? i = t[1] : (i = de(ve(e), ai, Object.is), t[0] = e, t[1] = i);
2558
+ let t = (0, O.c)(16), { mode: n } = T(ke), { updateCellConfig: r } = Se(), i;
2559
+ t[0] === e ? i = t[1] : (i = ve(pe(e), ai, Object.is), t[0] = e, t[1] = i);
2560
2560
  let a = T(i), o;
2561
2561
  t[2] !== e || t[3] !== a ? (o = () => ti[e] ?? a, t[2] = e, t[3] = a, t[4] = o) : o = t[4];
2562
2562
  let [s, c] = (0, D.useState)(o), l, u;
@@ -2570,7 +2570,7 @@ function ri(e) {
2570
2570
  r({
2571
2571
  cellId: e,
2572
2572
  config: n
2573
- }), se().saveCellConfig({ configs: { [e]: n } }).catch(ii);
2573
+ }), ie().saveCellConfig({ configs: { [e]: n } }).catch(ii);
2574
2574
  }, t[9] = e, t[10] = d, t[11] = r, t[12] = p) : p = t[12];
2575
2575
  let m = Ge(p), h;
2576
2576
  return t[13] !== f || t[14] !== m ? (h = [f, m], t[13] = f, t[14] = m, t[15] = h) : h = t[15], h;
@@ -2594,17 +2594,17 @@ function si(e) {
2594
2594
  }
2595
2595
  //#endregion
2596
2596
  //#region src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx
2597
- var ci = (0, D.lazy)(() => import("./any-language-editor-B9REGlD9.js")), li = [Ye.lineWrapping];
2597
+ var ci = (0, D.lazy)(() => import("./any-language-editor-DZ_YTVus.js")), li = [Ye.lineWrapping];
2598
2598
  function ui(e, t) {
2599
2599
  return e ? e === "python" ? {
2600
2600
  language: e,
2601
2601
  code: t
2602
2602
  } : e === "sql" ? {
2603
2603
  language: "python",
2604
- code: Se.fromQuery(t)
2604
+ code: de.fromQuery(t)
2605
2605
  } : e === "markdown" ? {
2606
2606
  language: "python",
2607
- code: re.fromMarkdown(t)
2607
+ code: fe.fromMarkdown(t)
2608
2608
  } : e === "shell" || e === "bash" ? {
2609
2609
  language: "python",
2610
2610
  code: `import subprocess\nsubprocess.run("${t}")`
@@ -2617,10 +2617,10 @@ function ui(e, t) {
2617
2617
  };
2618
2618
  }
2619
2619
  var di = (e) => {
2620
- let t = (0, O.c)(9), { code: n, language: r } = e, { createNewCell: i } = me(), a = ae(), s = T(qe), c;
2620
+ let t = (0, O.c)(9), { code: n, language: r } = e, { createNewCell: i } = Se(), a = ce(), s = T(qe), c;
2621
2621
  t[0] !== s || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (c = () => {
2622
2622
  let e = ui(r, n);
2623
- r === "sql" && te({
2623
+ r === "sql" && le({
2624
2624
  autoInstantiate: s,
2625
2625
  createNewCell: i,
2626
2626
  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-CiAXjLpA.js";
4
+ import { p as r } from "./mermaid-CHo49Yv-.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-CiAXjLpA.js";
6
+ import { p } from "./mermaid-CHo49Yv-.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-CiAXjLpA.js";
11
+ import { a as f, i as p, p as m } from "./mermaid-CHo49Yv-.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() {