@marimo-team/islands 0.24.3-dev1 → 0.24.3-dev13
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-qIKbwYin.js → ConnectedDataExplorerComponent-C9OF_75w.js} +1 -1
- package/dist/{any-language-editor-CpTnK43-.js → any-language-editor-DmQ7dyCx.js} +1 -1
- package/dist/{chat-ui-DttQ-5Ut.js → chat-ui-CH7Gg-KH.js} +1300 -1300
- package/dist/{common-C7aHdgSC.js → common-DM9Wj-cL.js} +6484 -6276
- package/dist/{error-banner-WDhUzJyg.js → error-banner-CsXbEEjo.js} +160 -160
- package/dist/{formats-CJMVUfb3.js → formats-CslNOKy0.js} +1 -1
- package/dist/{html-to-image-BTYnN4ev.js → html-to-image-B3oyXfx7.js} +10 -9
- package/dist/main.js +257 -243
- package/dist/{mermaid-BsHdQeQf.js → mermaid-Bi23Ibnw.js} +1 -1
- package/dist/{process-output-CsALk6tp.js → process-output-ew3B35of.js} +2 -2
- package/dist/{reveal-component-DsDcTC8C.js → reveal-component-DjEi3rsH.js} +2 -2
- package/dist/{toDate-D-Rx3ux5.js → toDate-CpXBeDq0.js} +3 -2
- package/dist/{vega-component-D-IXRnlx.js → vega-component-ovBXgp91.js} +3 -3
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +7 -2
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
- package/src/components/data-table/column-visibility-dropdown.tsx +9 -3
- package/src/components/datasources/components.tsx +4 -2
- package/src/components/editor/chrome/components/feedback-button.tsx +10 -9
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +143 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +145 -51
- package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
- package/src/components/editor/code/readonly-diff.tsx +1 -1
- package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
- package/src/components/editor/file-tree/tree-actions.tsx +11 -14
- package/src/components/editor/package-alert.tsx +25 -1
- package/src/components/home/components.tsx +17 -0
- package/src/components/pages/gallery-page.tsx +2 -4
- package/src/components/pages/home-page.tsx +2 -4
- package/src/components/terminal/terminal.tsx +4 -4
- package/src/core/cells/pending-delete-service.ts +12 -16
- package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
- package/src/core/datasets/__tests__/data-source.test.ts +2 -0
- package/src/core/datasets/data-source-connections.ts +15 -10
- package/src/core/islands/__tests__/parse.test.ts +140 -7
- package/src/core/islands/parse.ts +20 -0
- package/src/core/packages/__tests__/useInstallPackage.test.tsx +47 -1
- package/src/core/packages/toast-components.tsx +26 -0
- package/src/core/packages/useInstallPackage.ts +7 -2
- package/src/core/runtime/__tests__/runtime.test.ts +11 -0
- package/src/core/runtime/runtime.ts +7 -2
- package/src/core/wasm/bridge.ts +1 -0
- package/src/plugins/layout/AccordionPlugin.tsx +7 -2
- package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
|
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { h as t, r as n } from "./button-CKBkqR9J.js";
|
|
3
3
|
import { t as r } from "./react-DMWcHin-.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
|
-
import { t as a } from "./toDate-
|
|
5
|
+
import { t as a } from "./toDate-CpXBeDq0.js";
|
|
6
6
|
import { t as o } from "./jsx-runtime-CpoKNRgu.js";
|
|
7
7
|
import { i as s } from "./loader-VZ__bv4g.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isDate.js
|
|
@@ -9,7 +9,7 @@ import { a as ne, c as re, i as D, o as ie, r as O, s as k, t as A } from "./use
|
|
|
9
9
|
import { t as ae } from "./check-CHig47QV.js";
|
|
10
10
|
import { C as oe, F as se, I as j, N as ce, P as M, R as le, S as ue, a as de, b as fe, c as pe, i as me, n as he, o as ge, r as _e, s as ve, t as ye } from "./select-3qHpFKF9.js";
|
|
11
11
|
import { Y as be, gt as xe, q as Se } from "./dropdown-menu-DhCfcscX.js";
|
|
12
|
-
import { _ as Ce, g as we, l as Te, t as Ee, v as De } from "./toDate-
|
|
12
|
+
import { _ as Ce, g as we, l as Te, t as Ee, v as De } from "./toDate-CpXBeDq0.js";
|
|
13
13
|
import { t as Oe } from "./react-dom-C94wmq5w.js";
|
|
14
14
|
import { t as ke } from "./jsx-runtime-CpoKNRgu.js";
|
|
15
15
|
import { Ac as Ae, Bc as je, Cn as Me, Dc as Ne, Fc as Pe, Gc as N, Hc as Fe, Ic as Ie, In as Le, Jc as Re, Jn as ze, Lc as Be, Mc as Ve, Oc as He, Pc as Ue, Rc as We, Sn as Ge, Tt as Ke, Uc as qe, Vc as Je, Wc as Ye, Yc as Xe, jc as Ze, kt as Qe, ln as $e, qc as et, wc as tt, zc as nt } from "./schemas-DzK6U94N.js";
|
|
@@ -10454,7 +10454,7 @@ function If(e) {
|
|
|
10454
10454
|
}
|
|
10455
10455
|
function Lf() {
|
|
10456
10456
|
return {
|
|
10457
|
-
latestEngineSelected:
|
|
10457
|
+
latestEngineSelected: null,
|
|
10458
10458
|
connectionsMap: Pf
|
|
10459
10459
|
};
|
|
10460
10460
|
}
|
|
@@ -10462,7 +10462,7 @@ var { reducer: Rf, createActions: zf, valueAtom: Bf, useActions: Vf } = D(Lf, {
|
|
|
10462
10462
|
addDataSourceConnection: (e, t) => {
|
|
10463
10463
|
if (t.connections.length === 0) return e;
|
|
10464
10464
|
let { latestEngineSelected: n, connectionsMap: r } = e, i = new Map(r);
|
|
10465
|
-
for (let e of t.connections) i.set(e.name, e);
|
|
10465
|
+
for (let e of t.connections) i.delete(e.name), i.set(e.name, e);
|
|
10466
10466
|
return {
|
|
10467
10467
|
latestEngineSelected: n,
|
|
10468
10468
|
connectionsMap: i
|
|
@@ -10471,18 +10471,18 @@ var { reducer: Rf, createActions: zf, valueAtom: Bf, useActions: Vf } = D(Lf, {
|
|
|
10471
10471
|
filterDataSourcesFromVariables: (e, t) => {
|
|
10472
10472
|
let { latestEngineSelected: n, connectionsMap: r } = e, i = new Set(t), a = new Map([...r].filter(([e]) => Tf.has(e) ? !0 : i.has(e)));
|
|
10473
10473
|
return {
|
|
10474
|
-
latestEngineSelected: a.has(n) ? n :
|
|
10474
|
+
latestEngineSelected: n && a.has(n) ? n : null,
|
|
10475
10475
|
connectionsMap: a
|
|
10476
10476
|
};
|
|
10477
10477
|
},
|
|
10478
10478
|
clearDataSourceConnections: () => ({
|
|
10479
|
-
latestEngineSelected:
|
|
10479
|
+
latestEngineSelected: null,
|
|
10480
10480
|
connectionsMap: /* @__PURE__ */ new Map()
|
|
10481
10481
|
}),
|
|
10482
10482
|
removeDataSourceConnection: (e, t) => {
|
|
10483
10483
|
let { latestEngineSelected: n, connectionsMap: r } = e, i = new Map(r);
|
|
10484
10484
|
return i.delete(t), {
|
|
10485
|
-
latestEngineSelected: i.has(n) ? n :
|
|
10485
|
+
latestEngineSelected: n && i.has(n) ? n : null,
|
|
10486
10486
|
connectionsMap: i
|
|
10487
10487
|
};
|
|
10488
10488
|
},
|
|
@@ -26251,7 +26251,8 @@ function lx() {
|
|
|
26251
26251
|
//#region src/core/codemirror/language/languages/sql/sql.ts
|
|
26252
26252
|
var ux = vf, dx = "DuckDB", fx = new Ft();
|
|
26253
26253
|
function px() {
|
|
26254
|
-
|
|
26254
|
+
let { latestEngineSelected: e, connectionsMap: t } = F.get(Bf);
|
|
26255
|
+
return e === null ? [...t.values()].reverse().find((e) => !Tf.has(e.name) && e.source !== "iceberg")?.name ?? "__marimo_duckdb" : e;
|
|
26255
26256
|
}
|
|
26256
26257
|
var mx = class {
|
|
26257
26258
|
parser = new Em();
|
|
@@ -30534,7 +30535,7 @@ function BE(e) {
|
|
|
30534
30535
|
}
|
|
30535
30536
|
//#endregion
|
|
30536
30537
|
//#region src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx
|
|
30537
|
-
var VE = (0, L.lazy)(() => import("./any-language-editor-
|
|
30538
|
+
var VE = (0, L.lazy)(() => import("./any-language-editor-DmQ7dyCx.js")), HE = [Tt.lineWrapping];
|
|
30538
30539
|
function UE(e, t) {
|
|
30539
30540
|
return e ? e === "python" ? {
|
|
30540
30541
|
language: e,
|
|
@@ -31188,4 +31189,4 @@ async function CO(e, t) {
|
|
|
31188
31189
|
});
|
|
31189
31190
|
}
|
|
31190
31191
|
//#endregion
|
|
31191
|
-
export { uT as $,
|
|
31192
|
+
export { uT as $, _r as $n, np as $t, ZT as A, Xo as An, q_ as At, Qw as B, Ai as Bn, dh as Bt, dE as C, ds as Cn, Ix as Ct, yE as D, ls as Dn, H_ as Dt, _E as E, us as En, J_ as Et, WT as F, Oo as Fn, yg as Ft, aT as G, Mr as Gn, Rm as Gt, yT as H, zr as Hn, eh as Ht, ET as I, Ca as In, rg as It, sT as J, Er as Jn, Em as Jt, Yw as K, kr as Kn, Nm as Kt, DT as L, Da as Ln, ng as Lt, YT as M, Jo as Mn, $g as Mt, JT as N, Co as Nn, Qg as Nt, qT as O, ts as On, W_ as Ot, nE as P, zo as Pn, Rg as Pt, lT as Q, vr as Qn, ep as Qt, wT as R, Ni as Rn, Fh as Rt, lE as S, hs as Sn, Rx as St, hE as T, as as Tn, Y_ as Tt, pT as U, Lr as Un, Bm as Ut, bT as V, B as Vn, lh as Vt, dT as W, Fr as Wn, Vm as Wt, Xw as X, Cr as Xn, rp as Xt, mT as Y, wr as Yn, Cm as Yt, xT as Z, br as Zn, ip as Zt, CE as _, Cs as _n, Gx as _t, BE as a, Df as an, sr as ar, cw as at, aE as b, ps as bn, zx as bt, NE as c, df as cn, SC as ct, AE as d, cf as dn, xS as dt, tp as en, gr as er, Gw as et, jE as f, lf as fn, mS as ft, bE as g, Vd as gn, sS as gt, DE as h, Yd as hn, dS as ht, VE as i, Gf as in, lr as ir, hw as it, tE as j, Zo as jn, U_ as jt, QT as k, ns as kn, K_ as kt, FE as l, sf as ln, _C as lt, EE as m, Jd as mn, lS as mt, eD as n, Wf as nn, pr as nr, Cw as nt, zE as o, ff as on, tr as or, BC as ot, kE as p, Xd as pn, oS as pt, $ as q, Or as qn, jm as qt, QE as r, Bf as rn, ur as rr, Sw as rt, RE as s, uf as sn, er as sr, VC as st, CO as t, Xf as tn, hr as tr, Aw as tt, PE as u, ef as un, yS as ut, xE as v, Ss as vn, Kx as vt, pE as w, cs as wn, fv as wt, sE as x, ms as xn, Vx as xt, SE as y, _s as yn, Bx as yt, iT as z, ji as zn, xh as zt };
|