@infinite-table/infinite-react 2.0.6 → 2.0.8

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
@@ -1651,6 +1651,7 @@ declare type DataSourceInsertParam = DataSourceCRUDParam & ({
1651
1651
  position: 'start' | 'end';
1652
1652
  });
1653
1653
  interface DataSourceApi<T> {
1654
+ getOriginalDataArray: () => T[];
1654
1655
  getRowInfoArray: () => InfiniteTableRowInfo<T>[];
1655
1656
  getDataByPrimaryKey(id: any): T | null;
1656
1657
  getRowInfoByIndex(index: number): InfiniteTableRowInfo<T> | null;
package/index.dev.js CHANGED
@@ -11007,6 +11007,9 @@ var DataSourceApiImpl = class {
11007
11007
  this.pendingOperations = [];
11008
11008
  this.pendingPromise = null;
11009
11009
  this.resolvePendingPromise = null;
11010
+ this.getOriginalDataArray = () => {
11011
+ return this.getState().originalDataArray;
11012
+ };
11010
11013
  this.getState = param.getState;
11011
11014
  this.actions = param.actions;
11012
11015
  }
@@ -11103,9 +11106,6 @@ var DataSourceApiImpl = class {
11103
11106
  const rowInfo = this.getRowInfoByIndex(index);
11104
11107
  return rowInfo ? rowInfo.id : void 0;
11105
11108
  }
11106
- getOriginalDataArray() {
11107
- return this.getState().originalDataArray;
11108
- }
11109
11109
  getDataByPrimaryKey(id) {
11110
11110
  var _a;
11111
11111
  const { indexer } = this.getState();
@@ -16807,7 +16807,7 @@ var useLicense = (licenseKey = "") => {
16807
16807
  const valid = (0, import_react49.useMemo)(() => {
16808
16808
  let valid2 = isValidLicense(licenseKey, {
16809
16809
  publishedAt: 1624970570587,
16810
- version: "2.0.6"
16810
+ version: "2.0.8"
16811
16811
  });
16812
16812
  if (!licenseKey && !valid2 && isInsidePlayground) {
16813
16813
  return true;
package/index.dev.mjs CHANGED
@@ -10993,6 +10993,9 @@ var DataSourceApiImpl = class {
10993
10993
  this.pendingOperations = [];
10994
10994
  this.pendingPromise = null;
10995
10995
  this.resolvePendingPromise = null;
10996
+ this.getOriginalDataArray = () => {
10997
+ return this.getState().originalDataArray;
10998
+ };
10996
10999
  this.getState = param.getState;
10997
11000
  this.actions = param.actions;
10998
11001
  }
@@ -11089,9 +11092,6 @@ var DataSourceApiImpl = class {
11089
11092
  const rowInfo = this.getRowInfoByIndex(index);
11090
11093
  return rowInfo ? rowInfo.id : void 0;
11091
11094
  }
11092
- getOriginalDataArray() {
11093
- return this.getState().originalDataArray;
11094
- }
11095
11095
  getDataByPrimaryKey(id) {
11096
11096
  var _a;
11097
11097
  const { indexer } = this.getState();
@@ -16797,7 +16797,7 @@ var useLicense = (licenseKey = "") => {
16797
16797
  const valid = useMemo11(() => {
16798
16798
  let valid2 = isValidLicense(licenseKey, {
16799
16799
  publishedAt: 1624970570587,
16800
- version: "2.0.6"
16800
+ version: "2.0.8"
16801
16801
  });
16802
16802
  if (!licenseKey && !valid2 && isInsidePlayground) {
16803
16803
  return true;