@fileverse-dev/ddoc 3.0.75 → 3.0.77

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.
@@ -12,9 +12,10 @@ interface UseTabManagerArgs {
12
12
  defaultTabId?: string;
13
13
  onVersionHistoryActiveTabChange?: (tabId: string | null) => void;
14
14
  getEditor?: () => Editor | null;
15
+ flushPendingUpdate?: () => void;
15
16
  }
16
17
  export declare const getNewTabId: () => string;
17
- export declare const useTabManager: ({ ydoc, initialContent, enableCollaboration, isDDocOwner, createDefaultTabIfMissing, shouldSyncActiveTab, defaultTabId, onVersionHistoryActiveTabChange, getEditor, }: UseTabManagerArgs) => {
18
+ export declare const useTabManager: ({ ydoc, initialContent, enableCollaboration, isDDocOwner, createDefaultTabIfMissing, shouldSyncActiveTab, defaultTabId, onVersionHistoryActiveTabChange, flushPendingUpdate, getEditor, }: UseTabManagerArgs) => {
18
19
  tabs: Tab[];
19
20
  hasTabState: boolean;
20
21
  activeTabId: string;
@@ -17,6 +17,7 @@ export declare const useYjsSetup: ({ onChange, enableIndexeddbSync, ddocId, coll
17
17
  hasCollabContentInitialised: boolean;
18
18
  initialiseYjsIndexedDbProvider: () => Promise<void>;
19
19
  refreshYjsIndexedDbProvider: () => Promise<void>;
20
+ flushPendingUpdate: () => void;
20
21
  collabState: import('../types').CollabState;
21
22
  };
22
23
  export {};
@@ -25,6 +25,7 @@ export declare const useDdocEditor: ({ isPreviewMode, initialContent, versionHis
25
25
  isReady: boolean;
26
26
  hasCollabContentInitialised: boolean;
27
27
  initialiseYjsIndexedDbProvider: () => Promise<void>;
28
+ flushPendingUpdate: () => void;
28
29
  collabState: import('./types').CollabState;
29
30
  editor: Editor | null;
30
31
  ref: import('react').RefObject<HTMLDivElement>;
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.75",
5
+ "version": "3.0.77",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -152,4 +152,4 @@
152
152
  "typescript": "^5.2.2",
153
153
  "vite": "^5.0.0"
154
154
  }
155
- }
155
+ }