@data_wise/hyper-markdown 1.5.0 → 1.5.2

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/package.json CHANGED
@@ -1,84 +1,84 @@
1
- {
2
- "name": "@data_wise/hyper-markdown",
3
- "version": "1.5.0",
4
- "type": "module",
5
- "description": "A powerful Vue 3 Markdown editor with rich features including ECharts, D3.js, Mermaid, KaTeX, and dataset support",
6
- "keywords": [
7
- "vue",
8
- "markdown",
9
- "editor",
10
- "echarts",
11
- "d3",
12
- "d3js",
13
- "mermaid",
14
- "katex",
15
- "datasets"
16
- ],
17
- "author": "data_wise",
18
- "license": "MIT",
19
- "repository": {
20
- "type": "git",
21
- "url": "https://github.com/socialman/HyperMarkdown.git"
22
- },
23
- "homepage": "https://github.com/socialman/HyperMarkdown#readme",
24
- "bugs": {
25
- "url": "https://github.com/socialman/HyperMarkdown/issues"
26
- },
27
- "files": [
28
- "dist",
29
- "types",
30
- "README.md"
31
- ],
32
- "types": "./types/index.d.ts",
33
- "main": "./dist/hyper-markdown.umd.js",
34
- "module": "./dist/hyper-markdown.es.js",
35
- "exports": {
36
- ".": {
37
- "import": "./dist/hyper-markdown.es.js",
38
- "require": "./dist/hyper-markdown.umd.js"
39
- }
40
- },
41
- "scripts": {
42
- "dev": "vite",
43
- "build": "vite build",
44
- "preview": "vite preview",
45
- "build:lib": "vite build --mode lib"
46
- },
47
- "dependencies": {
48
- "@codemirror/commands": "^6.10.0",
49
- "@codemirror/highlight": "^0.19.8",
50
- "@codemirror/lang-css": "^6.3.1",
51
- "@codemirror/lang-html": "^6.4.11",
52
- "@codemirror/lang-javascript": "^6.2.4",
53
- "@codemirror/lang-json": "^6.0.2",
54
- "@codemirror/lang-markdown": "^6.5.0",
55
- "@codemirror/lang-python": "^6.2.1",
56
- "@codemirror/lang-sql": "^6.10.0",
57
- "@codemirror/language": "^6.11.3",
58
- "@codemirror/state": "^6.5.2",
59
- "@codemirror/theme-one-dark": "^6.1.3",
60
- "@codemirror/view": "^6.38.6",
61
- "d3": "^7.9.0",
62
- "docx": "^9.5.1",
63
- "echarts": "^5.4.3",
64
- "file-saver": "^2.0.5",
65
- "github-markdown-css": "^5.8.1",
66
- "highlight.js": "^11.11.1",
67
- "html2canvas": "^1.4.1",
68
- "katex": "^0.16.9",
69
- "markdown-it": "^14.0.0",
70
- "markdown-it-container": "^4.0.0",
71
- "markdown-it-echarts": "^0.1.0",
72
- "markdown-it-emoji": "^3.0.0",
73
- "markdown-it-footnote": "^4.0.0",
74
- "@vscode/markdown-it-katex": "^1.1.2",
75
- "markdown-it-mermaid": "^0.2.5",
76
- "markdown-it-task-lists": "^2.1.1",
77
- "mermaid": "^11.4.1",
78
- "vue": "^3.3.0"
79
- },
80
- "devDependencies": {
81
- "@vitejs/plugin-vue": "^4.5.0",
82
- "vite": "^5.0.0"
83
- }
84
- }
1
+ {
2
+ "name": "@data_wise/hyper-markdown",
3
+ "version": "1.5.2",
4
+ "type": "module",
5
+ "description": "A powerful Vue 3 Markdown editor with rich features including ECharts, D3.js, Mermaid, KaTeX, and dataset support",
6
+ "keywords": [
7
+ "vue",
8
+ "markdown",
9
+ "editor",
10
+ "echarts",
11
+ "d3",
12
+ "d3js",
13
+ "mermaid",
14
+ "katex",
15
+ "datasets"
16
+ ],
17
+ "author": "data_wise",
18
+ "license": "MIT",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/socialman/HyperMarkdown.git"
22
+ },
23
+ "homepage": "https://github.com/socialman/HyperMarkdown#readme",
24
+ "bugs": {
25
+ "url": "https://github.com/socialman/HyperMarkdown/issues"
26
+ },
27
+ "files": [
28
+ "dist",
29
+ "types",
30
+ "README.md"
31
+ ],
32
+ "types": "./types/index.d.ts",
33
+ "main": "./dist/hyper-markdown.umd.js",
34
+ "module": "./dist/hyper-markdown.es.js",
35
+ "exports": {
36
+ ".": {
37
+ "import": "./dist/hyper-markdown.es.js",
38
+ "require": "./dist/hyper-markdown.umd.js"
39
+ }
40
+ },
41
+ "scripts": {
42
+ "dev": "vite",
43
+ "build": "vite build --mode lib",
44
+ "preview": "vite preview",
45
+ "build:lib": "vite build --mode lib"
46
+ },
47
+ "dependencies": {
48
+ "@codemirror/commands": "^6.10.0",
49
+ "@codemirror/highlight": "^0.19.8",
50
+ "@codemirror/lang-css": "^6.3.1",
51
+ "@codemirror/lang-html": "^6.4.11",
52
+ "@codemirror/lang-javascript": "^6.2.4",
53
+ "@codemirror/lang-json": "^6.0.2",
54
+ "@codemirror/lang-markdown": "^6.5.0",
55
+ "@codemirror/lang-python": "^6.2.1",
56
+ "@codemirror/lang-sql": "^6.10.0",
57
+ "@codemirror/language": "^6.11.3",
58
+ "@codemirror/state": "^6.5.2",
59
+ "@codemirror/theme-one-dark": "^6.1.3",
60
+ "@codemirror/view": "^6.38.6",
61
+ "d3": "^7.9.0",
62
+ "docx": "^9.5.1",
63
+ "echarts": "^5.4.3",
64
+ "file-saver": "^2.0.5",
65
+ "github-markdown-css": "^5.8.1",
66
+ "highlight.js": "^11.11.1",
67
+ "html2canvas": "^1.4.1",
68
+ "katex": "^0.16.9",
69
+ "markdown-it": "^14.0.0",
70
+ "markdown-it-container": "^4.0.0",
71
+ "markdown-it-echarts": "^0.1.0",
72
+ "markdown-it-emoji": "^3.0.0",
73
+ "markdown-it-footnote": "^4.0.0",
74
+ "@vscode/markdown-it-katex": "^1.1.2",
75
+ "markdown-it-mermaid": "^0.2.5",
76
+ "markdown-it-task-lists": "^2.1.1",
77
+ "mermaid": "^11.4.1",
78
+ "vue": "^3.3.0"
79
+ },
80
+ "devDependencies": {
81
+ "@vitejs/plugin-vue": "^4.5.0",
82
+ "vite": "^5.0.0"
83
+ }
84
+ }
package/types/index.d.ts CHANGED
@@ -1,59 +1,59 @@
1
- // TypeScript 类型声明文件
2
- declare module '@datawise/hyper-markdown' {
3
- import { Component } from 'vue'
4
-
5
- // 主题配置类型
6
- interface ThemeColors {
7
- [key: string]: string
8
- }
9
-
10
- interface Theme {
11
- light?: ThemeColors
12
- dark?: ThemeColors
13
- }
14
-
15
- // MarkdownEditor 组件类型
16
- interface MarkdownEditorProps {
17
- content?: string
18
- editable?: boolean
19
- defaultShowEditor?: boolean
20
- datasource?: Record<string, any>
21
- dark?: 'auto' | boolean
22
- theme?: Theme
23
- }
24
-
25
- // 导出结果类型
26
- interface ExportResult {
27
- success: boolean
28
- message: string
29
- }
30
-
31
- // MarkdownEditor 组件实例方法
32
- interface MarkdownEditorMethods {
33
- exportToWord(filename?: string): Promise<ExportResult>
34
- getErrors(): Array<any>
35
- }
36
-
37
- // 导出主组件
38
- export const MarkdownEditor: Component<MarkdownEditorProps> & MarkdownEditorMethods
39
-
40
- // 导出工具函数
41
- export function createMarkdownItInstance(options?: any): any
42
-
43
- // 导出插件
44
- export const markdownItDataset: any
45
- export const markdownItEcharts: any
46
- export const markdownItMermaid: any
47
- export const markdownItEditable: any
48
- export const markdownItContainer: any
49
-
50
- // 默认导出
51
- export default MarkdownEditor
52
- }
53
-
54
- // 全局声明
55
- declare global {
56
- interface Window {
57
- HyperMarkdown: any
58
- }
1
+ // TypeScript 类型声明文件
2
+ declare module '@datawise/hyper-markdown' {
3
+ import { Component } from 'vue'
4
+
5
+ // 主题配置类型
6
+ interface ThemeColors {
7
+ [key: string]: string
8
+ }
9
+
10
+ interface Theme {
11
+ light?: ThemeColors
12
+ dark?: ThemeColors
13
+ }
14
+
15
+ // MarkdownEditor 组件类型
16
+ interface MarkdownEditorProps {
17
+ content?: string
18
+ editable?: boolean
19
+ defaultShowEditor?: boolean
20
+ datasource?: Record<string, any>
21
+ dark?: 'auto' | boolean
22
+ theme?: Theme
23
+ }
24
+
25
+ // 导出结果类型
26
+ interface ExportResult {
27
+ success: boolean
28
+ message: string
29
+ }
30
+
31
+ // MarkdownEditor 组件实例方法
32
+ interface MarkdownEditorMethods {
33
+ exportToWord(filename?: string): Promise<ExportResult>
34
+ getErrors(): Array<any>
35
+ }
36
+
37
+ // 导出主组件
38
+ export const MarkdownEditor: Component<MarkdownEditorProps> & MarkdownEditorMethods
39
+
40
+ // 导出工具函数
41
+ export function createMarkdownItInstance(options?: any): any
42
+
43
+ // 导出插件
44
+ export const markdownItDataset: any
45
+ export const markdownItEcharts: any
46
+ export const markdownItMermaid: any
47
+ export const markdownItEditable: any
48
+ export const markdownItContainer: any
49
+
50
+ // 默认导出
51
+ export default MarkdownEditor
52
+ }
53
+
54
+ // 全局声明
55
+ declare global {
56
+ interface Window {
57
+ HyperMarkdown: any
58
+ }
59
59
  }