@fileverse-dev/fortune-react 1.2.83 → 1.2.85

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.
@@ -139,7 +139,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
139
139
  handleUndo: () => void;
140
140
  handleRedo: () => void;
141
141
  calculateFormula: () => void;
142
- calculateSubSheetFormula: (id: string) => void;
142
+ calculateSubSheetFormula: (id: string, refCell?: string[]) => void;
143
143
  dataToCelldata: (data: CellMatrix | undefined) => CellWithRowAndCol[];
144
144
  celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number, colCount?: number) => CellMatrix | null;
145
145
  insertFunction: (selectedFuncIndex: number, filteredFunctionList: any[], callback?: () => void) => void;
@@ -384,9 +384,9 @@ export function generateAPIs(context, setContext, handleUndo, handleRedo, settin
384
384
  });
385
385
  });
386
386
  },
387
- calculateSubSheetFormula: function calculateSubSheetFormula(id) {
387
+ calculateSubSheetFormula: function calculateSubSheetFormula(id, refCell) {
388
388
  setContext(function (draftCtx) {
389
- api.calculateSheetFromula(draftCtx, id);
389
+ api.calculateSheetFromula(draftCtx, id, refCell);
390
390
  });
391
391
  },
392
392
  dataToCelldata: function dataToCelldata(data) {
@@ -146,7 +146,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
146
146
  handleUndo: () => void;
147
147
  handleRedo: () => void;
148
148
  calculateFormula: () => void;
149
- calculateSubSheetFormula: (id: string) => void;
149
+ calculateSubSheetFormula: (id: string, refCell?: string[] | undefined) => void;
150
150
  dataToCelldata: (data: CellMatrix | undefined) => CellWithRowAndCol[];
151
151
  celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number | undefined, colCount?: number | undefined) => CellMatrix | null;
152
152
  insertFunction: (selectedFuncIndex: number, filteredFunctionList: any[], callback?: (() => void) | undefined) => void;
@@ -139,7 +139,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
139
139
  handleUndo: () => void;
140
140
  handleRedo: () => void;
141
141
  calculateFormula: () => void;
142
- calculateSubSheetFormula: (id: string) => void;
142
+ calculateSubSheetFormula: (id: string, refCell?: string[]) => void;
143
143
  dataToCelldata: (data: CellMatrix | undefined) => CellWithRowAndCol[];
144
144
  celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number, colCount?: number) => CellMatrix | null;
145
145
  insertFunction: (selectedFuncIndex: number, filteredFunctionList: any[], callback?: () => void) => void;
@@ -391,9 +391,9 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
391
391
  });
392
392
  });
393
393
  },
394
- calculateSubSheetFormula: function calculateSubSheetFormula(id) {
394
+ calculateSubSheetFormula: function calculateSubSheetFormula(id, refCell) {
395
395
  setContext(function (draftCtx) {
396
- _fortuneCore.api.calculateSheetFromula(draftCtx, id);
396
+ _fortuneCore.api.calculateSheetFromula(draftCtx, id, refCell);
397
397
  });
398
398
  },
399
399
  dataToCelldata: function dataToCelldata(data) {
@@ -146,7 +146,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
146
146
  handleUndo: () => void;
147
147
  handleRedo: () => void;
148
148
  calculateFormula: () => void;
149
- calculateSubSheetFormula: (id: string) => void;
149
+ calculateSubSheetFormula: (id: string, refCell?: string[] | undefined) => void;
150
150
  dataToCelldata: (data: CellMatrix | undefined) => CellWithRowAndCol[];
151
151
  celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number | undefined, colCount?: number | undefined) => CellMatrix | null;
152
152
  insertFunction: (selectedFuncIndex: number, filteredFunctionList: any[], callback?: (() => void) | undefined) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-react",
3
- "version": "1.2.83",
3
+ "version": "1.2.85",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "module": "es/index.js",
@@ -16,7 +16,7 @@
16
16
  "tsc": "tsc"
17
17
  },
18
18
  "dependencies": {
19
- "@fileverse-dev/fortune-core": "1.2.83",
19
+ "@fileverse-dev/fortune-core": "1.2.85",
20
20
  "@fileverse/ui": "^4.1.7-patch-40",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",