@fileverse-dev/ddoc 1.5.8 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -2
- package/dist/index.es.js +2148 -2179
- package/dist/index.umd.js +68 -68
- package/dist/packages/ddoc/types.d.ts +1 -1
- package/dist/packages/ddoc/use-ddoc-editor.d.ts +1 -1
- package/package.json +1 -1
@@ -14,7 +14,6 @@ export interface DdocProps {
|
|
14
14
|
isPreviewMode: boolean;
|
15
15
|
ensResolutionUrl?: string;
|
16
16
|
initialContent?: JSONContent | null;
|
17
|
-
onAutoSave?: (data: Data) => void;
|
18
17
|
walletAddress?: string | null;
|
19
18
|
username?: string | null;
|
20
19
|
renderToolLeftSection?: ({ editor }: {
|
@@ -36,6 +35,7 @@ export interface IEditorSelectionData {
|
|
36
35
|
from: number;
|
37
36
|
to: number;
|
38
37
|
text: string;
|
38
|
+
isHighlightedYellow: boolean;
|
39
39
|
}
|
40
40
|
export interface Data {
|
41
41
|
editorJSONData: JSONContent;
|
@@ -1,7 +1,7 @@
|
|
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,
|
4
|
+
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, handleImageUploadToIpfs, }: Partial<DdocProps>) => {
|
5
5
|
editor: import('@tiptap/react').Editor | null;
|
6
6
|
ref: import('react').RefObject<HTMLDivElement>;
|
7
7
|
loading: boolean;
|