Skip to content

Commit f44705e

Browse files
authored
Create a new dist version 2.2.22 (#379)
Collecting: - Fix [UI] fix "findDOMNode is deprecated" error across the app (#370)
1 parent 07a6371 commit f44705e

File tree

7 files changed

+26
-10
lines changed

7 files changed

+26
-10
lines changed

commit_message

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
Create a new dist version 2.2.21
3+
Create a new dist version 2.2.22
44

55
Collecting:
6-
- Fix [Wizard] Steps in small resolution (#373)
6+
- Fix [UI] fix "findDOMNode is deprecated" error across the app (#370)

dist/components/Backdrop/Backdrop.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ Object.defineProperty(exports, "__esModule", {
44
value: true
55
});
66
exports.default = void 0;
7-
var _react = _interopRequireDefault(require("react"));
7+
var _react = _interopRequireWildcard(require("react"));
88
var _propTypes = _interopRequireDefault(require("prop-types"));
99
var _reactTransitionGroup = require("react-transition-group");
1010
require("./Backdrop.scss");
1111
var _jsxRuntime = require("react/jsx-runtime");
1212
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
1315
/*
1416
Copyright 2022 Iguazio Systems Ltd.
1517
Licensed under the Apache License, Version 2.0 (the "License") with
@@ -33,15 +35,18 @@ const Backdrop = _ref => {
3335
show = false,
3436
onClose
3537
} = _ref;
38+
const nodeRef = (0, _react.useRef)(null);
3639
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
40+
nodeRef: nodeRef,
3741
in: show,
3842
timeout: duration,
3943
classNames: "backdrop-transition",
4044
mountOnEnter: true,
4145
unmountOnExit: true,
4246
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
4347
className: "backdrop",
44-
onClick: onClose
48+
onClick: onClose,
49+
ref: nodeRef
4550
})
4651
});
4752
};

dist/components/Modal/Modal.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
44
value: true
55
});
66
exports.default = void 0;
7-
var _react = _interopRequireDefault(require("react"));
7+
var _react = _interopRequireWildcard(require("react"));
88
var _propTypes = _interopRequireDefault(require("prop-types"));
99
var _reactTransitionGroup = require("react-transition-group");
1010
var _classnames = _interopRequireDefault(require("classnames"));
@@ -16,6 +16,8 @@ var _close = require("../../images/close.svg");
1616
require("./Modal.scss");
1717
var _jsxRuntime = require("react/jsx-runtime");
1818
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
20+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
1921
/*
2022
Copyright 2022 Iguazio Systems Ltd.
2123
Licensed under the Apache License, Version 2.0 (the "License") with
@@ -46,19 +48,22 @@ const Modal = _ref => {
4648
subTitle = null,
4749
title = ''
4850
} = _ref;
51+
const nodeRef = (0, _react.useRef)(null);
4952
const modalClassNames = (0, _classnames.default)('modal', className, size && `modal-${size}`);
5053
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
5154
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Backdrop.default, {
5255
onClose: onClose,
5356
show: show
5457
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
58+
nodeRef: nodeRef,
5559
in: show,
5660
timeout: 300,
5761
classNames: "modal-transition",
5862
unmountOnExit: true,
5963
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
6064
className: modalClassNames,
6165
"data-testid": "modal",
66+
ref: nodeRef,
6267
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
6368
className: "modal__header-button",
6469
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RoundedIcon.default, {

dist/components/Tip/Tip.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const Tip = _ref => {
9595
"data-testid": "tip-icon"
9696
})
9797
}), /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
98+
nodeRef: tipBodyRef,
9899
in: isShow,
99100
timeout: 200,
100101
classNames: "fade",

dist/components/Tooltip/Tooltip.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ const Tooltip = _ref => {
6363
const [child] = parentRef.current.childNodes;
6464
let show = !hidden && (textShow ? true : !child ? false : child.nodeType !== Node.TEXT_NODE && child.childNodes?.[0]?.nodeType !== Node.TEXT_NODE || (
6565
/*
66-
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-
*/
66+
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+
*/
6868
(child.nodeType === Node.TEXT_NODE || child.childNodes?.[0]?.nodeType === Node.TEXT_NODE) && parentRef.current.scrollWidth > parentRef.current.offsetWidth));
6969
setShow(show);
7070
setTimeout(() => {
@@ -152,11 +152,11 @@ const Tooltip = _ref => {
152152
onClick: handleMouseLeave,
153153
children: children
154154
}), !hidden && /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
155+
nodeRef: tooltipRef,
155156
classNames: "fade",
156157
in: show,
157158
timeout: duration,
158159
unmountOnExit: true,
159-
nodeRef: tooltipRef,
160160
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
161161
"data-testid": id ? `${id}-tooltip` : 'tooltip',
162162
ref: tooltipRef,

dist/elements/OptionsMenu/OptionsMenu.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ Object.defineProperty(exports, "__esModule", {
44
value: true
55
});
66
exports.default = void 0;
7-
var _react = _interopRequireDefault(require("react"));
7+
var _react = _interopRequireWildcard(require("react"));
88
var _propTypes = _interopRequireDefault(require("prop-types"));
99
var _reactTransitionGroup = require("react-transition-group");
1010
var _components = require("../../components");
1111
require("./optionsMenu.scss");
1212
var _jsxRuntime = require("react/jsx-runtime");
1313
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
1416
/*
1517
Copyright 2022 Iguazio Systems Ltd.
1618
Licensed under the Apache License, Version 2.0 (the "License") with
@@ -34,15 +36,18 @@ const OptionsMenu = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
3436
show = false,
3537
timeout = 300
3638
} = _ref;
39+
const nodeRef = (0, _react.useRef)(null);
3740
const {
3841
width: dropdownWidth
3942
} = ref.current ? ref.current.getBoundingClientRect() : {};
4043
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
44+
nodeRef: nodeRef,
4145
in: show,
4246
timeout: timeout,
4347
classNames: "options-menu-transition",
4448
unmountOnExit: true,
4549
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PopUpDialog, {
50+
ref: nodeRef,
4651
headerIsHidden: true,
4752
className: "options-menu",
4853
customPosition: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iguazio.dashboard-react-controls",
3-
"version": "2.2.21",
3+
"version": "2.2.22",
44
"description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

0 commit comments

Comments
 (0)