@fileverse-dev/ddoc 2.0.3-sync-patch-16 → 2.0.3-sync-patch-17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +5252 -5234
- package/dist/package/types.d.ts +1 -2
- package/dist/package/use-ddoc-editor.d.ts +1 -1
- package/dist/package/utils/isJsonString.d.ts +1 -0
- package/package.json +1 -1
package/dist/package/types.d.ts
CHANGED
@@ -27,7 +27,7 @@ export interface DdocProps {
|
|
27
27
|
isPreviewMode: boolean;
|
28
28
|
ensResolutionUrl?: string;
|
29
29
|
secureImageUploadUrl?: string;
|
30
|
-
initialContent?: JSONContent | null;
|
30
|
+
initialContent?: JSONContent | string | null;
|
31
31
|
walletAddress?: string | null;
|
32
32
|
username?: string | null;
|
33
33
|
renderNavbar?: ({ editor }: {
|
@@ -44,7 +44,6 @@ export interface DdocProps {
|
|
44
44
|
setCharacterCount?: React.Dispatch<SetStateAction<number>>;
|
45
45
|
setWordCount?: React.Dispatch<SetStateAction<number>>;
|
46
46
|
collaborationKey?: CryptoKey;
|
47
|
-
yjsUpdate?: string;
|
48
47
|
onDisconnectionDueToSyncError?: (syncError: {
|
49
48
|
message: string;
|
50
49
|
}) => void;
|
@@ -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, ensResolutionUrl, onError, setCharacterCount, setWordCount, collaborationKey,
|
3
|
+
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, ensResolutionUrl, onError, setCharacterCount, setWordCount, collaborationKey, onDisconnectionDueToSyncError, secureImageUploadUrl, scrollPosition, unFocused, }: Partial<DdocProps>) => {
|
4
4
|
editor: import('@tiptap/core').Editor | null;
|
5
5
|
isContentLoading: boolean;
|
6
6
|
ref: import('react').RefObject<HTMLDivElement>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function isJSONString(str: string): boolean;
|