wikiparser-node 1.13.2-b → 1.13.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.
Files changed (167) hide show
  1. package/config/.schema.json +203 -0
  2. package/config/default.json +32 -31
  3. package/config/enwiki.json +829 -15
  4. package/config/llwiki.json +56 -21
  5. package/config/moegirl.json +65 -21
  6. package/config/zhwiki.json +498 -32
  7. package/dist/addon/table.js +494 -0
  8. package/dist/addon/token.js +392 -0
  9. package/dist/addon/transclude.js +184 -0
  10. package/dist/base.d.ts +109 -0
  11. package/dist/base.js +67 -0
  12. package/dist/index.d.ts +33 -0
  13. package/dist/index.js +284 -0
  14. package/dist/internal.d.ts +47 -0
  15. package/dist/lib/element.d.ts +125 -0
  16. package/dist/lib/element.js +364 -0
  17. package/dist/lib/node.d.ts +173 -0
  18. package/dist/lib/node.js +478 -0
  19. package/dist/lib/range.d.ts +105 -0
  20. package/dist/lib/range.js +406 -0
  21. package/dist/lib/ranges.d.ts +28 -0
  22. package/dist/lib/ranges.js +126 -0
  23. package/dist/lib/rect.d.ts +18 -0
  24. package/dist/lib/rect.js +36 -0
  25. package/dist/lib/text.d.ts +58 -0
  26. package/dist/lib/text.js +414 -0
  27. package/dist/lib/title.d.ts +49 -0
  28. package/dist/lib/title.js +251 -0
  29. package/dist/mixin/attributesParent.d.ts +49 -0
  30. package/dist/mixin/attributesParent.js +80 -0
  31. package/dist/mixin/fixed.d.ts +5 -0
  32. package/dist/mixin/fixed.js +32 -0
  33. package/dist/mixin/flagsParent.d.ts +43 -0
  34. package/dist/mixin/flagsParent.js +64 -0
  35. package/dist/mixin/hidden.d.ts +7 -0
  36. package/dist/mixin/hidden.js +39 -0
  37. package/dist/mixin/magicLinkParent.d.ts +19 -0
  38. package/dist/mixin/magicLinkParent.js +43 -0
  39. package/dist/mixin/singleLine.d.ts +6 -0
  40. package/dist/mixin/singleLine.js +33 -0
  41. package/dist/mixin/sol.d.ts +6 -0
  42. package/dist/mixin/sol.js +45 -0
  43. package/dist/mixin/syntax.d.ts +8 -0
  44. package/dist/mixin/syntax.js +46 -0
  45. package/dist/parser/braces.js +152 -0
  46. package/dist/parser/commentAndExt.js +84 -0
  47. package/dist/parser/converter.js +43 -0
  48. package/dist/parser/externalLinks.js +39 -0
  49. package/dist/parser/hrAndDoubleUnderscore.js +45 -0
  50. package/dist/parser/html.js +40 -0
  51. package/dist/parser/links.js +105 -0
  52. package/dist/parser/list.js +116 -0
  53. package/dist/parser/magicLinks.js +55 -0
  54. package/dist/parser/quotes.js +69 -0
  55. package/dist/parser/redirect.js +29 -0
  56. package/dist/parser/selector.js +443 -0
  57. package/dist/parser/table.js +125 -0
  58. package/dist/src/arg.d.ts +49 -0
  59. package/dist/src/arg.js +220 -0
  60. package/dist/src/atom.d.ts +14 -0
  61. package/dist/src/atom.js +54 -0
  62. package/dist/src/attribute.d.ts +64 -0
  63. package/dist/src/attribute.js +482 -0
  64. package/dist/src/attributes.d.ts +105 -0
  65. package/dist/src/attributes.js +383 -0
  66. package/dist/src/converter.d.ts +28 -0
  67. package/dist/src/converter.js +153 -0
  68. package/dist/src/converterFlags.d.ts +80 -0
  69. package/dist/src/converterFlags.js +241 -0
  70. package/dist/src/converterRule.d.ts +71 -0
  71. package/dist/src/converterRule.js +218 -0
  72. package/dist/src/extLink.d.ts +36 -0
  73. package/dist/src/extLink.js +223 -0
  74. package/dist/src/gallery.d.ts +53 -0
  75. package/dist/src/gallery.js +165 -0
  76. package/dist/src/heading.d.ts +44 -0
  77. package/dist/src/heading.js +222 -0
  78. package/dist/src/hidden.d.ts +9 -0
  79. package/dist/src/hidden.js +82 -0
  80. package/dist/src/html.d.ts +61 -0
  81. package/dist/src/html.js +344 -0
  82. package/dist/src/imageParameter.d.ts +60 -0
  83. package/dist/src/imageParameter.js +262 -0
  84. package/dist/src/imagemap.d.ts +49 -0
  85. package/dist/src/imagemap.js +147 -0
  86. package/dist/src/imagemapLink.d.ts +35 -0
  87. package/dist/src/imagemapLink.js +99 -0
  88. package/dist/src/index.d.ts +135 -0
  89. package/dist/src/index.js +791 -0
  90. package/dist/src/link/base.d.ts +52 -0
  91. package/dist/src/link/base.js +258 -0
  92. package/dist/src/link/category.d.ts +22 -0
  93. package/dist/src/link/category.js +36 -0
  94. package/dist/src/link/file.d.ts +102 -0
  95. package/dist/src/link/file.js +345 -0
  96. package/dist/src/link/galleryImage.d.ts +29 -0
  97. package/dist/src/link/galleryImage.js +133 -0
  98. package/dist/src/link/index.d.ts +39 -0
  99. package/dist/src/link/index.js +100 -0
  100. package/dist/src/link/redirectTarget.d.ts +27 -0
  101. package/dist/src/link/redirectTarget.js +71 -0
  102. package/dist/src/magicLink.d.ts +57 -0
  103. package/dist/src/magicLink.js +261 -0
  104. package/dist/src/nested.d.ts +41 -0
  105. package/dist/src/nested.js +113 -0
  106. package/dist/src/nowiki/base.d.ts +28 -0
  107. package/dist/src/nowiki/base.js +90 -0
  108. package/dist/src/nowiki/comment.d.ts +14 -0
  109. package/dist/src/nowiki/comment.js +123 -0
  110. package/dist/src/nowiki/dd.d.ts +8 -0
  111. package/dist/src/nowiki/dd.js +74 -0
  112. package/dist/src/nowiki/doubleUnderscore.d.ts +15 -0
  113. package/dist/src/nowiki/doubleUnderscore.js +101 -0
  114. package/dist/src/nowiki/hr.d.ts +5 -0
  115. package/dist/src/nowiki/hr.js +72 -0
  116. package/dist/src/nowiki/index.d.ts +14 -0
  117. package/dist/src/nowiki/index.js +30 -0
  118. package/dist/src/nowiki/list.d.ts +5 -0
  119. package/dist/src/nowiki/list.js +67 -0
  120. package/dist/src/nowiki/listBase.d.ts +23 -0
  121. package/dist/src/nowiki/listBase.js +100 -0
  122. package/dist/src/nowiki/noinclude.d.ts +6 -0
  123. package/dist/src/nowiki/noinclude.js +77 -0
  124. package/dist/src/nowiki/quote.d.ts +14 -0
  125. package/dist/src/nowiki/quote.js +149 -0
  126. package/dist/src/onlyinclude.d.ts +13 -0
  127. package/dist/src/onlyinclude.js +60 -0
  128. package/dist/src/paramTag/index.d.ts +28 -0
  129. package/dist/src/paramTag/index.js +97 -0
  130. package/dist/src/paramTag/inputbox.d.ts +8 -0
  131. package/dist/src/paramTag/inputbox.js +26 -0
  132. package/dist/src/parameter.d.ts +60 -0
  133. package/dist/src/parameter.js +267 -0
  134. package/dist/src/pre.d.ts +30 -0
  135. package/dist/src/pre.js +69 -0
  136. package/dist/src/redirect.d.ts +30 -0
  137. package/dist/src/redirect.js +128 -0
  138. package/dist/src/syntax.d.ts +15 -0
  139. package/dist/src/syntax.js +87 -0
  140. package/dist/src/table/base.d.ts +28 -0
  141. package/dist/src/table/base.js +81 -0
  142. package/dist/src/table/index.d.ts +231 -0
  143. package/dist/src/table/index.js +505 -0
  144. package/dist/src/table/td.d.ts +72 -0
  145. package/dist/src/table/td.js +375 -0
  146. package/dist/src/table/tr.d.ts +30 -0
  147. package/dist/src/table/tr.js +61 -0
  148. package/dist/src/table/trBase.d.ts +49 -0
  149. package/dist/src/table/trBase.js +165 -0
  150. package/dist/src/tagPair/ext.d.ts +30 -0
  151. package/dist/src/tagPair/ext.js +231 -0
  152. package/dist/src/tagPair/include.d.ts +33 -0
  153. package/dist/src/tagPair/include.js +145 -0
  154. package/dist/src/tagPair/index.d.ts +23 -0
  155. package/dist/src/tagPair/index.js +130 -0
  156. package/dist/src/transclude.d.ts +161 -0
  157. package/dist/src/transclude.js +607 -0
  158. package/dist/util/constants.js +26 -0
  159. package/dist/util/debug.js +95 -0
  160. package/dist/util/diff.js +83 -0
  161. package/dist/util/html.js +146 -0
  162. package/dist/util/lint.js +32 -0
  163. package/dist/util/string.js +107 -0
  164. package/errors/README +3 -0
  165. package/extensions/dist/base.js +1 -1
  166. package/package.json +21 -21
  167. package/printed/README +3 -0
@@ -0,0 +1,203 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "ext": {
5
+ "description": "extension tags",
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string",
9
+ "pattern": "^[a-z\\d_]+$"
10
+ }
11
+ },
12
+ "html": {
13
+ "description": "valid HTML tags",
14
+ "type": "array",
15
+ "items": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string",
19
+ "pattern": "^[a-z\\d]+$"
20
+ }
21
+ },
22
+ "minItems": 3,
23
+ "maxItems": 3
24
+ },
25
+ "namespaces": {
26
+ "description": "formatted namespaces",
27
+ "type": "object",
28
+ "patternProperties": {
29
+ "^-?\\d+$": {
30
+ "type": "string"
31
+ }
32
+ },
33
+ "additionalProperties": false
34
+ },
35
+ "nsid": {
36
+ "description": "namespace IDs",
37
+ "type": "object",
38
+ "required": [
39
+ "file",
40
+ "category"
41
+ ],
42
+ "additionalProperties": {
43
+ "type": "integer"
44
+ }
45
+ },
46
+ "parserFunction": {
47
+ "type": "array",
48
+ "prefixItems": [
49
+ {
50
+ "description": "case-insensitive parser functions",
51
+ "type": "object",
52
+ "additionalProperties": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ {
57
+ "description": "case-sensitive parser functions",
58
+ "type": "array",
59
+ "allOf": [
60
+ {
61
+ "contains": {
62
+ "const": "!"
63
+ }
64
+ },
65
+ {
66
+ "contains": {
67
+ "const": "="
68
+ }
69
+ }
70
+ ],
71
+ "items": {
72
+ "type": "string"
73
+ }
74
+ },
75
+ {
76
+ "description": "msg and raw",
77
+ "type": "array",
78
+ "items": {
79
+ "type": "string"
80
+ }
81
+ },
82
+ {
83
+ "description": "subst and safesubst",
84
+ "type": "array",
85
+ "items": {
86
+ "type": "string"
87
+ }
88
+ }
89
+ ],
90
+ "minItems": 4,
91
+ "maxItems": 4
92
+ },
93
+ "doubleUnderscore": {
94
+ "description": "behavior switches",
95
+ "type": "array",
96
+ "prefixItems": [
97
+ {
98
+ "description": "case-insensitive behavior switches",
99
+ "type": "array",
100
+ "items": {
101
+ "type": "string"
102
+ }
103
+ },
104
+ {
105
+ "description": "case-sensitive behavior switches",
106
+ "type": "array",
107
+ "items": {
108
+ "type": "string"
109
+ }
110
+ },
111
+ {
112
+ "description": "case-insensitive behavior switches",
113
+ "type": "object",
114
+ "additionalProperties": {
115
+ "type": "string"
116
+ }
117
+ }
118
+ ],
119
+ "minItems": 2,
120
+ "maxItems": 3
121
+ },
122
+ "protocol": {
123
+ "description": "external link protocols",
124
+ "type": "string",
125
+ "pattern": "^[a-z:/]+(?:\\|[a-z:/]+)*$"
126
+ },
127
+ "interwiki": {
128
+ "type": "array",
129
+ "items": {
130
+ "type": "string"
131
+ }
132
+ },
133
+ "img": {
134
+ "description": "image-related magic words",
135
+ "type": "object",
136
+ "additionalProperties": {
137
+ "type": "string",
138
+ "pattern": "^[-a-z]+$"
139
+ }
140
+ },
141
+ "redirection": {
142
+ "description": "magic words for redirection",
143
+ "type": "array",
144
+ "items": {
145
+ "type": "string",
146
+ "pattern": "^#.+$"
147
+ }
148
+ },
149
+ "variants": {
150
+ "description": "variants for language conversion",
151
+ "type": "array",
152
+ "items": {
153
+ "type": "string",
154
+ "pattern": "^[-a-z]+$"
155
+ }
156
+ },
157
+ "conversionTable": {
158
+ "description": "table of unidirectional conversions",
159
+ "type": "array",
160
+ "items": {
161
+ "type": "array",
162
+ "items": {
163
+ "type": "string",
164
+ "pattern": "^[^ <>[\\]{}|]+$"
165
+ },
166
+ "minItems": 2,
167
+ "maxItems": 2
168
+ }
169
+ },
170
+ "redirects": {
171
+ "description": "table of redirects",
172
+ "type": "array",
173
+ "items": {
174
+ "type": "array",
175
+ "items": {
176
+ "type": "string",
177
+ "pattern": "^[^ <>[\\]{}|]+$"
178
+ },
179
+ "minItems": 2,
180
+ "maxItems": 2
181
+ }
182
+ },
183
+ "articlePath": {
184
+ "description": "base URL of internal links",
185
+ "type": "string",
186
+ "pattern": "\\$1"
187
+ }
188
+ },
189
+ "required": [
190
+ "ext",
191
+ "html",
192
+ "namespaces",
193
+ "nsid",
194
+ "parserFunction",
195
+ "doubleUnderscore",
196
+ "protocol",
197
+ "interwiki",
198
+ "img",
199
+ "redirection",
200
+ "variants"
201
+ ],
202
+ "additionalProperties": false
203
+ }
@@ -714,36 +714,7 @@
714
714
  ]
715
715
  ],
716
716
  "doubleUnderscore": [
717
- [
718
- "forcetoc",
719
- "强显目录",
720
- "強制目錄",
721
- "nocc",
722
- "nocontentconvert",
723
- "不转换内容",
724
- "不轉換內容",
725
- "noeditsection",
726
- "无段落编辑",
727
- "无编辑段落",
728
- "無段落編輯",
729
- "nogallery",
730
- "无图库",
731
- "無圖庫",
732
- "notc",
733
- "notitleconvert",
734
- "不转换标题",
735
- "不轉換標題",
736
- "notoc",
737
- "无目录",
738
- "無目錄",
739
- "toc",
740
- "目录",
741
- "目錄",
742
- "archivedtalk",
743
- "已存档讨论",
744
- "notalk",
745
- "禁用讨论"
746
- ],
717
+ [],
747
718
  [
748
719
  "EXPECTUNUSEDCATEGORY",
749
720
  "DISAMBIG",
@@ -766,7 +737,37 @@
766
737
  "禁用全域用户页",
767
738
  "EXPECTED_UNCONNECTED_PAGE",
768
739
  "EXPECTUNUSEDTEMPLATE"
769
- ]
740
+ ],
741
+ {
742
+ "forcetoc": "forcetoc",
743
+ "强显目录": "forcetoc",
744
+ "強制目錄": "forcetoc",
745
+ "nocc": "nocontentconvert",
746
+ "nocontentconvert": "nocontentconvert",
747
+ "不转换内容": "nocontentconvert",
748
+ "不轉換內容": "nocontentconvert",
749
+ "noeditsection": "noeditsection",
750
+ "无段落编辑": "noeditsection",
751
+ "无编辑段落": "noeditsection",
752
+ "無段落編輯": "noeditsection",
753
+ "nogallery": "nogallery",
754
+ "无图库": "nogallery",
755
+ "無圖庫": "nogallery",
756
+ "notc": "notitleconvert",
757
+ "notitleconvert": "notitleconvert",
758
+ "不转换标题": "notitleconvert",
759
+ "不轉換標題": "notitleconvert",
760
+ "notoc": "notoc",
761
+ "无目录": "notoc",
762
+ "無目錄": "notoc",
763
+ "toc": "toc",
764
+ "目录": "toc",
765
+ "目錄": "toc",
766
+ "archivedtalk": "archivedtalk",
767
+ "已存档讨论": "archivedtalk",
768
+ "notalk": "notalk",
769
+ "禁用讨论": "notalk"
770
+ }
770
771
  ],
771
772
  "protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:",
772
773
  "interwiki": [],