@coldsmirk/inkstone-codemirror 0.8.3 → 0.9.0
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/context-D86o2jK3.js +382 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +32 -30
- package/dist/{minijinja-HpehSBbW.js → minijinja-D_5erBa7.js} +81 -18
- package/package.json +4 -12
- package/dist/context-BDibyUwD.cjs +0 -270
- package/dist/context-Dx6bPnKq.js +0 -235
- package/dist/index.cjs +0 -310
- package/dist/index.d.cts +0 -554
- package/dist/minijinja-DN9iLNbL.cjs +0 -357
package/dist/index.cjs
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_context = require("./context-BDibyUwD.cjs");
|
|
3
|
-
let _codemirror_state = require("@codemirror/state");
|
|
4
|
-
let _codemirror_view = require("@codemirror/view");
|
|
5
|
-
let _codemirror_autocomplete = require("@codemirror/autocomplete");
|
|
6
|
-
let _codemirror_commands = require("@codemirror/commands");
|
|
7
|
-
let _codemirror_language = require("@codemirror/language");
|
|
8
|
-
let _codemirror_search = require("@codemirror/search");
|
|
9
|
-
//#region src/controlled-host.ts
|
|
10
|
-
var ControlledEditorHost = class {
|
|
11
|
-
compartment = new _codemirror_state.Compartment();
|
|
12
|
-
silent = false;
|
|
13
|
-
view;
|
|
14
|
-
constructor({ parent, doc, onChange, extensions = [], dynamicExtensions = [] }) {
|
|
15
|
-
this.view = new _codemirror_view.EditorView({
|
|
16
|
-
parent,
|
|
17
|
-
state: _codemirror_state.EditorState.create({
|
|
18
|
-
doc,
|
|
19
|
-
extensions: [
|
|
20
|
-
...extensions,
|
|
21
|
-
this.compartment.of(dynamicExtensions),
|
|
22
|
-
_codemirror_view.EditorView.updateListener.of((update) => {
|
|
23
|
-
if (update.docChanged && !this.silent) onChange(update.state.doc.toString());
|
|
24
|
-
})
|
|
25
|
-
]
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
setValue(value) {
|
|
30
|
-
const current = this.view.state.doc.toString();
|
|
31
|
-
if (value === current) return;
|
|
32
|
-
const shorter = Math.min(current.length, value.length);
|
|
33
|
-
let from = 0;
|
|
34
|
-
while (from < shorter && current.codePointAt(from) === value.codePointAt(from)) from += 1;
|
|
35
|
-
let currentEnd = current.length;
|
|
36
|
-
let valueEnd = value.length;
|
|
37
|
-
while (currentEnd > from && valueEnd > from && current.codePointAt(currentEnd - 1) === value.codePointAt(valueEnd - 1)) {
|
|
38
|
-
currentEnd -= 1;
|
|
39
|
-
valueEnd -= 1;
|
|
40
|
-
}
|
|
41
|
-
this.silent = true;
|
|
42
|
-
try {
|
|
43
|
-
this.view.dispatch({ changes: {
|
|
44
|
-
from,
|
|
45
|
-
to: currentEnd,
|
|
46
|
-
insert: value.slice(from, valueEnd)
|
|
47
|
-
} });
|
|
48
|
-
} finally {
|
|
49
|
-
this.silent = false;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
reconfigure(dynamicExtensions) {
|
|
53
|
-
this.view.dispatch({ effects: this.compartment.reconfigure(dynamicExtensions) });
|
|
54
|
-
}
|
|
55
|
-
destroy() {
|
|
56
|
-
this.view.destroy();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
const searchPhrasesZhCn = _codemirror_state.EditorState.phrases.of({
|
|
60
|
-
Find: "查找",
|
|
61
|
-
Replace: "替换",
|
|
62
|
-
next: "下一个",
|
|
63
|
-
previous: "上一个",
|
|
64
|
-
all: "全部",
|
|
65
|
-
"match case": "区分大小写",
|
|
66
|
-
regexp: "正则表达式",
|
|
67
|
-
"by word": "全字匹配",
|
|
68
|
-
replace: "替换",
|
|
69
|
-
"replace all": "全部替换",
|
|
70
|
-
close: "关闭",
|
|
71
|
-
"current match": "当前匹配",
|
|
72
|
-
"on line": "所在行",
|
|
73
|
-
"Go to line": "跳转到行",
|
|
74
|
-
go: "跳转"
|
|
75
|
-
});
|
|
76
|
-
function documentExtensions({ placeholder, lineWrapping = false, showLineNumbers = false, folding = false, spellcheck = false, search = false } = {}) {
|
|
77
|
-
return [
|
|
78
|
-
...showLineNumbers ? [(0, _codemirror_view.lineNumbers)()] : [],
|
|
79
|
-
...folding ? [
|
|
80
|
-
(0, _codemirror_language.codeFolding)(),
|
|
81
|
-
(0, _codemirror_language.foldGutter)(),
|
|
82
|
-
_codemirror_view.keymap.of(_codemirror_language.foldKeymap)
|
|
83
|
-
] : [],
|
|
84
|
-
(0, _codemirror_commands.history)(),
|
|
85
|
-
(0, _codemirror_view.drawSelection)(),
|
|
86
|
-
(0, _codemirror_view.highlightActiveLine)(),
|
|
87
|
-
(0, _codemirror_language.indentOnInput)(),
|
|
88
|
-
(0, _codemirror_language.bracketMatching)(),
|
|
89
|
-
(0, _codemirror_autocomplete.closeBrackets)(),
|
|
90
|
-
(0, _codemirror_autocomplete.autocompletion)(),
|
|
91
|
-
...lineWrapping ? [_codemirror_view.EditorView.lineWrapping] : [],
|
|
92
|
-
...search ? [(0, _codemirror_search.highlightSelectionMatches)(), _codemirror_view.keymap.of(_codemirror_search.searchKeymap)] : [],
|
|
93
|
-
_codemirror_view.keymap.of([
|
|
94
|
-
..._codemirror_autocomplete.closeBracketsKeymap,
|
|
95
|
-
..._codemirror_commands.defaultKeymap,
|
|
96
|
-
..._codemirror_commands.historyKeymap,
|
|
97
|
-
..._codemirror_autocomplete.completionKeymap,
|
|
98
|
-
_codemirror_commands.indentWithTab
|
|
99
|
-
]),
|
|
100
|
-
(0, _codemirror_view.placeholder)(placeholder ?? ""),
|
|
101
|
-
...spellcheck ? [_codemirror_view.EditorView.contentAttributes.of({ spellcheck: "true" })] : []
|
|
102
|
-
];
|
|
103
|
-
}
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region src/languages.ts
|
|
106
|
-
function legacy(load) {
|
|
107
|
-
return () => load().then((parser) => new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(parser)));
|
|
108
|
-
}
|
|
109
|
-
const loaders = {
|
|
110
|
-
javascript: () => import("@codemirror/lang-javascript").then((mod) => mod.javascript()),
|
|
111
|
-
typescript: () => import("@codemirror/lang-javascript").then((mod) => mod.javascript({ typescript: true })),
|
|
112
|
-
jsx: () => import("@codemirror/lang-javascript").then((mod) => mod.javascript({ jsx: true })),
|
|
113
|
-
tsx: () => import("@codemirror/lang-javascript").then((mod) => mod.javascript({
|
|
114
|
-
jsx: true,
|
|
115
|
-
typescript: true
|
|
116
|
-
})),
|
|
117
|
-
json: () => import("@codemirror/lang-json").then((mod) => mod.json()),
|
|
118
|
-
html: () => import("@codemirror/lang-html").then((mod) => mod.html()),
|
|
119
|
-
css: () => import("@codemirror/lang-css").then((mod) => mod.css()),
|
|
120
|
-
scss: () => import("@codemirror/lang-sass").then((mod) => mod.sass()),
|
|
121
|
-
sass: () => import("@codemirror/lang-sass").then((mod) => mod.sass({ indented: true })),
|
|
122
|
-
less: () => import("@codemirror/lang-less").then((mod) => mod.less()),
|
|
123
|
-
python: () => import("@codemirror/lang-python").then((mod) => mod.python()),
|
|
124
|
-
java: () => import("@codemirror/lang-java").then((mod) => mod.java()),
|
|
125
|
-
markdown: () => import("@codemirror/lang-markdown").then((mod) => mod.markdown()),
|
|
126
|
-
xml: () => import("@codemirror/lang-xml").then((mod) => mod.xml()),
|
|
127
|
-
rust: () => import("@codemirror/lang-rust").then((mod) => mod.rust()),
|
|
128
|
-
php: () => import("@codemirror/lang-php").then((mod) => mod.php()),
|
|
129
|
-
yaml: () => import("@codemirror/lang-yaml").then((mod) => mod.yaml()),
|
|
130
|
-
go: () => import("@codemirror/lang-go").then((mod) => mod.go()),
|
|
131
|
-
cpp: () => import("@codemirror/lang-cpp").then((mod) => mod.cpp()),
|
|
132
|
-
c: () => import("@codemirror/lang-cpp").then((mod) => mod.cpp()),
|
|
133
|
-
vue: () => import("@codemirror/lang-vue").then((mod) => mod.vue()),
|
|
134
|
-
angular: () => import("@codemirror/lang-angular").then((mod) => mod.angular()),
|
|
135
|
-
liquid: () => import("@codemirror/lang-liquid").then((mod) => mod.liquid()),
|
|
136
|
-
wast: () => import("@codemirror/lang-wast").then((mod) => mod.wast()),
|
|
137
|
-
lezer: () => import("@codemirror/lang-lezer").then((mod) => mod.lezer()),
|
|
138
|
-
sql: () => import("@codemirror/lang-sql").then((mod) => mod.sql()),
|
|
139
|
-
mysql: () => import("@codemirror/lang-sql").then((mod) => mod.sql({ dialect: mod.MySQL })),
|
|
140
|
-
pgsql: () => import("@codemirror/lang-sql").then((mod) => mod.sql({ dialect: mod.PostgreSQL })),
|
|
141
|
-
sqlite: () => import("@codemirror/lang-sql").then((mod) => mod.sql({ dialect: mod.SQLite })),
|
|
142
|
-
mssql: () => import("@codemirror/lang-sql").then((mod) => mod.sql({ dialect: mod.MSSQL })),
|
|
143
|
-
mariadb: () => import("@codemirror/lang-sql").then((mod) => mod.sql({ dialect: mod.MariaSQL })),
|
|
144
|
-
plsql: () => import("@codemirror/lang-sql").then((mod) => mod.sql({ dialect: mod.PLSQL })),
|
|
145
|
-
cassandra: () => import("@codemirror/lang-sql").then((mod) => mod.sql({ dialect: mod.Cassandra })),
|
|
146
|
-
apl: legacy(() => import("@codemirror/legacy-modes/mode/apl").then((mod) => mod.apl)),
|
|
147
|
-
asciiarmor: legacy(() => import("@codemirror/legacy-modes/mode/asciiarmor").then((mod) => mod.asciiArmor)),
|
|
148
|
-
asn1: legacy(() => import("@codemirror/legacy-modes/mode/asn1").then((mod) => mod.asn1({}))),
|
|
149
|
-
asterisk: legacy(() => import("@codemirror/legacy-modes/mode/asterisk").then((mod) => mod.asterisk)),
|
|
150
|
-
brainfuck: legacy(() => import("@codemirror/legacy-modes/mode/brainfuck").then((mod) => mod.brainfuck)),
|
|
151
|
-
ceylon: legacy(() => import("@codemirror/legacy-modes/mode/clike").then((mod) => mod.ceylon)),
|
|
152
|
-
clojure: legacy(() => import("@codemirror/legacy-modes/mode/clojure").then((mod) => mod.clojure)),
|
|
153
|
-
cmake: legacy(() => import("@codemirror/legacy-modes/mode/cmake").then((mod) => mod.cmake)),
|
|
154
|
-
cobol: legacy(() => import("@codemirror/legacy-modes/mode/cobol").then((mod) => mod.cobol)),
|
|
155
|
-
coffeescript: legacy(() => import("@codemirror/legacy-modes/mode/coffeescript").then((mod) => mod.coffeeScript)),
|
|
156
|
-
commonlisp: legacy(() => import("@codemirror/legacy-modes/mode/commonlisp").then((mod) => mod.commonLisp)),
|
|
157
|
-
crystal: legacy(() => import("@codemirror/legacy-modes/mode/crystal").then((mod) => mod.crystal)),
|
|
158
|
-
csharp: legacy(() => import("@codemirror/legacy-modes/mode/clike").then((mod) => mod.csharp)),
|
|
159
|
-
cypher: legacy(() => import("@codemirror/legacy-modes/mode/cypher").then((mod) => mod.cypher)),
|
|
160
|
-
cython: legacy(() => import("@codemirror/legacy-modes/mode/python").then((mod) => mod.cython)),
|
|
161
|
-
d: legacy(() => import("@codemirror/legacy-modes/mode/d").then((mod) => mod.d)),
|
|
162
|
-
dart: legacy(() => import("@codemirror/legacy-modes/mode/clike").then((mod) => mod.dart)),
|
|
163
|
-
diff: legacy(() => import("@codemirror/legacy-modes/mode/diff").then((mod) => mod.diff)),
|
|
164
|
-
dockerfile: legacy(() => import("@codemirror/legacy-modes/mode/dockerfile").then((mod) => mod.dockerFile)),
|
|
165
|
-
dtd: legacy(() => import("@codemirror/legacy-modes/mode/dtd").then((mod) => mod.dtd)),
|
|
166
|
-
dylan: legacy(() => import("@codemirror/legacy-modes/mode/dylan").then((mod) => mod.dylan)),
|
|
167
|
-
ebnf: legacy(() => import("@codemirror/legacy-modes/mode/ebnf").then((mod) => mod.ebnf)),
|
|
168
|
-
ecl: legacy(() => import("@codemirror/legacy-modes/mode/ecl").then((mod) => mod.ecl)),
|
|
169
|
-
eiffel: legacy(() => import("@codemirror/legacy-modes/mode/eiffel").then((mod) => mod.eiffel)),
|
|
170
|
-
elm: legacy(() => import("@codemirror/legacy-modes/mode/elm").then((mod) => mod.elm)),
|
|
171
|
-
env: legacy(() => import("@codemirror/legacy-modes/mode/properties").then((mod) => mod.properties)),
|
|
172
|
-
erlang: legacy(() => import("@codemirror/legacy-modes/mode/erlang").then((mod) => mod.erlang)),
|
|
173
|
-
esper: legacy(() => import("@codemirror/legacy-modes/mode/sql").then((mod) => mod.esper)),
|
|
174
|
-
ez80: legacy(() => import("@codemirror/legacy-modes/mode/z80").then((mod) => mod.ez80)),
|
|
175
|
-
factor: legacy(() => import("@codemirror/legacy-modes/mode/factor").then((mod) => mod.factor)),
|
|
176
|
-
fcl: legacy(() => import("@codemirror/legacy-modes/mode/fcl").then((mod) => mod.fcl)),
|
|
177
|
-
forth: legacy(() => import("@codemirror/legacy-modes/mode/forth").then((mod) => mod.forth)),
|
|
178
|
-
fortran: legacy(() => import("@codemirror/legacy-modes/mode/fortran").then((mod) => mod.fortran)),
|
|
179
|
-
fsharp: legacy(() => import("@codemirror/legacy-modes/mode/mllike").then((mod) => mod.fSharp)),
|
|
180
|
-
gas: legacy(() => import("@codemirror/legacy-modes/mode/gas").then((mod) => mod.gas)),
|
|
181
|
-
"gas-arm": legacy(() => import("@codemirror/legacy-modes/mode/gas").then((mod) => mod.gasArm)),
|
|
182
|
-
gherkin: legacy(() => import("@codemirror/legacy-modes/mode/gherkin").then((mod) => mod.gherkin)),
|
|
183
|
-
gpsql: legacy(() => import("@codemirror/legacy-modes/mode/sql").then((mod) => mod.gpSQL)),
|
|
184
|
-
gql: legacy(() => import("@codemirror/legacy-modes/mode/sql").then((mod) => mod.gql)),
|
|
185
|
-
groovy: legacy(() => import("@codemirror/legacy-modes/mode/groovy").then((mod) => mod.groovy)),
|
|
186
|
-
gss: legacy(() => import("@codemirror/legacy-modes/mode/css").then((mod) => mod.gss)),
|
|
187
|
-
haskell: legacy(() => import("@codemirror/legacy-modes/mode/haskell").then((mod) => mod.haskell)),
|
|
188
|
-
haxe: legacy(() => import("@codemirror/legacy-modes/mode/haxe").then((mod) => mod.haxe)),
|
|
189
|
-
hive: legacy(() => import("@codemirror/legacy-modes/mode/sql").then((mod) => mod.hive)),
|
|
190
|
-
http: legacy(() => import("@codemirror/legacy-modes/mode/http").then((mod) => mod.http)),
|
|
191
|
-
hxml: legacy(() => import("@codemirror/legacy-modes/mode/haxe").then((mod) => mod.hxml)),
|
|
192
|
-
idl: legacy(() => import("@codemirror/legacy-modes/mode/idl").then((mod) => mod.idl)),
|
|
193
|
-
ini: legacy(() => import("@codemirror/legacy-modes/mode/properties").then((mod) => mod.properties)),
|
|
194
|
-
julia: legacy(() => import("@codemirror/legacy-modes/mode/julia").then((mod) => mod.julia)),
|
|
195
|
-
kotlin: legacy(() => import("@codemirror/legacy-modes/mode/clike").then((mod) => mod.kotlin)),
|
|
196
|
-
livescript: legacy(() => import("@codemirror/legacy-modes/mode/livescript").then((mod) => mod.liveScript)),
|
|
197
|
-
lua: legacy(() => import("@codemirror/legacy-modes/mode/lua").then((mod) => mod.lua)),
|
|
198
|
-
mathematica: legacy(() => import("@codemirror/legacy-modes/mode/mathematica").then((mod) => mod.mathematica)),
|
|
199
|
-
mbox: legacy(() => import("@codemirror/legacy-modes/mode/mbox").then((mod) => mod.mbox)),
|
|
200
|
-
mirc: legacy(() => import("@codemirror/legacy-modes/mode/mirc").then((mod) => mod.mirc)),
|
|
201
|
-
modelica: legacy(() => import("@codemirror/legacy-modes/mode/modelica").then((mod) => mod.modelica)),
|
|
202
|
-
mscgen: legacy(() => import("@codemirror/legacy-modes/mode/mscgen").then((mod) => mod.mscgen)),
|
|
203
|
-
msgenny: legacy(() => import("@codemirror/legacy-modes/mode/mscgen").then((mod) => mod.msgenny)),
|
|
204
|
-
mumps: legacy(() => import("@codemirror/legacy-modes/mode/mumps").then((mod) => mod.mumps)),
|
|
205
|
-
nesc: legacy(() => import("@codemirror/legacy-modes/mode/clike").then((mod) => mod.nesC)),
|
|
206
|
-
nginx: legacy(() => import("@codemirror/legacy-modes/mode/nginx").then((mod) => mod.nginx)),
|
|
207
|
-
nsis: legacy(() => import("@codemirror/legacy-modes/mode/nsis").then((mod) => mod.nsis)),
|
|
208
|
-
ntriples: legacy(() => import("@codemirror/legacy-modes/mode/ntriples").then((mod) => mod.ntriples)),
|
|
209
|
-
"objective-c": legacy(() => import("@codemirror/legacy-modes/mode/clike").then((mod) => mod.objectiveC)),
|
|
210
|
-
"objective-cpp": legacy(() => import("@codemirror/legacy-modes/mode/clike").then((mod) => mod.objectiveCpp)),
|
|
211
|
-
ocaml: legacy(() => import("@codemirror/legacy-modes/mode/mllike").then((mod) => mod.oCaml)),
|
|
212
|
-
octave: legacy(() => import("@codemirror/legacy-modes/mode/octave").then((mod) => mod.octave)),
|
|
213
|
-
oz: legacy(() => import("@codemirror/legacy-modes/mode/oz").then((mod) => mod.oz)),
|
|
214
|
-
pascal: legacy(() => import("@codemirror/legacy-modes/mode/pascal").then((mod) => mod.pascal)),
|
|
215
|
-
pegjs: legacy(() => import("@codemirror/legacy-modes/mode/pegjs").then((mod) => mod.pegjs)),
|
|
216
|
-
perl: legacy(() => import("@codemirror/legacy-modes/mode/perl").then((mod) => mod.perl)),
|
|
217
|
-
pig: legacy(() => import("@codemirror/legacy-modes/mode/pig").then((mod) => mod.pig)),
|
|
218
|
-
powershell: legacy(() => import("@codemirror/legacy-modes/mode/powershell").then((mod) => mod.powerShell)),
|
|
219
|
-
properties: legacy(() => import("@codemirror/legacy-modes/mode/properties").then((mod) => mod.properties)),
|
|
220
|
-
protobuf: legacy(() => import("@codemirror/legacy-modes/mode/protobuf").then((mod) => mod.protobuf)),
|
|
221
|
-
pug: legacy(() => import("@codemirror/legacy-modes/mode/pug").then((mod) => mod.pug)),
|
|
222
|
-
puppet: legacy(() => import("@codemirror/legacy-modes/mode/puppet").then((mod) => mod.puppet)),
|
|
223
|
-
q: legacy(() => import("@codemirror/legacy-modes/mode/q").then((mod) => mod.q)),
|
|
224
|
-
r: legacy(() => import("@codemirror/legacy-modes/mode/r").then((mod) => mod.r)),
|
|
225
|
-
"rpm-changes": legacy(() => import("@codemirror/legacy-modes/mode/rpm").then((mod) => mod.rpmChanges)),
|
|
226
|
-
"rpm-spec": legacy(() => import("@codemirror/legacy-modes/mode/rpm").then((mod) => mod.rpmSpec)),
|
|
227
|
-
ruby: legacy(() => import("@codemirror/legacy-modes/mode/ruby").then((mod) => mod.ruby)),
|
|
228
|
-
sas: legacy(() => import("@codemirror/legacy-modes/mode/sas").then((mod) => mod.sas)),
|
|
229
|
-
scala: legacy(() => import("@codemirror/legacy-modes/mode/clike").then((mod) => mod.scala)),
|
|
230
|
-
scheme: legacy(() => import("@codemirror/legacy-modes/mode/scheme").then((mod) => mod.scheme)),
|
|
231
|
-
shader: legacy(() => import("@codemirror/legacy-modes/mode/clike").then((mod) => mod.shader)),
|
|
232
|
-
shell: legacy(() => import("@codemirror/legacy-modes/mode/shell").then((mod) => mod.shell)),
|
|
233
|
-
sieve: legacy(() => import("@codemirror/legacy-modes/mode/sieve").then((mod) => mod.sieve)),
|
|
234
|
-
smalltalk: legacy(() => import("@codemirror/legacy-modes/mode/smalltalk").then((mod) => mod.smalltalk)),
|
|
235
|
-
sml: legacy(() => import("@codemirror/legacy-modes/mode/mllike").then((mod) => mod.sml)),
|
|
236
|
-
solr: legacy(() => import("@codemirror/legacy-modes/mode/solr").then((mod) => mod.solr)),
|
|
237
|
-
sparksql: legacy(() => import("@codemirror/legacy-modes/mode/sql").then((mod) => mod.sparkSQL)),
|
|
238
|
-
sparql: legacy(() => import("@codemirror/legacy-modes/mode/sparql").then((mod) => mod.sparql)),
|
|
239
|
-
spreadsheet: legacy(() => import("@codemirror/legacy-modes/mode/spreadsheet").then((mod) => mod.spreadsheet)),
|
|
240
|
-
squirrel: legacy(() => import("@codemirror/legacy-modes/mode/clike").then((mod) => mod.squirrel)),
|
|
241
|
-
stex: legacy(() => import("@codemirror/legacy-modes/mode/stex").then((mod) => mod.stex)),
|
|
242
|
-
"stex-math": legacy(() => import("@codemirror/legacy-modes/mode/stex").then((mod) => mod.stexMath)),
|
|
243
|
-
stylus: legacy(() => import("@codemirror/legacy-modes/mode/stylus").then((mod) => mod.stylus)),
|
|
244
|
-
swift: legacy(() => import("@codemirror/legacy-modes/mode/swift").then((mod) => mod.swift)),
|
|
245
|
-
tcl: legacy(() => import("@codemirror/legacy-modes/mode/tcl").then((mod) => mod.tcl)),
|
|
246
|
-
textile: legacy(() => import("@codemirror/legacy-modes/mode/textile").then((mod) => mod.textile)),
|
|
247
|
-
tiddlywiki: legacy(() => import("@codemirror/legacy-modes/mode/tiddlywiki").then((mod) => mod.tiddlyWiki)),
|
|
248
|
-
tiki: legacy(() => import("@codemirror/legacy-modes/mode/tiki").then((mod) => mod.tiki)),
|
|
249
|
-
tlv: legacy(() => import("@codemirror/legacy-modes/mode/verilog").then((mod) => mod.tlv)),
|
|
250
|
-
toml: legacy(() => import("@codemirror/legacy-modes/mode/toml").then((mod) => mod.toml)),
|
|
251
|
-
troff: legacy(() => import("@codemirror/legacy-modes/mode/troff").then((mod) => mod.troff)),
|
|
252
|
-
ttcn: legacy(() => import("@codemirror/legacy-modes/mode/ttcn").then((mod) => mod.ttcn)),
|
|
253
|
-
"ttcn-cfg": legacy(() => import("@codemirror/legacy-modes/mode/ttcn-cfg").then((mod) => mod.ttcnCfg)),
|
|
254
|
-
turtle: legacy(() => import("@codemirror/legacy-modes/mode/turtle").then((mod) => mod.turtle)),
|
|
255
|
-
vb: legacy(() => import("@codemirror/legacy-modes/mode/vb").then((mod) => mod.vb)),
|
|
256
|
-
vbscript: legacy(() => import("@codemirror/legacy-modes/mode/vbscript").then((mod) => mod.vbScript)),
|
|
257
|
-
"vbscript-asp": legacy(() => import("@codemirror/legacy-modes/mode/vbscript").then((mod) => mod.vbScriptASP)),
|
|
258
|
-
velocity: legacy(() => import("@codemirror/legacy-modes/mode/velocity").then((mod) => mod.velocity)),
|
|
259
|
-
verilog: legacy(() => import("@codemirror/legacy-modes/mode/verilog").then((mod) => mod.verilog)),
|
|
260
|
-
vhdl: legacy(() => import("@codemirror/legacy-modes/mode/vhdl").then((mod) => mod.vhdl)),
|
|
261
|
-
webidl: legacy(() => import("@codemirror/legacy-modes/mode/webidl").then((mod) => mod.webIDL)),
|
|
262
|
-
xquery: legacy(() => import("@codemirror/legacy-modes/mode/xquery").then((mod) => mod.xQuery)),
|
|
263
|
-
xu: legacy(() => import("@codemirror/legacy-modes/mode/mscgen").then((mod) => mod.xu)),
|
|
264
|
-
yacas: legacy(() => import("@codemirror/legacy-modes/mode/yacas").then((mod) => mod.yacas)),
|
|
265
|
-
z80: legacy(() => import("@codemirror/legacy-modes/mode/z80").then((mod) => mod.z80)),
|
|
266
|
-
minijinja: () => Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")).then((mod) => mod.minijinja()),
|
|
267
|
-
"minijinja-html": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-html")]).then(([mj, mod]) => mj.minijinja({ base: mod.html() })),
|
|
268
|
-
"minijinja-xml": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-xml")]).then(([mj, mod]) => mj.minijinja({ base: mod.xml() })),
|
|
269
|
-
"minijinja-json": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-json")]).then(([mj, mod]) => mj.minijinja({ base: mod.json() })),
|
|
270
|
-
"minijinja-yaml": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-yaml")]).then(([mj, mod]) => mj.minijinja({ base: mod.yaml() })),
|
|
271
|
-
"minijinja-css": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-css")]).then(([mj, mod]) => mj.minijinja({ base: mod.css() })),
|
|
272
|
-
"minijinja-scss": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-sass")]).then(([mj, mod]) => mj.minijinja({ base: mod.sass() })),
|
|
273
|
-
"minijinja-sass": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-sass")]).then(([mj, mod]) => mj.minijinja({ base: mod.sass({ indented: true }) })),
|
|
274
|
-
"minijinja-less": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-less")]).then(([mj, mod]) => mj.minijinja({ base: mod.less() })),
|
|
275
|
-
"minijinja-markdown": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-markdown")]).then(([mj, mod]) => mj.minijinja({ base: mod.markdown() })),
|
|
276
|
-
"minijinja-sql": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-sql")]).then(([mj, mod]) => mj.minijinja({ base: mod.sql() })),
|
|
277
|
-
"minijinja-mysql": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-sql")]).then(([mj, mod]) => mj.minijinja({ base: mod.sql({ dialect: mod.MySQL }) })),
|
|
278
|
-
"minijinja-pgsql": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-sql")]).then(([mj, mod]) => mj.minijinja({ base: mod.sql({ dialect: mod.PostgreSQL }) })),
|
|
279
|
-
"minijinja-sqlite": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-sql")]).then(([mj, mod]) => mj.minijinja({ base: mod.sql({ dialect: mod.SQLite }) })),
|
|
280
|
-
"minijinja-mssql": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-sql")]).then(([mj, mod]) => mj.minijinja({ base: mod.sql({ dialect: mod.MSSQL }) })),
|
|
281
|
-
"minijinja-mariadb": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-sql")]).then(([mj, mod]) => mj.minijinja({ base: mod.sql({ dialect: mod.MariaSQL }) })),
|
|
282
|
-
"minijinja-plsql": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-sql")]).then(([mj, mod]) => mj.minijinja({ base: mod.sql({ dialect: mod.PLSQL }) })),
|
|
283
|
-
"minijinja-cassandra": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/lang-sql")]).then(([mj, mod]) => mj.minijinja({ base: mod.sql({ dialect: mod.Cassandra }) })),
|
|
284
|
-
"minijinja-hive": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/sql")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.hive)) })),
|
|
285
|
-
"minijinja-sparksql": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/sql")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.sparkSQL)) })),
|
|
286
|
-
"minijinja-gql": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/sql")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.gql)) })),
|
|
287
|
-
"minijinja-gpsql": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/sql")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.gpSQL)) })),
|
|
288
|
-
"minijinja-esper": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/sql")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.esper)) })),
|
|
289
|
-
"minijinja-toml": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/toml")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.toml)) })),
|
|
290
|
-
"minijinja-ini": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/properties")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.properties)) })),
|
|
291
|
-
"minijinja-env": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/properties")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.properties)) })),
|
|
292
|
-
"minijinja-shell": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/shell")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.shell)) })),
|
|
293
|
-
"minijinja-dockerfile": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/dockerfile")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.dockerFile)) })),
|
|
294
|
-
"minijinja-nginx": () => Promise.all([Promise.resolve().then(() => require("./minijinja-DN9iLNbL.cjs")), import("@codemirror/legacy-modes/mode/nginx")]).then(([mj, mod]) => mj.minijinja({ base: new _codemirror_language.LanguageSupport(_codemirror_language.StreamLanguage.define(mod.nginx)) }))
|
|
295
|
-
};
|
|
296
|
-
const codeMirrorLanguages = Object.keys(loaders).toSorted();
|
|
297
|
-
function loadLanguage(language) {
|
|
298
|
-
return loaders[language]();
|
|
299
|
-
}
|
|
300
|
-
//#endregion
|
|
301
|
-
exports.ControlledEditorHost = ControlledEditorHost;
|
|
302
|
-
exports.codeMirrorLanguages = codeMirrorLanguages;
|
|
303
|
-
exports.documentExtensions = documentExtensions;
|
|
304
|
-
exports.loadLanguage = loadLanguage;
|
|
305
|
-
exports.minijinjaContextField = require_context.minijinjaContextField;
|
|
306
|
-
exports.normalizeContext = require_context.normalizeContext;
|
|
307
|
-
exports.resolveMembers = require_context.resolveMembers;
|
|
308
|
-
exports.searchPhrasesZhCn = searchPhrasesZhCn;
|
|
309
|
-
exports.setMinijinjaContext = require_context.setMinijinjaContext;
|
|
310
|
-
exports.typeAtPath = require_context.typeAtPath;
|