@linker-design-plus/tiny-peony 1.4.13 → 1.4.16
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/contentManager/contentManager.d.ts +0 -5
- package/dist/index.d.ts +27 -78
- package/dist/index.js +34 -42
- package/dist/index.mjs +3065 -4577
- package/dist/intersection/components/editor/context.d.ts +2 -128
- package/dist/intersection/components/editor/editor.d.ts +13 -53
- package/dist/intersection/components/editor/index.d.ts +27 -78
- package/dist/intersection/hooks/use-editor.d.ts +2 -3
- package/dist/plugins/AnchorTagPlugin/plugin.d.ts +0 -4
- package/dist/plugins/HomophonesTagPlugin/homophoner.vue.d.ts +2 -2
- package/dist/plugins/PronunciationTagPlugin/pronunciationor.vue.d.ts +2 -2
- package/dist/tiny-peony.css +1 -1
- package/dist/typings/actions/i-anchor.d.ts +0 -8
- package/dist/typings/intersection/editor.d.ts +3 -12
- package/dist/utils/dom.d.ts +1 -19
- package/dist/utils/shared.d.ts +0 -11
- package/package.json +1 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/intersection/components/modals/Refine/RefineContent.d.ts +0 -20
- package/dist/intersection/components/modals/Refine/RefineGenerator.d.ts +0 -19
- package/dist/intersection/components/modals/Refine/RefineInput.d.ts +0 -18
- package/dist/intersection/components/modals/Refine/RefineShortcut.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/RefineToolbar.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/context.d.ts +0 -128
- package/dist/intersection/components/modals/Refine/icons/abort.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/copy.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/delete.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/expand.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/inexpand.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/insert.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/moreShortcut.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/optimism.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/prefix.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/refresh.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/replace.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/icons/send.vue.d.ts +0 -2
- package/dist/intersection/components/modals/Refine/index.d.ts +0 -3
- package/dist/intersection/components/modals/Refine/use-modal-pos.d.ts +0 -10
- package/dist/intersection/components/modals/Refine/use-range-highlight.d.ts +0 -6
- package/dist/intersection/hooks/use-copy.d.ts +0 -4
- package/dist/intersection/hooks/use-state.d.ts +0 -4
|
@@ -18,9 +18,4 @@ export declare class ContentManager extends IContentManager {
|
|
|
18
18
|
private _insert;
|
|
19
19
|
private _delete;
|
|
20
20
|
private _update;
|
|
21
|
-
/**
|
|
22
|
-
* 将 fragment 插入到 range 所在 contenteditable 的上一个 <p> 元素末尾
|
|
23
|
-
* @param {Range} range - 当前的 Range 对象
|
|
24
|
-
*/
|
|
25
|
-
private _calcRange;
|
|
26
21
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,10 +7,6 @@ declare const TinyPeony: {
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
realTime: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
textCount: {
|
|
15
11
|
type: NumberConstructor;
|
|
16
12
|
default: number;
|
|
@@ -20,8 +16,8 @@ declare const TinyPeony: {
|
|
|
20
16
|
default: undefined;
|
|
21
17
|
};
|
|
22
18
|
listenAnchorId: {
|
|
23
|
-
type:
|
|
24
|
-
default:
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
25
21
|
};
|
|
26
22
|
listenMode: {
|
|
27
23
|
type: import("vue").PropType<import("./typings/shared").ListenModeEnum>;
|
|
@@ -55,17 +51,10 @@ declare const TinyPeony: {
|
|
|
55
51
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
56
52
|
default: () => {};
|
|
57
53
|
};
|
|
58
|
-
|
|
54
|
+
showPreTime: {
|
|
59
55
|
type: BooleanConstructor;
|
|
60
56
|
default: boolean;
|
|
61
57
|
};
|
|
62
|
-
refineContext: {
|
|
63
|
-
type: import("vue").PropType<import("./intersection/components/editor/context").RefineContext>;
|
|
64
|
-
};
|
|
65
|
-
editorHeight: {
|
|
66
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
67
|
-
default: string;
|
|
68
|
-
};
|
|
69
58
|
}>> & Readonly<{
|
|
70
59
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
71
60
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
@@ -86,13 +75,11 @@ declare const TinyPeony: {
|
|
|
86
75
|
innerIsRange: () => boolean;
|
|
87
76
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
88
77
|
innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
|
|
89
|
-
innerGetAnchorTtsMark: (
|
|
90
|
-
innerGetAnchorTtsEmotionAndRole: (
|
|
78
|
+
innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
|
|
79
|
+
innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
|
|
91
80
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
92
81
|
innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
|
|
93
|
-
innerUpdateAnchor: (newAnchor: import("./typings/index").IAnchor) => void;
|
|
94
82
|
innerClearContent: () => void;
|
|
95
|
-
innerInsertContentAtCursor: (_content: string | string[]) => void;
|
|
96
83
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
97
84
|
innerUnrenderHightlight: () => void;
|
|
98
85
|
}, {}, {}, {
|
|
@@ -109,13 +96,11 @@ declare const TinyPeony: {
|
|
|
109
96
|
isRange(): boolean;
|
|
110
97
|
isSelectionInDifferentParas(): boolean;
|
|
111
98
|
isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
|
|
112
|
-
getAnchorTtsMark(
|
|
113
|
-
getAnchorTtsEmotionAndRole(
|
|
99
|
+
getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
|
|
100
|
+
getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
|
|
114
101
|
isAllMarkedByAnchor(): boolean;
|
|
115
102
|
addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
|
|
116
|
-
updateAnchor(anchor: import("./typings/index").IAnchor): void;
|
|
117
103
|
clearContent(): void;
|
|
118
|
-
insertContentAtCursor(_content: string | string[]): void;
|
|
119
104
|
clear(): Promise<void>;
|
|
120
105
|
renderHighlight(matchingContent: string): void;
|
|
121
106
|
unrenderHighlight(): void;
|
|
@@ -134,13 +119,11 @@ declare const TinyPeony: {
|
|
|
134
119
|
showWordLimit: boolean;
|
|
135
120
|
simple: boolean;
|
|
136
121
|
preTime: string;
|
|
137
|
-
realTime: string;
|
|
138
122
|
textCount: number;
|
|
139
|
-
listenAnchorId:
|
|
123
|
+
listenAnchorId: number;
|
|
140
124
|
listenMode: import("./typings/shared").ListenModeEnum;
|
|
141
125
|
contentStyle: import("vue").CSSProperties;
|
|
142
|
-
|
|
143
|
-
editorHeight: string | number;
|
|
126
|
+
showPreTime: boolean;
|
|
144
127
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
145
128
|
P: {};
|
|
146
129
|
B: {};
|
|
@@ -153,10 +136,6 @@ declare const TinyPeony: {
|
|
|
153
136
|
type: StringConstructor;
|
|
154
137
|
default: string;
|
|
155
138
|
};
|
|
156
|
-
realTime: {
|
|
157
|
-
type: StringConstructor;
|
|
158
|
-
default: string;
|
|
159
|
-
};
|
|
160
139
|
textCount: {
|
|
161
140
|
type: NumberConstructor;
|
|
162
141
|
default: number;
|
|
@@ -166,8 +145,8 @@ declare const TinyPeony: {
|
|
|
166
145
|
default: undefined;
|
|
167
146
|
};
|
|
168
147
|
listenAnchorId: {
|
|
169
|
-
type:
|
|
170
|
-
default:
|
|
148
|
+
type: NumberConstructor;
|
|
149
|
+
default: number;
|
|
171
150
|
};
|
|
172
151
|
listenMode: {
|
|
173
152
|
type: import("vue").PropType<import("./typings/shared").ListenModeEnum>;
|
|
@@ -201,17 +180,10 @@ declare const TinyPeony: {
|
|
|
201
180
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
202
181
|
default: () => {};
|
|
203
182
|
};
|
|
204
|
-
|
|
183
|
+
showPreTime: {
|
|
205
184
|
type: BooleanConstructor;
|
|
206
185
|
default: boolean;
|
|
207
186
|
};
|
|
208
|
-
refineContext: {
|
|
209
|
-
type: import("vue").PropType<import("./intersection/components/editor/context").RefineContext>;
|
|
210
|
-
};
|
|
211
|
-
editorHeight: {
|
|
212
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
213
|
-
default: string;
|
|
214
|
-
};
|
|
215
187
|
}>> & Readonly<{
|
|
216
188
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
217
189
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
@@ -232,13 +204,11 @@ declare const TinyPeony: {
|
|
|
232
204
|
innerIsRange: () => boolean;
|
|
233
205
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
234
206
|
innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
|
|
235
|
-
innerGetAnchorTtsMark: (
|
|
236
|
-
innerGetAnchorTtsEmotionAndRole: (
|
|
207
|
+
innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
|
|
208
|
+
innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
|
|
237
209
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
238
210
|
innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
|
|
239
|
-
innerUpdateAnchor: (newAnchor: import("./typings/index").IAnchor) => void;
|
|
240
211
|
innerClearContent: () => void;
|
|
241
|
-
innerInsertContentAtCursor: (_content: string | string[]) => void;
|
|
242
212
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
243
213
|
innerUnrenderHightlight: () => void;
|
|
244
214
|
}, {}, {}, {
|
|
@@ -255,13 +225,11 @@ declare const TinyPeony: {
|
|
|
255
225
|
isRange(): boolean;
|
|
256
226
|
isSelectionInDifferentParas(): boolean;
|
|
257
227
|
isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
|
|
258
|
-
getAnchorTtsMark(
|
|
259
|
-
getAnchorTtsEmotionAndRole(
|
|
228
|
+
getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
|
|
229
|
+
getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
|
|
260
230
|
isAllMarkedByAnchor(): boolean;
|
|
261
231
|
addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
|
|
262
|
-
updateAnchor(anchor: import("./typings/index").IAnchor): void;
|
|
263
232
|
clearContent(): void;
|
|
264
|
-
insertContentAtCursor(_content: string | string[]): void;
|
|
265
233
|
clear(): Promise<void>;
|
|
266
234
|
renderHighlight(matchingContent: string): void;
|
|
267
235
|
unrenderHighlight(): void;
|
|
@@ -274,13 +242,11 @@ declare const TinyPeony: {
|
|
|
274
242
|
showWordLimit: boolean;
|
|
275
243
|
simple: boolean;
|
|
276
244
|
preTime: string;
|
|
277
|
-
realTime: string;
|
|
278
245
|
textCount: number;
|
|
279
|
-
listenAnchorId:
|
|
246
|
+
listenAnchorId: number;
|
|
280
247
|
listenMode: import("./typings/shared").ListenModeEnum;
|
|
281
248
|
contentStyle: import("vue").CSSProperties;
|
|
282
|
-
|
|
283
|
-
editorHeight: string | number;
|
|
249
|
+
showPreTime: boolean;
|
|
284
250
|
}>;
|
|
285
251
|
__isFragment?: never;
|
|
286
252
|
__isTeleport?: never;
|
|
@@ -290,10 +256,6 @@ declare const TinyPeony: {
|
|
|
290
256
|
type: StringConstructor;
|
|
291
257
|
default: string;
|
|
292
258
|
};
|
|
293
|
-
realTime: {
|
|
294
|
-
type: StringConstructor;
|
|
295
|
-
default: string;
|
|
296
|
-
};
|
|
297
259
|
textCount: {
|
|
298
260
|
type: NumberConstructor;
|
|
299
261
|
default: number;
|
|
@@ -303,8 +265,8 @@ declare const TinyPeony: {
|
|
|
303
265
|
default: undefined;
|
|
304
266
|
};
|
|
305
267
|
listenAnchorId: {
|
|
306
|
-
type:
|
|
307
|
-
default:
|
|
268
|
+
type: NumberConstructor;
|
|
269
|
+
default: number;
|
|
308
270
|
};
|
|
309
271
|
listenMode: {
|
|
310
272
|
type: import("vue").PropType<import("./typings/shared").ListenModeEnum>;
|
|
@@ -338,17 +300,10 @@ declare const TinyPeony: {
|
|
|
338
300
|
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
339
301
|
default: () => {};
|
|
340
302
|
};
|
|
341
|
-
|
|
303
|
+
showPreTime: {
|
|
342
304
|
type: BooleanConstructor;
|
|
343
305
|
default: boolean;
|
|
344
306
|
};
|
|
345
|
-
refineContext: {
|
|
346
|
-
type: import("vue").PropType<import("./intersection/components/editor/context").RefineContext>;
|
|
347
|
-
};
|
|
348
|
-
editorHeight: {
|
|
349
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
350
|
-
default: string;
|
|
351
|
-
};
|
|
352
307
|
}>> & Readonly<{
|
|
353
308
|
onChange?: ((contentLength: number) => any) | undefined;
|
|
354
309
|
"onUpdate:textCount"?: ((value: number) => any) | undefined;
|
|
@@ -369,13 +324,11 @@ declare const TinyPeony: {
|
|
|
369
324
|
innerIsRange: () => boolean;
|
|
370
325
|
innerIsSelectionInDifferentParas: () => boolean;
|
|
371
326
|
innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
|
|
372
|
-
innerGetAnchorTtsMark: (
|
|
373
|
-
innerGetAnchorTtsEmotionAndRole: (
|
|
327
|
+
innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
|
|
328
|
+
innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
|
|
374
329
|
innerIsAllMarkedByAnchor: () => boolean;
|
|
375
330
|
innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
|
|
376
|
-
innerUpdateAnchor: (newAnchor: import("./typings/index").IAnchor) => void;
|
|
377
331
|
innerClearContent: () => void;
|
|
378
|
-
innerInsertContentAtCursor: (_content: string | string[]) => void;
|
|
379
332
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
380
333
|
innerUnrenderHightlight: () => void;
|
|
381
334
|
}, {}, {}, {
|
|
@@ -392,13 +345,11 @@ declare const TinyPeony: {
|
|
|
392
345
|
isRange(): boolean;
|
|
393
346
|
isSelectionInDifferentParas(): boolean;
|
|
394
347
|
isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
|
|
395
|
-
getAnchorTtsMark(
|
|
396
|
-
getAnchorTtsEmotionAndRole(
|
|
348
|
+
getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
|
|
349
|
+
getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
|
|
397
350
|
isAllMarkedByAnchor(): boolean;
|
|
398
351
|
addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
|
|
399
|
-
updateAnchor(anchor: import("./typings/index").IAnchor): void;
|
|
400
352
|
clearContent(): void;
|
|
401
|
-
insertContentAtCursor(_content: string | string[]): void;
|
|
402
353
|
clear(): Promise<void>;
|
|
403
354
|
renderHighlight(matchingContent: string): void;
|
|
404
355
|
unrenderHighlight(): void;
|
|
@@ -417,13 +368,11 @@ declare const TinyPeony: {
|
|
|
417
368
|
showWordLimit: boolean;
|
|
418
369
|
simple: boolean;
|
|
419
370
|
preTime: string;
|
|
420
|
-
realTime: string;
|
|
421
371
|
textCount: number;
|
|
422
|
-
listenAnchorId:
|
|
372
|
+
listenAnchorId: number;
|
|
423
373
|
listenMode: import("./typings/shared").ListenModeEnum;
|
|
424
374
|
contentStyle: import("vue").CSSProperties;
|
|
425
|
-
|
|
426
|
-
editorHeight: string | number;
|
|
375
|
+
showPreTime: boolean;
|
|
427
376
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
428
377
|
install: (app: App, options?: Record<string, any>) => void;
|
|
429
378
|
} & {
|