Socket
Socket
Sign inDemoInstall

react-outer-click

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-outer-click - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

lib/index.cjs.js

33

package.json
{
"name": "react-outer-click",
"version": "2.2.0",
"version": "3.0.0",
"description": "React component and hook which detect mouse clicks outside of itself.",
"main": "lib/index.js",
"main": "lib/index.cjs.js",
"module": "lib/index.esm.js",
"files": [

@@ -39,16 +40,16 @@ "lib"

"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.13.0",
"eslint-plugin-react-hooks": "^1.6.0",
"husky": "^2.3.0",
"lint-staged": "^8.1.7",
"prettier": "^1.17.1",
"rollup": "^1.13.1",
"rollup-plugin-babel": "^4.3.2"
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^3.0.0",
"husky": "^4.2.5",
"lint-staged": "^10.1.7",
"prettier": "^2.0.5",
"rollup": "^2.7.2",
"rollup-plugin-babel": "^4.4.0"
},

@@ -55,0 +56,0 @@ "husky": {

@@ -63,6 +63,16 @@ # react-outer-click

:warning: The `OuterClick` component will wrap your children with a `<div>` element, and any additional props will be passed down.
> :warning: Previous versions of react-outer-click allowed `OuterClick` to be imported as default export. This is no longer supported and has been removed.
:information_source: The `OuterClick` component will wrap your children with a `<div>` element, and any additional props will be passed down. You can change the element rendered with the `as` prop:
```jsx
...
<OuterClick as="span" onOuterClick={...}>
Example
</OuterClick>
...
```
## Requirements
Requires a minimum of React version 16.8.0. If you're on an older version of React, then checkout [v1](https://github.com/jacobbuck/react-outer-click/tree/v1).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc