@marimo-team/islands 0.14.6 → 0.14.8-dev10
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/{ConnectedDataExplorerComponent-CqIWQ30i.js → ConnectedDataExplorerComponent-DmHkAxGk.js} +2 -2
- package/dist/{ImageComparisonComponent-CF1f08Cu.js → ImageComparisonComponent-BgKKVR-3.js} +1 -1
- package/dist/VegaLite-D6JDURSL.js +16431 -0
- package/dist/{_baseUniq-CHhTgU4-.js → _baseUniq-tnn79PWq.js} +70 -70
- package/dist/{any-language-editor-bHEAhJB1.js → any-language-editor-2lda6ovv.js} +1 -1
- package/dist/{architectureDiagram-IEHRJDOE-C-2Hs2Su.js → architectureDiagram-IEHRJDOE-BXOP7mFl.js} +5 -5
- package/dist/assets/{worker-Tb399Bgs.js → worker-B38OlDpY.js} +4 -1
- package/dist/{blockDiagram-JOT3LUYC-BrpKeZzF.js → blockDiagram-JOT3LUYC-BRZv7T2b.js} +5 -5
- package/dist/{c4Diagram-VJAJSXHY-BrV9a8iY.js → c4Diagram-VJAJSXHY--9jOrDIu.js} +2 -2
- package/dist/{channel-BCCySnBS.js → channel-CKf7Y1b5.js} +1 -1
- package/dist/{chunk-4BMEZGHF-CrwDmMdV.js → chunk-4BMEZGHF-DARtgIft.js} +1 -1
- package/dist/{chunk-A2AXSNBT-DfixdHEX.js → chunk-A2AXSNBT-CwyKTfVV.js} +2 -2
- package/dist/{chunk-AEK57VVT-BcTiLayZ.js → chunk-AEK57VVT-C-ex6TO-.js} +2 -2
- package/dist/{chunk-D6G4REZN-C8h2vmvz.js → chunk-D6G4REZN-BxxNcHel.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-Rw-SFx7e.js → chunk-RZ5BOZE2-BZZHeQaK.js} +1 -1
- package/dist/{chunk-XZIHB7SX-DjX34F5v.js → chunk-XZIHB7SX-DjcT30f6.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-CilkDrn-.js → classDiagram-GIVACNV2-aMwYXPXu.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-CilkDrn-.js → classDiagram-v2-COTLJTTW-aMwYXPXu.js} +2 -2
- package/dist/{clone-qe1IPXVN.js → clone-ChLm0epY.js} +1 -1
- package/dist/{dagre-OKDRZEBW-DtSQhBy6.js → dagre-OKDRZEBW-BBJPwbPT.js} +6 -6
- package/dist/{data-editor-aQgC2JGU.js → data-editor-Cem_ZR4r.js} +1 -1
- package/dist/{diagram-SSKATNLV-u1HpOw7U.js → diagram-SSKATNLV-CwJ5QIPb.js} +3 -3
- package/dist/{diagram-VNBRO52H-XhJtibNH.js → diagram-VNBRO52H-DMudHS22.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-DcL-6jfX.js → erDiagram-Q7BY3M3F-DtDpl3UW.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-C82BrFZc.js → flowDiagram-4HSFHLVR-CWsupdp-.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-DrOPBVgk.js → ganttDiagram-APWFNJXF-BPcli7Yb.js} +280 -282
- package/dist/{gitGraphDiagram-7IBYFJ6S-SHuh1oh2.js → gitGraphDiagram-7IBYFJ6S-OHes1L_-.js} +4 -4
- package/dist/{graph-_bNgZd8c.js → graph-BGJRoGzt.js} +3 -3
- package/dist/{index-Blaf5lY_.js → index--kiW4X6C.js} +3 -3
- package/dist/{index-Bkqtm2mf.js → index-CP_mtz8b.js} +1 -1
- package/dist/{index-DVlxTMxh.js → index-XI4t-uoO.js} +1 -1
- package/dist/{index-CSHUdtFw.js → index-YZbaSQnu.js} +1 -1
- package/dist/{infoDiagram-PH2N3AL5-CxzXA5xu.js → infoDiagram-PH2N3AL5-0sOjawAK.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-BBkE4jwf.js → journeyDiagram-U35MCT3I-C-vMOgFz.js} +3 -3
- package/dist/{kanban-definition-NDS4AKOZ-DQd2eorp.js → kanban-definition-NDS4AKOZ-B0RjBp_b.js} +1 -1
- package/dist/{layout-DlYahiNl.js → layout-BYUq2To5.js} +55 -55
- package/dist/{main-BUWYTxG8.js → main-certQvhL.js} +74478 -52367
- package/dist/main.js +1 -1
- package/dist/{mermaid-CzoeiYP0.js → mermaid-C1hAnlFn.js} +338 -339
- package/dist/min-DhFsBKWX.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-D2IjGy3l.js → mindmap-definition-ALO5MXBD-CqgNXpqP.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-wwfSp3LU.js → pieDiagram-IB7DONF6-BbGzYaxU.js} +15 -17
- package/dist/{quadrantDiagram-7GDLP6J5-CYWL7MfJ.js → quadrantDiagram-7GDLP6J5-BIfe4qAS.js} +2 -2
- package/dist/{radar-MK3ICKWK-DOM3fShi.js → radar-MK3ICKWK-WErRIsmu.js} +5 -5
- package/dist/{react-plotly-BJIIdXSG.js → react-plotly-BgK1q2Mu.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-CTIa4Ar5.js → requirementDiagram-KVF5MWMF-BcqQkpx_.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-D2lx9spT.js → sankeyDiagram-QLVOVGJD-VRz7wtXO.js} +68 -69
- package/dist/{sequenceDiagram-X6HHIX6F-pKnAQnEi.js → sequenceDiagram-X6HHIX6F-DNNoemoY.js} +3 -3
- package/dist/{slides-component-DlbhGIlO.js → slides-component-B5JkdM7f.js} +26 -26
- package/dist/{stateDiagram-DGXRK772-BZZwO582.js → stateDiagram-DGXRK772-DO1-s7zM.js} +5 -5
- package/dist/{stateDiagram-v2-YXO3MK2T-DkOmOHyX.js → stateDiagram-v2-YXO3MK2T-BTnv0xX9.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{timeline-definition-BDJGKUSR-Dn4Lf7qF.js → timeline-definition-BDJGKUSR-CB8MCOuX.js} +2 -2
- package/dist/{vega-component-vNeDfZxH.js → vega-component-BB9uvDjX.js} +110 -122
- package/dist/{xychartDiagram-VJFVF3MP-_ffAFlDi.js → xychartDiagram-VJFVF3MP-DRqfNvh5.js} +6 -10
- package/package.json +9 -10
- package/dist/VegaLite-CbqXsWcl.js +0 -36029
- package/dist/arc-BXrety1g.js +0 -83
- package/dist/colors-BD7LS4qt.js +0 -7
- package/dist/init-DxzjmxYy.js +0 -32
- package/dist/linear-DPZ3NVjL.js +0 -211
- package/dist/min-w5hg8CZd.js +0 -80
- package/dist/ordinal-CYN5qNoq.js +0 -77
- package/dist/range-DdOGybNB.js +0 -9
- package/dist/time-DQzs6Sui.js +0 -195
- package/dist/timer-BYwnU4DF.js +0 -1475
package/dist/{timeline-definition-BDJGKUSR-Dn4Lf7qF.js → timeline-definition-BDJGKUSR-CB8MCOuX.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as s, c as xt, l as E, d as j, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-
|
|
2
|
-
import {
|
|
1
|
+
import { _ as s, c as xt, l as E, d as j, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-C1hAnlFn.js";
|
|
2
|
+
import { g as nt } from "./main-certQvhL.js";
|
|
3
3
|
var Q = function() {
|
|
4
4
|
var n = /* @__PURE__ */ s(function(x, i, a, c) {
|
|
5
5
|
for (a = a || {}, c = x.length; c--; a[x[c]] = i) ;
|
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as m, a as
|
|
3
|
-
function
|
|
4
|
-
return e.data && "url" in e.data && (e.data.url =
|
|
5
|
-
}
|
|
6
|
-
function N(e) {
|
|
7
|
-
function t(n) {
|
|
8
|
-
return !!(n == null ? void 0 : n.schema) && Array.isArray(n.schema.fields) && typeof n.toArray == "function";
|
|
9
|
-
}
|
|
10
|
-
return (t(e) ? e : re(e)).toArray();
|
|
1
|
+
import { a1 as N, a2 as K, c as Z, a3 as z, a4 as R, a5 as G, j as d, E as W, T as $, P as k, a6 as S, a7 as M, a8 as B, L as x, a9 as _, aa as U, ab as q, ac as Y, ad as J, ae as Q, af as X } from "./main-certQvhL.js";
|
|
2
|
+
import { M as m, a as ee } from "./VegaLite-D6JDURSL.js";
|
|
3
|
+
function te(e) {
|
|
4
|
+
return e.data && "url" in e.data && (e.data.url = N(e.data.url).href), e;
|
|
11
5
|
}
|
|
12
|
-
|
|
13
|
-
function re(e, t) {
|
|
14
|
-
return K(e, {
|
|
15
|
-
useProxy: true
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
const S = /* @__PURE__ */ new Set(["boxplot", "errorband", "errorbar"]), v = {
|
|
6
|
+
const L = /* @__PURE__ */ new Set(["boxplot", "errorband", "errorbar"]), v = {
|
|
19
7
|
getMarkType(e) {
|
|
20
8
|
const t = typeof e == "string" ? e : e.type;
|
|
21
|
-
if (
|
|
9
|
+
if (L.has(t))
|
|
22
10
|
throw new Error("Not supported");
|
|
23
11
|
return t;
|
|
24
12
|
},
|
|
25
13
|
isInteractive(e) {
|
|
26
14
|
const t = typeof e == "string" ? e : e.type;
|
|
27
|
-
return !
|
|
15
|
+
return !L.has(t);
|
|
28
16
|
},
|
|
29
17
|
makeClickable(e) {
|
|
30
18
|
const t = typeof e == "string" ? e : e.type;
|
|
@@ -43,36 +31,36 @@ const S = /* @__PURE__ */ new Set(["boxplot", "errorband", "errorbar"]), v = {
|
|
|
43
31
|
return typeof e == "string" ? null : "opacity" in e && typeof e.opacity == "number" ? e.opacity : null;
|
|
44
32
|
}
|
|
45
33
|
};
|
|
46
|
-
function
|
|
34
|
+
function ne(e) {
|
|
47
35
|
if (!e || !("encoding" in e))
|
|
48
36
|
return [];
|
|
49
37
|
const {
|
|
50
38
|
encoding: t
|
|
51
39
|
} = e;
|
|
52
40
|
return t ? Object.entries(t).flatMap((o) => {
|
|
53
|
-
const [
|
|
54
|
-
return
|
|
41
|
+
const [a, r] = o;
|
|
42
|
+
return r ? ae.has(a) ? "field" in r && typeof r.field == "string" ? [r.field] : "condition" in r && r.condition && typeof r.condition == "object" && "field" in r.condition && r.condition.field && typeof r.condition.field == "string" ? [r.condition.field] : [] : [] : [];
|
|
55
43
|
}) : [];
|
|
56
44
|
}
|
|
57
|
-
const
|
|
58
|
-
function
|
|
59
|
-
const
|
|
60
|
-
and: n.map((
|
|
61
|
-
param:
|
|
45
|
+
const ae = /* @__PURE__ */ new Set(["color", "fill", "fillOpacity", "opacity", "shape", "size"]);
|
|
46
|
+
function re(e, t, n, o) {
|
|
47
|
+
const a = {
|
|
48
|
+
and: n.map((r) => ({
|
|
49
|
+
param: r
|
|
62
50
|
}))
|
|
63
51
|
};
|
|
64
52
|
switch (e) {
|
|
65
53
|
// As of now, we only update opacity to signal selection
|
|
66
54
|
case "opacity": {
|
|
67
|
-
const
|
|
55
|
+
const r = v.getOpacity(o) || 1;
|
|
68
56
|
return {
|
|
69
57
|
...t,
|
|
70
58
|
opacity: {
|
|
71
59
|
condition: {
|
|
72
|
-
test:
|
|
73
|
-
value:
|
|
60
|
+
test: a,
|
|
61
|
+
value: r
|
|
74
62
|
},
|
|
75
|
-
value:
|
|
63
|
+
value: r / 5
|
|
76
64
|
// 20% opacity
|
|
77
65
|
}
|
|
78
66
|
};
|
|
@@ -81,7 +69,7 @@ function ie(e, t, n, o) {
|
|
|
81
69
|
return t;
|
|
82
70
|
}
|
|
83
71
|
}
|
|
84
|
-
const
|
|
72
|
+
const h = {
|
|
85
73
|
point(e) {
|
|
86
74
|
return e == null ? "select_point" : `select_point_${e}`;
|
|
87
75
|
},
|
|
@@ -108,7 +96,7 @@ const g = {
|
|
|
108
96
|
}, b = {
|
|
109
97
|
highlight() {
|
|
110
98
|
return {
|
|
111
|
-
name:
|
|
99
|
+
name: h.HIGHLIGHT,
|
|
112
100
|
select: {
|
|
113
101
|
type: "point",
|
|
114
102
|
on: "mouseover"
|
|
@@ -117,10 +105,10 @@ const g = {
|
|
|
117
105
|
},
|
|
118
106
|
interval(e, t) {
|
|
119
107
|
return {
|
|
120
|
-
name:
|
|
108
|
+
name: h.interval(t),
|
|
121
109
|
select: {
|
|
122
110
|
type: "interval",
|
|
123
|
-
encodings:
|
|
111
|
+
encodings: T(e),
|
|
124
112
|
mark: {
|
|
125
113
|
fill: "#669EFF",
|
|
126
114
|
fillOpacity: 0.07,
|
|
@@ -135,17 +123,17 @@ const g = {
|
|
|
135
123
|
},
|
|
136
124
|
point(e, t) {
|
|
137
125
|
return {
|
|
138
|
-
name:
|
|
126
|
+
name: h.point(t),
|
|
139
127
|
select: {
|
|
140
128
|
type: "point",
|
|
141
|
-
encodings:
|
|
129
|
+
encodings: T(e),
|
|
142
130
|
on: "click[!event.metaKey]"
|
|
143
131
|
}
|
|
144
132
|
};
|
|
145
133
|
},
|
|
146
134
|
legend(e) {
|
|
147
135
|
return {
|
|
148
|
-
name:
|
|
136
|
+
name: h.legendSelection(e),
|
|
149
137
|
select: {
|
|
150
138
|
type: "point",
|
|
151
139
|
fields: [e]
|
|
@@ -155,7 +143,7 @@ const g = {
|
|
|
155
143
|
},
|
|
156
144
|
panZoom() {
|
|
157
145
|
return {
|
|
158
|
-
name:
|
|
146
|
+
name: h.PAN_ZOOM,
|
|
159
147
|
bind: "scales",
|
|
160
148
|
select: {
|
|
161
149
|
type: "interval",
|
|
@@ -166,7 +154,7 @@ const g = {
|
|
|
166
154
|
};
|
|
167
155
|
}
|
|
168
156
|
};
|
|
169
|
-
function
|
|
157
|
+
function T(e) {
|
|
170
158
|
switch (v.getMarkType(e.mark)) {
|
|
171
159
|
case m.image:
|
|
172
160
|
case m.trail:
|
|
@@ -175,7 +163,7 @@ function L(e) {
|
|
|
175
163
|
case m.arc:
|
|
176
164
|
return ["color"];
|
|
177
165
|
case m.bar: {
|
|
178
|
-
const n =
|
|
166
|
+
const n = oe(e);
|
|
179
167
|
return n === "horizontal" ? ["y"] : n === "vertical" ? ["x"] : void 0;
|
|
180
168
|
}
|
|
181
169
|
case m.circle:
|
|
@@ -190,10 +178,10 @@ function L(e) {
|
|
|
190
178
|
return ["x", "y"];
|
|
191
179
|
}
|
|
192
180
|
}
|
|
193
|
-
function
|
|
194
|
-
return "params" in e && e.params && e.params.length > 0 ? e.params.filter((n) => n == null ? false : "select" in n && n.select !== void 0).map((n) => n.name) : "layer" in e ? [...new Set(e.layer.flatMap(
|
|
181
|
+
function A(e) {
|
|
182
|
+
return "params" in e && e.params && e.params.length > 0 ? e.params.filter((n) => n == null ? false : "select" in n && n.select !== void 0).map((n) => n.name) : "layer" in e ? [...new Set(e.layer.flatMap(A))] : [];
|
|
195
183
|
}
|
|
196
|
-
function
|
|
184
|
+
function oe(e) {
|
|
197
185
|
var _a, _b;
|
|
198
186
|
if (!e || !("mark" in e))
|
|
199
187
|
return;
|
|
@@ -205,7 +193,7 @@ function se(e) {
|
|
|
205
193
|
if (n && "aggregate" in n)
|
|
206
194
|
return "vertical";
|
|
207
195
|
}
|
|
208
|
-
function
|
|
196
|
+
function ie(e, t) {
|
|
209
197
|
var _a, _b;
|
|
210
198
|
let {
|
|
211
199
|
chartSelection: n = true,
|
|
@@ -232,7 +220,7 @@ function le(e, t) {
|
|
|
232
220
|
if (!("mark" in l))
|
|
233
221
|
return l;
|
|
234
222
|
let u = l;
|
|
235
|
-
return u =
|
|
223
|
+
return u = C(u, n, f), u = P(u), f === 0 && (u = I(u)), u;
|
|
236
224
|
});
|
|
237
225
|
return {
|
|
238
226
|
...e,
|
|
@@ -242,20 +230,20 @@ function le(e, t) {
|
|
|
242
230
|
if (!("mark" in e) || !v.isInteractive(e.mark))
|
|
243
231
|
return e;
|
|
244
232
|
let s = e;
|
|
245
|
-
return s =
|
|
233
|
+
return s = se(s, o), s = C(s, n, void 0), s = P(s), s = I(s), s;
|
|
246
234
|
}
|
|
247
|
-
function
|
|
235
|
+
function se(e, t) {
|
|
248
236
|
if (t === false)
|
|
249
237
|
return e;
|
|
250
|
-
let n =
|
|
251
|
-
Array.isArray(t) && (n = n.filter((
|
|
252
|
-
const o = n.map((
|
|
238
|
+
let n = ne(e);
|
|
239
|
+
Array.isArray(t) && (n = n.filter((r) => t.includes(r)));
|
|
240
|
+
const o = n.map((r) => b.legend(r)), a = [...e.params || [], ...o];
|
|
253
241
|
return {
|
|
254
242
|
...e,
|
|
255
|
-
params:
|
|
243
|
+
params: a
|
|
256
244
|
};
|
|
257
245
|
}
|
|
258
|
-
function
|
|
246
|
+
function C(e, t, n) {
|
|
259
247
|
if (t === false)
|
|
260
248
|
return e;
|
|
261
249
|
let o;
|
|
@@ -266,16 +254,16 @@ function T(e, t, n) {
|
|
|
266
254
|
}
|
|
267
255
|
if (o === "geoshape")
|
|
268
256
|
return e;
|
|
269
|
-
const
|
|
270
|
-
if (!
|
|
257
|
+
const a = t === true ? le(o) : [t];
|
|
258
|
+
if (!a)
|
|
271
259
|
return e;
|
|
272
|
-
const
|
|
260
|
+
const r = a.map((i) => i === "interval" ? b.interval(e, n) : b.point(e, n)), s = [...e.params || [], ...r];
|
|
273
261
|
return {
|
|
274
262
|
...e,
|
|
275
263
|
params: s
|
|
276
264
|
};
|
|
277
265
|
}
|
|
278
|
-
function
|
|
266
|
+
function I(e) {
|
|
279
267
|
let t;
|
|
280
268
|
try {
|
|
281
269
|
t = v.getMarkType(e.mark);
|
|
@@ -284,20 +272,20 @@ function C(e) {
|
|
|
284
272
|
if (t === "geoshape")
|
|
285
273
|
return e;
|
|
286
274
|
const n = e.params || [];
|
|
287
|
-
return n.some((
|
|
275
|
+
return n.some((a) => a.bind === "scales") ? e : {
|
|
288
276
|
...e,
|
|
289
277
|
params: [...n, b.panZoom()]
|
|
290
278
|
};
|
|
291
279
|
}
|
|
292
280
|
function P(e) {
|
|
293
|
-
const t = "encoding" in e ? e.encoding : void 0, n = e.params || [], o = n.map((
|
|
281
|
+
const t = "encoding" in e ? e.encoding : void 0, n = e.params || [], o = n.map((a) => a.name);
|
|
294
282
|
return n.length === 0 || !v.isInteractive(e.mark) ? e : {
|
|
295
283
|
...e,
|
|
296
284
|
mark: v.makeClickable(e.mark),
|
|
297
|
-
encoding:
|
|
285
|
+
encoding: re("opacity", t || {}, o, e.mark)
|
|
298
286
|
};
|
|
299
287
|
}
|
|
300
|
-
function
|
|
288
|
+
function le(e) {
|
|
301
289
|
switch (e) {
|
|
302
290
|
case "arc":
|
|
303
291
|
case "area":
|
|
@@ -312,51 +300,51 @@ function ue(e) {
|
|
|
312
300
|
return ["point", "interval"];
|
|
313
301
|
}
|
|
314
302
|
}
|
|
315
|
-
async function
|
|
303
|
+
async function ce(e) {
|
|
316
304
|
if (!e)
|
|
317
305
|
return e;
|
|
318
306
|
const t = "datasets" in e ? {
|
|
319
307
|
...e.datasets
|
|
320
|
-
} : {}, n = async (
|
|
321
|
-
if (!
|
|
322
|
-
return
|
|
323
|
-
if ("layer" in
|
|
324
|
-
const i = await Promise.all(
|
|
325
|
-
|
|
326
|
-
...
|
|
308
|
+
} : {}, n = async (a) => {
|
|
309
|
+
if (!a)
|
|
310
|
+
return a;
|
|
311
|
+
if ("layer" in a) {
|
|
312
|
+
const i = await Promise.all(a.layer.map(n));
|
|
313
|
+
a = {
|
|
314
|
+
...a,
|
|
327
315
|
layer: i
|
|
328
316
|
};
|
|
329
317
|
}
|
|
330
|
-
if ("hconcat" in
|
|
331
|
-
const i = await Promise.all(
|
|
332
|
-
|
|
333
|
-
...
|
|
318
|
+
if ("hconcat" in a) {
|
|
319
|
+
const i = await Promise.all(a.hconcat.map(n));
|
|
320
|
+
a = {
|
|
321
|
+
...a,
|
|
334
322
|
hconcat: i
|
|
335
323
|
};
|
|
336
324
|
}
|
|
337
|
-
if ("vconcat" in
|
|
338
|
-
const i = await Promise.all(
|
|
339
|
-
|
|
340
|
-
...
|
|
325
|
+
if ("vconcat" in a) {
|
|
326
|
+
const i = await Promise.all(a.vconcat.map(n));
|
|
327
|
+
a = {
|
|
328
|
+
...a,
|
|
341
329
|
vconcat: i
|
|
342
330
|
};
|
|
343
331
|
}
|
|
344
|
-
if ("spec" in
|
|
345
|
-
...
|
|
346
|
-
spec: await n(
|
|
347
|
-
}), !
|
|
348
|
-
return
|
|
349
|
-
let
|
|
332
|
+
if ("spec" in a && (a = {
|
|
333
|
+
...a,
|
|
334
|
+
spec: await n(a.spec)
|
|
335
|
+
}), !a.data || !("url" in a.data))
|
|
336
|
+
return a;
|
|
337
|
+
let r;
|
|
350
338
|
try {
|
|
351
|
-
|
|
339
|
+
r = N(a.data.url);
|
|
352
340
|
} catch {
|
|
353
|
-
return
|
|
341
|
+
return a;
|
|
354
342
|
}
|
|
355
|
-
const s = await
|
|
356
|
-
return t[
|
|
357
|
-
...
|
|
343
|
+
const s = await K(r.href, a.data.format);
|
|
344
|
+
return t[r.pathname] = s, {
|
|
345
|
+
...a,
|
|
358
346
|
data: {
|
|
359
|
-
name:
|
|
347
|
+
name: r.pathname
|
|
360
348
|
}
|
|
361
349
|
};
|
|
362
350
|
}, o = await n(e);
|
|
@@ -365,69 +353,69 @@ async function me(e) {
|
|
|
365
353
|
datasets: t
|
|
366
354
|
};
|
|
367
355
|
}
|
|
368
|
-
|
|
369
|
-
const
|
|
370
|
-
const t =
|
|
356
|
+
R("arrow", G);
|
|
357
|
+
const ye = (e) => {
|
|
358
|
+
const t = Z.c(11), {
|
|
371
359
|
value: n,
|
|
372
360
|
setValue: o,
|
|
373
|
-
chartSelection:
|
|
374
|
-
fieldSelection:
|
|
361
|
+
chartSelection: a,
|
|
362
|
+
fieldSelection: r,
|
|
375
363
|
spec: s
|
|
376
364
|
} = e;
|
|
377
365
|
let i, l;
|
|
378
|
-
t[0] !== s ? (i = async () =>
|
|
366
|
+
t[0] !== s ? (i = async () => ce(s), l = [s], t[0] = s, t[1] = i, t[2] = l) : (i = t[1], l = t[2]);
|
|
379
367
|
const {
|
|
380
368
|
data: f,
|
|
381
369
|
error: u
|
|
382
|
-
} =
|
|
370
|
+
} = z(i, l);
|
|
383
371
|
if (u) {
|
|
384
372
|
let y;
|
|
385
|
-
return t[3] !== u ? (y = /* @__PURE__ */ d.jsx(
|
|
373
|
+
return t[3] !== u ? (y = /* @__PURE__ */ d.jsx(W, { error: u }), t[3] = u, t[4] = y) : y = t[4], y;
|
|
386
374
|
}
|
|
387
375
|
if (!f)
|
|
388
376
|
return null;
|
|
389
|
-
let
|
|
390
|
-
return t[5] !==
|
|
391
|
-
},
|
|
377
|
+
let g;
|
|
378
|
+
return t[5] !== a || t[6] !== r || t[7] !== f || t[8] !== o || t[9] !== n ? (g = /* @__PURE__ */ d.jsx(ue, { value: n, setValue: o, chartSelection: a, fieldSelection: r, spec: f }), t[5] = a, t[6] = r, t[7] = f, t[8] = o, t[9] = n, t[10] = g) : g = t[10], g;
|
|
379
|
+
}, ue = ({
|
|
392
380
|
value: e,
|
|
393
381
|
setValue: t,
|
|
394
382
|
chartSelection: n,
|
|
395
383
|
fieldSelection: o,
|
|
396
|
-
spec:
|
|
384
|
+
spec: a
|
|
397
385
|
}) => {
|
|
398
386
|
const {
|
|
399
|
-
theme:
|
|
400
|
-
} =
|
|
387
|
+
theme: r
|
|
388
|
+
} = $(), s = k.useRef(void 0), [i, l] = k.useState(), f = S(a), u = k.useMemo(() => ie(te(f), {
|
|
401
389
|
chartSelection: n,
|
|
402
390
|
fieldSelection: o
|
|
403
|
-
}), [f, n, o]),
|
|
391
|
+
}), [f, n, o]), g = k.useMemo(() => A(u), [u]), y = M((c) => {
|
|
404
392
|
t({
|
|
405
393
|
...e,
|
|
406
394
|
...c
|
|
407
395
|
});
|
|
408
|
-
}),
|
|
409
|
-
x.debug("[Vega signal]",
|
|
410
|
-
let E =
|
|
411
|
-
E =
|
|
412
|
-
[
|
|
396
|
+
}), j = S(g), V = k.useMemo(() => j.reduce((c, p) => (h.PAN_ZOOM === p || (c[p] = B((w, O) => {
|
|
397
|
+
x.debug("[Vega signal]", w, O);
|
|
398
|
+
let E = _.mapValues(O, fe);
|
|
399
|
+
E = _.mapValues(E, de), y({
|
|
400
|
+
[w]: E
|
|
413
401
|
});
|
|
414
|
-
}, 100)), c), {}), [
|
|
402
|
+
}, 100)), c), {}), [j, y]), D = M((c) => {
|
|
415
403
|
x.error(c), x.debug(u), l(c);
|
|
416
404
|
}), H = M((c) => {
|
|
417
405
|
x.debug("[Vega view] created", c), s.current = c, l(void 0);
|
|
418
|
-
}),
|
|
406
|
+
}), F = () => {
|
|
419
407
|
const c = [];
|
|
420
|
-
return
|
|
408
|
+
return h.hasPoint(g) && c.push(["Point selection", "click to select a point; hold shift for multi-select"]), h.hasInterval(g) && c.push(["Interval selection", "click and drag to select an interval"]), h.hasLegend(g) && c.push(["Legend selection", "click to select a legend item; hold shift for multi-select"]), h.hasPanZoom(g) && c.push(["Pan", "hold the meta key and drag"], ["Zoom", "hold the meta key and scroll"]), c.length === 0 ? null : /* @__PURE__ */ d.jsx(Q, { delayDuration: 300, side: "left", content: /* @__PURE__ */ d.jsx("div", { className: "text-xs flex flex-col", children: c.map((p, w) => /* @__PURE__ */ d.jsxs("div", { children: [
|
|
421
409
|
/* @__PURE__ */ d.jsxs("span", { className: "font-bold tracking-wide", children: [
|
|
422
410
|
p[0],
|
|
423
411
|
":"
|
|
424
412
|
] }),
|
|
425
413
|
" ",
|
|
426
414
|
p[1]
|
|
427
|
-
] },
|
|
415
|
+
] }, w)) }), children: /* @__PURE__ */ d.jsx(X, { className: "absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground" }) });
|
|
428
416
|
};
|
|
429
417
|
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
430
|
-
i && /* @__PURE__ */ d.jsxs(
|
|
418
|
+
i && /* @__PURE__ */ d.jsxs(U, { variant: "destructive", children: [
|
|
431
419
|
/* @__PURE__ */ d.jsx(q, { children: i.message }),
|
|
432
420
|
/* @__PURE__ */ d.jsx("div", { className: "text-md", children: i.stack })
|
|
433
421
|
] }),
|
|
@@ -435,24 +423,24 @@ const pe = (e) => {
|
|
|
435
423
|
"div",
|
|
436
424
|
{
|
|
437
425
|
className: "relative",
|
|
438
|
-
onPointerDown:
|
|
426
|
+
onPointerDown: Y.stopPropagation(),
|
|
439
427
|
children: [
|
|
440
|
-
/* @__PURE__ */ d.jsx(
|
|
441
|
-
|
|
428
|
+
/* @__PURE__ */ d.jsx(ee, { spec: u, theme: r === "dark" ? "dark" : void 0, actions: me, signalListeners: V, onError: D, onNewView: H }),
|
|
429
|
+
F()
|
|
442
430
|
]
|
|
443
431
|
}
|
|
444
432
|
)
|
|
445
433
|
] });
|
|
446
|
-
},
|
|
434
|
+
}, me = {
|
|
447
435
|
source: false,
|
|
448
436
|
compiled: false
|
|
449
437
|
};
|
|
450
|
-
function
|
|
438
|
+
function de(e) {
|
|
451
439
|
return e instanceof Set ? [...e] : e;
|
|
452
440
|
}
|
|
453
|
-
function
|
|
454
|
-
return Array.isArray(e) ? e.map((t) => t instanceof Date &&
|
|
441
|
+
function fe(e) {
|
|
442
|
+
return Array.isArray(e) ? e.map((t) => t instanceof Date && J(t) ? new Date(t).getTime() : t) : e;
|
|
455
443
|
}
|
|
456
444
|
export {
|
|
457
|
-
|
|
445
|
+
ye as default
|
|
458
446
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i2, _j;
|
|
2
|
-
import { _ as a, s as ii, g as ei, t as Pt, q as si, a as ni, b as ai, l as Lt, K as oi, e as ri, z as hi, G as ct, F as Et, H as li, M as ci, i as ui, a9 as gi } from "./mermaid-
|
|
3
|
-
import {
|
|
4
|
-
import { o as di } from "./ordinal-CYN5qNoq.js";
|
|
5
|
-
import { r as pi } from "./range-DdOGybNB.js";
|
|
6
|
-
import { l as Rt } from "./linear-DPZ3NVjL.js";
|
|
7
|
-
import { l as Tt } from "./timer-BYwnU4DF.js";
|
|
2
|
+
import { _ as a, s as ii, g as ei, t as Pt, q as si, a as ni, b as ai, l as Lt, K as oi, e as ri, z as hi, G as ct, F as Et, H as li, M as ci, i as ui, a9 as gi } from "./mermaid-C1hAnlFn.js";
|
|
3
|
+
import { B as xi, D as di, F as pi, d as Rt, e as Tt } from "./main-certQvhL.js";
|
|
8
4
|
function at() {
|
|
9
|
-
var t =
|
|
5
|
+
var t = xi().unknown(void 0), i = t.domain, e = t.range, s = 0, n = 1, x, u, p = false, C = 0, T = 0, k = 0.5;
|
|
10
6
|
delete t.unknown;
|
|
11
7
|
function A() {
|
|
12
8
|
var m = i().length, D = n < s, S = D ? n : s, v = D ? s : n;
|
|
@@ -38,7 +34,7 @@ function at() {
|
|
|
38
34
|
return arguments.length ? (k = Math.max(0, Math.min(1, m)), A()) : k;
|
|
39
35
|
}, t.copy = function() {
|
|
40
36
|
return at(i(), [s, n]).round(p).paddingInner(C).paddingOuter(T).align(k);
|
|
41
|
-
},
|
|
37
|
+
}, di.apply(A(), arguments);
|
|
42
38
|
}
|
|
43
39
|
var ot = function() {
|
|
44
40
|
var t = /* @__PURE__ */ a(function(B, r, l, c) {
|
|
@@ -1291,11 +1287,11 @@ var ki = /* @__PURE__ */ a(function() {
|
|
|
1291
1287
|
}
|
|
1292
1288
|
}, "draw"), Di = {
|
|
1293
1289
|
draw: Ti
|
|
1294
|
-
},
|
|
1290
|
+
}, Li = {
|
|
1295
1291
|
parser: fi,
|
|
1296
1292
|
db: Ri,
|
|
1297
1293
|
renderer: Di
|
|
1298
1294
|
};
|
|
1299
1295
|
export {
|
|
1300
|
-
|
|
1296
|
+
Li as diagram
|
|
1301
1297
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marimo-team/islands",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.8-dev10",
|
|
4
4
|
"main": "dist/main.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@lezer/markdown": "^1.4.3",
|
|
46
46
|
"@lezer/python": "^1.1.18",
|
|
47
47
|
"@marimo-team/codemirror-ai": "^0.1.11",
|
|
48
|
-
"@marimo-team/codemirror-languageserver": "^1.15.
|
|
48
|
+
"@marimo-team/codemirror-languageserver": "^1.15.15",
|
|
49
49
|
"@marimo-team/marimo-api": "file:../openapi",
|
|
50
50
|
"@marimo-team/react-slotz": "^0.2.0",
|
|
51
51
|
"@mui/material": "^6.4.11",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build",
|
|
167
167
|
"test": "vitest",
|
|
168
168
|
"typecheck": "tsc --noEmit",
|
|
169
|
-
"lint": "run-s lint:
|
|
169
|
+
"lint": "run-s lint:biome format lint:eslint lint:stylelint",
|
|
170
170
|
"lint:biome": "biome lint --diagnostic-level=warn --write .",
|
|
171
171
|
"lint:eslint": "cross-env TIMING=1 eslint src e2e-tests --fix",
|
|
172
172
|
"lint:stylelint": "stylelint src/**/*.css --fix",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"@biomejs/biome": "2.0.0-beta.6",
|
|
190
190
|
"@codecov/vite-plugin": "^1.9.1",
|
|
191
191
|
"@csstools/postcss-light-dark-function": "^2.0.8",
|
|
192
|
-
"@playwright/test": "^1.53.
|
|
192
|
+
"@playwright/test": "^1.53.1",
|
|
193
193
|
"@storybook/addon-docs": "^8.6.14",
|
|
194
194
|
"@storybook/addon-essentials": "^8.6.14",
|
|
195
195
|
"@storybook/addon-interactions": "^8.6.14",
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"@storybook/react-vite": "^8.6.14",
|
|
200
200
|
"@swc-jotai/react-refresh": "^0.3.0",
|
|
201
201
|
"@testing-library/jest-dom": "^6.6.3",
|
|
202
|
-
"@testing-library/react": "^16.
|
|
202
|
+
"@testing-library/react": "^16.3.0",
|
|
203
203
|
"@types/katex": "^0.16.7",
|
|
204
204
|
"@types/lodash-es": "^4.17.12",
|
|
205
205
|
"@types/node": "^24.0.0",
|
|
@@ -209,15 +209,14 @@
|
|
|
209
209
|
"@types/timestring": "^6.0.5",
|
|
210
210
|
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
211
211
|
"@typescript-eslint/parser": "^7.15.0",
|
|
212
|
-
"@vitejs/plugin-react": "^4.5.
|
|
213
|
-
"@vitejs/plugin-react-swc": "^3.10.
|
|
212
|
+
"@vitejs/plugin-react": "^4.5.2",
|
|
213
|
+
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
214
214
|
"autoprefixer": "^10.4.21",
|
|
215
215
|
"babel-plugin-react-compiler": "19.1.0-rc.1",
|
|
216
216
|
"blob-polyfill": "^7.0.20220408",
|
|
217
217
|
"cross-env": "^7.0.3",
|
|
218
218
|
"eslint": "^8.57.0",
|
|
219
219
|
"eslint-config-prettier": "^9.1.0",
|
|
220
|
-
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
221
220
|
"eslint-plugin-react": "^7.34.3",
|
|
222
221
|
"eslint-plugin-react-hooks": "^6.0.0-rc.1",
|
|
223
222
|
"eslint-plugin-ssr-friendly": "^1.3.0",
|
|
@@ -227,7 +226,7 @@
|
|
|
227
226
|
"jsdom": "^24.1.3",
|
|
228
227
|
"msw": "^2.10.2",
|
|
229
228
|
"npm-run-all2": "^6.2.6",
|
|
230
|
-
"postcss": "^8.5.
|
|
229
|
+
"postcss": "^8.5.6",
|
|
231
230
|
"postcss-plugin-namespace": "^0.0.3",
|
|
232
231
|
"react": "^19.1.0",
|
|
233
232
|
"react-compiler-runtime": "19.1.0-rc.1",
|
|
@@ -242,7 +241,7 @@
|
|
|
242
241
|
"vite-plugin-top-level-await": "^1.5.0",
|
|
243
242
|
"vite-plugin-wasm": "^3.4.1",
|
|
244
243
|
"vite-tsconfig-paths": "^5.1.4",
|
|
245
|
-
"vitest": "^3.
|
|
244
|
+
"vitest": "^3.2.4"
|
|
246
245
|
},
|
|
247
246
|
"packageManager": "pnpm@10.10.0",
|
|
248
247
|
"pnpm": {
|