@leankylin-sheet/react 5.2.34 → 5.2.35

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.
@@ -52,6 +52,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
52
52
  mergeCells: (ranges: Range, type: string, options?: api.CommonOptions) => void;
53
53
  cancelMerge: (ranges: Range, options?: api.CommonOptions) => void;
54
54
  getAllSheets: () => Sheet[];
55
+ getVariables: () => any;
55
56
  getSheet: (options?: api.CommonOptions) => {
56
57
  celldata: CellWithRowAndCol[];
57
58
  name: string;
@@ -60,6 +60,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
60
60
  mergeCells: (ranges: import("@leankylin-sheet/core").Range, type: string, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
61
61
  cancelMerge: (ranges: import("@leankylin-sheet/core").Range, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
62
62
  getAllSheets: () => SheetType[];
63
+ getVariables: () => any;
63
64
  getSheet: (options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => {
64
65
  celldata: CellWithRowAndCol[];
65
66
  name: string;
package/dist/index.esm.js CHANGED
@@ -10475,6 +10475,9 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
10475
10475
  getAllSheets: function getAllSheets() {
10476
10476
  return api.getAllSheets(context);
10477
10477
  },
10478
+ getVariables: function getVariables() {
10479
+ return context.formulaCache.parser.variables;
10480
+ },
10478
10481
  getSheet: function getSheet() {
10479
10482
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10480
10483
  return api.getSheetWithLatestCelldata(context, options);
package/dist/index.js CHANGED
@@ -10485,6 +10485,9 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
10485
10485
  getAllSheets: function getAllSheets() {
10486
10486
  return core.api.getAllSheets(context);
10487
10487
  },
10488
+ getVariables: function getVariables() {
10489
+ return context.formulaCache.parser.variables;
10490
+ },
10488
10491
  getSheet: function getSheet() {
10489
10492
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10490
10493
  return core.api.getSheetWithLatestCelldata(context, options);
package/dist/index.umd.js CHANGED
@@ -115506,6 +115506,9 @@
115506
115506
  getAllSheets: function getAllSheets() {
115507
115507
  return index.getAllSheets(context);
115508
115508
  },
115509
+ getVariables: function getVariables() {
115510
+ return context.formulaCache.parser.variables;
115511
+ },
115509
115512
  getSheet: function getSheet() {
115510
115513
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
115511
115514
  return index.getSheetWithLatestCelldata(context, options);