@fileverse-dev/ddoc 1.5.7 → 1.5.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,6 @@ export interface DdocProps {
14
14
  isPreviewMode: boolean;
15
15
  ensResolutionUrl?: string;
16
16
  initialContent?: JSONContent | null;
17
- onAutoSave?: (data: Data) => void;
18
17
  walletAddress?: string | null;
19
18
  username?: string | null;
20
19
  renderToolLeftSection?: ({ editor }: {
@@ -36,6 +35,7 @@ export interface IEditorSelectionData {
36
35
  from: number;
37
36
  to: number;
38
37
  text: string;
38
+ isHighlightedYellow: boolean;
39
39
  }
40
40
  export interface Data {
41
41
  editorJSONData: JSONContent;
@@ -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, onAutoSave, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, handleImageUploadToIpfs, }: Partial<DdocProps>) => {
4
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, handleImageUploadToIpfs, }: Partial<DdocProps>) => {
5
5
  editor: import('@tiptap/react').Editor | null;
6
6
  ref: import('react').RefObject<HTMLDivElement>;
7
7
  loading: 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": "1.5.7",
5
+ "version": "1.5.9",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {