md-editor-v3 6.4.2 → 6.5.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/lib/cjs/chunks/config.cjs +1 -1
- package/lib/cjs/chunks/index2.cjs +1 -1
- package/lib/cjs/chunks/index3.cjs +27 -27
- package/lib/es/chunks/config.mjs +2 -1
- package/lib/es/chunks/index2.mjs +1 -1
- package/lib/es/chunks/index3.mjs +380 -377
- package/lib/types/index.d.ts +10 -0
- package/package.json +4 -6
package/lib/types/index.d.ts
CHANGED
|
@@ -1027,6 +1027,16 @@ interface GlobalConfig {
|
|
|
1027
1027
|
echarts?: {
|
|
1028
1028
|
instance?: any;
|
|
1029
1029
|
js?: string;
|
|
1030
|
+
/**
|
|
1031
|
+
* 解析echarts代码块内容。
|
|
1032
|
+
*
|
|
1033
|
+
* 默认实现会使用new Function以兼容官方配置中的函数写法;当内容来源不可信时,
|
|
1034
|
+
* 业务侧应通过该方法替换为更严格的解析策略。
|
|
1035
|
+
*/
|
|
1036
|
+
parseOption?: (code: string, options: {
|
|
1037
|
+
editorId: string;
|
|
1038
|
+
element: HTMLElement;
|
|
1039
|
+
}) => any;
|
|
1030
1040
|
};
|
|
1031
1041
|
};
|
|
1032
1042
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "md-editor-v3",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"**/*.css"
|
|
39
39
|
],
|
|
40
40
|
"scripts": {
|
|
41
|
-
"dev": "
|
|
42
|
-
"build": "
|
|
41
|
+
"dev": "node ./scripts/dev.ts",
|
|
42
|
+
"build": "node ./scripts/build.ts",
|
|
43
43
|
"lint": "eslint --ext .ts,.tsx,.vue --fix packages",
|
|
44
44
|
"lint-staged": "lint-staged",
|
|
45
45
|
"prepare": "husky"
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"@codemirror/state": "^6.5.2",
|
|
55
55
|
"@codemirror/view": "^6.38.2",
|
|
56
56
|
"@lezer/highlight": "^1.2.1",
|
|
57
|
+
"@lucide/vue": "^1.16.0",
|
|
57
58
|
"@types/markdown-it": "^14.0.1",
|
|
58
59
|
"@vavt/copy2clipboard": "^1.0.1",
|
|
59
60
|
"@vavt/util": "^2.1.2",
|
|
60
61
|
"codemirror": "^6.0.2",
|
|
61
|
-
"lucide-vue-next": "^0.543.0",
|
|
62
62
|
"markdown-it": "^14.0.0",
|
|
63
63
|
"markdown-it-image-figures": "^2.1.1",
|
|
64
64
|
"markdown-it-sub": "^2.0.0",
|
|
@@ -80,7 +80,6 @@
|
|
|
80
80
|
"@vitejs/plugin-vue-jsx": "^5.1.1",
|
|
81
81
|
"@vue/eslint-config-prettier": "^10.0.0",
|
|
82
82
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
83
|
-
"axios": "^1.11.0",
|
|
84
83
|
"cropperjs": "^1.6.2",
|
|
85
84
|
"echarts": "^6.0.0",
|
|
86
85
|
"eslint": "^9.35.0",
|
|
@@ -99,7 +98,6 @@
|
|
|
99
98
|
"prettier": "^3.6.2",
|
|
100
99
|
"rollup-plugin-dts": "^6.3.0",
|
|
101
100
|
"screenfull": "^6.0.2",
|
|
102
|
-
"tsx": "^4.20.5",
|
|
103
101
|
"typescript": "^5.9.2",
|
|
104
102
|
"typescript-eslint": "^8.43.0",
|
|
105
103
|
"vite": "^7.1.5",
|