@infinite-table/infinite-react 6.0.3 → 6.0.4

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
@@ -17312,6 +17312,7 @@ function deriveStateFromProps(params) {
17312
17312
  });
17313
17313
  return acc;
17314
17314
  }, {});
17315
+ const treeProps = props;
17315
17316
  let selectionMode = props.selectionMode;
17316
17317
  if (selectionMode === void 0) {
17317
17318
  if (props.cellSelection !== void 0 || props.defaultCellSelection !== void 0) {
@@ -17325,6 +17326,12 @@ function deriveStateFromProps(params) {
17325
17326
  selectionMode = "single-row";
17326
17327
  }
17327
17328
  }
17329
+ if (!selectionMode) {
17330
+ const treeSelectionProp = treeProps.treeSelection ?? treeProps.defaultTreeSelection;
17331
+ if (treeSelectionProp !== void 0) {
17332
+ selectionMode = typeof treeSelectionProp === "object" ? "multi-row" : "single-row";
17333
+ }
17334
+ }
17328
17335
  selectionMode = selectionMode ?? false;
17329
17336
  }
17330
17337
  }
@@ -17379,7 +17386,6 @@ function deriveStateFromProps(params) {
17379
17386
  }
17380
17387
  const primaryKeyDescriptor = state.primaryKey;
17381
17388
  const toPrimaryKey = typeof primaryKeyDescriptor === "function" ? (data) => primaryKeyDescriptor(data) : (data) => data[primaryKeyDescriptor];
17382
- const treeProps = props;
17383
17389
  let treeExpandState = treeProps.treeExpandState || state.treeExpandState || treeProps.defaultTreeExpandState;
17384
17390
  if (treeExpandState && !(treeExpandState instanceof TreeExpandState)) {
17385
17391
  const instance = weakMap.get(treeExpandState) ?? new TreeExpandState(treeExpandState);
@@ -22063,7 +22069,7 @@ var useLicense = (licenseKey = "") => {
22063
22069
  }
22064
22070
  let valid2 = isValidLicense(licenseKey, {
22065
22071
  publishedAt: 1624970570587,
22066
- version: "6.0.3"
22072
+ version: "6.0.4"
22067
22073
  });
22068
22074
  if (!licenseKey && !valid2 && isInsidePlayground) {
22069
22075
  return true;
package/index.dev.mjs CHANGED
@@ -17261,6 +17261,7 @@ function deriveStateFromProps(params) {
17261
17261
  });
17262
17262
  return acc;
17263
17263
  }, {});
17264
+ const treeProps = props;
17264
17265
  let selectionMode = props.selectionMode;
17265
17266
  if (selectionMode === void 0) {
17266
17267
  if (props.cellSelection !== void 0 || props.defaultCellSelection !== void 0) {
@@ -17274,6 +17275,12 @@ function deriveStateFromProps(params) {
17274
17275
  selectionMode = "single-row";
17275
17276
  }
17276
17277
  }
17278
+ if (!selectionMode) {
17279
+ const treeSelectionProp = treeProps.treeSelection ?? treeProps.defaultTreeSelection;
17280
+ if (treeSelectionProp !== void 0) {
17281
+ selectionMode = typeof treeSelectionProp === "object" ? "multi-row" : "single-row";
17282
+ }
17283
+ }
17277
17284
  selectionMode = selectionMode ?? false;
17278
17285
  }
17279
17286
  }
@@ -17328,7 +17335,6 @@ function deriveStateFromProps(params) {
17328
17335
  }
17329
17336
  const primaryKeyDescriptor = state.primaryKey;
17330
17337
  const toPrimaryKey = typeof primaryKeyDescriptor === "function" ? (data) => primaryKeyDescriptor(data) : (data) => data[primaryKeyDescriptor];
17331
- const treeProps = props;
17332
17338
  let treeExpandState = treeProps.treeExpandState || state.treeExpandState || treeProps.defaultTreeExpandState;
17333
17339
  if (treeExpandState && !(treeExpandState instanceof TreeExpandState)) {
17334
17340
  const instance = weakMap.get(treeExpandState) ?? new TreeExpandState(treeExpandState);
@@ -22021,7 +22027,7 @@ var useLicense = (licenseKey = "") => {
22021
22027
  }
22022
22028
  let valid2 = isValidLicense(licenseKey, {
22023
22029
  publishedAt: 1624970570587,
22024
- version: "6.0.3"
22030
+ version: "6.0.4"
22025
22031
  });
22026
22032
  if (!licenseKey && !valid2 && isInsidePlayground) {
22027
22033
  return true;
package/index.js CHANGED
@@ -17312,6 +17312,7 @@ function deriveStateFromProps(params) {
17312
17312
  });
17313
17313
  return acc;
17314
17314
  }, {});
17315
+ const treeProps = props;
17315
17316
  let selectionMode = props.selectionMode;
17316
17317
  if (selectionMode === void 0) {
17317
17318
  if (props.cellSelection !== void 0 || props.defaultCellSelection !== void 0) {
@@ -17325,6 +17326,12 @@ function deriveStateFromProps(params) {
17325
17326
  selectionMode = "single-row";
17326
17327
  }
17327
17328
  }
17329
+ if (!selectionMode) {
17330
+ const treeSelectionProp = treeProps.treeSelection ?? treeProps.defaultTreeSelection;
17331
+ if (treeSelectionProp !== void 0) {
17332
+ selectionMode = typeof treeSelectionProp === "object" ? "multi-row" : "single-row";
17333
+ }
17334
+ }
17328
17335
  selectionMode = selectionMode ?? false;
17329
17336
  }
17330
17337
  }
@@ -17379,7 +17386,6 @@ function deriveStateFromProps(params) {
17379
17386
  }
17380
17387
  const primaryKeyDescriptor = state.primaryKey;
17381
17388
  const toPrimaryKey = typeof primaryKeyDescriptor === "function" ? (data) => primaryKeyDescriptor(data) : (data) => data[primaryKeyDescriptor];
17382
- const treeProps = props;
17383
17389
  let treeExpandState = treeProps.treeExpandState || state.treeExpandState || treeProps.defaultTreeExpandState;
17384
17390
  if (treeExpandState && !(treeExpandState instanceof TreeExpandState)) {
17385
17391
  const instance = weakMap.get(treeExpandState) ?? new TreeExpandState(treeExpandState);
@@ -22063,7 +22069,7 @@ var useLicense = (licenseKey = "") => {
22063
22069
  }
22064
22070
  let valid2 = isValidLicense(licenseKey, {
22065
22071
  publishedAt: 1624970570587,
22066
- version: "6.0.3"
22072
+ version: "6.0.4"
22067
22073
  });
22068
22074
  if (!licenseKey && !valid2 && isInsidePlayground) {
22069
22075
  return true;
package/index.mjs CHANGED
@@ -17261,6 +17261,7 @@ function deriveStateFromProps(params) {
17261
17261
  });
17262
17262
  return acc;
17263
17263
  }, {});
17264
+ const treeProps = props;
17264
17265
  let selectionMode = props.selectionMode;
17265
17266
  if (selectionMode === void 0) {
17266
17267
  if (props.cellSelection !== void 0 || props.defaultCellSelection !== void 0) {
@@ -17274,6 +17275,12 @@ function deriveStateFromProps(params) {
17274
17275
  selectionMode = "single-row";
17275
17276
  }
17276
17277
  }
17278
+ if (!selectionMode) {
17279
+ const treeSelectionProp = treeProps.treeSelection ?? treeProps.defaultTreeSelection;
17280
+ if (treeSelectionProp !== void 0) {
17281
+ selectionMode = typeof treeSelectionProp === "object" ? "multi-row" : "single-row";
17282
+ }
17283
+ }
17277
17284
  selectionMode = selectionMode ?? false;
17278
17285
  }
17279
17286
  }
@@ -17328,7 +17335,6 @@ function deriveStateFromProps(params) {
17328
17335
  }
17329
17336
  const primaryKeyDescriptor = state.primaryKey;
17330
17337
  const toPrimaryKey = typeof primaryKeyDescriptor === "function" ? (data) => primaryKeyDescriptor(data) : (data) => data[primaryKeyDescriptor];
17331
- const treeProps = props;
17332
17338
  let treeExpandState = treeProps.treeExpandState || state.treeExpandState || treeProps.defaultTreeExpandState;
17333
17339
  if (treeExpandState && !(treeExpandState instanceof TreeExpandState)) {
17334
17340
  const instance = weakMap.get(treeExpandState) ?? new TreeExpandState(treeExpandState);
@@ -22021,7 +22027,7 @@ var useLicense = (licenseKey = "") => {
22021
22027
  }
22022
22028
  let valid2 = isValidLicense(licenseKey, {
22023
22029
  publishedAt: 1624970570587,
22024
- version: "6.0.3"
22030
+ version: "6.0.4"
22025
22031
  });
22026
22032
  if (!licenseKey && !valid2 && isInsidePlayground) {
22027
22033
  return true;
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "bugs": {
26
26
  "url": "https://github.com/infinite-table/infinite-react/issues"
27
27
  },
28
- "version": "6.0.3",
28
+ "version": "6.0.4",
29
29
  "main": "index.js",
30
30
  "module": "index.mjs",
31
31
  "typings": "index.d.ts",
@@ -34,5 +34,5 @@
34
34
  },
35
35
  "license": "Commercial & Open Source",
36
36
  "//": "will be updated at build time",
37
- "publishedAt": 1730129049591
37
+ "publishedAt": 1730132637668
38
38
  }