@halo-dev/richtext-editor 0.0.0-alpha.3 → 0.0.0-alpha.6
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/rich-text-editor.es.js +20535 -20341
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +20533 -20339
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +2234 -2221
- package/package.json +36 -19
- 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/dist/index.d.ts +0 -5
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.6",
|
|
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",
|
|
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.1.
|
|
32
|
+
"@iconify/json": "^2.1.96",
|
|
21
33
|
"@types/katex": "^0.14.0",
|
|
22
34
|
"@vue/compiler-sfc": "^3.2.37",
|
|
23
35
|
"autoprefixer": "^10.4.8",
|
|
24
|
-
"bumpp": "^8.2.1",
|
|
25
36
|
"postcss": "^8.4.16",
|
|
26
|
-
"sass": "^1.54.
|
|
37
|
+
"sass": "^1.54.5",
|
|
27
38
|
"tailwindcss": "^3.1.8",
|
|
28
39
|
"unplugin-icons": "^0.14.8",
|
|
29
|
-
"vite-plugin-dts": "^1.4.1"
|
|
40
|
+
"vite-plugin-dts": "^1.4.1",
|
|
41
|
+
"release-it": "^15.4.1"
|
|
30
42
|
},
|
|
31
43
|
"exports": {
|
|
32
44
|
".": {
|
|
@@ -37,10 +49,27 @@
|
|
|
37
49
|
},
|
|
38
50
|
"dependencies": {
|
|
39
51
|
"@tiptap/core": "2.0.0-beta.182",
|
|
52
|
+
"@tiptap/extension-blockquote": "^2.0.0-beta.29",
|
|
53
|
+
"@tiptap/extension-bold": "^2.0.0-beta.28",
|
|
54
|
+
"@tiptap/extension-bullet-list": "^2.0.0-beta.29",
|
|
55
|
+
"@tiptap/extension-code": "^2.0.0-beta.28",
|
|
56
|
+
"@tiptap/extension-code-block": "^2.0.0-beta.42",
|
|
40
57
|
"@tiptap/extension-code-block-lowlight": "2.0.0-beta.73",
|
|
58
|
+
"@tiptap/extension-document": "^2.0.0-beta.17",
|
|
59
|
+
"@tiptap/extension-dropcursor": "^2.0.0-beta.29",
|
|
60
|
+
"@tiptap/extension-gapcursor": "^2.0.0-beta.39",
|
|
61
|
+
"@tiptap/extension-hard-break": "^2.0.0-beta.33",
|
|
62
|
+
"@tiptap/extension-heading": "^2.0.0-beta.29",
|
|
63
|
+
"@tiptap/extension-history": "^2.0.0-beta.26",
|
|
64
|
+
"@tiptap/extension-horizontal-rule": "^2.0.0-beta.36",
|
|
41
65
|
"@tiptap/extension-image": "2.0.0-beta.30",
|
|
66
|
+
"@tiptap/extension-italic": "^2.0.0-beta.28",
|
|
42
67
|
"@tiptap/extension-link": "2.0.0-beta.43",
|
|
68
|
+
"@tiptap/extension-list-item": "^2.0.0-beta.23",
|
|
69
|
+
"@tiptap/extension-ordered-list": "^2.0.0-beta.30",
|
|
70
|
+
"@tiptap/extension-paragraph": "^2.0.0-beta.26",
|
|
43
71
|
"@tiptap/extension-placeholder": "2.0.0-beta.53",
|
|
72
|
+
"@tiptap/extension-strike": "^2.0.0-beta.29",
|
|
44
73
|
"@tiptap/extension-subscript": "2.0.0-beta.13",
|
|
45
74
|
"@tiptap/extension-superscript": "2.0.0-beta.13",
|
|
46
75
|
"@tiptap/extension-table": "2.0.0-beta.54",
|
|
@@ -49,9 +78,9 @@
|
|
|
49
78
|
"@tiptap/extension-table-row": "2.0.0-beta.22",
|
|
50
79
|
"@tiptap/extension-task-item": "2.0.0-beta.37",
|
|
51
80
|
"@tiptap/extension-task-list": "2.0.0-beta.29",
|
|
81
|
+
"@tiptap/extension-text": "^2.0.0-beta.17",
|
|
52
82
|
"@tiptap/extension-text-align": "2.0.0-beta.31",
|
|
53
83
|
"@tiptap/extension-underline": "2.0.0-beta.25",
|
|
54
|
-
"@tiptap/starter-kit": "2.0.0-beta.191",
|
|
55
84
|
"@tiptap/suggestion": "2.0.0-beta.97",
|
|
56
85
|
"@tiptap/vue-3": "2.0.0-beta.96",
|
|
57
86
|
"floating-vue": "2.0.0-beta.19",
|
|
@@ -59,17 +88,5 @@
|
|
|
59
88
|
"katex": "^0.16.0",
|
|
60
89
|
"lowlight": "^2.7.0",
|
|
61
90
|
"tippy.js": "^6.3.7"
|
|
62
|
-
},
|
|
63
|
-
"scripts": {
|
|
64
|
-
"dev": "vite build --watch",
|
|
65
|
-
"build": "vite build",
|
|
66
|
-
"test:unit": "vitest --environment jsdom --run",
|
|
67
|
-
"test:unit:watch": "vitest --environment jsdom --watch",
|
|
68
|
-
"test:unit:ui": "vitest --environment jsdom --watch --ui",
|
|
69
|
-
"test:unit:coverage": "vitest run --environment jsdom --coverage",
|
|
70
|
-
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
|
71
|
-
"lint": "eslint ./src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
|
|
72
|
-
"prettier": "prettier --write './src/**/*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}'",
|
|
73
|
-
"release": "bumpp"
|
|
74
91
|
}
|
|
75
|
-
}
|
|
92
|
+
}
|
|
@@ -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;
|