@fileverse-dev/dsheet 4.1.11-minorfixes-1 → 4.1.11-opaque-sheets.0
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/editor/contexts/editor-context.d.ts +1 -0
- package/dist/editor/hooks/use-editor-sync.d.ts +1 -1
- package/dist/editor/hooks/use-editor-sync.test.d.ts +1 -0
- package/dist/editor/types.d.ts +3 -0
- package/dist/{index-B46VmFnx.js → index-BGNu8pYa.js} +9813 -9818
- package/dist/index.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/sync-local/SyncManager.test.d.ts +1 -0
- package/dist/sync-local/socketClient.d.ts +2 -0
- package/dist/sync-local/socketClient.test.d.ts +1 -0
- package/dist/sync-local/types/index.d.ts +3 -0
- package/dist/{use-xlsx-import-impl-B8lOWtPn.js → use-xlsx-import-impl-Cc2hixgV.js} +3 -3
- package/dist/{xlsx-defined-names-B5CIkOOq.js → xlsx-defined-names-DA7ImkCl.js} +1 -1
- package/dist/{xlsx-export-impl-BW_ib6gt.js → xlsx-export-impl-CWo6sDun.js} +3 -3
- package/dist/{xlsx-hyperlink-inline-Cy2cJwLX.js → xlsx-hyperlink-inline-Cmjeuif8.js} +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IndexeddbPersistence } from 'y-indexeddb';
|
|
2
2
|
import { CollaborationProps } from '../../sync-local/types';
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
|
-
export declare const useEditorSync: (dsheetId: string, enableIndexeddbSync?: boolean, isReadOnly?: boolean, portalContent?: string, collaboration?: CollaborationProps, onCollabUpdate?: (fullState: string, updateChunk: string) => void, onIndexedDbError?: (error: Error) => void) => {
|
|
4
|
+
export declare const useEditorSync: (dsheetId: string, enableIndexeddbSync?: boolean, isReadOnly?: boolean, portalContent?: string, collaboration?: CollaborationProps, onCollabUpdate?: (fullState: string, updateChunk: string) => void, onIndexedDbError?: (error: Error) => void, localStoreId?: string) => {
|
|
5
5
|
ydocRef: import('react').MutableRefObject<Y.Doc | null>;
|
|
6
6
|
persistenceRef: import('react').MutableRefObject<IndexeddbPersistence | null>;
|
|
7
7
|
syncStatus: "error" | "syncing" | "initializing" | "synced";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/editor/types.d.ts
CHANGED
|
@@ -70,6 +70,9 @@ export interface DsheetProps {
|
|
|
70
70
|
renderNavbar?: (editorValues?: EditorValues) => JSX.Element;
|
|
71
71
|
enableIndexeddbSync?: boolean;
|
|
72
72
|
dsheetId: string;
|
|
73
|
+
/** Names the local IndexedDB database and labels content snapshots
|
|
74
|
+
* (default `dsheetId`). `dsheetId` stays the Yjs root key. */
|
|
75
|
+
localStoreId?: string;
|
|
73
76
|
/**
|
|
74
77
|
* Cheap change signal for hosts that persist sheet bodies through Yjs.
|
|
75
78
|
* Unlike `onChange`, this does not build a plain sheet or encode the Y.Doc.
|