@fileverse-dev/ddoc 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,7 @@ export interface DdocProps {
12
12
  enableCollaboration?: boolean;
13
13
  collaborationId?: string;
14
14
  isPreviewMode: boolean;
15
+ ensResolutionUrl?: string;
15
16
  initialContent?: JSONContent | null;
16
17
  onAutoSave?: (data: Data) => void;
17
18
  walletAddress?: string | null;
@@ -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, }: Partial<DdocProps>) => {
4
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onAutoSave, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, }: 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.3",
5
+ "version": "1.5.4",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -1,8 +0,0 @@
1
- export declare const DEFAULT_AUTHENTICATED_HEADER: {
2
- Authorization: string;
3
- invoker: string;
4
- contract: string;
5
- chain: number;
6
- };
7
- export declare const API_URL = "https://dev-fileverse-storage.herokuapp.com";
8
- export declare const ENS_RESOLUTION_URL = "https://eth-mainnet.g.alchemy.com/v2/uzKE0HT-Vc3LmUAA_dNVEt2rO8LtJGA3";