├── .eslintignore ├── .eslintrc.js ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md ├── tests_checker.yml └── workflows │ ├── branch-tests.yml │ └── ci.yml ├── .gitignore ├── .huskyrc ├── .mocharc.json ├── .npmrc ├── .nycrc ├── .releaserc.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── HOOK_DOCUMENTATION_TEMPLATE.md ├── LICENSE.txt ├── README.md ├── babel.config.js ├── docs ├── Installation.md ├── Introduction.md ├── README.es-ES.md ├── README.it-IT.md ├── README.jp-JP.md ├── README.pl-PL.md ├── README.pt-BR.md ├── README.tr-TR.md ├── README.uk-UA.md ├── README.zh-CN.md ├── useAudio.md ├── useConditionalTimeout.md ├── useCookie.md ├── useDarkMode.md ├── useDebouncedCallback.md ├── useDefaultedState.md ├── useDidMount.md ├── useDrag.md ├── useDragEvents.md ├── useDropZone.md ├── useEvent.md ├── useGeolocation.md ├── useGeolocationEvents.md ├── useGeolocationState.md ├── useGlobalEvent.md ├── useHorizontalSwipe.md ├── useInfiniteScroll.md ├── useInterval.md ├── useIsFirstRender.md ├── useLifecycle.md ├── useLocalStorage.md ├── useLongPress.md ├── useMediaQuery.md ├── useMouse.md ├── useMouseEvents.md ├── useMouseState.md ├── useMutableState.md ├── useMutationObserver.md ├── useObjectState.md ├── useObservable.md ├── useOnlineState.md ├── usePreviousValue.md ├── useQueryParam.md ├── useQueryParams.md ├── useRenderInfo.md ├── useRequestAnimationFrame.md ├── useResizeObserver.md ├── useSearchQuery.md ├── useSessionStorage.md ├── useSpeechRecognition.md ├── useSpeechSynthesis.md ├── useSwipe.md ├── useSwipeEvents.md ├── useSystemVoices.md ├── useThrottledCallback.md ├── useTimeout.md ├── useToggle.md ├── useTouch.md ├── useTouchEvents.md ├── useTouchState.md ├── useURLSearchParams.md ├── useUnmount.md ├── useUpdateEffect.md ├── useValidatedState.md ├── useValueHistory.md ├── useVerticalSwipe.md ├── useViewportSpy.md ├── useViewportState.md ├── useWillUnmount.md ├── useWindowResize.md ├── useWindowScroll.md └── utils │ ├── _CustomLogo.js │ ├── _EmptyComponent.js │ ├── _custom.css │ ├── _doc-logo.png │ ├── _setup.js │ └── _styleguidist.theme.js ├── logo.png ├── package.json ├── scripts ├── commit-version.sh ├── generate-doc-append-types.js ├── generate-exports.js └── update-version.js ├── src ├── factory │ ├── createHandlerSetter.ts │ └── createStorageHook.ts ├── shared │ ├── geolocationUtils.ts │ ├── isAPISupported.ts │ ├── isClient.ts │ ├── isDevelopment.ts │ ├── isFunction.ts │ ├── noop.ts │ ├── safeHasOwnProperty.ts │ ├── safelyParseJson.ts │ ├── swipeUtils.ts │ ├── types.ts │ └── warnOnce.ts ├── useAudio.ts ├── useConditionalTimeout.ts ├── useCookie.ts ├── useDarkMode.ts ├── useDebouncedCallback.ts ├── useDefaultedState.ts ├── useDidMount.ts ├── useDrag.ts ├── useDragEvents.ts ├── useDropZone.ts ├── useEvent.ts ├── useGeolocation.ts ├── useGeolocationEvents.ts ├── useGeolocationState.ts ├── useGlobalEvent.ts ├── useHorizontalSwipe.ts ├── useInfiniteScroll.ts ├── useInterval.ts ├── useIsFirstRender.ts ├── useLifecycle.ts ├── useLocalStorage.ts ├── useLongPress.ts ├── useMediaQuery.ts ├── useMouse.ts ├── useMouseEvents.ts ├── useMouseState.ts ├── useMutableState.ts ├── useMutationObserver.ts ├── useObjectState.ts ├── useObservable.ts ├── useOnlineState.ts ├── usePreviousValue.ts ├── useQueryParam.ts ├── useQueryParams.ts ├── useRenderInfo.ts ├── useRequestAnimationFrame.ts ├── useResizeObserver.ts ├── useSearchQuery.ts ├── useSessionStorage.ts ├── useSpeechRecognition.ts ├── useSpeechSynthesis.ts ├── useSwipe.ts ├── useSwipeEvents.ts ├── useSystemVoices.ts ├── useThrottledCallback.ts ├── useTimeout.ts ├── useToggle.ts ├── useTouch.ts ├── useTouchEvents.ts ├── useTouchState.ts ├── useURLSearchParams.ts ├── useUnmount.ts ├── useUpdateEffect.ts ├── useValidatedState.ts ├── useValueHistory.ts ├── useVerticalSwipe.ts ├── useViewportSpy.ts ├── useViewportState.ts ├── useWillUnmount.ts ├── useWindowResize.ts └── useWindowScroll.ts ├── styleguide.config.js ├── test ├── _setup.js ├── geolocationUtils.spec.js ├── isAPISupported.spec.js ├── isClient.spec.js ├── mocks │ ├── AudioApi.mock.js │ ├── CookieStoreApi.mock.js │ ├── GeoLocationApi.mock.js │ ├── IntersectionObserver.mock.js │ ├── MatchMediaQueryList.mock.js │ ├── ResizeObserver.mock.js │ ├── SpeechSynthesis.mock.js │ └── SpeechSynthesisUtterance.mock.js ├── safeHasOwnProperty.spec.js ├── useAudio.spec.js ├── useConditionalTimeout.spec.js ├── useCookie.spec.js ├── useDarkMode.spec.js ├── useDebouncedCallback.spec.js ├── useDefaultedState.spec.js ├── useDidMount.spec.js ├── useDrag.spec.js ├── useDragEvents.spec.js ├── useDropZone.spec.js ├── useEvent.spec.js ├── useGeolocation.spec.js ├── useGeolocationEvents.spec.js ├── useGeolocationState.spec.js ├── useGlobalEvent.spec.js ├── useHandlerSetter.spec.js ├── useInfiniteScroll.spec.js ├── useInterval.spec.js ├── useIsFirstRender.spec.js ├── useLifecycle.spec.js ├── useLocalStorage.spec.js ├── useLongPress.spec.js ├── useMediaQuery.spec.js ├── useMouse.spec.js ├── useMouseEvents.spec.js ├── useMouseState.spec.js ├── useMutableState.spec.js ├── useMutationObserver.spec.js ├── useObjectState.spec.js ├── useObservable.spec.js ├── useOnlineState.spec.js ├── usePreviousValue.spec.js ├── useQueryParam.spec.js ├── useQueryParams.spec.js ├── useRenderInfo.spec.js ├── useRequestAnimationFrame.spec.js ├── useResizeObserver.spec.js ├── useSearchQuery.spec.js ├── useSessionStorage.spec.js ├── useSpeechRecognition.spec.js ├── useSpeechSynthesis.spec.js ├── useStorage.spec.js ├── useSwipe.spec.js ├── useSwipeEvents.spec.js ├── useSystemVoices.spec.js ├── useThrottledCallback.spec.js ├── useTimeout.spec.js ├── useToggle.spec.js ├── useTouchEvents.spec.js ├── useTouchState.spec.js ├── useURLSearchParams.spec.js ├── useUnmount.spec.js ├── useUpdateEffect.spec.js ├── useValidatedState.spec.js ├── useValueHistory.spec.js ├── useViewportSpy.spec.js ├── useViewportState.spec.js ├── useWillUnmount.spec.js ├── useWindowResize.spec.js ├── useWindowScroll.spec.js ├── utils │ ├── ReactRouterWrapper.js │ ├── assertFunction.js │ ├── assertHook.js │ └── promiseDelay.js └── warnOnce.spec.js ├── tsconfig.cjs.json ├── tsconfig.esm.json ├── tsconfig.json ├── tsconfig.types.json └── usage_example.png /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/tests_checker.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.github/tests_checker.yml -------------------------------------------------------------------------------- /.github/workflows/branch-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.github/workflows/branch-tests.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.gitignore -------------------------------------------------------------------------------- /.huskyrc: -------------------------------------------------------------------------------- 1 | { 2 | "hooks": { 3 | "pre-commit": "npm run lint" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /.mocharc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.mocharc.json -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | save-exact=true -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.nycrc -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/.releaserc.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /HOOK_DOCUMENTATION_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/HOOK_DOCUMENTATION_TEMPLATE.md -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/babel.config.js -------------------------------------------------------------------------------- /docs/Installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/Installation.md -------------------------------------------------------------------------------- /docs/Introduction.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/Introduction.md -------------------------------------------------------------------------------- /docs/README.es-ES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/README.es-ES.md -------------------------------------------------------------------------------- /docs/README.it-IT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/README.it-IT.md -------------------------------------------------------------------------------- /docs/README.jp-JP.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/README.jp-JP.md -------------------------------------------------------------------------------- /docs/README.pl-PL.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/README.pl-PL.md -------------------------------------------------------------------------------- /docs/README.pt-BR.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/README.pt-BR.md -------------------------------------------------------------------------------- /docs/README.tr-TR.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/README.tr-TR.md -------------------------------------------------------------------------------- /docs/README.uk-UA.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/README.uk-UA.md -------------------------------------------------------------------------------- /docs/README.zh-CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/README.zh-CN.md -------------------------------------------------------------------------------- /docs/useAudio.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useAudio.md -------------------------------------------------------------------------------- /docs/useConditionalTimeout.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useConditionalTimeout.md -------------------------------------------------------------------------------- /docs/useCookie.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useCookie.md -------------------------------------------------------------------------------- /docs/useDarkMode.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useDarkMode.md -------------------------------------------------------------------------------- /docs/useDebouncedCallback.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useDebouncedCallback.md -------------------------------------------------------------------------------- /docs/useDefaultedState.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useDefaultedState.md -------------------------------------------------------------------------------- /docs/useDidMount.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useDidMount.md -------------------------------------------------------------------------------- /docs/useDrag.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useDrag.md -------------------------------------------------------------------------------- /docs/useDragEvents.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useDragEvents.md -------------------------------------------------------------------------------- /docs/useDropZone.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useDropZone.md -------------------------------------------------------------------------------- /docs/useEvent.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useEvent.md -------------------------------------------------------------------------------- /docs/useGeolocation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useGeolocation.md -------------------------------------------------------------------------------- /docs/useGeolocationEvents.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useGeolocationEvents.md -------------------------------------------------------------------------------- /docs/useGeolocationState.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useGeolocationState.md -------------------------------------------------------------------------------- /docs/useGlobalEvent.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useGlobalEvent.md -------------------------------------------------------------------------------- /docs/useHorizontalSwipe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useHorizontalSwipe.md -------------------------------------------------------------------------------- /docs/useInfiniteScroll.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useInfiniteScroll.md -------------------------------------------------------------------------------- /docs/useInterval.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useInterval.md -------------------------------------------------------------------------------- /docs/useIsFirstRender.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useIsFirstRender.md -------------------------------------------------------------------------------- /docs/useLifecycle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useLifecycle.md -------------------------------------------------------------------------------- /docs/useLocalStorage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useLocalStorage.md -------------------------------------------------------------------------------- /docs/useLongPress.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useLongPress.md -------------------------------------------------------------------------------- /docs/useMediaQuery.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useMediaQuery.md -------------------------------------------------------------------------------- /docs/useMouse.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useMouse.md -------------------------------------------------------------------------------- /docs/useMouseEvents.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useMouseEvents.md -------------------------------------------------------------------------------- /docs/useMouseState.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useMouseState.md -------------------------------------------------------------------------------- /docs/useMutableState.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useMutableState.md -------------------------------------------------------------------------------- /docs/useMutationObserver.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useMutationObserver.md -------------------------------------------------------------------------------- /docs/useObjectState.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useObjectState.md -------------------------------------------------------------------------------- /docs/useObservable.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useObservable.md -------------------------------------------------------------------------------- /docs/useOnlineState.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useOnlineState.md -------------------------------------------------------------------------------- /docs/usePreviousValue.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/usePreviousValue.md -------------------------------------------------------------------------------- /docs/useQueryParam.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useQueryParam.md -------------------------------------------------------------------------------- /docs/useQueryParams.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useQueryParams.md -------------------------------------------------------------------------------- /docs/useRenderInfo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useRenderInfo.md -------------------------------------------------------------------------------- /docs/useRequestAnimationFrame.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useRequestAnimationFrame.md -------------------------------------------------------------------------------- /docs/useResizeObserver.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useResizeObserver.md -------------------------------------------------------------------------------- /docs/useSearchQuery.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useSearchQuery.md -------------------------------------------------------------------------------- /docs/useSessionStorage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useSessionStorage.md -------------------------------------------------------------------------------- /docs/useSpeechRecognition.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useSpeechRecognition.md -------------------------------------------------------------------------------- /docs/useSpeechSynthesis.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useSpeechSynthesis.md -------------------------------------------------------------------------------- /docs/useSwipe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useSwipe.md -------------------------------------------------------------------------------- /docs/useSwipeEvents.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useSwipeEvents.md -------------------------------------------------------------------------------- /docs/useSystemVoices.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useSystemVoices.md -------------------------------------------------------------------------------- /docs/useThrottledCallback.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useThrottledCallback.md -------------------------------------------------------------------------------- /docs/useTimeout.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useTimeout.md -------------------------------------------------------------------------------- /docs/useToggle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useToggle.md -------------------------------------------------------------------------------- /docs/useTouch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useTouch.md -------------------------------------------------------------------------------- /docs/useTouchEvents.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useTouchEvents.md -------------------------------------------------------------------------------- /docs/useTouchState.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useTouchState.md -------------------------------------------------------------------------------- /docs/useURLSearchParams.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useURLSearchParams.md -------------------------------------------------------------------------------- /docs/useUnmount.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useUnmount.md -------------------------------------------------------------------------------- /docs/useUpdateEffect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useUpdateEffect.md -------------------------------------------------------------------------------- /docs/useValidatedState.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useValidatedState.md -------------------------------------------------------------------------------- /docs/useValueHistory.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useValueHistory.md -------------------------------------------------------------------------------- /docs/useVerticalSwipe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useVerticalSwipe.md -------------------------------------------------------------------------------- /docs/useViewportSpy.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useViewportSpy.md -------------------------------------------------------------------------------- /docs/useViewportState.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useViewportState.md -------------------------------------------------------------------------------- /docs/useWillUnmount.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useWillUnmount.md -------------------------------------------------------------------------------- /docs/useWindowResize.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useWindowResize.md -------------------------------------------------------------------------------- /docs/useWindowScroll.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/useWindowScroll.md -------------------------------------------------------------------------------- /docs/utils/_CustomLogo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/utils/_CustomLogo.js -------------------------------------------------------------------------------- /docs/utils/_EmptyComponent.js: -------------------------------------------------------------------------------- 1 | export default () => null; 2 | -------------------------------------------------------------------------------- /docs/utils/_custom.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/utils/_custom.css -------------------------------------------------------------------------------- /docs/utils/_doc-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/utils/_doc-logo.png -------------------------------------------------------------------------------- /docs/utils/_setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/utils/_setup.js -------------------------------------------------------------------------------- /docs/utils/_styleguidist.theme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/docs/utils/_styleguidist.theme.js -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/logo.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/package.json -------------------------------------------------------------------------------- /scripts/commit-version.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/scripts/commit-version.sh -------------------------------------------------------------------------------- /scripts/generate-doc-append-types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/scripts/generate-doc-append-types.js -------------------------------------------------------------------------------- /scripts/generate-exports.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/scripts/generate-exports.js -------------------------------------------------------------------------------- /scripts/update-version.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/scripts/update-version.js -------------------------------------------------------------------------------- /src/factory/createHandlerSetter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/factory/createHandlerSetter.ts -------------------------------------------------------------------------------- /src/factory/createStorageHook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/factory/createStorageHook.ts -------------------------------------------------------------------------------- /src/shared/geolocationUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/geolocationUtils.ts -------------------------------------------------------------------------------- /src/shared/isAPISupported.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/isAPISupported.ts -------------------------------------------------------------------------------- /src/shared/isClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/isClient.ts -------------------------------------------------------------------------------- /src/shared/isDevelopment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/isDevelopment.ts -------------------------------------------------------------------------------- /src/shared/isFunction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/isFunction.ts -------------------------------------------------------------------------------- /src/shared/noop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/noop.ts -------------------------------------------------------------------------------- /src/shared/safeHasOwnProperty.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/safeHasOwnProperty.ts -------------------------------------------------------------------------------- /src/shared/safelyParseJson.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/safelyParseJson.ts -------------------------------------------------------------------------------- /src/shared/swipeUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/swipeUtils.ts -------------------------------------------------------------------------------- /src/shared/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/types.ts -------------------------------------------------------------------------------- /src/shared/warnOnce.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/shared/warnOnce.ts -------------------------------------------------------------------------------- /src/useAudio.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useAudio.ts -------------------------------------------------------------------------------- /src/useConditionalTimeout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useConditionalTimeout.ts -------------------------------------------------------------------------------- /src/useCookie.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useCookie.ts -------------------------------------------------------------------------------- /src/useDarkMode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useDarkMode.ts -------------------------------------------------------------------------------- /src/useDebouncedCallback.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useDebouncedCallback.ts -------------------------------------------------------------------------------- /src/useDefaultedState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useDefaultedState.ts -------------------------------------------------------------------------------- /src/useDidMount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useDidMount.ts -------------------------------------------------------------------------------- /src/useDrag.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useDrag.ts -------------------------------------------------------------------------------- /src/useDragEvents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useDragEvents.ts -------------------------------------------------------------------------------- /src/useDropZone.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useDropZone.ts -------------------------------------------------------------------------------- /src/useEvent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useEvent.ts -------------------------------------------------------------------------------- /src/useGeolocation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useGeolocation.ts -------------------------------------------------------------------------------- /src/useGeolocationEvents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useGeolocationEvents.ts -------------------------------------------------------------------------------- /src/useGeolocationState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useGeolocationState.ts -------------------------------------------------------------------------------- /src/useGlobalEvent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useGlobalEvent.ts -------------------------------------------------------------------------------- /src/useHorizontalSwipe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useHorizontalSwipe.ts -------------------------------------------------------------------------------- /src/useInfiniteScroll.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useInfiniteScroll.ts -------------------------------------------------------------------------------- /src/useInterval.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useInterval.ts -------------------------------------------------------------------------------- /src/useIsFirstRender.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useIsFirstRender.ts -------------------------------------------------------------------------------- /src/useLifecycle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useLifecycle.ts -------------------------------------------------------------------------------- /src/useLocalStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useLocalStorage.ts -------------------------------------------------------------------------------- /src/useLongPress.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useLongPress.ts -------------------------------------------------------------------------------- /src/useMediaQuery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useMediaQuery.ts -------------------------------------------------------------------------------- /src/useMouse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useMouse.ts -------------------------------------------------------------------------------- /src/useMouseEvents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useMouseEvents.ts -------------------------------------------------------------------------------- /src/useMouseState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useMouseState.ts -------------------------------------------------------------------------------- /src/useMutableState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useMutableState.ts -------------------------------------------------------------------------------- /src/useMutationObserver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useMutationObserver.ts -------------------------------------------------------------------------------- /src/useObjectState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useObjectState.ts -------------------------------------------------------------------------------- /src/useObservable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useObservable.ts -------------------------------------------------------------------------------- /src/useOnlineState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useOnlineState.ts -------------------------------------------------------------------------------- /src/usePreviousValue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/usePreviousValue.ts -------------------------------------------------------------------------------- /src/useQueryParam.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useQueryParam.ts -------------------------------------------------------------------------------- /src/useQueryParams.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useQueryParams.ts -------------------------------------------------------------------------------- /src/useRenderInfo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useRenderInfo.ts -------------------------------------------------------------------------------- /src/useRequestAnimationFrame.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useRequestAnimationFrame.ts -------------------------------------------------------------------------------- /src/useResizeObserver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useResizeObserver.ts -------------------------------------------------------------------------------- /src/useSearchQuery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useSearchQuery.ts -------------------------------------------------------------------------------- /src/useSessionStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useSessionStorage.ts -------------------------------------------------------------------------------- /src/useSpeechRecognition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useSpeechRecognition.ts -------------------------------------------------------------------------------- /src/useSpeechSynthesis.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useSpeechSynthesis.ts -------------------------------------------------------------------------------- /src/useSwipe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useSwipe.ts -------------------------------------------------------------------------------- /src/useSwipeEvents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useSwipeEvents.ts -------------------------------------------------------------------------------- /src/useSystemVoices.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useSystemVoices.ts -------------------------------------------------------------------------------- /src/useThrottledCallback.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useThrottledCallback.ts -------------------------------------------------------------------------------- /src/useTimeout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useTimeout.ts -------------------------------------------------------------------------------- /src/useToggle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useToggle.ts -------------------------------------------------------------------------------- /src/useTouch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useTouch.ts -------------------------------------------------------------------------------- /src/useTouchEvents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useTouchEvents.ts -------------------------------------------------------------------------------- /src/useTouchState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useTouchState.ts -------------------------------------------------------------------------------- /src/useURLSearchParams.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useURLSearchParams.ts -------------------------------------------------------------------------------- /src/useUnmount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useUnmount.ts -------------------------------------------------------------------------------- /src/useUpdateEffect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useUpdateEffect.ts -------------------------------------------------------------------------------- /src/useValidatedState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useValidatedState.ts -------------------------------------------------------------------------------- /src/useValueHistory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useValueHistory.ts -------------------------------------------------------------------------------- /src/useVerticalSwipe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useVerticalSwipe.ts -------------------------------------------------------------------------------- /src/useViewportSpy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useViewportSpy.ts -------------------------------------------------------------------------------- /src/useViewportState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useViewportState.ts -------------------------------------------------------------------------------- /src/useWillUnmount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useWillUnmount.ts -------------------------------------------------------------------------------- /src/useWindowResize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useWindowResize.ts -------------------------------------------------------------------------------- /src/useWindowScroll.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/src/useWindowScroll.ts -------------------------------------------------------------------------------- /styleguide.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/styleguide.config.js -------------------------------------------------------------------------------- /test/_setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/_setup.js -------------------------------------------------------------------------------- /test/geolocationUtils.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/geolocationUtils.spec.js -------------------------------------------------------------------------------- /test/isAPISupported.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/isAPISupported.spec.js -------------------------------------------------------------------------------- /test/isClient.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/isClient.spec.js -------------------------------------------------------------------------------- /test/mocks/AudioApi.mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/mocks/AudioApi.mock.js -------------------------------------------------------------------------------- /test/mocks/CookieStoreApi.mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/mocks/CookieStoreApi.mock.js -------------------------------------------------------------------------------- /test/mocks/GeoLocationApi.mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/mocks/GeoLocationApi.mock.js -------------------------------------------------------------------------------- /test/mocks/IntersectionObserver.mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/mocks/IntersectionObserver.mock.js -------------------------------------------------------------------------------- /test/mocks/MatchMediaQueryList.mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/mocks/MatchMediaQueryList.mock.js -------------------------------------------------------------------------------- /test/mocks/ResizeObserver.mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/mocks/ResizeObserver.mock.js -------------------------------------------------------------------------------- /test/mocks/SpeechSynthesis.mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/mocks/SpeechSynthesis.mock.js -------------------------------------------------------------------------------- /test/mocks/SpeechSynthesisUtterance.mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/mocks/SpeechSynthesisUtterance.mock.js -------------------------------------------------------------------------------- /test/safeHasOwnProperty.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/safeHasOwnProperty.spec.js -------------------------------------------------------------------------------- /test/useAudio.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useAudio.spec.js -------------------------------------------------------------------------------- /test/useConditionalTimeout.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useConditionalTimeout.spec.js -------------------------------------------------------------------------------- /test/useCookie.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useCookie.spec.js -------------------------------------------------------------------------------- /test/useDarkMode.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useDarkMode.spec.js -------------------------------------------------------------------------------- /test/useDebouncedCallback.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useDebouncedCallback.spec.js -------------------------------------------------------------------------------- /test/useDefaultedState.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useDefaultedState.spec.js -------------------------------------------------------------------------------- /test/useDidMount.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useDidMount.spec.js -------------------------------------------------------------------------------- /test/useDrag.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useDrag.spec.js -------------------------------------------------------------------------------- /test/useDragEvents.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useDragEvents.spec.js -------------------------------------------------------------------------------- /test/useDropZone.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useDropZone.spec.js -------------------------------------------------------------------------------- /test/useEvent.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useEvent.spec.js -------------------------------------------------------------------------------- /test/useGeolocation.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useGeolocation.spec.js -------------------------------------------------------------------------------- /test/useGeolocationEvents.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useGeolocationEvents.spec.js -------------------------------------------------------------------------------- /test/useGeolocationState.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useGeolocationState.spec.js -------------------------------------------------------------------------------- /test/useGlobalEvent.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useGlobalEvent.spec.js -------------------------------------------------------------------------------- /test/useHandlerSetter.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useHandlerSetter.spec.js -------------------------------------------------------------------------------- /test/useInfiniteScroll.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useInfiniteScroll.spec.js -------------------------------------------------------------------------------- /test/useInterval.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useInterval.spec.js -------------------------------------------------------------------------------- /test/useIsFirstRender.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useIsFirstRender.spec.js -------------------------------------------------------------------------------- /test/useLifecycle.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useLifecycle.spec.js -------------------------------------------------------------------------------- /test/useLocalStorage.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useLocalStorage.spec.js -------------------------------------------------------------------------------- /test/useLongPress.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useLongPress.spec.js -------------------------------------------------------------------------------- /test/useMediaQuery.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useMediaQuery.spec.js -------------------------------------------------------------------------------- /test/useMouse.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useMouse.spec.js -------------------------------------------------------------------------------- /test/useMouseEvents.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useMouseEvents.spec.js -------------------------------------------------------------------------------- /test/useMouseState.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useMouseState.spec.js -------------------------------------------------------------------------------- /test/useMutableState.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useMutableState.spec.js -------------------------------------------------------------------------------- /test/useMutationObserver.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useMutationObserver.spec.js -------------------------------------------------------------------------------- /test/useObjectState.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useObjectState.spec.js -------------------------------------------------------------------------------- /test/useObservable.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useObservable.spec.js -------------------------------------------------------------------------------- /test/useOnlineState.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useOnlineState.spec.js -------------------------------------------------------------------------------- /test/usePreviousValue.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/usePreviousValue.spec.js -------------------------------------------------------------------------------- /test/useQueryParam.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useQueryParam.spec.js -------------------------------------------------------------------------------- /test/useQueryParams.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useQueryParams.spec.js -------------------------------------------------------------------------------- /test/useRenderInfo.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useRenderInfo.spec.js -------------------------------------------------------------------------------- /test/useRequestAnimationFrame.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useRequestAnimationFrame.spec.js -------------------------------------------------------------------------------- /test/useResizeObserver.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useResizeObserver.spec.js -------------------------------------------------------------------------------- /test/useSearchQuery.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useSearchQuery.spec.js -------------------------------------------------------------------------------- /test/useSessionStorage.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useSessionStorage.spec.js -------------------------------------------------------------------------------- /test/useSpeechRecognition.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useSpeechRecognition.spec.js -------------------------------------------------------------------------------- /test/useSpeechSynthesis.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useSpeechSynthesis.spec.js -------------------------------------------------------------------------------- /test/useStorage.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useStorage.spec.js -------------------------------------------------------------------------------- /test/useSwipe.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useSwipe.spec.js -------------------------------------------------------------------------------- /test/useSwipeEvents.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useSwipeEvents.spec.js -------------------------------------------------------------------------------- /test/useSystemVoices.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useSystemVoices.spec.js -------------------------------------------------------------------------------- /test/useThrottledCallback.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useThrottledCallback.spec.js -------------------------------------------------------------------------------- /test/useTimeout.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useTimeout.spec.js -------------------------------------------------------------------------------- /test/useToggle.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useToggle.spec.js -------------------------------------------------------------------------------- /test/useTouchEvents.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useTouchEvents.spec.js -------------------------------------------------------------------------------- /test/useTouchState.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useTouchState.spec.js -------------------------------------------------------------------------------- /test/useURLSearchParams.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useURLSearchParams.spec.js -------------------------------------------------------------------------------- /test/useUnmount.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useUnmount.spec.js -------------------------------------------------------------------------------- /test/useUpdateEffect.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useUpdateEffect.spec.js -------------------------------------------------------------------------------- /test/useValidatedState.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useValidatedState.spec.js -------------------------------------------------------------------------------- /test/useValueHistory.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useValueHistory.spec.js -------------------------------------------------------------------------------- /test/useViewportSpy.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useViewportSpy.spec.js -------------------------------------------------------------------------------- /test/useViewportState.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useViewportState.spec.js -------------------------------------------------------------------------------- /test/useWillUnmount.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useWillUnmount.spec.js -------------------------------------------------------------------------------- /test/useWindowResize.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useWindowResize.spec.js -------------------------------------------------------------------------------- /test/useWindowScroll.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/useWindowScroll.spec.js -------------------------------------------------------------------------------- /test/utils/ReactRouterWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/utils/ReactRouterWrapper.js -------------------------------------------------------------------------------- /test/utils/assertFunction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/utils/assertFunction.js -------------------------------------------------------------------------------- /test/utils/assertHook.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/utils/assertHook.js -------------------------------------------------------------------------------- /test/utils/promiseDelay.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/utils/promiseDelay.js -------------------------------------------------------------------------------- /test/warnOnce.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/test/warnOnce.spec.js -------------------------------------------------------------------------------- /tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/tsconfig.cjs.json -------------------------------------------------------------------------------- /tsconfig.esm.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/tsconfig.esm.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.types.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/tsconfig.types.json -------------------------------------------------------------------------------- /usage_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonioru/beautiful-react-hooks/HEAD/usage_example.png --------------------------------------------------------------------------------