iguazio.dashboard-react-controls 2.2.2 → 2.2.3

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.
@@ -60,12 +60,13 @@ const Tooltip = _ref => {
60
60
  }, [hidden]);
61
61
  const handleMouseEnter = (0, _react.useCallback)(event => {
62
62
  if (!show) {
63
+ var _child$childNodes, _child$childNodes2;
63
64
  const [child] = parentRef.current.childNodes;
64
- let show = !hidden && (textShow ? true : !child ? false : child.nodeType !== Node.TEXT_NODE || (
65
+ let show = !hidden && (textShow ? true : !child ? false : child.nodeType !== Node.TEXT_NODE && ((_child$childNodes = child.childNodes) === null || _child$childNodes === void 0 || (_child$childNodes = _child$childNodes[0]) === null || _child$childNodes === void 0 ? void 0 : _child$childNodes.nodeType) !== Node.TEXT_NODE || (
65
66
  /*
66
67
  If the child node is a text node and the text of the child node inside the container is greater than the width of the container, then show tooltip.
67
68
  */
68
- child.nodeType === Node.TEXT_NODE && parentRef.current.scrollWidth > parentRef.current.offsetWidth));
69
+ (child.nodeType === Node.TEXT_NODE || ((_child$childNodes2 = child.childNodes) === null || _child$childNodes2 === void 0 || (_child$childNodes2 = _child$childNodes2[0]) === null || _child$childNodes2 === void 0 ? void 0 : _child$childNodes2.nodeType) === Node.TEXT_NODE) && parentRef.current.scrollWidth > parentRef.current.offsetWidth));
69
70
  setShow(show);
70
71
  setTimeout(() => {
71
72
  if (show) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -75,7 +75,7 @@
75
75
  "react-transition-group": "^4.4.5",
76
76
  "sass": "^1.50.0",
77
77
  "web-vitals": "^2.1.4",
78
- "webpack": "^5.72.0"
78
+ "webpack": "^5.94.0"
79
79
  },
80
80
  "scripts": {
81
81
  "start": "react-scripts start",