intelicoreact 1.3.60 → 1.3.61

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.
@@ -7,7 +7,10 @@ exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  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); }
9
9
  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 && Object.prototype.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; }
10
- const useIsMobile = () => {
10
+ const useIsMobile = _ref => {
11
+ let {
12
+ isWithoutWidthCheck = false
13
+ } = _ref;
11
14
  const getIsMobile = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
12
15
  const [isMobile, setIsMobile] = (0, _react.useState)(getIsMobile());
13
16
 
@@ -17,7 +20,7 @@ const useIsMobile = () => {
17
20
  }, [navigator.userAgent]);
18
21
  return {
19
22
  ...navigator,
20
- isMobile: isMobile && window.screen.width < 768
23
+ isMobile: isMobile && (isWithoutWidthCheck || window.screen.width < 768)
21
24
  };
22
25
  };
23
26
  var _default = exports.default = useIsMobile;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.3.60",
3
+ "version": "1.3.61",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [