@fileverse-dev/ddoc 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +19 -15
- package/dist/index.es.js +5209 -5143
- package/dist/index.umd.js +94 -89
- package/dist/packages/ddoc/types.d.ts +4 -0
- package/package.json +1 -1
@@ -1,5 +1,6 @@
|
|
1
1
|
import { JSONContent } from '@tiptap/core';
|
2
2
|
import { EditorProps } from '@tiptap/pm/view';
|
3
|
+
import { Editor } from '@tiptap/react';
|
3
4
|
|
4
5
|
export declare const DdocEditorProps: EditorProps;
|
5
6
|
export interface IDocCollabUsers {
|
@@ -26,6 +27,9 @@ export interface DdocProps {
|
|
26
27
|
onCollaboratorChange?: (collaborators: undefined | IDocCollabUsers[]) => void;
|
27
28
|
onTextSelection?: (data: IEditorSelectionData) => void;
|
28
29
|
onCommentInteraction?: (data: IEditorSelectionData) => void;
|
30
|
+
handleCommentButtonOutsideClick?: (editor: Editor | null) => void;
|
31
|
+
handleCommentButtonClick?: (e: Editor) => void;
|
32
|
+
showCommentButton?: boolean;
|
29
33
|
}
|
30
34
|
export interface IEditorSelectionData {
|
31
35
|
from: number;
|