@marimo-team/islands 0.13.1-dev2 → 0.13.1-dev22
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-Dsl5RlPu.js → ConnectedDataExplorerComponent-BKve02N5.js} +681 -692
- package/dist/{VegaLite-C8UVgAg_.js → VegaLite-P8ozNcxY.js} +3 -3
- package/dist/{_baseUniq-BNRE6OMs.js → _baseUniq-Crpabwip.js} +1 -1
- package/dist/{any-language-editor-u0kyadby.js → any-language-editor-CuEhv6Xu.js} +13 -13
- package/dist/{architectureDiagram-IEHRJDOE-_0geYds8.js → architectureDiagram-IEHRJDOE-BQuNoLLq.js} +5 -5
- package/dist/{blockDiagram-JOT3LUYC-6GUTTT4J.js → blockDiagram-JOT3LUYC-DxmWlw22.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-BsbXB88M.js → c4Diagram-VJAJSXHY-Deiwsahb.js} +2 -2
- package/dist/{channel-DZuYm5My.js → channel-CAmTkqkC.js} +1 -1
- package/dist/{chart-spec-BjfOATq5.js → chart-spec-DSer4QGM.js} +1 -1
- package/dist/{chunk-4BMEZGHF-Dez1Ou_k.js → chunk-4BMEZGHF-C1lBhJML.js} +1 -1
- package/dist/{chunk-A2AXSNBT-Dte48q2f.js → chunk-A2AXSNBT-C3-GF6_F.js} +2 -2
- package/dist/{chunk-AEK57VVT-B0tstGoE.js → chunk-AEK57VVT-1IlUCaS8.js} +2 -2
- package/dist/{chunk-D6G4REZN-B5GWFiA4.js → chunk-D6G4REZN-ivKOFlb2.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-Car51hmG.js → chunk-RZ5BOZE2-CYzUfoFv.js} +1 -1
- package/dist/{chunk-XZIHB7SX-DZmpRuDK.js → chunk-XZIHB7SX-Dqk0JmQQ.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-CWOP07RI.js → classDiagram-GIVACNV2-DorwlRMz.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-CWOP07RI.js → classDiagram-v2-COTLJTTW-DorwlRMz.js} +2 -2
- package/dist/{clone-Cpds16cd.js → clone-BbRzeF1X.js} +1 -1
- package/dist/{dagre-OKDRZEBW-DQdXd9gp.js → dagre-OKDRZEBW-7E3wUlb3.js} +6 -6
- package/dist/{data-editor-C711E87C.js → data-editor-DKy5oHMD.js} +1 -1
- package/dist/{diagram-SSKATNLV-xscy92bE.js → diagram-SSKATNLV-D1yKJhEU.js} +3 -3
- package/dist/{diagram-VNBRO52H-rX2hUG4M.js → diagram-VNBRO52H-CwXnfy2f.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-BIG2BAKI.js → erDiagram-Q7BY3M3F-Ce0xZlOE.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-34QhP58x.js → flowDiagram-4HSFHLVR-D9mtt97V.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-BAMnjpKq.js → ganttDiagram-APWFNJXF-BpNOncMt.js} +4 -4
- package/dist/{gitGraphDiagram-7IBYFJ6S--LysVQIg.js → gitGraphDiagram-7IBYFJ6S-CME0KRZZ.js} +4 -4
- package/dist/{graph-B2k9KGUp.js → graph-BlVpUmyD.js} +3 -3
- package/dist/{index-DRLE6PZE.js → index-BV4dW4gA.js} +1 -1
- package/dist/{index-C8bLEZuz.js → index-BiQSALiw.js} +1 -1
- package/dist/{index-Bw3biE81.js → index-C7LDdDam.js} +3 -3
- package/dist/{index-BHDloFyB.js → index-CImjwNSf.js} +1 -1
- package/dist/{index-DRbZikQo.js → index-CPsuX12x.js} +1 -1
- package/dist/{index-DsphJTIK.js → index-CRwFI5P_.js} +1 -1
- package/dist/{index-DvU2eQTM.js → index-ClTaSqLT.js} +1 -1
- package/dist/{index-IgbHCgIs.js → index-DBxTFQr1.js} +1 -1
- package/dist/{index-BbpxXrLL.js → index-DRO3zuT0.js} +1 -1
- package/dist/{index-CsC-NJqK.js → index-DRbzynAd.js} +1 -1
- package/dist/{index-vRbC6DFP.js → index-DSEW1WZr.js} +1 -1
- package/dist/{index-C6zSJBiV.js → index-DlOKCRMW.js} +1 -1
- package/dist/{index-C5aClGc9.js → index-DuUhIDKK.js} +1 -1
- package/dist/{index-DbW4Cg5X.js → index-DwEvqJsB.js} +1 -1
- package/dist/{index-DUUfsP84.js → index-KfAGMw_7.js} +1 -1
- package/dist/{infoDiagram-PH2N3AL5-xZVCHPBZ.js → infoDiagram-PH2N3AL5-zr_sWcXE.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-BcZjS8ul.js → journeyDiagram-U35MCT3I-B_vSsiOc.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-Die8rbLi.js → kanban-definition-NDS4AKOZ-B9v6fNz8.js} +1 -1
- package/dist/{layout-g2LjIcUE.js → layout-DNOOWQvV.js} +4 -4
- package/dist/{linear-CxB5uvYz.js → linear-Bdu6NZCQ.js} +1 -1
- package/dist/{main-C68isGji.js → main-BO4QZ-Vk.js} +25179 -24961
- package/dist/main.js +1 -1
- package/dist/{mermaid-_mMpzTYN.js → mermaid-vHG_jlhu.js} +28 -28
- package/dist/{min-C6O0iFOC.js → min-C6b_WlUU.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-CmWXmgnI.js → mindmap-definition-ALO5MXBD-Bfw6GTQG.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-fAb3accm.js → pieDiagram-IB7DONF6-CH8F7AMH.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-BgAiu6u6.js → quadrantDiagram-7GDLP6J5-Dg6o1Igi.js} +2 -2
- package/dist/{radar-MK3ICKWK-CkWphKxy.js → radar-MK3ICKWK-cJzumXkB.js} +5 -5
- package/dist/{react-plotly-BtTMVFFM.js → react-plotly-d764j--K.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-CTTx3K-r.js → requirementDiagram-KVF5MWMF-2TrDmag7.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-c2vzZ0g4.js → sankeyDiagram-QLVOVGJD-XFRuW2SY.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-DxkW0JaL.js → sequenceDiagram-X6HHIX6F-DrCvw7Qb.js} +3 -3
- package/dist/{slides-component-CUh6f5r3.js → slides-component-D-qigPW0.js} +1 -1
- package/dist/{stateDiagram-DGXRK772-BE25R-I_.js → stateDiagram-DGXRK772-DCjw5HR4.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-sOkBXieC.js → stateDiagram-v2-YXO3MK2T-C0cy4_ev.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-CjLFpFZr.js → time-Dgq6joJC.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-bslvD2x_.js → timeline-definition-BDJGKUSR-B2ZKmQKP.js} +1 -1
- package/dist/{vega-component-BEcfncUq.js → vega-component-CzM9JJV1.js} +21 -29
- package/dist/{xychartDiagram-VJFVF3MP-BEkEaFSy.js → xychartDiagram-VJFVF3MP-BJ8LfLvK.js} +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as A, r as ln, o as B, q as P, C as W, u as D, v as fn } from "./timer-ly3uOrxC.js";
|
|
2
|
-
import { c as on, a as hn } from "./linear-
|
|
2
|
+
import { c as on, a as hn } from "./linear-Bdu6NZCQ.js";
|
|
3
3
|
import { i as bn } from "./init-DxzjmxYy.js";
|
|
4
|
-
import { af as gn, ag as v, ah as d, ai as k, aj as x, ak as F, al as yn, am as L, an as H, ao as R, ap as pn, aq as mn, ar as wn, as as Mn, at as vn, au as dn, av as kn, aw as j, ax as K, ay as X, az as Z, aA as $, aB as E, aC as xn } from "./main-
|
|
4
|
+
import { af as gn, ag as v, ah as d, ai as k, aj as x, ak as F, al as yn, am as L, an as H, ao as R, ap as pn, aq as mn, ar as wn, as as Mn, at as vn, au as dn, av as kn, aw as j, ax as K, ay as X, az as Z, aA as $, aB as E, aC as xn } from "./main-BO4QZ-Vk.js";
|
|
5
5
|
function Bn(n, t) {
|
|
6
6
|
let i;
|
|
7
7
|
if (t === void 0)
|
package/dist/{timeline-definition-BDJGKUSR-bslvD2x_.js → timeline-definition-BDJGKUSR-B2ZKmQKP.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as s, c as xt, l as T, d as q, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-
|
|
1
|
+
import { _ as s, c as xt, l as T, d as q, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-vHG_jlhu.js";
|
|
2
2
|
import { d as nt } from "./arc-CbMargV8.js";
|
|
3
3
|
var X = function() {
|
|
4
4
|
var n = /* @__PURE__ */ s(function(f, i, a, d) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as
|
|
2
|
-
import { M as d, a as te } from "./VegaLite-
|
|
1
|
+
import { Z as T, _ as K, $ as z, a0 as R, a1 as G, a2 as W, S as f, a3 as $, Q as B, M as w, a4 as A, a5 as M, a6 as U, a7 as x, a8 as O, a9 as q, aa as Q, ab as Y, ac as J, ad as X, ae as ee } from "./main-BO4QZ-Vk.js";
|
|
2
|
+
import { M as d, a as te } from "./VegaLite-P8ozNcxY.js";
|
|
3
3
|
const j = /* @__PURE__ */ new Set(["boxplot", "errorband", "errorbar"]), v = {
|
|
4
4
|
getMarkType(e) {
|
|
5
5
|
const t = typeof e == "string" ? e : e.type;
|
|
@@ -105,7 +105,7 @@ const y = {
|
|
|
105
105
|
name: y.interval(t),
|
|
106
106
|
select: {
|
|
107
107
|
type: "interval",
|
|
108
|
-
encodings:
|
|
108
|
+
encodings: C(e),
|
|
109
109
|
mark: {
|
|
110
110
|
fill: "#669EFF",
|
|
111
111
|
fillOpacity: 0.07,
|
|
@@ -123,7 +123,7 @@ const y = {
|
|
|
123
123
|
name: y.point(t),
|
|
124
124
|
select: {
|
|
125
125
|
type: "point",
|
|
126
|
-
encodings:
|
|
126
|
+
encodings: C(e),
|
|
127
127
|
on: "click[!event.metaKey]"
|
|
128
128
|
}
|
|
129
129
|
};
|
|
@@ -151,7 +151,7 @@ const y = {
|
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
|
-
function
|
|
154
|
+
function C(e) {
|
|
155
155
|
switch (v.getMarkType(e.mark)) {
|
|
156
156
|
case d.image:
|
|
157
157
|
case d.trail:
|
|
@@ -217,7 +217,7 @@ function ie(e, t) {
|
|
|
217
217
|
if (!("mark" in i))
|
|
218
218
|
return i;
|
|
219
219
|
let m = i;
|
|
220
|
-
return m =
|
|
220
|
+
return m = I(m, n, h), m = P(m), h === 0 && (m = L(m)), m;
|
|
221
221
|
});
|
|
222
222
|
return {
|
|
223
223
|
...e,
|
|
@@ -227,7 +227,7 @@ function ie(e, t) {
|
|
|
227
227
|
if (!("mark" in e) || !v.isInteractive(e.mark))
|
|
228
228
|
return e;
|
|
229
229
|
let s = e;
|
|
230
|
-
return s = se(s, o), s =
|
|
230
|
+
return s = se(s, o), s = I(s, n, void 0), s = P(s), s = L(s), s;
|
|
231
231
|
}
|
|
232
232
|
function se(e, t) {
|
|
233
233
|
if (t === !1)
|
|
@@ -240,7 +240,7 @@ function se(e, t) {
|
|
|
240
240
|
params: r
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function I(e, t, n) {
|
|
244
244
|
if (t === !1)
|
|
245
245
|
return e;
|
|
246
246
|
let o;
|
|
@@ -249,7 +249,7 @@ function C(e, t, n) {
|
|
|
249
249
|
} catch {
|
|
250
250
|
return e;
|
|
251
251
|
}
|
|
252
|
-
if (o === "geoshape"
|
|
252
|
+
if (o === "geoshape")
|
|
253
253
|
return e;
|
|
254
254
|
const r = t === !0 ? le(o) : [t];
|
|
255
255
|
if (!r)
|
|
@@ -275,16 +275,8 @@ function L(e) {
|
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
277
|
function P(e) {
|
|
278
|
-
const t = "encoding" in e ? e.encoding : void 0, n = e.params || [], o = n.map((
|
|
279
|
-
|
|
280
|
-
return e;
|
|
281
|
-
let r;
|
|
282
|
-
try {
|
|
283
|
-
r = v.getMarkType(e.mark);
|
|
284
|
-
} catch {
|
|
285
|
-
return e;
|
|
286
|
-
}
|
|
287
|
-
return r === "text" ? e : {
|
|
278
|
+
const t = "encoding" in e ? e.encoding : void 0, n = e.params || [], o = n.map((r) => r.name);
|
|
279
|
+
return n.length === 0 || !v.isInteractive(e.mark) ? e : {
|
|
288
280
|
...e,
|
|
289
281
|
mark: v.makeClickable(e.mark),
|
|
290
282
|
encoding: ae("opacity", t || {}, o, e.mark)
|
|
@@ -292,10 +284,10 @@ function P(e) {
|
|
|
292
284
|
}
|
|
293
285
|
function le(e) {
|
|
294
286
|
switch (e) {
|
|
295
|
-
case "text":
|
|
296
287
|
case "arc":
|
|
297
288
|
case "area":
|
|
298
289
|
return ["point"];
|
|
290
|
+
case "text":
|
|
299
291
|
case "bar":
|
|
300
292
|
return ["point", "interval"];
|
|
301
293
|
// there is no best selection for line
|
|
@@ -306,7 +298,7 @@ function le(e) {
|
|
|
306
298
|
}
|
|
307
299
|
}
|
|
308
300
|
function ce(e) {
|
|
309
|
-
return e.data && "url" in e.data && (e.data.url =
|
|
301
|
+
return e.data && "url" in e.data && (e.data.url = T(e.data.url).href), e;
|
|
310
302
|
}
|
|
311
303
|
async function ue(e) {
|
|
312
304
|
if (!e)
|
|
@@ -344,7 +336,7 @@ async function ue(e) {
|
|
|
344
336
|
return r;
|
|
345
337
|
let a;
|
|
346
338
|
try {
|
|
347
|
-
a =
|
|
339
|
+
a = T(r.data.url);
|
|
348
340
|
} catch {
|
|
349
341
|
return r;
|
|
350
342
|
}
|
|
@@ -405,19 +397,19 @@ const pe = (e) => {
|
|
|
405
397
|
}) => {
|
|
406
398
|
const {
|
|
407
399
|
theme: a
|
|
408
|
-
} = B(), s =
|
|
400
|
+
} = B(), s = w.useRef(), [l, g] = w.useState(), u = A(r), i = w.useMemo(() => ie(ce(u), {
|
|
409
401
|
chartSelection: n,
|
|
410
402
|
fieldSelection: o
|
|
411
|
-
}), [u, n, o]), h =
|
|
403
|
+
}), [u, n, o]), h = w.useMemo(() => N(i), [i]), m = M((c) => {
|
|
412
404
|
t({
|
|
413
405
|
...e,
|
|
414
406
|
...c
|
|
415
407
|
});
|
|
416
|
-
}), S = A(h), D =
|
|
417
|
-
x.debug("[Vega signal]",
|
|
408
|
+
}), S = A(h), D = w.useMemo(() => S.reduce((c, p) => (y.PAN_ZOOM === p || (c[p] = U((k, _) => {
|
|
409
|
+
x.debug("[Vega signal]", k, _);
|
|
418
410
|
let E = O.mapValues(_, ge);
|
|
419
411
|
E = O.mapValues(E, he), m({
|
|
420
|
-
[
|
|
412
|
+
[k]: E
|
|
421
413
|
});
|
|
422
414
|
}, 100)), c), {}), [S, m]), F = M((c) => {
|
|
423
415
|
x.error(c), x.debug(i), g(c);
|
|
@@ -425,14 +417,14 @@ const pe = (e) => {
|
|
|
425
417
|
x.debug("[Vega view] created", c), s.current = c, g(void 0);
|
|
426
418
|
}), Z = () => {
|
|
427
419
|
const c = [];
|
|
428
|
-
return y.hasPoint(h) && c.push(["Point selection", "click to select a point; hold shift for multi-select"]), y.hasInterval(h) && c.push(["Interval selection", "click and drag to select an interval"]), y.hasLegend(h) && c.push(["Legend selection", "click to select a legend item; hold shift for multi-select"]), y.hasPanZoom(h) && c.push(["Pan", "hold the meta key and drag"], ["Zoom", "hold the meta key and scroll"]), c.length === 0 ? null : /* @__PURE__ */ f.jsx(X, { delayDuration: 300, side: "left", content: /* @__PURE__ */ f.jsx("div", { className: "text-xs flex flex-col", children: c.map((p,
|
|
420
|
+
return y.hasPoint(h) && c.push(["Point selection", "click to select a point; hold shift for multi-select"]), y.hasInterval(h) && c.push(["Interval selection", "click and drag to select an interval"]), y.hasLegend(h) && c.push(["Legend selection", "click to select a legend item; hold shift for multi-select"]), y.hasPanZoom(h) && c.push(["Pan", "hold the meta key and drag"], ["Zoom", "hold the meta key and scroll"]), c.length === 0 ? null : /* @__PURE__ */ f.jsx(X, { delayDuration: 300, side: "left", content: /* @__PURE__ */ f.jsx("div", { className: "text-xs flex flex-col", children: c.map((p, k) => /* @__PURE__ */ f.jsxs("div", { children: [
|
|
429
421
|
/* @__PURE__ */ f.jsxs("span", { className: "font-bold tracking-wide", children: [
|
|
430
422
|
p[0],
|
|
431
423
|
":"
|
|
432
424
|
] }),
|
|
433
425
|
" ",
|
|
434
426
|
p[1]
|
|
435
|
-
] },
|
|
427
|
+
] }, k)) }), children: /* @__PURE__ */ f.jsx(ee, { className: "absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground" }) });
|
|
436
428
|
};
|
|
437
429
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
438
430
|
l && /* @__PURE__ */ f.jsxs(q, { variant: "destructive", children: [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as a, s as ui, g as gi, t as Ft, q as xi, a as di, b as pi, l as Xt, K as fi, e as mi, z as yi, G as At, F as Nt, H as bi, M as Ai, i as wi, a9 as Ci } from "./mermaid-
|
|
1
|
+
import { _ as a, s as ui, g as gi, t as Ft, q as xi, a as di, b as pi, l as Xt, K as fi, e as mi, z as yi, G as At, F as Nt, H as bi, M as Ai, i as wi, a9 as Ci } from "./mermaid-vHG_jlhu.js";
|
|
2
2
|
import { i as Si } from "./init-DxzjmxYy.js";
|
|
3
3
|
import { o as _i } from "./ordinal-CYN5qNoq.js";
|
|
4
4
|
import { r as ki } from "./range-DdOGybNB.js";
|
|
5
|
-
import { l as Bt } from "./linear-
|
|
5
|
+
import { l as Bt } from "./linear-Bdu6NZCQ.js";
|
|
6
6
|
import { l as Wt } from "./timer-ly3uOrxC.js";
|
|
7
7
|
function pt() {
|
|
8
8
|
var e = _i().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1, r, u, f = !1, p = 0, k = 0, R = 0.5;
|