@bhsd/codemirror-mediawiki 3.11.4 → 3.12.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/README.md +42 -7
- package/dist/closeTags.d.ts +3 -0
- package/dist/closeTags.js +31 -0
- package/dist/codemirror.d.ts +16 -2
- package/dist/codemirror.js +34 -14
- package/dist/fold.js +4 -4
- package/dist/html.js +2 -2
- package/dist/index.d.ts +22 -3
- package/dist/index.js +55 -28
- package/dist/javascript.d.ts +7 -0
- package/dist/javascript.js +8 -0
- package/dist/lint.d.ts +6 -0
- package/dist/lint.js +28 -0
- package/dist/linter.js +3 -2
- package/dist/lua.js +3 -2
- package/dist/main.min.js +37 -37
- package/dist/matchBrackets.d.ts +11 -1
- package/dist/matchBrackets.js +49 -24
- package/dist/matchTag.d.ts +6 -0
- package/dist/matchTag.js +1 -1
- package/dist/mediawiki.d.ts +1 -1
- package/dist/mediawiki.js +7 -2
- package/dist/mw.min.js +39 -39
- package/dist/statusBar.js +12 -4
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +1 -1
- package/dist/token.d.ts +2 -2
- package/dist/token.js +25 -16
- package/dist/wiki.min.js +39 -39
- package/i18n/en.json +2 -1
- package/i18n/zh-hans.json +2 -1
- package/i18n/zh-hant.json +2 -1
- package/package.json +15 -15
package/i18n/en.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.
|
|
2
|
+
"version": "3.12.0",
|
|
3
3
|
"lang": "en",
|
|
4
4
|
"title": "CodeMirror Addons",
|
|
5
5
|
"label": "Please select the addons you wish to load",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"addon-autocompletion": "<span title=\"Shift-Enter\">Autocompletion</span>",
|
|
10
10
|
"addon-bracketMatching": "Highlight matching/non-matching brackets or tags",
|
|
11
11
|
"addon-closeBrackets": "Auto-close brackets and quotes",
|
|
12
|
+
"addon-closeTags": "Auto-close HTML/XML tags",
|
|
12
13
|
"addon-codeFolding": "<span title=\"Ctrl-Shift-[ : fold\nCtrl-Shift-] : unfold\nCtrl-Alt-[ : fold all\nCtrl-Alt-] : unfold all\">Code folding</span>",
|
|
13
14
|
"addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : fold\nCmd-Alt-] : unfold\nCtrl-Alt-[ : fold all\nCtrl-Alt-] : unfold all\">Code folding</span>",
|
|
14
15
|
"addon-colorPicker": "Color picker",
|
package/i18n/zh-hans.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.
|
|
2
|
+
"version": "3.12.0",
|
|
3
3
|
"lang": "zh-hans",
|
|
4
4
|
"title": "CodeMirror插件",
|
|
5
5
|
"label": "请选择您希望加载的插件",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"addon-autocompletion": "<span title=\"Shift-Enter\">自动填充</span>",
|
|
10
10
|
"addon-bracketMatching": "高亮显示匹配和未匹配的括号或标签",
|
|
11
11
|
"addon-closeBrackets": "自动闭合括号和引号",
|
|
12
|
+
"addon-closeTags": "自动闭合HTML/XML标签",
|
|
12
13
|
"addon-codeFolding": "<span title=\"Ctrl-Shift-[ : 折叠\nCtrl-Shift-] : 展开\nCtrl-Alt-[ : 折叠所有\nCtrl-Alt-] : 展开所有\">代码折叠</span>",
|
|
13
14
|
"addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : 折叠\nCmd-Alt-] : 展开\nCtrl-Alt-[ : 折叠所有\nCtrl-Alt-] : 展开所有\">代码折叠</span>",
|
|
14
15
|
"addon-colorPicker": "颜色选择器",
|
package/i18n/zh-hant.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.
|
|
2
|
+
"version": "3.12.0",
|
|
3
3
|
"lang": "zh-hant",
|
|
4
4
|
"title": "CodeMirror外掛程式",
|
|
5
5
|
"label": "請選擇您希望載入的外掛程式",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"addon-autocompletion": "<span title=\"Shift-Enter\">自動填入</span>",
|
|
10
10
|
"addon-bracketMatching": "突出顯示匹配和未匹配的括號或標籤",
|
|
11
11
|
"addon-closeBrackets": "自動閉合括號和引號",
|
|
12
|
+
"addon-closeTags": "自動閉合HTML/XML標籤",
|
|
12
13
|
"addon-codeFolding": "<span title=\"Ctrl-Shift-[ : 摺疊\nCtrl-Shift-] : 展開\nCtrl-Alt-[ : 摺疊全部\nCtrl-Alt-] : 展開全部\">程式碼折疊</span>",
|
|
13
14
|
"addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : 摺疊\nCmd-Alt-] : 展開\nCtrl-Alt-[ : 摺疊全部\nCtrl-Alt-] : 展開全部\">程式碼折疊</span>",
|
|
14
15
|
"addon-colorPicker": "顏色選擇器",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/codemirror-mediawiki",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mediawiki",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"build:mw": "MODE=mw node build.cjs && esbuild ./mw/config.ts --charset=utf8 --bundle --target=es2019 --format=esm --outfile=dist/mwConfig.js --external:@bhsd/browser --external:@bhsd/cm-util",
|
|
37
37
|
"build:wiki": "MODE=wiki node build.cjs",
|
|
38
38
|
"build:gh-page": "esbuild src/*-page.ts --charset=utf8 --bundle --target=es2019 --format=esm --outdir=. --external:/codemirror-mediawiki/dist/main.min.js --external:/codemirror-mediawiki/dist/demo.min.js --external:/wikiparser-node/extensions/dist/test-page-common.js --external:/lezer-abusefilter/dist/dialect.test.js",
|
|
39
|
-
"build:demo": "esbuild ./bundle/*.ts --charset=utf8 --bundle --format=esm --outdir=build && esbuild ./bundle/mediawiki.ts --charset=utf8 --bundle --minify --target=es2019 --format=esm --outfile=dist/demo.min.js",
|
|
39
|
+
"build:demo": "esbuild ./bundle/*.ts --charset=utf8 --bundle --format=esm --outdir=build --drop-labels=GH && esbuild ./bundle/mediawiki.ts --charset=utf8 --bundle --minify --target=es2019 --format=esm --outfile=dist/demo.min.js",
|
|
40
40
|
"build:test": "rm -rf test/dist/; tsc --project test/tsconfig.json && npm test",
|
|
41
41
|
"build": "npm run build:css && rm -rf dist/ && npm run build:demo && npm run build:core && npm run build:wiki && npm run build:mw && eslint --no-config-lookup -c eslint.dist.mjs dist/*.min.js",
|
|
42
42
|
"lint:ts": "tsc --noEmit && tsc --project mw/tsconfig.json --noEmit && tsc --project test/tsconfig.json --noEmit && tsc --project bundle/tsconfig.json --noEmit && eslint --cache .",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@bhsd/browser": "^0.3.0",
|
|
55
|
-
"@bhsd/cm-util": "^0.
|
|
55
|
+
"@bhsd/cm-util": "^0.2.0",
|
|
56
56
|
"@bhsd/codemirror-css-color-picker": "^6.3.2",
|
|
57
57
|
"@bhsd/common": "^1.3.1",
|
|
58
58
|
"@bhsd/lezer-abusefilter": "^0.1.2",
|
|
59
59
|
"@bhsd/stylelint-util": "^1.0.1",
|
|
60
|
-
"@codemirror/autocomplete": "^6.20.
|
|
60
|
+
"@codemirror/autocomplete": "^6.20.1",
|
|
61
61
|
"@codemirror/commands": "^6.10.2",
|
|
62
62
|
"@codemirror/language": "^6.12.2",
|
|
63
63
|
"@codemirror/lang-css": "^6.3.1",
|
|
@@ -66,45 +66,45 @@
|
|
|
66
66
|
"@codemirror/lang-json": "^6.0.2",
|
|
67
67
|
"@codemirror/lang-vue": "^0.1.3",
|
|
68
68
|
"@codemirror/legacy-modes": "^6.5.2",
|
|
69
|
-
"@codemirror/lint": "^6.9.
|
|
69
|
+
"@codemirror/lint": "^6.9.5",
|
|
70
70
|
"@codemirror/search": "^6.6.0",
|
|
71
71
|
"@codemirror/state": "^6.5.4",
|
|
72
|
-
"@codemirror/view": "^6.39.
|
|
72
|
+
"@codemirror/view": "^6.39.17",
|
|
73
73
|
"@eslint/js": "^9.39.4",
|
|
74
74
|
"cm6-theme-nord": "^0.2.0",
|
|
75
|
+
"eslint": "^9.39.4",
|
|
75
76
|
"globals": "^17.4.0",
|
|
77
|
+
"luacheck-browserify": "^0.10.1",
|
|
78
|
+
"stylelint": "^17.4.0",
|
|
76
79
|
"wikiparser-node": "^1.36.0"
|
|
77
80
|
},
|
|
78
81
|
"devDependencies": {
|
|
79
|
-
"@bhsd/code-standard": "^2.1.
|
|
82
|
+
"@bhsd/code-standard": "^2.1.1",
|
|
80
83
|
"@bhsd/nodejs": "^0.1.1",
|
|
81
84
|
"@bhsd/test-util": "^0.3.0",
|
|
82
|
-
"@stylistic/eslint-plugin": "^5.
|
|
85
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
83
86
|
"@stylistic/stylelint-plugin": "^5.0.1",
|
|
84
87
|
"@types/eslint": "^9.6.1",
|
|
85
88
|
"@types/jquery": "^3.5.34",
|
|
86
89
|
"@types/mocha": "^10.0.10",
|
|
87
90
|
"@types/node": "^24.11.0",
|
|
88
91
|
"@types/oojs-ui": "^0.49.4",
|
|
89
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
90
|
-
"@typescript-eslint/parser": "^8.
|
|
92
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
93
|
+
"@typescript-eslint/parser": "^8.57.0",
|
|
91
94
|
"esbuild": "^0.27.3",
|
|
92
|
-
"eslint": "^9.39.4",
|
|
93
95
|
"eslint-plugin-es-x": "^9.5.0",
|
|
94
96
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
95
97
|
"eslint-plugin-jsdoc": "^62.7.1",
|
|
96
98
|
"eslint-plugin-jsonc": "^3.1.1",
|
|
97
99
|
"eslint-plugin-promise": "^7.2.1",
|
|
98
|
-
"eslint-plugin-regexp": "^3.
|
|
100
|
+
"eslint-plugin-regexp": "^3.1.0",
|
|
99
101
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
100
102
|
"http-server": "^14.1.1",
|
|
101
|
-
"luacheck-browserify": "^0.10.0",
|
|
102
103
|
"markdownlint-cli2": "^0.21.0",
|
|
103
104
|
"mocha": "^11.7.5",
|
|
104
105
|
"monaco-editor": "^0.55.1",
|
|
105
|
-
"stylelint": "^17.4.0",
|
|
106
106
|
"stylelint-config-recommended": "^18.0.0",
|
|
107
|
-
"stylelint-plugin-use-baseline": "^1.2.
|
|
107
|
+
"stylelint-plugin-use-baseline": "^1.2.7",
|
|
108
108
|
"types-mediawiki": "^2.0.0",
|
|
109
109
|
"typescript": "^5.9.3"
|
|
110
110
|
}
|