@fileverse-dev/dsheet 1.2.60 → 1.2.62
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 +15225 -15090
- package/dist/package/types.d.ts +7 -1
- package/dist/package/utils/dataBlockCalcFunction.d.ts +3 -1
- package/dist/package/utils/executeStringFunction.d.ts +10 -2
- package/dist/package/utils/smart-contract-query-handler.d.ts +12 -0
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/package/types.d.ts
CHANGED
|
@@ -23,7 +23,13 @@ export type OnboardingHandlerType = (params: {
|
|
|
23
23
|
export type DataBlockApiKeyHandlerType = (params: {
|
|
24
24
|
data: ErrorMessageHandlerReturnType;
|
|
25
25
|
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
26
|
-
executeStringFunction: (functionCallString
|
|
26
|
+
executeStringFunction: ({ functionCallString, sheetEditorRef, dataBlockRow, dataBlockColumn, handleSmartContractQuery, }: {
|
|
27
|
+
functionCallString: string;
|
|
28
|
+
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
29
|
+
dataBlockRow: number;
|
|
30
|
+
dataBlockColumn: number;
|
|
31
|
+
handleSmartContractQuery: SmartContractQueryHandler;
|
|
32
|
+
}) => Promise<unknown>;
|
|
27
33
|
row: number;
|
|
28
34
|
column: number;
|
|
29
35
|
newValue: Cell;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
|
+
import { SmartContractQueryHandler } from './after-update-cell';
|
|
2
3
|
|
|
3
|
-
export declare const dataBlockCalcFunctionHandler: ({ dataBlockCalcFunction, sheetEditorRef, currentRow, currentColumn, }: {
|
|
4
|
+
export declare const dataBlockCalcFunctionHandler: ({ dataBlockCalcFunction, sheetEditorRef, currentRow, currentColumn, handleSmartContractQuery, }: {
|
|
4
5
|
dataBlockCalcFunction: {
|
|
5
6
|
[key: string]: {
|
|
6
7
|
[key: string]: any;
|
|
@@ -9,4 +10,5 @@ export declare const dataBlockCalcFunctionHandler: ({ dataBlockCalcFunction, she
|
|
|
9
10
|
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
10
11
|
currentRow: number;
|
|
11
12
|
currentColumn: number;
|
|
13
|
+
handleSmartContractQuery?: SmartContractQueryHandler;
|
|
12
14
|
}) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
1
|
+
import { Cell, WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
2
|
+
import { SmartContractQueryHandler } from './after-update-cell';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Dynamically executes a function from a string representation
|
|
@@ -6,7 +7,14 @@ import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
|
6
7
|
* @param functionCallString - String representation of the function call
|
|
7
8
|
* @returns {Promise<unknown>} - Result of the function execution
|
|
8
9
|
*/
|
|
9
|
-
export declare const executeStringFunction: (functionCallString
|
|
10
|
+
export declare const executeStringFunction: ({ functionCallString, sheetEditorRef, dataBlockRow, dataBlockColumn, handleSmartContractQuery, newValue, }: {
|
|
11
|
+
functionCallString: string;
|
|
12
|
+
sheetEditorRef?: React.RefObject<WorkbookInstance | null>;
|
|
13
|
+
dataBlockRow?: number;
|
|
14
|
+
dataBlockColumn?: number;
|
|
15
|
+
handleSmartContractQuery?: SmartContractQueryHandler;
|
|
16
|
+
newValue?: Cell;
|
|
17
|
+
}) => Promise<unknown>;
|
|
10
18
|
/**
|
|
11
19
|
* Parses a complex argument string into an array of properly typed arguments
|
|
12
20
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WorkbookInstance, Cell } from '@fileverse-dev/fortune-react';
|
|
2
|
+
import { SmartContractQueryHandler } from './after-update-cell';
|
|
3
|
+
|
|
4
|
+
export declare const isSmartContractResponse: (value: any) => boolean;
|
|
5
|
+
export declare const smartContractQueryHandlerFunction: ({ result, handleSmartContractQuery, sheetEditorRef, dataBlockRow, dataBlockColumn, newValue, }: {
|
|
6
|
+
result: unknown;
|
|
7
|
+
handleSmartContractQuery: SmartContractQueryHandler;
|
|
8
|
+
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
9
|
+
dataBlockRow: number;
|
|
10
|
+
dataBlockColumn: number;
|
|
11
|
+
newValue: Cell;
|
|
12
|
+
}) => Promise<void>;
|