@charlietango/use-interaction
Advanced tools
+8
-0
@@ -6,2 +6,10 @@ # Change Log | ||
| ## [1.7.6](https://github.com/charlie-tango/hooks/compare/@charlietango/use-interaction@1.7.5...@charlietango/use-interaction@1.7.6) (2020-09-23) | ||
| ### Reverts | ||
| - Revert "ci: add semantic release" (#96) ([c2e703b](https://github.com/charlie-tango/hooks/commit/c2e703be2b83847fef7c6dfa50b912e26e0b9676)), closes [#96](https://github.com/charlie-tango/hooks/issues/96) | ||
| # 1.0.0 (2020-09-23) | ||
| ## [1.7.5](https://github.com/charlie-tango/hooks/compare/@charlietango/use-interaction@1.7.4...@charlietango/use-interaction@1.7.5) (2020-06-09) | ||
@@ -8,0 +16,0 @@ |
@@ -13,3 +13,6 @@ declare type InteractionState = { | ||
| }; | ||
| declare function useInteraction(): [(element: HTMLElement | null) => void, InteractionState]; | ||
| declare function useInteraction(): [ | ||
| (element: HTMLElement | null) => void, | ||
| InteractionState | ||
| ]; | ||
| export default useInteraction; |
+2
-2
| { | ||
| "name": "@charlietango/use-interaction", | ||
| "description": "Monitor the user interactions on an element", | ||
| "version": "1.7.5", | ||
| "version": "1.7.6", | ||
| "private": false, | ||
@@ -41,3 +41,3 @@ "sideEffects": false, | ||
| }, | ||
| "gitHead": "f4be428c4de8f7072a4b62f2f4741c92cf48c4c8" | ||
| "gitHead": "3e88a3611f0bfe25e7dc2625dc57b48c0b659f3e" | ||
| } |
+1
-1
@@ -37,3 +37,3 @@ # useInteraction | ||
| ```js | ||
| ```jsx | ||
| import React from 'react' | ||
@@ -40,0 +40,0 @@ import useInteraction from '@charlietango/use-interaction' |
11094
3.74%194
1.57%