@fileverse-dev/dsheet 2.0.33-rtc-g → 2.0.33-rtc-h
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/editor/contexts/editor-context.d.ts +1 -0
- package/dist/editor/utils/after-update-cell.d.ts +12 -0
- package/dist/editor/utils/formula-ui-sync.d.ts +3 -1
- package/dist/{executeStringFunction-9cGLblM5.js → executeStringFunction-DpMqIVms.js} +2331 -2361
- package/dist/formula.js +1 -1
- package/dist/{index-DJ9rTJnP.js → index-CSXGQQEX.js} +8471 -8383
- package/dist/index.es.js +2 -2
- package/dist/sheet-engine/core/settings.d.ts +2 -0
- package/dist/{use-xlsx-import-impl-BknTr9B-.js → use-xlsx-import-impl-C9WaIzEu.js} +2 -2
- package/dist/{xlsx-export-impl-DVg8rluj.js → xlsx-export-impl-C5RdiXLd.js} +2 -2
- package/package.json +2 -2
|
@@ -39,6 +39,7 @@ export interface EditorContextType {
|
|
|
39
39
|
setForceSheetRender: React.Dispatch<React.SetStateAction<number>>;
|
|
40
40
|
syncStatus: 'initializing' | 'syncing' | 'synced' | 'error';
|
|
41
41
|
collabEnabled?: boolean;
|
|
42
|
+
collabIsOwner?: boolean;
|
|
42
43
|
collabState?: CollabState;
|
|
43
44
|
isCollabReady?: boolean;
|
|
44
45
|
isCollabSyncing?: boolean;
|
|
@@ -41,7 +41,19 @@ interface AfterUpdateCellParams {
|
|
|
41
41
|
[key: string]: any;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
+
collabEnabled?: boolean;
|
|
45
|
+
collabIsOwner?: boolean;
|
|
46
|
+
remoteUpdateRef?: React.MutableRefObject<boolean>;
|
|
47
|
+
localUserEditRef?: React.MutableRefObject<boolean>;
|
|
44
48
|
}
|
|
49
|
+
/** True when data-block formulas (API / smart contract) should run for this edit. */
|
|
50
|
+
export declare const shouldExecuteDataBlocks: (params: {
|
|
51
|
+
collabEnabled?: boolean;
|
|
52
|
+
collabIsOwner?: boolean;
|
|
53
|
+
remoteUpdateRef?: React.MutableRefObject<boolean>;
|
|
54
|
+
localUserEditRef?: React.MutableRefObject<boolean>;
|
|
55
|
+
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
56
|
+
}) => boolean;
|
|
45
57
|
export declare const isDatablockError: (value: any) => boolean;
|
|
46
58
|
/**
|
|
47
59
|
* Handles logic after a cell is updated, including processing formula results
|
|
@@ -7,10 +7,12 @@ export type FormulaSyncType = {
|
|
|
7
7
|
apiData: Array<Record<string, object>> | Array<Array<string>>;
|
|
8
8
|
sheetEditorRef: React.RefObject<WorkbookInstance | null>;
|
|
9
9
|
shouldIgnoreUsdValue?: boolean;
|
|
10
|
+
/** Instruction lines rendered above the formula table (synced to Yjs). */
|
|
11
|
+
staticLinesAbove?: string[];
|
|
10
12
|
};
|
|
11
13
|
export declare function isUsdValue(str: string): boolean;
|
|
12
14
|
export declare const USD_FA: string;
|
|
13
|
-
export declare const formulaResponseUiSync: ({ row, column, newValue, apiData, sheetEditorRef, shouldIgnoreUsdValue, }: FormulaSyncType) => void;
|
|
15
|
+
export declare const formulaResponseUiSync: ({ row, column, newValue, apiData, sheetEditorRef, shouldIgnoreUsdValue, staticLinesAbove, }: FormulaSyncType) => void;
|
|
14
16
|
export declare const getCellClone: (r: number, c: number, sheetEditorRef: React.RefObject<WorkbookInstance | null>) => {
|
|
15
17
|
v?: string | number | boolean;
|
|
16
18
|
m?: string | number;
|