@infinite-table/infinite-react 9.3.0 → 9.4.0

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.dev.js CHANGED
@@ -21134,10 +21134,11 @@ function deriveStateFromProps(params) {
21134
21134
  state.logger
21135
21135
  );
21136
21136
  }
21137
- const groupMode = typeof props.data === "function" ? propsGroupMode ?? "local" : "local";
21137
+ const remoteByDefault = typeof props.data === "function" && !!props.lazyLoad;
21138
+ const groupMode = typeof props.data === "function" ? propsGroupMode ?? (remoteByDefault ? "remote" : "local") : "local";
21138
21139
  const sortMode = props.sortFunction ? "local" : propsSortMode ?? (controlledSort ? "remote" : "local");
21139
21140
  const filterMode = typeof props.filterFunction === "function" || typeof props.treeFilterFunction === "function" ? "local" : propsFilterMode ?? (typeof props.data === "function" ? "remote" : "local");
21140
- const pivotMode = shouldReloadData.pivotBy ? "remote" : "local";
21141
+ const pivotMode = shouldReloadData.pivotBy ?? remoteByDefault ? "remote" : "local";
21141
21142
  const rowDisabledState = state.rowDisabledState;
21142
21143
  let isRowDisabled = props.isRowDisabled;
21143
21144
  if (!isRowDisabled && rowDisabledState) {
@@ -28158,7 +28159,7 @@ var useLicense = (licenseKey = "") => {
28158
28159
  }
28159
28160
  let valid2 = isValidLicense(licenseKey, {
28160
28161
  publishedAt: 1624970570587,
28161
- version: "9.3.0"
28162
+ version: "9.4.0"
28162
28163
  });
28163
28164
  if (!licenseKey && !valid2 && isInsidePlayground) {
28164
28165
  return true;
package/index.dev.mjs CHANGED
@@ -21068,10 +21068,11 @@ function deriveStateFromProps(params) {
21068
21068
  state.logger
21069
21069
  );
21070
21070
  }
21071
- const groupMode = typeof props.data === "function" ? propsGroupMode ?? "local" : "local";
21071
+ const remoteByDefault = typeof props.data === "function" && !!props.lazyLoad;
21072
+ const groupMode = typeof props.data === "function" ? propsGroupMode ?? (remoteByDefault ? "remote" : "local") : "local";
21072
21073
  const sortMode = props.sortFunction ? "local" : propsSortMode ?? (controlledSort ? "remote" : "local");
21073
21074
  const filterMode = typeof props.filterFunction === "function" || typeof props.treeFilterFunction === "function" ? "local" : propsFilterMode ?? (typeof props.data === "function" ? "remote" : "local");
21074
- const pivotMode = shouldReloadData.pivotBy ? "remote" : "local";
21075
+ const pivotMode = shouldReloadData.pivotBy ?? remoteByDefault ? "remote" : "local";
21075
21076
  const rowDisabledState = state.rowDisabledState;
21076
21077
  let isRowDisabled = props.isRowDisabled;
21077
21078
  if (!isRowDisabled && rowDisabledState) {
@@ -28097,7 +28098,7 @@ var useLicense = (licenseKey = "") => {
28097
28098
  }
28098
28099
  let valid2 = isValidLicense(licenseKey, {
28099
28100
  publishedAt: 1624970570587,
28100
- version: "9.3.0"
28101
+ version: "9.4.0"
28101
28102
  });
28102
28103
  if (!licenseKey && !valid2 && isInsidePlayground) {
28103
28104
  return true;