@bhsd/codemirror-mediawiki 3.5.2 → 3.6.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 +1 -1
- package/dist/bidi.js +5 -4
- package/dist/codemirror.d.ts +2 -2
- package/dist/codemirror.js +9 -4
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +9 -0
- package/dist/fold.d.ts +0 -6
- package/dist/fold.js +10 -15
- package/dist/hover.d.ts +1 -22
- package/dist/hover.js +32 -38
- package/dist/html.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -11
- package/dist/inlay.js +4 -3
- package/dist/lintsource.js +1 -1
- package/dist/main.min.js +28 -27
- package/dist/matchTag.js +2 -1
- package/dist/mediawiki.d.ts +0 -7
- package/dist/mediawiki.js +18 -21
- package/dist/mw.min.js +31 -30
- package/dist/openLinks.d.ts +0 -1
- package/dist/openLinks.js +7 -11
- package/dist/ref.js +25 -8
- package/dist/signature.js +5 -4
- package/dist/statusBar.js +20 -20
- package/dist/theme.js +51 -52
- package/dist/token.d.ts +5 -3
- package/dist/util.d.ts +39 -0
- package/dist/util.js +53 -0
- package/dist/vue.js +1 -1
- package/dist/wiki.min.js +30 -29
- package/i18n/en.json +3 -3
- package/i18n/zh-hans.json +3 -3
- package/i18n/zh-hant.json +3 -3
- package/package.json +8 -8
package/i18n/en.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.
|
|
2
|
+
"version": "3.6.1",
|
|
3
3
|
"lang": "en",
|
|
4
4
|
"title": "CodeMirror Addons",
|
|
5
5
|
"label": "Please select the addons you wish to load",
|
|
6
|
-
"feedback": "Bug reports or suggestions are welcome at <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\">GitHub</a> .",
|
|
6
|
+
"feedback": "Bug reports or suggestions are welcome at <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">GitHub</a> .",
|
|
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>",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"and": " and ",
|
|
47
47
|
"json-error": "Invalid JSON: $1",
|
|
48
48
|
"phrase-Fold-template-or-extension-tag": "Fold template, parser function or extension tag",
|
|
49
|
-
"phrase-No-definition-found": "No definition found
|
|
49
|
+
"phrase-No-definition-found": "No definition found",
|
|
50
50
|
"toolbar-fold-ref": "Fold/Unfold references"
|
|
51
51
|
}
|
package/i18n/zh-hans.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.
|
|
2
|
+
"version": "3.6.1",
|
|
3
3
|
"lang": "zh-hans",
|
|
4
4
|
"title": "CodeMirror插件",
|
|
5
5
|
"label": "请选择您希望加载的插件",
|
|
6
|
-
"feedback": "欢迎将错误报告或是改进建议提交到 <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\">GitHub</a> !",
|
|
6
|
+
"feedback": "欢迎将错误报告或是改进建议提交到 <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">GitHub</a> !",
|
|
7
7
|
"contentmodel": "请输入内容模型:",
|
|
8
8
|
"addon-allowMultipleSelections": "允许选择多个片段",
|
|
9
9
|
"addon-autocompletion": "<span title=\"Shift-Enter\">自动填充</span>",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"phrase-Fold-line": "折叠行",
|
|
62
62
|
"phrase-Unfold-line": "展开行",
|
|
63
63
|
"phrase-Fold-template-or-extension-tag": "折叠模板、解析器函数或扩展标签",
|
|
64
|
-
"phrase-No-definition-found": "
|
|
64
|
+
"phrase-No-definition-found": "未找到定义",
|
|
65
65
|
"toolbar-fold-ref": "折叠/展开参考资料"
|
|
66
66
|
}
|
package/i18n/zh-hant.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.
|
|
2
|
+
"version": "3.6.1",
|
|
3
3
|
"lang": "zh-hant",
|
|
4
4
|
"title": "CodeMirror外掛程式",
|
|
5
5
|
"label": "請選擇您希望載入的外掛程式",
|
|
6
|
-
"feedback": "歡迎將錯誤報告或是改進建議提交到 <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\">GitHub</a> !",
|
|
6
|
+
"feedback": "歡迎將錯誤報告或是改進建議提交到 <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">GitHub</a> !",
|
|
7
7
|
"contentmodel": "請輸入內容模型:",
|
|
8
8
|
"addon-allowMultipleSelections": "允許選擇多個片段",
|
|
9
9
|
"addon-autocompletion": "<span title=\"Shift-Enter\">自動填入</span>",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"phrase-Fold-line": "摺疊行",
|
|
62
62
|
"phrase-Unfold-line": "展開行",
|
|
63
63
|
"phrase-Fold-template-or-extension-tag": "摺疊模板、解析器函數或擴展標籤",
|
|
64
|
-
"phrase-No-definition-found": "
|
|
64
|
+
"phrase-No-definition-found": "未找到定義",
|
|
65
65
|
"toolbar-fold-ref": "摺疊/展開參考文獻"
|
|
66
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/codemirror-mediawiki",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mediawiki",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"bundle:wiki": "MODE=wiki node build.cjs",
|
|
35
35
|
"bundle:unused": "esbuild ./bundle/*.ts --charset=utf8 --bundle --format=esm --outdir=build",
|
|
36
36
|
"build:css": "esbuild ./css/index.css --bundle --minify --outfile=mediawiki.css",
|
|
37
|
-
"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
|
|
37
|
+
"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,.test}.{js,d.ts}",
|
|
38
38
|
"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
39
|
"build:wiki": "npm run bundle:wiki && esbuild ./build/wiki.js --charset=utf8 --minify --target=es2019 --format=iife --sourcemap --outfile=dist/wiki.min.js",
|
|
40
|
-
"build:gh-page": "
|
|
40
|
+
"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",
|
|
41
41
|
"build:demo": "npm run bundle:unused && esbuild ./build/mediawiki.js --charset=utf8 --minify --target=es2019 --format=esm --outfile=dist/demo.min.js",
|
|
42
42
|
"build:test": "rm -rf test/dist/; tsc --project test/tsconfig.json && npm test",
|
|
43
43
|
"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-eslintrc -c .eslintrc.dist.cjs dist/*.min.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@bhsd/codemirror-css-color-picker": "^6.3.0",
|
|
56
56
|
"@bhsd/common": "^1.0.1",
|
|
57
57
|
"@codemirror/autocomplete": "^6.18.6",
|
|
58
|
-
"@codemirror/commands": "^6.
|
|
58
|
+
"@codemirror/commands": "^6.9.0",
|
|
59
59
|
"@codemirror/language": "^6.11.3",
|
|
60
60
|
"@codemirror/lang-css": "^6.3.1",
|
|
61
61
|
"@codemirror/lang-html": "^6.4.10",
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
"@codemirror/lang-json": "^6.0.2",
|
|
64
64
|
"@codemirror/lang-vue": "^0.1.3",
|
|
65
65
|
"@codemirror/legacy-modes": "^6.4.2",
|
|
66
|
-
"@codemirror/lint": "^6.
|
|
66
|
+
"@codemirror/lint": "^6.9.0",
|
|
67
67
|
"@codemirror/search": "^6.5.11",
|
|
68
68
|
"@codemirror/state": "^6.5.2",
|
|
69
|
-
"@codemirror/view": "^6.38.
|
|
69
|
+
"@codemirror/view": "^6.38.6",
|
|
70
70
|
"cm6-theme-nord": "^0.2.0",
|
|
71
|
-
"wikiparser-node": "^1.
|
|
71
|
+
"wikiparser-node": "^1.29.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@bhsd/cm-util": "^0.1.0",
|
|
75
75
|
"@bhsd/code-standard": "^1.2.0",
|
|
76
76
|
"@bhsd/stylelint-util": "^0.1.0",
|
|
77
|
-
"@bhsd/test-util": "^0.1
|
|
77
|
+
"@bhsd/test-util": "^0.2.1",
|
|
78
78
|
"@stylistic/eslint-plugin": "^3.1.0",
|
|
79
79
|
"@stylistic/stylelint-plugin": "^4.0.0",
|
|
80
80
|
"@types/eslint": "^8.56.10",
|