@fileverse-dev/ddoc 2.0.3-sync-patch-7 → 2.0.3-sync-patch-9

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ export interface DdocProps {
20
20
  renderNavbar?: ({ editor }: {
21
21
  editor: JSONContent;
22
22
  }) => JSX.Element;
23
- onChange?: (changes: Data['editorJSONData']) => void;
23
+ onChange?: (changes: string) => void;
24
24
  onCollaboratorChange?: (collaborators: undefined | IDocCollabUsers[]) => void;
25
25
  onTextSelection?: (data: IEditorSelectionData) => void;
26
26
  onCommentInteraction?: (data: IEditorSelectionData) => void;
@@ -31,6 +31,7 @@ export interface DdocProps {
31
31
  setCharacterCount?: React.Dispatch<SetStateAction<number>>;
32
32
  setWordCount?: React.Dispatch<SetStateAction<number>>;
33
33
  collaborationKey?: string;
34
+ yjsUpdate?: string;
34
35
  }
35
36
  export interface IEditorSelectionData {
36
37
  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, onCommentInteraction, onTextSelection, ensResolutionUrl, onError, setCharacterCount, setWordCount, collaborationKey, }: Partial<DdocProps>) => {
3
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, onError, setCharacterCount, setWordCount, collaborationKey, yjsUpdate, }: Partial<DdocProps>) => {
4
4
  editor: import('@tiptap/core').Editor | null;
5
5
  isContentLoading: boolean;
6
6
  ref: import('react').RefObject<HTMLDivElement>;
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-7",
5
+ "version": "2.0.3-sync-patch-9",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@_ueberdosis/prosemirror-tables": "^1.1.3",
30
30
  "@aarkue/tiptap-math-extension": "^1.3.3",
31
- "@fileverse-dev/sync": "^0.1.3",
31
+ "@fileverse-dev/sync": "^0.1.3-patch-2",
32
32
  "@fileverse/ui": "^4.1.1-patch-8",
33
33
  "@radix-ui/react-focus-scope": "^1.1.0",
34
34
  "@radix-ui/react-popover": "^1.0.7",