@infinite-table/infinite-react 0.3.14 → 0.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.esm.js CHANGED
@@ -3534,6 +3534,7 @@ var ActiveStyle = {
3534
3534
  };
3535
3535
  var ActiveCellIndicatorFn = (props) => {
3536
3536
  const { brain } = props;
3537
+ const [_rerenderId, rerender] = useRerender();
3537
3538
  const domRef = useRef6(null);
3538
3539
  const active = props.activeCellIndex != null && brain.getRowCount() > props.activeCellIndex[0];
3539
3540
  useLayoutEffect4(() => {
@@ -3559,7 +3560,11 @@ var ActiveCellIndicatorFn = (props) => {
3559
3560
  scrollLeftForActiveCell: `${-scrollPosition.scrollLeft}px`
3560
3561
  }, domRef.current);
3561
3562
  });
3563
+ const removeOnRenderCountChange = brain.onRenderCountChange(() => {
3564
+ rerender();
3565
+ });
3562
3566
  return () => {
3567
+ removeOnRenderCountChange();
3563
3568
  removeOnSCroll();
3564
3569
  };
3565
3570
  }, [brain]);
@@ -10134,7 +10139,7 @@ var useLicense = (licenseKey = "") => {
10134
10139
  const valid = useMemo12(() => {
10135
10140
  let valid2 = isValidLicense(licenseKey, {
10136
10141
  publishedAt: 1624970570587,
10137
- version: "0.3.14"
10142
+ version: "0.3.15"
10138
10143
  });
10139
10144
  if (!licenseKey && !valid2 && isInsidePlayground) {
10140
10145
  return true;
package/index.js CHANGED
@@ -3520,6 +3520,7 @@ var ActiveStyle = {
3520
3520
  };
3521
3521
  var ActiveCellIndicatorFn = (props) => {
3522
3522
  const { brain } = props;
3523
+ const [_rerenderId, rerender] = useRerender();
3523
3524
  const domRef = (0, import_react10.useRef)(null);
3524
3525
  const active = props.activeCellIndex != null && brain.getRowCount() > props.activeCellIndex[0];
3525
3526
  (0, import_react10.useLayoutEffect)(() => {
@@ -3545,7 +3546,11 @@ var ActiveCellIndicatorFn = (props) => {
3545
3546
  scrollLeftForActiveCell: `${-scrollPosition.scrollLeft}px`
3546
3547
  }, domRef.current);
3547
3548
  });
3549
+ const removeOnRenderCountChange = brain.onRenderCountChange(() => {
3550
+ rerender();
3551
+ });
3548
3552
  return () => {
3553
+ removeOnRenderCountChange();
3549
3554
  removeOnSCroll();
3550
3555
  };
3551
3556
  }, [brain]);
@@ -10046,7 +10051,7 @@ var useLicense = (licenseKey = "") => {
10046
10051
  const valid = (0, import_react47.useMemo)(() => {
10047
10052
  let valid2 = isValidLicense(licenseKey, {
10048
10053
  publishedAt: 1624970570587,
10049
- version: "0.3.14"
10054
+ version: "0.3.15"
10050
10055
  });
10051
10056
  if (!licenseKey && !valid2 && isInsidePlayground) {
10052
10057
  return true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@infinite-table/infinite-react",
3
3
  "description": "Infinite Table for React",
4
- "version": "0.3.14",
4
+ "version": "0.3.15",
5
5
  "main": "index.js",
6
6
  "module": "index.esm.js",
7
7
  "typings": "index.d.ts",
@@ -14,5 +14,5 @@
14
14
  },
15
15
  "license": "Commercial & Open Source",
16
16
  "//": "will be updated at build time",
17
- "publishedAt": 1656080923593
17
+ "publishedAt": 1656103237062
18
18
  }