@marimo-team/islands 0.26.1-dev103 → 0.26.1-dev105

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 (29) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BJBdnd0O.js → ConnectedDataExplorerComponent-C6dY5fiI.js} +1 -1
  2. package/dist/{ErrorBoundary-B5MVsi73.js → ErrorBoundary-Bn664FZa.js} +1 -1
  3. package/dist/{chat-ui-BbJTFtyC.js → chat-ui-zGgiq5zN.js} +3 -3
  4. package/dist/{code-visibility-DLPZ_eYq.js → code-visibility-CMgSFUs7.js} +2 -2
  5. package/dist/{common-B2K9WgcL.js → common-DWnR77Qk.js} +5 -5
  6. package/dist/{createReducer-BUQhgLOI.js → createReducer-m7yAXmDu.js} +16 -19
  7. package/dist/{data-grid-overlay-editor-1bQ1lRk0.js → data-grid-overlay-editor-zS1h3iMI.js} +1 -1
  8. package/dist/{error-entries-DhZotdzQ.js → error-entries-DVclFjaE.js} +381 -379
  9. package/dist/{feedback-button-DdJjyfKE.js → feedback-button-BMGqp8Ff.js} +3 -3
  10. package/dist/{glide-data-editor-wPYhuqFs.js → glide-data-editor-Bra6h4KB.js} +3 -3
  11. package/dist/{globals-DyJvKfkF.js → globals-_bXqC0R8.js} +1 -1
  12. package/dist/{html-to-image-B8erjaaD.js → html-to-image-Cst4BlIm.js} +5685 -5678
  13. package/dist/main.js +36 -36
  14. package/dist/{number-overlay-editor-BPSNY0UK.js → number-overlay-editor-XLUhOVa7.js} +1 -1
  15. package/dist/{process-output-C-2_O5Ry.js → process-output-DizFa5IE.js} +2 -2
  16. package/dist/{reveal-component-CX1LQkT7.js → reveal-component-llpC324_.js} +2 -2
  17. package/package.json +1 -1
  18. package/src/components/editor/cell/__tests__/cell-actions.test.tsx +74 -0
  19. package/src/components/editor/cell/cell-action-body.tsx +28 -0
  20. package/src/components/editor/cell/cell-actions.tsx +60 -72
  21. package/src/components/editor/cell/cell-context-menu.tsx +36 -62
  22. package/src/components/editor/navigation/navigation.ts +1 -1
  23. package/src/core/cells/__tests__/use-cell-actions.test.tsx +48 -0
  24. package/src/core/cells/actions.ts +68 -89
  25. package/src/core/cells/cells.ts +2 -0
  26. package/src/core/executions/__tests__/select.test.ts +32 -0
  27. package/src/core/executions/select.ts +18 -1
  28. package/src/utils/__tests__/createReducer.test.tsx +4 -3
  29. package/src/utils/createReducer.ts +19 -12
@@ -13,7 +13,7 @@ import { Kt as ie, Ut as ae, Vt as oe, d as se, qt as ce } from "./use-restore-f
13
13
  import { n as le } from "./error-banner-CXLjTW24.js";
14
14
  import { t as ue } from "./objects-DCmMvZtn.js";
15
15
  import { t as de } from "./invariant-DLmrl-hA.js";
16
- import { t as fe } from "./createReducer-BUQhgLOI.js";
16
+ import { t as fe } from "./createReducer-m7yAXmDu.js";
17
17
  import { t as pe } from "./useAsyncData-P5-Oovhq.js";
18
18
  import { o as me, r as he } from "./loader-CGrYn73j.js";
19
19
  import { W as ge } from "./vega-loader.browser-Co9gYE8Z.js";
@@ -148,7 +148,7 @@ function L(e) {
148
148
  }
149
149
  //#endregion
150
150
  //#region src/components/editor/boundary/ErrorBoundary.tsx
151
- var R = (0, T.lazy)(() => import("./feedback-button-DdJjyfKE.js").then((e) => ({ default: e.FeedbackModal }))), z = (e) => {
151
+ var R = (0, T.lazy)(() => import("./feedback-button-BMGqp8Ff.js").then((e) => ({ default: e.FeedbackModal }))), z = (e) => {
152
152
  let t = (0, w.c)(2), n;
153
153
  return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, N.jsx)(O, {
154
154
  FallbackComponent: B,
@@ -3,13 +3,13 @@ import { g as n, h as r, r as i, t as a } from "./button-Z2R2272J.js";
3
3
  import { t as o } from "./react-Bgs_wQh3.js";
4
4
  import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { i as c, t as l } from "./copy-icon-CmNLxT5_.js";
6
- import { B as u, Ct as d, Dt as f, Ft as p, Lt as m, M as h, Mt as g, Pt as _, R as v, Tt as y, V as b, W as x, X as S, Y as C, Z as w, a as T, ct as E, et as D, f as O, ft as ee, g as k, h as A, it as j, jt as M, l as N, m as te, n as ne, p as P, r as re, t as ie, u as ae, v as oe, vt as se, wt as ce, xt as le, zt as ue } from "./html-to-image-B8erjaaD.js";
6
+ import { B as u, Ct as d, Dt as f, Ft as p, Lt as m, M as h, Mt as g, Pt as _, R as v, Tt as y, V as b, W as x, X as S, Y as C, Z as w, a as T, ct as E, et as D, f as O, ft as ee, g as k, h as A, it as j, jt as M, l as N, m as te, n as ne, p as P, r as re, t as ie, u as ae, v as oe, vt as se, wt as ce, xt as le, zt as ue } from "./html-to-image-Cst4BlIm.js";
7
7
  import { h as F, t as de } from "./tooltip-DyLdBIM4.js";
8
8
  import { d as fe } from "./select-CEnB18uc.js";
9
9
  import { Cn as pe, f as me, g as he, i as ge, n as _e, t as ve, v as ye, xn as be } from "./dropdown-menu-D0DeN-aL.js";
10
10
  import { t as xe } from "./circle-question-mark-evCnVIut.js";
11
- import { F as Se, J as Ce, R as we, Tt as Te, Ut as Ee, h as De, i as Oe, kt as ke, on as Ae, r as je, t as Me, yt as Ne } from "./error-entries-DhZotdzQ.js";
12
- import { c as Pe, d as Fe, l as Ie, n as Le, t as Re, u as ze } from "./process-output-C-2_O5Ry.js";
11
+ import { F as Se, J as Ce, R as we, Tt as Te, Ut as Ee, g as De, i as Oe, kt as ke, on as Ae, r as je, t as Me, yt as Ne } from "./error-entries-DVclFjaE.js";
12
+ import { c as Pe, d as Fe, l as Ie, n as Le, t as Re, u as ze } from "./process-output-DizFa5IE.js";
13
13
  import { t as Be } from "./pencil-CxMgOe04.js";
14
14
  import { n as Ve, r as He, s as Ue } from "./assertNever-5vhHGKOK.js";
15
15
  import { t as We } from "./jsx-runtime-D8btoEHk.js";
@@ -1,5 +1,5 @@
1
1
  import { g as e } from "./button-Z2R2272J.js";
2
- import { Jt as t, j as n, tn as r } from "./error-entries-DhZotdzQ.js";
2
+ import { Jt as t, j as n, tn as r } from "./error-entries-DVclFjaE.js";
3
3
  import { n as i } from "./assertNever-5vhHGKOK.js";
4
4
  import { Kt as a, Ut as o, f as s, h as c, jt as l } from "./use-restore-focus-DJ_-uSn_.js";
5
5
  import { c as u, n as d, o as f, u as p } from "./static-state-iw0PrHK4.js";
@@ -14,7 +14,7 @@ function y() {
14
14
  return e.warn("Failed to get version from mount config"), null;
15
15
  }
16
16
  }
17
- var b = y() || "0.26.1-dev103", x = a(b), S = a(!0);
17
+ var b = y() || "0.26.1-dev105", x = a(b), S = a(!0);
18
18
  a(null);
19
19
  //#endregion
20
20
  //#region src/core/wasm/state.ts
@@ -3,14 +3,14 @@ import { _ as t, f as n, g as r, h as i, i as a, m as o, n as s, p as c, r as l,
3
3
  import { t as d } from "./react-Bgs_wQh3.js";
4
4
  import { t as f } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { i as p, n as m, r as h, t as g } from "./copy-icon-CmNLxT5_.js";
6
- import { A as _, At as v, B as y, Bt as b, C as x, Ct as S, D as C, Ft as w, H as T, Ht as E, It as D, J as O, K as k, M as A, Mt as j, N as M, Ot as N, P, Pt as F, R as I, S as ee, St as L, Tt as R, U as z, Ut as B, V as te, Vt as V, W as ne, _t as re, d as ie, gt as ae, k as oe, mt as se, n as ce, nt as le, pt as ue, q as de, r as fe, s as pe, t as me, w as he, x as ge, y as _e, z as ve, zt as ye } from "./html-to-image-B8erjaaD.js";
6
+ import { A as _, At as v, B as y, Bt as b, C as x, Ct as S, D as C, Ft as w, H as T, Ht as E, It as D, J as O, K as k, M as A, Mt as j, N as M, Ot as N, P, Pt as F, R as I, S as ee, St as L, Tt as R, U as z, Ut as B, V as te, Vt as V, W as ne, _t as re, d as ie, gt as ae, k as oe, mt as se, n as ce, nt as le, pt as ue, q as de, r as fe, s as pe, t as me, w as he, x as ge, y as _e, z as ve, zt as ye } from "./html-to-image-Cst4BlIm.js";
7
7
  import { a as be, f as xe, h as H, n as Se, o as Ce, r as we, t as U } from "./tooltip-DyLdBIM4.js";
8
8
  import { r as Te, s as Ee } from "./useLifecycle-tPpAt-OE.js";
9
9
  import { a as De, i as Oe, n as ke, o as Ae, r as je, t as Me } from "./useDateFormatter-HpKD0jEC.js";
10
10
  import { t as Ne } from "./check-DUIc04aK.js";
11
11
  import { A as Pe, C as Fe, M as Ie, S as Le, T as Re, _ as ze, b as Be, c as Ve, d as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, m as Je, n as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./select-CEnB18uc.js";
12
12
  import { $ as nt, $t as rt, A as it, At as at, B as ot, Bt as st, C as ct, Cn as lt, Ct as ut, D as dt, Dt as ft, Et as pt, F as mt, Ft as ht, G as gt, Gt as _t, H as vt, Ht as yt, I as bt, It as xt, J as St, Jt as Ct, K as wt, Kt as Tt, L as Et, Lt as Dt, M as Ot, Mt as kt, N as At, Nt as jt, O as Mt, Ot as Nt, P as Pt, Pt as Ft, Q as It, Qt as Lt, R as Rt, Rt as zt, S as Bt, Sn as Vt, St as Ht, T as Ut, Tt as Wt, U as Gt, Ut as Kt, V as qt, Vt as Jt, W as Yt, Wt as Xt, Xt as Zt, Yt as Qt, Z as $t, Zt as en, _n as tn, _t as nn, a as rn, at as an, bn as on, bt as sn, cn, ct as ln, d as un, dn, dt as fn, en as pn, et as mn, f as hn, fn as gn, ft as _n, g as vn, gn as yn, gt as bn, hn as xn, ht as Sn, i as Cn, in as wn, it as Tn, j as En, jt as Dn, k as On, kt as kn, l as An, ln as jn, lt as Mn, mn as Nn, n as Pn, nn as Fn, nt as In, o as Ln, on as Rn, ot as zn, p as Bn, pt as Vn, q as Hn, qt as Un, rn as Wn, rt as Gn, s as Kn, sn as qn, st as Jn, t as Yn, tn as Xn, tt as Zn, u as Qn, ut as $n, v as er, vn as tr, vt as nr, w as rr, wt as ir, xn as ar, xt as or, yn as sr, yt as cr, z as lr, zt as ur } from "./dropdown-menu-D0DeN-aL.js";
13
- import { A as dr, At as fr, Et as pr, G as mr, Ht as hr, J as gr, K as _r, Lt as vr, O as yr, P as br, Q as xr, Tt as Sr, Ut as Cr, Vt as wr, W as Tr, Wt as Er, X as Dr, Z as Or, an as kr, b as Ar, in as jr, kt as Mr, on as Nr, t as Pr, u as Fr, y as Ir, yt as Lr, z as Rr, zt as zr } from "./error-entries-DhZotdzQ.js";
13
+ import { A as dr, At as fr, Et as pr, G as mr, Ht as hr, J as gr, K as _r, Lt as vr, O as yr, P as br, Q as xr, Tt as Sr, Ut as Cr, Vt as wr, W as Tr, Wt as Er, X as Dr, Z as Or, an as kr, b as Ar, in as jr, kt as Mr, on as Nr, t as Pr, u as Fr, x as Ir, yt as Lr, z as Rr, zt as zr } from "./error-entries-DVclFjaE.js";
14
14
  import { n as Br, o as Vr, r as Hr, s as Ur, t as Wr } from "./assertNever-5vhHGKOK.js";
15
15
  import { t as Gr } from "./clsx-CoeGtWvn.js";
16
16
  import { t as Kr } from "./react-dom-DdqGVp5N.js";
@@ -23,7 +23,7 @@ import { t as Yi } from "./objects-DCmMvZtn.js";
23
23
  import { t as Xi } from "./invariant-DLmrl-hA.js";
24
24
  import { t as Zi } from "./useEvent-BoN7U38T.js";
25
25
  import { o as Qi, t as $i } from "./arrays-DoQ-AILx.js";
26
- import { t as ea } from "./createReducer-BUQhgLOI.js";
26
+ import { t as ea } from "./createReducer-m7yAXmDu.js";
27
27
  import { H as ta } from "./dist-BIaGGUbU.js";
28
28
  import { c as na, n as ra, s as ia, u as aa } from "./static-state-iw0PrHK4.js";
29
29
  import { i as oa, n as sa, r as ca, t as la } from "./toDate-BZg-byuO.js";
@@ -35,7 +35,7 @@ import { o as Ta } from "./dist-BG-7Qpaj.js";
35
35
  import { t as Ea } from "./useAsyncData-P5-Oovhq.js";
36
36
  import { i as Da, n as Oa, o as ka, r as Aa } from "./loader-CGrYn73j.js";
37
37
  import { n as W, t as G } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
38
- import { n as ja, t as Ma } from "./ErrorBoundary-B5MVsi73.js";
38
+ import { n as ja, t as Ma } from "./ErrorBoundary-Bn664FZa.js";
39
39
  import { W as Na, n as Pa } from "./vega-loader.browser-Co9gYE8Z.js";
40
40
  import { t as Fa } from "./useIframeCapabilities-_0KX0nu_.js";
41
41
  var Ia = H("arrow-down-wide-narrow", [
@@ -10882,7 +10882,7 @@ function Eb() {
10882
10882
  //#endregion
10883
10883
  //#region src/components/editor/links/cell-link.tsx
10884
10884
  var Db = (e) => {
10885
- let t = (0, J.c)(15), { className: n, cellId: r, variant: a, onClick: s, formatCellName: c, skipScroll: l } = e, u = Ar()[r] ?? "", d = Ir().indexOf(r), { showCellIfHidden: f } = P(), p = c ?? jb, m;
10885
+ let t = (0, J.c)(15), { className: n, cellId: r, variant: a, onClick: s, formatCellName: c, skipScroll: l } = e, u = Ir()[r] ?? "", d = Ar().indexOf(r), { showCellIfHidden: f } = P(), p = c ?? jb, m;
10886
10886
  t[0] === r ? m = t[1] : (m = r === "__scratch__" ? void 0 : `#${fr.create(r)}`, t[0] = r, t[1] = m);
10887
10887
  let h;
10888
10888
  t[2] === n ? h = t[3] : (h = i("inline-block cursor-pointer text-left text-link hover:underline focus-visible:outline focus-visible:outline-ring", n), t[2] = n, t[3] = h);
@@ -1,6 +1,6 @@
1
1
  import { g as e } from "./button-Z2R2272J.js";
2
2
  import { t } from "./compiler-runtime-C5KHtL5D.js";
3
- import { Kt as n, Wt as r } from "./use-restore-focus-DJ_-uSn_.js";
3
+ import { Gt as n, Kt as r } from "./use-restore-focus-DJ_-uSn_.js";
4
4
  //#region src/utils/createReducer.ts
5
5
  var i = t();
6
6
  function a(t, n) {
@@ -37,30 +37,27 @@ function o(t, o, s) {
37
37
  }, m = (e, t) => {
38
38
  let n = f(e, t);
39
39
  return p(e, n, t), n;
40
- }, h = n(t()), g = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
41
- function v(e) {
42
- let t = (0, i.c)(12), n;
43
- t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
44
- let a = n, o = r(h), s = a.skipMiddleware === !0, c = s ? _ : g, l;
45
- t[2] !== c || t[3] !== o ? (l = c.get(o), t[2] = c, t[3] = o, t[4] = l) : l = t[4];
46
- let u = l;
47
- if (u) return u;
48
- let m;
49
- if (t[5] !== c || t[6] !== o || t[7] !== s) {
50
- let e;
51
- t[9] !== o || t[10] !== s ? (e = (e) => {
52
- let t, n;
53
- o((r) => (t = r, n = f(r, e), n)), !s && t !== void 0 && n !== void 0 && p(t, n, e);
54
- }, t[9] = o, t[10] = s, t[11] = e) : e = t[11], m = d(e), c.set(o, m), t[5] = c, t[6] = o, t[7] = s, t[8] = m;
55
- } else m = t[8];
56
- return m;
40
+ }, h = r(t()), g = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
41
+ function v(e, t) {
42
+ let n = t?.skipMiddleware === !0, r = n ? _ : g, i = r.get(e);
43
+ if (i) return i;
44
+ let a = d((t) => {
45
+ let r, i;
46
+ e.set(h, (e) => (r = e, i = f(e, t), i)), !n && r !== void 0 && i !== void 0 && p(r, i, t);
47
+ });
48
+ return r.set(e, a), a;
49
+ }
50
+ function y(e) {
51
+ let t = (0, i.c)(3), r = n(), a;
52
+ return t[0] !== e || t[1] !== r ? (a = v(r, e), t[0] = e, t[1] = r, t[2] = a) : a = t[2], a;
57
53
  }
58
54
  return {
59
55
  reducer: m,
60
56
  addMiddleware: l,
61
57
  createActions: d,
58
+ getActionsForStore: v,
62
59
  valueAtom: h,
63
- useActions: v
60
+ useActions: y
64
61
  };
65
62
  }
66
63
  //#endregion
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { t } from "./react-Bgs_wQh3.js";
3
3
  import { t as n } from "./react-dom-DdqGVp5N.js";
4
4
  import { c as r, l as i, u as a } from "./data-grid-types-DBNnjiYJ.js";
5
- import { a as o, i as s, n as c, r as l } from "./glide-data-editor-wPYhuqFs.js";
5
+ import { a as o, i as s, n as c, r as l } from "./glide-data-editor-Bra6h4KB.js";
6
6
  //#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/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js
7
7
  var u = /* @__PURE__ */ e(t(), 1), d = /* @__PURE__ */ e(n(), 1), f = /*#__PURE__*/ o("div")({
8
8
  name: "DataGridOverlayEditorStyle",