@linker-design-plus/tiny-peony 1.4.17 → 1.4.19
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/index.d.ts +11 -0
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +781 -774
- package/dist/index.mjs.map +1 -1
- package/dist/intersection/components/editor/editor.d.ts +4 -0
- package/dist/intersection/components/editor/index.d.ts +11 -0
- package/dist/intersection/hooks/use-editor.d.ts +2 -1
- package/package.json +1 -1
|
@@ -86,6 +86,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
86
86
|
innerIsRange: () => boolean;
|
|
87
87
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
88
88
|
innerIsSelectionContainsTag: (type: PluginFlag) => boolean;
|
|
89
|
+
innerConvertToContent: (node: HTMLElement | Text) => string | undefined;
|
|
89
90
|
innerGetAnchorTtsMark: (anchor: IAnchor, startFromCursor?: boolean) => string;
|
|
90
91
|
innerGetAnchorTtsEmotionAndRole: (anchor: IAnchor) => [string, string | undefined];
|
|
91
92
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
@@ -109,6 +110,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
109
110
|
isRange(): boolean;
|
|
110
111
|
isSelectionInDifferentParas(): boolean;
|
|
111
112
|
isSelectionContainsTag(type: PluginFlag): boolean;
|
|
113
|
+
convertToContent(node: HTMLElement | Text): string | undefined;
|
|
112
114
|
getAnchorTtsMark(anchor: IAnchor, startFromCursor?: boolean): string;
|
|
113
115
|
getAnchorTtsEmotionAndRole(anchor: IAnchor): [string, string | undefined];
|
|
114
116
|
isAllMarkedByAnchor(): boolean;
|
|
@@ -125,6 +127,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
125
127
|
anchorListen: (value: IAnchor, text: string) => true;
|
|
126
128
|
anchorListenStop: (value: IAnchor) => true;
|
|
127
129
|
anchorRemove: (value: IAnchor) => true;
|
|
130
|
+
clear: () => true;
|
|
128
131
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
129
132
|
preTime: {
|
|
130
133
|
type: StringConstructor;
|
|
@@ -197,6 +200,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
197
200
|
};
|
|
198
201
|
}>> & Readonly<{
|
|
199
202
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
203
|
+
onClear?: (() => any) | undefined;
|
|
200
204
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
201
205
|
onAnchorListen?: ((value: IAnchor, text: string) => any) | undefined;
|
|
202
206
|
onAnchorRemove?: ((value: IAnchor) => any) | undefined;
|
|
@@ -68,6 +68,7 @@ declare const EditorContainer: {
|
|
|
68
68
|
};
|
|
69
69
|
}>> & Readonly<{
|
|
70
70
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
71
|
+
onClear?: (() => any) | undefined;
|
|
71
72
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
72
73
|
onAnchorListen?: ((value: import("../../..").IAnchor, text: string) => any) | undefined;
|
|
73
74
|
onAnchorRemove?: ((value: import("../../..").IAnchor) => any) | undefined;
|
|
@@ -86,6 +87,7 @@ declare const EditorContainer: {
|
|
|
86
87
|
innerIsRange: () => boolean;
|
|
87
88
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
88
89
|
innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
|
|
90
|
+
innerConvertToContent: (node: HTMLElement | Text) => string | undefined;
|
|
89
91
|
innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
|
|
90
92
|
innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
|
|
91
93
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
@@ -109,6 +111,7 @@ declare const EditorContainer: {
|
|
|
109
111
|
isRange(): boolean;
|
|
110
112
|
isSelectionInDifferentParas(): boolean;
|
|
111
113
|
isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
|
|
114
|
+
convertToContent(node: HTMLElement | Text): string | undefined;
|
|
112
115
|
getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
|
|
113
116
|
getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
|
|
114
117
|
isAllMarkedByAnchor(): boolean;
|
|
@@ -125,6 +128,7 @@ declare const EditorContainer: {
|
|
|
125
128
|
anchorListen: (value: import("../../..").IAnchor, text: string) => true;
|
|
126
129
|
anchorListenStop: (value: import("../../..").IAnchor) => true;
|
|
127
130
|
anchorRemove: (value: import("../../..").IAnchor) => true;
|
|
131
|
+
clear: () => true;
|
|
128
132
|
}, import("vue").PublicProps, {
|
|
129
133
|
highlight: boolean;
|
|
130
134
|
class: string | unknown[];
|
|
@@ -214,6 +218,7 @@ declare const EditorContainer: {
|
|
|
214
218
|
};
|
|
215
219
|
}>> & Readonly<{
|
|
216
220
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
221
|
+
onClear?: (() => any) | undefined;
|
|
217
222
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
218
223
|
onAnchorListen?: ((value: import("../../..").IAnchor, text: string) => any) | undefined;
|
|
219
224
|
onAnchorRemove?: ((value: import("../../..").IAnchor) => any) | undefined;
|
|
@@ -232,6 +237,7 @@ declare const EditorContainer: {
|
|
|
232
237
|
innerIsRange: () => boolean;
|
|
233
238
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
234
239
|
innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
|
|
240
|
+
innerConvertToContent: (node: HTMLElement | Text) => string | undefined;
|
|
235
241
|
innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
|
|
236
242
|
innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
|
|
237
243
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
@@ -255,6 +261,7 @@ declare const EditorContainer: {
|
|
|
255
261
|
isRange(): boolean;
|
|
256
262
|
isSelectionInDifferentParas(): boolean;
|
|
257
263
|
isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
|
|
264
|
+
convertToContent(node: HTMLElement | Text): string | undefined;
|
|
258
265
|
getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
|
|
259
266
|
getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
|
|
260
267
|
isAllMarkedByAnchor(): boolean;
|
|
@@ -351,6 +358,7 @@ declare const EditorContainer: {
|
|
|
351
358
|
};
|
|
352
359
|
}>> & Readonly<{
|
|
353
360
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
361
|
+
onClear?: (() => any) | undefined;
|
|
354
362
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
355
363
|
onAnchorListen?: ((value: import("../../..").IAnchor, text: string) => any) | undefined;
|
|
356
364
|
onAnchorRemove?: ((value: import("../../..").IAnchor) => any) | undefined;
|
|
@@ -369,6 +377,7 @@ declare const EditorContainer: {
|
|
|
369
377
|
innerIsRange: () => boolean;
|
|
370
378
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
371
379
|
innerIsSelectionContainsTag: (type: import("../../..").PluginFlag) => boolean;
|
|
380
|
+
innerConvertToContent: (node: HTMLElement | Text) => string | undefined;
|
|
372
381
|
innerGetAnchorTtsMark: (anchor: import("../../..").IAnchor, startFromCursor?: boolean) => string;
|
|
373
382
|
innerGetAnchorTtsEmotionAndRole: (anchor: import("../../..").IAnchor) => [string, string | undefined];
|
|
374
383
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
@@ -392,6 +401,7 @@ declare const EditorContainer: {
|
|
|
392
401
|
isRange(): boolean;
|
|
393
402
|
isSelectionInDifferentParas(): boolean;
|
|
394
403
|
isSelectionContainsTag(type: import("../../..").PluginFlag): boolean;
|
|
404
|
+
convertToContent(node: HTMLElement | Text): string | undefined;
|
|
395
405
|
getAnchorTtsMark(anchor: import("../../..").IAnchor, startFromCursor?: boolean): string;
|
|
396
406
|
getAnchorTtsEmotionAndRole(anchor: import("../../..").IAnchor): [string, string | undefined];
|
|
397
407
|
isAllMarkedByAnchor(): boolean;
|
|
@@ -408,6 +418,7 @@ declare const EditorContainer: {
|
|
|
408
418
|
anchorListen: (value: import("../../..").IAnchor, text: string) => true;
|
|
409
419
|
anchorListenStop: (value: import("../../..").IAnchor) => true;
|
|
410
420
|
anchorRemove: (value: import("../../..").IAnchor) => true;
|
|
421
|
+
clear: () => true;
|
|
411
422
|
}, string, {
|
|
412
423
|
highlight: boolean;
|
|
413
424
|
class: string | unknown[];
|
|
@@ -28,7 +28,7 @@ export interface AnchorData {
|
|
|
28
28
|
id: number;
|
|
29
29
|
}
|
|
30
30
|
export type AnchorMap = Record<string, AnchorData[]>;
|
|
31
|
-
export declare const useEditor: (editor: Ref<HTMLDivElement | undefined>, props: EditorComponentProps, emit: ((event: "change", contentLength: number) => void) & ((event: "update:textCount", value: number) => void) & ((event: "anchorListen", value: IAnchor, text: string) => void) & ((event: "anchorRemove", value: IAnchor) => void)) => {
|
|
31
|
+
export declare const useEditor: (editor: Ref<HTMLDivElement | undefined>, props: EditorComponentProps, emit: ((event: "change", contentLength: number) => void) & ((event: "update:textCount", value: number) => void) & ((event: "anchorListen", value: IAnchor, text: string) => void) & ((event: "anchorRemove", value: IAnchor) => void) & ((event: "clear") => void)) => {
|
|
32
32
|
editorCore: Ref<EditorCore<[]> | undefined, EditorCore<[]> | undefined>;
|
|
33
33
|
editorAction: Ref<EditorAction | undefined, EditorAction | undefined>;
|
|
34
34
|
count: Ref<number, number>;
|
|
@@ -44,6 +44,7 @@ export declare const useEditor: (editor: Ref<HTMLDivElement | undefined>, props:
|
|
|
44
44
|
isRange: () => boolean;
|
|
45
45
|
isSelectionInDifferentParas: () => boolean;
|
|
46
46
|
isSelectionContainsTag: (type: PluginFlag) => boolean;
|
|
47
|
+
convertToContent: (node: HTMLElement | Text) => string | undefined;
|
|
47
48
|
getAnchorTtsMark: (anchor: IAnchor, startFromCursor?: boolean) => string;
|
|
48
49
|
getAnchorTtsEmotionAndRole: (anchor: IAnchor) => [string, string | undefined];
|
|
49
50
|
isAllMarkedByAnchor: () => boolean;
|