@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 +18 -12
- package/dist/index.js +37 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3238 -3078
- package/dist/index.mjs.map +1 -1
- package/dist/intersection/components/editor/context.d.ts +2 -2
- package/dist/intersection/components/editor/editor.d.ts +6 -4
- package/dist/intersection/components/editor/index.d.ts +18 -12
- package/dist/intersection/hooks/use-editor.d.ts +2 -2
- package/dist/plugins/AnchorTagPlugin/plugin.d.ts +2 -0
- package/dist/typings/actions/i-anchor.d.ts +8 -0
- package/dist/utils/dom.d.ts +7 -1
- package/package.json +1 -1
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: (
|
|
90
|
-
innerGetAnchorTtsEmotionAndRole: (
|
|
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(
|
|
112
|
-
getAnchorTtsEmotionAndRole(
|
|
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: (
|
|
234
|
-
innerGetAnchorTtsEmotionAndRole: (
|
|
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(
|
|
256
|
-
getAnchorTtsEmotionAndRole(
|
|
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: (
|
|
369
|
-
innerGetAnchorTtsEmotionAndRole: (
|
|
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(
|
|
391
|
-
getAnchorTtsEmotionAndRole(
|
|
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>;
|