@reltio/components 1.4.1602 → 1.4.1603

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.
@@ -47,6 +47,7 @@ var RowCellAutoSizer = function (_a) {
47
47
  var changeCellHeight = onChangeHeight({ rowIndex: rowIndex, cellIndex: cellIndex, columnData: columnData, rowValue: rowValue });
48
48
  var adjustCellHeight = function () { return cellRef.current && changeCellHeight(cellRef.current.clientHeight); };
49
49
  (0, hooks_1.useDidUpdateEffect)(adjustCellHeight, [rowValue.rawValue]);
50
+ (0, react_1.useEffect)(function () { return function () { return changeCellHeight(undefined); }; }, []);
50
51
  return (react_1.default.createElement("div", { ref: cellRef },
51
52
  react_1.default.createElement(react_resize_detector_1.default, { handleHeight: true, onResize: adjustCellHeight }),
52
53
  cell));
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import React, { useRef } from 'react';
12
+ import React, { useEffect, useRef } from 'react';
13
13
  import ReactResizeDetector from 'react-resize-detector';
14
14
  import { useDidUpdateEffect } from '../../../hooks';
15
15
  var RowCellAutoSizer = function (_a) {
@@ -19,6 +19,7 @@ var RowCellAutoSizer = function (_a) {
19
19
  var changeCellHeight = onChangeHeight({ rowIndex: rowIndex, cellIndex: cellIndex, columnData: columnData, rowValue: rowValue });
20
20
  var adjustCellHeight = function () { return cellRef.current && changeCellHeight(cellRef.current.clientHeight); };
21
21
  useDidUpdateEffect(adjustCellHeight, [rowValue.rawValue]);
22
+ useEffect(function () { return function () { return changeCellHeight(undefined); }; }, []);
22
23
  return (React.createElement("div", { ref: cellRef },
23
24
  React.createElement(ReactResizeDetector, { handleHeight: true, onResize: adjustCellHeight }),
24
25
  cell));
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1602",
3
+ "version": "1.4.1603",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
7
7
  "dependencies": {
8
8
  "@date-io/moment": "^1.3.5",
9
9
  "@react-google-maps/api": "2.7.0",
10
- "@reltio/mdm-module": "^1.4.1602",
11
- "@reltio/mdm-sdk": "^1.4.1602",
10
+ "@reltio/mdm-module": "^1.4.1603",
11
+ "@reltio/mdm-sdk": "^1.4.1603",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",