@naersen/tts-rich-text 0.2.0 → 0.4.0
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 +18 -14
- package/dist/base.css +1 -1
- package/dist/components/tts-editor-root/index.vue.d.ts +48 -8
- package/dist/components/tts-editor-root/type/index.d.ts +2 -8
- package/dist/components/tts-rich-text/editor/useRichTextEditor.d.ts +3 -0
- package/dist/components/tts-rich-text-editor/index.vue.d.ts +200 -35
- package/dist/editor/index.d.ts +1 -1
- package/dist/index.js +1722 -1698
- package/dist/type/index.d.ts +8 -1
- package/package.json +85 -83
package/dist/type/index.d.ts
CHANGED
|
@@ -73,7 +73,13 @@ export interface TtsRichTextEditorProps {
|
|
|
73
73
|
showSelectionMenu?: boolean;
|
|
74
74
|
showFullscreen?: boolean;
|
|
75
75
|
}
|
|
76
|
-
export type TtsEditorRootProps = Omit<TtsRichTextEditorProps, 'showFullscreen'
|
|
76
|
+
export type TtsEditorRootProps = Omit<TtsRichTextEditorProps, 'modelValue' | 'showFullscreen'> & {
|
|
77
|
+
initialContent?: JSONContent;
|
|
78
|
+
};
|
|
79
|
+
export interface TtsEditorRootEmits {
|
|
80
|
+
(event: 'change'): void;
|
|
81
|
+
(event: 'ready', editor: Editor): void;
|
|
82
|
+
}
|
|
77
83
|
export interface TtsRichTextEditorEmits {
|
|
78
84
|
(event: 'update:modelValue', value: JSONContent): void;
|
|
79
85
|
(event: 'change', value: JSONContent): void;
|
|
@@ -85,6 +91,7 @@ export interface TtsRichTextEditorExpose {
|
|
|
85
91
|
getJson: () => JSONContent;
|
|
86
92
|
getTtsData: () => TtsInputData;
|
|
87
93
|
replaceText: (text: string) => void;
|
|
94
|
+
handleChangeVoice: (currentModel: number, nextModel: number) => Promise<boolean>;
|
|
88
95
|
}
|
|
89
96
|
export interface TtsPlayment {
|
|
90
97
|
action: string;
|
package/package.json
CHANGED
|
@@ -1,84 +1,86 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
2
|
+
"name": "@naersen/tts-rich-text",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Reusable Vue 3 rich-text editor for TTS workflows",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"module": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./core": {
|
|
18
|
+
"types": "./dist/core/index.d.ts",
|
|
19
|
+
"import": "./dist/core.js"
|
|
20
|
+
},
|
|
21
|
+
"./base.css": "./dist/base.css",
|
|
22
|
+
"./theme-default.css": "./dist/theme-default.css",
|
|
23
|
+
"./styles.css": "./dist/style.css"
|
|
24
|
+
},
|
|
25
|
+
"sideEffects": [
|
|
26
|
+
"**/*.css",
|
|
27
|
+
"**/*.less"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"dev": "vite",
|
|
31
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"test:e2e": "playwright test",
|
|
34
|
+
"test:watch": "vitest",
|
|
35
|
+
"build": "pnpm run typecheck && pnpm run test && vite build && vite build --config vite.theme.config.ts",
|
|
36
|
+
"prepublishOnly": "pnpm run build",
|
|
37
|
+
"preview": "vite preview"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"vue",
|
|
41
|
+
"tiptap",
|
|
42
|
+
"tts",
|
|
43
|
+
"rich-text-editor"
|
|
44
|
+
],
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"packageManager": "pnpm@10.30.3",
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@tiptap/core": "^3.23.6",
|
|
49
|
+
"@tiptap/extensions": "^3.23.6",
|
|
50
|
+
"@tiptap/pm": "^3.23.6",
|
|
51
|
+
"@tiptap/starter-kit": "^3.23.6",
|
|
52
|
+
"@tiptap/vue-3": "^3.23.6",
|
|
53
|
+
"element-plus": "^2.13.7",
|
|
54
|
+
"vue": "^3.4.0"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@vueuse/core": "^11.0.3",
|
|
58
|
+
"dayjs": "^1.11.13",
|
|
59
|
+
"lodash-es": "^4.17.21",
|
|
60
|
+
"nanoid": "^5.0.9",
|
|
61
|
+
"pinyin-pro": "^3.28.1"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@playwright/test": "^1.62.0",
|
|
65
|
+
"@types/node": "^22.10.2",
|
|
66
|
+
"@tiptap/core": "^3.23.6",
|
|
67
|
+
"@tiptap/extensions": "^3.23.6",
|
|
68
|
+
"@tiptap/pm": "^3.23.6",
|
|
69
|
+
"@tiptap/starter-kit": "^3.23.6",
|
|
70
|
+
"@tiptap/vue-3": "^3.23.6",
|
|
71
|
+
"@types/lodash-es": "^4.17.12",
|
|
72
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
73
|
+
"less": "^4.2.1",
|
|
74
|
+
"element-plus": "2.13.7",
|
|
75
|
+
"typescript": "^5.7.2",
|
|
76
|
+
"vite": "^5.4.11",
|
|
77
|
+
"vite-plugin-dts": "^4.3.0",
|
|
78
|
+
"vitest": "^2.1.8",
|
|
79
|
+
"vue": "^3.5.13",
|
|
80
|
+
"vue-tsc": "^2.2.0"
|
|
81
|
+
},
|
|
82
|
+
"publishConfig": {
|
|
83
|
+
"access": "public",
|
|
84
|
+
"registry": "https://registry.npmjs.org/"
|
|
85
|
+
}
|
|
86
|
+
}
|