@marimo-team/islands 0.25.3-dev209 → 0.25.3-dev210
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-ApTYh0V3.js → ConnectedDataExplorerComponent-D6RHJV8D.js} +114 -112
- package/dist/{ErrorBoundary-B1QlXN-y.js → ErrorBoundary-VruaQLnK.js} +10 -10
- package/dist/{abnfDiagram-VCTEODGH-uo9xhZY0.js → abnfDiagram-VCTEODGH-0q7Lbmii.js} +2 -2
- package/dist/{any-language-editor-BVFHDDQ3.js → any-language-editor-jGaR0EAo.js} +5 -5
- package/dist/{architectureDiagram-5GKGNRK7-Hz6eyeOD.js → architectureDiagram-5GKGNRK7-1PydKPmE.js} +1 -1
- package/dist/{button-BQRdqQi1.js → button-B6RjDKJx.js} +54 -51
- package/dist/{capabilities-C2QUNRXi.js → capabilities-CkVzWJEX.js} +1 -1
- package/dist/{chat-ui-BTA1I5i1.js → chat-ui-B5pH_aXk.js} +414 -413
- package/dist/{check-C9Mp9eCK.js → check-Z_vtI3OL.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DBM2i23k.js → chunk-IMKFNOWR-DEzZZ1Zc.js} +1 -1
- package/dist/{chunk-SHT3W25Y-L8KQLLBy.js → chunk-SHT3W25Y-CuHj-hnn.js} +1 -1
- package/dist/{chunk-SVP7TREG-BOUJKJEP.js → chunk-SVP7TREG-BPiZK2bA.js} +1 -1
- package/dist/{chunk-TICWLB2K-DY3CzFjX.js → chunk-TICWLB2K-DF6XcIjM.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-s9iwW-q4.js → classDiagram-ZZMXUADV-CMdR-cP4.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-2GI5CjGB.js → classDiagram-v2-VYDZK3BY-DRvc3_7Y.js} +2 -2
- package/dist/{code-visibility-CCGlDSq4.js → code-visibility-BdFhHfIC.js} +28 -28
- package/dist/{common-C1PmVtVW.js → common-Ce1SgsX1.js} +8034 -8027
- package/dist/{toDate-BZZ64K_m.js → config-DbjzjwxX.js} +98 -164
- package/dist/{copy-icon-De584pZ4.js → copy-icon-CG57cxwb.js} +3 -3
- package/dist/createReducer-DePYJ0F3.js +63 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-DOxnhBK2.js → cynefinDiagram-5FMLGOSQ-BkBjEY9l.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-D1AhEfpM.js → dagre-GXQ25YYZ-D-HEaW4I.js} +1 -1
- package/dist/{data-grid-overlay-editor-B3KXkZvo.js → data-grid-overlay-editor-Bps1p6jQ.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-DV_GebF_.js → diagram-S7CK7UJ4-Bn-oF-rB.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-6dNzGFfD.js → diagram-UQ7AKVKN-BpzzXWBj.js} +1 -1
- package/dist/{diagram-VX7I27RA-DUh9jsfi.js → diagram-VX7I27RA-COOtvfBP.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Cug-qcQ8.js → diagram-Z3DM3KII-K5cXvbrl.js} +1 -1
- package/dist/{dialog-DVRfQuhD.js → dialog-DsZ49mmU.js} +26 -26
- package/dist/{dist-BJtmSgcE.js → dist-11T5wq3_.js} +41 -40
- package/dist/{dist-B1M0bGO3.js → dist-17ugwGZc.js} +59 -58
- package/dist/{dist-D7mrh5sO.js → dist-7cRjf--y.js} +135 -134
- package/dist/{dist-Ck_C32ye.js → dist-B8pkfkzc.js} +31 -30
- package/dist/{dist-Ba2VIn1K.js → dist-B9UoM_wq.js} +54 -53
- package/dist/{dist-KN80qWCP.js → dist-BGuMTs1i.js} +118 -117
- package/dist/{dist-T5rh6JvL.js → dist-BHW11fni.js} +18 -17
- package/dist/dist-BLY4m1Wi.js +850 -0
- package/dist/{dist-Bj4bmwUm.js → dist-BNlcVoxs.js} +31 -30
- package/dist/{dist-BA13RJj5.js → dist-BQYe5Bju.js} +47 -46
- package/dist/{dist-OUle2RT7.js → dist-BX1mn8na.js} +297 -297
- package/dist/{dist-CTi5FTiV.js → dist-Bh0PTKUW.js} +108 -107
- package/dist/{dist-D9Q3xjiP.js → dist-CKaXK92p.js} +56 -55
- package/dist/{dist-DYXM73-k.js → dist-CLhwfhpJ.js} +58 -57
- package/dist/{dist-BmS-ZGjl.js → dist-CYeqK4Xw.js} +1854 -2702
- package/dist/{dist-D1fnFp1J.js → dist-Cxlp3WH6.js} +16 -15
- package/dist/{dist-DVVwOfrD.js → dist-DSJPGj42.js} +64 -63
- package/dist/{dist-Bzogh7CW.js → dist-DU9ICsWZ.js} +93 -92
- package/dist/{dist-DjeybPOb.js → dist-DWv0ALBi.js} +47 -46
- package/dist/{dist-D3x9__Fu.js → dist-DiBpWEsB.js} +39 -38
- package/dist/{dist-DtGn9N4h.js → dist-DiLFTlnl.js} +165 -165
- package/dist/{dist-DTv9KkpW.js → dist-cVDV5IuI.js} +26 -25
- package/dist/{dist-DP60Ubh8.js → dist-fRfaOoq8.js} +44 -43
- package/dist/{dist-O0qFpEJh.js → dist-gTTI-9Px.js} +66 -65
- package/dist/{dropdown-menu-dlEm41Bt.js → dropdown-menu-CSNdPSnS.js} +2886 -1529
- package/dist/{ebnfDiagram-PWID7BFC-d5LKx7Vb.js → ebnfDiagram-PWID7BFC-BI1ZmjVm.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-BwvlkcID.js → erDiagram-RLTQ6QDP-BtWjj9xy.js} +1 -1
- package/dist/{error-banner-DxJ3s8YO.js → error-banner-IsonnvA0.js} +47 -46
- package/dist/error-entries-CRPfxMqm.js +2505 -0
- package/dist/{esm-Bbw_Njjx.js → esm-BgKjMvWw.js} +389 -388
- package/dist/{esm-mDQNEFe_.js → esm-CHjVSexr.js} +305 -306
- package/dist/{feedback-button-UsovT9sL.js → feedback-button-2ycmR9GG.js} +112 -112
- package/dist/{flowDiagram-HODETNUW-CJcSoFer.js → flowDiagram-HODETNUW-DQvZh96A.js} +2 -2
- package/dist/{formats-Ry7c-aIV.js → formats-BK4VefeF.js} +6 -6
- package/dist/{glide-data-editor-CRd8kBSp.js → glide-data-editor-Buj2OZjL.js} +99 -99
- package/dist/{glide-utils-D98laidb.js → glide-utils-CQddGpa-.js} +3 -3
- package/dist/{globals-BDWrOstF.js → globals-B-14fUeb.js} +3 -3
- package/dist/{error-entries-CVUHA5r_.js → html-to-image-CgAnxFi8.js} +26314 -25474
- package/dist/{infoDiagram-27XIBGKW-Cezgppw3.js → infoDiagram-27XIBGKW-BdAObnc_.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-BahZQwJz.js → ishikawaDiagram-5VMMS53U-DP-jE8dw.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-Cvfn_Obm.js → kanban-definition-UXKFOSKX-BkMgPjfm.js} +1 -1
- package/dist/{loader-DOVB0Syl.js → loader-BisjOLiW.js} +1 -1
- package/dist/main.js +2996 -2992
- package/dist/{mermaid-BrdwbArF.js → mermaid-B-OFqheA.js} +36 -36
- package/dist/{mindmap-definition-YA3MSWOX-uB4B2d-J.js → mindmap-definition-YA3MSWOX-Du7toAZX.js} +1 -1
- package/dist/{number-overlay-editor-Bp9a4z5Q.js → number-overlay-editor-ZVFcJ7_u.js} +1 -1
- package/dist/{dist-CThPVKaP.js → objectWithoutPropertiesLoose-ai5NUqGa.js} +1139 -1120
- package/dist/{pegDiagram-XKGWAZYB-CYaIwAmH.js → pegDiagram-XKGWAZYB-CX_729j0.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BJ1oUxVv.js → pieDiagram-E7YTZNPT-dtTFJcVI.js} +1 -1
- package/dist/{process-output-SjJxB1wh.js → process-output-Bmev5azU.js} +5 -5
- package/dist/{railroadDiagram-O6MQD6OU-BqKSaBux.js → railroadDiagram-O6MQD6OU-Dsc2Cf4c.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DwFhgDhH.js → requirementDiagram-BXWQKSXE-D3g0c60I.js} +1 -1
- package/dist/{reveal-component-ov3pS-oO.js → reveal-component-BWz1KjWe.js} +725 -725
- package/dist/schemas-CdscWNy_.js +4747 -0
- package/dist/select-BSxlITBo.js +1200 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-L7ENjfKF.js → sequenceDiagram-WJ2MYXX4-w1pWbIpk.js} +1 -1
- package/dist/{spec-BcJ9ncAY.js → spec-Dq8RNplp.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-CVf88u-p.js → stateDiagram-D77RDMKH-BCv7kP4H.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DvpkQ1V6.js → stateDiagram-v2-MP3YSRHH-D1cTOt0x.js} +2 -2
- package/dist/static-state-BldGd99T.js +72 -0
- package/dist/strings-BGW-fXVJ.js +507 -0
- package/dist/{swimlanes-42K2YHIH-DIuFHbVE.js → swimlanes-42K2YHIH-DNO6jDnd.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CAqHAziW.js → swimlanesDiagram-VR7AAH4N-CkSWsxYJ.js} +2 -2
- package/dist/{swiper-component-BVfnhbnt.js → swiper-component-Dir1o8ml.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-xO4EQqBm.js → timeline-definition-24CTP7MA-DQvqGFM9.js} +1 -1
- package/dist/toast-BWIPi3aF.js +491 -0
- package/dist/{tooltip-s4zZxwKe.js → tooltip-C3UnvsRe.js} +58 -58
- package/dist/use-restore-focus-BWO0z1lo.js +1672 -0
- package/dist/{useAsyncData-Dqw22wZQ.js → useAsyncData-DsZMvNXn.js} +1 -1
- package/dist/{useDateFormatter-D3Tkfzej.js → useDateFormatter-ChB4eyim.js} +2 -2
- package/dist/{useDeepCompareMemoize-D3gozcjJ.js → useDeepCompareMemoize-KMBBux8C.js} +1 -1
- package/dist/{useIframeCapabilities-6a_yDNXp.js → useIframeCapabilities-cMNQ80CK.js} +1 -1
- package/dist/useLifecycle-BquH9ET-.js +112 -0
- package/dist/useTheme-B9C1JIy9.js +307 -0
- package/dist/utils-DXkj82sK.js +813 -0
- package/dist/{vega-component-Blvspl7v.js → vega-component-9NOEITbg.js} +55 -54
- package/dist/{vennDiagram-4TSXK5OY-DzCi-lRh.js → vennDiagram-4TSXK5OY-BfzXp4SH.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-CW48xa0n.js → wardleyDiagram-VM6X3IG4-CiqEE8eq.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-UPxGGI2B.js → xychartDiagram-S5SC5T6Z-BTIHCVOI.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +1 -1
- package/src/components/editor/cell/code/cell-editor.tsx +13 -36
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +1 -1
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +11 -5
- package/src/components/editor/notebook-cell.tsx +0 -1
- package/src/components/scratchpad/scratchpad.test.tsx +3 -11
- package/src/components/scratchpad/scratchpad.tsx +24 -22
- package/src/components/scratchpad/state.ts +7 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +6 -8
- package/src/core/ai/staged-cells.ts +4 -2
- package/src/core/cells/__tests__/cells.test.ts +44 -60
- package/src/core/cells/__tests__/document.test.ts +1 -139
- package/src/core/cells/__tests__/notebook-outline.test.ts +8 -6
- package/src/core/cells/actions.ts +39 -0
- package/src/core/cells/cells.ts +15 -35
- package/src/core/cells/document.ts +9 -84
- package/src/core/codemirror/__tests__/format.test.ts +0 -34
- package/src/core/codemirror/cells/extensions.ts +20 -18
- package/src/core/codemirror/cells/state.ts +0 -5
- package/src/core/codemirror/format.ts +1 -19
- package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
- package/src/core/codemirror/misc/paste.ts +1 -1
- package/src/core/notebook/document/__tests__/codemirror.test.ts +172 -0
- package/src/stories/layout/vertical/one-column.stories.tsx +26 -18
- package/dist/html-to-image--E3uFbJ9.js +0 -3348
- package/dist/label-Qvw1E97W.js +0 -281
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +0 -23
- package/dist/select-2KOiReNY.js +0 -1423
- package/dist/toast-B5t9o6s_.js +0 -1848
- package/dist/use-restore-focus-BgDTd2tc.js +0 -6418
- package/dist/useLifecycle-CaZi4wTw.js +0 -172
- package/dist/useTheme-TzPgWXwB.js +0 -1114
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
2
|
import { t } from "./react-sHtZdjeP.js";
|
|
3
3
|
import { t as n } from "./compiler-runtime-CldRdSsv.js";
|
|
4
|
-
import {
|
|
4
|
+
import { D as r } from "./utils-DXkj82sK.js";
|
|
5
5
|
import { t as i } from "./invariant-DLmrl-hA.js";
|
|
6
6
|
//#region src/hooks/useAsyncData.ts
|
|
7
7
|
var a = n(), o = /* @__PURE__ */ e(t(), 1), s = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
2
|
import { t } from "./react-sHtZdjeP.js";
|
|
3
|
-
import { m as n } from "./tooltip-
|
|
4
|
-
import {
|
|
3
|
+
import { m as n } from "./tooltip-C3UnvsRe.js";
|
|
4
|
+
import { C as r } from "./select-BSxlITBo.js";
|
|
5
5
|
var i = n("chart-pie", [["path", {
|
|
6
6
|
d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
|
|
7
7
|
key: "pzmjnu"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
2
|
import { t } from "./react-sHtZdjeP.js";
|
|
3
|
-
import {
|
|
3
|
+
import { f as n } from "./utils-DXkj82sK.js";
|
|
4
4
|
//#region src/hooks/useDeepCompareMemoize.ts
|
|
5
5
|
var r = /* @__PURE__ */ e(t(), 1);
|
|
6
6
|
function i(e) {
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
+
import { h as t, s as n } from "./button-B6RjDKJx.js";
|
|
3
|
+
import { t as r } from "./react-sHtZdjeP.js";
|
|
4
|
+
import { t as i } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
+
import { m as a } from "./tooltip-C3UnvsRe.js";
|
|
6
|
+
import { t as o } from "./jsx-runtime-3BD1kT0s.js";
|
|
7
|
+
var s = a("calendar", [
|
|
8
|
+
["path", {
|
|
9
|
+
d: "M8 2v4",
|
|
10
|
+
key: "1cmpym"
|
|
11
|
+
}],
|
|
12
|
+
["path", {
|
|
13
|
+
d: "M16 2v4",
|
|
14
|
+
key: "4m81vk"
|
|
15
|
+
}],
|
|
16
|
+
["rect", {
|
|
17
|
+
width: "18",
|
|
18
|
+
height: "18",
|
|
19
|
+
x: "3",
|
|
20
|
+
y: "4",
|
|
21
|
+
rx: "2",
|
|
22
|
+
key: "1hopcy"
|
|
23
|
+
}],
|
|
24
|
+
["path", {
|
|
25
|
+
d: "M3 10h18",
|
|
26
|
+
key: "8toen8"
|
|
27
|
+
}]
|
|
28
|
+
]), c = a("hash", [
|
|
29
|
+
["line", {
|
|
30
|
+
x1: "4",
|
|
31
|
+
x2: "20",
|
|
32
|
+
y1: "9",
|
|
33
|
+
y2: "9",
|
|
34
|
+
key: "4lhtct"
|
|
35
|
+
}],
|
|
36
|
+
["line", {
|
|
37
|
+
x1: "4",
|
|
38
|
+
x2: "20",
|
|
39
|
+
y1: "15",
|
|
40
|
+
y2: "15",
|
|
41
|
+
key: "vyu0kd"
|
|
42
|
+
}],
|
|
43
|
+
["line", {
|
|
44
|
+
x1: "10",
|
|
45
|
+
x2: "8",
|
|
46
|
+
y1: "3",
|
|
47
|
+
y2: "21",
|
|
48
|
+
key: "1ggp8o"
|
|
49
|
+
}],
|
|
50
|
+
["line", {
|
|
51
|
+
x1: "16",
|
|
52
|
+
x2: "14",
|
|
53
|
+
y1: "3",
|
|
54
|
+
y2: "21",
|
|
55
|
+
key: "weycgp"
|
|
56
|
+
}]
|
|
57
|
+
]), l = a("toggle-left", [["circle", {
|
|
58
|
+
cx: "9",
|
|
59
|
+
cy: "12",
|
|
60
|
+
r: "3",
|
|
61
|
+
key: "u3jwor"
|
|
62
|
+
}], ["rect", {
|
|
63
|
+
width: "20",
|
|
64
|
+
height: "14",
|
|
65
|
+
x: "2",
|
|
66
|
+
y: "5",
|
|
67
|
+
rx: "7",
|
|
68
|
+
key: "g7kal2"
|
|
69
|
+
}]]), u = a("type", [
|
|
70
|
+
["path", {
|
|
71
|
+
d: "M12 4v16",
|
|
72
|
+
key: "1654pz"
|
|
73
|
+
}],
|
|
74
|
+
["path", {
|
|
75
|
+
d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",
|
|
76
|
+
key: "e0r10z"
|
|
77
|
+
}],
|
|
78
|
+
["path", {
|
|
79
|
+
d: "M9 20h6",
|
|
80
|
+
key: "s66wpe"
|
|
81
|
+
}]
|
|
82
|
+
]), d = i(), f = /* @__PURE__ */ e(r(), 1), p = o(), m = n("inline-flex items-center border rounded-full px-2 py-0.5 text-xs font-semibold transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 forced-color-adjust-none", {
|
|
83
|
+
variants: { variant: {
|
|
84
|
+
default: "bg-primary hover:bg-primary/60 border-transparent text-primary-foreground forced-colors:bg-[Highlight] forced-colors:border-[Highlight] forced-colors:text-[HighlightText] forced-colors:hover:bg-[Highlight] forced-colors:hover:text-[HighlightText]",
|
|
85
|
+
defaultOutline: "bg-(--blue-2) border-(--blue-8) text-(--blue-11) forced-colors:bg-[Canvas] forced-colors:border-[Highlight] forced-colors:text-[CanvasText]",
|
|
86
|
+
secondary: "bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground forced-colors:bg-[ButtonFace] forced-colors:border-[ButtonText] forced-colors:text-[ButtonText] forced-colors:hover:bg-[Highlight] forced-colors:hover:text-[HighlightText]",
|
|
87
|
+
destructive: "bg-(--red-2) border-(--red-6) text-(--red-9) hover:bg-(--red-3) forced-colors:bg-[Canvas] forced-colors:border-[ButtonText] forced-colors:text-[CanvasText] forced-colors:hover:bg-[Highlight] forced-colors:hover:text-[HighlightText]",
|
|
88
|
+
success: "bg-(--grass-2) border-(--grass-5) text-(--grass-9) hover:bg-(--grass-3) forced-colors:bg-[Canvas] forced-colors:border-[ButtonText] forced-colors:text-[CanvasText] forced-colors:hover:bg-[Highlight] forced-colors:hover:text-[HighlightText]",
|
|
89
|
+
outline: "text-foreground forced-colors:bg-[Canvas] forced-colors:border-[ButtonText] forced-colors:text-[CanvasText]"
|
|
90
|
+
} },
|
|
91
|
+
defaultVariants: { variant: "default" }
|
|
92
|
+
}), h = (e) => {
|
|
93
|
+
let n = (0, d.c)(10), r, i, a;
|
|
94
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, variant: a, ...i} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
95
|
+
let o;
|
|
96
|
+
n[4] !== r || n[5] !== a ? (o = t(m({ variant: a }), r), n[4] = r, n[5] = a, n[6] = o) : o = n[6];
|
|
97
|
+
let s;
|
|
98
|
+
return n[7] !== i || n[8] !== o ? (s = /* @__PURE__ */ (0, p.jsx)("div", {
|
|
99
|
+
className: o,
|
|
100
|
+
...i
|
|
101
|
+
}), n[7] = i, n[8] = o, n[9] = s) : s = n[9], s;
|
|
102
|
+
};
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/hooks/useLifecycle.ts
|
|
105
|
+
function g(e) {
|
|
106
|
+
(0, f.useEffect)(e, []);
|
|
107
|
+
}
|
|
108
|
+
function _(e) {
|
|
109
|
+
(0, f.useEffect)(() => e(), []);
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
export { l as a, u as i, _ as n, c as o, h as r, s, g as t };
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { g as e, i as t, o as n } from "./button-B6RjDKJx.js";
|
|
2
|
+
import { t as r } from "./compiler-runtime-CldRdSsv.js";
|
|
3
|
+
import { l as ee, t as i } from "./_baseMerge-BiGRwuqv.js";
|
|
4
|
+
import { S as a, _ as o, f as te, i as ne, l as s, s as c, t as l, w as u, x as d } from "./utils-DXkj82sK.js";
|
|
5
|
+
import { C as f, F as p, I as m, M as h, N as g, R as _, S as v, k as y, v as b } from "./schemas-CdscWNy_.js";
|
|
6
|
+
//#region ../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mergeWith.js
|
|
7
|
+
var x = ee(function(e, t, n, r) {
|
|
8
|
+
i(e, t, n, r);
|
|
9
|
+
}), S = r(), C = [
|
|
10
|
+
"pip",
|
|
11
|
+
"uv",
|
|
12
|
+
"rye",
|
|
13
|
+
"poetry",
|
|
14
|
+
"pixi"
|
|
15
|
+
], w = [
|
|
16
|
+
"normal",
|
|
17
|
+
"compact",
|
|
18
|
+
"medium",
|
|
19
|
+
"full",
|
|
20
|
+
"columns"
|
|
21
|
+
], T = [
|
|
22
|
+
"auto",
|
|
23
|
+
"native",
|
|
24
|
+
"polars",
|
|
25
|
+
"lazy-polars",
|
|
26
|
+
"pandas"
|
|
27
|
+
], E = [
|
|
28
|
+
"html",
|
|
29
|
+
"markdown",
|
|
30
|
+
"ipynb"
|
|
31
|
+
], re = ["off", "jedi"], D = [
|
|
32
|
+
"manual",
|
|
33
|
+
"ask",
|
|
34
|
+
"agent",
|
|
35
|
+
"code_mode"
|
|
36
|
+
], O = g({
|
|
37
|
+
api_key: m().optional(),
|
|
38
|
+
base_url: m().optional(),
|
|
39
|
+
project: m().optional()
|
|
40
|
+
}).loose(), k = g({
|
|
41
|
+
chat_model: m().nullish(),
|
|
42
|
+
edit_model: m().nullish(),
|
|
43
|
+
autocomplete_model: m().nullish(),
|
|
44
|
+
displayed_models: v(m()).default([]),
|
|
45
|
+
custom_models: v(m()).default([])
|
|
46
|
+
}), A = y({
|
|
47
|
+
completion: g({
|
|
48
|
+
activate_on_typing: f().prefault(!0),
|
|
49
|
+
signature_hint_on_typing: f().prefault(!1),
|
|
50
|
+
auto_close_pairs: f().prefault(!0),
|
|
51
|
+
copilot: _([f(), b([
|
|
52
|
+
"github",
|
|
53
|
+
"codeium",
|
|
54
|
+
"custom"
|
|
55
|
+
])]).prefault(!1).transform((e) => e === !0 ? "github" : e),
|
|
56
|
+
codeium_api_key: m().nullish()
|
|
57
|
+
}).prefault({}),
|
|
58
|
+
save: y({
|
|
59
|
+
autosave: b(["off", "after_delay"]).prefault("after_delay"),
|
|
60
|
+
autosave_delay: h().nonnegative().transform((e) => Math.max(e, 1e3)).prefault(1e3),
|
|
61
|
+
format_on_save: f().prefault(!1)
|
|
62
|
+
}).prefault({}),
|
|
63
|
+
formatting: y({
|
|
64
|
+
line_length: h().nonnegative().prefault(79).transform((e) => Math.min(e, 1e3)),
|
|
65
|
+
infer_types: b(re).prefault("off")
|
|
66
|
+
}).prefault({}),
|
|
67
|
+
keymap: y({
|
|
68
|
+
preset: b(["default", "vim"]).prefault("default"),
|
|
69
|
+
overrides: p(m(), m()).prefault({}),
|
|
70
|
+
destructive_delete: f().prefault(!0)
|
|
71
|
+
}).prefault({}),
|
|
72
|
+
runtime: y({
|
|
73
|
+
auto_instantiate: f().prefault(!0),
|
|
74
|
+
on_cell_change: b(["lazy", "autorun"]).prefault("autorun"),
|
|
75
|
+
auto_reload: b([
|
|
76
|
+
"off",
|
|
77
|
+
"lazy",
|
|
78
|
+
"autorun"
|
|
79
|
+
]).prefault("off"),
|
|
80
|
+
reactive_tests: f().prefault(!0),
|
|
81
|
+
watcher_on_save: b(["lazy", "autorun"]).prefault("lazy"),
|
|
82
|
+
default_sql_output: b(T).prefault("auto"),
|
|
83
|
+
default_auto_download: v(b(E)).prefault([]),
|
|
84
|
+
show_tracebacks: f().prefault(!1)
|
|
85
|
+
}).prefault({}),
|
|
86
|
+
display: y({
|
|
87
|
+
theme: b([
|
|
88
|
+
"light",
|
|
89
|
+
"dark",
|
|
90
|
+
"system"
|
|
91
|
+
]).prefault("light"),
|
|
92
|
+
code_editor_font_size: h().nonnegative().prefault(14),
|
|
93
|
+
cell_output: b(["above", "below"]).prefault("below"),
|
|
94
|
+
dataframes: b(["rich", "plain"]).prefault("rich"),
|
|
95
|
+
default_table_page_size: h().prefault(10),
|
|
96
|
+
default_table_max_columns: h().prefault(50),
|
|
97
|
+
default_width: b(w).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
|
|
98
|
+
locale: m().nullable().optional(),
|
|
99
|
+
reference_highlighting: f().prefault(!0),
|
|
100
|
+
code_lens: f().prefault(!0)
|
|
101
|
+
}).prefault({}),
|
|
102
|
+
package_management: y({ manager: b(C).prefault("pip") }).prefault({}),
|
|
103
|
+
ai: y({
|
|
104
|
+
enabled: f().prefault(!0),
|
|
105
|
+
rules: m().prefault(""),
|
|
106
|
+
max_tokens: h().int().positive().nullable().optional(),
|
|
107
|
+
mode: b(D).transform((e) => e === "manual" ? "ask" : e).prefault("ask"),
|
|
108
|
+
inline_tooltip: f().prefault(!1),
|
|
109
|
+
allow_provider_config: f().prefault(!0),
|
|
110
|
+
open_ai: O.optional(),
|
|
111
|
+
github: O.optional(),
|
|
112
|
+
anthropic: O.optional(),
|
|
113
|
+
google: O.optional(),
|
|
114
|
+
ollama: O.optional(),
|
|
115
|
+
openrouter: O.optional(),
|
|
116
|
+
wandb: O.optional(),
|
|
117
|
+
opencode_go: O.optional(),
|
|
118
|
+
open_ai_compatible: O.optional(),
|
|
119
|
+
azure: O.optional(),
|
|
120
|
+
bedrock: y({
|
|
121
|
+
region_name: m().optional(),
|
|
122
|
+
profile_name: m().optional(),
|
|
123
|
+
aws_access_key_id: m().optional(),
|
|
124
|
+
aws_secret_access_key: m().optional()
|
|
125
|
+
}).optional(),
|
|
126
|
+
custom_providers: p(m(), O).prefault({}),
|
|
127
|
+
models: k.prefault({
|
|
128
|
+
displayed_models: [],
|
|
129
|
+
custom_models: []
|
|
130
|
+
})
|
|
131
|
+
}).prefault({}),
|
|
132
|
+
experimental: y({ markdown: f().optional() }).prefault(() => ({})),
|
|
133
|
+
server: y({
|
|
134
|
+
disable_file_downloads: f().optional(),
|
|
135
|
+
transport: b(["websocket", "sse"]).optional()
|
|
136
|
+
}).prefault(() => ({})),
|
|
137
|
+
diagnostics: y({
|
|
138
|
+
enabled: f().optional(),
|
|
139
|
+
sql_linter: f().optional()
|
|
140
|
+
}).prefault(() => ({})),
|
|
141
|
+
file_browser: y({ folders: v(g({
|
|
142
|
+
path: m(),
|
|
143
|
+
name: m().optional()
|
|
144
|
+
})).optional() }).optional().prefault({}),
|
|
145
|
+
sharing: y({
|
|
146
|
+
html: f().optional(),
|
|
147
|
+
wasm: f().optional(),
|
|
148
|
+
molab: f().optional()
|
|
149
|
+
}).optional(),
|
|
150
|
+
mcp: y({ presets: v(b(["marimo", "context7"])).optional() }).optional().prefault({})
|
|
151
|
+
}).partial().prefault(() => ({
|
|
152
|
+
completion: {},
|
|
153
|
+
save: {},
|
|
154
|
+
formatting: {},
|
|
155
|
+
keymap: {},
|
|
156
|
+
runtime: {},
|
|
157
|
+
display: {},
|
|
158
|
+
diagnostics: {},
|
|
159
|
+
file_browser: {},
|
|
160
|
+
experimental: {},
|
|
161
|
+
server: {},
|
|
162
|
+
ai: {},
|
|
163
|
+
package_management: {},
|
|
164
|
+
mcp: {}
|
|
165
|
+
})), j = m(), M = b(T).prefault("auto"), N = g({
|
|
166
|
+
width: b(w).prefault("compact").transform((e) => e === "normal" ? "compact" : e),
|
|
167
|
+
app_title: j.nullish(),
|
|
168
|
+
css_file: m().nullish(),
|
|
169
|
+
html_head_file: m().nullish(),
|
|
170
|
+
auto_download: v(b(E)).prefault([]),
|
|
171
|
+
sql_output: M
|
|
172
|
+
}).prefault(() => ({
|
|
173
|
+
width: "compact",
|
|
174
|
+
auto_download: [],
|
|
175
|
+
sql_output: "auto"
|
|
176
|
+
}));
|
|
177
|
+
function P(t) {
|
|
178
|
+
try {
|
|
179
|
+
return N.parse(t);
|
|
180
|
+
} catch (t) {
|
|
181
|
+
return e.error(`Marimo got an unexpected value in the configuration file: ${t}`), N.parse({});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function F() {
|
|
185
|
+
return A.parse({
|
|
186
|
+
completion: {},
|
|
187
|
+
save: {},
|
|
188
|
+
formatting: {},
|
|
189
|
+
keymap: {},
|
|
190
|
+
runtime: {},
|
|
191
|
+
display: {},
|
|
192
|
+
diagnostics: {},
|
|
193
|
+
file_browser: {},
|
|
194
|
+
experimental: {},
|
|
195
|
+
server: {},
|
|
196
|
+
ai: {},
|
|
197
|
+
package_management: {},
|
|
198
|
+
mcp: {}
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/core/config/config.ts
|
|
203
|
+
function I(...e) {
|
|
204
|
+
return x({}, ...e, (e, t) => {
|
|
205
|
+
if (Array.isArray(t)) return [...t];
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
var L = u(F()), R = u({}), z = u((e) => {
|
|
209
|
+
let t = e(R);
|
|
210
|
+
return I(e(L), t);
|
|
211
|
+
}), B = u((e) => e(z).runtime.auto_instantiate), V = u((e) => e(z).keymap.overrides ?? {}), H = u(n());
|
|
212
|
+
u((e) => {
|
|
213
|
+
let n = e(V), r = e(H);
|
|
214
|
+
return new t(n, { platform: r });
|
|
215
|
+
}), u((e) => e(z).save), u((e) => e(z).server.transport === "sse" ? "sse" : "websocket"), u((e) => e(z).ai), u((e) => e(z).completion), u((e) => e(z).keymap.preset);
|
|
216
|
+
function ie() {
|
|
217
|
+
let e = (0, S.c)(3), t = d(z), n = a(L), r;
|
|
218
|
+
return e[0] !== t || e[1] !== n ? (r = [t, n], e[0] = t, e[1] = n, e[2] = r) : r = e[2], r;
|
|
219
|
+
}
|
|
220
|
+
function U() {
|
|
221
|
+
return s.get(z);
|
|
222
|
+
}
|
|
223
|
+
u((e) => q(e(z)));
|
|
224
|
+
var W = u((e) => J(e(z))), G = u((e) => Y(e(z)));
|
|
225
|
+
u((e) => e(z).display.code_editor_font_size);
|
|
226
|
+
var K = u((e) => e(z).display.locale);
|
|
227
|
+
function q(e) {
|
|
228
|
+
return e.ai?.enabled !== !1;
|
|
229
|
+
}
|
|
230
|
+
function J(e) {
|
|
231
|
+
return !!e.ai?.models?.chat_model || !!e.ai?.models?.edit_model || !!e.ai?.models?.autocomplete_model;
|
|
232
|
+
}
|
|
233
|
+
function Y(e) {
|
|
234
|
+
return q(e) && J(e);
|
|
235
|
+
}
|
|
236
|
+
var ae = u({}), oe = o(u((e) => e(c)?.revision.app_config ?? e(ae)), (e) => e, te), se = u((e) => P(e(oe)));
|
|
237
|
+
u((e) => e(se).width), u((e) => {
|
|
238
|
+
let t = e(z), n = t.snippets?.custom_paths ?? [], r = t.snippets?.include_default_snippets;
|
|
239
|
+
return n.length > 0 || r === !0;
|
|
240
|
+
}), u((e) => e(z).server?.disable_file_downloads ?? !1);
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/theme/useTheme.ts
|
|
243
|
+
var ce = [
|
|
244
|
+
"light",
|
|
245
|
+
"dark",
|
|
246
|
+
"system"
|
|
247
|
+
];
|
|
248
|
+
function le() {
|
|
249
|
+
if (typeof window > "u") return;
|
|
250
|
+
let e = new URLSearchParams(window.location.search).get(ne.theme);
|
|
251
|
+
return ce.includes(e) ? e : void 0;
|
|
252
|
+
}
|
|
253
|
+
var ue = u((e) => {
|
|
254
|
+
if (l()) {
|
|
255
|
+
if (document.body.classList.contains("dark-mode") || document.body.classList.contains("dark") || document.body.dataset.theme === "dark" || document.body.dataset.mode === "dark" || Z() === "dark") return "dark";
|
|
256
|
+
let e = window.getComputedStyle(document.body), t = e.getPropertyValue("color-scheme").trim();
|
|
257
|
+
if (t) return t.includes("dark") ? "dark" : "light";
|
|
258
|
+
let n = e.getPropertyValue("background-color").match(/\d+/g);
|
|
259
|
+
if (n) {
|
|
260
|
+
let [e, t, r] = n.map(Number);
|
|
261
|
+
return (e * 299 + t * 587 + r * 114) / 1e3 < 128 ? "dark" : "light";
|
|
262
|
+
}
|
|
263
|
+
return "light";
|
|
264
|
+
}
|
|
265
|
+
return le() ?? e(z).display.theme;
|
|
266
|
+
}), X = u(!1);
|
|
267
|
+
function de() {
|
|
268
|
+
if (typeof window > "u" || !window.matchMedia) return;
|
|
269
|
+
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
270
|
+
s.set(X, e.matches), e.addEventListener("change", (e) => {
|
|
271
|
+
s.set(X, e.matches);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
de();
|
|
275
|
+
function Z() {
|
|
276
|
+
switch (document.body.dataset.vscodeThemeKind) {
|
|
277
|
+
case "vscode-dark": return "dark";
|
|
278
|
+
case "vscode-high-contrast": return "dark";
|
|
279
|
+
case "vscode-light": return "light";
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
var Q = u(Z());
|
|
283
|
+
function fe() {
|
|
284
|
+
let e = new MutationObserver(() => {
|
|
285
|
+
let e = Z();
|
|
286
|
+
s.set(Q, e);
|
|
287
|
+
});
|
|
288
|
+
return e.observe(document.body, {
|
|
289
|
+
attributes: !0,
|
|
290
|
+
attributeFilter: ["data-vscode-theme-kind"]
|
|
291
|
+
}), () => e.disconnect();
|
|
292
|
+
}
|
|
293
|
+
fe();
|
|
294
|
+
var $ = u((e) => {
|
|
295
|
+
let t = e(ue), n = e(Q);
|
|
296
|
+
if (n !== void 0) return n;
|
|
297
|
+
let r = e(X);
|
|
298
|
+
return t === "system" ? r ? "dark" : "light" : t;
|
|
299
|
+
});
|
|
300
|
+
function pe() {
|
|
301
|
+
let e = (0, S.c)(3), t;
|
|
302
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = { store: s }, e[0] = t) : t = e[0];
|
|
303
|
+
let n = d($, t), r;
|
|
304
|
+
return e[1] === n ? r = e[2] : (r = { theme: n }, e[1] = n, e[2] = r), r;
|
|
305
|
+
}
|
|
306
|
+
//#endregion
|
|
307
|
+
export { B as a, I as c, L as d, W as i, z as l, pe as n, U as o, G as r, K as s, $ as t, ie as u };
|