@bhsd/codemirror-mediawiki 2.17.4 → 2.18.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/README.md +6 -0
- package/dist/bidi.d.ts +0 -0
- package/dist/codemirror.d.ts +6 -1
- package/dist/color.d.ts +5 -0
- package/dist/config.d.ts +0 -0
- package/dist/escape.d.ts +0 -0
- package/dist/fold.d.ts +0 -0
- package/dist/linter.d.ts +0 -0
- package/dist/main.min.js +15 -15
- package/dist/matchTag.d.ts +0 -0
- package/dist/mediawiki.d.ts +0 -0
- package/dist/mw.min.js +19 -19
- package/dist/plugins.d.ts +1 -1
- package/dist/ref.d.ts +0 -0
- package/dist/static.d.ts +4 -0
- package/dist/token.d.ts +0 -0
- package/dist/wiki.min.js +19 -19
- package/i18n/en.json +2 -1
- package/i18n/zh-hans.json +2 -1
- package/i18n/zh-hant.json +2 -1
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -521,6 +521,12 @@ Key bindings:
|
|
|
521
521
|
|
|
522
522
|
Allow the editor to be scrolled down past the end of the document.
|
|
523
523
|
|
|
524
|
+
## colorPicker
|
|
525
|
+
|
|
526
|
+
*version added: 2.18.0*
|
|
527
|
+
|
|
528
|
+
Provide color pickers for CSS and MediaWiki modes.
|
|
529
|
+
|
|
524
530
|
## escape
|
|
525
531
|
|
|
526
532
|
*version added: 2.2.2*
|
package/dist/bidi.d.ts
CHANGED
|
File without changes
|
package/dist/codemirror.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { EditorView } from '@codemirror/view';
|
|
2
2
|
import type { KeyBinding } from '@codemirror/view';
|
|
3
|
-
import type { Text } from '@codemirror/state';
|
|
3
|
+
import type { Extension, Text } from '@codemirror/state';
|
|
4
4
|
import type { SyntaxNode } from '@lezer/common';
|
|
5
5
|
import type { Diagnostic } from '@codemirror/lint';
|
|
6
6
|
import type { MwConfig } from './token';
|
|
7
7
|
import type { DocRange } from './fold';
|
|
8
8
|
export type { MwConfig };
|
|
9
9
|
export type LintSource = (doc: Text) => Diagnostic[] | Promise<Diagnostic[]>;
|
|
10
|
+
export type Addon<T> = [(config?: T) => Extension, Record<string, T>];
|
|
10
11
|
/** CodeMirror 6 编辑器 */
|
|
11
12
|
export declare class CodeMirror6 {
|
|
12
13
|
#private;
|
|
@@ -107,6 +108,10 @@ export declare class CodeMirror6 {
|
|
|
107
108
|
combobox: string;
|
|
108
109
|
combooption: string;
|
|
109
110
|
inputbox: string;
|
|
111
|
+
templatedata: string;
|
|
112
|
+
mapframe: string;
|
|
113
|
+
maplink: string;
|
|
114
|
+
graph: string;
|
|
110
115
|
};
|
|
111
116
|
/**
|
|
112
117
|
* 替换选中内容
|
package/dist/color.d.ts
ADDED
package/dist/config.d.ts
CHANGED
|
File without changes
|
package/dist/escape.d.ts
CHANGED
|
File without changes
|
package/dist/fold.d.ts
CHANGED
|
File without changes
|
package/dist/linter.d.ts
CHANGED
|
File without changes
|