@marimo-team/islands 0.25.3-dev430 → 0.25.3-dev432

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 (23) hide show
  1. package/dist/{ErrorBoundary-DfxSbqEP.js → ErrorBoundary-B43oV3b6.js} +2 -2
  2. package/dist/{any-language-editor-CvTbmCdJ.js → any-language-editor-Cw4VtZvb.js} +1 -1
  3. package/dist/{chat-ui-DxD-0lMF.js → chat-ui-BEMyRpmS.js} +722 -723
  4. package/dist/{code-visibility-YAauUwBF.js → code-visibility-S6mDxnr2.js} +2 -2
  5. package/dist/{common-DWEsduk5.js → common-CIHg51sQ.js} +303 -303
  6. package/dist/{copy-icon-CeOpTht4.js → copy-icon-Bv5SAA0w.js} +25 -19
  7. package/dist/{data-grid-overlay-editor-DFXvOhW0.js → data-grid-overlay-editor-BCWPWxh4.js} +1 -1
  8. package/dist/{error-entries-BNzYy3Ci.js → error-entries-BbxtqUQ4.js} +1 -1
  9. package/dist/{feedback-button-Cuc1CIl1.js → feedback-button-DI9se_Ct.js} +4 -4
  10. package/dist/{glide-data-editor-DgNyC_0T.js → glide-data-editor-BeLtV7nF.js} +4 -4
  11. package/dist/{globals-Lu2ZB5If.js → globals-DLPrOEeB.js} +1 -1
  12. package/dist/{html-to-image-CO_NVoKY.js → html-to-image-DuNAF8H5.js} +4 -4
  13. package/dist/main.js +253 -253
  14. package/dist/{number-overlay-editor-274iS3jz.js → number-overlay-editor-CZLODMHG.js} +1 -1
  15. package/dist/{process-output-CznNfcKe.js → process-output-Cl97_Reh.js} +2 -2
  16. package/dist/{reveal-component-B6xzPGLx.js → reveal-component-CcavTIL_.js} +3 -3
  17. package/dist/style.css +1 -1
  18. package/package.json +1 -1
  19. package/src/components/chat/chat-panel.tsx +21 -11
  20. package/src/components/editor/ai/prompt-input.tsx +11 -1
  21. package/src/components/icons/__tests__/copy-icon.test.tsx +63 -0
  22. package/src/components/icons/copy-icon.tsx +9 -2
  23. package/src/components/chat/chat-empty-state.tsx +0 -55
@@ -160,30 +160,36 @@ async function D(e, n) {
160
160
  //#endregion
161
161
  //#region src/components/icons/copy-icon.tsx
162
162
  var O = l(), k = (e) => {
163
- let t = (0, u.c)(14), { value: i, className: a, buttonClassName: o, tooltip: l, toastTitle: f, ariaLabel: p } = e, [m, h] = (0, d.useState)(!1), g;
164
- t[0] !== f || t[1] !== i ? (g = r.stopPropagation(async (e) => {
163
+ let t = (0, u.c)(17), { value: i, className: a, buttonClassName: o, tooltip: l, toastTitle: f, ariaLabel: p } = e, [m, h] = (0, d.useState)(!1), g, _;
164
+ t[0] === m ? (g = t[1], _ = t[2]) : (g = () => {
165
+ if (!m) return;
166
+ let e = setTimeout(() => h(!1), 2e3);
167
+ return () => clearTimeout(e);
168
+ }, _ = [m], t[0] = m, t[1] = g, t[2] = _), (0, d.useEffect)(g, _);
169
+ let v;
170
+ t[3] !== f || t[4] !== i ? (v = r.stopPropagation(async (e) => {
165
171
  await D(typeof i == "function" ? i(e) : i).then(() => {
166
- h(!0), setTimeout(() => h(!1), 2e3), f && C({ title: f });
172
+ h(!0), f && C({ title: f });
167
173
  });
168
- }), t[0] = f, t[1] = i, t[2] = g) : g = t[2];
169
- let _ = g, v = p ?? "Copy to clipboard", y;
170
- t[3] !== a || t[4] !== m ? (y = m ? /* @__PURE__ */ (0, O.jsx)(c, { className: n(a, "text-(--grass-11)") }) : /* @__PURE__ */ (0, O.jsx)(E, { className: a }), t[3] = a, t[4] = m, t[5] = y) : y = t[5];
171
- let b;
172
- t[6] !== o || t[7] !== _ || t[8] !== v || t[9] !== y ? (b = /* @__PURE__ */ (0, O.jsx)("button", {
174
+ }), t[3] = f, t[4] = i, t[5] = v) : v = t[5];
175
+ let y = v, b = p ?? "Copy to clipboard", x;
176
+ t[6] !== a || t[7] !== m ? (x = m ? /* @__PURE__ */ (0, O.jsx)(c, { className: n(a, "text-(--grass-11)") }) : /* @__PURE__ */ (0, O.jsx)(E, { className: a }), t[6] = a, t[7] = m, t[8] = x) : x = t[8];
177
+ let S;
178
+ t[9] !== o || t[10] !== y || t[11] !== b || t[12] !== x ? (S = /* @__PURE__ */ (0, O.jsx)("button", {
173
179
  type: "button",
174
- onClick: _,
175
- "aria-label": v,
180
+ onClick: y,
181
+ "aria-label": b,
176
182
  className: o,
177
- children: y
178
- }), t[6] = o, t[7] = _, t[8] = v, t[9] = y, t[10] = b) : b = t[10];
179
- let x = b;
180
- if (l === !1) return x;
181
- let S = m ? "Copied!" : l ?? "Copy to clipboard", w;
182
- return t[11] !== x || t[12] !== S ? (w = /* @__PURE__ */ (0, O.jsx)(s, {
183
- content: S,
184
- delayDuration: 400,
185
183
  children: x
186
- }), t[11] = x, t[12] = S, t[13] = w) : w = t[13], w;
184
+ }), t[9] = o, t[10] = y, t[11] = b, t[12] = x, t[13] = S) : S = t[13];
185
+ let w = S;
186
+ if (l === !1) return w;
187
+ let T = m ? "Copied!" : l ?? "Copy to clipboard", k;
188
+ return t[14] !== w || t[15] !== T ? (k = /* @__PURE__ */ (0, O.jsx)(s, {
189
+ content: T,
190
+ delayDuration: 400,
191
+ children: w
192
+ }), t[14] = w, t[15] = T, t[16] = k) : k = t[16], k;
187
193
  };
188
194
  //#endregion
189
195
  export { w as a, C as i, D as n, E as r, k as t };
@@ -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-DIX_pCco.js";
5
- import { a as o, i as s, n as c, r as l } from "./glide-data-editor-DgNyC_0T.js";
5
+ import { a as o, i as s, n as c, r as l } from "./glide-data-editor-BeLtV7nF.js";
6
6
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/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",
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { g as t, h as n, p as r } from "./button-qQhINE7z.js";
3
3
  import { t as i } from "./react-Bgs_wQh3.js";
4
4
  import { t as a } from "./compiler-runtime-C5KHtL5D.js";
5
- import { i as o } from "./copy-icon-CeOpTht4.js";
5
+ import { i as o } from "./copy-icon-Bv5SAA0w.js";
6
6
  import { f as s, h as c } from "./tooltip-DsQZP310.js";
7
7
  import { t as l } from "./check-BHRB6N0I.js";
8
8
  import { n as u, r as d } from "./assertNever-ChGm2jYv.js";
@@ -2,15 +2,15 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { h as t, t as n } from "./button-qQhINE7z.js";
3
3
  import { t as r } from "./react-Bgs_wQh3.js";
4
4
  import { t as i } from "./compiler-runtime-C5KHtL5D.js";
5
- import { t as a } from "./copy-icon-CeOpTht4.js";
6
- import { D as o, E as s, F as c, G as l, N as u, Yt as d, en as f, i as p, n as m } from "./error-entries-BNzYy3Ci.js";
7
- import { n as h, t as ee } from "./globals-Lu2ZB5If.js";
5
+ import { t as a } from "./copy-icon-Bv5SAA0w.js";
6
+ import { D as o, E as s, F as c, G as l, N as u, Yt as d, en as f, i as p, n as m } from "./error-entries-BbxtqUQ4.js";
7
+ import { n as h, t as ee } from "./globals-DLPrOEeB.js";
8
8
  import { r as g } from "./assertNever-ChGm2jYv.js";
9
9
  import { t as _ } from "./jsx-runtime-D8btoEHk.js";
10
10
  import { Lt as v, m as y, xt as te } from "./use-restore-focus-CTa7IRP6.js";
11
11
  import { a as ne, i as re, n as ie, r as ae } from "./dialog-B8vU2hHC.js";
12
12
  import { t as oe } from "./useAsyncData-P5-Oovhq.js";
13
- import { t as se } from "./code-visibility-YAauUwBF.js";
13
+ import { t as se } from "./code-visibility-S6mDxnr2.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;
@@ -2,7 +2,7 @@ import { a as e, r as t, t as n } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { m as r, t as i } from "./button-qQhINE7z.js";
3
3
  import { t as a } from "./react-Bgs_wQh3.js";
4
4
  import { t as o } from "./compiler-runtime-C5KHtL5D.js";
5
- import { i as s, n as c, r as l } from "./copy-icon-CeOpTht4.js";
5
+ import { i as s, n as c, r as l } from "./copy-icon-Bv5SAA0w.js";
6
6
  import { d as u } from "./tooltip-DsQZP310.js";
7
7
  import { c as d, d as f, i as p, n as m, s as h, t as g } from "./select-Brvb-RwP.js";
8
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-DzhAnAhr.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-CTa7IRP6.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-DfxSbqEP.js";
17
+ import { t as ce } from "./ErrorBoundary-B43oV3b6.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-DIX_pCco.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.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/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-DFXvOhW0.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-BCWPWxh4.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.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
9287
- var Xs = W.lazy(async () => await import("./number-overlay-editor-274iS3jz.js")), Zs = {
9287
+ var Xs = W.lazy(async () => await import("./number-overlay-editor-CZLODMHG.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-DsQZP310.js";
2
2
  import { xt as t } from "./use-restore-focus-CTa7IRP6.js";
3
- import { r as n } from "./code-visibility-YAauUwBF.js";
3
+ import { r as n } from "./code-visibility-S6mDxnr2.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",
@@ -2,14 +2,14 @@ import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { g as a, h as o, p as s, r as c, s as l, t as u, u as d } from "./button-qQhINE7z.js";
3
3
  import { t as f } from "./react-Bgs_wQh3.js";
4
4
  import { t as p } from "./compiler-runtime-C5KHtL5D.js";
5
- import { i as m, n as h, t as g } from "./copy-icon-CeOpTht4.js";
5
+ import { i as m, n as h, t as g } from "./copy-icon-Bv5SAA0w.js";
6
6
  import { c as _, l as v, o as y, r as b, s as x } from "./chunk-7TTQLYRW-DBSfUUe5.js";
7
7
  import { c as S, h as C, i as w, l as T, s as ee, t as te, u as E } from "./tooltip-DsQZP310.js";
8
8
  import { a as D, i as ne, o as re, r as O, s as k, t as ie } from "./useLifecycle-Bw0JtmoB.js";
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-Brvb-RwP.js";
10
10
  import { J as pe, X as me, ht as he } from "./dropdown-menu-DzhAnAhr.js";
11
11
  import { c as ge, l as _e, n as ve } from "./config-EJnOxh0i.js";
12
- import { Bt as A, C as j, E as ye, Et as be, F as xe, Ft as Se, Gt as Ce, I as M, Kt as we, Lt as Te, M as Ee, O as De, P as Oe, Pt as ke, Qt as Ae, Rt as je, S as Me, St as Ne, T as Pe, U as Fe, Ut as Ie, Vt as Le, W as Re, Xt as ze, _ as Be, _t as Ve, a as He, dt as Ue, f as We, ft as Ge, gt as Ke, h as qe, ht as Je, jt as Ye, k as Xe, lt as Ze, mt as Qe, nt as $e, o as et, p as tt, pt as nt, qt as rt, rt as it, s as at, tt as ot, ut as st, v as ct, vt as lt, wt as ut, x as dt, yt as ft } from "./error-entries-BNzYy3Ci.js";
12
+ import { Bt as A, C as j, E as ye, Et as be, F as xe, Ft as Se, Gt as Ce, I as M, Kt as we, Lt as Te, M as Ee, O as De, P as Oe, Pt as ke, Qt as Ae, Rt as je, S as Me, St as Ne, T as Pe, U as Fe, Ut as Ie, Vt as Le, W as Re, Xt as ze, _ as Be, _t as Ve, a as He, dt as Ue, f as We, ft as Ge, gt as Ke, h as qe, ht as Je, jt as Ye, k as Xe, lt as Ze, mt as Qe, nt as $e, o as et, p as tt, pt as nt, qt as rt, rt as it, s as at, tt as ot, ut as st, v as ct, vt as lt, wt as ut, x as dt, yt as ft } from "./error-entries-BbxtqUQ4.js";
13
13
  import { n as pt } from "./assertNever-ChGm2jYv.js";
14
14
  import { t as mt } from "./react-dom-DdqGVp5N.js";
15
15
  import { t as ht } from "./jsx-runtime-D8btoEHk.js";
@@ -28132,7 +28132,7 @@ function IS(e) {
28132
28132
  }
28133
28133
  //#endregion
28134
28134
  //#region src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx
28135
- var LS = (0, R.lazy)(() => import("./any-language-editor-CvTbmCdJ.js")), RS = [mn.lineWrapping], zS = (0, R.createContext)(!0);
28135
+ var LS = (0, R.lazy)(() => import("./any-language-editor-Cw4VtZvb.js")), RS = [mn.lineWrapping], zS = (0, R.createContext)(!0);
28136
28136
  function BS(e, t) {
28137
28137
  return e ? e === "python" ? {
28138
28138
  language: e,
@@ -28793,4 +28793,4 @@ async function bw(e, t) {
28793
28793
  });
28794
28794
  }
28795
28795
  //#endregion
28796
- export { Uh as $, Rx as A, pi as At, ay as B, Xr as Bt, sS as C, ji as Ct, Vx as D, vi as Dt, Hx as E, yi as Et, _x as F, ai as Ft, Iv as G, Rr as Gt, ey as H, Kr as Ht, mx as I, ni as It, ag as J, Lv as K, mb as L, ei as Lt, Px as M, li as Mt, bx as N, ci as Nt, Gx as O, gi as Ot, gx as P, oi as Pt, rg as Q, gb as R, $r as Rt, aS as S, Xi as St, Lx as T, bi as Tt, ny as U, Wr as Ut, Zv as V, qr as Vt, Qv as W, zr as Wt, ng as X, og as Y, ig as Z, Yx as _, $a as _t, IS as a, Ys as at, tS as b, ea as bt, jS as c, hs as ct, wS as d, No as dt, zh as et, bS as f, vo as ft, _S as g, co as gt, gS as h, uo as ht, LS as i, df as it, Kx as j, ui as jt, zx as k, hi as kt, CS as l, W as lt, yS as m, go as mt, ZS as n, Eh as nt, FS as o, Ms as ot, xS as p, yo as pt, Ov as q, YS as r, ff as rt, PS as s, gs as st, bw as t, Wh as tt, TS as u, Bo as ut, Zx as v, qa as vt, lS as w, Gi as wt, rS as x, $i as xt, $x as y, ca as yt, lb as z, Qr as zt };
28796
+ export { rg as $, Rx as A, hi as At, ay as B, Qr as Bt, sS as C, Xi as Ct, Vx as D, yi as Dt, Hx as E, bi as Et, _x as F, oi as Ft, Iv as G, zr as Gt, ey as H, qr as Ht, mx as I, ai as It, bv as J, Lv as K, Rr as Kt, mb as L, ni as Lt, Px as M, ui as Mt, bx as N, li as Nt, Gx as O, vi as Ot, gx as P, ci as Pt, ig as Q, gb as R, ei as Rt, aS as S, $i as St, Lx as T, Gi as Tt, ny as U, Kr as Ut, Zv as V, Xr as Vt, Qv as W, Wr as Wt, og as X, ag as Y, ng as Z, Yx as _, co as _t, IS as a, df as at, tS as b, ca as bt, jS as c, gs as ct, wS as d, Bo as dt, Uh as et, bS as f, No as ft, _S as g, uo as gt, gS as h, go as ht, LS as i, ff as it, Kx as j, pi as jt, zx as k, gi as kt, CS as l, hs as lt, yS as m, yo as mt, ZS as n, Wh as nt, FS as o, Ys as ot, xS as p, vo as pt, Ov as q, YS as r, Eh as rt, PS as s, Ms as st, bw as t, zh as tt, TS as u, W as ut, Zx as v, $a as vt, lS as w, ji as wt, rS as x, ea as xt, $x as y, qa as yt, lb as z, $r as zt };