@marimo-team/islands 0.25.3-dev105 → 0.25.3-dev111
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-Dhf5EGs5.js → ConnectedDataExplorerComponent-CFzqIsUg.js} +1 -1
- package/dist/{ErrorBoundary-CkptjJEU.js → ErrorBoundary-CILqxxrK.js} +1 -1
- package/dist/assets/__vite-browser-external-i0Yx485j.js +1 -0
- package/dist/assets/{worker-Dq8y-WM5.js → worker-CzXd-kc-.js} +2 -2
- package/dist/{chat-ui-BjFJNtik.js → chat-ui-DA8zEZ1I.js} +3 -3
- package/dist/{code-visibility-Djtm07c9.js → code-visibility-BDTmXLwS.js} +2 -2
- package/dist/{common-B_mI5VC0.js → common-D-K67Qyg.js} +12 -5
- package/dist/{data-grid-overlay-editor-CDoqD-jC.js → data-grid-overlay-editor-BgGa6I4S.js} +1 -1
- package/dist/{error-entries-m7wjcSR-.js → error-entries-g9iQiVIT.js} +54 -34
- package/dist/{feedback-button-0HAIFve4.js → feedback-button-ChFF2xIe.js} +3 -3
- package/dist/{glide-data-editor-q0CzLqHy.js → glide-data-editor-CwbAb-mZ.js} +3 -3
- package/dist/{globals-XxWFgM2b.js → globals-C_258pE7.js} +1 -1
- package/dist/{html-to-image-DQn1HTpP.js → html-to-image-Bg5ZoSO-.js} +1 -1
- package/dist/main.js +95 -70
- package/dist/{number-overlay-editor-C41yshYb.js → number-overlay-editor-gXz5p6Jl.js} +1 -1
- package/dist/{process-output-DIMk7xHI.js → process-output-BtVPCGeI.js} +2 -2
- package/dist/{reveal-component-gMNFwxnS.js → reveal-component-wc8CB-37.js} +3 -3
- package/dist/{spec-CcT0slVc.js → spec-DTiOPKyk.js} +37 -7
- package/package.json +2 -2
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +195 -195
- package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +20 -20
- package/src/components/data-table/charts/__tests__/spec.test.ts +78 -52
- package/src/components/data-table/charts/chart-spec/spec.ts +68 -43
- package/src/components/data-table/charts/charts.tsx +5 -5
- package/src/components/data-table/column-summary/chart-spec-model.tsx +23 -16
- package/src/components/dependency-graph/dependency-graph-tree.tsx +8 -8
- package/src/components/dependency-graph/elements.ts +24 -21
- package/src/components/dependency-graph/utils/__tests__/layout.test.ts +18 -11
- package/src/components/editor/output/ansi-reduce.ts +30 -23
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +12 -6
- package/src/core/ai/tools/base.ts +16 -7
- package/src/core/ai/tools/edit-notebook-tool.ts +47 -45
- package/src/core/ai/tools/registry.ts +13 -8
- package/src/core/ai/tools/sample-tool.ts +6 -7
- package/src/core/cells/__tests__/session.test.ts +117 -36
- package/src/core/codemirror/__tests__/setup.test.ts +28 -28
- package/src/core/codemirror/language/__tests__/sql.test.ts +22 -20
- package/src/core/codemirror/language/extension.ts +8 -8
- package/src/core/codemirror/language/languages/markdown.ts +8 -6
- package/src/core/codemirror/language/languages/python.ts +13 -7
- package/src/core/codemirror/language/languages/sql/sql.ts +9 -7
- package/src/core/codemirror/language/types.ts +7 -7
- package/src/core/codemirror/rtc/extension.ts +24 -12
- package/src/core/codemirror/rtc/loro/awareness.ts +34 -19
- package/src/core/codemirror/rtc/loro/sync.ts +1 -0
- package/src/core/codemirror/utils.ts +1 -0
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +7 -5
- package/src/core/static/__tests__/files.test.ts +38 -10
- package/src/hooks/useDebounce.ts +1 -2
- package/src/hooks/useEventListener.ts +1 -2
- package/src/plugins/__tests__/plugin-object-schemas.test.ts +104 -0
- package/src/plugins/impl/DataEditorPlugin.tsx +1 -1
- package/src/plugins/impl/DataTablePlugin.tsx +15 -18
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +2 -5
- package/src/plugins/impl/plotly/selection.ts +25 -19
- package/src/plugins/impl/vega/VegaPlugin.tsx +2 -3
- package/src/utils/tracer.ts +9 -5
- package/dist/assets/__vite-browser-external-35VXYmnw.js +0 -1
|
@@ -21896,30 +21896,30 @@ var gp = et.define(), _p = et.define(), vp = xt.define({
|
|
|
21896
21896
|
isSupported(e) {
|
|
21897
21897
|
return this.parser.isSupported(e);
|
|
21898
21898
|
}
|
|
21899
|
-
getExtension(
|
|
21900
|
-
let
|
|
21901
|
-
if (!
|
|
21902
|
-
let e =
|
|
21899
|
+
getExtension({ hotkeys: e }) {
|
|
21900
|
+
let t = Qt().language.data, n, r = () => {
|
|
21901
|
+
if (!n) return !0;
|
|
21902
|
+
let e = n?.state.field(vp);
|
|
21903
21903
|
return e === void 0 ? !1 : e.quotePrefix?.includes("f") ?? !1;
|
|
21904
21904
|
};
|
|
21905
21905
|
return [
|
|
21906
|
-
ht.define((e) => (
|
|
21906
|
+
ht.define((e) => (n = e, {})),
|
|
21907
21907
|
Qt({
|
|
21908
21908
|
base: $t,
|
|
21909
21909
|
codeLanguages: ju,
|
|
21910
|
-
extensions: [hp(ut.define(on).parser), op(en.parser,
|
|
21910
|
+
extensions: [hp(ut.define(on).parser), op(en.parser, r)]
|
|
21911
21911
|
}),
|
|
21912
|
-
tp(
|
|
21913
|
-
Rf.map((e) =>
|
|
21912
|
+
tp(e),
|
|
21913
|
+
Rf.map((e) => t.of({ autocomplete: e })),
|
|
21914
21914
|
tn().language.data.of({ autocomplete: jf({
|
|
21915
21915
|
completion: Af,
|
|
21916
|
-
predicate:
|
|
21916
|
+
predicate: r
|
|
21917
21917
|
}) }),
|
|
21918
21918
|
zt({
|
|
21919
21919
|
defaultKeymap: !1,
|
|
21920
21920
|
activateOnTyping: !0
|
|
21921
21921
|
}),
|
|
21922
|
-
wf({ predicate: () => !
|
|
21922
|
+
wf({ predicate: () => !r() })
|
|
21923
21923
|
];
|
|
21924
21924
|
}
|
|
21925
21925
|
}, bp = {
|
|
@@ -23119,7 +23119,7 @@ var Pm = Ft((e) => {
|
|
|
23119
23119
|
isSupported(e) {
|
|
23120
23120
|
return this.parser.isSupported(e);
|
|
23121
23121
|
}
|
|
23122
|
-
getExtension(e, t, n, r, i) {
|
|
23122
|
+
getExtension({ cellId: e, completionConfig: t, hotkeys: n, placeholderType: r, lspConfig: i }) {
|
|
23123
23123
|
return [
|
|
23124
23124
|
(() => {
|
|
23125
23125
|
let r = {
|
|
@@ -25473,8 +25473,8 @@ var U_ = class {
|
|
|
25473
25473
|
isSupported(e) {
|
|
25474
25474
|
return this.parser.isSupported(e);
|
|
25475
25475
|
}
|
|
25476
|
-
getExtension(
|
|
25477
|
-
let
|
|
25476
|
+
getExtension({ lspConfig: e }) {
|
|
25477
|
+
let t = W_(), n = [
|
|
25478
25478
|
V_.of(Yt({ dialect: z_ })),
|
|
25479
25479
|
dt.of([{
|
|
25480
25480
|
key: "Tab",
|
|
@@ -25488,26 +25488,26 @@ var U_ = class {
|
|
|
25488
25488
|
N_(),
|
|
25489
25489
|
sp,
|
|
25490
25490
|
P_(),
|
|
25491
|
-
|
|
25492
|
-
|
|
25493
|
-
|
|
25491
|
+
t.cteCompletionSource,
|
|
25492
|
+
t.aliasCompletionSource,
|
|
25493
|
+
t.columnCompletionSource
|
|
25494
25494
|
]
|
|
25495
25495
|
})
|
|
25496
25496
|
];
|
|
25497
|
-
if (
|
|
25498
|
-
let e = j.get(ze),
|
|
25499
|
-
|
|
25497
|
+
if (e?.diagnostics?.sql_linter ?? !1) {
|
|
25498
|
+
let e = j.get(ze), r = new J_({ getParserOptions: (e) => ({ database: nv(e) ?? B_ }) });
|
|
25499
|
+
n.push(S_({
|
|
25500
25500
|
schema: ev,
|
|
25501
25501
|
enableLinting: !0,
|
|
25502
25502
|
linterConfig: {
|
|
25503
25503
|
delay: 250,
|
|
25504
|
-
parser:
|
|
25504
|
+
parser: r,
|
|
25505
25505
|
perStatement: !1
|
|
25506
25506
|
},
|
|
25507
25507
|
enableSemanticLinting: !0,
|
|
25508
25508
|
semanticLinterConfig: {
|
|
25509
|
-
parser:
|
|
25510
|
-
structureAnalyzer:
|
|
25509
|
+
parser: t.parser,
|
|
25510
|
+
structureAnalyzer: t.structureAnalyzer,
|
|
25511
25511
|
severity: {
|
|
25512
25512
|
unknownTable: "off",
|
|
25513
25513
|
unknownColumn: "warning",
|
|
@@ -25519,29 +25519,29 @@ var U_ = class {
|
|
|
25519
25519
|
backgroundColor: "#3b82f6",
|
|
25520
25520
|
errorBackgroundColor: "#ef4444",
|
|
25521
25521
|
hideWhenNotFocused: !0,
|
|
25522
|
-
parser:
|
|
25522
|
+
parser: r
|
|
25523
25523
|
},
|
|
25524
25524
|
hoverConfig: {
|
|
25525
25525
|
hoverTime: 300,
|
|
25526
25526
|
enableKeywords: !0,
|
|
25527
25527
|
enableTables: !0,
|
|
25528
25528
|
enableColumns: !0,
|
|
25529
|
-
parser:
|
|
25530
|
-
contextAnalyzer:
|
|
25529
|
+
parser: t.parser,
|
|
25530
|
+
contextAnalyzer: t.contextAnalyzer,
|
|
25531
25531
|
theme: Eg(e)
|
|
25532
25532
|
},
|
|
25533
25533
|
enableNavigation: !0,
|
|
25534
25534
|
navigationConfig: {
|
|
25535
|
-
contextAnalyzer:
|
|
25535
|
+
contextAnalyzer: t.contextAnalyzer,
|
|
25536
25536
|
keymap: !1,
|
|
25537
|
-
parser:
|
|
25538
|
-
structureAnalyzer:
|
|
25537
|
+
parser: t.parser,
|
|
25538
|
+
structureAnalyzer: t.structureAnalyzer
|
|
25539
25539
|
}
|
|
25540
25540
|
}), He.updateListener.of((e) => {
|
|
25541
|
-
e.focusChanged &&
|
|
25541
|
+
e.focusChanged && r.setFocusState(e.view.hasFocus);
|
|
25542
25542
|
}));
|
|
25543
25543
|
}
|
|
25544
|
-
return this.sqlModeEnabled &&
|
|
25544
|
+
return this.sqlModeEnabled && n.push(av()), n;
|
|
25545
25545
|
}
|
|
25546
25546
|
};
|
|
25547
25547
|
function W_() {
|
|
@@ -26656,7 +26656,13 @@ function Py({ view: e, nextLanguage: t, opts: n }) {
|
|
|
26656
26656
|
effects: [
|
|
26657
26657
|
My.of(t),
|
|
26658
26658
|
gp.of(u),
|
|
26659
|
-
jy.reconfigure(t.getExtension(
|
|
26659
|
+
jy.reconfigure(t.getExtension({
|
|
26660
|
+
cellId: c,
|
|
26661
|
+
completionConfig: a,
|
|
26662
|
+
hotkeys: o,
|
|
26663
|
+
placeholderType: s,
|
|
26664
|
+
lspConfig: l
|
|
26665
|
+
})),
|
|
26660
26666
|
Rc.reconfigure([]),
|
|
26661
26667
|
Eu.of(!0)
|
|
26662
26668
|
],
|
|
@@ -26975,13 +26981,27 @@ var Zy = class e {
|
|
|
26975
26981
|
}
|
|
26976
26982
|
static create(t) {
|
|
26977
26983
|
let n = new $y();
|
|
26978
|
-
return n.append(t.data), new e(
|
|
26984
|
+
return n.append(t.data), new e({
|
|
26985
|
+
mimetype: t.mimetype,
|
|
26986
|
+
channel: t.channel,
|
|
26987
|
+
timestamp: t.timestamp,
|
|
26988
|
+
ansiReducer: n,
|
|
26989
|
+
code: t.code,
|
|
26990
|
+
id: t.id
|
|
26991
|
+
});
|
|
26979
26992
|
}
|
|
26980
|
-
constructor(e, t, n, r, i, a) {
|
|
26993
|
+
constructor({ mimetype: e, channel: t, timestamp: n, ansiReducer: r, code: i, id: a }) {
|
|
26981
26994
|
this.mimetype = e, this.channel = t, this.timestamp = n, this.code = i, this.id = a, this.ansiReducer = r, this._data = this.ansiReducer.render();
|
|
26982
26995
|
}
|
|
26983
26996
|
appendData(t) {
|
|
26984
|
-
return this.ansiReducer.append(t), new e(
|
|
26997
|
+
return this.ansiReducer.append(t), new e({
|
|
26998
|
+
mimetype: this.mimetype,
|
|
26999
|
+
channel: this.channel,
|
|
27000
|
+
timestamp: this.timestamp,
|
|
27001
|
+
ansiReducer: this.ansiReducer,
|
|
27002
|
+
code: this.code,
|
|
27003
|
+
id: this.id
|
|
27004
|
+
});
|
|
26985
27005
|
}
|
|
26986
27006
|
toJSON() {
|
|
26987
27007
|
return {
|
|
@@ -3,14 +3,14 @@ import { h as t, t as n } from "./button-BxB3RDjN.js";
|
|
|
3
3
|
import { t as r } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { t as a } from "./copy-icon-CPoxUG7G.js";
|
|
6
|
-
import { Dt as o, G as s, It as c, K as l, Rt as u, V as d, dn as f, h as p, i as m, n as h } from "./error-entries-
|
|
6
|
+
import { Dt as o, G as s, It as c, K as l, Rt as u, V as d, dn as f, h as p, i as m, n as h } from "./error-entries-g9iQiVIT.js";
|
|
7
7
|
import { b as g } from "./select-B0LRDH0g.js";
|
|
8
|
-
import { n as ee, t as te } from "./globals-
|
|
8
|
+
import { n as ee, t as te } from "./globals-C_258pE7.js";
|
|
9
9
|
import { t as _ } from "./jsx-runtime-3BD1kT0s.js";
|
|
10
10
|
import { C as v, _ as ne, i as y } from "./useTheme-CfeaVw5D.js";
|
|
11
11
|
import { a as re, i as ie, n as ae, r as oe } from "./dialog-C1PcpCqX.js";
|
|
12
12
|
import { t as se } from "./useAsyncData-D0mLJstx.js";
|
|
13
|
-
import { t as ce } from "./code-visibility-
|
|
13
|
+
import { t as ce } from "./code-visibility-BDTmXLwS.js";
|
|
14
14
|
//#region src/components/ui/skeleton.tsx
|
|
15
15
|
var b = /* @__PURE__ */ e(r(), 1), x = i(), S = _(), le = (e) => {
|
|
16
16
|
let n = (0, x.c)(8), r, i;
|
|
@@ -6,7 +6,7 @@ import { i as s, n as c, r as l } from "./copy-icon-CPoxUG7G.js";
|
|
|
6
6
|
import { C as u, c as d, i as f, n as p, s as m, t as h, x as g } from "./select-B0LRDH0g.js";
|
|
7
7
|
import { d as _, h as v, i as y, l as b, n as x, o as S, s as C, t as w, u as T } from "./dropdown-menu-B_7xD2X4.js";
|
|
8
8
|
import { c as E, d as D, l as O, n as k, o as A, s as ee, t as j, u as te } from "./glide-utils-Bt8_pBa2.js";
|
|
9
|
-
import { n as ne, t as re } from "./ErrorBoundary-
|
|
9
|
+
import { n as ne, t as re } from "./ErrorBoundary-CILqxxrK.js";
|
|
10
10
|
import { t as ie } from "./react-dom-DUmH0GXv.js";
|
|
11
11
|
import { t as M } from "./jsx-runtime-3BD1kT0s.js";
|
|
12
12
|
import { t as N } from "./label-BRnUC0NX.js";
|
|
@@ -7062,7 +7062,7 @@ function rs(e, t, n, r, i) {
|
|
|
7062
7062
|
}
|
|
7063
7063
|
//#endregion
|
|
7064
7064
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
|
|
7065
|
-
var is = /* @__PURE__ */ e(_r(), 1), as = /* @__PURE__ */ e(xr(), 1), os = K.lazy(async () => await import("./data-grid-overlay-editor-
|
|
7065
|
+
var is = /* @__PURE__ */ e(_r(), 1), as = /* @__PURE__ */ e(xr(), 1), os = K.lazy(async () => await import("./data-grid-overlay-editor-BgGa6I4S.js")), ss = 0;
|
|
7066
7066
|
function cs(e) {
|
|
7067
7067
|
return (0, is.default)((0, as.default)((0, as.default)(e).filter((e) => e.span !== void 0).map((e) => (0, Za.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
|
|
7068
7068
|
}
|
|
@@ -9293,7 +9293,7 @@ function Vs(e, t, n, r, i) {
|
|
|
9293
9293
|
}
|
|
9294
9294
|
//#endregion
|
|
9295
9295
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
|
|
9296
|
-
var Hs = K.lazy(async () => await import("./number-overlay-editor-
|
|
9296
|
+
var Hs = K.lazy(async () => await import("./number-overlay-editor-gXz5p6Jl.js")), Us = {
|
|
9297
9297
|
getAccessibilityString: (e) => e.data?.toString() ?? "",
|
|
9298
9298
|
kind: W.Number,
|
|
9299
9299
|
needsHover: (e) => e.hoverEffect === !0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./tooltip-CKO1pHJo.js";
|
|
2
2
|
import { _ as t } from "./useTheme-CfeaVw5D.js";
|
|
3
|
-
import { r as n } from "./code-visibility-
|
|
3
|
+
import { r as n } from "./code-visibility-BDTmXLwS.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",
|
|
@@ -5,7 +5,7 @@ import { t as l } from "./compiler-runtime-CldRdSsv.js";
|
|
|
5
5
|
import { n as u, t as d } from "./copy-icon-CPoxUG7G.js";
|
|
6
6
|
import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DKplTrBY.js";
|
|
7
7
|
import { c as _, h as v, l as y, s as b, t as x, u as ee } from "./tooltip-CKO1pHJo.js";
|
|
8
|
-
import { A as te, Ct as ne, Et as re, H as ie, M as ae, P as oe, Pt as se, Qt as ce, St as le, Tt as ue, U as de, Y as fe, a as pe, bt as me, d as he, it as ge, pt as _e, tn as ve, tt as ye, xt as be, y as xe, yt as Se } from "./error-entries-
|
|
8
|
+
import { A as te, Ct as ne, Et as re, H as ie, M as ae, P as oe, Pt as se, Qt as ce, St as le, Tt as ue, U as de, Y as fe, a as pe, bt as me, d as he, it as ge, pt as _e, tn as ve, tt as ye, xt as be, y as xe, yt as Se } from "./error-entries-g9iQiVIT.js";
|
|
9
9
|
import { M as Ce, O as we, k as Te } from "./select-B0LRDH0g.js";
|
|
10
10
|
import { ft as Ee, q as De } from "./dropdown-menu-B_7xD2X4.js";
|
|
11
11
|
import { m as Oe, y as ke } from "./toDate-DKH0_kMo.js";
|