@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.
@@ -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, yjsUpdate, onDisconnectionDueToSyncError, secureImageUploadUrl, scrollPosition, unFocused, }: Partial<DdocProps>) => {
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;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.0.3-sync-patch-16",
5
+ "version": "2.0.3-sync-patch-17",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {