@fileverse-dev/dsheet 1.2.59-patch-3 → 1.2.59-sm-ref-patch-1
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.
|
@@ -40,7 +40,6 @@ export interface EditorContextType {
|
|
|
40
40
|
handleLiveQuery: (subsheetIndex: number, data: LiveQueryData) => void;
|
|
41
41
|
}
|
|
42
42
|
interface EditorProviderProps {
|
|
43
|
-
allowComments?: boolean;
|
|
44
43
|
setSelectedTemplate?: React.Dispatch<React.SetStateAction<string>>;
|
|
45
44
|
setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
46
45
|
getDocumentTitle?: () => string;
|
|
@@ -14,7 +14,7 @@ export declare const useEditorData: (ydocRef: React.MutableRefObject<Y.Doc | nul
|
|
|
14
14
|
[key: string]: {
|
|
15
15
|
[key: string]: any;
|
|
16
16
|
};
|
|
17
|
-
}>>, enableLiveQuery?: boolean, liveQueryRefreshRate?: number, dataBlockApiKeyHandler?: DataBlockApiKeyHandlerType
|
|
17
|
+
}>>, enableLiveQuery?: boolean, liveQueryRefreshRate?: number, dataBlockApiKeyHandler?: DataBlockApiKeyHandlerType) => {
|
|
18
18
|
sheetData: Sheet[];
|
|
19
19
|
setSheetData: import('react').Dispatch<import('react').SetStateAction<Sheet[]>>;
|
|
20
20
|
currentDataRef: import('react').MutableRefObject<Sheet[]>;
|
|
@@ -43,6 +43,7 @@ interface AfterUpdateCellParams {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
export declare const isDatablockError: (value: any) => boolean;
|
|
46
|
+
export declare const isSmartContractResponse: (value: any) => boolean;
|
|
46
47
|
/**
|
|
47
48
|
* Handles logic after a cell is updated, including processing formula results
|
|
48
49
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
2
|
|
|
3
|
-
export declare const dataBlockCalcFunctionHandler: ({ dataBlockCalcFunction, sheetEditorRef, currentRow, currentColumn, }: {
|
|
3
|
+
export declare const dataBlockCalcFunctionHandler: ({ dataBlockCalcFunction, sheetEditorRef, currentRow, currentColumn, handleSmartContractQuery, }: {
|
|
4
4
|
dataBlockCalcFunction: {
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: any;
|
|
@@ -9,4 +9,5 @@ export declare const dataBlockCalcFunctionHandler: ({ dataBlockCalcFunction, she
|
|
|
9
9
|
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
10
10
|
currentRow: number;
|
|
11
11
|
currentColumn: number;
|
|
12
|
+
handleSmartContractQuery: (callSignature: unknown[]) => Promise<void>;
|
|
12
13
|
}) => 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.2.59-patch-
|
|
5
|
+
"version": "1.2.59-sm-ref-patch-1",
|
|
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.28",
|
|
37
37
|
"@fileverse-dev/formulajs": "^4.4.32",
|
|
38
|
-
"@fileverse-dev/fortune-react": "^1.2.56
|
|
38
|
+
"@fileverse-dev/fortune-react": "^1.2.56",
|
|
39
39
|
"@fileverse/ui": "^4.1.7-patch-40",
|
|
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
|
+
}
|