@fileverse-dev/ddoc 2.5.1-patch-1 → 2.5.1-patch-13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-BwZlGgbY.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-CeKt5Xsz.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -1,3 +1,3 @@
1
1
  import { CommentDrawerProps } from './types';
2
2
 
3
- export declare const CommentDrawer: ({ isOpen, onClose, isNavbarVisible, isPresentationMode, activeCommentId, isPreviewMode, disableOnlineFeatures, }: CommentDrawerProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const CommentDrawer: ({ isOpen, onClose, isNavbarVisible, isPresentationMode, activeCommentId, isPreviewMode, }: CommentDrawerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { CommentSectionProps } from './types';
2
2
 
3
- export declare const CommentSection: ({ activeCommentId, isNavbarVisible, isPresentationMode, disableOnlineFeatures, }: CommentSectionProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const CommentSection: ({ activeCommentId, isNavbarVisible, isPresentationMode, }: CommentSectionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { CommentUsernameProps } from './context/types';
2
2
 
3
- declare const CommentUsername: ({ username, setUsername, isNavbarVisible, isConnected, connectViaUsername, connectViaWallet, isLoading, disableOnlineFeatures, }: CommentUsernameProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const CommentUsername: ({ username, setUsername, isNavbarVisible, isConnected, connectViaUsername, connectViaWallet, isLoading, }: CommentUsernameProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export { CommentUsername };
@@ -86,7 +86,6 @@ export interface CommentUsernameProps extends CommentAccountProps {
86
86
  username?: string | null;
87
87
  setUsername?: React.Dispatch<SetStateAction<string>>;
88
88
  isNavbarVisible?: boolean;
89
- disableOnlineFeatures?: boolean;
90
89
  }
91
90
  export interface EnsEntry {
92
91
  name: string;
@@ -31,7 +31,6 @@ export interface CommentDrawerProps {
31
31
  isPresentationMode: boolean;
32
32
  activeCommentId: string | null;
33
33
  isPreviewMode: boolean;
34
- disableOnlineFeatures?: boolean;
35
34
  }
36
35
  export interface CommentCardProps extends IComment {
37
36
  comment?: string;
@@ -45,7 +44,6 @@ export interface CommentCardProps extends IComment {
45
44
  isCommentOwner?: boolean;
46
45
  version?: string;
47
46
  emptyComment?: boolean;
48
- disableOnlineFeatures?: boolean;
49
47
  }
50
48
  export type CommentBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
51
49
  zoomLevel: string;
@@ -64,7 +62,6 @@ export interface CommentSectionProps {
64
62
  activeCommentId: string | null;
65
63
  isNavbarVisible?: boolean;
66
64
  isPresentationMode?: boolean;
67
- disableOnlineFeatures?: boolean;
68
65
  }
69
66
  export interface UserDisplayProps {
70
67
  username: string;
@@ -3,7 +3,7 @@ import { InputRule } from '@tiptap/core';
3
3
  import { IpfsImageFetchPayload, IpfsImageUploadResponse } from '../types';
4
4
  import { ToCItemType } from '../components/toc/types';
5
5
 
6
- export declare const defaultExtensions: ({ ipfsImageFetchFn, onError, metadataProxyUrl, onCopyHeadingLink, ipfsImageUploadFn, fetchV1ImageFn, onTocUpdate, disableOnlineFeatures, }: {
6
+ export declare const defaultExtensions: ({ ipfsImageFetchFn, onError, metadataProxyUrl, onCopyHeadingLink, ipfsImageUploadFn, fetchV1ImageFn, onTocUpdate, }: {
7
7
  ipfsImageFetchFn?: (_data: IpfsImageFetchPayload) => Promise<{
8
8
  url: string;
9
9
  file: File;
@@ -14,6 +14,5 @@ export declare const defaultExtensions: ({ ipfsImageFetchFn, onError, metadataPr
14
14
  onCopyHeadingLink?: (link: string) => void;
15
15
  fetchV1ImageFn?: (url: string) => Promise<ArrayBuffer | undefined>;
16
16
  onTocUpdate?: (data: ToCItemType[], isCreate?: boolean) => void;
17
- disableOnlineFeatures?: boolean;
18
17
  }) => (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<any, any>)[];
19
18
  export declare const createInputRule: (pattern: RegExp, data: string, type: NodeType) => InputRule;
@@ -2,7 +2,6 @@ import { Extension } from '@tiptap/core';
2
2
 
3
3
  export interface LinkPreviewOptions {
4
4
  metadataProxyUrl: string;
5
- disableOnlineFeatures?: boolean;
6
5
  }
7
6
  declare const LinkPreview: Extension<LinkPreviewOptions, any>;
8
7
  export default LinkPreview;
@@ -2,5 +2,5 @@ import { Extension } from '@tiptap/core';
2
2
  import { IpfsImageUploadResponse } from '../../types';
3
3
 
4
4
  export declare const Command: Extension<any, any>;
5
- declare const SlashCommand: (onError?: (errorString: string) => void, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, isConnected?: boolean, enableCollaboration?: boolean, disableOnlineFeatures?: boolean) => Extension<any, any>;
5
+ declare const SlashCommand: (onError?: (errorString: string) => void, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, isConnected?: boolean, enableCollaboration?: boolean) => Extension<any, any>;
6
6
  export default SlashCommand;
@@ -1,15 +1,22 @@
1
1
  import { CommandProps } from './types';
2
2
  import { IpfsImageUploadResponse } from '../../types';
3
3
 
4
- export declare const getSuggestionItems: ({ query, onError, isConnected, ipfsImageUploadFn, editor, enableCollaboration, disableOnlineFeatures, }: {
4
+ export declare const getSuggestionItems: ({ query, onError, isConnected, ipfsImageUploadFn, editor, enableCollaboration, }: {
5
5
  query: string;
6
6
  onError?: (errorString: string) => void;
7
7
  ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>;
8
8
  isConnected?: boolean;
9
9
  editor?: any;
10
10
  enableCollaboration?: boolean;
11
- disableOnlineFeatures?: boolean;
12
11
  }) => ({
12
+ title: string;
13
+ description: string;
14
+ searchTerms: string[];
15
+ icon: import("react/jsx-runtime").JSX.Element;
16
+ image: string;
17
+ command: ({ editor, range }: CommandProps) => void;
18
+ isDisabled: boolean;
19
+ } | {
13
20
  title: string;
14
21
  description: string;
15
22
  searchTerms: string[];
@@ -24,6 +31,6 @@ export declare const getSuggestionItems: ({ query, onError, isConnected, ipfsIma
24
31
  icon: import("react/jsx-runtime").JSX.Element;
25
32
  image: string;
26
33
  isDisabled: boolean | undefined;
27
- command: ({ editor, range }: CommandProps) => void;
34
+ command: ({ editor, range }: CommandProps) => true | undefined;
28
35
  })[];
29
36
  export declare const updateScrollView: (container: HTMLElement, item: HTMLElement) => void;
@@ -1,4 +1,6 @@
1
1
  import { DdocProps } from './types';
2
2
 
3
- declare const PreviewDdocEditor: import('react').ForwardRefExoticComponent<DdocProps & import('react').RefAttributes<unknown>>;
3
+ declare const PreviewDdocEditor: import('react').ForwardRefExoticComponent<DdocProps & {
4
+ contentClassName?: string;
5
+ } & import('react').RefAttributes<unknown>>;
4
6
  export { PreviewDdocEditor };
@@ -171,7 +171,6 @@ export interface DdocProps extends CommentAccountProps {
171
171
  onUnMergedUpdates?: (state: boolean) => void;
172
172
  onCollabError?: (error: any) => void;
173
173
  isExistingCollabSession?: boolean;
174
- disableOnlineFeatures?: boolean;
175
174
  }
176
175
  export interface IEditorSelectionData {
177
176
  from: number;
@@ -4,7 +4,7 @@ import { IpfsImageUploadResponse } from '../types';
4
4
 
5
5
  declare const UploadImagesPlugin: () => Plugin<DecorationSet>;
6
6
  export default UploadImagesPlugin;
7
- export declare function startImageUpload(file: File, view: EditorView, pos: number, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, disableOnlineFeatures?: boolean): Promise<void>;
7
+ export declare function startImageUpload(file: File, view: EditorView, pos: number, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>): Promise<void>;
8
8
  export declare const uploadFn: (image: File) => Promise<string>;
9
9
  export declare const uploadSecureImage: (url: string, image: File, publicKey: ArrayBuffer) => Promise<any>;
10
10
  export declare const handleDecryptImage: (url: string, encryptedKey: string, privateKey: string, iv: string) => Promise<string | undefined>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.5.1-patch-1",
5
+ "version": "2.5.1-patch-13",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {