intelicoreact 1.2.30 → 1.2.31

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.
@@ -23,7 +23,7 @@ var SCROLL_DIRECTION = {
23
23
  };
24
24
 
25
25
  function useMobileModal(_ref) {
26
- var _modalMobileContainer, _modalMobileContainer2, _modalMobileHeaderRef, _modalMobileHeaderRef2, _modalMobileFooterRef, _modalMobileFooterRef2, _modalMobileFooterRef3, _modalMobileFooterRef4, _modalMobileBodyRef$c, _modalMobileBodyRef$c2;
26
+ var _modalMobileContainer, _modalMobileContainer2, _modalMobileHeaderRef, _modalMobileHeaderRef2, _modalMobileFooterRef, _modalMobileFooterRef2, _modalMobileFooterRef3, _modalMobileFooterRef4, _modalMobileBodyRef$c, _modalMobileBodyRef$c2, _modalRef$current2, _modalRef$current2$ge;
27
27
 
28
28
  var _ref$modalRef = _ref.modalRef,
29
29
  modalRef = _ref$modalRef === void 0 ? null : _ref$modalRef,
@@ -105,7 +105,7 @@ function useMobileModal(_ref) {
105
105
  }
106
106
  }
107
107
  }
108
- }, [modalRef, modalMobileContainerRef, isOpen]);
108
+ }, [modalRef, modalRef === null || modalRef === void 0 ? void 0 : (_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 ? void 0 : (_modalRef$current2$ge = _modalRef$current2.getBoundingClientRect()) === null || _modalRef$current2$ge === void 0 ? void 0 : _modalRef$current2$ge.height, modalMobileContainerRef, isOpen]);
109
109
  var MODALS_LOGIC = {
110
110
  IS_HEADER_HIDDEN: !isMobile || noMobileModalLogic ? false : footerBottom * -1 <= footerHeight || scrollDirection === SCROLL_DIRECTION.DOWN,
111
111
  IS_HEADER_STICKY: !isMobile || noMobileModalLogic ? false : headerTop <= 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.2.30",
3
+ "version": "1.2.31",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [