@marimo-team/islands 0.26.1-dev108 → 0.26.1-dev118

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 (65) hide show
  1. package/dist/{ErrorBoundary-BW4TciqU.js → ErrorBoundary-Gr2Kt5kj.js} +1 -1
  2. package/dist/{chat-ui-Be9X-W22.js → chat-ui-CMKYvKUz.js} +3 -3
  3. package/dist/{code-visibility-BKmktPMd.js → code-visibility-BFFe0rT7.js} +2 -2
  4. package/dist/{common-CSJAjJGa.js → common-7eNIhSN-.js} +4766 -4747
  5. package/dist/{data-grid-overlay-editor-DTibdR4H.js → data-grid-overlay-editor-B37-1-8n.js} +1 -1
  6. package/dist/{error-entries-23Z_1oDM.js → error-entries-B4LgfizR.js} +772 -751
  7. package/dist/{feedback-button-CPu5SV3b.js → feedback-button-CpQcgVuz.js} +3 -3
  8. package/dist/{formats-Y52bg800.js → formats-CeuXJ_1f.js} +32 -25
  9. package/dist/{glide-data-editor-CC9_NDNi.js → glide-data-editor-BxTlDHV5.js} +3 -3
  10. package/dist/{globals-BFlYTNoR.js → globals-ljOLdTJr.js} +1 -1
  11. package/dist/{html-to-image-Cw7o1IbE.js → html-to-image-CIkwg7mv.js} +1 -1
  12. package/dist/main.js +69 -66
  13. package/dist/{number-overlay-editor-qDcRKPE0.js → number-overlay-editor-DGKTstav.js} +1 -1
  14. package/dist/{process-output-DdBM0lmd.js → process-output-PS9YSLNu.js} +2 -2
  15. package/dist/{reveal-component-BE1xhtNc.js → reveal-component-BLJMkx2N.js} +2 -2
  16. package/dist/{useDeepCompareMemoize-Dn-ZJVTd.js → semaphore-8KhQouXt.js} +5 -15
  17. package/dist/style.css +1 -1
  18. package/dist/{vega-component-BIq0qzhQ.js → vega-component-CoJiBCaS.js} +11 -11
  19. package/package.json +1 -1
  20. package/src/__mocks__/executions.ts +1 -1
  21. package/src/__mocks__/intersection-observer.ts +5 -5
  22. package/src/components/editor/Output.tsx +3 -21
  23. package/src/components/editor/__tests__/cell-renders.test.tsx +327 -1
  24. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +27 -0
  25. package/src/components/editor/actions/pair-with-agent-modal.tsx +8 -1
  26. package/src/components/editor/ai/__tests__/completion-utils.test.ts +12 -20
  27. package/src/components/editor/ai/ai-completion-editor.tsx +391 -289
  28. package/src/components/editor/ai/completion-utils.ts +9 -7
  29. package/src/components/editor/cell/CellDeleteShoulder.tsx +82 -0
  30. package/src/components/editor/cell/DeleteButton.tsx +11 -2
  31. package/src/components/editor/cell/__tests__/CellDeleteShoulder.test.tsx +181 -0
  32. package/src/components/editor/cell/code/cell-editor.tsx +15 -25
  33. package/src/components/editor/chrome/panels/__tests__/logs-panel.test.tsx +26 -2
  34. package/src/components/editor/chrome/panels/logs-panel.tsx +27 -11
  35. package/src/components/editor/notebook-cell.tsx +20 -40
  36. package/src/components/editor/output/VegaOutput.tsx +35 -0
  37. package/src/components/find-replace/find-replace.tsx +1 -7
  38. package/src/core/ai/state.ts +6 -0
  39. package/src/core/cells/__tests__/cell-errors.test.tsx +179 -0
  40. package/src/core/cells/__tests__/cells.test.ts +34 -20
  41. package/src/core/cells/cell-log-chunks.ts +31 -0
  42. package/src/core/cells/cells.ts +34 -33
  43. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +18 -15
  44. package/src/core/codemirror/find-replace/__tests__/search-highlight.test.ts +90 -2
  45. package/src/core/codemirror/find-replace/__tests__/unmounted-cells.test.ts +44 -10
  46. package/src/core/codemirror/find-replace/navigate.ts +4 -1
  47. package/src/core/codemirror/find-replace/search-highlight.ts +54 -58
  48. package/src/core/codemirror/lsp/__tests__/log-messages.test.ts +1 -1
  49. package/src/core/codemirror/lsp/__tests__/transports.test.ts +1 -1
  50. package/src/core/executions/__tests__/atoms.test.ts +0 -2
  51. package/src/core/executions/__tests__/output-lifecycle.test.ts +16 -0
  52. package/src/core/executions/atoms.ts +33 -36
  53. package/src/core/export/__tests__/output-snapshot.test.tsx +240 -0
  54. package/src/core/export/__tests__/output-subscription.test.tsx +79 -0
  55. package/src/core/export/hooks.ts +29 -13
  56. package/src/core/islands/__tests__/bridge.test.ts +2 -5
  57. package/src/core/notebook/replica/frame.ts +8 -2
  58. package/src/core/notebook/replica/index.ts +5 -1
  59. package/src/core/notebook/replica/once-per-frame.ts +4 -3
  60. package/src/core/notebook/replica/resources/executions.ts +16 -1
  61. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +10 -1
  62. package/src/css/common.css +11 -0
  63. package/src/hooks/useFinePointer.ts +30 -0
  64. package/src/stories/log-viewer.stories.tsx +48 -44
  65. package/src/utils/shared-intersection-observer.ts +2 -1
@@ -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-zP4__HPI.js";
6
- import { A as o, L as s, Y as c, i as l, j as u, n as d, sn as f, tn as p, z as m } from "./error-entries-23Z_1oDM.js";
7
- import { n as h, t as ee } from "./globals-BFlYTNoR.js";
6
+ import { A as o, L as s, Y as c, i as l, j as u, n as d, sn as f, tn as p, z as m } from "./error-entries-B4LgfizR.js";
7
+ import { n as h, t as ee } from "./globals-ljOLdTJr.js";
8
8
  import { r as g } from "./assertNever-B9_7z-dW.js";
9
9
  import { t as _ } from "./jsx-runtime-D8btoEHk.js";
10
10
  import { Wt as te, h as v, wt as ne } from "./use-restore-focus-CCfk-ey2.js";
11
11
  import { a as re, i as ie, n as ae, r as oe } from "./dialog-DfKgafXJ.js";
12
12
  import { t as se } from "./useAsyncData-P5-Oovhq.js";
13
- import { t as ce } from "./code-visibility-BKmktPMd.js";
13
+ import { t as ce } from "./code-visibility-BFFe0rT7.js";
14
14
  //#region src/components/ui/skeleton.tsx
15
15
  var y = /* @__PURE__ */ e(r(), 1), b = i(), x = _(), S = (e) => {
16
16
  let n = (0, b.c)(8), r, i;
@@ -3,20 +3,21 @@ import { h as t, i 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 "./jsx-runtime-D8btoEHk.js";
6
- import { t as o } from "./toDate-BZg-byuO.js";
7
- import { a as s } from "./loader-C9-qRO3m.js";
6
+ import { Vt as o } from "./use-restore-focus-CCfk-ey2.js";
7
+ import { t as s } from "./toDate-BZg-byuO.js";
8
+ import { a as c } from "./loader-C9-qRO3m.js";
8
9
  //#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
9
- function c(e) {
10
+ function l(e) {
10
11
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
11
12
  }
12
13
  //#endregion
13
14
  //#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
14
- function l(e) {
15
- return !(!c(e) && typeof e != "number" || isNaN(+o(e)));
15
+ function u(e) {
16
+ return !(!l(e) && typeof e != "number" || isNaN(+s(e)));
16
17
  }
17
18
  //#endregion
18
19
  //#region src/components/ui/alert.tsx
19
- var u = i(), d = /* @__PURE__ */ e(r(), 1), f = a(), p = n("relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] has-[svg]:pl-11", {
20
+ var d = i(), f = /* @__PURE__ */ e(r(), 1), p = a(), m = n("relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] has-[svg]:pl-11", {
20
21
  variants: { variant: {
21
22
  default: "bg-background text-foreground",
22
23
  destructive: "text-destructive border-destructive/50 dark:border-destructive [&>svg]:text-destructive text-destructive",
@@ -24,58 +25,64 @@ var u = i(), d = /* @__PURE__ */ e(r(), 1), f = a(), p = n("relative w-full roun
24
25
  warning: "bg-(--yellow-2) border-(--yellow-7) text-(--yellow-11) [&>svg]:text-(--yellow-11)"
25
26
  } },
26
27
  defaultVariants: { variant: "default" }
27
- }), m = d.forwardRef((e, n) => {
28
- let r = (0, u.c)(11), i, a, o;
28
+ }), h = f.forwardRef((e, n) => {
29
+ let r = (0, d.c)(11), i, a, o;
29
30
  r[0] === e ? (i = r[1], a = r[2], o = r[3]) : ({className: i, variant: o, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o);
30
31
  let s;
31
- r[4] !== i || r[5] !== o ? (s = t(p({ variant: o }), i), r[4] = i, r[5] = o, r[6] = s) : s = r[6];
32
+ r[4] !== i || r[5] !== o ? (s = t(m({ variant: o }), i), r[4] = i, r[5] = o, r[6] = s) : s = r[6];
32
33
  let c;
33
- return r[7] !== a || r[8] !== n || r[9] !== s ? (c = /* @__PURE__ */ (0, f.jsx)("div", {
34
+ return r[7] !== a || r[8] !== n || r[9] !== s ? (c = /* @__PURE__ */ (0, p.jsx)("div", {
34
35
  ref: n,
35
36
  role: "alert",
36
37
  className: s,
37
38
  ...a
38
39
  }), r[7] = a, r[8] = n, r[9] = s, r[10] = c) : c = r[10], c;
39
40
  });
40
- m.displayName = "Alert";
41
- var h = d.forwardRef((e, n) => {
42
- let r = (0, u.c)(11), i, a, o;
41
+ h.displayName = "Alert";
42
+ var g = f.forwardRef((e, n) => {
43
+ let r = (0, d.c)(11), i, a, o;
43
44
  r[0] === e ? (i = r[1], a = r[2], o = r[3]) : ({className: a, children: i, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o);
44
45
  let s;
45
46
  r[4] === a ? s = r[5] : (s = t("mb-1 font-medium leading-none tracking-tight", a), r[4] = a, r[5] = s);
46
47
  let c;
47
- return r[6] !== i || r[7] !== o || r[8] !== n || r[9] !== s ? (c = /* @__PURE__ */ (0, f.jsx)("h5", {
48
+ return r[6] !== i || r[7] !== o || r[8] !== n || r[9] !== s ? (c = /* @__PURE__ */ (0, p.jsx)("h5", {
48
49
  ref: n,
49
50
  className: s,
50
51
  ...o,
51
52
  children: i
52
53
  }), r[6] = i, r[7] = o, r[8] = n, r[9] = s, r[10] = c) : c = r[10], c;
53
54
  });
54
- h.displayName = "AlertTitle";
55
- var g = d.forwardRef((e, n) => {
56
- let r = (0, u.c)(9), i, a;
55
+ g.displayName = "AlertTitle";
56
+ var _ = f.forwardRef((e, n) => {
57
+ let r = (0, d.c)(9), i, a;
57
58
  r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
58
59
  let o;
59
60
  r[3] === i ? o = r[4] : (o = t("text-sm [&_p]:leading-relaxed", i), r[3] = i, r[4] = o);
60
61
  let s;
61
- return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, f.jsx)("div", {
62
+ return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, p.jsx)("div", {
62
63
  ref: n,
63
64
  className: o,
64
65
  ...a
65
66
  }), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
66
67
  });
67
- g.displayName = "AlertDescription";
68
+ _.displayName = "AlertDescription";
69
+ //#endregion
70
+ //#region src/hooks/useDeepCompareMemoize.ts
71
+ function v(e) {
72
+ let t = f.useRef(e);
73
+ return o(e, t.current) || (t.current = e), t.current;
74
+ }
68
75
  //#endregion
69
76
  //#region src/plugins/impl/vega/formats.ts
70
- function _(e) {
77
+ function y(e) {
71
78
  function t(e) {
72
79
  return !!e?.schema && Array.isArray(e.schema.fields) && typeof e.toArray == "function";
73
80
  }
74
- return (t(e) ? e : v(e)).toArray();
81
+ return (t(e) ? e : b(e)).toArray();
75
82
  }
76
- _.responseType = "arrayBuffer";
77
- function v(e, t) {
78
- return s(e, t ?? { useProxy: !0 });
83
+ y.responseType = "arrayBuffer";
84
+ function b(e, t) {
85
+ return c(e, t ?? { useProxy: !0 });
79
86
  }
80
87
  //#endregion
81
- export { l as a, h as i, m as n, g as r, _ as t };
88
+ export { g as a, _ as i, v as n, u as o, h as r, y as t };
@@ -14,7 +14,7 @@ import { t as F } from "./jsx-runtime-D8btoEHk.js";
14
14
  import { f as ae, r as I } from "./use-restore-focus-CCfk-ey2.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-BW4TciqU.js";
17
+ import { t as ce } from "./ErrorBoundary-Gr2Kt5kj.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) {
@@ -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-DTibdR4H.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-B37-1-8n.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-qDcRKPE0.js")), Zs = {
9287
+ var Xs = W.lazy(async () => await import("./number-overlay-editor-DGKTstav.js")), Zs = {
9288
9288
  getAccessibilityString: (e) => e.data?.toString() ?? "",
9289
9289
  kind: U.Number,
9290
9290
  needsHover: (e) => e.hoverEffect === !0,
@@ -1,6 +1,6 @@
1
1
  import { h as e } from "./tooltip-D-9pDheN.js";
2
2
  import { wt as t } from "./use-restore-focus-CCfk-ey2.js";
3
- import { r as n } from "./code-visibility-BKmktPMd.js";
3
+ import { r as n } from "./code-visibility-BFFe0rT7.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",
@@ -9,7 +9,7 @@ import { a as D, i as ne, o as O, r as k, s as re, t as ie } from "./useLifecycl
9
9
  import { a as ae, c as oe, i as se, n as ce, o as le, r as ue, s as de, t as fe } from "./select-Buk3aXi1.js";
10
10
  import { X as pe, ht as me, p as he } from "./dropdown-menu-Dge_SmqE.js";
11
11
  import { t as ge } from "./circle-question-mark-YmLYXyvS.js";
12
- import { $ as _e, A as ve, At as A, B as j, Bt as ye, D as be, E as xe, Gt as Se, Ht as Ce, I as we, J as Te, Kt as Ee, M as De, Mt as Oe, N as ke, Ot as Ae, R as je, Rt as Me, St as Ne, Ut as Pe, Xt as Fe, Yt as Ie, Zt as Le, _t as Re, a as ze, an as Be, at as Ve, c as He, ct as Ue, d as We, dt as Ge, et as Ke, ft as qe, g as Je, gt as Ye, in as Xe, it as Ze, k as Qe, lt as $e, m as et, o as tt, ot as nt, p as rt, pt as it, q as at, qt as ot, s as st, st as ct, tt as lt, ut, v as dt, y as ft, z as pt } from "./error-entries-23Z_1oDM.js";
12
+ import { $ as _e, A as ve, At as A, B as j, Bt as ye, D as be, E as xe, Gt as Se, Ht as Ce, I as we, J as Te, Kt as Ee, M as De, Mt as Oe, N as ke, Ot as Ae, R as je, Rt as Me, St as Ne, Ut as Pe, Xt as Fe, Yt as Ie, Zt as Le, _t as Re, a as ze, an as Be, at as Ve, c as He, ct as Ue, d as We, dt as Ge, et as Ke, ft as qe, g as Je, gt as Ye, in as Xe, it as Ze, k as Qe, lt as $e, m as et, o as tt, ot as nt, p as rt, pt as it, q as at, qt as ot, s as st, st as ct, tt as lt, ut, v as dt, y as ft, z as pt } from "./error-entries-B4LgfizR.js";
13
13
  import { n as mt } from "./assertNever-B9_7z-dW.js";
14
14
  import { t as ht } from "./react-dom-DdqGVp5N.js";
15
15
  import { t as gt } from "./jsx-runtime-D8btoEHk.js";