@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 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
@@ -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
  * 替换选中内容
@@ -0,0 +1,5 @@
1
+ import type { Extension } from '@codemirror/state';
2
+ import type { StyleSpec } from 'style-mod';
3
+ import type { Addon } from './codemirror';
4
+ declare const _default: Addon<[Extension?, StyleSpec?]>;
5
+ export default _default;
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