baseui 0.0.0-next-3fb5d3f → 0.0.0-next-68fcd40

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.
@@ -51,7 +51,7 @@ function MeasureColumn(_ref) {
51
51
  onLayout(columnIndex, ref.current.getBoundingClientRect());
52
52
  }
53
53
  }
54
- }, []);
54
+ }, [onLayout]);
55
55
  return /*#__PURE__*/React.createElement("div", {
56
56
  ref: ref,
57
57
  className: css({
@@ -133,7 +133,7 @@ function MeasureColumnWidths(_ref2) {
133
133
 
134
134
  var widthMap = React.useMemo(function () {
135
135
  return new Map();
136
- }, []);
136
+ }, [rows]);
137
137
  var sampleSize = rows.length < MAX_SAMPLE_SIZE ? rows.length : MAX_SAMPLE_SIZE;
138
138
  var finishedMeasurementCount = (sampleSize + 1) * columns.length;
139
139
  var sampleIndexes = React.useMemo(function () {
@@ -152,7 +152,7 @@ function MeasureColumnWidths(_ref2) {
152
152
  widthMap.size === Math.floor(columns.length / 4)) {
153
153
  onWidthsChange(Array.from(widthMap.values()));
154
154
  }
155
- }, [columns, finishedMeasurementCount, onWidthsChange]);
155
+ }, [columns, rows, finishedMeasurementCount, onWidthsChange]);
156
156
  var hiddenStyle = css({
157
157
  position: 'absolute',
158
158
  overflow: 'hidden',
@@ -25,7 +25,7 @@ function MeasureColumn({
25
25
  onLayout(columnIndex, ref.current.getBoundingClientRect());
26
26
  }
27
27
  }
28
- }, []);
28
+ }, [onLayout]);
29
29
  return /*#__PURE__*/React.createElement("div", {
30
30
  ref: ref,
31
31
  className: css({
@@ -101,7 +101,7 @@ export default function MeasureColumnWidths({
101
101
  const [css] = useStyletron();
102
102
  const widthMap = React.useMemo(() => {
103
103
  return new Map();
104
- }, []);
104
+ }, [rows]);
105
105
  const sampleSize = rows.length < MAX_SAMPLE_SIZE ? rows.length : MAX_SAMPLE_SIZE;
106
106
  const finishedMeasurementCount = (sampleSize + 1) * columns.length;
107
107
  const sampleIndexes = React.useMemo(() => {
@@ -120,7 +120,7 @@ export default function MeasureColumnWidths({
120
120
  widthMap.size === Math.floor(columns.length / 4)) {
121
121
  onWidthsChange(Array.from(widthMap.values()));
122
122
  }
123
- }, [columns, finishedMeasurementCount, onWidthsChange]);
123
+ }, [columns, rows, finishedMeasurementCount, onWidthsChange]);
124
124
  const hiddenStyle = css({
125
125
  position: 'absolute',
126
126
  overflow: 'hidden',
@@ -40,7 +40,7 @@ function MeasureColumn(_ref) {
40
40
  onLayout(columnIndex, ref.current.getBoundingClientRect());
41
41
  }
42
42
  }
43
- }, []);
43
+ }, [onLayout]);
44
44
  return /*#__PURE__*/React.createElement("div", {
45
45
  ref: ref,
46
46
  className: css({
@@ -122,7 +122,7 @@ export default function MeasureColumnWidths(_ref2) {
122
122
 
123
123
  var widthMap = React.useMemo(function () {
124
124
  return new Map();
125
- }, []);
125
+ }, [rows]);
126
126
  var sampleSize = rows.length < MAX_SAMPLE_SIZE ? rows.length : MAX_SAMPLE_SIZE;
127
127
  var finishedMeasurementCount = (sampleSize + 1) * columns.length;
128
128
  var sampleIndexes = React.useMemo(function () {
@@ -141,7 +141,7 @@ export default function MeasureColumnWidths(_ref2) {
141
141
  widthMap.size === Math.floor(columns.length / 4)) {
142
142
  onWidthsChange(Array.from(widthMap.values()));
143
143
  }
144
- }, [columns, finishedMeasurementCount, onWidthsChange]);
144
+ }, [columns, rows, finishedMeasurementCount, onWidthsChange]);
145
145
  var hiddenStyle = css({
146
146
  position: 'absolute',
147
147
  overflow: 'hidden',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "0.0.0-next-3fb5d3f",
3
+ "version": "0.0.0-next-68fcd40",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",