@fileverse-dev/ddoc 2.5.0-patch-4 → 2.5.0-patch-5
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-CGHadMGM.mjs → ccip-B25X6nHx.mjs} +1 -1
- package/dist/{index-Bo25DqlT.mjs → index-Cf4UGAyz.mjs} +19489 -19489
- 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 +1 -0
- package/dist/package/components/inline-comment/types.d.ts +3 -0
- package/dist/package/extensions/default-extension.d.ts +2 -1
- package/dist/package/extensions/link-preview/link-preview.d.ts +1 -0
- package/dist/package/extensions/slash-command/slash-comand.d.ts +1 -1
- package/dist/package/extensions/slash-command/slash-command-utils.d.ts +3 -10
- package/dist/package/types.d.ts +1 -7
- package/dist/package/utils/upload-images.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/package/constants/canvas-dimensions.d.ts +0 -81
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, }: CommentDrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const CommentDrawer: ({ isOpen, onClose, isNavbarVisible, isPresentationMode, activeCommentId, isPreviewMode, disableOnlineFeatures, }: 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, }: CommentSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const CommentSection: ({ activeCommentId, isNavbarVisible, isPresentationMode, disableOnlineFeatures, }: 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, }: CommentUsernameProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const CommentUsername: ({ username, setUsername, isNavbarVisible, isConnected, connectViaUsername, connectViaWallet, isLoading, disableOnlineFeatures, }: CommentUsernameProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { CommentUsername };
|
|
@@ -86,6 +86,7 @@ export interface CommentUsernameProps extends CommentAccountProps {
|
|
|
86
86
|
username?: string | null;
|
|
87
87
|
setUsername?: React.Dispatch<SetStateAction<string>>;
|
|
88
88
|
isNavbarVisible?: boolean;
|
|
89
|
+
disableOnlineFeatures?: boolean;
|
|
89
90
|
}
|
|
90
91
|
export interface EnsEntry {
|
|
91
92
|
name: string;
|
|
@@ -31,6 +31,7 @@ export interface CommentDrawerProps {
|
|
|
31
31
|
isPresentationMode: boolean;
|
|
32
32
|
activeCommentId: string | null;
|
|
33
33
|
isPreviewMode: boolean;
|
|
34
|
+
disableOnlineFeatures?: boolean;
|
|
34
35
|
}
|
|
35
36
|
export interface CommentCardProps extends IComment {
|
|
36
37
|
comment?: string;
|
|
@@ -44,6 +45,7 @@ export interface CommentCardProps extends IComment {
|
|
|
44
45
|
isCommentOwner?: boolean;
|
|
45
46
|
version?: string;
|
|
46
47
|
emptyComment?: boolean;
|
|
48
|
+
disableOnlineFeatures?: boolean;
|
|
47
49
|
}
|
|
48
50
|
export type CommentBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
|
|
49
51
|
zoomLevel: string;
|
|
@@ -62,6 +64,7 @@ export interface CommentSectionProps {
|
|
|
62
64
|
activeCommentId: string | null;
|
|
63
65
|
isNavbarVisible?: boolean;
|
|
64
66
|
isPresentationMode?: boolean;
|
|
67
|
+
disableOnlineFeatures?: boolean;
|
|
65
68
|
}
|
|
66
69
|
export interface UserDisplayProps {
|
|
67
70
|
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, disableOnlineFeatures, }: {
|
|
7
7
|
ipfsImageFetchFn?: (_data: IpfsImageFetchPayload) => Promise<{
|
|
8
8
|
url: string;
|
|
9
9
|
file: File;
|
|
@@ -14,5 +14,6 @@ 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;
|
|
17
18
|
}) => (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<any, any>)[];
|
|
18
19
|
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) => 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>;
|
|
6
6
|
export default SlashCommand;
|
|
@@ -1,22 +1,15 @@
|
|
|
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, disableOnlineFeatures, }: {
|
|
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;
|
|
11
12
|
}) => ({
|
|
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
|
-
} | {
|
|
20
13
|
title: string;
|
|
21
14
|
description: string;
|
|
22
15
|
searchTerms: string[];
|
|
@@ -31,6 +24,6 @@ export declare const getSuggestionItems: ({ query, onError, isConnected, ipfsIma
|
|
|
31
24
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
32
25
|
image: string;
|
|
33
26
|
isDisabled: boolean | undefined;
|
|
34
|
-
command: ({ editor, range }: CommandProps) =>
|
|
27
|
+
command: ({ editor, range }: CommandProps) => void;
|
|
35
28
|
})[];
|
|
36
29
|
export declare const updateScrollView: (container: HTMLElement, item: HTMLElement) => void;
|
package/dist/package/types.d.ts
CHANGED
|
@@ -62,13 +62,6 @@ export interface DocumentStyling {
|
|
|
62
62
|
* @example "Inter" | "Arial" | "Georgia"
|
|
63
63
|
*/
|
|
64
64
|
fontFamily?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Canvas orientation
|
|
67
|
-
* @description Controls the orientation and dimensions of the editor canvas. Portrait is the default orientation with standard document width. Landscape provides a wider canvas for horizontal content layouts.
|
|
68
|
-
* @default "portrait"
|
|
69
|
-
* @example "portrait" | "landscape"
|
|
70
|
-
*/
|
|
71
|
-
orientation?: 'portrait' | 'landscape';
|
|
72
65
|
}
|
|
73
66
|
export interface DdocProps extends CommentAccountProps {
|
|
74
67
|
isCollabDocumentPublished?: boolean;
|
|
@@ -171,6 +164,7 @@ export interface DdocProps extends CommentAccountProps {
|
|
|
171
164
|
onUnMergedUpdates?: (state: boolean) => void;
|
|
172
165
|
onCollabError?: (error: any) => void;
|
|
173
166
|
isExistingCollabSession?: boolean;
|
|
167
|
+
disableOnlineFeatures?: boolean;
|
|
174
168
|
}
|
|
175
169
|
export interface IEditorSelectionData {
|
|
176
170
|
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>, disableOnlineFeatures?: boolean): 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>;
|