@fileverse-dev/dsheet 1.1.8-live-query-v3 → 1.1.8-live-query-v5
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 +22058 -22022
- package/dist/package/contexts/editor-context.d.ts +1 -1
- package/dist/package/dsheet-editor.d.ts +1 -1
- package/dist/package/hooks/live-query/use-live-query.d.ts +1 -1
- package/dist/package/hooks/use-editor-data.d.ts +1 -1
- package/dist/package/types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -59,7 +59,7 @@ interface EditorProviderProps {
|
|
|
59
59
|
refreshIndexedDB: () => Promise<void>;
|
|
60
60
|
} | null>;
|
|
61
61
|
enableLiveQuery?: boolean;
|
|
62
|
-
|
|
62
|
+
liveQueryRefreshRate?: number;
|
|
63
63
|
}
|
|
64
64
|
export declare const EditorProvider: React.FC<EditorProviderProps>;
|
|
65
65
|
export declare const useEditor: () => EditorContextType;
|
|
@@ -7,5 +7,5 @@ import { DsheetProps } from './types';
|
|
|
7
7
|
* @param props - Component properties
|
|
8
8
|
* @returns The SpreadsheetEditor component
|
|
9
9
|
*/
|
|
10
|
-
declare const SpreadsheetEditor: ({ isCollaborative, isReadOnly, allowComments, renderNavbar, enableIndexeddbSync, dsheetId, portalContent, onChange, username, selectedTemplate, toggleTemplateSidebar, isTemplateOpen, enableWebrtc, onboardingComplete, onboardingHandler, commentData, getCommentCellUI, dataBlockApiKeyHandler, setFetchingURLData, setShowFetchURLModal, setInputFetchURLDataBlock, sheetEditorRef: externalSheetEditorRef, storeApiKey, onDuneChartEmbed, onSheetCountChange, onDataBlockApiResponse, isAuthorized, getDocumentTitle, updateDocumentTitle, setShowSmartContractModal, editorStateRef, handleSmartContractQuery, setSelectedTemplate, isNewSheet,
|
|
10
|
+
declare const SpreadsheetEditor: ({ isCollaborative, isReadOnly, allowComments, renderNavbar, enableIndexeddbSync, dsheetId, portalContent, onChange, username, selectedTemplate, toggleTemplateSidebar, isTemplateOpen, enableWebrtc, onboardingComplete, onboardingHandler, commentData, getCommentCellUI, dataBlockApiKeyHandler, setFetchingURLData, setShowFetchURLModal, setInputFetchURLDataBlock, sheetEditorRef: externalSheetEditorRef, storeApiKey, onDuneChartEmbed, onSheetCountChange, onDataBlockApiResponse, isAuthorized, getDocumentTitle, updateDocumentTitle, setShowSmartContractModal, editorStateRef, handleSmartContractQuery, setSelectedTemplate, isNewSheet, liveQueryRefreshRate, enableLiveQuery, }: DsheetProps) => JSX.Element;
|
|
11
11
|
export default SpreadsheetEditor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LiveQueryData, Sheet, WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
2
|
|
|
3
|
-
export declare const useLiveQuery: (sheetEditorRef: React.MutableRefObject<WorkbookInstance | null>, enableLiveQuery?: boolean,
|
|
3
|
+
export declare const useLiveQuery: (sheetEditorRef: React.MutableRefObject<WorkbookInstance | null>, enableLiveQuery?: boolean, refreshRate?: number) => {
|
|
4
4
|
handleLiveQuery: (subsheetIndex: number, queryData: LiveQueryData) => void;
|
|
5
5
|
initialiseLiveQueryData: (sheets: Sheet[]) => void;
|
|
6
6
|
};
|
|
@@ -13,7 +13,7 @@ export declare const useEditorData: (ydocRef: React.MutableRefObject<Y.Doc | nul
|
|
|
13
13
|
[key: string]: {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
};
|
|
16
|
-
}>>, enableLiveQuery?: boolean,
|
|
16
|
+
}>>, enableLiveQuery?: boolean, liveQueryRefreshRate?: number) => {
|
|
17
17
|
sheetData: Sheet[];
|
|
18
18
|
setSheetData: import('react').Dispatch<import('react').SetStateAction<Sheet[]>>;
|
|
19
19
|
currentDataRef: import('react').MutableRefObject<Sheet[]>;
|
package/dist/package/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fileverse-dev/dsheet",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "DSheet",
|
|
5
|
-
"version": "1.1.8-live-query-
|
|
5
|
+
"version": "1.1.8-live-query-v5",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@fileverse-dev/dsheets-templates": "^0.0.18",
|
|
37
37
|
"@fileverse-dev/formulajs": "^4.4.12-mod-2",
|
|
38
|
-
"@fileverse-dev/fortune-react": "^1.1.5-live-query-
|
|
38
|
+
"@fileverse-dev/fortune-react": "^1.1.5-live-query-4",
|
|
39
39
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
40
40
|
"classnames": "^2.5.1",
|
|
41
41
|
"exceljs": "^4.4.0",
|