@fileverse-dev/ddoc 3.0.55-pill-2 → 3.0.56
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/README.md +5 -1
- package/dist/index.es.js +41936 -39233
- package/dist/package/components/editor-toolbar.d.ts +6 -1
- package/dist/package/components/editor-utils.d.ts +2 -2
- package/dist/package/components/export-modal.d.ts +22 -0
- package/dist/package/components/import-export-button.d.ts +8 -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/preview-export-trigger.d.ts +24 -0
- package/dist/package/components/tabs/confirm-delete-modal.d.ts +19 -0
- package/dist/package/components/tabs/document-mobile-tab-panel.d.ts +27 -0
- package/dist/package/components/tabs/document-tabs-sidebar.d.ts +60 -0
- package/dist/package/components/tabs/tab-emoji-picker.d.ts +16 -0
- package/dist/package/components/tabs/tab-item.d.ts +58 -0
- package/dist/package/components/tabs/utils/tab-utils.d.ts +21 -0
- package/dist/package/components/toc/document-outline-toc-panel.d.ts +5 -0
- package/dist/package/components/toc/document-outline.d.ts +1 -1
- package/dist/package/components/toc/memorized-toc.d.ts +3 -0
- package/dist/package/components/toc/types.d.ts +25 -2
- package/dist/package/extensions/comment/comment.d.ts +1 -0
- package/dist/package/hooks/use-ddoc-export.d.ts +24 -0
- package/dist/package/hooks/use-tab-editor.d.ts +62 -0
- package/dist/package/hooks/use-tab-manager.d.ts +32 -0
- package/dist/package/hooks/use-tab-metadata-history.d.ts +14 -0
- package/dist/package/hooks/use-yjs-setup.d.ts +27 -0
- package/dist/package/sync-local/useSyncMachine.d.ts +1 -2
- package/dist/package/types.d.ts +11 -3
- package/dist/package/use-ddoc-editor.d.ts +29 -12
- package/dist/style.css +1 -1
- package/package.json +5 -1
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
import { DdocProps } from './types';
|
|
2
|
-
import {
|
|
2
|
+
import { Editor } from '@tiptap/react';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export declare const useDdocEditor: ({ isPreviewMode, initialContent, versionHistoryState, enableCollaboration, onChange, onCollaboratorChange, onCommentInteraction, onError, setCharacterCount, setWordCount, ipfsImageUploadFn, ddocId, enableIndexeddbSync, unFocused, theme, zoomLevel, onInvalidContentError, ignoreCorruptedData, isPresentationMode, metadataProxyUrl, extensions: externalExtensions, onCopyHeadingLink, ipfsImageFetchFn, fetchV1ImageFn, isConnected, activeModel, maxTokens, isAIAgentEnabled, collabConfig, onIndexedDbError, disableInlineComment, ...rest }: Partial<DdocProps>) => {
|
|
5
|
+
ydoc: import('yjs').Doc;
|
|
6
|
+
awareness: any;
|
|
7
|
+
refreshYjsIndexedDbProvider: () => Promise<void>;
|
|
8
|
+
terminateSession: () => void;
|
|
7
9
|
isContentLoading: boolean;
|
|
10
|
+
tabs: import('./components/tabs/utils/tab-utils').Tab[];
|
|
11
|
+
hasTabState: boolean;
|
|
12
|
+
isVersionMode: boolean;
|
|
13
|
+
activeTabId: string;
|
|
14
|
+
setTabs: import('react').Dispatch<import('react').SetStateAction<import('./components/tabs/utils/tab-utils').Tab[]>>;
|
|
15
|
+
setActiveTabId: (id: string) => void;
|
|
16
|
+
createTab: () => string;
|
|
17
|
+
deleteTab: (tabId: string) => void;
|
|
18
|
+
renameTab: (tabId: string, { newName, emoji }: {
|
|
19
|
+
newName?: string;
|
|
20
|
+
emoji?: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
duplicateTab: (tabId: string) => string | undefined;
|
|
23
|
+
orderTab: (destinationTabId: string, movedTabId: string) => void;
|
|
24
|
+
onConnect: (connectConfig: import('./sync-local/useSyncMachine').IConnectConf) => void;
|
|
25
|
+
isReady: boolean;
|
|
26
|
+
hasCollabContentInitialised: boolean;
|
|
27
|
+
initialiseYjsIndexedDbProvider: () => Promise<void>;
|
|
28
|
+
editor: Editor | null;
|
|
8
29
|
ref: import('react').RefObject<HTMLDivElement>;
|
|
9
|
-
|
|
10
|
-
|
|
30
|
+
slides: string[];
|
|
31
|
+
setSlides: import('react').Dispatch<import('react').SetStateAction<string[]>>;
|
|
32
|
+
tocItems: import('./components/toc/types').ToCItemType[];
|
|
33
|
+
setTocItems: import('react').Dispatch<import('react').SetStateAction<import('./components/toc/types').ToCItemType[]>>;
|
|
11
34
|
activeCommentId: string | null;
|
|
12
35
|
setActiveCommentId: import('react').Dispatch<import('react').SetStateAction<string | null>>;
|
|
13
36
|
focusCommentWithActiveId: (id: string) => void;
|
|
14
|
-
slides: string[];
|
|
15
|
-
setSlides: import('react').Dispatch<import('react').SetStateAction<string[]>>;
|
|
16
|
-
tocItems: ToCItemType[];
|
|
17
|
-
setTocItems: import('react').Dispatch<import('react').SetStateAction<ToCItemType[]>>;
|
|
18
|
-
terminateSession: () => void;
|
|
19
|
-
awareness: any;
|
|
20
37
|
};
|