@os-design/use-click-outside
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -7,11 +7,6 @@ "use strict"; | ||
exports["default"] = void 0; | ||
var _react = require("react"); | ||
var _useEvent = _interopRequireDefault(require("@os-design/use-event")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
var useClickOutside = function useClickOutside(target, listener) { | ||
@@ -32,5 +27,4 @@ var listenerRef = (0, _react.useRef)(); | ||
}; | ||
var _default = useClickOutside; | ||
exports["default"] = _default; | ||
//# sourceMappingURL=index.js.map |
import { useCallback, useEffect, useRef } from 'react'; | ||
import useEvent from '@os-design/use-event'; | ||
const useClickOutside = (target, listener) => { | ||
@@ -19,4 +18,3 @@ const listenerRef = useRef(); | ||
}; | ||
export default useClickOutside; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@os-design/use-click-outside", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"license": "UNLICENSED", | ||
@@ -32,3 +32,3 @@ "repository": "git@gitlab.com:os-team/libs/os-design.git", | ||
"dependencies": { | ||
"@os-design/use-event": "^1.0.10" | ||
"@os-design/use-event": "^1.0.11" | ||
}, | ||
@@ -38,3 +38,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "174987fc6c9d55db201be10abde3a4cf5a790573" | ||
"gitHead": "8cb28f6719d699c014fbce91d832a9ff06abe515" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8419
Updated@os-design/use-event@^1.0.11