@bhsd/codemirror-mediawiki 3.6.5 → 3.6.7
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/README.md +2 -0
- package/dist/codemirror.d.ts +1 -0
- package/dist/codemirror.js +3 -2
- package/dist/color.js +1 -1
- package/dist/fold.d.ts +1 -1
- package/dist/lintsource.js +1 -1
- package/dist/main.min.js +22 -22
- package/dist/mediawiki.js +2 -1
- package/dist/mw.min.js +27 -27
- package/dist/mwConfig.js +2 -10
- package/dist/static.js +1 -1
- package/dist/statusBar.js +1 -1
- package/dist/wiki.min.js +24 -24
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -1229,6 +1229,7 @@ registerSignatureHelp();
|
|
|
1229
1229
|
1. Non-existing parser functions starting with `#` are highlighted as parser functions ([Example](http://bhsd-harry.github.io/codemirror-mediawiki/tests.html#Parsoid%3A%20unknown%20parser%20function%20(T314524))).
|
|
1230
1230
|
1. Wikitext in template parameter names is not highlighted ([Example](http://bhsd-harry.github.io/codemirror-mediawiki/tests.html#Templates%3A%20Other%20wikitext%20in%20parameter%20names%20(T69657))).
|
|
1231
1231
|
1. Template parameter names followed by a newline are not recognized ([Example](http://bhsd-harry.github.io/codemirror-mediawiki/tests.html#Templates%3A%20Handle%20comments%20in%20parameter%20names%20(T69657))).
|
|
1232
|
+
1. Template-like syntax without a template name ([Example](http://bhsd-harry.github.io/codemirror-mediawiki/tests.html#T408631%3A%20Invalid%20templates%20inside%20template%20parameters)).
|
|
1232
1233
|
|
|
1233
1234
|
### Heading
|
|
1234
1235
|
|
|
@@ -1237,6 +1238,7 @@ registerSignatureHelp();
|
|
|
1237
1238
|
### Table
|
|
1238
1239
|
|
|
1239
1240
|
1. Comments at the SOL should not break table syntax ([Example](https://bhsd-harry.github.io/codemirror-mediawiki/tests.html#3c.%20Table%20cells%20without%20escapable%20prefixes%20after%20edits)).
|
|
1241
|
+
1. `!!` in links should start a new `<th>` ([Example](http://bhsd-harry.github.io/codemirror-mediawiki/tests.html#Precedence%20of%20table%20over%20links)).
|
|
1240
1242
|
|
|
1241
1243
|
### External link
|
|
1242
1244
|
|
package/dist/codemirror.d.ts
CHANGED
package/dist/codemirror.js
CHANGED
|
@@ -144,14 +144,14 @@ export class CodeMirror6 {
|
|
|
144
144
|
clearTimeout(timer);
|
|
145
145
|
timer = setTimeout(() => {
|
|
146
146
|
textarea.value = doc.toString();
|
|
147
|
-
textarea.dispatchEvent(new
|
|
147
|
+
textarea.dispatchEvent(new InputEvent('input'));
|
|
148
148
|
}, 400);
|
|
149
149
|
if (!startDoc.toString().trim()) {
|
|
150
150
|
this.setIndent(this.#indentStr);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
if (focusChanged) {
|
|
154
|
-
textarea.dispatchEvent(new
|
|
154
|
+
textarea.dispatchEvent(new FocusEvent(this.#view.hasFocus ? 'focus' : 'blur'));
|
|
155
155
|
}
|
|
156
156
|
}),
|
|
157
157
|
...readOnly
|
|
@@ -284,6 +284,7 @@ export class CodeMirror6 {
|
|
|
284
284
|
/**
|
|
285
285
|
* Check if the editor enables a specific extension
|
|
286
286
|
* @param name extension name
|
|
287
|
+
* @since 3.2.0
|
|
287
288
|
*/
|
|
288
289
|
hasPreference(name) {
|
|
289
290
|
return this.#preferred.has(name);
|
package/dist/color.js
CHANGED
package/dist/fold.d.ts
CHANGED
package/dist/lintsource.js
CHANGED
|
@@ -74,7 +74,7 @@ const jsLintSource = (esLint, code, opt, doc, f = 0, t) => esLint(code, opt)
|
|
|
74
74
|
if (fix || suggestions.length > 0) {
|
|
75
75
|
diagnostic.actions = [
|
|
76
76
|
...fix ? [{ name: 'fix', fix }] : [],
|
|
77
|
-
...suggestions.map(suggestion => ({ name: 'suggestion', fix: suggestion.fix })),
|
|
77
|
+
...suggestions.map(suggestion => ({ name: suggestion.messageId || 'suggestion', fix: suggestion.fix })),
|
|
78
78
|
].map(({ name, fix: { range: [from, to], text } }) => ({
|
|
79
79
|
name,
|
|
80
80
|
apply(view) {
|