@marimo-team/islands 0.24.1-dev3 → 0.24.1-dev30
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-BUC1MrsF.js → ConnectedDataExplorerComponent-yEsovh7C.js} +4 -4
- package/dist/arrays-Ct6XviUd.js +59 -0
- package/dist/{capabilities-BilXeZ7p.js → capabilities-DNKeBoT5.js} +1 -1
- package/dist/{chat-ui-ChBRy1iT.js → chat-ui-ChbH2I73.js} +3 -3
- package/dist/{common-BvTQu-LJ.js → common-Cy9zypnG.js} +17 -11
- package/dist/{formats-Dz0QNUEa.js → formats-BZtMpeQe.js} +1 -1
- package/dist/{glide-data-editor-BI2i_IEE.js → glide-data-editor-aimC_hok.js} +3 -1
- package/dist/{html-to-image-BtNr4zrO.js → html-to-image-BzT-fb14.js} +2357 -2325
- package/dist/{input-BRE2a7Ay.js → input-CqV2ZPgL.js} +1 -1
- package/dist/{loader-DTnbNSVZ.js → loader-Chm6nOqy.js} +1 -1
- package/dist/main.js +1108 -1014
- package/dist/{once-Boutk_9X.js → once-D1_qYl2e.js} +1 -1
- package/dist/{process-output-Dch8KCi8.js → process-output-C8Q8G6-g.js} +1 -1
- package/dist/{react-vega-zyfTF9SY.js → react-vega-BE2Uv1cq.js} +1 -1
- package/dist/{reveal-component-qNkzuPp3.js → reveal-component-2JQ2YfIT.js} +5 -5
- package/dist/{spec-BL1GSUUF.js → spec-DR1CyTOo.js} +2 -0
- package/dist/style.css +1 -1
- package/dist/{swiper-component-Cx0cRWLk.js → swiper-component-UYicacis.js} +1 -1
- package/dist/{useIframeCapabilities-CxuXXwjj.js → useIframeCapabilities-BbnoLKxG.js} +1 -1
- package/dist/{vega-component-CioKuDut.js → vega-component-xrHju6oo.js} +5 -5
- package/dist/{vega-embed-container-BRjjqRGz.js → vega-embed-container-B1tc-DoN.js} +2 -2
- package/dist/{vega-loader.browser-CGb-2Kwi.js → vega-loader.browser-VFQfHaoV.js} +1 -1
- package/package.json +1 -1
- package/src/components/app-config/optional-features.test.ts +78 -0
- package/src/components/app-config/optional-features.tsx +33 -6
- package/src/components/data-table/__tests__/column_formatting.test.ts +7 -0
- package/src/components/data-table/charts/__tests__/schemas.test.ts +17 -2
- package/src/components/data-table/charts/chart-spec/types.ts +2 -0
- package/src/components/data-table/column-formatting/feature.ts +1 -0
- package/src/components/data-table/column-formatting/types.ts +1 -0
- package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -0
- package/src/components/data-table/column-summary/column-summary.tsx +1 -0
- package/src/components/data-table/columns.tsx +4 -3
- package/src/components/datasets/__tests__/icons.test.ts +10 -2
- package/src/components/datasets/icons.tsx +4 -0
- package/src/components/datasources/__tests__/components.test.tsx +14 -1
- package/src/components/datasources/datasources.tsx +2 -40
- package/src/components/editor/chrome/panels/components.tsx +35 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +10 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +12 -4
- package/src/components/editor/connections/__tests__/quick-add-data-sources.test.tsx +2 -0
- package/src/components/editor/connections/add-connection-dialog.tsx +5 -1
- package/src/components/editor/connections/quick-add-data-sources.tsx +11 -7
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +43 -0
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +127 -0
- package/src/components/editor/connections/storage/add-storage-form.tsx +11 -1
- package/src/components/editor/connections/storage/as-code.ts +30 -1
- package/src/components/editor/connections/storage/schemas.ts +63 -0
- package/src/core/codemirror/code-lens/__tests__/popover.test.ts +13 -0
- package/src/core/codemirror/code-lens/popover.tsx +11 -5
- package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +15 -4
- package/src/core/codemirror/language/languages/sql/renderers.tsx +1 -0
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +277 -0
- package/src/core/datasets/data-source-connections.ts +36 -0
- package/src/core/datasets/data-source-discovery.ts +92 -0
- package/src/core/kernel/messages.ts +1 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +11 -3
- package/src/hooks/useDataSourceDiscovery.ts +50 -9
- package/src/plugins/impl/MatrixPlugin.tsx +256 -35
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +13 -1
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +540 -3
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +1 -0
- package/src/plugins/impl/data-editor/glide-utils.ts +1 -0
- package/src/plugins/impl/data-frames/__tests__/schema.test.ts +9 -1
- package/src/plugins/impl/data-frames/utils/__tests__/operators.test.ts +8 -0
- package/src/plugins/impl/data-frames/utils/operators.ts +1 -1
- package/src/plugins/impl/vega/__tests__/vega.test.ts +22 -4
- package/src/plugins/impl/vega/utils.ts +3 -0
- package/dist/arrays-C56grfjL.js +0 -55
- package/src/hooks/__tests__/useDataSourceDiscovery.test.ts +0 -80
package/dist/arrays-C56grfjL.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { t as invariant } from "./invariant-hOqqBz8A.js";
|
|
2
|
-
function clamp(e, o, s) {
|
|
3
|
-
return Math.min(Math.max(e, o), s);
|
|
4
|
-
}
|
|
5
|
-
function arrayDelete(e, o) {
|
|
6
|
-
let s = [...e];
|
|
7
|
-
return s.splice(o, 1), s;
|
|
8
|
-
}
|
|
9
|
-
function arrayInsert(e, s, c) {
|
|
10
|
-
s = clamp(s, 0, e.length);
|
|
11
|
-
let l = [...e];
|
|
12
|
-
return l.splice(s, 0, c), l;
|
|
13
|
-
}
|
|
14
|
-
function arrayMove(e, o, s) {
|
|
15
|
-
let c = [...e], [l] = c.splice(o, 1);
|
|
16
|
-
return c.splice(s, 0, l), c;
|
|
17
|
-
}
|
|
18
|
-
function arrayInsertMany(e, s, c) {
|
|
19
|
-
if (e.length === 0) return c;
|
|
20
|
-
s = clamp(s, 0, e.length);
|
|
21
|
-
let l = [...e];
|
|
22
|
-
return l.splice(s, 0, ...c), l;
|
|
23
|
-
}
|
|
24
|
-
function arrayShallowEquals(e, o) {
|
|
25
|
-
if (e === o) return true;
|
|
26
|
-
if (e.length !== o.length) return false;
|
|
27
|
-
for (let s = 0, c = e.length; s < c; s++) if (e[s] !== o[s]) return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
const Arrays = {
|
|
31
|
-
EMPTY: [],
|
|
32
|
-
zip: (o, s) => (invariant(o.length === s.length, "Arrays must be the same length"), o.map((e, o2) => [e, s[o2]]))
|
|
33
|
-
};
|
|
34
|
-
function uniq(e) {
|
|
35
|
-
return [...new Set(e)];
|
|
36
|
-
}
|
|
37
|
-
function uniqueBy(e, o) {
|
|
38
|
-
let s = [], c = /* @__PURE__ */ new Set();
|
|
39
|
-
for (let l of e) {
|
|
40
|
-
let e2 = o(l);
|
|
41
|
-
c.has(e2) || (c.add(e2), s.push(l));
|
|
42
|
-
}
|
|
43
|
-
return s;
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
arrayMove as a,
|
|
47
|
-
uniqueBy as c,
|
|
48
|
-
arrayInsertMany as i,
|
|
49
|
-
clamp as l,
|
|
50
|
-
arrayDelete as n,
|
|
51
|
-
arrayShallowEquals as o,
|
|
52
|
-
arrayInsert as r,
|
|
53
|
-
uniq as s,
|
|
54
|
-
Arrays as t
|
|
55
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
-
|
|
3
|
-
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
4
|
-
import { DiscoverDataSources } from "@/core/datasets/request-registry";
|
|
5
|
-
import { loadDataSourceDiscovery } from "../useDataSourceDiscovery";
|
|
6
|
-
|
|
7
|
-
describe("loadDataSourceDiscovery", () => {
|
|
8
|
-
afterEach(() => {
|
|
9
|
-
vi.restoreAllMocks();
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
it("returns the kernel's secret-free discovery model", async () => {
|
|
13
|
-
const sources = [
|
|
14
|
-
{
|
|
15
|
-
id: "pyiceberg-prod",
|
|
16
|
-
integration: "pyiceberg",
|
|
17
|
-
category: "catalog" as const,
|
|
18
|
-
displayName: "PyIceberg (prod)",
|
|
19
|
-
confidence: "high" as const,
|
|
20
|
-
origins: [
|
|
21
|
-
{
|
|
22
|
-
type: "configuration" as const,
|
|
23
|
-
label: "Resolved PyIceberg configuration",
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
configuration: [
|
|
27
|
-
{
|
|
28
|
-
field: "Catalog",
|
|
29
|
-
value: {
|
|
30
|
-
kind: "safe-literal" as const,
|
|
31
|
-
value: "prod",
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
code: 'catalog = load_catalog("prod")',
|
|
36
|
-
},
|
|
37
|
-
];
|
|
38
|
-
const request = vi.spyOn(DiscoverDataSources, "request").mockResolvedValue({
|
|
39
|
-
request_id: "request-id",
|
|
40
|
-
sources,
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
const detected = await loadDataSourceDiscovery();
|
|
44
|
-
|
|
45
|
-
expect({ detected, requests: request.mock.calls }).toMatchInlineSnapshot(`
|
|
46
|
-
{
|
|
47
|
-
"detected": [
|
|
48
|
-
{
|
|
49
|
-
"category": "catalog",
|
|
50
|
-
"code": "catalog = load_catalog("prod")",
|
|
51
|
-
"confidence": "high",
|
|
52
|
-
"configuration": [
|
|
53
|
-
{
|
|
54
|
-
"field": "Catalog",
|
|
55
|
-
"value": {
|
|
56
|
-
"kind": "safe-literal",
|
|
57
|
-
"value": "prod",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
"displayName": "PyIceberg (prod)",
|
|
62
|
-
"id": "pyiceberg-prod",
|
|
63
|
-
"integration": "pyiceberg",
|
|
64
|
-
"origins": [
|
|
65
|
-
{
|
|
66
|
-
"label": "Resolved PyIceberg configuration",
|
|
67
|
-
"type": "configuration",
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
"requests": [
|
|
73
|
-
[
|
|
74
|
-
{},
|
|
75
|
-
],
|
|
76
|
-
],
|
|
77
|
-
}
|
|
78
|
-
`);
|
|
79
|
-
});
|
|
80
|
-
});
|