@marimo-team/islands 0.25.3-dev487 → 0.25.3-dev493
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.
- package/dist/{ErrorBoundary-CKgl5BPB.js → ErrorBoundary-Bnh1SCmJ.js} +1 -1
- package/dist/{chat-ui-Blvl4-Kd.js → chat-ui-JmYr7eaD.js} +6 -6
- package/dist/{code-visibility-CCSRGVdJ.js → code-visibility-t8fs_7oE.js} +1 -1
- package/dist/{common-DJZmfqr8.js → common-CUm3jSNB.js} +1 -1
- package/dist/{data-grid-overlay-editor-CoCQnhxw.js → data-grid-overlay-editor-CCqXPg4H.js} +1 -1
- package/dist/{feedback-button-BH8UID5_.js → feedback-button-B9c2e5d8.js} +2 -2
- package/dist/{glide-data-editor-D3HQ_xaE.js → glide-data-editor-2Trrvvnm.js} +3 -3
- package/dist/{globals-DfUGFJr_.js → globals-DFVDeboY.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{number-overlay-editor-BzPKuji4.js → number-overlay-editor-B4urThNz.js} +1 -1
- package/dist/{reveal-component-cvMIqV4P.js → reveal-component-B6Fl2psA.js} +2 -2
- package/package.json +1 -1
- package/src/components/datasources/__tests__/datasources-interactions.test.tsx +39 -0
- package/src/components/datasources/__tests__/table-list.test.tsx +51 -1
- package/src/components/datasources/datasources.tsx +11 -13
|
@@ -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-
|
|
151
|
+
var R = (0, T.lazy)(() => import("./feedback-button-B9c2e5d8.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,
|
|
@@ -5040,7 +5040,7 @@ function Go(e = {}) {
|
|
|
5040
5040
|
}])), r;
|
|
5041
5041
|
}
|
|
5042
5042
|
//#endregion
|
|
5043
|
-
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.
|
|
5043
|
+
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.7_7a070d6d3cd24348faf68fbca252ab72/node_modules/@marimo-team/codemirror-mcp/dist/state.js
|
|
5044
5044
|
var Ko = St.define(), Q = Tt.define({
|
|
5045
5045
|
create() {
|
|
5046
5046
|
return /* @__PURE__ */ new Map();
|
|
@@ -5080,7 +5080,7 @@ Tt.define({
|
|
|
5080
5080
|
}
|
|
5081
5081
|
});
|
|
5082
5082
|
//#endregion
|
|
5083
|
-
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.
|
|
5083
|
+
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.7_7a070d6d3cd24348faf68fbca252ab72/node_modules/@marimo-team/codemirror-mcp/dist/resources/completion.js
|
|
5084
5084
|
var Yo = (e, t) => async (n) => {
|
|
5085
5085
|
let r = n.matchBefore(/@(\w+)?/);
|
|
5086
5086
|
if (!r || r.from === r.to && !n.explicit) return null;
|
|
@@ -5113,7 +5113,7 @@ function $(e) {
|
|
|
5113
5113
|
return e.matchAll(new RegExp(Xo.source, "g"));
|
|
5114
5114
|
}
|
|
5115
5115
|
//#endregion
|
|
5116
|
-
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.
|
|
5116
|
+
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.7_7a070d6d3cd24348faf68fbca252ab72/node_modules/@marimo-team/codemirror-mcp/dist/resources/decoration.js
|
|
5117
5117
|
var Zo = class extends Ct {
|
|
5118
5118
|
resource;
|
|
5119
5119
|
view;
|
|
@@ -5170,7 +5170,7 @@ var es = Et.fromClass(class {
|
|
|
5170
5170
|
}
|
|
5171
5171
|
}, { decorations: (e) => e.decorations });
|
|
5172
5172
|
//#endregion
|
|
5173
|
-
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.
|
|
5173
|
+
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.7_7a070d6d3cd24348faf68fbca252ab72/node_modules/@marimo-team/codemirror-mcp/dist/resources/hover.js
|
|
5174
5174
|
function ts(e) {
|
|
5175
5175
|
let t = document.createElement("div");
|
|
5176
5176
|
t.className = "cm-tooltip-cursor";
|
|
@@ -5213,7 +5213,7 @@ function rs(e) {
|
|
|
5213
5213
|
});
|
|
5214
5214
|
}
|
|
5215
5215
|
//#endregion
|
|
5216
|
-
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.
|
|
5216
|
+
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.7_7a070d6d3cd24348faf68fbca252ab72/node_modules/@marimo-team/codemirror-mcp/dist/resources/input-filter.js
|
|
5217
5217
|
function is(e, t) {
|
|
5218
5218
|
let n = e.field(Q), r = e.doc, i = r.lineAt(t), a = r.sliceString(i.from, i.to), o = Array.from($(a));
|
|
5219
5219
|
if (o.length === 0) return null;
|
|
@@ -5447,7 +5447,7 @@ function gs(e, t = {}) {
|
|
|
5447
5447
|
return Et.fromClass(hs(e, t));
|
|
5448
5448
|
}
|
|
5449
5449
|
//#endregion
|
|
5450
|
-
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.
|
|
5450
|
+
//#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.7_7a070d6d3cd24348faf68fbca252ab72/node_modules/@marimo-team/codemirror-mcp/dist/theme.js
|
|
5451
5451
|
var _s = wt.baseTheme({
|
|
5452
5452
|
".cm-resource-widget": {
|
|
5453
5453
|
background: "light-dark(rgba(86,156,214,0.08),rgba(86,156,214,0.18))",
|
|
@@ -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.25.3-
|
|
17
|
+
var b = y() || "0.25.3-dev493", x = s(b), S = s(!0);
|
|
18
18
|
s(null);
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/core/wasm/state.ts
|
|
@@ -33,7 +33,7 @@ import { o as ba } from "./dist-DNkrY12t.js";
|
|
|
33
33
|
import { a as xa, i as Sa, n as Ca, o as wa, r as Ta, t as Ea } from "./dialog-CBKdXrw9.js";
|
|
34
34
|
import { t as Da } from "./useAsyncData-P5-Oovhq.js";
|
|
35
35
|
import { n as W, t as G } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
|
|
36
|
-
import { n as Oa, t as ka } from "./ErrorBoundary-
|
|
36
|
+
import { n as Oa, t as ka } from "./ErrorBoundary-Bnh1SCmJ.js";
|
|
37
37
|
import { W as Aa, n as ja } from "./vega-loader.browser-Co9gYE8Z.js";
|
|
38
38
|
import { a as Ma, n as Na, r as Pa, t as Fa } from "./loader-Bin_dutt.js";
|
|
39
39
|
import { t as Ia } from "./useIframeCapabilities-HTZiVlGV.js";
|
|
@@ -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-
|
|
5
|
+
import { a as o, i as s, n as c, r as l } from "./glide-data-editor-2Trrvvnm.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",
|
|
@@ -4,13 +4,13 @@ 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-7bY-OuK1.js";
|
|
6
6
|
import { $t as o, D as s, I as c, K as l, O as u, P as d, i as f, in as p, n as m } from "./error-entries-MZLN-feW.js";
|
|
7
|
-
import { n as h, t as ee } from "./globals-
|
|
7
|
+
import { n as h, t as ee } from "./globals-DFVDeboY.js";
|
|
8
8
|
import { r as g } from "./assertNever-BQEDS5Ew.js";
|
|
9
9
|
import { t as _ } from "./jsx-runtime-D8btoEHk.js";
|
|
10
10
|
import { Rt as v, St as te, m as y } from "./use-restore-focus-DlX1CSiq.js";
|
|
11
11
|
import { a as ne, i as re, n as ie, r as ae } from "./dialog-CBKdXrw9.js";
|
|
12
12
|
import { t as oe } from "./useAsyncData-P5-Oovhq.js";
|
|
13
|
-
import { t as se } from "./code-visibility-
|
|
13
|
+
import { t as se } from "./code-visibility-t8fs_7oE.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;
|
|
@@ -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-DlX1CSiq.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-
|
|
17
|
+
import { t as ce } from "./ErrorBoundary-Bnh1SCmJ.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-
|
|
7064
|
+
var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-CCqXPg4H.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-
|
|
9287
|
+
var Xs = W.lazy(async () => await import("./number-overlay-editor-B4urThNz.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-CwQmweEz.js";
|
|
2
2
|
import { St as t } from "./use-restore-focus-DlX1CSiq.js";
|
|
3
|
-
import { r as n } from "./code-visibility-
|
|
3
|
+
import { r as n } from "./code-visibility-t8fs_7oE.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",
|
package/dist/main.js
CHANGED
|
@@ -6,7 +6,7 @@ import { i as x, n as S, r as C, t as w } from "./copy-icon-7bY-OuK1.js";
|
|
|
6
6
|
import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, L as N, Lt as P, M as F, Mt as I, O as L, Ot as R, P as z, R as B, Rt as ee, St as V, Ut as te, Vt as ne, Wt as re, X as ie, Z as ae, _ as oe, _t as se, a as ce, at as le, b as ue, bt as de, c as fe, ct as pe, dt as me, i as he, it as ge, j as _e, kt as ve, lt as ye, mt as be, n as xe, o as Se, ot as Ce, q as we, rt as Te, ut as Ee, vt as De, yt as Oe, z as ke, zt as Ae } from "./html-to-image-D6h4lzXj.js";
|
|
7
7
|
import { a as je, f as Me, h as Ne, i as Pe, m as Fe, n as Ie, o as Le, r as Re, t as ze } from "./tooltip-CwQmweEz.js";
|
|
8
8
|
import { D as Be, E as Ve, S as He, T as Ue, _ as We, a as Ge, c as Ke, d as qe, f as Je, g as Ye, h as Xe, i as Ze, l as Qe, m as $e, n as et, o as tt, p as nt, r as rt, s as it, t as at, u as ot, v as st, w as ct, x as lt, y as ut } from "./spec-AxyC1vc5.js";
|
|
9
|
-
import { $ as dt, $t as ft, A as pt, An as mt, At as ht, B as gt, Bt as _t, C as vt, D as yt, Dn as bt, Dt as xt, E as St, En as Ct, Et as wt, F as Tt, Ft as Et, G as Dt, Gt as Ot, H as kt, Ht as At, I as jt, It as Mt, J as Nt, Jt as Pt, K as Ft, Kt as It, L as Lt, Lt as Rt, M as zt, Mn as Bt, Mt as Vt, N as Ht, Nt as Ut, O as Wt, On as Gt, Ot as Kt, P as qt, Pt as Jt, Q as Yt, Qt as Xt, R as Zt, Rt as Qt, S as $t, Sn as en, St as tn, T as nn, Tn as rn, Tt as an, U as on, Ut as sn, V as cn, Vt as ln, W as un, Wt as dn, X as fn, Xt as pn, Y as mn, Yt as hn, Z as gn, Zt as _n, _ as vn, _n as yn, _t as bn, an as xn, at as Sn, b as Cn, bn as wn, bt as Tn, c as En, cn as Dn, ct as On, d as kn, dn as An, dt as jn, en as Mn, f as Nn, fn as Pn, ft as Fn, g as In, gn as Ln, gt as Rn, h as zn, hn as Bn, ht as Vn, in as Hn, it as Un, j as Wn, jn as Gn, jt as Kn, k as qn, kn as Jn, kt as Yn, ln as Xn, lt as Zn, m as Qn, mn as $n, mt as er, nn as tr, on as nr, ot as rr, p as ir, pn as ar, pt as or, q as sr, qt as cr, r as lr, rn as ur, rt as dr, sn as fr, st as pr, t as mr, tn as hr, u as gr, un as _r, ut as vr, v as yr, vn as br, vt as xr, w as Sr, wn as Cr, x as wr, xn as Tr, xt as Er, y as Dr, yn as Or, yt as kr, z as Ar, zt as jr } from "./common-
|
|
9
|
+
import { $ as dt, $t as ft, A as pt, An as mt, At as ht, B as gt, Bt as _t, C as vt, D as yt, Dn as bt, Dt as xt, E as St, En as Ct, Et as wt, F as Tt, Ft as Et, G as Dt, Gt as Ot, H as kt, Ht as At, I as jt, It as Mt, J as Nt, Jt as Pt, K as Ft, Kt as It, L as Lt, Lt as Rt, M as zt, Mn as Bt, Mt as Vt, N as Ht, Nt as Ut, O as Wt, On as Gt, Ot as Kt, P as qt, Pt as Jt, Q as Yt, Qt as Xt, R as Zt, Rt as Qt, S as $t, Sn as en, St as tn, T as nn, Tn as rn, Tt as an, U as on, Ut as sn, V as cn, Vt as ln, W as un, Wt as dn, X as fn, Xt as pn, Y as mn, Yt as hn, Z as gn, Zt as _n, _ as vn, _n as yn, _t as bn, an as xn, at as Sn, b as Cn, bn as wn, bt as Tn, c as En, cn as Dn, ct as On, d as kn, dn as An, dt as jn, en as Mn, f as Nn, fn as Pn, ft as Fn, g as In, gn as Ln, gt as Rn, h as zn, hn as Bn, ht as Vn, in as Hn, it as Un, j as Wn, jn as Gn, jt as Kn, k as qn, kn as Jn, kt as Yn, ln as Xn, lt as Zn, m as Qn, mn as $n, mt as er, nn as tr, on as nr, ot as rr, p as ir, pn as ar, pt as or, q as sr, qt as cr, r as lr, rn as ur, rt as dr, sn as fr, st as pr, t as mr, tn as hr, u as gr, un as _r, ut as vr, v as yr, vn as br, vt as xr, w as Sr, wn as Cr, x as wr, xn as Tr, xt as Er, y as Dr, yn as Or, yt as kr, z as Ar, zt as jr } from "./common-CUm3jSNB.js";
|
|
10
10
|
import { a as Mr, n as Nr, s as Pr, t as Fr } from "./useLifecycle-XZ5KJAFU.js";
|
|
11
11
|
import { t as Ir } from "./check-BTnCP_6g.js";
|
|
12
12
|
import { A as Lr, C as Rr, D as zr, M as Br, O as Vr, a as Hr, c as Ur, d as Wr, i as Gr, k as Kr, l as qr, n as Jr, o as Yr, r as Xr, s as Zr, t as Qr, w as $r, x as ei } from "./select-BcEi9lad.js";
|
|
@@ -16,7 +16,7 @@ import { $t as Hi, At as Ui, B as Wi, Ct as Gi, D as Ki, Dt as qi, Ft as Ji, G a
|
|
|
16
16
|
import { a as Ma, d as Na, i as Pa, n as Fa, o as Ia, r as La, s as Ra, t as za, u as Ba } from "./process-output-MYh-Vr__.js";
|
|
17
17
|
import { t as Va } from "./pencil-qedVMD6q.js";
|
|
18
18
|
import { a as Ha, c as Ua, d as Wa, f as Ga, i as Ka, l as qa, r as Ja } from "./glide-utils-DlglW_uh.js";
|
|
19
|
-
import { n as Ya, t as Xa } from "./globals-
|
|
19
|
+
import { n as Ya, t as Xa } from "./globals-DFVDeboY.js";
|
|
20
20
|
import { a as Za, i as Qa, n as $a, r as eo, s as to, t as no } from "./assertNever-BQEDS5Ew.js";
|
|
21
21
|
import { t as ro } from "./react-dom-DdqGVp5N.js";
|
|
22
22
|
import { t as io } from "./jsx-runtime-D8btoEHk.js";
|
|
@@ -40,10 +40,10 @@ import { n as tc, t as nc } from "./esm-Bwp_FHP0.js";
|
|
|
40
40
|
import { p as rc } from "./dist-DpYpG8Yc.js";
|
|
41
41
|
import { t as ic } from "./useAsyncData-P5-Oovhq.js";
|
|
42
42
|
import { n as ac, r as oc, t as sc } from "./useDeepCompareMemoize-C6mte0N8.js";
|
|
43
|
-
import { t as cc } from "./ErrorBoundary-
|
|
43
|
+
import { t as cc } from "./ErrorBoundary-Bnh1SCmJ.js";
|
|
44
44
|
import { G as lc, W as uc } from "./vega-loader.browser-Co9gYE8Z.js";
|
|
45
45
|
import { a as dc, n as fc } from "./loader-Bin_dutt.js";
|
|
46
|
-
import { a as pc, c as mc, i as hc, l as gc, o as _c, s as vc, t as yc } from "./code-visibility-
|
|
46
|
+
import { a as pc, c as mc, i as hc, l as gc, o as _c, s as vc, t as yc } from "./code-visibility-t8fs_7oE.js";
|
|
47
47
|
import { t as bc } from "./esm-B9n0caHs.js";
|
|
48
48
|
//#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
49
49
|
var xc = Object.freeze({
|
|
@@ -12516,7 +12516,7 @@ var OD = (e) => {
|
|
|
12516
12516
|
output: t
|
|
12517
12517
|
};
|
|
12518
12518
|
} };
|
|
12519
|
-
} }, PD = Y.lazy(() => import("./chat-ui-
|
|
12519
|
+
} }, PD = Y.lazy(() => import("./chat-ui-JmYr7eaD.js").then((e) => ({ default: e.Chatbot }))), FD = H(G({
|
|
12520
12520
|
id: q(),
|
|
12521
12521
|
role: U([
|
|
12522
12522
|
"system",
|
|
@@ -12985,7 +12985,7 @@ function NO(e, t) {
|
|
|
12985
12985
|
}
|
|
12986
12986
|
//#endregion
|
|
12987
12987
|
//#region src/plugins/impl/DataEditorPlugin.tsx
|
|
12988
|
-
var PO = Y.lazy(() => import("./glide-data-editor-
|
|
12988
|
+
var PO = Y.lazy(() => import("./glide-data-editor-2Trrvvnm.js").then((e) => e.t)), FO = hD("marimo-data-editor", { cssStyles: [RD, zD] }).withData(G({
|
|
12989
12989
|
initialValue: G({ edits: H(G({
|
|
12990
12990
|
rowIdx: K(),
|
|
12991
12991
|
columnId: q(),
|
|
@@ -32708,7 +32708,7 @@ function IU(e) {
|
|
|
32708
32708
|
}
|
|
32709
32709
|
//#endregion
|
|
32710
32710
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
32711
|
-
var LU = Y.lazy(() => import("./reveal-component-
|
|
32711
|
+
var LU = Y.lazy(() => import("./reveal-component-B6Fl2psA.js")), RU = (e) => {
|
|
32712
32712
|
let t = (0, Z.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = ko(Us), s = a === "read" || o, c = ko(Sa) > 1, [l, u] = (0, Y.useState)(null), d;
|
|
32713
32713
|
t[0] !== i || t[1] !== n ? (d = Pz(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
32714
32714
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
2
2
|
import { t } from "./react-Bgs_wQh3.js";
|
|
3
|
-
import { a as n } from "./glide-data-editor-
|
|
3
|
+
import { a as n } from "./glide-data-editor-2Trrvvnm.js";
|
|
4
4
|
//#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/private/number-overlay-editor-style.js
|
|
5
5
|
var r = /* @__PURE__ */ e(t()), i = /*#__PURE__*/ n("div")({
|
|
6
6
|
name: "NumberOverlayEditorStyle",
|
|
@@ -3,14 +3,14 @@ import { g as t, h as n, i as r, m as i, t as a } from "./button-qQhINE7z.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 { h as c, t as l } from "./tooltip-CwQmweEz.js";
|
|
6
|
-
import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-
|
|
6
|
+
import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-CUm3jSNB.js";
|
|
7
7
|
import { M as w } from "./select-BcEi9lad.js";
|
|
8
8
|
import { X as T } from "./dropdown-menu-218IIk7S.js";
|
|
9
9
|
import { t as E } from "./jsx-runtime-D8btoEHk.js";
|
|
10
10
|
import { Rt as D, Vt as O, f as k, i as ee } from "./use-restore-focus-DlX1CSiq.js";
|
|
11
11
|
import { t as A } from "./useEvent-BoN7U38T.js";
|
|
12
12
|
import { o as te } from "./static-state-CqzVppxA.js";
|
|
13
|
-
import { n as ne, t as re } from "./code-visibility-
|
|
13
|
+
import { n as ne, t as re } from "./code-visibility-t8fs_7oE.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
var j = c("sticky-note", [["path", {
|
|
16
16
|
d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
|
package/package.json
CHANGED
|
@@ -183,6 +183,45 @@ it("activates a schema and a table with the same path independently using the ke
|
|
|
183
183
|
expect(screen.getByText("No tables found")).toBeInTheDocument();
|
|
184
184
|
});
|
|
185
185
|
|
|
186
|
+
it("keeps an open schema expanded when the search is only whitespace", async () => {
|
|
187
|
+
const store = createStore();
|
|
188
|
+
store.set(requestClientAtom, MockRequestClient.create());
|
|
189
|
+
store.set(dataSourceConnectionsAtom, {
|
|
190
|
+
latestEngineSelected: DUCKDB_ENGINE,
|
|
191
|
+
connectionsMap: new Map([
|
|
192
|
+
[
|
|
193
|
+
DUCKDB_ENGINE,
|
|
194
|
+
{
|
|
195
|
+
name: DUCKDB_ENGINE,
|
|
196
|
+
dialect: "duckdb",
|
|
197
|
+
source: "duckdb",
|
|
198
|
+
display_name: "DuckDB (In-Memory)",
|
|
199
|
+
databases: [
|
|
200
|
+
{
|
|
201
|
+
name: "memory",
|
|
202
|
+
dialect: "duckdb",
|
|
203
|
+
schemas: [{ name: "finance", tables: [table] }],
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
]),
|
|
209
|
+
});
|
|
210
|
+
render(
|
|
211
|
+
<Provider store={store}>
|
|
212
|
+
<TooltipProvider>
|
|
213
|
+
<DataSources />
|
|
214
|
+
</TooltipProvider>
|
|
215
|
+
</Provider>,
|
|
216
|
+
);
|
|
217
|
+
fireEvent.click(await screen.findByText("memory"));
|
|
218
|
+
fireEvent.click(await screen.findByText("finance"));
|
|
219
|
+
expect(await screen.findByText("reports")).toBeInTheDocument();
|
|
220
|
+
|
|
221
|
+
fireEvent.change(screen.getByRole("combobox"), { target: { value: " " } });
|
|
222
|
+
expect(screen.getByText("reports")).toBeInTheDocument();
|
|
223
|
+
});
|
|
224
|
+
|
|
186
225
|
const stops: Array<() => void> = [];
|
|
187
226
|
afterEach(() => {
|
|
188
227
|
for (const stop of stops.splice(0)) {
|
|
@@ -5,9 +5,12 @@ import { Provider } from "jotai";
|
|
|
5
5
|
import type React from "react";
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
7
|
import { MockRequestClient } from "@/__mocks__/requests";
|
|
8
|
+
import { variableName } from "@/__tests__/branded";
|
|
9
|
+
import { Command, CommandList } from "@/components/ui/command";
|
|
10
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
8
11
|
import type { SQLTableContext } from "@/core/datasets/data-source-connections";
|
|
9
12
|
import { PreviewSQLTableList } from "@/core/datasets/request-registry";
|
|
10
|
-
import type { SQLTableListPreview } from "@/core/kernel/messages";
|
|
13
|
+
import type { DataTable, SQLTableListPreview } from "@/core/kernel/messages";
|
|
11
14
|
import type { RequestId } from "@/core/network/DeferredRequestRegistry";
|
|
12
15
|
import { requestClientAtom } from "@/core/network/requests";
|
|
13
16
|
import { store } from "@/core/state/jotai";
|
|
@@ -116,3 +119,50 @@ describe("TableList deferred discovery", () => {
|
|
|
116
119
|
expect(PreviewSQLTableList.requests.size).toBe(0);
|
|
117
120
|
});
|
|
118
121
|
});
|
|
122
|
+
|
|
123
|
+
describe("TableList search", () => {
|
|
124
|
+
const table = (name: string): DataTable => ({
|
|
125
|
+
name,
|
|
126
|
+
source: "memory",
|
|
127
|
+
source_type: "local",
|
|
128
|
+
num_rows: 1,
|
|
129
|
+
num_columns: 1,
|
|
130
|
+
columns: [],
|
|
131
|
+
variable_name: variableName(name),
|
|
132
|
+
});
|
|
133
|
+
const tables = [table("orders"), table("customers"), table("order_items")];
|
|
134
|
+
|
|
135
|
+
const shownTables = async (searchValue: string) => {
|
|
136
|
+
const { unmount } = render(
|
|
137
|
+
<TooltipProvider>
|
|
138
|
+
<Command shouldFilter={false}>
|
|
139
|
+
<CommandList>
|
|
140
|
+
<TableList tables={tables} searchValue={searchValue} />
|
|
141
|
+
</CommandList>
|
|
142
|
+
</Command>
|
|
143
|
+
</TooltipProvider>,
|
|
144
|
+
{ wrapper },
|
|
145
|
+
);
|
|
146
|
+
await waitFor(() => {
|
|
147
|
+
expect(screen.queryByText("Loading tables...")).toBeNull();
|
|
148
|
+
});
|
|
149
|
+
const shown = tables
|
|
150
|
+
.map((t) => t.name)
|
|
151
|
+
.filter((name) => screen.queryByText(name));
|
|
152
|
+
unmount();
|
|
153
|
+
return shown;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
it("ignores surrounding whitespace in the search", async () => {
|
|
157
|
+
expect(await shownTables("orders ")).toEqual(["orders"]);
|
|
158
|
+
expect(await shownTables(" ORDER")).toEqual(["orders", "order_items"]);
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
it("shows every table for a whitespace-only search", async () => {
|
|
162
|
+
expect(await shownTables(" ")).toEqual([
|
|
163
|
+
"orders",
|
|
164
|
+
"customers",
|
|
165
|
+
"order_items",
|
|
166
|
+
]);
|
|
167
|
+
});
|
|
168
|
+
});
|
|
@@ -264,7 +264,9 @@ export const DataSources: React.FC = () => {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
|
|
267
|
+
// Whitespace-only input searches nothing, so it must not reset the tree.
|
|
268
|
+
const query = searchValue.trim();
|
|
269
|
+
const hasSearch = !!query;
|
|
268
270
|
|
|
269
271
|
return (
|
|
270
272
|
<Command
|
|
@@ -278,7 +280,7 @@ export const DataSources: React.FC = () => {
|
|
|
278
280
|
value={searchValue}
|
|
279
281
|
onValueChange={(value) => {
|
|
280
282
|
// If searching, remove open previews
|
|
281
|
-
closeAllColumns(value.length > 0);
|
|
283
|
+
closeAllColumns(value.trim().length > 0);
|
|
282
284
|
setSearchValue(value);
|
|
283
285
|
}}
|
|
284
286
|
rootClassName="flex-1 border-r border-b-0"
|
|
@@ -326,7 +328,7 @@ export const DataSources: React.FC = () => {
|
|
|
326
328
|
key={database.name}
|
|
327
329
|
connection={connection}
|
|
328
330
|
database={database}
|
|
329
|
-
searchValue={
|
|
331
|
+
searchValue={query}
|
|
330
332
|
/>
|
|
331
333
|
))}
|
|
332
334
|
</Engine>
|
|
@@ -338,9 +340,7 @@ export const DataSources: React.FC = () => {
|
|
|
338
340
|
<span className="text-xs">Python</span>
|
|
339
341
|
</DatasourceLabel>
|
|
340
342
|
)}
|
|
341
|
-
{tables.length > 0 &&
|
|
342
|
-
<TableList tables={tables} searchValue={searchValue} />
|
|
343
|
-
)}
|
|
343
|
+
{tables.length > 0 && <TableList tables={tables} searchValue={query} />}
|
|
344
344
|
</CommandList>
|
|
345
345
|
</Command>
|
|
346
346
|
);
|
|
@@ -785,12 +785,10 @@ export const TableList: React.FC<{
|
|
|
785
785
|
return <EmptyState content="No tables found" style={stateStyle} />;
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
-
const
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
return true;
|
|
793
|
-
});
|
|
788
|
+
const query = searchValue?.trim().toLowerCase();
|
|
789
|
+
const filteredTables = query
|
|
790
|
+
? tables.filter((table) => table.name.toLowerCase().includes(query))
|
|
791
|
+
: tables;
|
|
794
792
|
|
|
795
793
|
return (
|
|
796
794
|
<>
|
|
@@ -799,7 +797,7 @@ export const TableList: React.FC<{
|
|
|
799
797
|
key={table.name}
|
|
800
798
|
table={table}
|
|
801
799
|
sqlTableContext={sqlTableContext}
|
|
802
|
-
isSearching={!!
|
|
800
|
+
isSearching={!!query}
|
|
803
801
|
tableIndentRem={tableIndentRem}
|
|
804
802
|
columnIndentRem={columnIndentRem}
|
|
805
803
|
/>
|