@bhsd/codemirror-mediawiki 2.14.1 → 2.14.2

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/token.d.ts CHANGED
@@ -25,9 +25,10 @@ declare const tokens: {
25
25
  extTagBracket: string;
26
26
  extTagName: string;
27
27
  fileText: string;
28
- freeExtLink: string; /** 已解析的节点 */
28
+ freeExtLink: string;
29
29
  freeExtLinkProtocol: string;
30
30
  hr: string;
31
+ /** 当前起始位置 */
31
32
  htmlEntity: string;
32
33
  htmlTagAttribute: string;
33
34
  htmlTagAttributeValue: string;
@@ -53,6 +54,11 @@ declare const tokens: {
53
54
  skipFormatting: string;
54
55
  strong: string;
55
56
  tableBracket: string;
57
+ /**
58
+ * 浅复制嵌套状态
59
+ * @param a
60
+ * @param b
61
+ */
56
62
  tableCaption: string;
57
63
  tableDefinition: string;
58
64
  tableDefinitionValue: string;
@@ -74,7 +80,6 @@ declare type Style = string | [string];
74
80
  declare type Tokenizer<T = Style> = ((stream: StringStream, state: State) => T) & {
75
81
  args?: unknown[];
76
82
  };
77
- declare type TagName = keyof typeof tokens;
78
83
  declare type NestCount = 'nTemplate' | 'nExt' | 'nVar' | 'nLink' | 'nExtLink';
79
84
  declare interface Nesting extends Record<NestCount, number> {
80
85
  extName: string | false;
@@ -90,6 +95,7 @@ declare interface State extends Nesting {
90
95
  italic: boolean;
91
96
  dt: Partial<Nesting> & {
92
97
  n: number;
98
+ html: number;
93
99
  };
94
100
  redirect: boolean;
95
101
  data: MediaWikiData;
@@ -101,6 +107,7 @@ declare interface Token {
101
107
  style: Style;
102
108
  readonly state: State;
103
109
  }
110
+ export type TagName = keyof typeof tokens;
104
111
  export type ApiSuggestions = [string, string?][];
105
112
  /**
106
113
  * 获取维基链接建议
@@ -148,20 +155,18 @@ export declare class MediaWiki {
148
155
  readonly implicitlyClosedHtmlTags: Set<string>;
149
156
  readonly urlProtocols: RegExp;
150
157
  readonly linkRegex: RegExp;
151
- readonly inLinkRegex: RegExp;
152
158
  readonly fileRegex: RegExp;
153
159
  readonly redirectRegex: RegExp;
154
160
  readonly img: string[];
155
161
  readonly imgRegex: RegExp;
156
162
  readonly headerRegex: RegExp;
157
- readonly extAttrRegex: RegExp;
158
163
  readonly templateRegex: RegExp;
159
164
  readonly argumentRegex: RegExp;
160
165
  readonly convertSemicolon: RegExp;
161
166
  readonly convertLang: RegExp;
162
167
  readonly convertRegex: RegExp;
163
- readonly inputboxRegex: RegExp;
164
168
  readonly wikiRegex: RegExp;
169
+ readonly tableDefinitionRegex: RegExp;
165
170
  readonly tags: string[];
166
171
  constructor(config: MwConfig);
167
172
  /**
package/i18n/en.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.14.1",
2
+ "version": "2.14.2",
3
3
  "lang": "en",
4
4
  "i18n-failed": "Failed to fetch the translation file in $1.",
5
5
  "title": "CodeMirror Addons",
package/i18n/zh-hans.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.14.1",
2
+ "version": "2.14.2",
3
3
  "lang": "zh-hans",
4
4
  "i18n-failed": "获取 $1 的语言文件失败。",
5
5
  "title": "CodeMirror插件",
package/i18n/zh-hant.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.14.1",
2
+ "version": "2.14.2",
3
3
  "lang": "zh-hant",
4
4
  "i18n-failed": "取得 $1 的語言檔案失敗。",
5
5
  "title": "CodeMirror外掛程式",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/codemirror-mediawiki",
3
- "version": "2.14.1",
3
+ "version": "2.14.2",
4
4
  "description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
5
5
  "keywords": [
6
6
  "mediawiki",