@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.
- package/dist/index.es.js +8364 -8197
- package/dist/package/components/editor-utils.d.ts +5 -0
- package/dist/package/types.d.ts +1 -0
- package/dist/package/use-ddoc-editor.d.ts +8 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -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;
|
package/dist/package/types.d.ts
CHANGED
@@ -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,
|
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
|
};
|