@fileverse-dev/ddoc 2.0.3-sync-patch-10 → 2.0.3-sync-patch-11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +4448 -4490
- package/dist/package/types.d.ts +3 -0
- package/dist/package/use-ddoc-editor.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/package/types.d.ts
CHANGED
@@ -32,6 +32,9 @@ export interface DdocProps {
|
|
32
32
|
setWordCount?: React.Dispatch<SetStateAction<number>>;
|
33
33
|
collaborationKey?: string;
|
34
34
|
yjsUpdate?: string;
|
35
|
+
onDisconnectionDueToSyncError?: (syncError: {
|
36
|
+
message: string;
|
37
|
+
}) => void;
|
35
38
|
}
|
36
39
|
export interface IEditorSelectionData {
|
37
40
|
from: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DdocProps } from './types';
|
2
2
|
|
3
|
-
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange,
|
3
|
+
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, ensResolutionUrl, onError, setCharacterCount, setWordCount, collaborationKey, yjsUpdate, onDisconnectionDueToSyncError, }: Partial<DdocProps>) => {
|
4
4
|
editor: import('@tiptap/core').Editor | null;
|
5
5
|
isContentLoading: boolean;
|
6
6
|
ref: import('react').RefObject<HTMLDivElement>;
|