@bhsd/codemirror-mediawiki 2.12.6 → 2.13.0

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/i18n/en.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.12.6",
2
+ "version": "2.13.0",
3
3
  "lang": "en",
4
4
  "i18n-failed": "Failed to fetch the translation file in $1.",
5
5
  "title": "CodeMirror Addons",
@@ -38,16 +38,5 @@
38
38
  "Stylelint-config": "Stylelint configuration as JSON:",
39
39
  "and": " and ",
40
40
  "json-error": "Invalid JSON: $1",
41
- "phrase-Find": "Find",
42
- "phrase-next": "next",
43
- "phrase-previous": "previous",
44
- "phrase-all": "all",
45
- "phrase-match-case": "match case",
46
- "phrase-regexp": "regexp",
47
- "phrase-by-word": "by word",
48
- "phrase-Replace": "Replace",
49
- "phrase-replace": "replace",
50
- "phrase-replace-all": "replace all",
51
- "phrase-unfold": "unfold",
52
41
  "phrase-Fold-template-or-extension-tag": "Fold template, parser function or extension tag"
53
42
  }
package/i18n/zh-hans.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.12.6",
2
+ "version": "2.13.0",
3
3
  "lang": "zh-hans",
4
4
  "i18n-failed": "获取 $1 的语言文件失败。",
5
5
  "title": "CodeMirror插件",
@@ -49,5 +49,7 @@
49
49
  "phrase-replace": "替换",
50
50
  "phrase-replace-all": "替换所有",
51
51
  "phrase-unfold": "展开",
52
+ "phrase-Fold-line": "折叠行",
53
+ "phrase-Unfold-line": "展开行",
52
54
  "phrase-Fold-template-or-extension-tag": "折叠模板、解析器函数或扩展标签"
53
55
  }
package/i18n/zh-hant.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.12.6",
2
+ "version": "2.13.0",
3
3
  "lang": "zh-hant",
4
4
  "i18n-failed": "取得 $1 的語言檔案失敗。",
5
5
  "title": "CodeMirror外掛程式",
@@ -49,5 +49,7 @@
49
49
  "phrase-replace": "取代",
50
50
  "phrase-replace-all": "全部取代",
51
51
  "phrase-unfold": "展開",
52
+ "phrase-Fold-line": "摺疊行",
53
+ "phrase-Unfold-line": "展開行",
52
54
  "phrase-Fold-template-or-extension-tag": "摺疊模板、解析器函數或擴展標籤"
53
55
  }
package/mediawiki.css CHANGED
@@ -70,7 +70,11 @@
70
70
  color: #d73333;
71
71
  }
72
72
 
73
- .cm-mw-pagename {
73
+ .cm-mw-pagename,
74
+ .cm-mw-extlink-protocol,
75
+ .cm-mw-extlink,
76
+ .cm-mw-free-extlink-protocol,
77
+ .cm-mw-free-extlink {
74
78
  text-decoration: underline;
75
79
  }
76
80
 
@@ -184,6 +188,7 @@
184
188
  color: #d08;
185
189
  font-weight: bold;
186
190
  }
191
+ .cm-mw-table-delimiter2,
187
192
  .cm-mw-table-definition {
188
193
  color: #d08;
189
194
  font-weight: normal;
@@ -198,10 +203,6 @@
198
203
  }
199
204
 
200
205
  /* backgrounds */
201
- .cm-mw-tag-pre,
202
- .cm-mw-tag-nowiki {
203
- background-color: rgba(0, 0, 0, .04);
204
- }
205
206
  .cm-mw-template-ground {
206
207
  background-color: rgba(170, 17, 17, .04);
207
208
  }
@@ -282,3 +283,7 @@
282
283
  .cm-mw-template3-ext3-link-ground {
283
284
  background-color: rgba(122, 9, 116, .24);
284
285
  }
286
+ .cm-mw-tag-pre,
287
+ .cm-mw-tag-nowiki {
288
+ background-color: rgba(0, 0, 0, .04);
289
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/codemirror-mediawiki",
3
- "version": "2.12.6",
3
+ "version": "2.13.0",
4
4
  "description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
5
5
  "keywords": [
6
6
  "mediawiki",
@@ -15,7 +15,8 @@
15
15
  "/i18n/",
16
16
  "/dist/*.js",
17
17
  "/dist/*.d.ts",
18
- "!/dist/gh-page.d.ts",
18
+ "!/dist/*-page.d.ts",
19
+ "!/dist/parserTests.js",
19
20
  "/mediawiki.css"
20
21
  ],
21
22
  "browser": "dist/main.min.js",
@@ -29,10 +30,11 @@
29
30
  "build:core": "esbuild ./src/codemirror.ts --bundle --minify --target=es2018 --format=esm --sourcemap --outfile=dist/main.min.js && tsc --emitDeclarationOnly",
30
31
  "build:mw": "esbuild ./mw/base.ts --bundle --minify --target=es2018 --format=esm --sourcemap --outfile=dist/mw.min.js",
31
32
  "build:gh-page": "bash build.sh",
32
- "build": "npm run build:core && npm run build:mw",
33
+ "build:test": "esbuild ./test/parserTests.ts --bundle --minify --platform=node --outfile=dist/parserTests.js && node dist/parserTests.js",
34
+ "build": "npm run build:core && npm run build:mw && npm run build:test",
33
35
  "diff": "git diff --ignore-all-space --color-moved",
34
36
  "diff:stat": "f() { git diff --stat --ignore-all-space --color=always $1 $2 -- . ':!dist/' ':!.github/'; }; f",
35
- "lint:ts": "tsc --noEmit && tsc --project mw/tsconfig.json --noEmit && eslint --cache .",
37
+ "lint:ts": "tsc --noEmit && tsc --project mw/tsconfig.json --noEmit && tsc --project test/tsconfig.json --noEmit && eslint --cache .",
36
38
  "lint:css": "stylelint *.css",
37
39
  "lint": "npm run lint:ts && npm run lint:css",
38
40
  "server": "npm run test:end; http-server .. -c-1 --cors &",