@bhsd/codemirror-mediawiki 2.23.2 → 2.24.1
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 +2 -2
- package/dist/main.min.js +17 -17
- package/dist/mw.min.js +20 -20
- package/dist/static.d.ts +2 -2
- package/dist/token.d.ts +9 -1
- package/dist/wiki.min.js +20 -20
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +8 -8
package/dist/static.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ConfigData } from 'wikiparser-node';
|
|
2
2
|
import type { MwConfig } from './token';
|
|
3
3
|
export declare const tagModes: {
|
|
4
4
|
onlyinclude: string;
|
|
@@ -24,4 +24,4 @@ export declare const tagModes: {
|
|
|
24
24
|
maplink: string;
|
|
25
25
|
graph: string;
|
|
26
26
|
};
|
|
27
|
-
export declare const getStaticMwConfig: ({ variable, parserFunction: [p0, p1, ...p2], protocol, nsid, functionHook, variants, redirection, ext, doubleUnderscore: [d0, d1, d2, d3], img, }:
|
|
27
|
+
export declare const getStaticMwConfig: ({ variable, parserFunction: [p0, p1, ...p2], protocol, nsid, functionHook, variants, redirection, ext, doubleUnderscore: [d0, d1, d2, d3], img, }: ConfigData, modes: Record<string, string>) => MwConfig;
|
package/dist/token.d.ts
CHANGED
|
@@ -102,6 +102,14 @@ export declare class MediaWiki {
|
|
|
102
102
|
readonly tags: string[];
|
|
103
103
|
readonly hasVariants: boolean;
|
|
104
104
|
readonly preRegex: [RegExp, RegExp];
|
|
105
|
+
readonly autocompleteNamespaces: {
|
|
106
|
+
0: string;
|
|
107
|
+
6: string;
|
|
108
|
+
8: string;
|
|
109
|
+
10: string;
|
|
110
|
+
274: string;
|
|
111
|
+
828: string;
|
|
112
|
+
};
|
|
105
113
|
constructor(config: MwConfig);
|
|
106
114
|
/**
|
|
107
115
|
* Dynamically register a token in CodeMirror.
|
|
@@ -157,7 +165,7 @@ export declare class MediaWiki {
|
|
|
157
165
|
* @param tags
|
|
158
166
|
*/
|
|
159
167
|
mediawiki(tags?: string[]): StreamParser<State>;
|
|
160
|
-
'text/mediawiki'(): StreamParser<State>;
|
|
168
|
+
'text/mediawiki'(tags?: string[]): StreamParser<State>;
|
|
161
169
|
'text/nowiki'(): StreamParser<Record<string, never>>;
|
|
162
170
|
inPre(begin?: boolean): Tokenizer<string>;
|
|
163
171
|
'text/pre'(): StreamParser<State>;
|