@fileverse-dev/ddoc 1.8.4 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,6 +33,7 @@ export interface DdocProps {
33
33
  onError?: (error: string) => void;
34
34
  setCharacterCount?: React.Dispatch<SetStateAction<number>>;
35
35
  setWordCount?: React.Dispatch<SetStateAction<number>>;
36
+ collaborationkey: string;
36
37
  }
37
38
  export interface IEditorSelectionData {
38
39
  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, }: Partial<DdocProps>) => {
3
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, onError, setCharacterCount, setWordCount, collaborationkey, }: Partial<DdocProps>) => {
4
4
  editor: import('@tiptap/react').Editor | null;
5
5
  ref: import('react').RefObject<HTMLDivElement>;
6
6
  connect: (username: string | null | undefined, _isEns?: boolean) => void;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "1.8.4",
5
+ "version": "1.8.5",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@_ueberdosis/prosemirror-tables": "^1.1.3",
31
- "@fileverse-dev/sync": "^0.0.1",
31
+ "@fileverse-dev/sync": "^0.0.2",
32
32
  "@radix-ui/react-focus-scope": "^1.1.0",
33
33
  "@radix-ui/react-popover": "^1.0.7",
34
34
  "@tippyjs/react": "^4.2.6",