@fileverse-dev/ddoc 2.0.9-patch-4 → 2.0.9-patch-6

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,6 @@ export interface BubbleMenuItem {
10
10
  type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
11
11
  isPreviewMode: boolean;
12
12
  onError?: (errorString: string) => void;
13
- zoomLevel: string;
14
13
  setIsCommentSectionOpen?: (isOpen: boolean) => void;
15
14
  inlineCommentData?: InlineCommentData;
16
15
  setInlineCommentData?: React.Dispatch<React.SetStateAction<InlineCommentData>>;
@@ -1,11 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  import { Editor } from '@tiptap/react';
3
3
 
4
- declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavbarVisible, setIsNavbarVisible, secureImageUploadUrl, }: {
4
+ declare const TiptapToolBar: ({ editor, onError, isNavbarVisible, setIsNavbarVisible, secureImageUploadUrl, }: {
5
5
  editor: Editor;
6
6
  onError?: (errorString: string) => void;
7
- zoomLevel: string;
8
- setZoomLevel: (zoom: string) => void;
9
7
  isNavbarVisible: boolean;
10
8
  setIsNavbarVisible: React.Dispatch<React.SetStateAction<boolean>>;
11
9
  secureImageUploadUrl?: string;
@@ -22,8 +22,6 @@ export interface DdocProps {
22
22
  setIsCommentSectionOpen?: React.Dispatch<SetStateAction<boolean>>;
23
23
  inlineCommentData?: InlineCommentData;
24
24
  setInlineCommentData?: React.Dispatch<React.SetStateAction<InlineCommentData>>;
25
- zoomLevel: string;
26
- setZoomLevel: React.Dispatch<SetStateAction<string>>;
27
25
  isCommentSectionOpen?: boolean;
28
26
  collaborationId?: string;
29
27
  isPreviewMode: boolean;
@@ -1,7 +1,7 @@
1
1
  import { DdocProps } from './types';
2
2
 
3
3
  import * as Y from 'yjs';
4
- export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, scrollPosition, unFocused, }: Partial<DdocProps>) => {
4
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, scrollPosition, unFocused, }: Partial<DdocProps>) => {
5
5
  editor: import('@tiptap/core').Editor | null;
6
6
  isContentLoading: boolean;
7
7
  ref: import('react').RefObject<HTMLDivElement>;