@fileverse-dev/ddoc 3.2.4 → 3.2.5-patch-2
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 +19784 -19782
- package/dist/package/components/inline-comment/floating-comment/floating-auth-prompt.d.ts +3 -1
- package/dist/package/components/toc/document-outline-toc-panel.d.ts +1 -1
- package/dist/package/stores/comment-store-provider.d.ts +2 -1
- package/dist/package/stores/comment-store.d.ts +1 -0
- package/dist/package/types.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentOutlineProps } from './types';
|
|
2
2
|
|
|
3
3
|
type DocumentOutlineTOCPanelProps = Pick<DocumentOutlineProps, 'editor' | 'hasToC' | 'items' | 'setItems' | 'showTOC' | 'setShowTOC' | 'isPreviewMode' | 'orientation'>;
|
|
4
|
-
export declare const DocumentOutlineTOCPanel: ({ editor, hasToC, items, setItems, showTOC, setShowTOC,
|
|
4
|
+
export declare const DocumentOutlineTOCPanel: ({ editor, hasToC, items, setItems, showTOC, setShowTOC, orientation, }: DocumentOutlineTOCPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -20,6 +20,7 @@ export interface CommentStoreProviderProps {
|
|
|
20
20
|
onResolveComment?: (commentId: string, meta?: CommentMutationMeta) => void;
|
|
21
21
|
onUnresolveComment?: (commentId: string, meta?: CommentMutationMeta) => void;
|
|
22
22
|
onDeleteComment?: (commentId: string, meta?: CommentMutationMeta) => void;
|
|
23
|
+
onDeleteReply?: (commentId: string, replyId: string) => void;
|
|
23
24
|
onInlineComment?: () => void;
|
|
24
25
|
onComment?: () => void;
|
|
25
26
|
setCommentDrawerOpen?: (open: boolean) => void;
|
|
@@ -37,7 +38,7 @@ export interface CommentStoreProviderProps {
|
|
|
37
38
|
isDDocOwner?: boolean;
|
|
38
39
|
setUsername?: React.Dispatch<React.SetStateAction<string>>;
|
|
39
40
|
}
|
|
40
|
-
export declare const CommentStoreProvider: ({ children, editor, ydoc, isFocusMode, setActiveCommentId, focusCommentWithActiveId, setInitialComments, onNewComment, onEditComment, onEditReply, onCommentReply, onResolveComment, onUnresolveComment, onDeleteComment, onInlineComment, onComment, setCommentDrawerOpen, connectViaWallet, connectViaUsername, ensResolutionUrl, commentAnchorsRef, initialCommentAnchors, setUsername: setUsernameProp, initialComments, username, activeCommentId, activeTabId, isConnected, isLoading, isDDocOwner, }: CommentStoreProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const CommentStoreProvider: ({ children, editor, ydoc, isFocusMode, setActiveCommentId, focusCommentWithActiveId, setInitialComments, onNewComment, onEditComment, onEditReply, onCommentReply, onResolveComment, onUnresolveComment, onDeleteComment, onDeleteReply, onInlineComment, onComment, setCommentDrawerOpen, connectViaWallet, connectViaUsername, ensResolutionUrl, commentAnchorsRef, initialCommentAnchors, setUsername: setUsernameProp, initialComments, username, activeCommentId, activeTabId, isConnected, isLoading, isDDocOwner, }: CommentStoreProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
42
|
interface CommentRefsContextType {
|
|
42
43
|
commentsSectionRef: React.RefObject<HTMLDivElement>;
|
|
43
44
|
replySectionRef: React.RefObject<HTMLDivElement>;
|
|
@@ -21,6 +21,7 @@ export interface CommentExternalDeps {
|
|
|
21
21
|
onResolveComment?: (commentId: string, meta?: CommentMutationMeta) => void;
|
|
22
22
|
onUnresolveComment?: (commentId: string, meta?: CommentMutationMeta) => void;
|
|
23
23
|
onDeleteComment?: (commentId: string, meta?: CommentMutationMeta) => void;
|
|
24
|
+
onDeleteReply?: (commentId: string, replyId: string) => void;
|
|
24
25
|
onInlineComment?: () => void;
|
|
25
26
|
onComment?: () => void;
|
|
26
27
|
setCommentDrawerOpen?: (open: boolean) => void;
|
package/dist/package/types.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ export interface DdocProps extends CommentAccountProps {
|
|
|
127
127
|
onResolveComment?: (activeCommentId: string, meta?: CommentMutationMeta) => void;
|
|
128
128
|
onUnresolveComment?: (activeCommentId: string, meta?: CommentMutationMeta) => void;
|
|
129
129
|
onDeleteComment?: (activeCommentId: string, meta?: CommentMutationMeta) => void;
|
|
130
|
+
onDeleteReply?: (activeCommentId: string, replyId: string) => void;
|
|
130
131
|
showTOC?: boolean;
|
|
131
132
|
setShowTOC?: React.Dispatch<SetStateAction<boolean>>;
|
|
132
133
|
extensions?: Record<string, Extension | any>;
|