@linker-design-plus/tiny-peony 1.4.33 → 1.4.35
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/foundation/editorManager/editor.d.ts +2 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +24 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2350 -2324
- package/dist/index.mjs.map +1 -1
- package/dist/intersection/components/editor/editor.d.ts +17 -0
- package/dist/intersection/components/editor/index.d.ts +21 -0
- package/dist/intersection/hooks/use-editor.d.ts +1 -0
- package/dist/tiny-peony.css +1 -1
- package/dist/typings/intersection/editor.d.ts +4 -0
- package/dist/typings/status/i-editor-manager.d.ts +1 -0
- package/dist/utils/dom.d.ts +9 -0
- package/package.json +2 -2
|
@@ -8,6 +8,7 @@ export type PluginMap<Plugins extends PluginConstructor[]> = {
|
|
|
8
8
|
export interface EditorCoreOptions<Plugins extends PluginConstructor<IPlugin>[]> {
|
|
9
9
|
plugins?: Plugins;
|
|
10
10
|
maxLength: number;
|
|
11
|
+
wordLimitTip?: string;
|
|
11
12
|
onChange?: (contentLength: number) => void;
|
|
12
13
|
onUndoChange?: (anchorContent: string) => void;
|
|
13
14
|
}
|
|
@@ -17,6 +18,7 @@ export declare class EditorCore<Plugins extends PluginConstructor[] = []> extend
|
|
|
17
18
|
private _observer;
|
|
18
19
|
private _onchange?;
|
|
19
20
|
readonly _editorElement: HTMLElement;
|
|
21
|
+
readonly wordLimitTip: string;
|
|
20
22
|
readonly _uid: string;
|
|
21
23
|
content: IContentManager;
|
|
22
24
|
cursor: ICursorManager;
|
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,10 @@ declare const TinyPeony: {
|
|
|
66
66
|
type: BooleanConstructor;
|
|
67
67
|
default: boolean;
|
|
68
68
|
};
|
|
69
|
+
wordLimitTip: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
69
73
|
}>> & Readonly<{
|
|
70
74
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
71
75
|
onClear?: (() => any) | undefined;
|
|
@@ -97,6 +101,7 @@ declare const TinyPeony: {
|
|
|
97
101
|
innerInsertContentAtCursor: (_content: string | string[], func?: (canInsert: boolean) => void) => void;
|
|
98
102
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
99
103
|
innerUnrenderHightlight: () => void;
|
|
104
|
+
innerIsWordLengthExceeded: () => boolean;
|
|
100
105
|
}, {}, {}, {
|
|
101
106
|
getContent(options?: import("./intersection/components/editor/context").ContentOptions): string;
|
|
102
107
|
getHtml(options: import("./intersection/components/editor/context").ContentOptions): string;
|
|
@@ -122,6 +127,7 @@ declare const TinyPeony: {
|
|
|
122
127
|
clear(): Promise<void>;
|
|
123
128
|
renderHighlight(matchingContent: string): void;
|
|
124
129
|
unrenderHighlight(): void;
|
|
130
|
+
isWordLengthExceeded(): boolean;
|
|
125
131
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
126
132
|
change: (contentLength: number) => true;
|
|
127
133
|
'update:textCount': (value: number) => true;
|
|
@@ -137,6 +143,7 @@ declare const TinyPeony: {
|
|
|
137
143
|
maxLength: number;
|
|
138
144
|
showWordLimit: boolean;
|
|
139
145
|
simple: boolean;
|
|
146
|
+
wordLimitTip: string;
|
|
140
147
|
preTime: string;
|
|
141
148
|
textCount: number;
|
|
142
149
|
listenAnchorId: string;
|
|
@@ -216,6 +223,10 @@ declare const TinyPeony: {
|
|
|
216
223
|
type: BooleanConstructor;
|
|
217
224
|
default: boolean;
|
|
218
225
|
};
|
|
226
|
+
wordLimitTip: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
219
230
|
}>> & Readonly<{
|
|
220
231
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
221
232
|
onClear?: (() => any) | undefined;
|
|
@@ -247,6 +258,7 @@ declare const TinyPeony: {
|
|
|
247
258
|
innerInsertContentAtCursor: (_content: string | string[], func?: (canInsert: boolean) => void) => void;
|
|
248
259
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
249
260
|
innerUnrenderHightlight: () => void;
|
|
261
|
+
innerIsWordLengthExceeded: () => boolean;
|
|
250
262
|
}, {}, {}, {
|
|
251
263
|
getContent(options?: import("./intersection/components/editor/context").ContentOptions): string;
|
|
252
264
|
getHtml(options: import("./intersection/components/editor/context").ContentOptions): string;
|
|
@@ -272,6 +284,7 @@ declare const TinyPeony: {
|
|
|
272
284
|
clear(): Promise<void>;
|
|
273
285
|
renderHighlight(matchingContent: string): void;
|
|
274
286
|
unrenderHighlight(): void;
|
|
287
|
+
isWordLengthExceeded(): boolean;
|
|
275
288
|
}, {
|
|
276
289
|
highlight: boolean;
|
|
277
290
|
class: string | unknown[];
|
|
@@ -280,6 +293,7 @@ declare const TinyPeony: {
|
|
|
280
293
|
maxLength: number;
|
|
281
294
|
showWordLimit: boolean;
|
|
282
295
|
simple: boolean;
|
|
296
|
+
wordLimitTip: string;
|
|
283
297
|
preTime: string;
|
|
284
298
|
textCount: number;
|
|
285
299
|
listenAnchorId: string;
|
|
@@ -356,6 +370,10 @@ declare const TinyPeony: {
|
|
|
356
370
|
type: BooleanConstructor;
|
|
357
371
|
default: boolean;
|
|
358
372
|
};
|
|
373
|
+
wordLimitTip: {
|
|
374
|
+
type: StringConstructor;
|
|
375
|
+
default: string;
|
|
376
|
+
};
|
|
359
377
|
}>> & Readonly<{
|
|
360
378
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
361
379
|
onClear?: (() => any) | undefined;
|
|
@@ -387,6 +405,7 @@ declare const TinyPeony: {
|
|
|
387
405
|
innerInsertContentAtCursor: (_content: string | string[], func?: (canInsert: boolean) => void) => void;
|
|
388
406
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
389
407
|
innerUnrenderHightlight: () => void;
|
|
408
|
+
innerIsWordLengthExceeded: () => boolean;
|
|
390
409
|
}, {}, {}, {
|
|
391
410
|
getContent(options?: import("./intersection/components/editor/context").ContentOptions): string;
|
|
392
411
|
getHtml(options: import("./intersection/components/editor/context").ContentOptions): string;
|
|
@@ -412,6 +431,7 @@ declare const TinyPeony: {
|
|
|
412
431
|
clear(): Promise<void>;
|
|
413
432
|
renderHighlight(matchingContent: string): void;
|
|
414
433
|
unrenderHighlight(): void;
|
|
434
|
+
isWordLengthExceeded(): boolean;
|
|
415
435
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
416
436
|
change: (contentLength: number) => true;
|
|
417
437
|
'update:textCount': (value: number) => true;
|
|
@@ -427,6 +447,7 @@ declare const TinyPeony: {
|
|
|
427
447
|
maxLength: number;
|
|
428
448
|
showWordLimit: boolean;
|
|
429
449
|
simple: boolean;
|
|
450
|
+
wordLimitTip: string;
|
|
430
451
|
preTime: string;
|
|
431
452
|
textCount: number;
|
|
432
453
|
listenAnchorId: string;
|