@sheetxl/react 0.6.5 → 0.6.6

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,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.5
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.5
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1054,23 +1054,23 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1054
1054
  }), new R("formatNumberFormatDecreaseDecimal", p2, { label: "Decrease Decimal", description: "Show few decimal places." }, function() {
1055
1055
  Q2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), -1) }));
1056
1056
  }), new R("displayPlaceholdersToggle", p2, { label: "Display Placeholders", description: "Switch between hiding objects, displaying objects, and displaying placeholders for objects.", shortcut: { key: "6", modifiers: [M.Ctrl] } }), new k("noOp", p2, { label: "Do nothing", description: "Do Nothing.", shortcut: { key: "7", modifiers: [M.Ctrl] } }, function() {
1057
- }), new R("displayOutlineSymbolsToggle", p2, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [M.Ctrl] } }), new R("hideRows", p2, { label: "Hide Rows", description: "Hide the rows.", shortcut: { key: "9", modifiers: [M.Ctrl] } }), new R("unhideRows", p2, { label: "Unhide Rows", description: "Unhide the rows.", shortcut: { key: "(", modifiers: [M.Ctrl, M.Shift] } }), new R("hideColumns", p2, { label: "Hide Columns", description: "Hide the columns.", shortcut: [{ key: "0", modifiers: [M.Ctrl] }, { key: "0", modifiers: [M.Ctrl, M.Alt] }] }), new R("unhideColumns", p2, { label: "Unhide Columns", description: "Unhide the columns.", shortcut: { key: ")", modifiers: [M.Ctrl, M.Shift] } }), new R("quickFormulaSum", p2, { label: "Quick Sum", scopedLabels: { quickFormula: "Sum" }, description: "Quick sum of the cells.", shortcut: { key: "=", modifiers: [M.Alt] } }, function() {
1057
+ }), new R("displayOutlineSymbolsToggle", p2, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [M.Ctrl] } }), new R("hideRows", p2, { label: "Hide Rows", description: "Hide the rows.", shortcut: { key: "9", modifiers: [M.Ctrl] } }), new R("unhideRows", p2, { label: "Unhide Rows", description: "Unhide the rows.", shortcut: { key: "(", modifiers: [M.Ctrl, M.Shift] } }), new R("hideColumns", p2, { label: "Hide Columns", description: "Hide the columns.", shortcut: [{ key: "0", modifiers: [M.Ctrl] }, { key: "0", modifiers: [M.Ctrl, M.Alt] }] }), new R("unhideColumns", p2, { label: "Unhide Columns", description: "Unhide the columns.", shortcut: { key: ")", modifiers: [M.Ctrl, M.Shift] } }), new k("calculate", p2, { label: "Calculate Sheet", description: "Recalculate the formulas on the current sheet.", shortcut: { key: "=", modifiers: [M.Ctrl] } }), new R("insertFunction", p2, { label: "Insert Function", disabled: true, scopedLabels: { insert: "Function", insertFunction: "More Functions..." }, description: "Work with the function in the current cell.", shortcut: { key: "F3", modifiers: [M.Shift] } }, function(e3, t2) {
1058
+ console.log("insertFunction");
1059
+ }), new R("insertFunctionSum", p2, { label: "Quick Sum", scopedLabels: { insertFunction: "Sum" }, description: "Quick sum of the cells.", shortcut: { key: "=", modifiers: [M.Alt] } }, function() {
1058
1060
  me2(this, "SUM");
1059
- }), new R("quickFormulaAverage", p2, { label: "Quick Average", scopedLabels: { quickFormula: "Average" }, description: "Quick average of the cells." }, function() {
1061
+ }), new R("insertFunctionAverage", p2, { label: "Quick Average", scopedLabels: { insertFunction: "Average" }, description: "Quick average of the cells." }, function() {
1060
1062
  me2(this, "AVERAGE");
1061
- }), new R("quickFormulaCount", p2, { label: "Quick Count", scopedLabels: { quickFormula: "Count Numbers" }, description: "Quick count of the cells." }, function() {
1063
+ }), new R("insertFunctionCount", p2, { label: "Quick Count", scopedLabels: { insertFunction: "Count Numbers" }, description: "Quick count of the cells." }, function() {
1062
1064
  me2(this, "COUNT");
1063
- }), new R("quickFormulaMax", p2, { label: "Quick Max", scopedLabels: { quickFormula: "Max" }, description: "Quick maximum of the cells." }, function() {
1065
+ }), new R("insertFunctionMax", p2, { label: "Quick Max", scopedLabels: { insertFunction: "Max" }, description: "Quick maximum of the cells." }, function() {
1064
1066
  me2(this, "MAX");
1065
- }), new R("quickFormulaMin", p2, { label: "Quick Min", scopedLabels: { quickFormula: "Min" }, description: "Quick minimum of the cells." }, function() {
1067
+ }), new R("insertFunctionMin", p2, { label: "Quick Min", scopedLabels: { insertFunction: "Min" }, description: "Quick minimum of the cells." }, function() {
1066
1068
  me2(this, "MIN");
1067
1069
  }), new R("startEditCurrentTime", p2, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl, M.Shift] } }, function() {
1068
1070
  A2?.({ text: r2.createTemporaryCell({ value: Ze(), style: { numberFormat: "Medium Time" } }).toText() });
1069
1071
  }), new R("startEditCurrentDate", p2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl] } }, function() {
1070
1072
  A2?.({ text: r2.createTemporaryCell({ value: Ze(), style: { numberFormat: "Short Date" } }).toText() });
1071
- }), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadSubtract", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadAdd", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [M.Ctrl, M.Alt] } }), new R("insertFunction", p2, { label: "Insert Function", disabled: true, scopedLabels: { insert: "Function", quickFormula: "More Functions..." }, description: "Work with the formula in the current cell.", shortcut: { key: "F3", modifiers: [M.Shift] } }, function(e3, t2) {
1072
- console.log("insertFunction");
1073
- }), new R("updateHyperlink", p2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () => X2, shortcut: [{ key: "K", modifiers: [M.Ctrl] }, { key: "K", modifiers: [M.Ctrl, M.Alt] }] }, async function(e3, t2) {
1073
+ }), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadSubtract", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadAdd", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [M.Ctrl, M.Alt] } }), new R("updateHyperlink", p2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () => X2, shortcut: [{ key: "K", modifiers: [M.Ctrl] }, { key: "K", modifiers: [M.Ctrl, M.Alt] }] }, async function(e3, t2) {
1074
1074
  const o2 = this, n2 = { context: t2.context(), onUpdateHyperlink: (e4, t3) => {
1075
1075
  ee2(o2, e4, t3);
1076
1076
  } };
@@ -1279,7 +1279,9 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1279
1279
  r2.getView().update({ showFormulas: !r2.getView().isShowFormulas() });
1280
1280
  }), Ie2.getCommand("sheetViewToggleShowZeros").updateCallback(() => {
1281
1281
  r2.getView().update({ showZeros: !r2.getView().isShowZeros() });
1282
- });
1282
+ }), Ie2.getCommand("calculate").updateCallback(() => {
1283
+ r2.getEntireRange().calculate(true);
1284
+ }), Ie2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: (e3) => (console.log("category", e3), []) }) });
1283
1285
  }, [r2]), re(() => {
1284
1286
  const e3 = r2.getView().getFreezePanes(), t2 = () => 0 !== e3.coords.rowIndex, o2 = () => 0 !== e3.coords.colIndex, n2 = () => 0 !== e3.coords.rowIndex || 0 !== e3.coords.colIndex;
1285
1287
  Ie2.getCommand("freezeToggle").updateCallback(() => {
@@ -1560,7 +1562,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1560
1562
  } catch (e4) {
1561
1563
  l2?.(), f2?.showError?.(e4);
1562
1564
  }
1563
- }).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), Ie2.getCommand("deleteTable").update(n2), Ie2.getCommand("sortAscending").update(n2), Ie2.getCommand("sortDescending").update(n2), Ie2.getCommand("sortCustom")?.update(n2), Ie2.getCommand("updateComments").update(n2), Ie2.getCommand("deleteComments").update(n2), Ie2.getCommand("insertChart")?.update(n2), Ie2.getCommand("insertImageFromFile").update(n2), Ie2.getCommand("insertImageFromURL").update(n2), Ie2.getCommand("formatBorder").update(n2), Ie2.getCommand("formatFillColor").update(n2), Ie2.getCommand("formatFontColor").update(n2), Ie2.getCommand("formatBoldToggle").update(n2), Ie2.getCommand("formatItalicToggle").update(n2), Ie2.getCommand("formatUnderlinedToggle").update(n2), Ie2.getCommand("formatStrikeThroughToggle").update(n2), Ie2.getCommand("formatSuperscriptToggle").update(n2), Ie2.getCommand("formatSubscriptToggle").update(n2), Ie2.getCommand("formatAlignTopToggle").update(n2), Ie2.getCommand("formatTextOverflowVisibleToggle").update(n2), Ie2.getCommand("formatTextOverflowWrapToggle").update(n2), Ie2.getCommand("formatTextOverflowClipToggle").update(n2), Ie2.getCommand("formatTextOverflowShrinkToggle").update(n2), Ie2.getCommand("formatAlignMiddleToggle").update(n2), Ie2.getCommand("formatAlignBottomToggle").update(n2), Ie2.getCommand("formatAlignDistributedVerticalToggle").update(n2), Ie2.getCommand("formatAlignJustifyVerticalToggle").update(n2), Ie2.getCommand("formatAlignLeftToggle").update(n2), Ie2.getCommand("formatAlignCenterToggle").update(n2), Ie2.getCommand("formatAlignRightToggle").update(n2), Ie2.getCommand("formatAlignJustifyToggle").update(n2), Ie2.getCommand("formatAlignCenterContinuousToggle").update(n2), Ie2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), Ie2.getCommand("formatAlignFillToggle").update(n2), Ie2.getCommand("formatFontSizeIncrease").update(n2), Ie2.getCommand("formatFontSizeDecrease").update(n2), Ie2.getCommand("formatFontFamily").update(n2), Ie2.getCommand("formatFontSize").update(n2), Ie2.getCommand("formatNumberFormat").update(n2), Ie2.getCommand("formatNumberFormatGeneralStyle").update(n2), Ie2.getCommand("formatNumberFormatNumberStyle").update(n2), Ie2.getCommand("formatNumberFormatTimeStyle").update(n2), Ie2.getCommand("formatNumberFormatDateStyle").update(n2), Ie2.getCommand("formatNumberFormatAccountingStyle").update(n2), Ie2.getCommand("formatNumberFormatPercentStyle").update(n2), Ie2.getCommand("formatNumberFormatScientificStyle").update(n2), Ie2.getCommand("formatNumberFormatCommaStyle").update(n2), Ie2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), Ie2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), Ie2.getCommand("hideColumns").update(n2), Ie2.getCommand("unhideColumns").update(n2), Ie2.getCommand("hideRows").update(n2), Ie2.getCommand("unhideRows").update(n2), Ie2.getCommand("quickFormulaSum").update(n2), Ie2.getCommand("quickFormulaAverage").update(n2), Ie2.getCommand("quickFormulaCount").update(n2), Ie2.getCommand("quickFormulaMax").update(n2), Ie2.getCommand("quickFormulaMin").update(n2), Ie2.getCommand("startEditCurrentTime").update(n2), Ie2.getCommand("startEditCurrentDate").update(n2), Ie2.getCommand("startEditValueAbove").update(n2), Ie2.getCommand("fillDown").update(n2), Ie2.getCommand("fillRight").update(n2), Ie2.getCommand("fillUp").update(n2), Ie2.getCommand("fillLeft").update(n2), Ie2.getCommand("formatCellStyle").update(n2), Ie2.getCommand("formatTableStyle").update(n2), Ie2.getCommand("formatPainterToggle").update(n2), Ie2.getCommand("formatBorderAddOutline").update(n2), Ie2.getCommand("formatBorderClearOutline").update(n2), Ie2.getCommand("formatIndentDecrease").update(n2), Ie2.getCommand("formatIndentIncrease").update(n2), Ie2.getCommand("clearContents").update(n2), Ie2.getCommand("clearFormats").update(n2), Ie2.getCommand("clearAll").update(n2), Ie2.getCommand("clearComments").update(n2), Ie2.getCommand("clearHyperlinks").update(n2), Ie2.getCommand("autoFilterClear").update(n2), Ie2.getCommand("autoFilterReapply").update(n2);
1565
+ }).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), Ie2.getCommand("deleteTable").update(n2), Ie2.getCommand("sortAscending").update(n2), Ie2.getCommand("sortDescending").update(n2), Ie2.getCommand("sortCustom")?.update(n2), Ie2.getCommand("updateComments").update(n2), Ie2.getCommand("deleteComments").update(n2), Ie2.getCommand("insertChart")?.update(n2), Ie2.getCommand("insertImageFromFile").update(n2), Ie2.getCommand("insertImageFromURL").update(n2), Ie2.getCommand("formatBorder").update(n2), Ie2.getCommand("formatFillColor").update(n2), Ie2.getCommand("formatFontColor").update(n2), Ie2.getCommand("formatBoldToggle").update(n2), Ie2.getCommand("formatItalicToggle").update(n2), Ie2.getCommand("formatUnderlinedToggle").update(n2), Ie2.getCommand("formatStrikeThroughToggle").update(n2), Ie2.getCommand("formatSuperscriptToggle").update(n2), Ie2.getCommand("formatSubscriptToggle").update(n2), Ie2.getCommand("formatAlignTopToggle").update(n2), Ie2.getCommand("formatTextOverflowVisibleToggle").update(n2), Ie2.getCommand("formatTextOverflowWrapToggle").update(n2), Ie2.getCommand("formatTextOverflowClipToggle").update(n2), Ie2.getCommand("formatTextOverflowShrinkToggle").update(n2), Ie2.getCommand("formatAlignMiddleToggle").update(n2), Ie2.getCommand("formatAlignBottomToggle").update(n2), Ie2.getCommand("formatAlignDistributedVerticalToggle").update(n2), Ie2.getCommand("formatAlignJustifyVerticalToggle").update(n2), Ie2.getCommand("formatAlignLeftToggle").update(n2), Ie2.getCommand("formatAlignCenterToggle").update(n2), Ie2.getCommand("formatAlignRightToggle").update(n2), Ie2.getCommand("formatAlignJustifyToggle").update(n2), Ie2.getCommand("formatAlignCenterContinuousToggle").update(n2), Ie2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), Ie2.getCommand("formatAlignFillToggle").update(n2), Ie2.getCommand("formatFontSizeIncrease").update(n2), Ie2.getCommand("formatFontSizeDecrease").update(n2), Ie2.getCommand("formatFontFamily").update(n2), Ie2.getCommand("formatFontSize").update(n2), Ie2.getCommand("formatNumberFormat").update(n2), Ie2.getCommand("formatNumberFormatGeneralStyle").update(n2), Ie2.getCommand("formatNumberFormatNumberStyle").update(n2), Ie2.getCommand("formatNumberFormatTimeStyle").update(n2), Ie2.getCommand("formatNumberFormatDateStyle").update(n2), Ie2.getCommand("formatNumberFormatAccountingStyle").update(n2), Ie2.getCommand("formatNumberFormatPercentStyle").update(n2), Ie2.getCommand("formatNumberFormatScientificStyle").update(n2), Ie2.getCommand("formatNumberFormatCommaStyle").update(n2), Ie2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), Ie2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), Ie2.getCommand("hideColumns").update(n2), Ie2.getCommand("unhideColumns").update(n2), Ie2.getCommand("hideRows").update(n2), Ie2.getCommand("unhideRows").update(n2), Ie2.getCommand("insertFunctionSum").update(n2), Ie2.getCommand("insertFunctionAverage").update(n2), Ie2.getCommand("insertFunctionCount").update(n2), Ie2.getCommand("insertFunctionMax").update(n2), Ie2.getCommand("insertFunctionMin").update(n2), Ie2.getCommand("insertFunction").update(n2), Ie2.getCommand("startEditCurrentTime").update(n2), Ie2.getCommand("startEditCurrentDate").update(n2), Ie2.getCommand("startEditValueAbove").update(n2), Ie2.getCommand("fillDown").update(n2), Ie2.getCommand("fillRight").update(n2), Ie2.getCommand("fillUp").update(n2), Ie2.getCommand("fillLeft").update(n2), Ie2.getCommand("formatCellStyle").update(n2), Ie2.getCommand("formatTableStyle").update(n2), Ie2.getCommand("formatPainterToggle").update(n2), Ie2.getCommand("formatBorderAddOutline").update(n2), Ie2.getCommand("formatBorderClearOutline").update(n2), Ie2.getCommand("formatIndentDecrease").update(n2), Ie2.getCommand("formatIndentIncrease").update(n2), Ie2.getCommand("clearContents").update(n2), Ie2.getCommand("clearFormats").update(n2), Ie2.getCommand("clearAll").update(n2), Ie2.getCommand("clearComments").update(n2), Ie2.getCommand("clearHyperlinks").update(n2), Ie2.getCommand("autoFilterClear").update(n2), Ie2.getCommand("autoFilterReapply").update(n2);
1564
1566
  const i3 = Ue2 === l.HorizontalAlignment.CenterContinuous || Ue2 === l.HorizontalAlignment.Fill, a2 = { disabled: o2 || i3 };
1565
1567
  Ie2.getCommand("formatTextRotate0").update(a2), Ie2.getCommand("formatTextRotate45").update(a2), Ie2.getCommand("formatTextRotate90").update(a2), Ie2.getCommand("formatTextRotate270").update(a2), Ie2.getCommand("formatTextRotate315").update(a2), Ie2.getCommand("formatTextRotateCustom").update(a2), Ie2.getCommand("formatTextRotateVertical").update(a2);
1566
1568
  }, [Fe2]), Ie2;
@@ -1932,7 +1934,8 @@ const Rt = (e2, t2, o2 = null) => {
1932
1934
  if (i2?.showOptions) {
1933
1935
  const t4 = n3.getDifferences(e3);
1934
1936
  let o4 = false;
1935
- for (let e4 = 0; !o4 && e4 < t4.getCount(); e4++) o4 = t4.at(e4).isContentful();
1937
+ const l4 = t4.getCount();
1938
+ for (let e4 = 0; !o4 && e4 < l4; e4++) o4 = t4.at(e4).isContentful();
1936
1939
  if (o4) {
1937
1940
  if ("Replace" !== await i2?.showOptions({ title: "Confirm", description: "There is already data here. Do you want to replace it?", options: ["Replace", "Cancel"], defaultOption: "Replace" })) return;
1938
1941
  }
@@ -2177,7 +2180,7 @@ const Rt = (e2, t2, o2 = null) => {
2177
2180
  ye2.current = true;
2178
2181
  const e3 = Q.lazy(async () => {
2179
2182
  try {
2180
- const e4 = await import("./C8Okkdlpyj9V_Xym.mjs");
2183
+ const e4 = await import("./BNOLvMnsg0e12DKh.mjs");
2181
2184
  return ye2.current = false, Ce2.current = true, R2([...k2]), e4;
2182
2185
  } catch (e4) {
2183
2186
  return console.warn(e4), _2.current?.(false), null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/react",
3
3
  "description": "React - React components needed to build advanced grid and spreadsheet UIs.",
4
- "version": "0.6.5",
4
+ "version": "0.6.6",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -37,10 +37,10 @@
37
37
  "@dnd-kit/sortable": "^10.0.0",
38
38
  "@dnd-kit/utilities": "^3.2.2",
39
39
  "@monaco-editor/react": "^4.6.0",
40
- "@sheetxl/utils": "^0.6.5",
41
- "@sheetxl/utils-react": "^0.6.5",
42
- "@sheetxl/grid-react": "^0.6.5",
43
- "@sheetxl/sdk": "^0.6.5",
40
+ "@sheetxl/utils": "^0.6.6",
41
+ "@sheetxl/utils-react": "^0.6.6",
42
+ "@sheetxl/grid-react": "^0.6.6",
43
+ "@sheetxl/sdk": "^0.6.6",
44
44
  "clsx": "^2.1.1",
45
45
  "monaco-editor-auto-typings": "^0.4.6",
46
46
  "react-merge-refs": "^3.0.2",
package/types/index.d.ts CHANGED
@@ -24,6 +24,7 @@ import { IChart } from '@sheetxl/sdk';
24
24
  import { IColor } from '@sheetxl/sdk';
25
25
  import { ICommand } from '@sheetxl/utils-react';
26
26
  import { ICommands } from '@sheetxl/utils-react';
27
+ import { IFunction } from '@sheetxl/sdk';
27
28
  import { IGridElement } from '@sheetxl/grid-react';
28
29
  import { IListener } from '@sheetxl/sdk';
29
30
  import { IModule } from '@sheetxl/sdk';
@@ -234,7 +235,8 @@ export declare namespace CommandContext {
234
235
  NamedStyle,
235
236
  Table,
236
237
  Theme,
237
- NamedReference
238
+ NamedReference,
239
+ FormulaFunction
238
240
  }
239
241
  }
240
242
 
@@ -370,6 +372,10 @@ export declare namespace FontUtils {
370
372
  }
371
373
  }
372
374
 
375
+ declare interface FormulaFunction {
376
+ searchByCategory: (category: string) => IFunction[];
377
+ }
378
+
373
379
  export declare interface IChartEditorElement extends HTMLDivElement, ChartEditorAttributes {
374
380
  }
375
381