@marimo-team/islands 0.25.3-dev272 → 0.25.3-dev275
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-eLHPh6uu.js → ConnectedDataExplorerComponent-CErm132k.js} +25 -26
- package/dist/{ErrorBoundary-vPW0qTmm.js → ErrorBoundary-BuIXiuc5.js} +43 -44
- package/dist/{abnfDiagram-VCTEODGH-hqd0IBtX.js → abnfDiagram-VCTEODGH-d-Qn2fwb.js} +2 -2
- package/dist/{any-language-editor-DnG26QXh.js → any-language-editor-6k6F12Z3.js} +3 -3
- package/dist/{architectureDiagram-5GKGNRK7-BzLAFcc0.js → architectureDiagram-5GKGNRK7-DxragHYv.js} +1 -1
- package/dist/{assertNever-DIU3JJbt.js → assertNever-B-YzWzbL.js} +14 -14
- package/dist/{button-0-RqY1DW.js → button-DZuNnIZO.js} +220 -223
- package/dist/{capabilities-B6yy_CBN.js → capabilities-D9FskwsK.js} +1 -1
- package/dist/{chat-ui-BWIkve2R.js → chat-ui-SZ6lSH52.js} +144 -145
- package/dist/{check-gUSZbRsl.js → check-XFzZeH-y.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DOeVvuyE.js → chunk-IMKFNOWR-C0x0feFg.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DZoFI8wR.js → chunk-SHT3W25Y-D0ZdASqB.js} +1 -1
- package/dist/{chunk-SVP7TREG-CWu86PSW.js → chunk-SVP7TREG-BHjL96zx.js} +1 -1
- package/dist/{chunk-TICWLB2K-BrM0GoP3.js → chunk-TICWLB2K-CzcrwGfp.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-DYi4V2bB.js → classDiagram-ZZMXUADV-BTqFAZTP.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-tN7FIk-m.js → classDiagram-v2-VYDZK3BY-EPXb0Elt.js} +2 -2
- package/dist/{code-visibility-9gqV0vno.js → code-visibility-BEAPMrC-.js} +20 -20
- package/dist/{common-CT0KuTWr.js → common-CEmzaoJ8.js} +799 -801
- package/dist/{config-BsPruWMR.js → config-C8MFHQ2E.js} +23 -22
- package/dist/{copy-icon-C2I8sw4h.js → copy-icon-CtllOdmg.js} +3 -3
- package/dist/{createReducer-DdtT_7ji.js → createReducer-DRqwmaTc.js} +2 -2
- package/dist/{cynefinDiagram-5FMLGOSQ-D5nCnDc-.js → cynefinDiagram-5FMLGOSQ-CBSD344q.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-BHkd7f_i.js → dagre-GXQ25YYZ-JItjh3Ge.js} +1 -1
- package/dist/{data-grid-overlay-editor-DKDADhfM.js → data-grid-overlay-editor-CUo25_W8.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-D1ALppT2.js → diagram-S7CK7UJ4-CTD9xTVb.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-DLv0b83L.js → diagram-UQ7AKVKN-DTfnFai8.js} +1 -1
- package/dist/{diagram-VX7I27RA-7XJ7J6qg.js → diagram-VX7I27RA-BcSnucV-.js} +1 -1
- package/dist/{diagram-Z3DM3KII-7M7zbHp_.js → diagram-Z3DM3KII-C2ATIE8A.js} +1 -1
- package/dist/{dialog-DzCj1qQv.js → dialog-CaYm5imE.js} +33 -33
- package/dist/{dropdown-menu-CdXE15an.js → dropdown-menu-Bb0bFOIk.js} +149 -149
- package/dist/{ebnfDiagram-PWID7BFC-DHH1qlmV.js → ebnfDiagram-PWID7BFC-B7B9JPxc.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-fI_0dGef.js → erDiagram-RLTQ6QDP-v6hDno1O.js} +1 -1
- package/dist/{error-banner-DPc9eIw5.js → error-banner-CHCdHVFB.js} +44 -45
- package/dist/{error-entries-CxN-Nq3V.js → error-entries-B-1yUdcH.js} +406 -407
- package/dist/{feedback-button-Bo7swAlq.js → feedback-button-BqiR7zMO.js} +11 -11
- package/dist/{flowDiagram-HODETNUW-Brg9MA6i.js → flowDiagram-HODETNUW-aIFlAtOy.js} +2 -2
- package/dist/{formats-DbSvAPY-.js → formats-PzBQMUnr.js} +3 -3
- package/dist/{glide-data-editor-CSrAhQAR.js → glide-data-editor-B7dguvqk.js} +14 -16
- package/dist/{glide-utils-BSw3SSHF.js → glide-utils-BSQr4d90.js} +51 -59
- package/dist/{globals-CQZo8Fcj.js → globals-CYykXfGI.js} +3 -3
- package/dist/{html-to-image-Bc2AvXHG.js → html-to-image-DC_pmZLs.js} +546 -548
- package/dist/{infoDiagram-27XIBGKW-E9e403YT.js → infoDiagram-27XIBGKW-D6YHLeCP.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-C-RlYDRo.js → ishikawaDiagram-5VMMS53U-D1ZvprOX.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CLFl_uqK.js → kanban-definition-UXKFOSKX-Bna_3BMr.js} +1 -1
- package/dist/{loader-BVEtQ4F3.js → loader-DZvtzQoD.js} +1 -1
- package/dist/main.js +6772 -6771
- package/dist/{mermaid-rd09e1JL.js → mermaid-A36unKXJ.js} +50 -50
- package/dist/{mindmap-definition-YA3MSWOX-BQ8TWtyB.js → mindmap-definition-YA3MSWOX-CyVCs__G.js} +1 -1
- package/dist/{number-overlay-editor-noy9X-05.js → number-overlay-editor-C4u7SJAJ.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CN8UHFPi.js → pegDiagram-XKGWAZYB-9hNBD2wZ.js} +2 -2
- package/dist/{pencil-DcT8AE0h.js → pencil-DYUlSKxZ.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-DGuJ0EBd.js → pieDiagram-E7YTZNPT-8tr-NYo7.js} +1 -1
- package/dist/{process-output-qecD7Dk8.js → process-output-DYu84VfZ.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-BPDA8wy8.js → railroadDiagram-O6MQD6OU-Dzg1dyyp.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-ChzLGbGW.js → requirementDiagram-BXWQKSXE-B7sNqwGG.js} +1 -1
- package/dist/{reveal-component-C6H7NzHW.js → reveal-component-DGi-irHV.js} +589 -589
- package/dist/{select-OxgozOC8.js → select-DsoP1qe8.js} +290 -290
- package/dist/{sequenceDiagram-WJ2MYXX4-DFX-bE6O.js → sequenceDiagram-WJ2MYXX4-oP9shbaG.js} +1 -1
- package/dist/{spec-oJn0RhpQ.js → spec-BZMDxAu7.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-BR7cI3wK.js → stateDiagram-D77RDMKH-CjCv4ogv.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-oGqB5UDI.js → stateDiagram-v2-MP3YSRHH-BW9X162a.js} +2 -2
- package/dist/{static-state-CuV6Pc3a.js → static-state-D-Q-Ajaa.js} +8 -8
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-DwSZl1yC.js → swimlanes-42K2YHIH-Ckfs9Wrn.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BHlcd-Ri.js → swimlanesDiagram-VR7AAH4N-DpTNG9YP.js} +2 -2
- package/dist/{swiper-component-Dvj-goaD.js → swiper-component-DQbK_ZWm.js} +7 -7
- package/dist/{timeline-definition-24CTP7MA-DMmP-G2O.js → timeline-definition-24CTP7MA-BXaBlV6U.js} +1 -1
- package/dist/{toast-DbBHmxmB.js → toast-BhjIy3Tq.js} +158 -158
- package/dist/{tooltip-BfcDQd2j.js → tooltip-DMMiOn2f.js} +64 -64
- package/dist/use-restore-focus-CosX7-gx.js +7568 -0
- package/dist/{useAsyncData-BYIAoMqn.js → useAsyncData-Ci4AvJff.js} +4 -4
- package/dist/{useDateFormatter-ButWkdcK.js → useDateFormatter-CPlava52.js} +2 -2
- package/dist/{useDeepCompareMemoize-Bz0c5GN6.js → useDeepCompareMemoize-NaaWoFlX.js} +1 -1
- package/dist/useEvent-BRH-aCqi.js +19 -0
- package/dist/{useIframeCapabilities-BIolGsF1.js → useIframeCapabilities-BXhDDoCG.js} +1 -1
- package/dist/{useLifecycle-JjxCC7Vu.js → useLifecycle-SniivYmC.js} +2 -2
- package/dist/{vega-component-rxIxAAh9.js → vega-component-DIxaDQNs.js} +40 -40
- package/dist/{vennDiagram-4TSXK5OY-Db8GtH1G.js → vennDiagram-4TSXK5OY-C-hQ4iNJ.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DmIiC3FU.js → wardleyDiagram-VM6X3IG4-C2MQ_Umv.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DS9OPrNq.js → xychartDiagram-S5SC5T6Z-BtTTBn7Q.js} +1 -1
- package/package.json +1 -1
- package/src/core/islands/components/__tests__/web-components.test.tsx +63 -0
- package/src/core/islands/components/web-components.tsx +11 -0
- package/src/css/globals.css +6 -2
- package/src/plugins/impl/DataEditorPlugin.tsx +0 -4
- package/src/plugins/impl/data-editor/__tests__/column-types.test.ts +5 -0
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +9 -5
- package/src/plugins/impl/data-editor/column-types.ts +3 -0
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +6 -5
- package/src/plugins/impl/data-editor/glide-utils.ts +10 -32
- package/src/plugins/impl/data-editor/types.ts +0 -2
- package/src/theme/__tests__/islands-theme.test.tsx +276 -0
- package/src/theme/namespace.tsx +4 -3
- package/src/theme/useTheme.ts +71 -41
- package/dist/schemas-CdscWNy_.js +0 -4747
- package/dist/use-restore-focus-CmflVLWJ.js +0 -1672
- package/dist/useTheme-DPLobSFs.js +0 -339
- package/dist/utils-EBklsC5R.js +0 -813
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import { g as e, i as t, o as n } from "./button-0-RqY1DW.js";
|
|
2
|
-
import { t as r } from "./compiler-runtime-CldRdSsv.js";
|
|
3
|
-
import { m as i } from "./isArrayLikeObject-B-HXCsex.js";
|
|
4
|
-
import { a, i as o, n as s, r as ee, s as te, t as ne } from "./_baseSet-BfI5FjBM.js";
|
|
5
|
-
import { S as re, _ as ie, f as c, i as l, l as u, o as d, t as ae, w as f, x as p } from "./utils-EBklsC5R.js";
|
|
6
|
-
import { C as m, F as h, I as g, M as _, N as v, R as y, S as b, k as x, v as S } from "./schemas-CdscWNy_.js";
|
|
7
|
-
//#region ../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mergeWith.js
|
|
8
|
-
var oe = te(function(e, t, n, r) {
|
|
9
|
-
ee(e, t, n, r);
|
|
10
|
-
});
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region ../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/set.js
|
|
13
|
-
function C(e, t, n) {
|
|
14
|
-
return e == null ? e : ne(e, t, n);
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region src/core/config/config-schema.ts
|
|
18
|
-
var w = r(), se = [
|
|
19
|
-
"pip",
|
|
20
|
-
"uv",
|
|
21
|
-
"rye",
|
|
22
|
-
"poetry",
|
|
23
|
-
"pixi"
|
|
24
|
-
], T = [
|
|
25
|
-
"normal",
|
|
26
|
-
"compact",
|
|
27
|
-
"medium",
|
|
28
|
-
"full",
|
|
29
|
-
"columns"
|
|
30
|
-
], E = [
|
|
31
|
-
"auto",
|
|
32
|
-
"native",
|
|
33
|
-
"polars",
|
|
34
|
-
"lazy-polars",
|
|
35
|
-
"pandas"
|
|
36
|
-
], D = [
|
|
37
|
-
"html",
|
|
38
|
-
"markdown",
|
|
39
|
-
"ipynb"
|
|
40
|
-
], O = ["off", "jedi"], k = [
|
|
41
|
-
"manual",
|
|
42
|
-
"ask",
|
|
43
|
-
"agent",
|
|
44
|
-
"code_mode"
|
|
45
|
-
], A = v({
|
|
46
|
-
api_key: g().optional(),
|
|
47
|
-
base_url: g().optional(),
|
|
48
|
-
project: g().optional()
|
|
49
|
-
}).loose(), j = v({
|
|
50
|
-
chat_model: g().nullish(),
|
|
51
|
-
edit_model: g().nullish(),
|
|
52
|
-
autocomplete_model: g().nullish(),
|
|
53
|
-
displayed_models: b(g()).default([]),
|
|
54
|
-
custom_models: b(g()).default([])
|
|
55
|
-
}), M = x({
|
|
56
|
-
completion: v({
|
|
57
|
-
activate_on_typing: m().prefault(!0),
|
|
58
|
-
signature_hint_on_typing: m().prefault(!1),
|
|
59
|
-
auto_close_pairs: m().prefault(!0),
|
|
60
|
-
copilot: y([m(), S([
|
|
61
|
-
"github",
|
|
62
|
-
"codeium",
|
|
63
|
-
"custom"
|
|
64
|
-
])]).prefault(!1).transform((e) => e === !0 ? "github" : e),
|
|
65
|
-
codeium_api_key: g().nullish()
|
|
66
|
-
}).prefault({}),
|
|
67
|
-
save: x({
|
|
68
|
-
autosave: S(["off", "after_delay"]).prefault("after_delay"),
|
|
69
|
-
autosave_delay: _().nonnegative().transform((e) => Math.max(e, 1e3)).prefault(1e3),
|
|
70
|
-
format_on_save: m().prefault(!1)
|
|
71
|
-
}).prefault({}),
|
|
72
|
-
formatting: x({
|
|
73
|
-
line_length: _().nonnegative().prefault(79).transform((e) => Math.min(e, 1e3)),
|
|
74
|
-
infer_types: S(O).prefault("off")
|
|
75
|
-
}).prefault({}),
|
|
76
|
-
keymap: x({
|
|
77
|
-
preset: S(["default", "vim"]).prefault("default"),
|
|
78
|
-
overrides: h(g(), g()).prefault({}),
|
|
79
|
-
destructive_delete: m().prefault(!0)
|
|
80
|
-
}).prefault({}),
|
|
81
|
-
runtime: x({
|
|
82
|
-
auto_instantiate: m().prefault(!0),
|
|
83
|
-
on_cell_change: S(["lazy", "autorun"]).prefault("autorun"),
|
|
84
|
-
auto_reload: S([
|
|
85
|
-
"off",
|
|
86
|
-
"lazy",
|
|
87
|
-
"autorun"
|
|
88
|
-
]).prefault("off"),
|
|
89
|
-
reactive_tests: m().prefault(!0),
|
|
90
|
-
watcher_on_save: S(["lazy", "autorun"]).prefault("lazy"),
|
|
91
|
-
sql_default_limit: _().int().nullable().optional(),
|
|
92
|
-
default_sql_output: S(E).prefault("auto"),
|
|
93
|
-
default_auto_download: b(S(D)).prefault([]),
|
|
94
|
-
show_tracebacks: m().prefault(!1)
|
|
95
|
-
}).prefault({}),
|
|
96
|
-
display: x({
|
|
97
|
-
theme: S([
|
|
98
|
-
"light",
|
|
99
|
-
"dark",
|
|
100
|
-
"system"
|
|
101
|
-
]).prefault("light"),
|
|
102
|
-
code_editor_font_size: _().nonnegative().prefault(14),
|
|
103
|
-
cell_output: S(["above", "below"]).prefault("below"),
|
|
104
|
-
dataframes: S(["rich", "plain"]).prefault("rich"),
|
|
105
|
-
default_table_page_size: _().prefault(10),
|
|
106
|
-
default_table_max_columns: _().prefault(50),
|
|
107
|
-
default_width: S(T).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
|
|
108
|
-
locale: g().nullable().optional(),
|
|
109
|
-
reference_highlighting: m().prefault(!0),
|
|
110
|
-
code_lens: m().prefault(!0)
|
|
111
|
-
}).prefault({}),
|
|
112
|
-
package_management: x({ manager: S(se).prefault("pip") }).prefault({}),
|
|
113
|
-
ai: x({
|
|
114
|
-
enabled: m().prefault(!0),
|
|
115
|
-
rules: g().prefault(""),
|
|
116
|
-
max_tokens: _().int().positive().nullable().optional(),
|
|
117
|
-
mode: S(k).transform((e) => e === "manual" ? "ask" : e).prefault("ask"),
|
|
118
|
-
inline_tooltip: m().prefault(!1),
|
|
119
|
-
allow_provider_config: m().prefault(!0),
|
|
120
|
-
open_ai: A.optional(),
|
|
121
|
-
github: A.optional(),
|
|
122
|
-
anthropic: A.optional(),
|
|
123
|
-
google: A.optional(),
|
|
124
|
-
ollama: A.optional(),
|
|
125
|
-
openrouter: A.optional(),
|
|
126
|
-
wandb: A.optional(),
|
|
127
|
-
opencode_go: A.optional(),
|
|
128
|
-
open_ai_compatible: A.optional(),
|
|
129
|
-
azure: A.optional(),
|
|
130
|
-
bedrock: x({
|
|
131
|
-
region_name: g().optional(),
|
|
132
|
-
profile_name: g().optional(),
|
|
133
|
-
aws_access_key_id: g().optional(),
|
|
134
|
-
aws_secret_access_key: g().optional()
|
|
135
|
-
}).optional(),
|
|
136
|
-
custom_providers: h(g(), A).prefault({}),
|
|
137
|
-
models: j.prefault({
|
|
138
|
-
displayed_models: [],
|
|
139
|
-
custom_models: []
|
|
140
|
-
})
|
|
141
|
-
}).prefault({}),
|
|
142
|
-
experimental: x({ markdown: m().optional() }).prefault(() => ({})),
|
|
143
|
-
server: x({
|
|
144
|
-
skip_update_check: m().optional(),
|
|
145
|
-
session_cookie_secure: m().optional(),
|
|
146
|
-
session_secret: g().optional(),
|
|
147
|
-
disable_file_downloads: m().optional(),
|
|
148
|
-
transport: S(["websocket", "sse"]).optional()
|
|
149
|
-
}).prefault(() => ({})),
|
|
150
|
-
diagnostics: x({
|
|
151
|
-
enabled: m().optional(),
|
|
152
|
-
sql_linter: m().optional()
|
|
153
|
-
}).prefault(() => ({})),
|
|
154
|
-
file_browser: x({ folders: b(v({
|
|
155
|
-
path: g(),
|
|
156
|
-
name: g().optional()
|
|
157
|
-
})).optional() }).optional().prefault({}),
|
|
158
|
-
sharing: x({
|
|
159
|
-
html: m().optional(),
|
|
160
|
-
wasm: m().optional(),
|
|
161
|
-
molab: m().optional()
|
|
162
|
-
}).optional(),
|
|
163
|
-
mcp: x({ presets: b(S(["marimo", "context7"])).optional() }).optional().prefault({})
|
|
164
|
-
}).partial().prefault(() => ({
|
|
165
|
-
completion: {},
|
|
166
|
-
save: {},
|
|
167
|
-
formatting: {},
|
|
168
|
-
keymap: {},
|
|
169
|
-
runtime: {},
|
|
170
|
-
display: {},
|
|
171
|
-
diagnostics: {},
|
|
172
|
-
file_browser: {},
|
|
173
|
-
experimental: {},
|
|
174
|
-
server: {},
|
|
175
|
-
ai: {},
|
|
176
|
-
package_management: {},
|
|
177
|
-
mcp: {}
|
|
178
|
-
})), N = g(), P = S(E).prefault("auto"), F = v({
|
|
179
|
-
width: S(T).prefault("compact").transform((e) => e === "normal" ? "compact" : e),
|
|
180
|
-
app_title: N.nullish(),
|
|
181
|
-
css_file: g().nullish(),
|
|
182
|
-
html_head_file: g().nullish(),
|
|
183
|
-
auto_download: b(S(D)).prefault([]),
|
|
184
|
-
sql_output: P
|
|
185
|
-
}).prefault(() => ({
|
|
186
|
-
width: "compact",
|
|
187
|
-
auto_download: [],
|
|
188
|
-
sql_output: "auto"
|
|
189
|
-
}));
|
|
190
|
-
function I(t) {
|
|
191
|
-
try {
|
|
192
|
-
return F.parse(t);
|
|
193
|
-
} catch (t) {
|
|
194
|
-
return e.error(`Marimo got an unexpected value in the configuration file: ${t}`), F.parse({});
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
function L() {
|
|
198
|
-
return M.parse({
|
|
199
|
-
completion: {},
|
|
200
|
-
save: {},
|
|
201
|
-
formatting: {},
|
|
202
|
-
keymap: {},
|
|
203
|
-
runtime: {},
|
|
204
|
-
display: {},
|
|
205
|
-
diagnostics: {},
|
|
206
|
-
file_browser: {},
|
|
207
|
-
experimental: {},
|
|
208
|
-
server: {},
|
|
209
|
-
ai: {},
|
|
210
|
-
package_management: {},
|
|
211
|
-
mcp: {}
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
//#endregion
|
|
215
|
-
//#region src/core/config/config.ts
|
|
216
|
-
function R(...e) {
|
|
217
|
-
let t = {};
|
|
218
|
-
for (let n of e) {
|
|
219
|
-
let e = [
|
|
220
|
-
"keymap.overrides",
|
|
221
|
-
"ai.custom_providers",
|
|
222
|
-
"signing.trusted_signers"
|
|
223
|
-
].filter((e) => s(n, e)).map((e) => {
|
|
224
|
-
let r = i(t, e), o = i(n, e);
|
|
225
|
-
return {
|
|
226
|
-
path: e,
|
|
227
|
-
value: e !== "keymap.overrides" && a(o) ? Object.fromEntries(Object.entries(o).map(([e, t]) => [e, a(r?.[e]) && a(t) ? {
|
|
228
|
-
...r[e],
|
|
229
|
-
...t
|
|
230
|
-
} : t])) : o
|
|
231
|
-
};
|
|
232
|
-
});
|
|
233
|
-
oe(t, n, (e, t) => Array.isArray(t) ? [...t] : void 0);
|
|
234
|
-
for (let { path: n, value: r } of e) C(t, n, o(r));
|
|
235
|
-
}
|
|
236
|
-
return t;
|
|
237
|
-
}
|
|
238
|
-
var z = f(L()), B = f({}), V = f((e) => {
|
|
239
|
-
let t = e(B);
|
|
240
|
-
return R(e(z), t);
|
|
241
|
-
}), H = f((e) => e(V).runtime.auto_instantiate), U = f((e) => e(V).keymap.overrides ?? {}), W = f(n());
|
|
242
|
-
f((e) => {
|
|
243
|
-
let n = e(U), r = e(W);
|
|
244
|
-
return new t(n, { platform: r });
|
|
245
|
-
}), f((e) => e(V).save), f((e) => e(V).server.transport === "sse" ? "sse" : "websocket");
|
|
246
|
-
var G = f((e) => e(V).ai);
|
|
247
|
-
f((e) => e(V).completion), f((e) => e(V).keymap.preset);
|
|
248
|
-
function K() {
|
|
249
|
-
let e = (0, w.c)(3), t = p(V), n = re(z), r;
|
|
250
|
-
return e[0] !== t || e[1] !== n ? (r = [t, n], e[0] = t, e[1] = n, e[2] = r) : r = e[2], r;
|
|
251
|
-
}
|
|
252
|
-
function ce() {
|
|
253
|
-
return d.get(V);
|
|
254
|
-
}
|
|
255
|
-
f((e) => q(e(V)));
|
|
256
|
-
var le = f((e) => J(e(V))), ue = f((e) => fe(e(V)));
|
|
257
|
-
f((e) => e(V).display.code_editor_font_size);
|
|
258
|
-
var de = f((e) => e(V).display.locale);
|
|
259
|
-
function q(e) {
|
|
260
|
-
return e.ai?.enabled !== !1;
|
|
261
|
-
}
|
|
262
|
-
function J(e) {
|
|
263
|
-
return !!e.ai?.models?.chat_model || !!e.ai?.models?.edit_model || !!e.ai?.models?.autocomplete_model;
|
|
264
|
-
}
|
|
265
|
-
function fe(e) {
|
|
266
|
-
return q(e) && J(e);
|
|
267
|
-
}
|
|
268
|
-
var pe = f({}), me = ie(f((e) => e(c)?.revision.app_config ?? e(pe)), (e) => e, u), he = f((e) => I(e(me)));
|
|
269
|
-
f((e) => e(he).width), f((e) => {
|
|
270
|
-
let t = e(V), n = t.snippets?.custom_paths ?? [], r = t.snippets?.include_default_snippets;
|
|
271
|
-
return n.length > 0 || r === !0;
|
|
272
|
-
}), f((e) => e(V).server?.disable_file_downloads ?? !1);
|
|
273
|
-
//#endregion
|
|
274
|
-
//#region src/theme/useTheme.ts
|
|
275
|
-
var ge = [
|
|
276
|
-
"light",
|
|
277
|
-
"dark",
|
|
278
|
-
"system"
|
|
279
|
-
];
|
|
280
|
-
function _e() {
|
|
281
|
-
if (typeof window > "u") return;
|
|
282
|
-
let e = new URLSearchParams(window.location.search).get(l.theme);
|
|
283
|
-
return ge.includes(e) ? e : void 0;
|
|
284
|
-
}
|
|
285
|
-
var Y = f((e) => {
|
|
286
|
-
if (ae()) {
|
|
287
|
-
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";
|
|
288
|
-
let e = window.getComputedStyle(document.body), t = e.getPropertyValue("color-scheme").trim();
|
|
289
|
-
if (t) return t.includes("dark") ? "dark" : "light";
|
|
290
|
-
let n = e.getPropertyValue("background-color").match(/\d+/g);
|
|
291
|
-
if (n) {
|
|
292
|
-
let [e, t, r] = n.map(Number);
|
|
293
|
-
return (e * 299 + t * 587 + r * 114) / 1e3 < 128 ? "dark" : "light";
|
|
294
|
-
}
|
|
295
|
-
return "light";
|
|
296
|
-
}
|
|
297
|
-
return _e() ?? e(V).display.theme;
|
|
298
|
-
}), X = f(!1);
|
|
299
|
-
function ve() {
|
|
300
|
-
if (typeof window > "u" || !window.matchMedia) return;
|
|
301
|
-
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
302
|
-
d.set(X, e.matches), e.addEventListener("change", (e) => {
|
|
303
|
-
d.set(X, e.matches);
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
ve();
|
|
307
|
-
function Z() {
|
|
308
|
-
switch (document.body.dataset.vscodeThemeKind) {
|
|
309
|
-
case "vscode-dark": return "dark";
|
|
310
|
-
case "vscode-high-contrast": return "dark";
|
|
311
|
-
case "vscode-light": return "light";
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
var Q = f(Z());
|
|
315
|
-
function ye() {
|
|
316
|
-
let e = new MutationObserver(() => {
|
|
317
|
-
let e = Z();
|
|
318
|
-
d.set(Q, e);
|
|
319
|
-
});
|
|
320
|
-
return e.observe(document.body, {
|
|
321
|
-
attributes: !0,
|
|
322
|
-
attributeFilter: ["data-vscode-theme-kind"]
|
|
323
|
-
}), () => e.disconnect();
|
|
324
|
-
}
|
|
325
|
-
ye();
|
|
326
|
-
var $ = f((e) => {
|
|
327
|
-
let t = e(Y), n = e(Q);
|
|
328
|
-
if (n !== void 0) return n;
|
|
329
|
-
let r = e(X);
|
|
330
|
-
return t === "system" ? r ? "dark" : "light" : t;
|
|
331
|
-
});
|
|
332
|
-
function be() {
|
|
333
|
-
let e = (0, w.c)(3), t;
|
|
334
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = { store: d }, e[0] = t) : t = e[0];
|
|
335
|
-
let n = p($, t), r;
|
|
336
|
-
return e[1] === n ? r = e[2] : (r = { theme: n }, e[1] = n, e[2] = r), r;
|
|
337
|
-
}
|
|
338
|
-
//#endregion
|
|
339
|
-
export { le as a, de as c, K as d, z as f, ue as i, R as l, be as n, H as o, C as p, G as r, ce as s, $ as t, V as u };
|