Skip to content
Permalink
Browse files

Merge pull request #47 from beautifulinteractions/feature/useDrag

useDrag
  • Loading branch information
antonioru committed Jan 13, 2020
2 parents b259d10 + ac5a719 commit 735884127cc431b4d87208361498411f9ea119fd
Showing with 886 additions and 1,622 deletions.
  1. +1 βˆ’2 .eslintrc
  2. +3 βˆ’0 .gitignore
  3. +5 βˆ’0 .huskyrc
  4. +1 βˆ’0 .travis.yml
  5. +20 βˆ’2 CHANGELOG.md
  6. +1 βˆ’1 README.md
  7. +0 βˆ’2 dist-ghpages/build/bundle.42e0c3b1.js
  8. +0 βˆ’63 dist-ghpages/build/bundle.42e0c3b1.js.LICENSE
  9. +0 βˆ’14 dist-ghpages/index.html
  10. +0 βˆ’184 dist/index.js
  11. +0 βˆ’1 dist/index.js.map
  12. +0 βˆ’26 dist/useCallbackRef.js
  13. +0 βˆ’1 dist/useCallbackRef.js.map
  14. +0 βˆ’29 dist/useDebouncedFn.js
  15. +0 βˆ’1 dist/useDebouncedFn.js.map
  16. +0 βˆ’38 dist/useDidMount.js
  17. +0 βˆ’1 dist/useDidMount.js.map
  18. +0 βˆ’25 dist/useGeolocation.js
  19. +0 βˆ’1 dist/useGeolocation.js.map
  20. +0 βˆ’73 dist/useGeolocationEvents.js
  21. +0 βˆ’1 dist/useGeolocationEvents.js.map
  22. +0 βˆ’67 dist/useGeolocationState.js
  23. +0 βˆ’1 dist/useGeolocationState.js.map
  24. +0 βˆ’65 dist/useGlobalEvent.js
  25. +0 βˆ’1 dist/useGlobalEvent.js.map
  26. +0 βˆ’71 dist/useInterval.js
  27. +0 βˆ’1 dist/useInterval.js.map
  28. +0 βˆ’25 dist/useLifecycle.js
  29. +0 βˆ’1 dist/useLifecycle.js.map
  30. +0 βˆ’48 dist/useMediaQuery.js
  31. +0 βˆ’1 dist/useMediaQuery.js.map
  32. +0 βˆ’23 dist/useMouse.js
  33. +0 βˆ’1 dist/useMouse.js.map
  34. +0 βˆ’118 dist/useMouseEvents.js
  35. +0 βˆ’1 dist/useMouseEvents.js.map
  36. +0 βˆ’56 dist/useMouseState.js
  37. +0 βˆ’1 dist/useMouseState.js.map
  38. +0 βˆ’45 dist/useOnlineState.js
  39. +0 βˆ’1 dist/useOnlineState.js.map
  40. +0 βˆ’23 dist/usePreviousValue.js
  41. +0 βˆ’1 dist/usePreviousValue.js.map
  42. +0 βˆ’29 dist/useThrottledFn.js
  43. +0 βˆ’1 dist/useThrottledFn.js.map
  44. +0 βˆ’71 dist/useTimeout.js
  45. +0 βˆ’1 dist/useTimeout.js.map
  46. +0 βˆ’20 dist/useValueHistory.js
  47. +0 βˆ’1 dist/useValueHistory.js.map
  48. +0 βˆ’49 dist/useViewportSpy.js
  49. +0 βˆ’1 dist/useViewportSpy.js.map
  50. +0 βˆ’40 dist/useWillUnmount.js
  51. +0 βˆ’1 dist/useWillUnmount.js.map
  52. +0 βˆ’18 dist/useWindowResize.js
  53. +0 βˆ’1 dist/useWindowResize.js.map
  54. +0 βˆ’18 dist/useWindowScroll.js
  55. +0 βˆ’1 dist/useWindowScroll.js.map
  56. +0 βˆ’26 dist/utils/createCbSetterErrorProxy.js
  57. +0 βˆ’1 dist/utils/createCbSetterErrorProxy.js.map
  58. +0 βˆ’15 dist/utils/geolocationStandardOptions.js
  59. +0 βˆ’1 dist/utils/geolocationStandardOptions.js.map
  60. +0 βˆ’14 dist/utils/hasOwnProperty.js
  61. +0 βˆ’1 dist/utils/hasOwnProperty.js.map
  62. +0 βˆ’16 dist/utils/isSamePosition.js
  63. +0 βˆ’1 dist/utils/isSamePosition.js.map
  64. +0 βˆ’25 dist/utils/makePositionObject.js
  65. +0 βˆ’1 dist/utils/makePositionObject.js.map
  66. +2 βˆ’1 docs/styleguidist/styleguidist.config.js
  67. +0 βˆ’47 docs/useCallbackRef.md
  68. +1 βˆ’1 docs/useDebouncedFn.md
  69. +4 βˆ’4 docs/useDidMount.md
  70. +89 βˆ’0 docs/useDrag.md
  71. +133 βˆ’0 docs/useDragEvents.md
  72. +2 βˆ’2 docs/useGeolocation.md
  73. +4 βˆ’4 docs/useGeolocationEvents.md
  74. +1 βˆ’1 docs/useGeolocationState.md
  75. +6 βˆ’6 docs/useGlobalEvent.md
  76. +1 βˆ’1 docs/useInterval.md
  77. +4 βˆ’4 docs/useLifecycle.md
  78. +1 βˆ’1 docs/useMediaQuery.md
  79. +4 βˆ’4 docs/useMouse.md
  80. +6 βˆ’7 docs/useMouseEvents.md
  81. +1 βˆ’1 docs/useMouseState.md
  82. +1 βˆ’1 docs/useThrottledFn.md
  83. +1 βˆ’1 docs/useTimeout.md
  84. +2 βˆ’2 docs/useViewportSpy.md
  85. +4 βˆ’4 docs/useWillUnmount.md
  86. +4 βˆ’4 docs/useWindowResize.md
  87. +4 βˆ’4 docs/useWindowScroll.md
  88. +43 βˆ’21 index.d.ts
  89. +193 βˆ’24 package-lock.json
  90. +6 βˆ’3 package.json
  91. +2 βˆ’1 src/index.js
  92. +0 βˆ’28 src/useCallbackRef.js
  93. +0 βˆ’52 src/useCallbackRef.spec.js
  94. +2 βˆ’2 src/useDidMount.js
  95. +37 βˆ’0 src/useDrag.js
  96. +18 βˆ’0 src/useDrag.spec.js
  97. +74 βˆ’0 src/useDragEvents.js
  98. +97 βˆ’0 src/useDragEvents.spec.js
  99. +7 βˆ’7 src/useGeolocationEvents.js
  100. +7 βˆ’3 src/useGlobalEvent.js
  101. +10 βˆ’10 src/useMouseEvents.js
  102. +2 βˆ’2 src/useWillUnmount.js
  103. +30 βˆ’0 src/utils/createHandlerSetter.js
  104. +52 βˆ’0 src/utils/createHandlerSetter.spec.js
@@ -9,8 +9,7 @@
"rules": {
"max-len": ["error", { "code": 120 }],
"object-curly-newline": "off",
"react/jsx-filename-extension": [1, { "extensions": [ ".js", ".jsx" ] } ],
"import/no-extraneous-dependencies": "off",
"react/jsx-filename-extension": [1, { "extensions": [ ".js", ".jsx" ] } ]
},
"overrides": [
{
@@ -227,3 +227,6 @@ bh_unicode_properties.cache
GitHub.sublime-settings

.idea/

dist/
dist-ghpages/
@@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "npm run lint"
}
}
@@ -5,6 +5,7 @@ node_js:

install:
- npm ci
- npm install react react-dom --no-save

script:
- npm run lint
@@ -271,14 +271,32 @@ 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

## [0.18.1] - 2020-01-14

### Fixed

- Build removed from the source package
@@ -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)

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 7358841

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