Socket
Socket
Sign inDemoInstall

@quid/react-mouse-outside

Package Overview
Dependencies
6
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.11.6

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## 4.11.6 (2024-01-03)
**Note:** Version bump only for package @quid/react-mouse-outside
# [4.0.0](https://github.com/quid/refraction/tree/master/packages/react-mouse-outside/compare/v3.3.5...v4.0.0) (2019-10-01)

@@ -8,0 +16,0 @@

2

dist/index.es.js

@@ -1,2 +0,2 @@

import{createRef as t,Component as e}from"react";var n=function(t,e){return e>0?function(t,e,n){return void 0===e&&(e=250),function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return clearTimeout(n,n=setTimeout.apply(void 0,[t,e].concat(o)))}}(t,e):t},r=function(e){var r,o;function i(){for(var r,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return(r=e.call.apply(e,[this].concat(i))||this).container=t(),r.areTargetsOutside=function(t){var e=[r.container].concat(r.props.refs);return!(!function(t){return t instanceof HTMLElement||t instanceof HTMLDocument}(t)||!document.contains(t))&&function(t){return t.filter((function(t){return t.current&&t.current instanceof HTMLElement}))}(e).every((function(e){return function(t,e){return!1===t.current.contains(e)}(e,t)}))},r.handleClickOutside=function(t){r.props.onClickOutside&&r.areTargetsOutside(t.target)&&r.props.onClickOutside(t)},r.handleMoveOutside=n((function(t){r.props.onMoveOutside&&r.areTargetsOutside(t.target)&&r.props.onMoveOutside(t)}),r.props.delay),r}o=e,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var u=i.prototype;return u.componentDidMount=function(){this.props.onClickOutside&&document.addEventListener("click",this.handleClickOutside,!0),this.props.onMoveOutside&&document.addEventListener("mousemove",this.handleMoveOutside,!0)},u.componentWillUnmount=function(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("mousemove",this.handleMoveOutside,!0)},u.render=function(){return this.props.children(this.container)},i}(e);r.defaultProps={delay:0,refs:[]};export default r;
import{createRef as t,Component as e}from"react";function n(t,e){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var r=function(t,e){return e>0?function(t,e,n){return void 0===e&&(e=250),function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return clearTimeout(n,n=setTimeout.apply(void 0,[t,e].concat(o)))}}(t,e):t},o=function(e){var o,i;function u(){for(var n,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return(n=e.call.apply(e,[this].concat(i))||this).container=t(),n.areTargetsOutside=function(t){var e=[n.container].concat(n.props.refs);return!(!function(t){return t instanceof HTMLElement||t instanceof HTMLDocument}(t)||!document.contains(t))&&function(t){return t.filter((function(t){return t.current&&t.current instanceof HTMLElement}))}(e).every((function(e){return function(t,e){return!1===t.current.contains(e)}(e,t)}))},n.handleClickOutside=function(t){n.props.onClickOutside&&n.areTargetsOutside(t.target)&&n.props.onClickOutside(t)},n.handleMoveOutside=r((function(t){n.props.onMoveOutside&&n.areTargetsOutside(t.target)&&n.props.onMoveOutside(t)}),n.props.delay),n}i=e,(o=u).prototype=Object.create(i.prototype),o.prototype.constructor=o,n(o,i);var c=u.prototype;return c.componentDidMount=function(){this.props.onClickOutside&&document.addEventListener("click",this.handleClickOutside,!0),this.props.onMoveOutside&&document.addEventListener("mousemove",this.handleMoveOutside,!0)},c.componentWillUnmount=function(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("mousemove",this.handleMoveOutside,!0)},c.render=function(){return this.props.children(this.container)},u}(e);o.defaultProps={delay:0,refs:[]};export default o;
//# sourceMappingURL=index.es.js.map

@@ -1,2 +0,2 @@

var e=require("react"),t=function(e,t){return t>0?function(e,t,n){return void 0===t&&(t=250),function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return clearTimeout(n,n=setTimeout.apply(void 0,[e,t].concat(o)))}}(e,t):e},n=function(n){var r,o;function i(){for(var r,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return(r=n.call.apply(n,[this].concat(i))||this).container=e.createRef(),r.areTargetsOutside=function(e){var t=[r.container].concat(r.props.refs);return!(!function(e){return e instanceof HTMLElement||e instanceof HTMLDocument}(e)||!document.contains(e))&&function(e){return e.filter((function(e){return e.current&&e.current instanceof HTMLElement}))}(t).every((function(t){return function(e,t){return!1===e.current.contains(t)}(t,e)}))},r.handleClickOutside=function(e){r.props.onClickOutside&&r.areTargetsOutside(e.target)&&r.props.onClickOutside(e)},r.handleMoveOutside=t((function(e){r.props.onMoveOutside&&r.areTargetsOutside(e.target)&&r.props.onMoveOutside(e)}),r.props.delay),r}o=n,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var u=i.prototype;return u.componentDidMount=function(){this.props.onClickOutside&&document.addEventListener("click",this.handleClickOutside,!0),this.props.onMoveOutside&&document.addEventListener("mousemove",this.handleMoveOutside,!0)},u.componentWillUnmount=function(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("mousemove",this.handleMoveOutside,!0)},u.render=function(){return this.props.children(this.container)},i}(e.Component);n.defaultProps={delay:0,refs:[]},module.exports=n;
var e=require("react");function t(e,n){return(t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,n)}var n=function(e,t){return t>0?function(e,t,n){return void 0===t&&(t=250),function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return clearTimeout(n,n=setTimeout.apply(void 0,[e,t].concat(o)))}}(e,t):e},r=function(r){var o,i;function u(){for(var t,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return(t=r.call.apply(r,[this].concat(i))||this).container=e.createRef(),t.areTargetsOutside=function(e){var n=[t.container].concat(t.props.refs);return!(!function(e){return e instanceof HTMLElement||e instanceof HTMLDocument}(e)||!document.contains(e))&&function(e){return e.filter((function(e){return e.current&&e.current instanceof HTMLElement}))}(n).every((function(t){return function(e,t){return!1===e.current.contains(t)}(t,e)}))},t.handleClickOutside=function(e){t.props.onClickOutside&&t.areTargetsOutside(e.target)&&t.props.onClickOutside(e)},t.handleMoveOutside=n((function(e){t.props.onMoveOutside&&t.areTargetsOutside(e.target)&&t.props.onMoveOutside(e)}),t.props.delay),t}i=r,(o=u).prototype=Object.create(i.prototype),o.prototype.constructor=o,t(o,i);var c=u.prototype;return c.componentDidMount=function(){this.props.onClickOutside&&document.addEventListener("click",this.handleClickOutside,!0),this.props.onMoveOutside&&document.addEventListener("mousemove",this.handleMoveOutside,!0)},c.componentWillUnmount=function(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("mousemove",this.handleMoveOutside,!0)},c.render=function(){return this.props.children(this.container)},u}(e.Component);r.defaultProps={delay:0,refs:[]},module.exports=r;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import{createRef as t,Component as e}from"react";var n=function(t,e){return e>0?function(t,e,n){return void 0===e&&(e=250),function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return clearTimeout(n,n=setTimeout.apply(void 0,[t,e].concat(o)))}}(t,e):t},r=function(e){var r,o;function i(){for(var r,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return(r=e.call.apply(e,[this].concat(i))||this).container=t(),r.areTargetsOutside=function(t){var e=[r.container].concat(r.props.refs);return!(!function(t){return t instanceof HTMLElement||t instanceof HTMLDocument}(t)||!document.contains(t))&&function(t){return t.filter((function(t){return t.current&&t.current instanceof HTMLElement}))}(e).every((function(e){return function(t,e){return!1===t.current.contains(e)}(e,t)}))},r.handleClickOutside=function(t){r.props.onClickOutside&&r.areTargetsOutside(t.target)&&r.props.onClickOutside(t)},r.handleMoveOutside=n((function(t){r.props.onMoveOutside&&r.areTargetsOutside(t.target)&&r.props.onMoveOutside(t)}),r.props.delay),r}o=e,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var u=i.prototype;return u.componentDidMount=function(){this.props.onClickOutside&&document.addEventListener("click",this.handleClickOutside,!0),this.props.onMoveOutside&&document.addEventListener("mousemove",this.handleMoveOutside,!0)},u.componentWillUnmount=function(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("mousemove",this.handleMoveOutside,!0)},u.render=function(){return this.props.children(this.container)},i}(e);r.defaultProps={delay:0,refs:[]};export default r;
import{createRef as t,Component as e}from"react";function n(t,e){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var r=function(t,e){return e>0?function(t,e,n){return void 0===e&&(e=250),function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return clearTimeout(n,n=setTimeout.apply(void 0,[t,e].concat(o)))}}(t,e):t},o=function(e){var o,i;function u(){for(var n,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return(n=e.call.apply(e,[this].concat(i))||this).container=t(),n.areTargetsOutside=function(t){var e=[n.container].concat(n.props.refs);return!(!function(t){return t instanceof HTMLElement||t instanceof HTMLDocument}(t)||!document.contains(t))&&function(t){return t.filter((function(t){return t.current&&t.current instanceof HTMLElement}))}(e).every((function(e){return function(t,e){return!1===t.current.contains(e)}(e,t)}))},n.handleClickOutside=function(t){n.props.onClickOutside&&n.areTargetsOutside(t.target)&&n.props.onClickOutside(t)},n.handleMoveOutside=r((function(t){n.props.onMoveOutside&&n.areTargetsOutside(t.target)&&n.props.onMoveOutside(t)}),n.props.delay),n}i=e,(o=u).prototype=Object.create(i.prototype),o.prototype.constructor=o,n(o,i);var c=u.prototype;return c.componentDidMount=function(){this.props.onClickOutside&&document.addEventListener("click",this.handleClickOutside,!0),this.props.onMoveOutside&&document.addEventListener("mousemove",this.handleMoveOutside,!0)},c.componentWillUnmount=function(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("mousemove",this.handleMoveOutside,!0)},c.render=function(){return this.props.children(this.container)},u}(e);o.defaultProps={delay:0,refs:[]};export default o;
//# sourceMappingURL=index.modern.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).reactMouseOutside=t(e.react)}(this,(function(e){var t=function(e,t){return t>0?function(e,t,n){return void 0===t&&(t=250),function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return clearTimeout(n,n=setTimeout.apply(void 0,[e,t].concat(r)))}}(e,t):e},n=function(n){var o,r;function i(){for(var o,r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return(o=n.call.apply(n,[this].concat(i))||this).container=e.createRef(),o.areTargetsOutside=function(e){var t=[o.container].concat(o.props.refs);return!(!function(e){return e instanceof HTMLElement||e instanceof HTMLDocument}(e)||!document.contains(e))&&function(e){return e.filter((function(e){return e.current&&e.current instanceof HTMLElement}))}(t).every((function(t){return function(e,t){return!1===e.current.contains(t)}(t,e)}))},o.handleClickOutside=function(e){o.props.onClickOutside&&o.areTargetsOutside(e.target)&&o.props.onClickOutside(e)},o.handleMoveOutside=t((function(e){o.props.onMoveOutside&&o.areTargetsOutside(e.target)&&o.props.onMoveOutside(e)}),o.props.delay),o}r=n,(o=i).prototype=Object.create(r.prototype),o.prototype.constructor=o,o.__proto__=r;var u=i.prototype;return u.componentDidMount=function(){this.props.onClickOutside&&document.addEventListener("click",this.handleClickOutside,!0),this.props.onMoveOutside&&document.addEventListener("mousemove",this.handleMoveOutside,!0)},u.componentWillUnmount=function(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("mousemove",this.handleMoveOutside,!0)},u.render=function(){return this.props.children(this.container)},i}(e.Component);return n.defaultProps={delay:0,refs:[]},n}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).reactMouseOutside=t(e.react)}(this,(function(e){function t(e,n){return(t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,n)}var n=function(e,t){return t>0?function(e,t,n){return void 0===t&&(t=250),function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return clearTimeout(n,n=setTimeout.apply(void 0,[e,t].concat(r)))}}(e,t):e},o=function(o){var r,i;function u(){for(var t,r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return(t=o.call.apply(o,[this].concat(i))||this).container=e.createRef(),t.areTargetsOutside=function(e){var n=[t.container].concat(t.props.refs);return!(!function(e){return e instanceof HTMLElement||e instanceof HTMLDocument}(e)||!document.contains(e))&&function(e){return e.filter((function(e){return e.current&&e.current instanceof HTMLElement}))}(n).every((function(t){return function(e,t){return!1===e.current.contains(t)}(t,e)}))},t.handleClickOutside=function(e){t.props.onClickOutside&&t.areTargetsOutside(e.target)&&t.props.onClickOutside(e)},t.handleMoveOutside=n((function(e){t.props.onMoveOutside&&t.areTargetsOutside(e.target)&&t.props.onMoveOutside(e)}),t.props.delay),t}i=o,(r=u).prototype=Object.create(i.prototype),r.prototype.constructor=r,t(r,i);var c=u.prototype;return c.componentDidMount=function(){this.props.onClickOutside&&document.addEventListener("click",this.handleClickOutside,!0),this.props.onMoveOutside&&document.addEventListener("mousemove",this.handleMoveOutside,!0)},c.componentWillUnmount=function(){document.removeEventListener("click",this.handleClickOutside,!0),document.removeEventListener("mousemove",this.handleMoveOutside,!0)},c.render=function(){return this.props.children(this.container)},u}(e.Component);return o.defaultProps={delay:0,refs:[]},o}));
//# sourceMappingURL=index.umd.js.map
{
"name": "@quid/react-mouse-outside",
"version": "4.0.0",
"version": "4.11.6",
"description": "Detect clicks and other mouse events outside of a React element",

@@ -29,3 +29,3 @@ "main": "dist/index.js",

},
"gitHead": "c65f8cc58c2c57ecc99b939dc9f560d6f9b342cd"
"gitHead": "333cbff502d16a61cd50810bce002f4133bd54bf"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc