@fileverse-dev/ddoc 3.0.53-patch-14 → 3.0.53-patch-16
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 +11457 -11433
- 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/toc/document-outline.d.ts +1 -1
- package/dist/package/components/toc/types.d.ts +4 -0
- package/dist/package/hooks/use-tab-manager.d.ts +2 -1
- package/dist/package/types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -18,5 +18,6 @@ export interface DocumentMobileTabPanelProps {
|
|
|
18
18
|
duplicateTab: (tabId: string) => void;
|
|
19
19
|
tabCommentCounts: Record<string, number>;
|
|
20
20
|
isPreviewMode: boolean;
|
|
21
|
+
tabConfig?: DocumentOutlineProps['tabConfig'];
|
|
21
22
|
}
|
|
22
|
-
export declare const DocumentMobileTabPanel: ({ tabs, activeTabId, setActiveTabId, editor, items, setItems, orientation, renameTab, duplicateTab, tabCommentCounts, isPreviewMode, }: DocumentMobileTabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const DocumentMobileTabPanel: ({ tabs, activeTabId, setActiveTabId, editor, items, setItems, orientation, renameTab, duplicateTab, tabCommentCounts, isPreviewMode, tabConfig, }: DocumentMobileTabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -28,10 +28,11 @@ export interface DocumentTabsSidebarProps {
|
|
|
28
28
|
tabCommentCounts: Record<string, number>;
|
|
29
29
|
tabSectionContainer?: HTMLElement;
|
|
30
30
|
isVersionHistoryMode?: boolean;
|
|
31
|
+
tabConfig?: DocumentOutlineProps['tabConfig'];
|
|
31
32
|
}
|
|
32
33
|
export declare const DocumentTabsSidebar: ({ tabSectionContainer, ...rest }: DocumentTabsSidebarProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
-
export declare const TabSidebar: ({ tabs, activeTabId, setActiveTabId, showTOC, setShowTOC, hasToC, isPreviewMode, editor, items, setItems, orientation, createTab, renameTab, duplicateTab, orderTab, ydoc, tabCommentCounts, isVersionHistoryMode, }: DocumentTabsSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
export declare const DdocTab: ({ tab, tabIndex, tabCount, handleEmojiChange, handleNameChange, onClick, editor, tocItem, setTocItems, orientation, activeTabId, duplicateTab, activeDragId, ydoc, commentCount, moveTabUp, moveTabDown, isPreviewMode, isVersionHistoryMode, }: {
|
|
34
|
+
export declare const TabSidebar: ({ tabs, activeTabId, setActiveTabId, showTOC, setShowTOC, hasToC, isPreviewMode, editor, items, setItems, orientation, createTab, renameTab, duplicateTab, orderTab, ydoc, tabCommentCounts, isVersionHistoryMode, tabConfig, }: DocumentTabsSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare const DdocTab: ({ tab, tabIndex, tabCount, handleEmojiChange, handleNameChange, onClick, editor, tocItem, setTocItems, orientation, activeTabId, duplicateTab, activeDragId, ydoc, commentCount, moveTabUp, moveTabDown, isPreviewMode, isVersionHistoryMode, tabConfig, }: {
|
|
35
36
|
tab: Tab;
|
|
36
37
|
tabIndex: number;
|
|
37
38
|
tabCount: number;
|
|
@@ -51,4 +52,5 @@ export declare const DdocTab: ({ tab, tabIndex, tabCount, handleEmojiChange, han
|
|
|
51
52
|
moveTabDown: () => void;
|
|
52
53
|
isPreviewMode: boolean;
|
|
53
54
|
isVersionHistoryMode?: boolean;
|
|
55
|
+
tabConfig?: DocumentOutlineProps["tabConfig"];
|
|
54
56
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,6 +21,7 @@ export interface TabItemProps {
|
|
|
21
21
|
onMoveDown?: () => void;
|
|
22
22
|
isPreviewMode: boolean;
|
|
23
23
|
isVersionHistoryMode?: boolean;
|
|
24
|
+
onCopyLink?: () => void;
|
|
24
25
|
}
|
|
25
26
|
interface SortableTabItemProps extends Omit<TabItemProps, 'dragHandleProps'> {
|
|
26
27
|
id: string;
|
|
@@ -37,7 +38,7 @@ interface TabContextMenuProps {
|
|
|
37
38
|
sections: TabContextMenuItem[][];
|
|
38
39
|
}
|
|
39
40
|
export declare const SortableTabItem: (props: SortableTabItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
export declare const TabItem: ({ tabId, name, emoji, commentCount, onNameChange, onEmojiChange, onClick, isActive, onDuplicate, dragHandleProps, hideContentMenu, showOutline, handleShowOutline, canMoveUp, canMoveDown, onMoveUp, onMoveDown, isPreviewMode, isVersionHistoryMode, }: TabItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const TabItem: ({ tabId, name, emoji, commentCount, onNameChange, onEmojiChange, onClick, isActive, onDuplicate, dragHandleProps, hideContentMenu, showOutline, handleShowOutline, canMoveUp, canMoveDown, onMoveUp, onMoveDown, isPreviewMode, isVersionHistoryMode, onCopyLink, }: TabItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
42
|
export declare const TabDragPreview: ({ name, emoji, }: {
|
|
42
43
|
name: string;
|
|
43
44
|
emoji: string;
|
|
@@ -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, tabCommentCounts, tabSectionContainer, isVersionHistoryMode, }: 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, tabSectionContainer, isVersionHistoryMode, tabConfig, }: DocumentOutlineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,8 +8,9 @@ interface UseTabManagerArgs {
|
|
|
8
8
|
isDDocOwner: boolean;
|
|
9
9
|
createDefaultTabIfMissing: boolean;
|
|
10
10
|
shouldSyncActiveTab: boolean;
|
|
11
|
+
defaultTabId?: string;
|
|
11
12
|
}
|
|
12
|
-
export declare const useTabManager: ({ ydoc, initialContent, enableCollaboration, isDDocOwner, createDefaultTabIfMissing, shouldSyncActiveTab, }: UseTabManagerArgs) => {
|
|
13
|
+
export declare const useTabManager: ({ ydoc, initialContent, enableCollaboration, isDDocOwner, createDefaultTabIfMissing, shouldSyncActiveTab, defaultTabId, }: UseTabManagerArgs) => {
|
|
13
14
|
tabs: Tab[];
|
|
14
15
|
hasTabState: boolean;
|
|
15
16
|
activeTabId: string;
|
package/dist/package/types.d.ts
CHANGED
|
@@ -71,6 +71,10 @@ export interface DocumentStyling {
|
|
|
71
71
|
orientation?: 'portrait' | 'landscape';
|
|
72
72
|
}
|
|
73
73
|
export interface DdocProps extends CommentAccountProps {
|
|
74
|
+
tabConfig?: {
|
|
75
|
+
onCopyTabLink?: (tabId: string) => void;
|
|
76
|
+
defaultTabId?: string;
|
|
77
|
+
};
|
|
74
78
|
versionHistoryState?: {
|
|
75
79
|
enabled: boolean;
|
|
76
80
|
versionId: string;
|