@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/dist/static.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Config } from 'wikiparser-node';
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, }: Config, modes: Record<string, string>) => MwConfig;
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>;