@naersen/tts-rich-text 0.1.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/LICENSE +21 -0
- package/README.md +166 -0
- package/dist/components/cx-button/index.d.ts +9 -0
- package/dist/components/cx-button/index.vue.d.ts +20 -0
- package/dist/components/cx-empty/index.d.ts +2 -0
- package/dist/components/cx-empty/index.vue.d.ts +26 -0
- package/dist/components/cx-radio-group/index.d.ts +3 -0
- package/dist/components/cx-radio-group/index.vue.d.ts +19 -0
- package/dist/components/cx-radio-group/type/index.d.ts +25 -0
- package/dist/components/cx-spin/index.d.ts +3 -0
- package/dist/components/cx-spin/index.vue.d.ts +26 -0
- package/dist/components/cx-upload/index.d.ts +3 -0
- package/dist/components/cx-upload/index.vue.d.ts +43 -0
- package/dist/components/cx-upload/type/index.d.ts +15 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/svg-icon/index.d.ts +44 -0
- package/dist/components/svg-icon/index.vue.d.ts +12 -0
- package/dist/components/tts-rich-text/components/ai-rewrite-modal.vue.d.ts +10 -0
- package/dist/components/tts-rich-text/components/editor-footer.vue.d.ts +2 -0
- package/dist/components/tts-rich-text/components/editor-tool-button.vue.d.ts +67 -0
- package/dist/components/tts-rich-text/components/editor-toolbar.vue.d.ts +193 -0
- package/dist/components/tts-rich-text/components/formula-modal.vue.d.ts +10 -0
- package/dist/components/tts-rich-text/components/mark-pinyin-modal.vue.d.ts +8 -0
- package/dist/components/tts-rich-text/components/replace-text-modal.vue.d.ts +8 -0
- package/dist/components/tts-rich-text/components/selection-menu.vue.d.ts +4 -0
- package/dist/components/tts-rich-text/components/tag-node-view.vue.d.ts +92 -0
- package/dist/components/tts-rich-text/components/toolbar-popovers/language-popover.vue.d.ts +18 -0
- package/dist/components/tts-rich-text/components/toolbar-popovers/number-reading-popover.vue.d.ts +18 -0
- package/dist/components/tts-rich-text/components/toolbar-popovers/stop-popover.vue.d.ts +14 -0
- package/dist/components/tts-rich-text/components/type/index.d.ts +18 -0
- package/dist/components/tts-rich-text/components/upload-modal.vue.d.ts +101 -0
- package/dist/components/tts-rich-text/editor/config.d.ts +93 -0
- package/dist/components/tts-rich-text/editor/index.d.ts +5 -0
- package/dist/components/tts-rich-text/editor/nodes/tag-node.d.ts +13 -0
- package/dist/components/tts-rich-text/editor/plugins/tts-character-count.d.ts +17 -0
- package/dist/components/tts-rich-text/editor/type.d.ts +8 -0
- package/dist/components/tts-rich-text/editor/useEditorToolbar.d.ts +33 -0
- package/dist/components/tts-rich-text/editor/useOverflowToolbar.d.ts +13 -0
- package/dist/components/tts-rich-text/editor/useRichTextEditor.d.ts +91 -0
- package/dist/components/tts-rich-text/editor/useSSETool.d.ts +16 -0
- package/dist/components/tts-rich-text/editor/useTestAudioTool.d.ts +4 -0
- package/dist/components/tts-rich-text/editor/utils/index.d.ts +3 -0
- package/dist/components/tts-rich-text/editor/utils/number-to-text.d.ts +31 -0
- package/dist/components/tts-rich-text/editor/utils/sanitize-pasted-text.d.ts +2 -0
- package/dist/components/tts-rich-text/editor/utils/split-sentence.d.ts +7 -0
- package/dist/components/tts-rich-text/editor/utils/transform-data.d.ts +24 -0
- package/dist/components/tts-rich-text/hooks/useGlobalAudioControl.d.ts +4 -0
- package/dist/components/tts-rich-text/hooks/useSynthesizeAudioTool.d.ts +248 -0
- package/dist/components/tts-rich-text/hooks/useVoiceChangeConfirm.d.ts +6 -0
- package/dist/components/tts-rich-text/index.d.ts +9 -0
- package/dist/components/tts-rich-text-editor/index.d.ts +1 -0
- package/dist/components/tts-rich-text-editor/index.vue.d.ts +57 -0
- package/dist/core/config.d.ts +67 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/number-to-text.d.ts +31 -0
- package/dist/core/sanitize-pasted-text.d.ts +2 -0
- package/dist/core/split-sentence.d.ts +7 -0
- package/dist/core/transform-data.d.ts +13 -0
- package/dist/core.d.ts +2 -0
- package/dist/core.js +509 -0
- package/dist/editor/index.d.ts +4 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useControlValue.d.ts +4 -0
- package/dist/hooks/useRenderSlots.d.ts +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +31916 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/style/index.d.ts +0 -0
- package/dist/style.css +1 -0
- package/dist/type/index.d.ts +102 -0
- package/dist/utils/index.d.ts +7 -0
- package/package.json +82 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
3
|
+
toolbarRef: HTMLDivElement;
|
|
4
|
+
measureRef: HTMLDivElement;
|
|
5
|
+
replaceTextModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
6
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
open: (text: string) => void;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
confirm: (text: string) => any;
|
|
11
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
12
|
+
P: {};
|
|
13
|
+
B: {};
|
|
14
|
+
D: {};
|
|
15
|
+
C: {};
|
|
16
|
+
M: {};
|
|
17
|
+
Defaults: {};
|
|
18
|
+
}, Readonly<{}> & Readonly<{
|
|
19
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
open: (text: string) => void;
|
|
22
|
+
}, {}, {}, {}, {}> | null;
|
|
23
|
+
markPinyinModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
24
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
open: (text: string) => void;
|
|
27
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
confirm: (text: string) => any;
|
|
29
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
30
|
+
P: {};
|
|
31
|
+
B: {};
|
|
32
|
+
D: {};
|
|
33
|
+
C: {};
|
|
34
|
+
M: {};
|
|
35
|
+
Defaults: {};
|
|
36
|
+
}, Readonly<{}> & Readonly<{
|
|
37
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
open: (text: string) => void;
|
|
40
|
+
}, {}, {}, {}, {}> | null;
|
|
41
|
+
uploadModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
42
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
open: () => void;
|
|
45
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
+
confirm: (text: string) => any;
|
|
47
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
48
|
+
uploadRef: ({
|
|
49
|
+
$: import('vue').ComponentInternalInstance;
|
|
50
|
+
$data: {};
|
|
51
|
+
$props: {
|
|
52
|
+
readonly modelValue?: File[] | undefined;
|
|
53
|
+
readonly defaultValue?: File[] | undefined;
|
|
54
|
+
readonly accept?: string[] | undefined;
|
|
55
|
+
readonly maxSize?: number | undefined;
|
|
56
|
+
readonly disabled?: boolean | undefined;
|
|
57
|
+
readonly title?: string | undefined;
|
|
58
|
+
readonly tip?: string | undefined;
|
|
59
|
+
readonly onClear?: (() => any) | undefined;
|
|
60
|
+
readonly "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
|
|
61
|
+
readonly onChange?: ((value: File[]) => any) | undefined;
|
|
62
|
+
readonly onError?: ((type: "type" | "size", file: File) => any) | undefined;
|
|
63
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
64
|
+
$attrs: import('vue').Attrs;
|
|
65
|
+
$refs: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
} & {
|
|
68
|
+
uploadRef: HTMLDivElement;
|
|
69
|
+
};
|
|
70
|
+
$slots: Readonly<{
|
|
71
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
$root: ComponentPublicInstance | null;
|
|
74
|
+
$parent: ComponentPublicInstance | null;
|
|
75
|
+
$host: Element | null;
|
|
76
|
+
$emit: ((event: "clear") => void) & ((event: "update:modelValue", value: File[]) => void) & ((event: "change", value: File[]) => void) & ((event: "error", type: "type" | "size", file: File) => void);
|
|
77
|
+
$el: HTMLDivElement;
|
|
78
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../cx-upload/type').UploadProps> & Readonly<{
|
|
79
|
+
onClear?: (() => any) | undefined;
|
|
80
|
+
"onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
|
|
81
|
+
onChange?: ((value: File[]) => any) | undefined;
|
|
82
|
+
onError?: ((type: "type" | "size", file: File) => any) | undefined;
|
|
83
|
+
}>, {
|
|
84
|
+
open: () => void;
|
|
85
|
+
clear: () => void;
|
|
86
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
87
|
+
clear: () => any;
|
|
88
|
+
"update:modelValue": (value: File[]) => any;
|
|
89
|
+
change: (value: File[]) => any;
|
|
90
|
+
error: (type: "type" | "size", file: File) => any;
|
|
91
|
+
}, string, {
|
|
92
|
+
title: string;
|
|
93
|
+
disabled: boolean;
|
|
94
|
+
modelValue: File[];
|
|
95
|
+
defaultValue: File[];
|
|
96
|
+
accept: string[];
|
|
97
|
+
maxSize: number;
|
|
98
|
+
tip: string;
|
|
99
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
100
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
101
|
+
created?: (() => void) | (() => void)[];
|
|
102
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
103
|
+
mounted?: (() => void) | (() => void)[];
|
|
104
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
105
|
+
updated?: (() => void) | (() => void)[];
|
|
106
|
+
activated?: (() => void) | (() => void)[];
|
|
107
|
+
deactivated?: (() => void) | (() => void)[];
|
|
108
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
109
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
110
|
+
destroyed?: (() => void) | (() => void)[];
|
|
111
|
+
unmounted?: (() => void) | (() => void)[];
|
|
112
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
113
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
114
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
115
|
+
};
|
|
116
|
+
$forceUpdate: () => void;
|
|
117
|
+
$nextTick: typeof import('vue').nextTick;
|
|
118
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
119
|
+
} & Readonly<{
|
|
120
|
+
title: string;
|
|
121
|
+
disabled: boolean;
|
|
122
|
+
modelValue: File[];
|
|
123
|
+
defaultValue: File[];
|
|
124
|
+
accept: string[];
|
|
125
|
+
maxSize: number;
|
|
126
|
+
tip: string;
|
|
127
|
+
}> & Omit<Readonly<import('../../cx-upload/type').UploadProps> & Readonly<{
|
|
128
|
+
onClear?: (() => any) | undefined;
|
|
129
|
+
"onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
|
|
130
|
+
onChange?: ((value: File[]) => any) | undefined;
|
|
131
|
+
onError?: ((type: "type" | "size", file: File) => any) | undefined;
|
|
132
|
+
}>, "clear" | "open" | ("title" | "disabled" | "modelValue" | "defaultValue" | "accept" | "maxSize" | "tip")> & {
|
|
133
|
+
open: () => void;
|
|
134
|
+
clear: () => void;
|
|
135
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
136
|
+
$slots: {
|
|
137
|
+
operate?(_: {}): any;
|
|
138
|
+
};
|
|
139
|
+
}) | null;
|
|
140
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
141
|
+
P: {};
|
|
142
|
+
B: {};
|
|
143
|
+
D: {};
|
|
144
|
+
C: {};
|
|
145
|
+
M: {};
|
|
146
|
+
Defaults: {};
|
|
147
|
+
}, Readonly<{}> & Readonly<{
|
|
148
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
149
|
+
}>, {
|
|
150
|
+
open: () => void;
|
|
151
|
+
}, {}, {}, {}, {}> | null;
|
|
152
|
+
formulaModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
153
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
154
|
+
}>, {
|
|
155
|
+
open: (text: string) => void;
|
|
156
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
157
|
+
confirm: (text: string) => any;
|
|
158
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
159
|
+
textBoxRef: HTMLTextAreaElement;
|
|
160
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
161
|
+
P: {};
|
|
162
|
+
B: {};
|
|
163
|
+
D: {};
|
|
164
|
+
C: {};
|
|
165
|
+
M: {};
|
|
166
|
+
Defaults: {};
|
|
167
|
+
}, Readonly<{}> & Readonly<{
|
|
168
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
169
|
+
}>, {
|
|
170
|
+
open: (text: string) => void;
|
|
171
|
+
}, {}, {}, {}, {}> | null;
|
|
172
|
+
aiRewriteModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
173
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
174
|
+
}>, {
|
|
175
|
+
open: () => void;
|
|
176
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
177
|
+
confirm: (text: string) => any;
|
|
178
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
179
|
+
textBoxRef: HTMLTextAreaElement;
|
|
180
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
181
|
+
P: {};
|
|
182
|
+
B: {};
|
|
183
|
+
D: {};
|
|
184
|
+
C: {};
|
|
185
|
+
M: {};
|
|
186
|
+
Defaults: {};
|
|
187
|
+
}, Readonly<{}> & Readonly<{
|
|
188
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
189
|
+
}>, {
|
|
190
|
+
open: () => void;
|
|
191
|
+
}, {}, {}, {}, {}> | null;
|
|
192
|
+
}, HTMLDivElement>;
|
|
193
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
open: (text: string) => void;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
confirm: (text: string) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
6
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
8
|
+
textBoxRef: HTMLTextAreaElement;
|
|
9
|
+
}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
open: (text: string) => void;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
confirm: (text: string) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
6
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
open: (text: string) => void;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
confirm: (text: string) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
6
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
audioRef: HTMLAudioElement;
|
|
3
|
+
}, HTMLDivElement>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["editor"]>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
node: {
|
|
7
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["node"]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
decorations: {
|
|
11
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["decorations"]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selected: {
|
|
15
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["selected"]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["extension"]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
getPos: {
|
|
23
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["getPos"]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
updateAttributes: {
|
|
27
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["updateAttributes"]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
deleteNode: {
|
|
31
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["deleteNode"]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
view: {
|
|
35
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["view"]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
innerDecorations: {
|
|
39
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["innerDecorations"]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
HTMLAttributes: {
|
|
43
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["HTMLAttributes"]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
47
|
+
editor: {
|
|
48
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["editor"]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
node: {
|
|
52
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["node"]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
decorations: {
|
|
56
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["decorations"]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
selected: {
|
|
60
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["selected"]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
extension: {
|
|
64
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["extension"]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
getPos: {
|
|
68
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["getPos"]>;
|
|
69
|
+
required: true;
|
|
70
|
+
};
|
|
71
|
+
updateAttributes: {
|
|
72
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["updateAttributes"]>;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
deleteNode: {
|
|
76
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["deleteNode"]>;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
view: {
|
|
80
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["view"]>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
innerDecorations: {
|
|
84
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["innerDecorations"]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
HTMLAttributes: {
|
|
88
|
+
type: import('vue').PropType<import('@tiptap/core').NodeViewProps["HTMLAttributes"]>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
virtualRef?: HTMLElement;
|
|
3
|
+
options: readonly {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = {
|
|
9
|
+
'visible'?: boolean;
|
|
10
|
+
} & __VLS_Props;
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
select: (code: string) => any;
|
|
13
|
+
"update:visible": (value: boolean) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
onSelect?: ((code: string) => any) | undefined;
|
|
16
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
package/dist/components/tts-rich-text/components/toolbar-popovers/number-reading-popover.vue.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
virtualRef?: HTMLElement;
|
|
3
|
+
options: readonly {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = {
|
|
9
|
+
'visible'?: boolean;
|
|
10
|
+
} & __VLS_Props;
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
select: (text: string) => any;
|
|
13
|
+
"update:visible": (value: boolean) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
onSelect?: ((text: string) => any) | undefined;
|
|
16
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
virtualRef?: HTMLElement;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
'visible'?: boolean;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
select: (time: number) => any;
|
|
9
|
+
"update:visible": (value: boolean) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
onSelect?: ((time: number) => any) | undefined;
|
|
12
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface PinyinOption {
|
|
2
|
+
text: string;
|
|
3
|
+
index: number;
|
|
4
|
+
options: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface ManualPinyin {
|
|
7
|
+
text: string;
|
|
8
|
+
initial: string;
|
|
9
|
+
tone: string;
|
|
10
|
+
final: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ToolButtonItem {
|
|
13
|
+
tool: {
|
|
14
|
+
label: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
open: () => void;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
confirm: (text: string) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
6
|
+
onConfirm?: ((text: string) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
8
|
+
uploadRef: ({
|
|
9
|
+
$: import('vue').ComponentInternalInstance;
|
|
10
|
+
$data: {};
|
|
11
|
+
$props: {
|
|
12
|
+
readonly modelValue?: File[] | undefined;
|
|
13
|
+
readonly defaultValue?: File[] | undefined;
|
|
14
|
+
readonly accept?: string[] | undefined;
|
|
15
|
+
readonly maxSize?: number | undefined;
|
|
16
|
+
readonly disabled?: boolean | undefined;
|
|
17
|
+
readonly title?: string | undefined;
|
|
18
|
+
readonly tip?: string | undefined;
|
|
19
|
+
readonly onClear?: (() => any) | undefined;
|
|
20
|
+
readonly "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
|
|
21
|
+
readonly onChange?: ((value: File[]) => any) | undefined;
|
|
22
|
+
readonly onError?: ((type: "type" | "size", file: File) => any) | undefined;
|
|
23
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
24
|
+
$attrs: import('vue').Attrs;
|
|
25
|
+
$refs: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} & {
|
|
28
|
+
uploadRef: HTMLDivElement;
|
|
29
|
+
};
|
|
30
|
+
$slots: Readonly<{
|
|
31
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
34
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
35
|
+
$host: Element | null;
|
|
36
|
+
$emit: ((event: "clear") => void) & ((event: "update:modelValue", value: File[]) => void) & ((event: "change", value: File[]) => void) & ((event: "error", type: "type" | "size", file: File) => void);
|
|
37
|
+
$el: HTMLDivElement;
|
|
38
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../cx-upload/type').UploadProps> & Readonly<{
|
|
39
|
+
onClear?: (() => any) | undefined;
|
|
40
|
+
"onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
|
|
41
|
+
onChange?: ((value: File[]) => any) | undefined;
|
|
42
|
+
onError?: ((type: "type" | "size", file: File) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
open: () => void;
|
|
45
|
+
clear: () => void;
|
|
46
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
47
|
+
clear: () => any;
|
|
48
|
+
"update:modelValue": (value: File[]) => any;
|
|
49
|
+
change: (value: File[]) => any;
|
|
50
|
+
error: (type: "type" | "size", file: File) => any;
|
|
51
|
+
}, string, {
|
|
52
|
+
title: string;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
modelValue: File[];
|
|
55
|
+
defaultValue: File[];
|
|
56
|
+
accept: string[];
|
|
57
|
+
maxSize: number;
|
|
58
|
+
tip: string;
|
|
59
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
60
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
61
|
+
created?: (() => void) | (() => void)[];
|
|
62
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
63
|
+
mounted?: (() => void) | (() => void)[];
|
|
64
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
65
|
+
updated?: (() => void) | (() => void)[];
|
|
66
|
+
activated?: (() => void) | (() => void)[];
|
|
67
|
+
deactivated?: (() => void) | (() => void)[];
|
|
68
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
69
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
70
|
+
destroyed?: (() => void) | (() => void)[];
|
|
71
|
+
unmounted?: (() => void) | (() => void)[];
|
|
72
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
73
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
74
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
75
|
+
};
|
|
76
|
+
$forceUpdate: () => void;
|
|
77
|
+
$nextTick: typeof import('vue').nextTick;
|
|
78
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
79
|
+
} & Readonly<{
|
|
80
|
+
title: string;
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
modelValue: File[];
|
|
83
|
+
defaultValue: File[];
|
|
84
|
+
accept: string[];
|
|
85
|
+
maxSize: number;
|
|
86
|
+
tip: string;
|
|
87
|
+
}> & Omit<Readonly<import('../../cx-upload/type').UploadProps> & Readonly<{
|
|
88
|
+
onClear?: (() => any) | undefined;
|
|
89
|
+
"onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
|
|
90
|
+
onChange?: ((value: File[]) => any) | undefined;
|
|
91
|
+
onError?: ((type: "type" | "size", file: File) => any) | undefined;
|
|
92
|
+
}>, "clear" | "open" | ("title" | "disabled" | "modelValue" | "defaultValue" | "accept" | "maxSize" | "tip")> & {
|
|
93
|
+
open: () => void;
|
|
94
|
+
clear: () => void;
|
|
95
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
96
|
+
$slots: {
|
|
97
|
+
operate?(_: {}): any;
|
|
98
|
+
};
|
|
99
|
+
}) | null;
|
|
100
|
+
}, any>;
|
|
101
|
+
export default _default;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { JSONContent } from '@tiptap/core';
|
|
2
|
+
export declare const DriveModeEnum: {
|
|
3
|
+
readonly TEXT: "TEXT";
|
|
4
|
+
readonly AUDIO: "AUDIO";
|
|
5
|
+
};
|
|
6
|
+
export type DriveModeEnum = (typeof DriveModeEnum)[keyof typeof DriveModeEnum];
|
|
7
|
+
export declare const StopOptions: {
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const LanguageOptions: {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
export declare const DeleteMode: {
|
|
16
|
+
readonly DELETE_NODE: "deleteNode";
|
|
17
|
+
readonly CONVERT_TO_TEXT: "convertToText";
|
|
18
|
+
};
|
|
19
|
+
export type DeleteMode = (typeof DeleteMode)[keyof typeof DeleteMode];
|
|
20
|
+
export declare const ToolConfig: {
|
|
21
|
+
readonly stop: {
|
|
22
|
+
readonly label: "停顿";
|
|
23
|
+
readonly icon: "editor-stop";
|
|
24
|
+
readonly type: "stop";
|
|
25
|
+
readonly deleteMode: "deleteNode";
|
|
26
|
+
};
|
|
27
|
+
readonly customStop: {
|
|
28
|
+
readonly label: "长停顿";
|
|
29
|
+
readonly icon: "editor-stop-long";
|
|
30
|
+
readonly type: "customStop";
|
|
31
|
+
readonly deleteMode: "deleteNode";
|
|
32
|
+
};
|
|
33
|
+
readonly continue: {
|
|
34
|
+
readonly label: "连续";
|
|
35
|
+
readonly icon: "editor-continue";
|
|
36
|
+
readonly type: "continue";
|
|
37
|
+
readonly deleteMode: "convertToText";
|
|
38
|
+
};
|
|
39
|
+
readonly pinyin: {
|
|
40
|
+
readonly label: "拼音标注";
|
|
41
|
+
readonly icon: "editor-pinyin";
|
|
42
|
+
readonly type: "pinyin";
|
|
43
|
+
readonly deleteMode: "convertToText";
|
|
44
|
+
};
|
|
45
|
+
readonly replace: {
|
|
46
|
+
readonly label: "替换";
|
|
47
|
+
readonly icon: "editor-replace";
|
|
48
|
+
readonly type: "replace";
|
|
49
|
+
readonly deleteMode: "convertToText";
|
|
50
|
+
};
|
|
51
|
+
readonly language: {
|
|
52
|
+
readonly label: "语种标记";
|
|
53
|
+
readonly icon: "editor-language";
|
|
54
|
+
readonly type: "language";
|
|
55
|
+
readonly deleteMode: "convertToText";
|
|
56
|
+
};
|
|
57
|
+
readonly number: {
|
|
58
|
+
readonly label: "数字读法";
|
|
59
|
+
readonly icon: "editor-number";
|
|
60
|
+
readonly type: "number";
|
|
61
|
+
};
|
|
62
|
+
readonly formula: {
|
|
63
|
+
readonly label: "读公式";
|
|
64
|
+
readonly icon: "editor-formula";
|
|
65
|
+
readonly type: "formula";
|
|
66
|
+
};
|
|
67
|
+
readonly aiRewrite: {
|
|
68
|
+
readonly label: "AI改写";
|
|
69
|
+
readonly icon: "editor-ai-rewrite";
|
|
70
|
+
readonly type: "aiRewrite";
|
|
71
|
+
};
|
|
72
|
+
readonly upload: {
|
|
73
|
+
readonly label: "上传文稿";
|
|
74
|
+
readonly icon: "editor-upload";
|
|
75
|
+
readonly type: "upload";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export type CustomTagType = keyof typeof ToolConfig;
|
|
79
|
+
export declare const PinyinInitials: string[];
|
|
80
|
+
export declare const PinyinTone: {
|
|
81
|
+
label: string;
|
|
82
|
+
value: string;
|
|
83
|
+
}[];
|
|
84
|
+
export declare const PinyinFinal: {
|
|
85
|
+
label: string;
|
|
86
|
+
value: number;
|
|
87
|
+
options: string[];
|
|
88
|
+
}[];
|
|
89
|
+
export declare const getInitContent: () => JSONContent;
|
|
90
|
+
export declare const EditorConst: {
|
|
91
|
+
SENTECE: string;
|
|
92
|
+
CUSTOM_TAG: string;
|
|
93
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
interface TagNodeOptions {
|
|
3
|
+
name: string;
|
|
4
|
+
dataType: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
defaultCateg: string;
|
|
7
|
+
hasCustomData?: boolean;
|
|
8
|
+
renderTextContent?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const createTagNode: (options: TagNodeOptions) => Node<any, any>;
|
|
11
|
+
export declare const CustomTagName = "customTag";
|
|
12
|
+
export declare const createCustomTagNode: () => Node<any, any>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
3
|
+
interface TtsCharacterCountOptions {
|
|
4
|
+
limit: number | null | undefined;
|
|
5
|
+
mode: 'textSize' | 'nodeSize';
|
|
6
|
+
}
|
|
7
|
+
interface TtsCharacterCountStorage {
|
|
8
|
+
characters: (characterOptions?: {
|
|
9
|
+
node?: ProseMirrorNode;
|
|
10
|
+
mode?: 'textSize' | 'nodeSize';
|
|
11
|
+
}) => number;
|
|
12
|
+
words: (characterOptions?: {
|
|
13
|
+
node?: ProseMirrorNode;
|
|
14
|
+
}) => number;
|
|
15
|
+
}
|
|
16
|
+
export declare const createTtsCharacterCount: (options: TtsCharacterCountOptions) => Extension<TtsCharacterCountOptions, TtsCharacterCountStorage>;
|
|
17
|
+
export {};
|