@halo-dev/richtext-editor 0.0.0-alpha.3 → 0.0.0-alpha.31
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/components/Editor.vue.d.ts +2 -0
- package/dist/components/EditorBubbleMenu.vue.d.ts +2 -0
- package/dist/components/EditorHeader.vue.d.ts +2 -0
- package/dist/index.d.ts +5 -2
- package/dist/rich-text-editor.es.js +41386 -70508
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +29127 -58249
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +1634 -1960
- package/package.json +69 -47
- package/dist/extensions/code-block/code-block.d.ts +0 -2
- package/dist/extensions/code-block/index.d.ts +0 -2
- package/dist/extensions/code-block/lowlight.d.ts +0 -2
- package/dist/extensions/commands-menu/commands.d.ts +0 -3
- package/dist/extensions/commands-menu/index.d.ts +0 -2
- package/dist/extensions/commands-menu/suggestion.d.ts +0 -23
- package/dist/extensions/katex/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@halo-dev/richtext-editor",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.31",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
"unpkg": "./dist/rich-text-editor.iife.js",
|
|
11
11
|
"jsdelivr": "./dist/rich-text-editor.iife.js",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite build --watch --mode=development",
|
|
15
|
+
"build": "vite build",
|
|
16
|
+
"test:unit": "vitest --environment jsdom --run",
|
|
17
|
+
"test:unit:watch": "vitest --environment jsdom --watch",
|
|
18
|
+
"test:unit:ui": "vitest --environment jsdom --watch --ui",
|
|
19
|
+
"test:unit:coverage": "vitest run --environment jsdom --coverage",
|
|
20
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
|
21
|
+
"lint": "eslint ./src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
|
|
22
|
+
"prettier": "prettier --write './src/**/*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}'",
|
|
23
|
+
"release": "release-it"
|
|
24
|
+
},
|
|
13
25
|
"keywords": [],
|
|
14
26
|
"author": "",
|
|
15
27
|
"license": "ISC",
|
|
@@ -17,16 +29,16 @@
|
|
|
17
29
|
"vue": "^3.2.37"
|
|
18
30
|
},
|
|
19
31
|
"devDependencies": {
|
|
20
|
-
"@iconify/json": "^2.
|
|
21
|
-
"@
|
|
22
|
-
"@vue/compiler-sfc": "^3.
|
|
23
|
-
"autoprefixer": "^10.4.
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"sass": "^1.
|
|
27
|
-
"tailwindcss": "^3.
|
|
28
|
-
"unplugin-icons": "^0.
|
|
29
|
-
"vite-plugin-dts": "^
|
|
32
|
+
"@iconify/json": "^2.2.117",
|
|
33
|
+
"@intlify/unplugin-vue-i18n": "^1.2.0",
|
|
34
|
+
"@vue/compiler-sfc": "^3.3.4",
|
|
35
|
+
"autoprefixer": "^10.4.15",
|
|
36
|
+
"postcss": "^8.4.30",
|
|
37
|
+
"release-it": "^16.1.5",
|
|
38
|
+
"sass": "^1.67.0",
|
|
39
|
+
"tailwindcss": "^3.3.3",
|
|
40
|
+
"unplugin-icons": "^0.17.0",
|
|
41
|
+
"vite-plugin-dts": "^3.5.3"
|
|
30
42
|
},
|
|
31
43
|
"exports": {
|
|
32
44
|
".": {
|
|
@@ -36,40 +48,50 @@
|
|
|
36
48
|
"./dist/style.css": "./dist/style.css"
|
|
37
49
|
},
|
|
38
50
|
"dependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"@tiptap/
|
|
41
|
-
"@tiptap/extension-
|
|
42
|
-
"@tiptap/extension-
|
|
43
|
-
"@tiptap/extension-
|
|
44
|
-
"@tiptap/extension-
|
|
45
|
-
"@tiptap/extension-
|
|
46
|
-
"@tiptap/extension-
|
|
47
|
-
"@tiptap/extension-
|
|
48
|
-
"@tiptap/extension-
|
|
49
|
-
"@tiptap/extension-
|
|
50
|
-
"@tiptap/extension-
|
|
51
|
-
"@tiptap/extension-
|
|
52
|
-
"@tiptap/extension-
|
|
53
|
-
"@tiptap/extension-
|
|
54
|
-
"@tiptap/
|
|
55
|
-
"@tiptap/
|
|
56
|
-
"@tiptap/
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
51
|
+
"@ckpack/vue-color": "^1.5.0",
|
|
52
|
+
"@tiptap/core": "^2.1.10",
|
|
53
|
+
"@tiptap/extension-blockquote": "^2.1.10",
|
|
54
|
+
"@tiptap/extension-bold": "^2.1.10",
|
|
55
|
+
"@tiptap/extension-bullet-list": "^2.1.10",
|
|
56
|
+
"@tiptap/extension-code": "^2.1.10",
|
|
57
|
+
"@tiptap/extension-code-block": "^2.1.10",
|
|
58
|
+
"@tiptap/extension-code-block-lowlight": "^2.1.10",
|
|
59
|
+
"@tiptap/extension-color": "^2.1.10",
|
|
60
|
+
"@tiptap/extension-document": "^2.1.10",
|
|
61
|
+
"@tiptap/extension-dropcursor": "^2.1.10",
|
|
62
|
+
"@tiptap/extension-gapcursor": "^2.1.10",
|
|
63
|
+
"@tiptap/extension-hard-break": "^2.1.10",
|
|
64
|
+
"@tiptap/extension-heading": "^2.1.10",
|
|
65
|
+
"@tiptap/extension-highlight": "^2.1.10",
|
|
66
|
+
"@tiptap/extension-history": "^2.1.10",
|
|
67
|
+
"@tiptap/extension-horizontal-rule": "^2.1.10",
|
|
68
|
+
"@tiptap/extension-image": "^2.1.10",
|
|
69
|
+
"@tiptap/extension-italic": "^2.1.10",
|
|
70
|
+
"@tiptap/extension-link": "^2.1.10",
|
|
71
|
+
"@tiptap/extension-list-item": "^2.1.10",
|
|
72
|
+
"@tiptap/extension-ordered-list": "^2.1.10",
|
|
73
|
+
"@tiptap/extension-paragraph": "^2.1.10",
|
|
74
|
+
"@tiptap/extension-placeholder": "^2.1.10",
|
|
75
|
+
"@tiptap/extension-strike": "^2.1.10",
|
|
76
|
+
"@tiptap/extension-subscript": "^2.1.10",
|
|
77
|
+
"@tiptap/extension-superscript": "^2.1.10",
|
|
78
|
+
"@tiptap/extension-table": "^2.1.10",
|
|
79
|
+
"@tiptap/extension-table-row": "^2.1.10",
|
|
80
|
+
"@tiptap/extension-task-item": "^2.1.10",
|
|
81
|
+
"@tiptap/extension-task-list": "^2.1.10",
|
|
82
|
+
"@tiptap/extension-text": "^2.1.10",
|
|
83
|
+
"@tiptap/extension-text-align": "^2.1.10",
|
|
84
|
+
"@tiptap/extension-text-style": "^2.1.10",
|
|
85
|
+
"@tiptap/extension-underline": "^2.1.10",
|
|
86
|
+
"@tiptap/pm": "^2.1.10",
|
|
87
|
+
"@tiptap/suggestion": "^2.1.10",
|
|
88
|
+
"@tiptap/vue-3": "^2.1.10",
|
|
89
|
+
"floating-vue": "2.0.0-beta.24",
|
|
90
|
+
"github-markdown-css": "^5.2.0",
|
|
91
|
+
"highlight.js": "11.8.0",
|
|
92
|
+
"lowlight": "^3.0.0",
|
|
93
|
+
"scroll-into-view-if-needed": "^3.1.0",
|
|
94
|
+
"tippy.js": "^6.3.7",
|
|
95
|
+
"vue-i18n": "9.4.1"
|
|
74
96
|
}
|
|
75
|
-
}
|
|
97
|
+
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Editor, Range } from "@tiptap/vue-3";
|
|
2
|
-
import type { Component } from "vue";
|
|
3
|
-
export interface Item {
|
|
4
|
-
icon: Component;
|
|
5
|
-
title: string;
|
|
6
|
-
keywords: string[];
|
|
7
|
-
command: ({ editor, range }: {
|
|
8
|
-
editor: Editor;
|
|
9
|
-
range: Range;
|
|
10
|
-
}) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: {
|
|
13
|
-
items: ({ query }: {
|
|
14
|
-
query: string;
|
|
15
|
-
}) => Item[];
|
|
16
|
-
render: () => {
|
|
17
|
-
onStart: (props: Record<string, any>) => void;
|
|
18
|
-
onUpdate(props: Record<string, any>): void;
|
|
19
|
-
onKeyDown(props: Record<string, any>): any;
|
|
20
|
-
onExit(): void;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|