@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.
@@ -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;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "1.5.2",
5
+ "version": "1.5.3",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {