@bhsd/codemirror-mediawiki 2.13.1 → 2.14.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.
@@ -4,7 +4,7 @@ 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 { MwConfig } from './mediawiki';
7
+ import type { MwConfig } from './token';
8
8
  import type { DocRange } from './fold';
9
9
  export { CDN };
10
10
  export type { MwConfig };
@@ -94,18 +94,24 @@ export declare class CodeMirror6 {
94
94
  * @todo 修正已有标签(`references`, `choose`, `combobox`, `gallery`),支持更多标签
95
95
  */
96
96
  static mwTagModes: {
97
- tab: string;
98
- tabs: string;
97
+ onlyinclude: string;
98
+ includeonly: string;
99
+ noinclude: string;
100
+ pre: string;
101
+ nowiki: string;
99
102
  indicator: string;
100
103
  poem: string;
101
104
  ref: string;
102
105
  references: string;
103
- option: string;
106
+ gallery: string;
107
+ poll: string;
108
+ tabs: string;
109
+ tab: string;
104
110
  choose: string;
105
- combooption: string;
111
+ option: string;
106
112
  combobox: string;
107
- poll: string;
108
- gallery: string;
113
+ combooption: string;
114
+ inputbox: string;
109
115
  };
110
116
  /**
111
117
  * 替换选中内容
package/dist/config.d.ts CHANGED
@@ -31,6 +31,10 @@ declare const modeConfig: {
31
31
  tokens: {
32
32
  apostrophes: string;
33
33
  comment: string;
34
+ convertBracket: string;
35
+ convertDelimiter: string;
36
+ convertFlag: string;
37
+ convertLang: string;
34
38
  doubleUnderscore: string;
35
39
  em: string;
36
40
  error: string;
@@ -40,6 +44,7 @@ declare const modeConfig: {
40
44
  extLinkText: string;
41
45
  extTag: string;
42
46
  extTagAttribute: string;
47
+ extTagAttributeValue: string;
43
48
  extTagBracket: string;
44
49
  extTagName: string;
45
50
  fileText: string;
@@ -48,6 +53,7 @@ declare const modeConfig: {
48
53
  hr: string;
49
54
  htmlEntity: string;
50
55
  htmlTagAttribute: string;
56
+ htmlTagAttributeValue: string;
51
57
  htmlTagBracket: string;
52
58
  htmlTagName: string;
53
59
  imageParameter: string;
@@ -57,6 +63,7 @@ declare const modeConfig: {
57
63
  linkText: string;
58
64
  linkToSection: string;
59
65
  list: string;
66
+ magicLink: string;
60
67
  pageName: string;
61
68
  parserFunction: string;
62
69
  parserFunctionBracket: string;
@@ -71,8 +78,11 @@ declare const modeConfig: {
71
78
  tableBracket: string;
72
79
  tableCaption: string;
73
80
  tableDefinition: string;
81
+ tableDefinitionValue: string;
74
82
  tableDelimiter: string;
75
83
  tableDelimiter2: string;
84
+ tableTd: string;
85
+ tableTh: string;
76
86
  template: string;
77
87
  templateArgumentName: string;
78
88
  templateBracket: string;