@fileverse-dev/ddoc 2.1.1-v2-patch-2 → 2.1.1-v2-patch-4
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 +66655 -65956
- package/dist/package/components/inline-comment/comment-card.d.ts +1 -1
- package/dist/package/components/inline-comment/comment-section.d.ts +3 -4
- package/dist/package/components/inline-comment/context/comment-context.d.ts +3 -1
- package/dist/package/components/inline-comment/context/types.d.ts +2 -2
- package/dist/package/components/inline-comment/types.d.ts +18 -9
- package/dist/package/components/presentation-mode/presentation-mode.d.ts +2 -2
- package/dist/package/extensions/comment/comment.d.ts +10 -5
- package/dist/package/types.d.ts +1 -0
- package/dist/package/utils/helpers.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/dist/package/components/inline-comment/comment-bubble-menu.d.ts +0 -3
@@ -1,3 +1,3 @@
|
|
1
1
|
import { CommentCardProps } from './types';
|
2
2
|
|
3
|
-
export declare const CommentCard: ({ username,
|
3
|
+
export declare const CommentCard: import('react').MemoExoticComponent<({ username, selectedContent, comment, createdAt, replies, onResolve, onDelete, onUnresolve, isResolved, isDropdown, activeCommentId, id, }: CommentCardProps) => import("react/jsx-runtime").JSX.Element>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
1
|
+
import { CommentSectionProps } from './types';
|
2
|
+
|
3
|
+
export declare const CommentSection: ({ activeCommentId, isNavbarVisible, }: CommentSectionProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { CommentContextType, CommentProviderProps } from './types';
|
2
|
+
import { EnsStatus } from '../types';
|
2
3
|
|
3
|
-
export declare const CommentProvider: ({ children, editor, initialComments, setInitialComments, username,
|
4
|
+
export declare const CommentProvider: ({ children, editor, initialComments, setInitialComments, username, activeCommentId, setActiveCommentId, focusCommentWithActiveId, onNewComment, onCommentReply, ensResolutionUrl, }: CommentProviderProps) => import("react/jsx-runtime").JSX.Element;
|
4
5
|
export declare const useComments: () => CommentContextType;
|
6
|
+
export declare const useEnsName: (username?: string) => EnsStatus;
|
@@ -7,7 +7,6 @@ export interface CommentContextType {
|
|
7
7
|
setComments: React.Dispatch<SetStateAction<IComment[]>>;
|
8
8
|
editor: Editor;
|
9
9
|
username?: string;
|
10
|
-
walletAddress?: string;
|
11
10
|
showResolved: boolean;
|
12
11
|
setShowResolved: (show: boolean) => void;
|
13
12
|
resolveComment: (commentId: string) => void;
|
@@ -46,6 +45,7 @@ export interface CommentContextType {
|
|
46
45
|
handleInput: (e: React.FormEvent<HTMLTextAreaElement>, content: string) => void;
|
47
46
|
isCommentActive: boolean;
|
48
47
|
isCommentResolved: boolean;
|
48
|
+
ensResolutionUrl: string;
|
49
49
|
}
|
50
50
|
export interface CommentProviderProps {
|
51
51
|
children: React.ReactNode;
|
@@ -55,8 +55,8 @@ export interface CommentProviderProps {
|
|
55
55
|
onCommentReply?: (activeCommentId: string, reply: IComment) => void;
|
56
56
|
onNewComment?: (newComment: IComment) => void;
|
57
57
|
username: string;
|
58
|
-
walletAddress: string;
|
59
58
|
activeCommentId: string | null;
|
60
59
|
setActiveCommentId: React.Dispatch<React.SetStateAction<string | null>>;
|
61
60
|
focusCommentWithActiveId: (id: string) => void;
|
61
|
+
ensResolutionUrl: string;
|
62
62
|
}
|
@@ -29,23 +29,32 @@ export interface CommentDrawerProps {
|
|
29
29
|
isPresentationMode: boolean;
|
30
30
|
activeCommentId: string | null;
|
31
31
|
}
|
32
|
-
export interface CommentCardProps {
|
33
|
-
username?: string;
|
34
|
-
walletAddress?: string;
|
35
|
-
selectedText: string;
|
32
|
+
export interface CommentCardProps extends IComment {
|
36
33
|
comment?: string;
|
37
|
-
timestamp?: Date;
|
38
|
-
replies?: {
|
39
|
-
content: string;
|
40
|
-
}[];
|
41
34
|
onResolve?: () => void;
|
42
35
|
onDelete?: () => void;
|
43
36
|
onUnresolve?: () => void;
|
44
37
|
isResolved?: boolean;
|
45
38
|
isDropdown?: boolean;
|
46
39
|
activeCommentId?: string;
|
47
|
-
id?: string;
|
48
40
|
}
|
49
41
|
export type CommentBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
|
50
42
|
zoomLevel: string;
|
51
43
|
};
|
44
|
+
export interface CommentReplyProps {
|
45
|
+
reply: string;
|
46
|
+
username: string;
|
47
|
+
createdAt: Date;
|
48
|
+
}
|
49
|
+
export interface EnsStatus {
|
50
|
+
name: string;
|
51
|
+
isEns: boolean;
|
52
|
+
}
|
53
|
+
export interface CommentSectionProps {
|
54
|
+
activeCommentId: string | null;
|
55
|
+
isNavbarVisible?: boolean;
|
56
|
+
}
|
57
|
+
export interface UserDisplayProps {
|
58
|
+
ensStatus: EnsStatus;
|
59
|
+
createdAt: Date | undefined;
|
60
|
+
}
|
@@ -6,7 +6,7 @@ interface PresentationModeProps {
|
|
6
6
|
isFullscreen: boolean;
|
7
7
|
setIsFullscreen: React.Dispatch<React.SetStateAction<boolean>>;
|
8
8
|
onError?: (error: string) => void;
|
9
|
-
|
9
|
+
setCommentDrawerOpen: React.Dispatch<React.SetStateAction<boolean>> | undefined;
|
10
10
|
sharedSlidesLink?: string;
|
11
11
|
isPreviewMode: boolean;
|
12
12
|
documentName: string;
|
@@ -14,5 +14,5 @@ interface PresentationModeProps {
|
|
14
14
|
slides: string[];
|
15
15
|
setSlides: React.Dispatch<React.SetStateAction<string[]>>;
|
16
16
|
}
|
17
|
-
export declare const PresentationMode: ({ editor, onClose, isFullscreen, setIsFullscreen, onError,
|
17
|
+
export declare const PresentationMode: ({ editor, onClose, isFullscreen, setIsFullscreen, onError, setCommentDrawerOpen, sharedSlidesLink, isPreviewMode, documentName, onSlidesShare, slides, setSlides, }: PresentationModeProps) => import("react/jsx-runtime").JSX.Element | null;
|
18
18
|
export {};
|
@@ -46,11 +46,16 @@ export interface CommentStorage {
|
|
46
46
|
activeCommentId: string | null;
|
47
47
|
}
|
48
48
|
export interface IComment {
|
49
|
-
id
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
49
|
+
id?: string;
|
50
|
+
username?: string;
|
51
|
+
reactions?: {
|
52
|
+
count: number;
|
53
|
+
type: string;
|
54
|
+
}[];
|
55
|
+
selectedContent?: string;
|
56
|
+
content?: string;
|
57
|
+
replies?: IComment[];
|
58
|
+
createdAt?: Date;
|
54
59
|
resolved?: boolean;
|
55
60
|
}
|
56
61
|
export declare const CommentExtension: Mark<CommentOptions, CommentStorage>;
|
package/dist/package/types.d.ts
CHANGED