@fileverse-dev/ddoc 3.0.45-patch-20 → 3.0.45-patch-21
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-DrA56D7W.mjs → ccip-zAf96Xfh.mjs} +1 -1
- package/dist/{index-wPv4ZU7p.mjs → index-CYbWD8RM.mjs} +44021 -43984
- package/dist/index.es.js +1 -1
- package/dist/package/components/inline-comment/context/comment-context.d.ts +1 -1
- package/dist/package/components/inline-comment/context/types.d.ts +2 -0
- package/dist/package/components/tabs/document-mobile-tab-panel.d.ts +2 -1
- package/dist/package/components/tabs/document-tabs-sidebar.d.ts +4 -2
- package/dist/package/components/tabs/tab-item.d.ts +2 -1
- package/dist/package/components/tabs/utils/tab-utils.d.ts +2 -0
- package/dist/package/components/toc/document-outline.d.ts +1 -1
- package/dist/package/components/toc/types.d.ts +1 -0
- package/dist/package/extensions/comment/comment.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CommentContextType, CommentProviderProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const CommentProvider: ({ children, editor, initialComments, setInitialComments, username, setUsername, activeCommentId, setActiveCommentId, focusCommentWithActiveId, onNewComment, onCommentReply, ensResolutionUrl, onResolveComment, onUnresolveComment, onDeleteComment, isConnected, connectViaWallet, isLoading, connectViaUsername, isDDocOwner, onInlineComment, onComment, setCommentDrawerOpen, }: CommentProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const CommentProvider: ({ children, editor, initialComments, setInitialComments, username, setUsername, activeCommentId, setActiveCommentId, activeTabId, focusCommentWithActiveId, onNewComment, onCommentReply, ensResolutionUrl, onResolveComment, onUnresolveComment, onDeleteComment, isConnected, connectViaWallet, isLoading, connectViaUsername, isDDocOwner, onInlineComment, onComment, setCommentDrawerOpen, }: CommentProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const useComments: () => CommentContextType;
|
|
@@ -50,6 +50,7 @@ export interface CommentContextType extends CommentAccountProps {
|
|
|
50
50
|
isCommentActive: boolean;
|
|
51
51
|
isCommentResolved: boolean;
|
|
52
52
|
ensResolutionUrl: string;
|
|
53
|
+
activeTabId: string;
|
|
53
54
|
onCommentReply?: (activeCommentId: string, reply: IComment) => void;
|
|
54
55
|
onComment?: () => void;
|
|
55
56
|
setCommentDrawerOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -78,6 +79,7 @@ export interface CommentProviderProps extends CommentAccountProps {
|
|
|
78
79
|
setUsername?: React.Dispatch<SetStateAction<string>>;
|
|
79
80
|
activeCommentId: string | null;
|
|
80
81
|
setActiveCommentId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
82
|
+
activeTabId: string;
|
|
81
83
|
focusCommentWithActiveId: (id: string) => void;
|
|
82
84
|
ensResolutionUrl: string;
|
|
83
85
|
onInlineComment?: () => void;
|
|
@@ -16,5 +16,6 @@ export interface DocumentMobileTabPanelProps {
|
|
|
16
16
|
emoji?: string;
|
|
17
17
|
}) => void;
|
|
18
18
|
duplicateTab: (tabId: string) => void;
|
|
19
|
+
tabCommentCounts: Record<string, number>;
|
|
19
20
|
}
|
|
20
|
-
export declare const DocumentMobileTabPanel: ({ tabs, activeTabId, setActiveTabId, editor, items, setItems, orientation, renameTab, duplicateTab, }: DocumentMobileTabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const DocumentMobileTabPanel: ({ tabs, activeTabId, setActiveTabId, editor, items, setItems, orientation, renameTab, duplicateTab, tabCommentCounts, }: DocumentMobileTabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,9 +25,10 @@ export interface DocumentTabsSidebarProps {
|
|
|
25
25
|
duplicateTab: (tabId: string) => void;
|
|
26
26
|
orderTab: (destinationTabId: string, activeTabId: string) => void;
|
|
27
27
|
ydoc: Y.Doc;
|
|
28
|
+
tabCommentCounts: Record<string, number>;
|
|
28
29
|
}
|
|
29
|
-
export declare const DocumentTabsSidebar: ({ tabs, activeTabId, setActiveTabId, showTOC, setShowTOC, hasToC, isPreviewMode, editor, items, setItems, orientation, createTab, renameTab, duplicateTab, orderTab, ydoc, }: DocumentTabsSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export declare const DdocTab: ({ tab, handleEmojiChange, handleNameChange, onClick, editor, tocItem, setTocItems, orientation, activeTabId, duplicateTab, activeDragId, ydoc, }: {
|
|
30
|
+
export declare const DocumentTabsSidebar: ({ tabs, activeTabId, setActiveTabId, showTOC, setShowTOC, hasToC, isPreviewMode, editor, items, setItems, orientation, createTab, renameTab, duplicateTab, orderTab, ydoc, tabCommentCounts, }: DocumentTabsSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const DdocTab: ({ tab, handleEmojiChange, handleNameChange, onClick, editor, tocItem, setTocItems, orientation, activeTabId, duplicateTab, activeDragId, ydoc, commentCount, }: {
|
|
31
32
|
tab: Tab;
|
|
32
33
|
handleNameChange: (tabId: string, nextName: string) => void;
|
|
33
34
|
handleEmojiChange: (tabId: string, nextEmoji: string) => void;
|
|
@@ -40,4 +41,5 @@ export declare const DdocTab: ({ tab, handleEmojiChange, handleNameChange, onCli
|
|
|
40
41
|
duplicateTab: (tabId: string) => void;
|
|
41
42
|
activeDragId: string | null;
|
|
42
43
|
ydoc: Y.Doc;
|
|
44
|
+
commentCount: number;
|
|
43
45
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export declare const SortableTabItem: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export declare const TabItem: ({ tabId, name, emoji, onNameChange, onEmojiChange, onClick, isActive, onDuplicate, dragHandleProps, hideContentMenu, }: {
|
|
2
|
+
export declare const TabItem: ({ tabId, name, emoji, commentCount, onNameChange, onEmojiChange, onClick, isActive, onDuplicate, dragHandleProps, hideContentMenu, }: {
|
|
3
3
|
tabId: string;
|
|
4
4
|
name: string;
|
|
5
5
|
emoji: string;
|
|
6
|
+
commentCount?: number;
|
|
6
7
|
onNameChange: (name: string) => void;
|
|
7
8
|
onEmojiChange: (emoji: string) => void;
|
|
8
9
|
onClick: () => void;
|
|
@@ -5,6 +5,8 @@ export interface Tab {
|
|
|
5
5
|
showOutline: boolean;
|
|
6
6
|
emoji: string | null;
|
|
7
7
|
}
|
|
8
|
+
export declare const DEFAULT_TAB_ID = "default-tab";
|
|
9
|
+
export declare const DEFAULT_TAB_NAME = "Tab 1";
|
|
8
10
|
export declare function migrateDefaultFragmentToTab(doc: Y.Doc, targetTabId: string): void;
|
|
9
11
|
export declare function deriveTabsFromEncodedState(yjsEncodedState: string, doc: Y.Doc): {
|
|
10
12
|
tabList: Tab[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DocumentOutlineProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const DocumentOutline: ({ editor, hasToC, items, setItems, showTOC, setShowTOC, isPreviewMode, orientation, tabs, setTabs, activeTabId, setActiveTabId, createTab, renameTab, duplicateTab, orderTab, ydoc, }: DocumentOutlineProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const DocumentOutline: ({ editor, hasToC, items, setItems, showTOC, setShowTOC, isPreviewMode, orientation, tabs, setTabs, activeTabId, setActiveTabId, createTab, renameTab, duplicateTab, orderTab, ydoc, tabCommentCounts, }: DocumentOutlineProps) => import("react/jsx-runtime").JSX.Element;
|