@fileverse-dev/ddoc 1.4.5 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,6 +70,5 @@ export declare const TextFormatingPopup: ({ editor, setToolVisibility, }: {
70
70
  }) => import("react/jsx-runtime").JSX.Element;
71
71
  export declare const TextColorPicker: ({ editor, }: {
72
72
  editor: Editor;
73
- setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
74
73
  }) => import("react/jsx-runtime").JSX.Element;
75
74
  export {};
@@ -13,7 +13,7 @@ export interface DdocProps {
13
13
  isPreviewMode: boolean;
14
14
  initialContent?: JSONContent | null;
15
15
  onAutoSave?: (data: Data) => void;
16
- ensProviderUrl?: string;
16
+ walletAddress?: string | null;
17
17
  username?: string | null;
18
18
  renderToolLeftSection?: ({ editor }: {
19
19
  editor: JSONContent;
@@ -1,10 +1,10 @@
1
1
  import { DdocProps } from './types';
2
2
 
3
3
  import * as Y from 'yjs';
4
- export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, ensProviderUrl, username, onAutoSave, onChange, onCollaboratorChange, }: Partial<DdocProps>) => {
4
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onAutoSave, onChange, onCollaboratorChange, }: Partial<DdocProps>) => {
5
5
  editor: import('@tiptap/react').Editor | null;
6
6
  ref: import('react').RefObject<HTMLDivElement>;
7
7
  loading: boolean;
8
- connect: (username: string, isEns?: boolean) => () => void;
8
+ connect: (username: string | null | undefined, isEns?: boolean) => () => void;
9
9
  ydoc: Y.Doc;
10
10
  };
@@ -4,3 +4,4 @@ export declare const getAddressName: (address: string, ensProviderUrl: string) =
4
4
  }>;
5
5
  export declare const resolveEnsAddress: (address: string, ensProviderUrl: string) => Promise<string | null>;
6
6
  export declare const getEnsProvider: (network: string) => import('ethers').AbstractProvider;
7
+ export declare const getTrimmedName: (name: string, length: number, limit: number) => string;
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.4.5",
5
+ "version": "1.4.7",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -39,6 +39,7 @@
39
39
  "@tiptap/extension-font-family": "^2.4.0",
40
40
  "@tiptap/extension-gapcursor": "^2.4.0",
41
41
  "@tiptap/extension-highlight": "^2.4.0",
42
+ "@tiptap/extension-history": "^2.4.0",
42
43
  "@tiptap/extension-link": "^2.4.0",
43
44
  "@tiptap/extension-placeholder": "^2.4.0",
44
45
  "@tiptap/extension-task-item": "^2.4.0",