@fileverse-dev/fortune-core 1.0.2-mod-11 → 1.0.2-mod-12

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.
@@ -1,10 +1,10 @@
1
1
  import { getSheet } from "./common";
2
2
  import { Context } from "../context";
3
- import { CellMatrix, Sheet } from "../types";
3
+ import { CellMatrix, Sheet, SingleRange } from "../types";
4
4
  export declare function getAllSheets(ctx: Context): Sheet[];
5
5
  export { getSheet };
6
6
  export declare function initSheetData(draftCtx: Context, index: number, newData: Sheet): CellMatrix | null;
7
7
  export declare function hideSheet(ctx: Context, sheetId: string): void;
8
8
  export declare function showSheet(ctx: Context, sheetId: string): void;
9
9
  export declare function copySheet(ctx: Context, sheetId: string): void;
10
- export declare function calculateSheetFromula(ctx: Context, id: string): void;
10
+ export declare function calculateFormula(ctx: Context, id?: string, range?: SingleRange): void;
package/dist/context.d.ts CHANGED
@@ -169,6 +169,7 @@ export type Context = {
169
169
  hooks: Hooks;
170
170
  showSheetList?: Boolean;
171
171
  forceFormulaRef?: Boolean;
172
+ sheetFocused: boolean;
172
173
  getRefs: () => RefValues;
173
174
  };
174
175
  export declare function defaultContext(refs: RefValues): Context;