@bhsd/codemirror-mediawiki 2.31.0 → 3.0.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/README.md +181 -32
- package/dist/codemirror.d.ts +72 -47
- package/dist/codemirror.js +169 -208
- package/dist/color.d.ts +1 -6
- package/dist/color.js +1 -8
- package/dist/config.js +4 -4
- package/dist/escape.js +2 -2
- package/dist/fold.d.ts +53 -6
- package/dist/fold.js +130 -133
- package/dist/indent.d.ts +5 -1
- package/dist/indent.js +2 -1
- package/dist/javascript.d.ts +1 -0
- package/dist/javascript.js +2 -4
- package/dist/keybindings.js +1 -0
- package/dist/linter.js +43 -8
- package/dist/lintsource.d.ts +14 -0
- package/dist/lintsource.js +159 -0
- package/dist/main.min.js +25 -24
- package/dist/matchBrackets.d.ts +1 -1
- package/dist/matchTag.js +2 -2
- package/dist/mw.min.js +26 -25
- package/dist/mwConfig.js +0 -3
- package/dist/statusBar.d.ts +1 -1
- package/dist/token.d.ts +1 -1
- package/dist/token.js +11 -16
- package/dist/vue.d.ts +3 -0
- package/dist/vue.js +14 -0
- package/dist/wiki.min.js +25 -24
- package/i18n/en.json +2 -3
- package/i18n/zh-hans.json +2 -3
- package/i18n/zh-hant.json +2 -3
- package/package.json +10 -7
package/i18n/en.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "3.0.1",
|
|
3
3
|
"lang": "en",
|
|
4
4
|
"title": "CodeMirror Addons",
|
|
5
5
|
"label": "Please select the addons you wish to load",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"contentmodel": "Please indicate the content model:",
|
|
8
8
|
"addon-allowMultipleSelections": "Allow multiple selections",
|
|
9
9
|
"addon-autocompletion": "<span title=\"Shift-Enter\">Autocompletion</span>",
|
|
10
|
-
"addon-bracketMatching": "Highlight matching/non-matching brackets",
|
|
10
|
+
"addon-bracketMatching": "Highlight matching/non-matching brackets or tags",
|
|
11
11
|
"addon-closeBrackets": "Auto-close brackets and quotes",
|
|
12
12
|
"addon-codeFolding": "<span title=\"Ctrl-Shift-[ : fold\nCtrl-Shift-] : unfold\nCtrl-Alt-[ : fold all\nCtrl-Alt-] : unfold all\">Code folding</span>",
|
|
13
13
|
"addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : fold\nCmd-Alt-] : unfold\nCtrl-Alt-[ : fold all\nCtrl-Alt-] : unfold all\">Code folding</span>",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"addon-save": "Save your preferences on a [[special:mypage/codemirror-mediawiki.json|user subpage]]",
|
|
30
30
|
"addon-scrollPastEnd": "Scroll down past the end of the document",
|
|
31
31
|
"addon-signatureHelp": "Show parser function signatures",
|
|
32
|
-
"addon-tagMatching": "Highlight matching/non-matching tags",
|
|
33
32
|
"addon-useMonaco": "Use Monaco Editor for new editors",
|
|
34
33
|
"addon-wikiEditor": "Load WikiEditor toolbar",
|
|
35
34
|
"no-wikiEditor": "WikiEditor is not available.",
|
package/i18n/zh-hans.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "3.0.1",
|
|
3
3
|
"lang": "zh-hans",
|
|
4
4
|
"title": "CodeMirror插件",
|
|
5
5
|
"label": "请选择您希望加载的插件",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"contentmodel": "请输入内容模型:",
|
|
8
8
|
"addon-allowMultipleSelections": "允许选择多个片段",
|
|
9
9
|
"addon-autocompletion": "<span title=\"Shift-Enter\">自动填充</span>",
|
|
10
|
-
"addon-bracketMatching": "
|
|
10
|
+
"addon-bracketMatching": "高亮显示匹配和未匹配的括号或标签",
|
|
11
11
|
"addon-closeBrackets": "自动闭合括号和引号",
|
|
12
12
|
"addon-codeFolding": "<span title=\"Ctrl-Shift-[ : 折叠\nCtrl-Shift-] : 展开\nCtrl-Alt-[ : 折叠所有\nCtrl-Alt-] : 展开所有\">代码折叠</span>",
|
|
13
13
|
"addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : 折叠\nCmd-Alt-] : 展开\nCtrl-Alt-[ : 折叠所有\nCtrl-Alt-] : 展开所有\">代码折叠</span>",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"addon-save": "将设置保存至[[special:mypage/codemirror-mediawiki.json|用户子页面]]",
|
|
30
30
|
"addon-scrollPastEnd": "允许向下滚动超过文档末尾",
|
|
31
31
|
"addon-signatureHelp": "显示解析器函数的签名",
|
|
32
|
-
"addon-tagMatching": "高亮显示匹配和未匹配的标签",
|
|
33
32
|
"addon-useMonaco": "新增的编辑区使用Monaco编辑器",
|
|
34
33
|
"addon-wikiEditor": "加载WikiEditor工具栏",
|
|
35
34
|
"no-wikiEditor": "未找到WikiEditor扩展。",
|
package/i18n/zh-hant.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "3.0.1",
|
|
3
3
|
"lang": "zh-hant",
|
|
4
4
|
"title": "CodeMirror外掛程式",
|
|
5
5
|
"label": "請選擇您希望載入的外掛程式",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"contentmodel": "請輸入內容模型:",
|
|
8
8
|
"addon-allowMultipleSelections": "允許選擇多個片段",
|
|
9
9
|
"addon-autocompletion": "<span title=\"Shift-Enter\">自動填入</span>",
|
|
10
|
-
"addon-bracketMatching": "
|
|
10
|
+
"addon-bracketMatching": "突出顯示匹配和未匹配的括號或標籤",
|
|
11
11
|
"addon-closeBrackets": "自動閉合括號和引號",
|
|
12
12
|
"addon-codeFolding": "<span title=\"Ctrl-Shift-[ : 摺疊\nCtrl-Shift-] : 展開\nCtrl-Alt-[ : 摺疊全部\nCtrl-Alt-] : 展開全部\">程式碼折疊</span>",
|
|
13
13
|
"addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : 摺疊\nCmd-Alt-] : 展開\nCtrl-Alt-[ : 摺疊全部\nCtrl-Alt-] : 展開全部\">程式碼折疊</span>",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"addon-save": "將設定儲存至[[special:mypage/codemirror-mediawiki.json|使用者子頁面]]",
|
|
30
30
|
"addon-scrollPastEnd": "允許向下滾動超過文件末尾",
|
|
31
31
|
"addon-signatureHelp": "顯示解析器函數的簽名",
|
|
32
|
-
"addon-tagMatching": "突出顯示匹配和未匹配的標籤",
|
|
33
32
|
"addon-useMonaco": "新增的編輯區使用Monaco編輯器",
|
|
34
33
|
"addon-wikiEditor": "載入WikiEditor工具列",
|
|
35
34
|
"no-wikiEditor": "未找到WikiEditor擴展。",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/codemirror-mediawiki",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mediawiki",
|
|
@@ -33,13 +33,14 @@
|
|
|
33
33
|
"prepublishOnly": "npm run build",
|
|
34
34
|
"bundle:core": "node build.mjs",
|
|
35
35
|
"bundle:wiki": "MODE=wiki node build.mjs",
|
|
36
|
+
"bundle:unused": "esbuild ./test/bundle.ts --charset=utf8 --bundle --drop-labels=ws --format=esm --outfile=build/unused.js",
|
|
36
37
|
"build:css": "esbuild ./css/index.css --bundle --minify --outfile=mediawiki.css",
|
|
37
38
|
"build:core": "npm run bundle:core && esbuild ./build/main.js --charset=utf8 --minify --target=es2019 --format=esm --sourcemap --outfile=dist/main.min.js && tsc && esbuild src/config.ts --bundle --format=esm --external:@lezer/highlight --outfile=dist/config.js --legal-comments=inline && rm dist/*-page.{js,d.ts}",
|
|
38
39
|
"build:mw": "esbuild ./build/wiki.js --charset=utf8 --minify --target=es2019 --format=esm --outfile=dist/mw.min.js && esbuild ./mw/config.ts --charset=utf8 --bundle --target=es2019 --format=esm --outfile=dist/mwConfig.js",
|
|
39
40
|
"build:wiki": "npm run bundle:wiki && esbuild ./build/wiki.js --charset=utf8 --minify --target=es2019 --format=iife --sourcemap --outfile=dist/wiki.min.js",
|
|
40
41
|
"build:gh-page": "bash build.sh",
|
|
41
42
|
"build:test": "tsc --project test/tsconfig.json && npm test",
|
|
42
|
-
"build": "npm run build:css && rm -rf dist/ && npm run build:core && npm run build:wiki && npm run build:mw && eslint --no-eslintrc -c .eslintrc.dist.cjs dist/*.min.js",
|
|
43
|
+
"build": "npm run build:css && rm -rf dist/ && npm run bundle:unused && npm run build:core && npm run build:wiki && npm run build:mw && eslint --no-eslintrc -c .eslintrc.dist.cjs dist/*.min.js",
|
|
43
44
|
"lint:ts": "tsc --noEmit && tsc --project mw/tsconfig.json --noEmit && tsc --project test/tsconfig.json --noEmit && eslint --cache .",
|
|
44
45
|
"lint:css": "stylelint **/*.css",
|
|
45
46
|
"lint": "npm run lint:ts && npm run lint:css",
|
|
@@ -58,8 +59,10 @@
|
|
|
58
59
|
"@codemirror/commands": "^6.8.1",
|
|
59
60
|
"@codemirror/language": "^6.11.2",
|
|
60
61
|
"@codemirror/lang-css": "^6.3.1",
|
|
62
|
+
"@codemirror/lang-html": "^6.4.9",
|
|
61
63
|
"@codemirror/lang-javascript": "^6.2.2",
|
|
62
64
|
"@codemirror/lang-json": "^6.0.1",
|
|
65
|
+
"@codemirror/lang-vue": "^0.1.3",
|
|
63
66
|
"@codemirror/legacy-modes": "^6.4.2",
|
|
64
67
|
"@codemirror/lint": "^6.8.5",
|
|
65
68
|
"@codemirror/lsp-client": "^6.0.0",
|
|
@@ -68,14 +71,14 @@
|
|
|
68
71
|
"@codemirror/view": "^6.38.1",
|
|
69
72
|
"@lezer/common": "^1.2.3",
|
|
70
73
|
"@lezer/highlight": "^1.2.1",
|
|
71
|
-
"wikiparser-node": "^1.
|
|
74
|
+
"wikiparser-node": "^1.23.0"
|
|
72
75
|
},
|
|
73
76
|
"devDependencies": {
|
|
74
77
|
"@bhsd/cm-util": "^0.0.0",
|
|
75
78
|
"@bhsd/code-standard": "^1.0.0",
|
|
76
79
|
"@bhsd/stylelint-util": "^0.0.0",
|
|
77
80
|
"@stylistic/eslint-plugin": "^3.1.0",
|
|
78
|
-
"@stylistic/stylelint-plugin": "^
|
|
81
|
+
"@stylistic/stylelint-plugin": "^4.0.0",
|
|
79
82
|
"@types/eslint": "^8.56.10",
|
|
80
83
|
"@types/jquery": "^3.5.32",
|
|
81
84
|
"@types/mocha": "^10.0.10",
|
|
@@ -87,7 +90,7 @@
|
|
|
87
90
|
"eslint": "^8.57.1",
|
|
88
91
|
"eslint-plugin-es-x": "^8.7.0",
|
|
89
92
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
90
|
-
"eslint-plugin-jsdoc": "^
|
|
93
|
+
"eslint-plugin-jsdoc": "^52.0.2",
|
|
91
94
|
"eslint-plugin-json-es": "^1.6.0",
|
|
92
95
|
"eslint-plugin-promise": "^7.2.1",
|
|
93
96
|
"eslint-plugin-regexp": "^2.9.0",
|
|
@@ -96,8 +99,8 @@
|
|
|
96
99
|
"luacheck-browserify": "^0.7.0",
|
|
97
100
|
"mocha": "^11.7.1",
|
|
98
101
|
"monaco-editor": "^0.52.2",
|
|
99
|
-
"stylelint": "^16.
|
|
100
|
-
"stylelint-config-recommended": "^
|
|
102
|
+
"stylelint": "^16.23.0",
|
|
103
|
+
"stylelint-config-recommended": "^17.0.0",
|
|
101
104
|
"types-mediawiki": "^1.10.1",
|
|
102
105
|
"typescript": "^5.8.2"
|
|
103
106
|
}
|