@fileverse-dev/ddoc 2.5.1-patch-1 → 2.5.1-patch-12
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/{ccip-ByF7E_Wv.mjs → ccip-fnso3kkd.mjs} +1 -1
- package/dist/{index-BwZlGgbY.mjs → index-CgV-9IfG.mjs} +14040 -14071
- package/dist/index.es.js +1 -1
- package/dist/package/components/inline-comment/comment-drawer.d.ts +1 -1
- package/dist/package/components/inline-comment/comment-section.d.ts +1 -1
- package/dist/package/components/inline-comment/comment-username.d.ts +1 -1
- package/dist/package/components/inline-comment/context/types.d.ts +0 -1
- package/dist/package/components/inline-comment/types.d.ts +0 -3
- package/dist/package/extensions/default-extension.d.ts +1 -2
- package/dist/package/extensions/link-preview/link-preview.d.ts +0 -1
- package/dist/package/extensions/slash-command/slash-comand.d.ts +1 -1
- package/dist/package/extensions/slash-command/slash-command-utils.d.ts +10 -3
- package/dist/package/types.d.ts +0 -1
- package/dist/package/utils/upload-images.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CommentDrawerProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const CommentDrawer: ({ isOpen, onClose, isNavbarVisible, isPresentationMode, activeCommentId, isPreviewMode,
|
|
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,
|
|
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,
|
|
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,
|
|
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,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
|
|
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,
|
|
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) =>
|
|
34
|
+
command: ({ editor, range }: CommandProps) => true | undefined;
|
|
28
35
|
})[];
|
|
29
36
|
export declare const updateScrollView: (container: HTMLElement, item: HTMLElement) => void;
|
package/dist/package/types.d.ts
CHANGED
|
@@ -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
|
|
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>;
|