@linker-design-plus/tiny-peony 1.4.17 → 1.4.18
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 +5 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/intersection/components/editor/editor.d.ts +2 -0
- package/dist/intersection/components/editor/index.d.ts +5 -0
- package/dist/intersection/hooks/use-editor.d.ts +1 -1
- package/package.json +1 -1
|
@@ -125,6 +125,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
125
125
|
anchorListen: (value: IAnchor, text: string) => true;
|
|
126
126
|
anchorListenStop: (value: IAnchor) => true;
|
|
127
127
|
anchorRemove: (value: IAnchor) => true;
|
|
128
|
+
clear: () => true;
|
|
128
129
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
129
130
|
preTime: {
|
|
130
131
|
type: StringConstructor;
|
|
@@ -197,6 +198,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
197
198
|
};
|
|
198
199
|
}>> & Readonly<{
|
|
199
200
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
201
|
+
onClear?: (() => any) | undefined;
|
|
200
202
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
201
203
|
onAnchorListen?: ((value: IAnchor, text: string) => any) | undefined;
|
|
202
204
|
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;
|
|
@@ -125,6 +126,7 @@ declare const EditorContainer: {
|
|
|
125
126
|
anchorListen: (value: import("../../..").IAnchor, text: string) => true;
|
|
126
127
|
anchorListenStop: (value: import("../../..").IAnchor) => true;
|
|
127
128
|
anchorRemove: (value: import("../../..").IAnchor) => true;
|
|
129
|
+
clear: () => true;
|
|
128
130
|
}, import("vue").PublicProps, {
|
|
129
131
|
highlight: boolean;
|
|
130
132
|
class: string | unknown[];
|
|
@@ -214,6 +216,7 @@ declare const EditorContainer: {
|
|
|
214
216
|
};
|
|
215
217
|
}>> & Readonly<{
|
|
216
218
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
219
|
+
onClear?: (() => any) | undefined;
|
|
217
220
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
218
221
|
onAnchorListen?: ((value: import("../../..").IAnchor, text: string) => any) | undefined;
|
|
219
222
|
onAnchorRemove?: ((value: import("../../..").IAnchor) => any) | undefined;
|
|
@@ -351,6 +354,7 @@ declare const EditorContainer: {
|
|
|
351
354
|
};
|
|
352
355
|
}>> & Readonly<{
|
|
353
356
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
357
|
+
onClear?: (() => any) | undefined;
|
|
354
358
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
355
359
|
onAnchorListen?: ((value: import("../../..").IAnchor, text: string) => any) | undefined;
|
|
356
360
|
onAnchorRemove?: ((value: import("../../..").IAnchor) => any) | undefined;
|
|
@@ -408,6 +412,7 @@ declare const EditorContainer: {
|
|
|
408
412
|
anchorListen: (value: import("../../..").IAnchor, text: string) => true;
|
|
409
413
|
anchorListenStop: (value: import("../../..").IAnchor) => true;
|
|
410
414
|
anchorRemove: (value: import("../../..").IAnchor) => true;
|
|
415
|
+
clear: () => true;
|
|
411
416
|
}, string, {
|
|
412
417
|
highlight: boolean;
|
|
413
418
|
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>;
|