react-outer-click
Advanced tools
Comparing version 2.2.0 to 3.0.0
{ | ||
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
11920
5
217
78
2
1