react-hotkeys-hook
Advanced tools
Comparing version 4.0.0-7 to 4.0.0
@@ -5,6 +5,6 @@ import { Hotkey } from './types'; | ||
hotkeys: ReadonlyArray<Hotkey>; | ||
activeScopes: string[]; | ||
enabledScopes: string[]; | ||
toggleScope: (scope: string) => void; | ||
activateScope: (scope: string) => void; | ||
deactivateScope: (scope: string) => void; | ||
enableScope: (scope: string) => void; | ||
disableScope: (scope: string) => void; | ||
}; | ||
@@ -11,0 +11,0 @@ export declare const useHotkeysContext: () => HotkeysContextType; |
{ | ||
"name": "react-hotkeys-hook", | ||
"version": "4.0.0-7", | ||
"version": "4.0.0", | ||
"repository": "https://JohannesKlauss@github.com/JohannesKlauss/react-keymap-hook.git", | ||
@@ -5,0 +5,0 @@ "homepage": "https://johannesklauss.github.io/react-hotkeys-hook/", |
@@ -13,3 +13,3 @@ <hr> | ||
<a aria-label="Types" href="https://www.npmjs.com/package/react-hotkeys-hook"> | ||
<img alt="Types" src="https://img.shields.io/npm/types/react-use-system-color-mode?style=for-the-badge&labelColor=24292e"> | ||
<img alt="Types" src="https://img.shields.io/npm/types/react-hotkeys-hook?style=for-the-badge&labelColor=24292e"> | ||
</a> | ||
@@ -47,3 +47,3 @@ <a aria-label="NPM version" href="https://www.npmjs.com/package/react-hotkeys-hook"> | ||
const [count, setCount] = useState(0) | ||
useHotkeys('ctrl+k', () => setCount(prevCount => prevCount + 1)) | ||
useHotkeys('ctrl+k', () => setCount(count + 1), [count]) | ||
@@ -217,13 +217,8 @@ return ( | ||
Project Link: [https://github.com/JohannesKlauss/react-hotkeys-hook](https://github.com/JohannesKlauss/react-use-system-color-mode) | ||
Project Link: [https://github.com/JohannesKlauss/react-hotkeys-hook](https://github.com/JohannesKlauss/react-hotkeys-hook) | ||
## Contributors | ||
* [bernatmv](https://github.com/bernatmv) | ||
* [wheeler](https://github.com/wheeler) | ||
* [louisrli](https://github.com/louisrli) | ||
* [jameschao](https://github.com/jameschao) | ||
* [hmafzal](https://github.com/hmafzal) | ||
* [godspeedelbow](https://github.com/godspeedelbow) | ||
* [JoshuaKGoldberg](https://github.com/JoshuaKGoldberg) | ||
* [ggascoigne](https://github.com/ggascoigne) | ||
<a href="https://github.com/johannesklauss/react-hotkeys-hook/graphs/contributors"> | ||
<img src="https://contrib.rocks/image?repo=johannesklauss/react-hotkeys-hook" /> | ||
</a> |
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
910394
222