@bhsd/codemirror-mediawiki 2.12.3 → 2.12.4
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/codemirror.d.ts +1 -2
- package/dist/config.d.ts +8 -0
- package/dist/main.min.js +13 -13
- package/dist/mw.min.js +43 -9
- package/dist/static.d.ts +17 -0
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +1 -2
- package/dist/mw.min.js.map +0 -7
package/dist/codemirror.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import type { KeyBinding } from '@codemirror/view';
|
|
|
4
4
|
import type { Text } from '@codemirror/state';
|
|
5
5
|
import type { SyntaxNode } from '@lezer/common';
|
|
6
6
|
import type { Diagnostic } from '@codemirror/lint';
|
|
7
|
-
import type { Config } from 'wikiparser-node';
|
|
8
7
|
import type { MwConfig } from './mediawiki';
|
|
9
8
|
import type { DocRange } from './fold';
|
|
10
9
|
export { CDN };
|
|
@@ -118,5 +117,5 @@ export declare class CodeMirror6 {
|
|
|
118
117
|
* 将wikiparser-node设置转换为codemirror-mediawiki设置
|
|
119
118
|
* @param config
|
|
120
119
|
*/
|
|
121
|
-
static getMwConfig(config: Config)
|
|
120
|
+
static getMwConfig: (config: import("wikiparser-node").Config) => MwConfig;
|
|
122
121
|
}
|
package/dist/config.d.ts
CHANGED
|
@@ -108,5 +108,13 @@ declare const modeConfig: {
|
|
|
108
108
|
gallery: string[];
|
|
109
109
|
poem: string[];
|
|
110
110
|
};
|
|
111
|
+
extAttrs: {
|
|
112
|
+
indicator: string[];
|
|
113
|
+
langconvert: string[];
|
|
114
|
+
ref: string[];
|
|
115
|
+
references: string[];
|
|
116
|
+
charinsert: string[];
|
|
117
|
+
templatestyles: string[];
|
|
118
|
+
};
|
|
111
119
|
};
|
|
112
120
|
export default modeConfig;
|