@bhsd/codemirror-mediawiki 3.2.0 → 3.4.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": "3.2.0",
2
+ "version": "3.4.0",
3
3
  "lang": "en",
4
4
  "title": "CodeMirror Addons",
5
5
  "label": "Please select the addons you wish to load",
@@ -29,8 +29,10 @@
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-theme": "Theme",
32
33
  "addon-useMonaco": "Use Monaco Editor for new editors",
33
34
  "addon-wikiEditor": "Load WikiEditor toolbar",
35
+ "theme-auto": "Auto",
34
36
  "no-wikiEditor": "WikiEditor is not available.",
35
37
  "save-success": "Settings saved on [[special:mypage/codemirror-mediawiki.json|user subpage]].",
36
38
  "save-summary": "Update settings",
package/i18n/zh-hans.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.2.0",
2
+ "version": "3.4.0",
3
3
  "lang": "zh-hans",
4
4
  "title": "CodeMirror插件",
5
5
  "label": "请选择您希望加载的插件",
@@ -29,8 +29,10 @@
29
29
  "addon-save": "将设置保存至[[special:mypage/codemirror-mediawiki.json|用户子页面]]",
30
30
  "addon-scrollPastEnd": "允许向下滚动超过文档末尾",
31
31
  "addon-signatureHelp": "显示解析器函数的签名",
32
+ "addon-theme": "主题",
32
33
  "addon-useMonaco": "新增的编辑区使用Monaco编辑器",
33
34
  "addon-wikiEditor": "加载WikiEditor工具栏",
35
+ "theme-auto": "自动",
34
36
  "no-wikiEditor": "未找到WikiEditor扩展。",
35
37
  "save-success": "设置保存至[[special:mypage/codemirror-mediawiki.json|用户子页面]]。",
36
38
  "save-summary": "更新设置",
package/i18n/zh-hant.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.2.0",
2
+ "version": "3.4.0",
3
3
  "lang": "zh-hant",
4
4
  "title": "CodeMirror外掛程式",
5
5
  "label": "請選擇您希望載入的外掛程式",
@@ -29,8 +29,10 @@
29
29
  "addon-save": "將設定儲存至[[special:mypage/codemirror-mediawiki.json|使用者子頁面]]",
30
30
  "addon-scrollPastEnd": "允許向下滾動超過文件末尾",
31
31
  "addon-signatureHelp": "顯示解析器函數的簽名",
32
+ "addon-theme": "主題",
32
33
  "addon-useMonaco": "新增的編輯區使用Monaco編輯器",
33
34
  "addon-wikiEditor": "載入WikiEditor工具列",
35
+ "theme-auto": "自動",
34
36
  "no-wikiEditor": "未找到WikiEditor擴展。",
35
37
  "save-success": "設定儲存至[[special:mypage/codemirror-mediawiki.json|使用者子頁面]]。",
36
38
  "save-summary": "更新設定",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/codemirror-mediawiki",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
5
5
  "keywords": [
6
6
  "mediawiki",
@@ -15,15 +15,14 @@
15
15
  "files": [
16
16
  "/i18n/",
17
17
  "/dist/*.js",
18
- "/dist/*.d.ts",
19
- "/mediawiki.css"
18
+ "!/dist/demo.min.js",
19
+ "/dist/*.d.ts"
20
20
  ],
21
21
  "browser": "dist/main.min.js",
22
22
  "main": "./dist/index.js",
23
23
  "module": "./dist/index.js",
24
24
  "types": "./dist/index.d.ts",
25
25
  "type": "module",
26
- "style": "mediawiki.css",
27
26
  "sideEffects": false,
28
27
  "repository": {
29
28
  "type": "git",
@@ -31,8 +30,8 @@
31
30
  },
32
31
  "scripts": {
33
32
  "prepublishOnly": "npm run build",
34
- "bundle:core": "node build.mjs",
35
- "bundle:wiki": "MODE=wiki node build.mjs",
33
+ "bundle:core": "node build.cjs",
34
+ "bundle:wiki": "MODE=wiki node build.cjs",
36
35
  "bundle:unused": "esbuild ./bundle/*.ts --charset=utf8 --bundle --format=esm --outdir=build",
37
36
  "build:css": "esbuild ./css/index.css --bundle --minify --outfile=mediawiki.css",
38
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.{js,d.ts}",
@@ -55,7 +54,6 @@
55
54
  "@bhsd/browser": "^0.0.1",
56
55
  "@bhsd/codemirror-css-color-picker": "^6.3.0",
57
56
  "@bhsd/common": "^1.0.1",
58
- "@bhsd/test-util": "^0.1.0",
59
57
  "@codemirror/autocomplete": "^6.18.6",
60
58
  "@codemirror/commands": "^6.8.1",
61
59
  "@codemirror/language": "^6.11.2",
@@ -72,12 +70,14 @@
72
70
  "@lezer/common": "^1.2.3",
73
71
  "@lezer/highlight": "^1.2.1",
74
72
  "@lezer/html": "^1.3.10",
73
+ "cm6-theme-nord": "^0.2.0",
75
74
  "wikiparser-node": "^1.25.0"
76
75
  },
77
76
  "devDependencies": {
78
77
  "@bhsd/cm-util": "^0.0.1",
79
78
  "@bhsd/code-standard": "^1.0.1",
80
79
  "@bhsd/stylelint-util": "^0.1.0",
80
+ "@bhsd/test-util": "^0.1.0",
81
81
  "@stylistic/eslint-plugin": "^3.1.0",
82
82
  "@stylistic/stylelint-plugin": "^4.0.0",
83
83
  "@types/eslint": "^8.56.10",