@fileverse-dev/dsheet 1.1.8-live-query-v4 → 1.1.9
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 +28496 -28686
- package/dist/package/contexts/editor-context.d.ts +1 -4
- package/dist/package/dsheet-editor.d.ts +1 -1
- package/dist/package/hooks/use-editor-data.d.ts +1 -2
- package/dist/package/types.d.ts +0 -2
- package/dist/package/utils/after-update-cell.d.ts +1 -3
- package/package.json +3 -3
- package/dist/package/hooks/live-query/constants.d.ts +0 -1
- package/dist/package/hooks/live-query/helpers.d.ts +0 -2
- package/dist/package/hooks/live-query/use-live-query.d.ts +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Sheet, WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
3
3
|
import { IndexeddbPersistence } from 'y-indexeddb';
|
|
4
4
|
import { SheetUpdateData } from '../types';
|
|
5
5
|
|
|
@@ -36,7 +36,6 @@ export interface EditorContextType {
|
|
|
36
36
|
collaborationStatus: 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
37
37
|
syncStatus: 'initializing' | 'syncing' | 'synced' | 'error';
|
|
38
38
|
isCollaborative?: boolean;
|
|
39
|
-
handleLiveQuery: (subsheetIndex: number, data: LiveQueryData) => void;
|
|
40
39
|
}
|
|
41
40
|
interface EditorProviderProps {
|
|
42
41
|
setSelectedTemplate?: React.Dispatch<React.SetStateAction<string>>;
|
|
@@ -58,8 +57,6 @@ interface EditorProviderProps {
|
|
|
58
57
|
editorStateRef?: React.MutableRefObject<{
|
|
59
58
|
refreshIndexedDB: () => Promise<void>;
|
|
60
59
|
} | null>;
|
|
61
|
-
enableLiveQuery?: boolean;
|
|
62
|
-
liveQueryRefreshRate?: number;
|
|
63
60
|
}
|
|
64
61
|
export declare const EditorProvider: React.FC<EditorProviderProps>;
|
|
65
62
|
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, }: DsheetProps) => JSX.Element;
|
|
11
11
|
export default SpreadsheetEditor;
|
|
@@ -13,12 +13,11 @@ export declare const useEditorData: (ydocRef: React.MutableRefObject<Y.Doc | nul
|
|
|
13
13
|
[key: string]: {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>>) => {
|
|
17
17
|
sheetData: Sheet[];
|
|
18
18
|
setSheetData: import('react').Dispatch<import('react').SetStateAction<Sheet[]>>;
|
|
19
19
|
currentDataRef: import('react').MutableRefObject<Sheet[]>;
|
|
20
20
|
remoteUpdateRef: import('react').MutableRefObject<boolean>;
|
|
21
21
|
isDataLoaded: boolean;
|
|
22
22
|
handleChange: (data: Sheet[]) => void;
|
|
23
|
-
handleLiveQuery: (subsheetIndex: number, queryData: import('@fileverse-dev/fortune-core').LiveQueryData) => void;
|
|
24
23
|
};
|
package/dist/package/types.d.ts
CHANGED
|
@@ -75,8 +75,6 @@ export interface DsheetProps {
|
|
|
75
75
|
refreshIndexedDB: () => Promise<void>;
|
|
76
76
|
} | null>;
|
|
77
77
|
handleSmartContractQuery?: SmartContractQueryHandler;
|
|
78
|
-
enableLiveQuery?: boolean;
|
|
79
|
-
liveQueryRefreshRate?: number;
|
|
80
78
|
}
|
|
81
79
|
export type BaseError = {
|
|
82
80
|
message: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Cell, WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
2
|
import { OnboardingHandlerType, DataBlockApiKeyHandlerType } from '../types';
|
|
3
|
-
import { LiveQueryData } from '@fileverse-dev/fortune-core';
|
|
4
3
|
|
|
5
4
|
export type SmartContractResponse = {
|
|
6
5
|
callSignature: unknown[];
|
|
@@ -26,8 +25,7 @@ interface AfterUpdateCellParams {
|
|
|
26
25
|
setFetchingURLData: (fetching: boolean) => void;
|
|
27
26
|
onboardingHandler: OnboardingHandlerType | undefined;
|
|
28
27
|
dataBlockApiKeyHandler: DataBlockApiKeyHandlerType | undefined;
|
|
29
|
-
handleSmartContractQuery
|
|
30
|
-
handleLiveQueryData?: (subsheetIndex: number, queryData: LiveQueryData) => void;
|
|
28
|
+
handleSmartContractQuery: SmartContractQueryHandler | undefined;
|
|
31
29
|
setInputFetchURLDataBlock: React.Dispatch<React.SetStateAction<string>> | undefined;
|
|
32
30
|
storeApiKey?: (apiKeyName: string) => void;
|
|
33
31
|
onDataBlockApiResponse?: (dataBlockName: string) => void;
|
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.
|
|
5
|
+
"version": "1.1.9",
|
|
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.
|
|
38
|
+
"@fileverse-dev/fortune-react": "^1.1.6",
|
|
39
39
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
40
40
|
"classnames": "^2.5.1",
|
|
41
41
|
"exceljs": "^4.4.0",
|
|
@@ -78,4 +78,4 @@
|
|
|
78
78
|
"typescript": "^5.2.2",
|
|
79
79
|
"vite": "^5.0.0"
|
|
80
80
|
}
|
|
81
|
-
}
|
|
81
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SUPPORTED_LIVE_QUERY_FUNCTIONS: string[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LiveQueryData, Sheet, WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
|
-
|
|
3
|
-
export declare const useLiveQuery: (sheetEditorRef: React.MutableRefObject<WorkbookInstance | null>, enableLiveQuery?: boolean, refreshRate?: number) => {
|
|
4
|
-
handleLiveQuery: (subsheetIndex: number, queryData: LiveQueryData) => void;
|
|
5
|
-
initialiseLiveQueryData: (sheets: Sheet[]) => void;
|
|
6
|
-
};
|