@linker-design-plus/tiny-peony 1.4.2 → 1.4.4

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 CHANGED
@@ -86,10 +86,11 @@ declare const TinyPeony: {
86
86
  innerIsRange: () => boolean;
87
87
  innerIsSelectionInDifferentParas: () => boolean;
88
88
  innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
89
- innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
90
- innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
89
+ innerGetAnchorTtsMark: (anchor: import("./typings/index").IAnchor, startFromCursor?: boolean) => string;
90
+ innerGetAnchorTtsEmotionAndRole: (anchor: import("./typings/index").IAnchor) => [string, string | undefined];
91
91
  innerIsAllMarkedByAnchor: () => boolean;
92
92
  innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
93
+ innerUpdateAnchor: (newAnchor: import("./typings/index").IAnchor) => void;
93
94
  innerClearContent: () => void;
94
95
  innerInsertContentAtCursor: (_content: string | string[]) => void;
95
96
  innerRenderHightlight: (matchingContent: string) => void;
@@ -108,10 +109,11 @@ declare const TinyPeony: {
108
109
  isRange(): boolean;
109
110
  isSelectionInDifferentParas(): boolean;
110
111
  isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
111
- getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
112
- getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
112
+ getAnchorTtsMark(anchor: import("./typings/index").IAnchor, startFromCursor?: boolean): string;
113
+ getAnchorTtsEmotionAndRole(anchor: import("./typings/index").IAnchor): [string, string | undefined];
113
114
  isAllMarkedByAnchor(): boolean;
114
115
  addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
116
+ updateAnchor(anchor: import("./typings/index").IAnchor): void;
115
117
  clearContent(): void;
116
118
  insertContentAtCursor(_content: string | string[]): void;
117
119
  clear(): Promise<void>;
@@ -230,10 +232,11 @@ declare const TinyPeony: {
230
232
  innerIsRange: () => boolean;
231
233
  innerIsSelectionInDifferentParas: () => boolean;
232
234
  innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
233
- innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
234
- innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
235
+ innerGetAnchorTtsMark: (anchor: import("./typings/index").IAnchor, startFromCursor?: boolean) => string;
236
+ innerGetAnchorTtsEmotionAndRole: (anchor: import("./typings/index").IAnchor) => [string, string | undefined];
235
237
  innerIsAllMarkedByAnchor: () => boolean;
236
238
  innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
239
+ innerUpdateAnchor: (newAnchor: import("./typings/index").IAnchor) => void;
237
240
  innerClearContent: () => void;
238
241
  innerInsertContentAtCursor: (_content: string | string[]) => void;
239
242
  innerRenderHightlight: (matchingContent: string) => void;
@@ -252,10 +255,11 @@ declare const TinyPeony: {
252
255
  isRange(): boolean;
253
256
  isSelectionInDifferentParas(): boolean;
254
257
  isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
255
- getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
256
- getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
258
+ getAnchorTtsMark(anchor: import("./typings/index").IAnchor, startFromCursor?: boolean): string;
259
+ getAnchorTtsEmotionAndRole(anchor: import("./typings/index").IAnchor): [string, string | undefined];
257
260
  isAllMarkedByAnchor(): boolean;
258
261
  addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
262
+ updateAnchor(anchor: import("./typings/index").IAnchor): void;
259
263
  clearContent(): void;
260
264
  insertContentAtCursor(_content: string | string[]): void;
261
265
  clear(): Promise<void>;
@@ -365,10 +369,11 @@ declare const TinyPeony: {
365
369
  innerIsRange: () => boolean;
366
370
  innerIsSelectionInDifferentParas: () => boolean;
367
371
  innerIsSelectionContainsTag: (type: import("./typings/shared").PluginFlag) => boolean;
368
- innerGetAnchorTtsMark: (id: number, startFromCursor?: boolean) => string;
369
- innerGetAnchorTtsEmotionAndRole: (id: number) => [string, string | undefined];
372
+ innerGetAnchorTtsMark: (anchor: import("./typings/index").IAnchor, startFromCursor?: boolean) => string;
373
+ innerGetAnchorTtsEmotionAndRole: (anchor: import("./typings/index").IAnchor) => [string, string | undefined];
370
374
  innerIsAllMarkedByAnchor: () => boolean;
371
375
  innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
376
+ innerUpdateAnchor: (newAnchor: import("./typings/index").IAnchor) => void;
372
377
  innerClearContent: () => void;
373
378
  innerInsertContentAtCursor: (_content: string | string[]) => void;
374
379
  innerRenderHightlight: (matchingContent: string) => void;
@@ -387,10 +392,11 @@ declare const TinyPeony: {
387
392
  isRange(): boolean;
388
393
  isSelectionInDifferentParas(): boolean;
389
394
  isSelectionContainsTag(type: import("./typings/shared").PluginFlag): boolean;
390
- getAnchorTtsMark(id: number, startFromCursor?: boolean): string;
391
- getAnchorTtsEmotionAndRole(id: number): [string, string | undefined];
395
+ getAnchorTtsMark(anchor: import("./typings/index").IAnchor, startFromCursor?: boolean): string;
396
+ getAnchorTtsEmotionAndRole(anchor: import("./typings/index").IAnchor): [string, string | undefined];
392
397
  isAllMarkedByAnchor(): boolean;
393
398
  addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
399
+ updateAnchor(anchor: import("./typings/index").IAnchor): void;
394
400
  clearContent(): void;
395
401
  insertContentAtCursor(_content: string | string[]): void;
396
402
  clear(): Promise<void>;