@infinite-table/infinite-react 1.3.14 → 1.3.15

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/index.d.ts CHANGED
@@ -2403,6 +2403,7 @@ interface InfiniteTableApi<T> {
2403
2403
  setColumnOrder: (columnOrder: InfiniteTablePropColumnOrder) => void;
2404
2404
  setColumnVisibility: (columnVisibility: InfiniteTablePropColumnVisibility) => void;
2405
2405
  clearEditInfo: () => void;
2406
+ hideContextMenu: () => void;
2406
2407
  isEditorVisibleForCell(params: {
2407
2408
  rowIndex: number;
2408
2409
  columnId: string;
package/index.dev.js CHANGED
@@ -13698,6 +13698,10 @@ var InfiniteTableApiImpl = class {
13698
13698
  var _a;
13699
13699
  (_a = this.getState().scrollerDOMRef.current) == null ? void 0 : _a.focus();
13700
13700
  }
13701
+ hideContextMenu() {
13702
+ this.actions.contextMenuVisibleFor = null;
13703
+ this.actions.cellContextMenuVisibleFor = null;
13704
+ }
13701
13705
  startEdit(params) {
13702
13706
  return __async(this, null, function* () {
13703
13707
  const { columnId, rowIndex: index, primaryKey } = params;
@@ -16557,7 +16561,7 @@ var useLicense = (licenseKey = "") => {
16557
16561
  const valid = (0, import_react49.useMemo)(() => {
16558
16562
  let valid2 = isValidLicense(licenseKey, {
16559
16563
  publishedAt: 1624970570587,
16560
- version: "1.3.14"
16564
+ version: "1.3.15"
16561
16565
  });
16562
16566
  if (!licenseKey && !valid2 && isInsidePlayground) {
16563
16567
  return true;
package/index.dev.mjs CHANGED
@@ -13684,6 +13684,10 @@ var InfiniteTableApiImpl = class {
13684
13684
  var _a;
13685
13685
  (_a = this.getState().scrollerDOMRef.current) == null ? void 0 : _a.focus();
13686
13686
  }
13687
+ hideContextMenu() {
13688
+ this.actions.contextMenuVisibleFor = null;
13689
+ this.actions.cellContextMenuVisibleFor = null;
13690
+ }
13687
13691
  startEdit(params) {
13688
13692
  return __async(this, null, function* () {
13689
13693
  const { columnId, rowIndex: index, primaryKey } = params;
@@ -16547,7 +16551,7 @@ var useLicense = (licenseKey = "") => {
16547
16551
  const valid = useMemo11(() => {
16548
16552
  let valid2 = isValidLicense(licenseKey, {
16549
16553
  publishedAt: 1624970570587,
16550
- version: "1.3.14"
16554
+ version: "1.3.15"
16551
16555
  });
16552
16556
  if (!licenseKey && !valid2 && isInsidePlayground) {
16553
16557
  return true;