@marimo-team/islands 0.24.1-dev126 → 0.24.1-dev128
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/{common-XT9g93OC.js → common-B7aIxP6p.js} +1 -1
- package/dist/main.js +3 -8
- package/dist/{reveal-component-DZDh5-mu.js → reveal-component-BgttRIgC.js} +1 -1
- package/package.json +1 -1
- package/src/components/data-table/__tests__/url-detector.test.tsx +1 -1
- package/src/core/codemirror/language/__tests__/utils.test.ts +1 -1
- package/src/plugins/impl/data-frames/__tests__/schema.test.ts +34 -1
- package/src/plugins/impl/data-frames/schema.ts +5 -11
- package/src/plugins/impl/panel/__tests__/utils.test.ts +4 -4
- package/src/plugins/impl/vega/__tests__/vega.test.ts +1 -1
- package/src/utils/__tests__/events.test.ts +1 -1
|
@@ -31956,7 +31956,7 @@ function CK() {
|
|
|
31956
31956
|
return a.warn("Failed to get version from mount config"), null;
|
|
31957
31957
|
}
|
|
31958
31958
|
}
|
|
31959
|
-
var wK = CK() || "0.24.1-
|
|
31959
|
+
var wK = CK() || "0.24.1-dev128", TK = V(wK), EK = V(!0);
|
|
31960
31960
|
V(null);
|
|
31961
31961
|
//#endregion
|
|
31962
31962
|
//#region src/core/wasm/state.ts
|
package/dist/main.js
CHANGED
|
@@ -6,7 +6,7 @@ import { n as x, r as S, t as C } from "./copy-CD7S58CY.js";
|
|
|
6
6
|
import { At as w, B as T, Bn as E, Bt as D, C as O, Cn as k, Ct as A, Dn as j, Dt as M, En as N, Et as P, F, Ft as I, G as L, Gn as ee, Hn as te, I as R, It as ne, J as z, Jn as re, Jt as ie, K as ae, Kt as oe, L as se, Ln as ce, Mn as le, Mt as ue, Nn as de, Nt as fe, On as pe, Ot as me, P as he, Pn as ge, Q as _e, Qn as ve, R as ye, Rn as be, St as xe, Tn as Se, U as Ce, Un as we, Ut as Te, W as Ee, X as De, Xn as Oe, Xt as ke, Y as Ae, Yn as je, Z as Me, Zn as Ne, Zt as Pe, _ as Fe, a as Ie, an as Le, at as Re, b as ze, bn as Be, bt as Ve, cn as He, dn as Ue, dt as We, en as Ge, er as Ke, et as qe, g as Je, gn as Ye, i as Xe, in as Ze, ir as Qe, it as $e, j as et, jt as tt, k as nt, kn as rt, ln as it, lt as at, n as ot, o as st, on as ct, ot as lt, q as ut, qt as dt, rr as ft, sn as pt, st as mt, tr as ht, un as gt, ut as _t, v as vt, xn as yt, xt as bt, y as xt, yn as St, yt as Ct, z as wt, zn as Tt, zt as Et } from "./html-to-image-BTYnN4ev.js";
|
|
7
7
|
import { o as Dt, s as Ot, u as kt } from "./dist-3_o3T78I.js";
|
|
8
8
|
import { D as At, E as jt, O as Mt, S as Nt, T as Pt, _ as Ft, a as It, c as Lt, d as Rt, f as zt, g as Bt, h as Vt, i as Ht, l as Ut, m as Wt, n as Gt, o as Kt, p as qt, r as Jt, s as Yt, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./spec-CutWdqo3.js";
|
|
9
|
-
import { $ as nn, $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Cn as un, Ct as dn, D as fn, Dn as pn, Dt as mn, E as hn, En as gn, Et as _n, F as vn, Ft as yn, G as bn, Gt as xn, H as Sn, Ht as Cn, I as wn, It as Tn, J as En, Jt as Dn, K as On, Kt as kn, L as An, Lt as jn, M as Mn, N as Nn, Nt as Pn, O as Fn, Ot as In, P as Ln, Pt as Rn, Q as zn, Qt as Bn, R as Vn, Rt as Hn, S as Un, Sn as Wn, St as Gn, T as Kn, Tn as qn, Tt as Jn, U as Yn, Ut as Xn, V as Zn, Vt as Qn, W as $n, Wt as er, X as tr, Xt as nr, Y as rr, Yt as ir, Z as ar, Zt as or, _ as sr, _n as cr, _t as lr, a as ur, an as dr, at as fr, b as pr, bn as mr, bt as hr, cn as gr, dn as _r, dt as vr, en as yr, et as br, fn as xr, ft as Sr, g as Cr, gn as wr, gt as Tr, hn as Er, ht as Dr, i as Or, in as kr, it as Ar, j as jr, k as Mr, kt as Nr, l as Pr, ln as Fr, m as Ir, mn as Lr, mt as Rr, n as zr, nn as Br, nt as Vr, on as Hr, ot as Ur, pn as Wr, pt as Gr, q as Kr, qt as qr, rn as Jr, rt as Yr, s as Xr, sn as Zr, st as Qr, t as $r, tn as ei, tt as ti, un as ni, v as ri, vt as ii, w as ai, wn as oi, wt as si, x as ci, xn as li, xt as ui, y as di, yn as fi, yt as pi, z as mi, zt as hi } from "./common-
|
|
9
|
+
import { $ as nn, $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Cn as un, Ct as dn, D as fn, Dn as pn, Dt as mn, E as hn, En as gn, Et as _n, F as vn, Ft as yn, G as bn, Gt as xn, H as Sn, Ht as Cn, I as wn, It as Tn, J as En, Jt as Dn, K as On, Kt as kn, L as An, Lt as jn, M as Mn, N as Nn, Nt as Pn, O as Fn, Ot as In, P as Ln, Pt as Rn, Q as zn, Qt as Bn, R as Vn, Rt as Hn, S as Un, Sn as Wn, St as Gn, T as Kn, Tn as qn, Tt as Jn, U as Yn, Ut as Xn, V as Zn, Vt as Qn, W as $n, Wt as er, X as tr, Xt as nr, Y as rr, Yt as ir, Z as ar, Zt as or, _ as sr, _n as cr, _t as lr, a as ur, an as dr, at as fr, b as pr, bn as mr, bt as hr, cn as gr, dn as _r, dt as vr, en as yr, et as br, fn as xr, ft as Sr, g as Cr, gn as wr, gt as Tr, hn as Er, ht as Dr, i as Or, in as kr, it as Ar, j as jr, k as Mr, kt as Nr, l as Pr, ln as Fr, m as Ir, mn as Lr, mt as Rr, n as zr, nn as Br, nt as Vr, on as Hr, ot as Ur, pn as Wr, pt as Gr, q as Kr, qt as qr, rn as Jr, rt as Yr, s as Xr, sn as Zr, st as Qr, t as $r, tn as ei, tt as ti, un as ni, v as ri, vt as ii, w as ai, wn as oi, wt as si, x as ci, xn as li, xt as ui, y as di, yn as fi, yt as pi, z as mi, zt as hi } from "./common-B7aIxP6p.js";
|
|
10
10
|
import { c as gi, i as _i, n as vi, o as yi, t as bi } from "./useLifecycle-B4RGlyf0.js";
|
|
11
11
|
import { t as xi } from "./check-CHig47QV.js";
|
|
12
12
|
import { A as Si, C as Ci, D as wi, E as Ti, F as Ei, I as Di, M as Oi, N as ki, P as Ai, R as ji, S as Mi, a as Ni, b as Pi, c as Fi, i as Ii, j as Li, l as Ri, n as zi, o as Bi, r as Vi, s as Hi, t as Ui, w as Wi, x as Gi } from "./select-3qHpFKF9.js";
|
|
@@ -15669,12 +15669,7 @@ var tN = (e, t) => e[t] ? e[t] : [], nN = U(Fl([rC(), Fl([Qp(zM).catch("unknown"
|
|
|
15669
15669
|
value: "",
|
|
15670
15670
|
type: "condition",
|
|
15671
15671
|
negate: !1
|
|
15672
|
-
}]).transform((e) => (
|
|
15673
|
-
type: "group",
|
|
15674
|
-
operator: "and",
|
|
15675
|
-
children: e.filter((e) => eN(e.operator, e.value)),
|
|
15676
|
-
negate: !1
|
|
15677
|
-
}))
|
|
15672
|
+
}]).transform((e) => e.filter((e) => eN(e.operator, e.value)))
|
|
15678
15673
|
}), dN = B({
|
|
15679
15674
|
type: pf("group_by"),
|
|
15680
15675
|
column_ids: U(rN.describe(aT.of({ special: "column_id" }))).default([]).describe(aT.of({
|
|
@@ -35316,7 +35311,7 @@ function lJ(e) {
|
|
|
35316
35311
|
}
|
|
35317
35312
|
//#endregion
|
|
35318
35313
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
35319
|
-
var uJ = q.lazy(() => import("./reveal-component-
|
|
35314
|
+
var uJ = q.lazy(() => import("./reveal-component-BgttRIgC.js")), dJ = (e) => {
|
|
35320
35315
|
let t = (0, Y.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Xm(me), s = a === "read" || o, c = Xm(Ae) > 1, [l, u] = (0, q.useState)(null), d;
|
|
35321
35316
|
t[0] !== i || t[1] !== n ? (d = sW(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
35322
35317
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
@@ -4,7 +4,7 @@ import { t as o } from "./react-DMWcHin-.js";
|
|
|
4
4
|
import { t as s } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
5
|
import { Ot as c, ot as l } from "./html-to-image-BTYnN4ev.js";
|
|
6
6
|
import { u } from "./dist-3_o3T78I.js";
|
|
7
|
-
import { _n as d, c as f, ct as p, g as m, h, l as g, lt as _, n as v, o as y, r as b, t as x, u as S, ut as C, vn as w, xn as T } from "./common-
|
|
7
|
+
import { _n as d, c as f, ct as p, g as m, h, l as g, lt as _, n as v, o as y, r as b, t as x, u as S, ut as C, vn as w, xn as T } from "./common-B7aIxP6p.js";
|
|
8
8
|
import { R as E } from "./select-3qHpFKF9.js";
|
|
9
9
|
import { Y as D } from "./dropdown-menu-DhCfcscX.js";
|
|
10
10
|
import { t as O } from "./jsx-runtime-CpoKNRgu.js";
|
package/package.json
CHANGED
|
@@ -98,7 +98,7 @@ describe("UrlDetector", () => {
|
|
|
98
98
|
expect(img).toHaveAttribute("src", dataUri);
|
|
99
99
|
});
|
|
100
100
|
|
|
101
|
-
it.
|
|
101
|
+
it.fails("prevents event propagation on link clicks", () => {
|
|
102
102
|
const mockStopPropagation = vi.fn();
|
|
103
103
|
render(<UrlDetector parts={parseContent("Check https://marimo.io")} />);
|
|
104
104
|
const link = screen.getByRole("link");
|
|
@@ -158,7 +158,7 @@ Hello,
|
|
|
158
158
|
});
|
|
159
159
|
|
|
160
160
|
// f-strings not currently supported
|
|
161
|
-
it.
|
|
161
|
+
it.fails("handles markdown with variables", () => {
|
|
162
162
|
const mockEditor = createEditor('mo.md(f"""{a}\n{b}!""")');
|
|
163
163
|
// Set to markdown
|
|
164
164
|
switchLanguage(mockEditor, { language: "markdown" });
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
3
|
import { describe, expect, it } from "vitest";
|
|
4
|
-
import { columnToFieldTypesSchema } from "../schema";
|
|
4
|
+
import { columnToFieldTypesSchema, TransformationsSchema } from "../schema";
|
|
5
|
+
import type { ColumnId } from "../types";
|
|
5
6
|
|
|
6
7
|
describe("columnToFieldTypesSchema", () => {
|
|
7
8
|
it("keeps known field types", () => {
|
|
@@ -36,3 +37,35 @@ describe("columnToFieldTypesSchema", () => {
|
|
|
36
37
|
expect(result).toEqual([["geom", ["geometry", "geometry"]]]);
|
|
37
38
|
});
|
|
38
39
|
});
|
|
40
|
+
|
|
41
|
+
describe("FilterRowsTransformSchema", () => {
|
|
42
|
+
const condition = {
|
|
43
|
+
column_id: "col" as ColumnId,
|
|
44
|
+
operator: "in" as const,
|
|
45
|
+
value: ["a"],
|
|
46
|
+
type: "condition" as const,
|
|
47
|
+
negate: false,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
it("does not wrap where in a FilterGroup", () => {
|
|
51
|
+
const result = TransformationsSchema.parse({
|
|
52
|
+
transforms: [
|
|
53
|
+
{
|
|
54
|
+
type: "filter_rows",
|
|
55
|
+
operation: "keep_rows",
|
|
56
|
+
where: [condition],
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
expect(result).toEqual({
|
|
62
|
+
transforms: [
|
|
63
|
+
{
|
|
64
|
+
type: "filter_rows",
|
|
65
|
+
operation: "keep_rows",
|
|
66
|
+
where: [condition],
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
});
|
|
@@ -129,17 +129,11 @@ const FilterRowsTransformSchema = z.object({
|
|
|
129
129
|
negate: false,
|
|
130
130
|
},
|
|
131
131
|
])
|
|
132
|
-
.transform((value)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
type: "group",
|
|
138
|
-
operator: "and",
|
|
139
|
-
children: validConditions,
|
|
140
|
-
negate: false,
|
|
141
|
-
};
|
|
142
|
-
}),
|
|
132
|
+
.transform((value) =>
|
|
133
|
+
value.filter((condition) =>
|
|
134
|
+
isConditionValueValid(condition.operator, condition.value),
|
|
135
|
+
),
|
|
136
|
+
),
|
|
143
137
|
});
|
|
144
138
|
|
|
145
139
|
const GroupByTransformSchema = z
|
|
@@ -19,8 +19,8 @@ describe("MessageSchema", () => {
|
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
describe
|
|
23
|
-
it("should extract ArrayBuffer and replace with id", () => {
|
|
22
|
+
describe("extractBuffers", () => {
|
|
23
|
+
it.fails("should extract ArrayBuffer and replace with id", () => {
|
|
24
24
|
const buffer = new ArrayBuffer(8);
|
|
25
25
|
const input = { data: buffer };
|
|
26
26
|
const buffers: ArrayBuffer[] = [];
|
|
@@ -31,7 +31,7 @@ describe.skip("extractBuffers", () => {
|
|
|
31
31
|
expect(buffers).toEqual([buffer]);
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
it("should handle nested objects and arrays", () => {
|
|
34
|
+
it.fails("should handle nested objects and arrays", () => {
|
|
35
35
|
const buffer1 = new ArrayBuffer(8);
|
|
36
36
|
const buffer2 = new ArrayBuffer(16);
|
|
37
37
|
const input = {
|
|
@@ -51,7 +51,7 @@ describe.skip("extractBuffers", () => {
|
|
|
51
51
|
expect(buffers).toEqual([buffer1, buffer2]);
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
it("should handle Map objects", () => {
|
|
54
|
+
it.fails("should handle Map objects", () => {
|
|
55
55
|
const buffer = new ArrayBuffer(8);
|
|
56
56
|
const input = new Map([["key", buffer]]);
|
|
57
57
|
const buffers: ArrayBuffer[] = [];
|
|
@@ -470,7 +470,7 @@ Bob.Jones,25
|
|
|
470
470
|
`);
|
|
471
471
|
});
|
|
472
472
|
|
|
473
|
-
it.
|
|
473
|
+
it.fails("should handle arrow files", async () => {
|
|
474
474
|
// Create a small arrow file with schema and one empty record batch
|
|
475
475
|
const arrowData = new Uint8Array([
|
|
476
476
|
0x41,
|
|
@@ -179,7 +179,7 @@ describe("Events.fromInput", () => {
|
|
|
179
179
|
|
|
180
180
|
// jsdom does not implement isContentEditable, so this is tested
|
|
181
181
|
// via shouldIgnoreKeyboardEvent which has a closest() fallback.
|
|
182
|
-
test.
|
|
182
|
+
test.fails("returns true for contentEditable", () => {
|
|
183
183
|
const div = document.createElement("div");
|
|
184
184
|
div.setAttribute("contenteditable", "true");
|
|
185
185
|
document.body.append(div);
|