@fileverse-dev/ddoc 2.0.8-patch-7 → 2.0.8-patch-8

Sign up to get free protection for your applications and to get access to all the features.
@@ -85,6 +85,11 @@ export declare const InlineCommentPopup: ({ elementRef, editor, setIsCommentSect
85
85
  handleClick?: boolean;
86
86
  }) => void;
87
87
  }) => import("react/jsx-runtime").JSX.Element;
88
+ export declare const CommentPopup: ({ xPosition, yPosition, content, }: {
89
+ xPosition: number;
90
+ yPosition: number;
91
+ content: string;
92
+ }) => import("react/jsx-runtime").JSX.Element;
88
93
  export declare const ScriptsPopup: ({ elementRef, editor, }: {
89
94
  elementRef: React.RefObject<HTMLDivElement>;
90
95
  editor: Editor;
@@ -50,6 +50,7 @@ export interface DdocProps {
50
50
  className?: string;
51
51
  scrollPosition?: number;
52
52
  unFocused?: boolean;
53
+ commentMap?: Map<string, string>;
53
54
  }
54
55
  export interface IEditorSelectionData {
55
56
  from: number;
@@ -1,10 +1,17 @@
1
1
  import { DdocProps } from './types';
2
2
 
3
3
  import * as Y from 'yjs';
4
- export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, scrollPosition, unFocused, }: Partial<DdocProps>) => {
4
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onTextSelection, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, scrollPosition, unFocused, commentMap, }: Partial<DdocProps>) => {
5
5
  editor: import('@tiptap/core').Editor | null;
6
6
  isContentLoading: boolean;
7
7
  ref: import('react').RefObject<HTMLDivElement>;
8
8
  connect: (username: string | null | undefined, isEns?: boolean) => () => void;
9
9
  ydoc: Y.Doc;
10
+ isCommentShown: boolean;
11
+ popupContent: string;
12
+ popupPosition: {
13
+ x: number;
14
+ y: number;
15
+ visible: boolean;
16
+ };
10
17
  };