@linker-design-plus/tiny-peony 1.4.29 → 1.4.32
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 +6 -6
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +797 -797
- package/dist/index.mjs.map +1 -1
- package/dist/intersection/components/editor/editor.d.ts +2 -2
- package/dist/intersection/components/editor/index.d.ts +6 -6
- package/dist/intersection/hooks/use-editor.d.ts +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ declare const TinyPeony: {
|
|
|
94
94
|
innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
|
|
95
95
|
innerUpdateAnchor: (newAnchor: import("./typings/index").IAnchor) => void;
|
|
96
96
|
innerClearContent: () => void;
|
|
97
|
-
innerInsertContentAtCursor: (_content: string | string[]) => void;
|
|
97
|
+
innerInsertContentAtCursor: (_content: string | string[], func?: (canInsert: boolean) => void) => void;
|
|
98
98
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
99
99
|
innerUnrenderHightlight: () => void;
|
|
100
100
|
}, {}, {}, {
|
|
@@ -118,7 +118,7 @@ declare const TinyPeony: {
|
|
|
118
118
|
addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
|
|
119
119
|
updateAnchor(anchor: import("./typings/index").IAnchor): void;
|
|
120
120
|
clearContent(): void;
|
|
121
|
-
insertContentAtCursor(_content: string | string[]): void;
|
|
121
|
+
insertContentAtCursor(_content: string | string[], callback?: (canInsert: boolean) => void): void;
|
|
122
122
|
clear(): Promise<void>;
|
|
123
123
|
renderHighlight(matchingContent: string): void;
|
|
124
124
|
unrenderHighlight(): void;
|
|
@@ -244,7 +244,7 @@ declare const TinyPeony: {
|
|
|
244
244
|
innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
|
|
245
245
|
innerUpdateAnchor: (newAnchor: import("./typings/index").IAnchor) => void;
|
|
246
246
|
innerClearContent: () => void;
|
|
247
|
-
innerInsertContentAtCursor: (_content: string | string[]) => void;
|
|
247
|
+
innerInsertContentAtCursor: (_content: string | string[], func?: (canInsert: boolean) => void) => void;
|
|
248
248
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
249
249
|
innerUnrenderHightlight: () => void;
|
|
250
250
|
}, {}, {}, {
|
|
@@ -268,7 +268,7 @@ declare const TinyPeony: {
|
|
|
268
268
|
addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
|
|
269
269
|
updateAnchor(anchor: import("./typings/index").IAnchor): void;
|
|
270
270
|
clearContent(): void;
|
|
271
|
-
insertContentAtCursor(_content: string | string[]): void;
|
|
271
|
+
insertContentAtCursor(_content: string | string[], callback?: (canInsert: boolean) => void): void;
|
|
272
272
|
clear(): Promise<void>;
|
|
273
273
|
renderHighlight(matchingContent: string): void;
|
|
274
274
|
unrenderHighlight(): void;
|
|
@@ -384,7 +384,7 @@ declare const TinyPeony: {
|
|
|
384
384
|
innerAddExtraAnchors: (data: import("./typings/index").IAnchor[]) => void;
|
|
385
385
|
innerUpdateAnchor: (newAnchor: import("./typings/index").IAnchor) => void;
|
|
386
386
|
innerClearContent: () => void;
|
|
387
|
-
innerInsertContentAtCursor: (_content: string | string[]) => void;
|
|
387
|
+
innerInsertContentAtCursor: (_content: string | string[], func?: (canInsert: boolean) => void) => void;
|
|
388
388
|
innerRenderHightlight: (matchingContent: string) => void;
|
|
389
389
|
innerUnrenderHightlight: () => void;
|
|
390
390
|
}, {}, {}, {
|
|
@@ -408,7 +408,7 @@ declare const TinyPeony: {
|
|
|
408
408
|
addExtraAnchors(data: import("./typings/index").IAnchor[]): void;
|
|
409
409
|
updateAnchor(anchor: import("./typings/index").IAnchor): void;
|
|
410
410
|
clearContent(): void;
|
|
411
|
-
insertContentAtCursor(_content: string | string[]): void;
|
|
411
|
+
insertContentAtCursor(_content: string | string[], callback?: (canInsert: boolean) => void): void;
|
|
412
412
|
clear(): Promise<void>;
|
|
413
413
|
renderHighlight(matchingContent: string): void;
|
|
414
414
|
unrenderHighlight(): void;
|