@fileverse-dev/ddoc 1.6.2 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,9 +27,9 @@ export interface DdocProps {
27
27
  onCollaboratorChange?: (collaborators: undefined | IDocCollabUsers[]) => void;
28
28
  onTextSelection?: (data: IEditorSelectionData) => void;
29
29
  onCommentInteraction?: (data: IEditorSelectionData) => void;
30
- handleCommentButtonOutsideClick?: (editor: Editor | null) => void;
31
30
  handleCommentButtonClick?: (e: Editor) => void;
32
31
  showCommentButton?: boolean;
32
+ disableBottomToolbar?: boolean;
33
33
  }
34
34
  export interface IEditorSelectionData {
35
35
  from: number;
@@ -2,7 +2,7 @@ import { DdocProps } from './types';
2
2
 
3
3
  import * as Y from 'yjs';
4
4
  export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, handleImageUploadToIpfs, }: Partial<DdocProps>) => {
5
- editor: import('@tiptap/react').Editor | null;
5
+ editor: import('@tiptap/react').Editor;
6
6
  ref: import('react').RefObject<HTMLDivElement>;
7
7
  loading: boolean;
8
8
  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.6.2",
5
+ "version": "1.6.4",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -30,29 +30,29 @@
30
30
  "@_ueberdosis/prosemirror-tables": "^1.1.3",
31
31
  "@radix-ui/react-popover": "^1.0.7",
32
32
  "@tippyjs/react": "^4.2.6",
33
- "@tiptap/core": "^2.4.0",
34
- "@tiptap/extension-bullet-list": "^2.4.0",
35
- "@tiptap/extension-collaboration": "^2.4.0",
36
- "@tiptap/extension-collaboration-cursor": "^2.4.0",
37
- "@tiptap/extension-color": "^2.4.0",
38
- "@tiptap/extension-document": "^2.4.0",
39
- "@tiptap/extension-dropcursor": "^2.4.0",
40
- "@tiptap/extension-font-family": "^2.4.0",
41
- "@tiptap/extension-gapcursor": "^2.4.0",
42
- "@tiptap/extension-highlight": "^2.4.0",
43
- "@tiptap/extension-history": "^2.4.0",
44
- "@tiptap/extension-link": "^2.4.0",
45
- "@tiptap/extension-list-item": "^2.4.0",
46
- "@tiptap/extension-placeholder": "^2.4.0",
47
- "@tiptap/extension-task-item": "^2.4.0",
48
- "@tiptap/extension-task-list": "^2.4.0",
49
- "@tiptap/extension-text-align": "^2.4.0",
50
- "@tiptap/extension-text-style": "^2.4.0",
51
- "@tiptap/extension-underline": "^2.4.0",
52
- "@tiptap/pm": "^2.4.0",
53
- "@tiptap/react": "^2.4.0",
54
- "@tiptap/starter-kit": "^2.4.0",
55
- "@tiptap/suggestion": "^2.4.0",
33
+ "@tiptap/core": "^2.5.1",
34
+ "@tiptap/extension-bullet-list": "^2.5.1",
35
+ "@tiptap/extension-collaboration": "^2.5.1",
36
+ "@tiptap/extension-collaboration-cursor": "^2.5.1",
37
+ "@tiptap/extension-color": "^2.5.1",
38
+ "@tiptap/extension-document": "^2.5.1",
39
+ "@tiptap/extension-dropcursor": "^2.5.1",
40
+ "@tiptap/extension-font-family": "^2.5.1",
41
+ "@tiptap/extension-gapcursor": "^2.5.1",
42
+ "@tiptap/extension-highlight": "^2.5.1",
43
+ "@tiptap/extension-history": "^2.5.1",
44
+ "@tiptap/extension-link": "^2.5.1",
45
+ "@tiptap/extension-list-item": "^2.5.1",
46
+ "@tiptap/extension-placeholder": "^2.5.1",
47
+ "@tiptap/extension-task-item": "^2.5.1",
48
+ "@tiptap/extension-task-list": "^2.5.1",
49
+ "@tiptap/extension-text-align": "^2.5.1",
50
+ "@tiptap/extension-text-style": "^2.5.1",
51
+ "@tiptap/extension-underline": "^2.5.1",
52
+ "@tiptap/pm": "^2.5.1",
53
+ "@tiptap/react": "^2.5.1",
54
+ "@tiptap/starter-kit": "^2.5.1",
55
+ "@tiptap/suggestion": "^2.5.1",
56
56
  "classnames": "^2.5.1",
57
57
  "embla-carousel-react": "^8.1.5",
58
58
  "ethers": "^6.13.1",