@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
package/dist/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ declare const TinyPeony: {
|
|
|
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("./typings/index").IAnchor, text: string) => any) | undefined;
|
|
73
74
|
onAnchorRemove?: ((value: import("./typings/index").IAnchor) => any) | undefined;
|
|
@@ -86,6 +87,7 @@ declare const TinyPeony: {
|
|
|
86
87
|
innerIsRange: () => boolean;
|
|
87
88
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
88
89
|
innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
|
|
90
|
+
innerConvertToContent: (node: HTMLElement | Text) => string | undefined;
|
|
89
91
|
innerGetAnchorTtsMark: (anchor: import("./typings/index").IAnchor, startFromCursor?: boolean) => string;
|
|
90
92
|
innerGetAnchorTtsEmotionAndRole: (anchor: import("./typings/index").IAnchor) => [string, string | undefined];
|
|
91
93
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
@@ -109,6 +111,7 @@ declare const TinyPeony: {
|
|
|
109
111
|
isRange(): boolean;
|
|
110
112
|
isSelectionInDifferentParas(): boolean;
|
|
111
113
|
isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
|
|
114
|
+
convertToContent(node: HTMLElement | Text): string | undefined;
|
|
112
115
|
getAnchorTtsMark(anchor: import("./typings/index").IAnchor, startFromCursor?: boolean): string;
|
|
113
116
|
getAnchorTtsEmotionAndRole(anchor: import("./typings/index").IAnchor): [string, string | undefined];
|
|
114
117
|
isAllMarkedByAnchor(): boolean;
|
|
@@ -125,6 +128,7 @@ declare const TinyPeony: {
|
|
|
125
128
|
anchorListen: (value: import("./typings/index").IAnchor, text: string) => true;
|
|
126
129
|
anchorListenStop: (value: import("./typings/index").IAnchor) => true;
|
|
127
130
|
anchorRemove: (value: import("./typings/index").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 TinyPeony: {
|
|
|
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("./typings/index").IAnchor, text: string) => any) | undefined;
|
|
219
224
|
onAnchorRemove?: ((value: import("./typings/index").IAnchor) => any) | undefined;
|
|
@@ -232,6 +237,7 @@ declare const TinyPeony: {
|
|
|
232
237
|
innerIsRange: () => boolean;
|
|
233
238
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
234
239
|
innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
|
|
240
|
+
innerConvertToContent: (node: HTMLElement | Text) => string | undefined;
|
|
235
241
|
innerGetAnchorTtsMark: (anchor: import("./typings/index").IAnchor, startFromCursor?: boolean) => string;
|
|
236
242
|
innerGetAnchorTtsEmotionAndRole: (anchor: import("./typings/index").IAnchor) => [string, string | undefined];
|
|
237
243
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
@@ -255,6 +261,7 @@ declare const TinyPeony: {
|
|
|
255
261
|
isRange(): boolean;
|
|
256
262
|
isSelectionInDifferentParas(): boolean;
|
|
257
263
|
isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
|
|
264
|
+
convertToContent(node: HTMLElement | Text): string | undefined;
|
|
258
265
|
getAnchorTtsMark(anchor: import("./typings/index").IAnchor, startFromCursor?: boolean): string;
|
|
259
266
|
getAnchorTtsEmotionAndRole(anchor: import("./typings/index").IAnchor): [string, string | undefined];
|
|
260
267
|
isAllMarkedByAnchor(): boolean;
|
|
@@ -351,6 +358,7 @@ declare const TinyPeony: {
|
|
|
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("./typings/index").IAnchor, text: string) => any) | undefined;
|
|
356
364
|
onAnchorRemove?: ((value: import("./typings/index").IAnchor) => any) | undefined;
|
|
@@ -369,6 +377,7 @@ declare const TinyPeony: {
|
|
|
369
377
|
innerIsRange: () => boolean;
|
|
370
378
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
371
379
|
innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
|
|
380
|
+
innerConvertToContent: (node: HTMLElement | Text) => string | undefined;
|
|
372
381
|
innerGetAnchorTtsMark: (anchor: import("./typings/index").IAnchor, startFromCursor?: boolean) => string;
|
|
373
382
|
innerGetAnchorTtsEmotionAndRole: (anchor: import("./typings/index").IAnchor) => [string, string | undefined];
|
|
374
383
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
@@ -392,6 +401,7 @@ declare const TinyPeony: {
|
|
|
392
401
|
isRange(): boolean;
|
|
393
402
|
isSelectionInDifferentParas(): boolean;
|
|
394
403
|
isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
|
|
404
|
+
convertToContent(node: HTMLElement | Text): string | undefined;
|
|
395
405
|
getAnchorTtsMark(anchor: import("./typings/index").IAnchor, startFromCursor?: boolean): string;
|
|
396
406
|
getAnchorTtsEmotionAndRole(anchor: import("./typings/index").IAnchor): [string, string | undefined];
|
|
397
407
|
isAllMarkedByAnchor(): boolean;
|
|
@@ -408,6 +418,7 @@ declare const TinyPeony: {
|
|
|
408
418
|
anchorListen: (value: import("./typings/index").IAnchor, text: string) => true;
|
|
409
419
|
anchorListenStop: (value: import("./typings/index").IAnchor) => true;
|
|
410
420
|
anchorRemove: (value: import("./typings/index").IAnchor) => true;
|
|
421
|
+
clear: () => true;
|
|
411
422
|
}, string, {
|
|
412
423
|
highlight: boolean;
|
|
413
424
|
class: string | unknown[];
|