@fileverse-dev/dsheet 0.0.22 → 0.0.23
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 +27766 -28766
- package/dist/package/dsheet-editor.d.ts +1 -1
- package/dist/package/types.d.ts +1 -0
- package/dist/package/utils/after-update-cell.d.ts +17 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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, renderNavbar, initialSheetData, enableIndexeddbSync, dsheetId, portalContent, onChange, username, selectedTemplate, toggleTemplateSidebar, isTemplateOpen, enableWebrtc, onboardingComplete, onboardingHandler, sheetEditorRef: externalSheetEditorRef, }: DsheetProps) => JSX.Element;
|
|
10
|
+
declare const SpreadsheetEditor: ({ isCollaborative, isReadOnly, renderNavbar, initialSheetData, enableIndexeddbSync, dsheetId, portalContent, onChange, username, selectedTemplate, toggleTemplateSidebar, isTemplateOpen, enableWebrtc, onboardingComplete, onboardingHandler, dataBlockApiKeyHandler, sheetEditorRef: externalSheetEditorRef, }: DsheetProps) => JSX.Element;
|
|
11
11
|
export default SpreadsheetEditor;
|
package/dist/package/types.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export interface DsheetProps {
|
|
|
26
26
|
selectedTemplate?: string;
|
|
27
27
|
onboardingComplete?: boolean;
|
|
28
28
|
onboardingHandler?: Function;
|
|
29
|
+
dataBlockApiKeyHandler?: Function;
|
|
29
30
|
setForceSheetRender?: React.Dispatch<React.SetStateAction<number>>;
|
|
30
31
|
toggleTemplateSidebar?: () => void;
|
|
31
32
|
sheetEditorRef?: RefObject<WorkbookInstance>;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { Cell } from '@fileverse-dev/fortune-core';
|
|
2
2
|
import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
3
3
|
|
|
4
|
+
export type FormulaSyncType = {
|
|
5
|
+
row: number;
|
|
6
|
+
column: number;
|
|
7
|
+
newValue: Record<string, string>;
|
|
8
|
+
apiData: Array<Record<string, object>>;
|
|
9
|
+
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
10
|
+
};
|
|
11
|
+
export declare const formulaResponseUiSync: ({ row, column, newValue, apiData, sheetEditorRef }: FormulaSyncType) => void;
|
|
4
12
|
/**
|
|
5
13
|
* Handles logic after a cell is updated, including processing formula results
|
|
6
14
|
*
|
|
@@ -14,14 +22,19 @@ import { WorkbookInstance } from '@fileverse-dev/fortune-react';
|
|
|
14
22
|
* @param contextApiKeyName - Ref object for the current API key name context
|
|
15
23
|
* @returns {Promise<void>}
|
|
16
24
|
*/
|
|
17
|
-
export declare const afterUpdateCell: ({ row, column, newValue, sheetEditorRef,
|
|
25
|
+
export declare const afterUpdateCell: ({ row, column, newValue, sheetEditorRef, onboardingComplete, onboardingHandler, dataBlockApiKeyHandler }: {
|
|
18
26
|
row: number;
|
|
19
27
|
column: number;
|
|
20
28
|
newValue: Cell;
|
|
21
29
|
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
22
|
-
setOpenApiKeyModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
23
|
-
openApiKeyModalRef: React.MutableRefObject<boolean>;
|
|
24
|
-
contextApiKeyName: React.MutableRefObject<string | null>;
|
|
25
30
|
onboardingComplete: boolean | undefined;
|
|
26
31
|
onboardingHandler: Function | undefined;
|
|
32
|
+
dataBlockApiKeyHandler: Function | undefined;
|
|
27
33
|
}) => Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Dynamically executes a function from a string representation
|
|
36
|
+
*
|
|
37
|
+
* @param functionCallString - String representation of the function call
|
|
38
|
+
* @returns {Promise<unknown>} - Result of the function execution
|
|
39
|
+
*/
|
|
40
|
+
export declare function executeStringFunction(functionCallString: string): Promise<unknown>;
|