@data_wise/hyper-markdown 1.1.1 → 1.1.3
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/LICENSE +200 -200
- package/README.md +470 -430
- package/dist/hyper-markdown.css +1 -1
- package/dist/hyper-markdown.es.js +18971 -18897
- package/dist/hyper-markdown.umd.js +364 -348
- package/package.json +70 -70
- package/types/index.d.ts +34 -33
package/package.json
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@data_wise/hyper-markdown",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "A powerful Vue 3 Markdown editor with rich features including ECharts, Mermaid, KaTeX, and dataset support",
|
|
6
|
-
"keywords": ["vue", "markdown", "editor", "echarts", "mermaid", "katex", "datasets"],
|
|
7
|
-
"author": "data_wise",
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/socialman/HyperMarkdown.git"
|
|
12
|
-
},
|
|
13
|
-
"homepage": "https://github.com/socialman/HyperMarkdown#readme",
|
|
14
|
-
"bugs": {
|
|
15
|
-
"url": "https://github.com/socialman/HyperMarkdown/issues"
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist",
|
|
19
|
-
"types",
|
|
20
|
-
"README.md"
|
|
21
|
-
],
|
|
22
|
-
"types": "./types/index.d.ts",
|
|
23
|
-
"main": "./dist/hyper-markdown.umd.js",
|
|
24
|
-
"module": "./dist/hyper-markdown.es.js",
|
|
25
|
-
"exports": {
|
|
26
|
-
".": {
|
|
27
|
-
"import": "./dist/hyper-markdown.es.js",
|
|
28
|
-
"require": "./dist/hyper-markdown.umd.js"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"dev": "vite",
|
|
33
|
-
"build": "vite build",
|
|
34
|
-
"preview": "vite preview",
|
|
35
|
-
"build:lib": "vite build --mode lib"
|
|
36
|
-
},
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"@codemirror/commands": "^6.10.0",
|
|
39
|
-
"@codemirror/highlight": "^0.19.8",
|
|
40
|
-
"@codemirror/lang-css": "^6.3.1",
|
|
41
|
-
"@codemirror/lang-html": "^6.4.11",
|
|
42
|
-
"@codemirror/lang-javascript": "^6.2.4",
|
|
43
|
-
"@codemirror/lang-json": "^6.0.2",
|
|
44
|
-
"@codemirror/lang-markdown": "^6.5.0",
|
|
45
|
-
"@codemirror/lang-python": "^6.2.1",
|
|
46
|
-
"@codemirror/lang-sql": "^6.10.0",
|
|
47
|
-
"@codemirror/language": "^6.11.3",
|
|
48
|
-
"@codemirror/state": "^6.5.2",
|
|
49
|
-
"@codemirror/theme-one-dark": "^6.1.3",
|
|
50
|
-
"@codemirror/view": "^6.38.6",
|
|
51
|
-
"echarts": "^5.4.3",
|
|
52
|
-
"github-markdown-css": "^5.8.1",
|
|
53
|
-
"highlight.js": "^11.11.1",
|
|
54
|
-
"katex": "^0.16.9",
|
|
55
|
-
"markdown-it": "^14.0.0",
|
|
56
|
-
"markdown-it-container": "^4.0.0",
|
|
57
|
-
"markdown-it-echarts": "^0.1.0",
|
|
58
|
-
"markdown-it-emoji": "^3.0.0",
|
|
59
|
-
"markdown-it-footnote": "^4.0.0",
|
|
60
|
-
"markdown-it-katex": "^2.0.3",
|
|
61
|
-
"markdown-it-mermaid": "^0.2.5",
|
|
62
|
-
"markdown-it-task-lists": "^2.1.1",
|
|
63
|
-
"mermaid": "^11.4.1",
|
|
64
|
-
"vue": "^3.3.0"
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@vitejs/plugin-vue": "^4.5.0",
|
|
68
|
-
"vite": "^5.0.0"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@data_wise/hyper-markdown",
|
|
3
|
+
"version": "1.1.3",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "A powerful Vue 3 Markdown editor with rich features including ECharts, Mermaid, KaTeX, and dataset support",
|
|
6
|
+
"keywords": ["vue", "markdown", "editor", "echarts", "mermaid", "katex", "datasets"],
|
|
7
|
+
"author": "data_wise",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/socialman/HyperMarkdown.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/socialman/HyperMarkdown#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/socialman/HyperMarkdown/issues"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"types",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"types": "./types/index.d.ts",
|
|
23
|
+
"main": "./dist/hyper-markdown.umd.js",
|
|
24
|
+
"module": "./dist/hyper-markdown.es.js",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./dist/hyper-markdown.es.js",
|
|
28
|
+
"require": "./dist/hyper-markdown.umd.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "vite",
|
|
33
|
+
"build": "vite build",
|
|
34
|
+
"preview": "vite preview",
|
|
35
|
+
"build:lib": "vite build --mode lib"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@codemirror/commands": "^6.10.0",
|
|
39
|
+
"@codemirror/highlight": "^0.19.8",
|
|
40
|
+
"@codemirror/lang-css": "^6.3.1",
|
|
41
|
+
"@codemirror/lang-html": "^6.4.11",
|
|
42
|
+
"@codemirror/lang-javascript": "^6.2.4",
|
|
43
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
44
|
+
"@codemirror/lang-markdown": "^6.5.0",
|
|
45
|
+
"@codemirror/lang-python": "^6.2.1",
|
|
46
|
+
"@codemirror/lang-sql": "^6.10.0",
|
|
47
|
+
"@codemirror/language": "^6.11.3",
|
|
48
|
+
"@codemirror/state": "^6.5.2",
|
|
49
|
+
"@codemirror/theme-one-dark": "^6.1.3",
|
|
50
|
+
"@codemirror/view": "^6.38.6",
|
|
51
|
+
"echarts": "^5.4.3",
|
|
52
|
+
"github-markdown-css": "^5.8.1",
|
|
53
|
+
"highlight.js": "^11.11.1",
|
|
54
|
+
"katex": "^0.16.9",
|
|
55
|
+
"markdown-it": "^14.0.0",
|
|
56
|
+
"markdown-it-container": "^4.0.0",
|
|
57
|
+
"markdown-it-echarts": "^0.1.0",
|
|
58
|
+
"markdown-it-emoji": "^3.0.0",
|
|
59
|
+
"markdown-it-footnote": "^4.0.0",
|
|
60
|
+
"markdown-it-katex": "^2.0.3",
|
|
61
|
+
"markdown-it-mermaid": "^0.2.5",
|
|
62
|
+
"markdown-it-task-lists": "^2.1.1",
|
|
63
|
+
"mermaid": "^11.4.1",
|
|
64
|
+
"vue": "^3.3.0"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@vitejs/plugin-vue": "^4.5.0",
|
|
68
|
+
"vite": "^5.0.0"
|
|
69
|
+
}
|
|
70
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
// TypeScript 类型声明文件
|
|
2
|
-
declare module '@datawise/hyper-markdown' {
|
|
3
|
-
import { Component } from 'vue'
|
|
4
|
-
|
|
5
|
-
// MarkdownEditor 组件类型
|
|
6
|
-
interface MarkdownEditorProps {
|
|
7
|
-
content?: string
|
|
8
|
-
editable?: boolean
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
// TypeScript 类型声明文件
|
|
2
|
+
declare module '@datawise/hyper-markdown' {
|
|
3
|
+
import { Component } from 'vue'
|
|
4
|
+
|
|
5
|
+
// MarkdownEditor 组件类型
|
|
6
|
+
interface MarkdownEditorProps {
|
|
7
|
+
content?: string
|
|
8
|
+
editable?: boolean
|
|
9
|
+
defaultShowEditor?: boolean
|
|
10
|
+
datasource?: Record<string, any>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// 导出主组件
|
|
14
|
+
export const MarkdownEditor: Component<MarkdownEditorProps>
|
|
15
|
+
|
|
16
|
+
// 导出工具函数
|
|
17
|
+
export function createMarkdownItInstance(options?: any): any
|
|
18
|
+
|
|
19
|
+
// 导出插件
|
|
20
|
+
export const markdownItDataset: any
|
|
21
|
+
export const markdownItEcharts: any
|
|
22
|
+
export const markdownItMermaid: any
|
|
23
|
+
export const markdownItEditable: any
|
|
24
|
+
export const markdownItContainer: any
|
|
25
|
+
|
|
26
|
+
// 默认导出
|
|
27
|
+
export default MarkdownEditor
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// 全局声明
|
|
31
|
+
declare global {
|
|
32
|
+
interface Window {
|
|
33
|
+
HyperMarkdown: any
|
|
34
|
+
}
|
|
34
35
|
}
|