@linker-design-plus/tiny-peony 1.2.28

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.
Files changed (53) hide show
  1. package/LICENSE +21 -0
  2. package/dist/foundation/commandExecutor/commandExecutor.d.ts +9 -0
  3. package/dist/foundation/contentManager/contentManager.d.ts +21 -0
  4. package/dist/foundation/cursorManager/cursorManager.d.ts +14 -0
  5. package/dist/foundation/editorManager/editor.d.ts +39 -0
  6. package/dist/foundation/editorManager/maxLength.d.ts +4 -0
  7. package/dist/foundation/editorManager/paste.d.ts +3 -0
  8. package/dist/foundation/undoManager/undoManager.d.ts +18 -0
  9. package/dist/index.d.ts +367 -0
  10. package/dist/index.js +63 -0
  11. package/dist/index.mjs +4494 -0
  12. package/dist/intersection/components/CommonModal/CommonModal.d.ts +40 -0
  13. package/dist/intersection/components/CommonModal/composables/useModalWrapper.d.ts +47 -0
  14. package/dist/intersection/components/CommonModal/index.d.ts +86 -0
  15. package/dist/intersection/components/CommonModal/syncConfirm.d.ts +2 -0
  16. package/dist/intersection/components/editor/context.d.ts +45 -0
  17. package/dist/intersection/components/editor/editor.d.ts +172 -0
  18. package/dist/intersection/components/editor/iconfont.d.ts +20 -0
  19. package/dist/intersection/components/editor/index.d.ts +365 -0
  20. package/dist/intersection/components/modals/contextMenu.vue.d.ts +22 -0
  21. package/dist/intersection/hooks/use-editor.d.ts +54 -0
  22. package/dist/intersection/hooks/use-highlight.d.ts +7 -0
  23. package/dist/intersection/stores/use-editor-store.d.ts +0 -0
  24. package/dist/plugins/AnchorTagPlugin/constant.d.ts +1 -0
  25. package/dist/plugins/AnchorTagPlugin/index.d.ts +2 -0
  26. package/dist/plugins/AnchorTagPlugin/plugin.d.ts +37 -0
  27. package/dist/plugins/HomophonesTagPlugin/homophoner.vue.d.ts +13 -0
  28. package/dist/plugins/HomophonesTagPlugin/index.d.ts +2 -0
  29. package/dist/plugins/HomophonesTagPlugin/plugin.d.ts +17 -0
  30. package/dist/plugins/PausationTagPlugin/index.d.ts +2 -0
  31. package/dist/plugins/PausationTagPlugin/pausationor.vue.d.ts +9 -0
  32. package/dist/plugins/PausationTagPlugin/plugin.d.ts +28 -0
  33. package/dist/plugins/PronunciationTagPlugin/index.d.ts +2 -0
  34. package/dist/plugins/PronunciationTagPlugin/plugin.d.ts +19 -0
  35. package/dist/plugins/PronunciationTagPlugin/pronunciationor.vue.d.ts +13 -0
  36. package/dist/tiny-peony.css +1 -0
  37. package/dist/typings/actions/i-anchor.d.ts +22 -0
  38. package/dist/typings/actions/i-homophone.d.ts +9 -0
  39. package/dist/typings/actions/i-modal.d.ts +7 -0
  40. package/dist/typings/actions/i-plugin.d.ts +9 -0
  41. package/dist/typings/index.d.ts +9 -0
  42. package/dist/typings/intersection/editor.d.ts +35 -0
  43. package/dist/typings/shared.d.ts +16 -0
  44. package/dist/typings/status/i-command-executor.d.ts +8 -0
  45. package/dist/typings/status/i-content-manager.d.ts +14 -0
  46. package/dist/typings/status/i-cursor-manager.d.ts +10 -0
  47. package/dist/typings/status/i-editor-manager.d.ts +20 -0
  48. package/dist/typings/status/i-undo-manager.d.ts +26 -0
  49. package/dist/utils/dom.d.ts +18 -0
  50. package/dist/utils/index.d.ts +3 -0
  51. package/dist/utils/shared.d.ts +2 -0
  52. package/dist/utils/value-type.d.ts +12 -0
  53. package/package.json +43 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Linker Design, Inc. and its affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ import { IContentManager, ICursorManager } from '../../typings';
2
+ import { ICommandExecutor } from '../../typings/status/i-command-executor';
3
+ export declare class CommandExecutor extends ICommandExecutor {
4
+ contentManager: IContentManager;
5
+ cursorManager: ICursorManager;
6
+ constructor(_contentManager: IContentManager, _cursorManager: ICursorManager);
7
+ executeUndo(): void;
8
+ executeRedo(): void;
9
+ }
@@ -0,0 +1,21 @@
1
+ import { IContentManager, IEditorCore } from '../../typings';
2
+ export declare class ContentManager extends IContentManager {
3
+ protected _editorElement: HTMLElement;
4
+ private _editor;
5
+ constructor(element: HTMLElement, editor: IEditorCore);
6
+ insertEmptyPara(): void;
7
+ calcTextCount(): number;
8
+ getContent(): string;
9
+ getHtml(): string;
10
+ setContent(content: string): void;
11
+ setHtml(content: string): void;
12
+ appendContent(content: string | string[], cb?: (para: HTMLElement) => void): void;
13
+ insert(content: string | Node): void;
14
+ delete(): void;
15
+ update(content: string | Node): void;
16
+ getParas(): HTMLElement[];
17
+ getTextContent(): string[];
18
+ private _insert;
19
+ private _delete;
20
+ private _update;
21
+ }
@@ -0,0 +1,14 @@
1
+ import { ICursorManager } from '../../typings';
2
+ export declare class CursorManager extends ICursorManager {
3
+ private _editorElement;
4
+ range: Range | undefined;
5
+ constructor(_element: HTMLDivElement);
6
+ destroy(): void;
7
+ private _recordRange;
8
+ isRangeInEditor(): boolean;
9
+ isCaret(): boolean;
10
+ isRange(): boolean;
11
+ getRangeContent(): string;
12
+ toEnd(node: Node): void;
13
+ getRangeTop(): number;
14
+ }
@@ -0,0 +1,39 @@
1
+ import { ICommandExecutor, IContentManager, ICursorManager, IUndoManager } from '../../typings';
2
+ import { IPlugin } from '../../typings/actions/i-plugin';
3
+ import { IEditorCore } from '../../typings/status/i-editor-manager';
4
+ export type PluginConstructor<T extends IPlugin = IPlugin> = new (editor: IEditorCore) => T;
5
+ export type PluginMap<Plugins extends PluginConstructor[]> = {
6
+ [K in Plugins[number] as InstanceType<K>['prefix']]: InstanceType<K>;
7
+ };
8
+ export interface EditorCoreOptions<Plugins extends PluginConstructor<IPlugin>[]> {
9
+ plugins?: Plugins;
10
+ maxLength: number;
11
+ onChange?: (contentLength: number) => void;
12
+ onUndoChange?: (anchorContent: string) => void;
13
+ }
14
+ export declare const PARAGRAPH_CLS: string;
15
+ export declare const PARAGRAPH_EMPTY: string;
16
+ export declare class EditorCore<Plugins extends PluginConstructor[] = []> extends IEditorCore {
17
+ private _observer;
18
+ private _onchange?;
19
+ readonly _editorElement: HTMLElement;
20
+ readonly _uid: string;
21
+ content: IContentManager;
22
+ cursor: ICursorManager;
23
+ undo: IUndoManager;
24
+ command: ICommandExecutor;
25
+ maxLength: number;
26
+ plugin: PluginMap<Plugins>;
27
+ constructor(editorElement: HTMLDivElement, options?: EditorCoreOptions<Plugins>);
28
+ destroy(): void;
29
+ editorTop(): number;
30
+ editorLeft(): number;
31
+ appendContent(content: string | string[]): void;
32
+ get element(): HTMLElement;
33
+ private _setup;
34
+ private _teardown;
35
+ private _handleBackspace;
36
+ private _handlePaste;
37
+ private _handleBeforeInput;
38
+ private _handleCompositionEnd;
39
+ }
@@ -0,0 +1,4 @@
1
+ import { IEditorCore } from '../../typings';
2
+ export declare const hadnleCompositionEnd: (editor: IEditorCore, event: CompositionEvent) => void;
3
+ export declare const handleBeforeInput: (editor: IEditorCore, event: InputEvent) => void;
4
+ export declare const calcPasteTextLength: (editor: IEditorCore, paragraphs: string[]) => string[];
@@ -0,0 +1,3 @@
1
+ import { IEditorCore } from '../../typings';
2
+ export declare const handleInsertEndPausationTag: (editor: IEditorCore, elm: HTMLElement) => void;
3
+ export declare const handlePaste: (editor: IEditorCore, paragraphs: string[]) => void;
@@ -0,0 +1,18 @@
1
+ import { IContentManager, IEditorCore } from '../../typings';
2
+ import { HistoryStackItem, IUndoManager } from '../../typings/status/i-undo-manager';
3
+ export declare class UndoManager extends IUndoManager {
4
+ private _editor;
5
+ private _onUndoChange?;
6
+ contentManager: IContentManager;
7
+ undoStack: HistoryStackItem[];
8
+ redoStack: HistoryStackItem[];
9
+ constructor(_editor: IEditorCore, _contentManager: IContentManager, _undoChange?: (anchorContent: string) => void);
10
+ saveState(): void;
11
+ undo(): void;
12
+ redo(): void;
13
+ private _calcNodePathMatches;
14
+ private _record;
15
+ private _handleInput;
16
+ private _handleUndoOrRedo;
17
+ private _restoreCursor;
18
+ }
@@ -0,0 +1,367 @@
1
+ import type { App } from 'vue';
2
+ import EditorContainer from './intersection/components/editor';
3
+ export * from './typings/index';
4
+ declare const TinyPeony: {
5
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
6
+ preTime: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ realTime: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ textCount: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ listenAnchorId: {
19
+ type: NumberConstructor;
20
+ default: number;
21
+ };
22
+ listenMode: {
23
+ type: import("vue").PropType<import("./typings/shared").ListenModeEnum>;
24
+ default: string;
25
+ };
26
+ placeholder: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ simple: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ maxLength: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ showWordLimit: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ disabled: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ class: {
47
+ type: (ArrayConstructor | StringConstructor)[];
48
+ default: () => never[];
49
+ };
50
+ contentStyle: {
51
+ type: import("vue").PropType<import("vue").CSSProperties>;
52
+ default: () => {};
53
+ };
54
+ }>> & Readonly<{
55
+ onChange?: ((contentLength: number) => any) | undefined;
56
+ "onUpdate:textCount"?: ((value: number) => any) | undefined;
57
+ onAnchorListen?: ((value: import("./typings/index").IAnchor, text: string) => any) | undefined;
58
+ onAnchorRemove?: ((value: import("./typings/index").IAnchor) => any) | undefined;
59
+ onAnchorListenStop?: ((value: import("./typings/index").IAnchor) => any) | undefined;
60
+ }>, {
61
+ action: import("vue").Ref<import("./intersection/hooks/use-editor").EditorAction | undefined, import("./intersection/hooks/use-editor").EditorAction | undefined>;
62
+ innerRender: () => import("vue/jsx-runtime").JSX.Element;
63
+ innerGetContent: (_options?: import("./intersection/components/editor/context").ContentOptions) => string;
64
+ innerSetContent: (content: string) => Promise<void>;
65
+ innerAppendContent: (content: string | string[]) => Promise<void>;
66
+ innerGetTextContent: () => string[];
67
+ innerInsertContent: (content: string | Node) => void;
68
+ innerDeleteContent: () => void;
69
+ innerUpdateContent: (content: string | Node) => void;
70
+ innerIsCaret: () => boolean;
71
+ innerIsRange: () => boolean;
72
+ innerIsSelectionInDifferentParas: () => boolean;
73
+ innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
74
+ innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
75
+ innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
76
+ innerIsAllMarkedByAnchor: () => boolean;
77
+ innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
78
+ innerClearContent: () => void;
79
+ innerRenderHightlight: (matchingContent: string) => void;
80
+ innerUnrenderHightlight: () => void;
81
+ }, {}, {}, {
82
+ getContent(options?: import("./intersection/components/editor/context").ContentOptions): string;
83
+ getHtml(options: import("./intersection/components/editor/context").ContentOptions): string;
84
+ setContent(content: string): Promise<void>;
85
+ setHtml(content: string): Promise<void>;
86
+ appendContent(content: string | string[]): Promise<void>;
87
+ getTextContent(): string[];
88
+ insertContent(content: string | Node): void;
89
+ deleteContent(): void;
90
+ updateContent(content: string | Node): void;
91
+ isCaret(): boolean;
92
+ isRange(): boolean;
93
+ isSelectionInDifferentParas(): boolean;
94
+ isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
95
+ getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
96
+ getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
97
+ isAllMarkedByAnchor(): boolean;
98
+ addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
99
+ clearContent(): void;
100
+ clear(): Promise<void>;
101
+ renderHighlight(matchingContent: string): void;
102
+ unrenderHighlight(): void;
103
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
104
+ change: (contentLength: number) => true;
105
+ 'update:textCount': (value: number) => true;
106
+ anchorListen: (value: import("./typings/index").IAnchor, text: string) => true;
107
+ anchorListenStop: (value: import("./typings/index").IAnchor) => true;
108
+ anchorRemove: (value: import("./typings/index").IAnchor) => true;
109
+ }, import("vue").PublicProps, {
110
+ class: string | unknown[];
111
+ disabled: boolean;
112
+ placeholder: string;
113
+ maxLength: number;
114
+ showWordLimit: boolean;
115
+ simple: boolean;
116
+ preTime: string;
117
+ realTime: string;
118
+ textCount: number;
119
+ listenAnchorId: number;
120
+ listenMode: import("./typings/shared").ListenModeEnum;
121
+ contentStyle: import("vue").CSSProperties;
122
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
123
+ P: {};
124
+ B: {};
125
+ D: {};
126
+ C: {};
127
+ M: {};
128
+ Defaults: {};
129
+ }, Readonly<import("vue").ExtractPropTypes<{
130
+ preTime: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ };
134
+ realTime: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ };
138
+ textCount: {
139
+ type: NumberConstructor;
140
+ default: number;
141
+ };
142
+ listenAnchorId: {
143
+ type: NumberConstructor;
144
+ default: number;
145
+ };
146
+ listenMode: {
147
+ type: import("vue").PropType<import("./typings/shared").ListenModeEnum>;
148
+ default: string;
149
+ };
150
+ placeholder: {
151
+ type: StringConstructor;
152
+ default: string;
153
+ };
154
+ simple: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
158
+ maxLength: {
159
+ type: NumberConstructor;
160
+ default: number;
161
+ };
162
+ showWordLimit: {
163
+ type: BooleanConstructor;
164
+ default: boolean;
165
+ };
166
+ disabled: {
167
+ type: BooleanConstructor;
168
+ default: boolean;
169
+ };
170
+ class: {
171
+ type: (ArrayConstructor | StringConstructor)[];
172
+ default: () => never[];
173
+ };
174
+ contentStyle: {
175
+ type: import("vue").PropType<import("vue").CSSProperties>;
176
+ default: () => {};
177
+ };
178
+ }>> & Readonly<{
179
+ onChange?: ((contentLength: number) => any) | undefined;
180
+ "onUpdate:textCount"?: ((value: number) => any) | undefined;
181
+ onAnchorListen?: ((value: import("./typings/index").IAnchor, text: string) => any) | undefined;
182
+ onAnchorRemove?: ((value: import("./typings/index").IAnchor) => any) | undefined;
183
+ onAnchorListenStop?: ((value: import("./typings/index").IAnchor) => any) | undefined;
184
+ }>, {
185
+ action: import("vue").Ref<import("./intersection/hooks/use-editor").EditorAction | undefined, import("./intersection/hooks/use-editor").EditorAction | undefined>;
186
+ innerRender: () => import("vue/jsx-runtime").JSX.Element;
187
+ innerGetContent: (_options?: import("./intersection/components/editor/context").ContentOptions) => string;
188
+ innerSetContent: (content: string) => Promise<void>;
189
+ innerAppendContent: (content: string | string[]) => Promise<void>;
190
+ innerGetTextContent: () => string[];
191
+ innerInsertContent: (content: string | Node) => void;
192
+ innerDeleteContent: () => void;
193
+ innerUpdateContent: (content: string | Node) => void;
194
+ innerIsCaret: () => boolean;
195
+ innerIsRange: () => boolean;
196
+ innerIsSelectionInDifferentParas: () => boolean;
197
+ innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
198
+ innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
199
+ innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
200
+ innerIsAllMarkedByAnchor: () => boolean;
201
+ innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
202
+ innerClearContent: () => void;
203
+ innerRenderHightlight: (matchingContent: string) => void;
204
+ innerUnrenderHightlight: () => void;
205
+ }, {}, {}, {
206
+ getContent(options?: import("./intersection/components/editor/context").ContentOptions): string;
207
+ getHtml(options: import("./intersection/components/editor/context").ContentOptions): string;
208
+ setContent(content: string): Promise<void>;
209
+ setHtml(content: string): Promise<void>;
210
+ appendContent(content: string | string[]): Promise<void>;
211
+ getTextContent(): string[];
212
+ insertContent(content: string | Node): void;
213
+ deleteContent(): void;
214
+ updateContent(content: string | Node): void;
215
+ isCaret(): boolean;
216
+ isRange(): boolean;
217
+ isSelectionInDifferentParas(): boolean;
218
+ isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
219
+ getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
220
+ getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
221
+ isAllMarkedByAnchor(): boolean;
222
+ addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
223
+ clearContent(): void;
224
+ clear(): Promise<void>;
225
+ renderHighlight(matchingContent: string): void;
226
+ unrenderHighlight(): void;
227
+ }, {
228
+ class: string | unknown[];
229
+ disabled: boolean;
230
+ placeholder: string;
231
+ maxLength: number;
232
+ showWordLimit: boolean;
233
+ simple: boolean;
234
+ preTime: string;
235
+ realTime: string;
236
+ textCount: number;
237
+ listenAnchorId: number;
238
+ listenMode: import("./typings/shared").ListenModeEnum;
239
+ contentStyle: import("vue").CSSProperties;
240
+ }>;
241
+ __isFragment?: never;
242
+ __isTeleport?: never;
243
+ __isSuspense?: never;
244
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
245
+ preTime: {
246
+ type: StringConstructor;
247
+ default: string;
248
+ };
249
+ realTime: {
250
+ type: StringConstructor;
251
+ default: string;
252
+ };
253
+ textCount: {
254
+ type: NumberConstructor;
255
+ default: number;
256
+ };
257
+ listenAnchorId: {
258
+ type: NumberConstructor;
259
+ default: number;
260
+ };
261
+ listenMode: {
262
+ type: import("vue").PropType<import("./typings/shared").ListenModeEnum>;
263
+ default: string;
264
+ };
265
+ placeholder: {
266
+ type: StringConstructor;
267
+ default: string;
268
+ };
269
+ simple: {
270
+ type: BooleanConstructor;
271
+ default: boolean;
272
+ };
273
+ maxLength: {
274
+ type: NumberConstructor;
275
+ default: number;
276
+ };
277
+ showWordLimit: {
278
+ type: BooleanConstructor;
279
+ default: boolean;
280
+ };
281
+ disabled: {
282
+ type: BooleanConstructor;
283
+ default: boolean;
284
+ };
285
+ class: {
286
+ type: (ArrayConstructor | StringConstructor)[];
287
+ default: () => never[];
288
+ };
289
+ contentStyle: {
290
+ type: import("vue").PropType<import("vue").CSSProperties>;
291
+ default: () => {};
292
+ };
293
+ }>> & Readonly<{
294
+ onChange?: ((contentLength: number) => any) | undefined;
295
+ "onUpdate:textCount"?: ((value: number) => any) | undefined;
296
+ onAnchorListen?: ((value: import("./typings/index").IAnchor, text: string) => any) | undefined;
297
+ onAnchorRemove?: ((value: import("./typings/index").IAnchor) => any) | undefined;
298
+ onAnchorListenStop?: ((value: import("./typings/index").IAnchor) => any) | undefined;
299
+ }>, {
300
+ action: import("vue").Ref<import("./intersection/hooks/use-editor").EditorAction | undefined, import("./intersection/hooks/use-editor").EditorAction | undefined>;
301
+ innerRender: () => import("vue/jsx-runtime").JSX.Element;
302
+ innerGetContent: (_options?: import("./intersection/components/editor/context").ContentOptions) => string;
303
+ innerSetContent: (content: string) => Promise<void>;
304
+ innerAppendContent: (content: string | string[]) => Promise<void>;
305
+ innerGetTextContent: () => string[];
306
+ innerInsertContent: (content: string | Node) => void;
307
+ innerDeleteContent: () => void;
308
+ innerUpdateContent: (content: string | Node) => void;
309
+ innerIsCaret: () => boolean;
310
+ innerIsRange: () => boolean;
311
+ innerIsSelectionInDifferentParas: () => boolean;
312
+ innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
313
+ innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
314
+ innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
315
+ innerIsAllMarkedByAnchor: () => boolean;
316
+ innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
317
+ innerClearContent: () => void;
318
+ innerRenderHightlight: (matchingContent: string) => void;
319
+ innerUnrenderHightlight: () => void;
320
+ }, {}, {}, {
321
+ getContent(options?: import("./intersection/components/editor/context").ContentOptions): string;
322
+ getHtml(options: import("./intersection/components/editor/context").ContentOptions): string;
323
+ setContent(content: string): Promise<void>;
324
+ setHtml(content: string): Promise<void>;
325
+ appendContent(content: string | string[]): Promise<void>;
326
+ getTextContent(): string[];
327
+ insertContent(content: string | Node): void;
328
+ deleteContent(): void;
329
+ updateContent(content: string | Node): void;
330
+ isCaret(): boolean;
331
+ isRange(): boolean;
332
+ isSelectionInDifferentParas(): boolean;
333
+ isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
334
+ getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
335
+ getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
336
+ isAllMarkedByAnchor(): boolean;
337
+ addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
338
+ clearContent(): void;
339
+ clear(): Promise<void>;
340
+ renderHighlight(matchingContent: string): void;
341
+ unrenderHighlight(): void;
342
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
343
+ change: (contentLength: number) => true;
344
+ 'update:textCount': (value: number) => true;
345
+ anchorListen: (value: import("./typings/index").IAnchor, text: string) => true;
346
+ anchorListenStop: (value: import("./typings/index").IAnchor) => true;
347
+ anchorRemove: (value: import("./typings/index").IAnchor) => true;
348
+ }, string, {
349
+ class: string | unknown[];
350
+ disabled: boolean;
351
+ placeholder: string;
352
+ maxLength: number;
353
+ showWordLimit: boolean;
354
+ simple: boolean;
355
+ preTime: string;
356
+ realTime: string;
357
+ textCount: number;
358
+ listenAnchorId: number;
359
+ listenMode: import("./typings/shared").ListenModeEnum;
360
+ contentStyle: import("vue").CSSProperties;
361
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
362
+ install: (app: App, options?: Record<string, any>) => void;
363
+ } & {
364
+ install: (app: App) => void;
365
+ };
366
+ export type TinyPeonyInstance = InstanceType<typeof EditorContainer>;
367
+ export default TinyPeony;