baseui 0.0.0-alpha-48d2ddc → 0.0.0-alpha-c54ce6f

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.
@@ -45,6 +45,7 @@ function MeasureColumn(_ref) {
45
45
  css = _useStyletron2[0];
46
46
 
47
47
  var ref = (0, React.useRef)();
48
+ console.log('measure column', columnIndex);
48
49
  React.useEffect(function () {
49
50
  if (typeof document !== 'undefined') {
50
51
  if (ref.current) {
@@ -139,6 +140,7 @@ function MeasureColumnWidths(_ref2) {
139
140
  return generateSampleIndices(0, rows.length - 1, sampleSize);
140
141
  }, [columns, rows, widths, sampleSize]);
141
142
  var handleDimensionsChange = React.useCallback(function (columnIndex, dimensions) {
143
+ console.log('handle dimensions change', columnIndex, dimensions);
142
144
  var nextWidth = Math.min(Math.max(columns[columnIndex].minWidth || 0, widthMap.get(columnIndex) || 0, dimensions.width + 1), columns[columnIndex].maxWidth || Infinity);
143
145
 
144
146
  if (nextWidth !== widthMap.get(columnIndex)) {
@@ -27,6 +27,8 @@ function MeasureColumn({
27
27
 
28
28
  const ref = useRef();
29
29
 
30
+ console.log('measure column', columnIndex);
31
+
30
32
  React.useEffect(() => {
31
33
  if (__BROWSER__) {
32
34
  if (ref.current) {
@@ -134,6 +136,7 @@ export default function MeasureColumnWidths({
134
136
 
135
137
  const handleDimensionsChange = React.useCallback(
136
138
  (columnIndex, dimensions) => {
139
+ console.log('handle dimensions change', columnIndex, dimensions);
137
140
  const nextWidth = Math.min(
138
141
  Math.max(
139
142
  columns[columnIndex].minWidth || 0,
@@ -19,6 +19,7 @@ function MeasureColumn({
19
19
  }) {
20
20
  const [css] = useStyletron();
21
21
  const ref = useRef();
22
+ console.log('measure column', columnIndex);
22
23
  React.useEffect(() => {
23
24
  if (typeof document !== 'undefined') {
24
25
  if (ref.current) {
@@ -107,6 +108,7 @@ export default function MeasureColumnWidths({
107
108
  return generateSampleIndices(0, rows.length - 1, sampleSize);
108
109
  }, [columns, rows, widths, sampleSize]);
109
110
  const handleDimensionsChange = React.useCallback((columnIndex, dimensions) => {
111
+ console.log('handle dimensions change', columnIndex, dimensions);
110
112
  const nextWidth = Math.min(Math.max(columns[columnIndex].minWidth || 0, widthMap.get(columnIndex) || 0, dimensions.width + 1), columns[columnIndex].maxWidth || Infinity);
111
113
 
112
114
  if (nextWidth !== widthMap.get(columnIndex)) {
@@ -34,6 +34,7 @@ function MeasureColumn(_ref) {
34
34
  css = _useStyletron2[0];
35
35
 
36
36
  var ref = useRef();
37
+ console.log('measure column', columnIndex);
37
38
  React.useEffect(function () {
38
39
  if (typeof document !== 'undefined') {
39
40
  if (ref.current) {
@@ -128,6 +129,7 @@ export default function MeasureColumnWidths(_ref2) {
128
129
  return generateSampleIndices(0, rows.length - 1, sampleSize);
129
130
  }, [columns, rows, widths, sampleSize]);
130
131
  var handleDimensionsChange = React.useCallback(function (columnIndex, dimensions) {
132
+ console.log('handle dimensions change', columnIndex, dimensions);
131
133
  var nextWidth = Math.min(Math.max(columns[columnIndex].minWidth || 0, widthMap.get(columnIndex) || 0, dimensions.width + 1), columns[columnIndex].maxWidth || Infinity);
132
134
 
133
135
  if (nextWidth !== widthMap.get(columnIndex)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "0.0.0-alpha-48d2ddc",
3
+ "version": "0.0.0-alpha-c54ce6f",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",