@infinite-table/infinite-react 3.0.5 → 3.0.7

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
@@ -1395,7 +1395,7 @@ declare type InfiniteTableCellSelectionApi<T> = {
1395
1395
  columnIds: string[];
1396
1396
  positions: (CellSelectionPosition | null)[][];
1397
1397
  };
1398
- getMappedCellSelectionPositions<SELECTED_VALUE, EMPTY_VALUE>(fn: (rowInfo: InfiniteTableRowInfo<T>, colId: string) => SELECTED_VALUE, emptyValue: EMPTY_VALUE): {
1398
+ mapCellSelectionPositions<SELECTED_VALUE, EMPTY_VALUE>(fn: (rowInfo: InfiniteTableRowInfo<T>, colId: string) => SELECTED_VALUE, emptyValue: EMPTY_VALUE): {
1399
1399
  columnIds: string[];
1400
1400
  positions: (SELECTED_VALUE | EMPTY_VALUE)[][];
1401
1401
  };
@@ -2577,6 +2577,7 @@ interface InfiniteTableApi<T> {
2577
2577
  realignColumnContextMenu: () => void;
2578
2578
  getColumnOrder: () => string[];
2579
2579
  getVisibleColumnOrder: () => string[];
2580
+ getComputedColumnById: (colId: string) => InfiniteTableColumn<T> | undefined;
2580
2581
  isEditorVisibleForCell(params: {
2581
2582
  rowIndex: number;
2582
2583
  columnId: string;
package/index.dev.js CHANGED
@@ -14634,7 +14634,7 @@ var InfiniteTableCellSelectionApiImpl = class {
14634
14634
  return [rowInfo.id, colId];
14635
14635
  }, null);
14636
14636
  };
14637
- this.getMappedCellSelectionPositions = (fn, emptyValue) => {
14637
+ this.mapCellSelectionPositions = (fn, emptyValue) => {
14638
14638
  return this.getCellSelectionPositionsWithFn(fn, emptyValue);
14639
14639
  };
14640
14640
  this.deselectAll = () => {
@@ -14745,6 +14745,9 @@ var InfiniteTableApiImpl = class {
14745
14745
  this.getColumnOrder = () => {
14746
14746
  return this.getComputed().computedColumnOrder;
14747
14747
  };
14748
+ this.getComputedColumnById = (columnId) => {
14749
+ return this.getComputed().computedColumnsMap.get(columnId);
14750
+ };
14748
14751
  this.getVisibleColumnOrder = () => {
14749
14752
  const order2 = this.getColumnOrder();
14750
14753
  const visibleColumns = this.getComputed().computedVisibleColumnsMap;
@@ -17590,7 +17593,7 @@ var useLicense = (licenseKey = "") => {
17590
17593
  const valid = (0, import_react49.useMemo)(() => {
17591
17594
  let valid2 = isValidLicense(licenseKey, {
17592
17595
  publishedAt: 1624970570587,
17593
- version: "3.0.5"
17596
+ version: "3.0.7"
17594
17597
  });
17595
17598
  if (!licenseKey && !valid2 && isInsidePlayground) {
17596
17599
  return true;
package/index.dev.mjs CHANGED
@@ -14619,7 +14619,7 @@ var InfiniteTableCellSelectionApiImpl = class {
14619
14619
  return [rowInfo.id, colId];
14620
14620
  }, null);
14621
14621
  };
14622
- this.getMappedCellSelectionPositions = (fn, emptyValue) => {
14622
+ this.mapCellSelectionPositions = (fn, emptyValue) => {
14623
14623
  return this.getCellSelectionPositionsWithFn(fn, emptyValue);
14624
14624
  };
14625
14625
  this.deselectAll = () => {
@@ -14730,6 +14730,9 @@ var InfiniteTableApiImpl = class {
14730
14730
  this.getColumnOrder = () => {
14731
14731
  return this.getComputed().computedColumnOrder;
14732
14732
  };
14733
+ this.getComputedColumnById = (columnId) => {
14734
+ return this.getComputed().computedColumnsMap.get(columnId);
14735
+ };
14733
14736
  this.getVisibleColumnOrder = () => {
14734
14737
  const order2 = this.getColumnOrder();
14735
14738
  const visibleColumns = this.getComputed().computedVisibleColumnsMap;
@@ -17579,7 +17582,7 @@ var useLicense = (licenseKey = "") => {
17579
17582
  const valid = useMemo11(() => {
17580
17583
  let valid2 = isValidLicense(licenseKey, {
17581
17584
  publishedAt: 1624970570587,
17582
- version: "3.0.5"
17585
+ version: "3.0.7"
17583
17586
  });
17584
17587
  if (!licenseKey && !valid2 && isInsidePlayground) {
17585
17588
  return true;