@bhsd/codemirror-mediawiki 2.17.2 → 2.17.4
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/dist/bidi.d.ts +1 -2
- package/dist/codemirror.d.ts +0 -2
- package/dist/main.min.js +11 -11
- package/dist/mw.min.js +16 -16
- package/dist/ref.d.ts +2 -1
- package/dist/token.d.ts +1 -1
- package/dist/wiki.min.js +53 -0
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/mediawiki.css +1 -0
- package/package.json +5 -5
- package/dist/util.d.ts +0 -11
package/i18n/en.json
CHANGED
package/i18n/zh-hans.json
CHANGED
package/i18n/zh-hant.json
CHANGED
package/mediawiki.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/codemirror-mediawiki",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.4",
|
|
4
4
|
"description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mediawiki",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build:core": "esbuild ./src/codemirror.ts --bundle --minify --target=es2018 --format=esm --sourcemap --outfile=dist/main.min.js && tsc --emitDeclarationOnly",
|
|
31
31
|
"build:mw": "esbuild ./mw/base.ts --bundle --minify --target=es2018 --format=esm --sourcemap --outfile=dist/mw.min.js",
|
|
32
|
-
"build:wiki": "esbuild ./mw/base.ts --bundle --minify --target=es2018 --format=iife --sourcemap --outfile=dist/
|
|
32
|
+
"build:wiki": "esbuild ./mw/base.ts --bundle --minify --target=es2018 --format=iife --sourcemap --outfile=dist/wiki.min.js",
|
|
33
33
|
"build:gh-page": "bash build.sh",
|
|
34
34
|
"build:test": "tsc --project test/tsconfig.json && node test/dist/test/test.js",
|
|
35
|
-
"build": "npm run build:core && npm run build:mw",
|
|
35
|
+
"build": "npm run build:core && npm run build:mw && npm run build:wiki",
|
|
36
36
|
"diff": "git diff --ignore-all-space --color-moved",
|
|
37
37
|
"diff:stat": "f() { git diff --stat --ignore-all-space --color=always $1 $2 -- . ':!dist/' ':!.github/'; }; f",
|
|
38
38
|
"lint:ts": "tsc --noEmit && tsc --project mw/tsconfig.json --noEmit && tsc --project test/tsconfig.json --noEmit && eslint --cache .",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"wikiparser-node": "^1.10.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@bhsd/common": "^0.
|
|
59
|
+
"@bhsd/common": "^0.1.0",
|
|
60
60
|
"@codemirror/autocomplete": "^6.12.0",
|
|
61
61
|
"@codemirror/commands": "^6.3.3",
|
|
62
62
|
"@codemirror/lang-css": "^6.2.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@lezer/highlight": "^1.2.0",
|
|
68
68
|
"@types/jquery": "^3.5.29",
|
|
69
69
|
"@types/oojs-ui": "^0.49.0",
|
|
70
|
-
"monaco-editor": "^0.
|
|
70
|
+
"monaco-editor": "^0.51.0",
|
|
71
71
|
"types-mediawiki": "^1.8.0"
|
|
72
72
|
}
|
|
73
73
|
}
|
package/dist/util.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const CDN = "https://testingcf.jsdelivr.net";
|
|
2
|
-
declare global {
|
|
3
|
-
const define: unknown;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* 使用传统方法加载脚本
|
|
7
|
-
* @param src 脚本地址
|
|
8
|
-
* @param globalConst 脚本全局变量名
|
|
9
|
-
* @param amd 是否兼容 AMD
|
|
10
|
-
*/
|
|
11
|
-
export declare const loadScript: (src: string, globalConst: string, amd?: boolean) => Promise<void>;
|