Skip to content
Permalink
Browse files

useDrag

  • Loading branch information
antonioru committed Jan 13, 2020
1 parent 9579f0b commit ac5a719330555c39a5d6a95459e49a7deab28499
Showing with 989 additions and 342 deletions.
  1. +14 −2 CHANGELOG.md
  2. +1 −1 README.md
  3. +2 −0 dist-ghpages/build/bundle.15e5c000.js
  4. 0 dist-ghpages/build/{bundle.42e0c3b1.js.LICENSE → bundle.15e5c000.js.LICENSE}
  5. +0 −2 dist-ghpages/build/bundle.42e0c3b1.js
  6. +2 −2 dist-ghpages/index.html
  7. +16 −8 dist/index.js
  8. +1 −1 dist/index.js.map
  9. +0 −26 dist/useCallbackRef.js
  10. +0 −1 dist/useCallbackRef.js.map
  11. +5 −5 dist/useDidMount.js
  12. +1 −1 dist/useDidMount.js.map
  13. +74 −0 dist/useDrag.js
  14. +1 −0 dist/useDrag.js.map
  15. +120 −0 dist/useDragEvents.js
  16. +1 −0 dist/useDragEvents.js.map
  17. +13 −13 dist/useGeolocationEvents.js
  18. +1 −1 dist/useGeolocationEvents.js.map
  19. +9 −7 dist/useGlobalEvent.js
  20. +1 −1 dist/useGlobalEvent.js.map
  21. +37 −37 dist/useMouseEvents.js
  22. +1 −1 dist/useMouseEvents.js.map
  23. +5 −5 dist/useWillUnmount.js
  24. +1 −1 dist/useWillUnmount.js.map
  25. +25 −0 dist/utils/createHandlerSetter.js
  26. +1 −0 dist/utils/createHandlerSetter.js.map
  27. +2 −1 docs/styleguidist/styleguidist.config.js
  28. +0 −47 docs/useCallbackRef.md
  29. +1 −1 docs/useDebouncedFn.md
  30. +4 −4 docs/useDidMount.md
  31. +89 −0 docs/useDrag.md
  32. +133 −0 docs/useDragEvents.md
  33. +2 −2 docs/useGeolocation.md
  34. +4 −4 docs/useGeolocationEvents.md
  35. +1 −1 docs/useGeolocationState.md
  36. +6 −6 docs/useGlobalEvent.md
  37. +1 −1 docs/useInterval.md
  38. +4 −4 docs/useLifecycle.md
  39. +1 −1 docs/useMediaQuery.md
  40. +4 −4 docs/useMouse.md
  41. +6 −7 docs/useMouseEvents.md
  42. +1 −1 docs/useMouseState.md
  43. +1 −1 docs/useThrottledFn.md
  44. +1 −1 docs/useTimeout.md
  45. +2 −2 docs/useViewportSpy.md
  46. +4 −4 docs/useWillUnmount.md
  47. +4 −4 docs/useWindowResize.md
  48. +4 −4 docs/useWindowScroll.md
  49. +43 −21 index.d.ts
  50. +1 −1 package.json
  51. +2 −1 src/index.js
  52. +0 −28 src/useCallbackRef.js
  53. +0 −52 src/useCallbackRef.spec.js
  54. +2 −2 src/useDidMount.js
  55. +37 −0 src/useDrag.js
  56. +18 −0 src/useDrag.spec.js
  57. +74 −0 src/useDragEvents.js
  58. +97 −0 src/useDragEvents.spec.js
  59. +7 −7 src/useGeolocationEvents.js
  60. +7 −3 src/useGlobalEvent.js
  61. +10 −10 src/useMouseEvents.js
  62. +2 −2 src/useWillUnmount.js
  63. +30 −0 src/utils/createHandlerSetter.js
  64. +52 −0 src/utils/createHandlerSetter.spec.js
@@ -271,14 +271,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- useViewportSpy hook & tests
- Improved documentation

## [0.17.1] - 2020-01-10
## [0.17.1] - 2020-01-10

### Fixed

- types reference into package.json

## [0.17.2] - 2020-01-12
## [0.17.2] - 2020-01-12

### Fixed

- Fixed license in package.json

## [0.18.0] - 2020-01-13

### Added

- useDragEvents hook & tests
- useDrag hook

### Fixed

- event handlers uses the right parameters and avoid using (...args)
- `useCallbackRef` has been reverted to an internal utility
@@ -79,9 +79,9 @@ $ yarn add beautiful-react-hooks
* [useOnlineState](docs/useOnlineState.md)
* [useViewportSpy](docs/useViewportSpy.md)
* [useGeolocation](docs/useGeolocation.md), [useGeolocationState](docs/useGeolocationState.md) and [useGeolocationEvents](docs/useGeolocationEvents.md)
* [useDrag](docs/useDrag.md), [useDragEvents](docs/useDragEvents.md)
* [useMouse](docs/useMouse.md), [useMouseState](docs/useMouseState.md) and [useMouseEvents](docs/useMouseEvents.md)
* [useLifecycle](docs/useLifecycle.md), [useDidMount](docs/useDidMount.md) and [useWillUnmount](docs/useWillUnmount.md)
* [useCallbackRef](docs/useCallbackRef.md)
* [useWindowResize](docs/useWindowResize.md)
* [useWindowScroll](docs/useWindowScroll.md)
* [useTimeout](docs/useTimeout.md)

Large diffs are not rendered by default.

This file was deleted.

@@ -4,11 +4,11 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>beautiful react hooks docs</title>
<title>Beautiful React Hooks docs</title>
<link rel="icon" type="image/x-icon" href="https://beautifulinteractions.com/favicons/bi-favicon.ico">
</head>
<body>
<div id="rsg-root"></div>
<script src="build/bundle.42e0c3b1.js"></script>
<script src="build/bundle.15e5c000.js"></script>
</body>
</html>

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

0 comments on commit ac5a719

Please sign in to comment.
You can’t perform that action at this time.