@fileverse-dev/ddoc 3.0.53-patch-11 → 3.0.53-patch-13
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.
|
@@ -5,9 +5,8 @@ export interface Tab {
|
|
|
5
5
|
showOutline: boolean;
|
|
6
6
|
emoji: string | null;
|
|
7
7
|
}
|
|
8
|
-
export declare const DEFAULT_TAB_ID = "default
|
|
8
|
+
export declare const DEFAULT_TAB_ID = "default";
|
|
9
9
|
export declare const DEFAULT_TAB_NAME = "Tab 1";
|
|
10
|
-
export declare function migrateDefaultFragmentToTab(doc: Y.Doc, targetTabId: string): void;
|
|
11
10
|
export declare function deriveTabsFromEncodedState(yjsEncodedState: string, doc: Y.Doc, options?: {
|
|
12
11
|
createDefaultTabIfMissing?: boolean;
|
|
13
12
|
}): {
|
|
@@ -7,8 +7,9 @@ interface UseTabManagerArgs {
|
|
|
7
7
|
enableCollaboration: DdocProps['enableCollaboration'];
|
|
8
8
|
isDDocOwner: boolean;
|
|
9
9
|
createDefaultTabIfMissing: boolean;
|
|
10
|
+
shouldSyncActiveTab: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare const useTabManager: ({ ydoc, initialContent, enableCollaboration, isDDocOwner, createDefaultTabIfMissing, }: UseTabManagerArgs) => {
|
|
12
|
+
export declare const useTabManager: ({ ydoc, initialContent, enableCollaboration, isDDocOwner, createDefaultTabIfMissing, shouldSyncActiveTab, }: UseTabManagerArgs) => {
|
|
12
13
|
tabs: Tab[];
|
|
13
14
|
hasTabState: boolean;
|
|
14
15
|
activeTabId: string;
|
|
@@ -2,6 +2,7 @@ import { DdocProps } from './types';
|
|
|
2
2
|
|
|
3
3
|
export declare const useDdocEditor: ({ isPreviewMode, initialContent, versionHistoryState, enableCollaboration, onChange, onCollaboratorChange, onCommentInteraction, onError, setCharacterCount, setWordCount, ipfsImageUploadFn, ddocId, enableIndexeddbSync, unFocused, zoomLevel, onInvalidContentError, ignoreCorruptedData, isPresentationMode, metadataProxyUrl, extensions: externalExtensions, onCopyHeadingLink, ipfsImageFetchFn, fetchV1ImageFn, isConnected, activeModel, maxTokens, isAIAgentEnabled, collabConfig, onIndexedDbError, disableInlineComment, ...rest }: Partial<DdocProps>) => {
|
|
4
4
|
ydoc: import('yjs').Doc;
|
|
5
|
+
awareness: any;
|
|
5
6
|
refreshYjsIndexedDbProvider: () => Promise<void>;
|
|
6
7
|
terminateSession: () => void;
|
|
7
8
|
isContentLoading: boolean;
|
|
@@ -21,7 +22,6 @@ export declare const useDdocEditor: ({ isPreviewMode, initialContent, versionHis
|
|
|
21
22
|
orderTab: (destinationTabId: string, movedTabId: string) => void;
|
|
22
23
|
onConnect: (connectConfig: import('./sync-local/useSyncMachine').IConnectConf) => void;
|
|
23
24
|
isReady: boolean;
|
|
24
|
-
awareness: any;
|
|
25
25
|
hasCollabContentInitialised: boolean;
|
|
26
26
|
initialiseYjsIndexedDbProvider: () => Promise<void>;
|
|
27
27
|
editor: import('@tiptap/core').Editor | null;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fileverse-dev/ddoc",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "DDoc",
|
|
5
|
-
"version": "3.0.53-patch-
|
|
5
|
+
"version": "3.0.53-patch-13",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
@@ -39,9 +39,6 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@_ueberdosis/prosemirror-tables": "^1.1.3",
|
|
41
41
|
"@aarkue/tiptap-math-extension": "^1.4.0",
|
|
42
|
-
"@dnd-kit/core": "^6.3.1",
|
|
43
|
-
"@dnd-kit/sortable": "^10.0.0",
|
|
44
|
-
"@dnd-kit/utilities": "^3.2.2",
|
|
45
42
|
"@fileverse-dev/md2slides": "^0.0.8",
|
|
46
43
|
"@floating-ui/dom": "^1.7.4",
|
|
47
44
|
"@noble/ciphers": "^1.3.0",
|
|
@@ -90,8 +87,6 @@
|
|
|
90
87
|
"dompurify": "^3.1.6",
|
|
91
88
|
"embla-carousel-react": "^8.1.5",
|
|
92
89
|
"emojibase-data": "^16.0.3",
|
|
93
|
-
"framer-motion": "^11.11.8",
|
|
94
|
-
"frimousse": "^0.3.0",
|
|
95
90
|
"highlight.js": "^11.11.1",
|
|
96
91
|
"js-base64": "^3.7.7",
|
|
97
92
|
"katex": "^0.16.11",
|
|
@@ -125,9 +120,13 @@
|
|
|
125
120
|
"yjs": "^13.6.15"
|
|
126
121
|
},
|
|
127
122
|
"peerDependencies": {
|
|
123
|
+
"@dnd-kit/core": ">=6.3.1",
|
|
124
|
+
"@dnd-kit/sortable": ">=10.0.0",
|
|
125
|
+
"@dnd-kit/utilities": ">=3.2.2",
|
|
128
126
|
"@fileverse/crypto": ">=0.0.21",
|
|
129
127
|
"@fileverse/ui": ">=5.0.0",
|
|
130
128
|
"framer-motion": ">=11.2.10",
|
|
129
|
+
"frimousse": ">=0.3.0",
|
|
131
130
|
"viem": ">=2.13.8"
|
|
132
131
|
},
|
|
133
132
|
"devDependencies": {
|