@siberiacancode/reactuse 0.0.99 → 0.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{_rollupPluginBabelHelpers-C-GU1yny.js → _rollupPluginBabelHelpers-DjrPZN5E.js} +2 -2
- package/dist/cjs/_rollupPluginBabelHelpers-DjrPZN5E.js.map +1 -0
- package/dist/cjs/hooks/index.js +2 -2
- package/dist/cjs/hooks/useActiveElement/useActiveElement.js +2 -2
- package/dist/cjs/hooks/useAsync/useAsync.js +2 -2
- package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
- package/dist/cjs/hooks/useBattery/useBattery.js.map +1 -1
- package/dist/cjs/hooks/useBluetooth/useBluetooth.js +2 -2
- package/dist/cjs/hooks/useBluetooth/useBluetooth.js.map +1 -1
- package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
- package/dist/cjs/hooks/useBoolean/useBoolean.js.map +1 -1
- package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
- package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
- package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js.map +1 -1
- package/dist/cjs/hooks/useClickOutside/useClickOutside.js +2 -2
- package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
- package/dist/cjs/hooks/useClipboard/useClipboard.js.map +1 -1
- package/dist/cjs/hooks/useConst/useConst.js +1 -1
- package/dist/cjs/hooks/useCookie/useCookie.js +2 -2
- package/dist/cjs/hooks/useCookie/useCookie.js.map +1 -1
- package/dist/cjs/hooks/useCookies/useCookies.js +2 -2
- package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
- package/dist/cjs/hooks/useCounter/useCounter.js.map +1 -1
- package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
- package/dist/cjs/hooks/useCssVar/useCssVar.js.map +1 -1
- package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
- package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js.map +1 -1
- package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
- package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js.map +1 -1
- package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
- package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
- package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js.map +1 -1
- package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
- package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js.map +1 -1
- package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
- package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js.map +1 -1
- package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
- package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js.map +1 -1
- package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
- package/dist/cjs/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
- package/dist/cjs/hooks/useDisplayMedia/useDisplayMedia.js.map +1 -1
- package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
- package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
- package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
- package/dist/cjs/hooks/useElementSize/useElementSize.js +2 -2
- package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
- package/dist/cjs/hooks/useEventListener/useEventListener.js +2 -2
- package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
- package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js.map +1 -1
- package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
- package/dist/cjs/hooks/useField/useField.js +2 -2
- package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
- package/dist/cjs/hooks/useFocus/useFocus.js +2 -2
- package/dist/cjs/hooks/useFps/useFps.js +2 -2
- package/dist/cjs/hooks/useFps/useFps.js.map +1 -1
- package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
- package/dist/cjs/hooks/useGamepad/useGamepad.js +2 -2
- package/dist/cjs/hooks/useGamepad/useGamepad.js.map +1 -1
- package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
- package/dist/cjs/hooks/useGeolocation/useGeolocation.js.map +1 -1
- package/dist/cjs/hooks/useHash/useHash.js +2 -2
- package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
- package/dist/cjs/hooks/useHover/useHover.js +2 -2
- package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
- package/dist/cjs/hooks/useImage/useImage.js +2 -2
- package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
- package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
- package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
- package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
- package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
- package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
- package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
- package/dist/cjs/hooks/useKeyboard/useKeyboard.js +2 -2
- package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
- package/dist/cjs/hooks/useLastChanged/useLastChanged.js +2 -2
- package/dist/cjs/hooks/useLatest/useLatest.js +1 -1
- package/dist/cjs/hooks/useLess/useLess.js +1 -1
- package/dist/cjs/hooks/useList/useList.js +2 -2
- package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
- package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
- package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
- package/dist/cjs/hooks/useMap/useMap.js +2 -2
- package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
- package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
- package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js.map +1 -1
- package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
- package/dist/cjs/hooks/useMemory/useMemory.js.map +1 -1
- package/dist/cjs/hooks/useMount/useMount.js +1 -1
- package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
- package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
- package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
- package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
- package/dist/cjs/hooks/useNetwork/useNetwork.js.map +1 -1
- package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
- package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
- package/dist/cjs/hooks/useOnline/useOnline.js.map +1 -1
- package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
- package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
- package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
- package/dist/cjs/hooks/useOrientation/useOrientation.js.map +1 -1
- package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
- package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js.map +1 -1
- package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
- package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
- package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
- package/dist/cjs/hooks/usePerformanceObserver/usePerformanceObserver.js +2 -2
- package/dist/cjs/hooks/usePerformanceObserver/usePerformanceObserver.js.map +1 -1
- package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
- package/dist/cjs/hooks/usePermission/usePermission.js.map +1 -1
- package/dist/cjs/hooks/usePointerLock/usePointerLock.js +2 -2
- package/dist/cjs/hooks/usePointerLock/usePointerLock.js.map +1 -1
- package/dist/cjs/hooks/usePostMessage/usePostMessage.js +1 -1
- package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
- package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
- package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
- package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
- package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js.map +1 -1
- package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
- package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
- package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
- package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
- package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
- package/dist/cjs/hooks/useRaf/useRaf.js.map +1 -1
- package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
- package/dist/cjs/hooks/useRefState/useRefState.js +2 -2
- package/dist/cjs/hooks/useRefState/useRefState.js.map +1 -1
- package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
- package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
- package/dist/cjs/hooks/useRerender/useRerender.js +1 -1
- package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js +2 -2
- package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js.map +1 -1
- package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
- package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js.map +1 -1
- package/dist/cjs/hooks/useScript/useScript.js +2 -2
- package/dist/cjs/hooks/useScroll/useScroll.js +2 -2
- package/dist/cjs/hooks/useScroll/useScroll.js.map +1 -1
- package/dist/cjs/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
- package/dist/cjs/hooks/useScrollTo/useScrollTo.js +2 -2
- package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
- package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js.map +1 -1
- package/dist/cjs/hooks/useSet/useSet.js +2 -2
- package/dist/cjs/hooks/useShare/useShare.js +2 -2
- package/dist/cjs/hooks/useStateHistory/useStateHistory.js +2 -2
- package/dist/cjs/hooks/useStep/useStep.js +2 -2
- package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
- package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
- package/dist/cjs/hooks/useStorage/useStorage.js.map +1 -1
- package/dist/cjs/hooks/useTextDirection/useTextDirection.js +2 -2
- package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
- package/dist/cjs/hooks/useTextSelection/useTextSelection.js.map +1 -1
- package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
- package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js.map +1 -1
- package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js +2 -2
- package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js.map +1 -1
- package/dist/cjs/hooks/useTime/useTime.js +2 -2
- package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
- package/dist/cjs/hooks/useTimer/useTimer.js +2 -2
- package/dist/cjs/hooks/useTimer/useTimer.js.map +1 -1
- package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
- package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
- package/dist/cjs/hooks/useVibrate/useVibrate.js +2 -2
- package/dist/cjs/hooks/useVibrate/useVibrate.js.map +1 -1
- package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
- package/dist/cjs/hooks/useWebSocket/useWebSocket.js.map +1 -1
- package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +2 -2
- package/dist/cjs/hooks/useWindowFocus/useWindowFocus.js +2 -2
- package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
- package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
- package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/utils/helpers/debounce.js +1 -1
- package/dist/cjs/utils/helpers/getDate.js +1 -1
- package/dist/cjs/utils/helpers/getElement.js +1 -1
- package/dist/cjs/utils/helpers/getRetry.js +1 -1
- package/dist/cjs/utils/helpers/index.js +2 -2
- package/dist/cjs/utils/helpers/isTarget.js +2 -2
- package/dist/cjs/utils/helpers/throttle.js +1 -1
- package/dist/esm/{_rollupPluginBabelHelpers-D_XDB4a1.js → _rollupPluginBabelHelpers-hUSWuNSL.js} +2 -2
- package/dist/esm/_rollupPluginBabelHelpers-hUSWuNSL.js.map +1 -0
- package/dist/esm/hooks/index.js +2 -2
- package/dist/esm/hooks/useActiveElement/useActiveElement.js +2 -2
- package/dist/esm/hooks/useAsync/useAsync.js +2 -2
- package/dist/esm/hooks/useBattery/useBattery.js +2 -2
- package/dist/esm/hooks/useBattery/useBattery.js.map +1 -1
- package/dist/esm/hooks/useBluetooth/useBluetooth.js +2 -2
- package/dist/esm/hooks/useBluetooth/useBluetooth.js.map +1 -1
- package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
- package/dist/esm/hooks/useBoolean/useBoolean.js.map +1 -1
- package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
- package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
- package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js.map +1 -1
- package/dist/esm/hooks/useClickOutside/useClickOutside.js +2 -2
- package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
- package/dist/esm/hooks/useClipboard/useClipboard.js.map +1 -1
- package/dist/esm/hooks/useConst/useConst.js +1 -1
- package/dist/esm/hooks/useCookie/useCookie.js +2 -2
- package/dist/esm/hooks/useCookie/useCookie.js.map +1 -1
- package/dist/esm/hooks/useCookies/useCookies.js +2 -2
- package/dist/esm/hooks/useCounter/useCounter.js +2 -2
- package/dist/esm/hooks/useCounter/useCounter.js.map +1 -1
- package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
- package/dist/esm/hooks/useCssVar/useCssVar.js.map +1 -1
- package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
- package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js.map +1 -1
- package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
- package/dist/esm/hooks/useDebounceValue/useDebounceValue.js.map +1 -1
- package/dist/esm/hooks/useDefault/useDefault.js +2 -2
- package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
- package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js.map +1 -1
- package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
- package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js.map +1 -1
- package/dist/esm/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
- package/dist/esm/hooks/useDevicePixelRatio/useDevicePixelRatio.js.map +1 -1
- package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
- package/dist/esm/hooks/useDidUpdate/useDidUpdate.js.map +1 -1
- package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
- package/dist/esm/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
- package/dist/esm/hooks/useDisplayMedia/useDisplayMedia.js.map +1 -1
- package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
- package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
- package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
- package/dist/esm/hooks/useElementSize/useElementSize.js +2 -2
- package/dist/esm/hooks/useEvent/useEvent.js +1 -1
- package/dist/esm/hooks/useEventListener/useEventListener.js +2 -2
- package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
- package/dist/esm/hooks/useEyeDropper/useEyeDropper.js.map +1 -1
- package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
- package/dist/esm/hooks/useField/useField.js +2 -2
- package/dist/esm/hooks/useFileDialog/useFileDialog.js +2 -2
- package/dist/esm/hooks/useFocus/useFocus.js +2 -2
- package/dist/esm/hooks/useFps/useFps.js +2 -2
- package/dist/esm/hooks/useFps/useFps.js.map +1 -1
- package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
- package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
- package/dist/esm/hooks/useGamepad/useGamepad.js.map +1 -1
- package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
- package/dist/esm/hooks/useGeolocation/useGeolocation.js.map +1 -1
- package/dist/esm/hooks/useHash/useHash.js +2 -2
- package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
- package/dist/esm/hooks/useHover/useHover.js +2 -2
- package/dist/esm/hooks/useIdle/useIdle.js +2 -2
- package/dist/esm/hooks/useImage/useImage.js +2 -2
- package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
- package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
- package/dist/esm/hooks/useInterval/useInterval.js +2 -2
- package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
- package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
- package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
- package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
- package/dist/esm/hooks/useKeyboard/useKeyboard.js +2 -2
- package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
- package/dist/esm/hooks/useLastChanged/useLastChanged.js +2 -2
- package/dist/esm/hooks/useLatest/useLatest.js +1 -1
- package/dist/esm/hooks/useLess/useLess.js +1 -1
- package/dist/esm/hooks/useList/useList.js +2 -2
- package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
- package/dist/esm/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/esm/hooks/useLogger/useLogger.js +2 -2
- package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
- package/dist/esm/hooks/useMap/useMap.js +2 -2
- package/dist/esm/hooks/useMeasure/useMeasure.js +2 -2
- package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
- package/dist/esm/hooks/useMediaQuery/useMediaQuery.js.map +1 -1
- package/dist/esm/hooks/useMemory/useMemory.js +2 -2
- package/dist/esm/hooks/useMemory/useMemory.js.map +1 -1
- package/dist/esm/hooks/useMount/useMount.js +1 -1
- package/dist/esm/hooks/useMouse/useMouse.js +2 -2
- package/dist/esm/hooks/useMutation/useMutation.js +2 -2
- package/dist/esm/hooks/useMutationObserver/useMutationObserver.js +2 -2
- package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
- package/dist/esm/hooks/useNetwork/useNetwork.js.map +1 -1
- package/dist/esm/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
- package/dist/esm/hooks/useOnline/useOnline.js +1 -1
- package/dist/esm/hooks/useOnline/useOnline.js.map +1 -1
- package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
- package/dist/esm/hooks/useOptimistic/useOptimistic.js +2 -2
- package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
- package/dist/esm/hooks/useOrientation/useOrientation.js.map +1 -1
- package/dist/esm/hooks/useOtpCredential/useOtpCredential.js +2 -2
- package/dist/esm/hooks/useOtpCredential/useOtpCredential.js.map +1 -1
- package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
- package/dist/esm/hooks/usePaint/usePaint.js +2 -2
- package/dist/esm/hooks/useParallax/useParallax.js +2 -2
- package/dist/esm/hooks/usePerformanceObserver/usePerformanceObserver.js +2 -2
- package/dist/esm/hooks/usePerformanceObserver/usePerformanceObserver.js.map +1 -1
- package/dist/esm/hooks/usePermission/usePermission.js +2 -2
- package/dist/esm/hooks/usePermission/usePermission.js.map +1 -1
- package/dist/esm/hooks/usePointerLock/usePointerLock.js +2 -2
- package/dist/esm/hooks/usePointerLock/usePointerLock.js.map +1 -1
- package/dist/esm/hooks/usePostMessage/usePostMessage.js +1 -1
- package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
- package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
- package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
- package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
- package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js.map +1 -1
- package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
- package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
- package/dist/esm/hooks/useQuery/useQuery.js +2 -2
- package/dist/esm/hooks/useQueue/useQueue.js +2 -2
- package/dist/esm/hooks/useRaf/useRaf.js +2 -2
- package/dist/esm/hooks/useRaf/useRaf.js.map +1 -1
- package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
- package/dist/esm/hooks/useRefState/useRefState.js +2 -2
- package/dist/esm/hooks/useRefState/useRefState.js.map +1 -1
- package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
- package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
- package/dist/esm/hooks/useRerender/useRerender.js +1 -1
- package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
- package/dist/esm/hooks/useResizeObserver/useResizeObserver.js.map +1 -1
- package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
- package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js.map +1 -1
- package/dist/esm/hooks/useScript/useScript.js +2 -2
- package/dist/esm/hooks/useScroll/useScroll.js +2 -2
- package/dist/esm/hooks/useScroll/useScroll.js.map +1 -1
- package/dist/esm/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
- package/dist/esm/hooks/useScrollTo/useScrollTo.js +2 -2
- package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
- package/dist/esm/hooks/useSessionStorage/useSessionStorage.js.map +1 -1
- package/dist/esm/hooks/useSet/useSet.js +2 -2
- package/dist/esm/hooks/useShare/useShare.js +2 -2
- package/dist/esm/hooks/useStateHistory/useStateHistory.js +2 -2
- package/dist/esm/hooks/useStep/useStep.js +2 -2
- package/dist/esm/hooks/useStopwatch/useStopwatch.js +2 -2
- package/dist/esm/hooks/useStorage/useStorage.js +2 -2
- package/dist/esm/hooks/useStorage/useStorage.js.map +1 -1
- package/dist/esm/hooks/useTextDirection/useTextDirection.js +2 -2
- package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
- package/dist/esm/hooks/useTextSelection/useTextSelection.js.map +1 -1
- package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
- package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js.map +1 -1
- package/dist/esm/hooks/useThrottleValue/useThrottleValue.js +2 -2
- package/dist/esm/hooks/useThrottleValue/useThrottleValue.js.map +1 -1
- package/dist/esm/hooks/useTime/useTime.js +2 -2
- package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
- package/dist/esm/hooks/useTimer/useTimer.js +2 -2
- package/dist/esm/hooks/useTimer/useTimer.js.map +1 -1
- package/dist/esm/hooks/useToggle/useToggle.js +2 -2
- package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
- package/dist/esm/hooks/useVibrate/useVibrate.js +2 -2
- package/dist/esm/hooks/useVibrate/useVibrate.js.map +1 -1
- package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
- package/dist/esm/hooks/useWebSocket/useWebSocket.js.map +1 -1
- package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +2 -2
- package/dist/esm/hooks/useWindowFocus/useWindowFocus.js +2 -2
- package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
- package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
- package/dist/esm/hooks/useWizard/useWizard.js +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/utils/helpers/debounce.js +1 -1
- package/dist/esm/utils/helpers/getDate.js +1 -1
- package/dist/esm/utils/helpers/getElement.js +1 -1
- package/dist/esm/utils/helpers/getRetry.js +1 -1
- package/dist/esm/utils/helpers/index.js +2 -2
- package/dist/esm/utils/helpers/isTarget.js +2 -2
- package/dist/esm/utils/helpers/throttle.js +1 -1
- package/dist/types/index.d.ts +115 -48
- package/package.json +1 -1
- package/dist/cjs/_rollupPluginBabelHelpers-C-GU1yny.js.map +0 -1
- package/dist/cjs/hooks/useGamepad/helpers/index.js +0 -3
- package/dist/cjs/hooks/useGamepad/helpers/index.js.map +0 -1
- package/dist/cjs/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +0 -3
- package/dist/cjs/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js.map +0 -1
- package/dist/esm/_rollupPluginBabelHelpers-D_XDB4a1.js.map +0 -1
- package/dist/esm/hooks/useGamepad/helpers/index.js +0 -3
- package/dist/esm/hooks/useGamepad/helpers/index.js.map +0 -1
- package/dist/esm/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +0 -3
- package/dist/esm/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js.map +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.
|
|
2
|
-
export{useActiveElement}from"./hooks/useActiveElement/useActiveElement.js";export{useAsync}from"./hooks/useAsync/useAsync.js";export{useBattery}from"./hooks/useBattery/useBattery.js";export{useBluetooth}from"./hooks/useBluetooth/useBluetooth.js";export{useBoolean}from"./hooks/useBoolean/useBoolean.js";export{BREAKPOINTS_ANT_DESIGN,BREAKPOINTS_BOOTSTRAP_V5,BREAKPOINTS_MANTINE,BREAKPOINTS_MASTER_CSS,BREAKPOINTS_MATERIAL_UI,BREAKPOINTS_PRIME_FLEX,BREAKPOINTS_QUASAR_V2,BREAKPOINTS_SEMANTIC,BREAKPOINTS_TAILWIND,useBreakpoints}from"./hooks/useBreakpoints/useBreakpoints.js";export{useBrowserLanguage}from"./hooks/useBrowserLanguage/useBrowserLanguage.js";export{useClickOutside}from"./hooks/useClickOutside/useClickOutside.js";export{isPermissionAllowed,legacyCopyToClipboard,useClipboard}from"./hooks/useClipboard/useClipboard.js";export{useConst}from"./hooks/useConst/useConst.js";export{COOKIE_EVENT,dispatchCookieEvent,getCookies,removeCookie,setCookie,useCookie}from"./hooks/useCookie/useCookie.js";export{clearCookies,getParsedCookies,useCookies}from"./hooks/useCookies/useCookies.js";export{useCounter}from"./hooks/useCounter/useCounter.js";export{useCssVar}from"./hooks/useCssVar/useCssVar.js";export{useDebounceCallback}from"./hooks/useDebounceCallback/useDebounceCallback.js";export{useDebounceValue}from"./hooks/useDebounceValue/useDebounceValue.js";export{useDefault}from"./hooks/useDefault/useDefault.js";export{useDeviceMotion}from"./hooks/useDeviceMotion/useDeviceMotion.js";export{useDeviceOrientation}from"./hooks/useDeviceOrientation/useDeviceOrientation.js";export{useDevicePixelRatio}from"./hooks/useDevicePixelRatio/useDevicePixelRatio.js";export{useDidUpdate}from"./hooks/useDidUpdate/useDidUpdate.js";export{useDisclosure}from"./hooks/useDisclosure/useDisclosure.js";export{useDisplayMedia}from"./hooks/useDisplayMedia/useDisplayMedia.js";export{useDocumentEvent}from"./hooks/useDocumentEvent/useDocumentEvent.js";export{useDocumentTitle}from"./hooks/useDocumentTitle/useDocumentTitle.js";export{useDocumentVisibility}from"./hooks/useDocumentVisibility/useDocumentVisibility.js";export{useElementSize}from"./hooks/useElementSize/useElementSize.js";export{useEvent}from"./hooks/useEvent/useEvent.js";export{useEventListener}from"./hooks/useEventListener/useEventListener.js";export{useEyeDropper}from"./hooks/useEyeDropper/useEyeDropper.js";export{useFavicon}from"./hooks/useFavicon/useFavicon.js";export{useField}from"./hooks/useField/useField.js";export{useFileDialog}from"./hooks/useFileDialog/useFileDialog.js";export{useFocus}from"./hooks/useFocus/useFocus.js";export{useFps}from"./hooks/useFps/useFps.js";export{useFullscreen}from"./hooks/useFullscreen/useFullscreen.js";export{useGamepad}from"./hooks/useGamepad/useGamepad.js";export{useGeolocation}from"./hooks/useGeolocation/useGeolocation.js";export{useHash}from"./hooks/useHash/useHash.js";export{isHotkeyMatch,useHotkeys}from"./hooks/useHotkeys/useHotkeys.js";export{useHover}from"./hooks/useHover/useHover.js";export{useIdle}from"./hooks/useIdle/useIdle.js";export{useImage}from"./hooks/useImage/useImage.js";export{useInfiniteScroll}from"./hooks/useInfiniteScroll/useInfiniteScroll.js";export{useIntersectionObserver}from"./hooks/useIntersectionObserver/useIntersectionObserver.js";export{useInterval}from"./hooks/useInterval/useInterval.js";export{useIsFirstRender}from"./hooks/useIsFirstRender/useIsFirstRender.js";export{useIsomorphicLayoutEffect}from"./hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";export{useKeyboard}from"./hooks/useKeyboard/useKeyboard.js";export{useKeyPress}from"./hooks/useKeyPress/useKeyPress.js";export{useKeyPressEvent}from"./hooks/useKeyPressEvent/useKeyPressEvent.js";export{useKeysPressed}from"./hooks/useKeysPressed/useKeysPressed.js";export{useLastChanged}from"./hooks/useLastChanged/useLastChanged.js";export{useLatest}from"./hooks/useLatest/useLatest.js";export{useLess}from"./hooks/useLess/useLess.js";export{useList}from"./hooks/useList/useList.js";export{useLocalStorage}from"./hooks/useLocalStorage/useLocalStorage.js";export{useLogger}from"./hooks/useLogger/useLogger.js";export{useLongPress}from"./hooks/useLongPress/useLongPress.js";export{useMap}from"./hooks/useMap/useMap.js";export{useMeasure}from"./hooks/useMeasure/useMeasure.js";export{useMediaQuery}from"./hooks/useMediaQuery/useMediaQuery.js";export{useMemory}from"./hooks/useMemory/useMemory.js";export{useMount}from"./hooks/useMount/useMount.js";export{useMouse}from"./hooks/useMouse/useMouse.js";export{useMutation}from"./hooks/useMutation/useMutation.js";export{useMutationObserver}from"./hooks/useMutationObserver/useMutationObserver.js";export{getConnection,useNetwork}from"./hooks/useNetwork/useNetwork.js";export{useOffsetPagination}from"./hooks/useOffsetPagination/useOffsetPagination.js";export{useOnline}from"./hooks/useOnline/useOnline.js";export{getOperatingSystem,useOperatingSystem}from"./hooks/useOperatingSystem/useOperatingSystem.js";export{useOptimistic}from"./hooks/useOptimistic/useOptimistic.js";export{useOrientation}from"./hooks/useOrientation/useOrientation.js";export{useOtpCredential}from"./hooks/useOtpCredential/useOtpCredential.js";export{usePageLeave}from"./hooks/usePageLeave/usePageLeave.js";export{Paint,Pointer,usePaint}from"./hooks/usePaint/usePaint.js";export{useParallax}from"./hooks/useParallax/useParallax.js";export{usePerformanceObserver}from"./hooks/usePerformanceObserver/usePerformanceObserver.js";export{usePermission}from"./hooks/usePermission/usePermission.js";export{usePointerLock}from"./hooks/usePointerLock/usePointerLock.js";export{usePostMessage}from"./hooks/usePostMessage/usePostMessage.js";export{usePreferredColorScheme}from"./hooks/usePreferredColorScheme/usePreferredColorScheme.js";export{usePreferredContrast}from"./hooks/usePreferredContrast/usePreferredContrast.js";export{usePreferredDark}from"./hooks/usePreferredDark/usePreferredDark.js";export{usePreferredLanguages}from"./hooks/usePreferredLanguages/usePreferredLanguages.js";export{usePreferredReducedMotion}from"./hooks/usePreferredReducedMotion/usePreferredReducedMotion.js";export{usePrevious}from"./hooks/usePrevious/usePrevious.js";export{useQuery}from"./hooks/useQuery/useQuery.js";export{useQueue}from"./hooks/useQueue/useQueue.js";export{useRaf}from"./hooks/useRaf/useRaf.js";export{useRafValue}from"./hooks/useRafValue/useRafValue.js";export{useRefState}from"./hooks/useRefState/useRefState.js";export{useRenderCount}from"./hooks/useRenderCount/useRenderCount.js";export{useRenderInfo}from"./hooks/useRenderInfo/useRenderInfo.js";export{useRerender}from"./hooks/useRerender/useRerender.js";export{useResizeObserver}from"./hooks/useResizeObserver/useResizeObserver.js";export{useScreenOrientation}from"./hooks/useScreenOrientation/useScreenOrientation.js";export{SCRIPT_STATUS_ATTRIBUTE_NAME,useScript}from"./hooks/useScript/useScript.js";export{useScroll}from"./hooks/useScroll/useScroll.js";export{useScrollIntoView}from"./hooks/useScrollIntoView/useScrollIntoView.js";export{useScrollTo}from"./hooks/useScrollTo/useScrollTo.js";export{useSessionStorage}from"./hooks/useSessionStorage/useSessionStorage.js";export{useSet}from"./hooks/useSet/useSet.js";export{useShare}from"./hooks/useShare/useShare.js";export{useStateHistory}from"./hooks/useStateHistory/useStateHistory.js";export{useStep}from"./hooks/useStep/useStep.js";export{useStopwatch}from"./hooks/useStopwatch/useStopwatch.js";export{STORAGE_EVENT,dispatchStorageEvent,useStorage}from"./hooks/useStorage/useStorage.js";export{useTextDirection}from"./hooks/useTextDirection/useTextDirection.js";export{getRangesSelection,useTextSelection}from"./hooks/useTextSelection/useTextSelection.js";export{useThrottleCallback}from"./hooks/useThrottleCallback/useThrottleCallback.js";export{useThrottleValue}from"./hooks/useThrottleValue/useThrottleValue.js";export{useTime}from"./hooks/useTime/useTime.js";export{useTimeout}from"./hooks/useTimeout/useTimeout.js";export{getTimeFromSeconds,useTimer}from"./hooks/useTimer/useTimer.js";export{useToggle}from"./hooks/useToggle/useToggle.js";export{useUnmount}from"./hooks/useUnmount/useUnmount.js";export{useVibrate}from"./hooks/useVibrate/useVibrate.js";export{useWebSocket}from"./hooks/useWebSocket/useWebSocket.js";export{useWindowEvent}from"./hooks/useWindowEvent/useWindowEvent.js";export{useWindowFocus}from"./hooks/useWindowFocus/useWindowFocus.js";export{scrollTo,useWindowScroll}from"./hooks/useWindowScroll/useWindowScroll.js";export{useWindowSize}from"./hooks/useWindowSize/useWindowSize.js";export{useWizard}from"./hooks/useWizard/useWizard.js";export{debounce}from"./utils/helpers/debounce.js";export{getDate}from"./utils/helpers/getDate.js";export{getElement}from"./utils/helpers/getElement.js";export{getRetry}from"./utils/helpers/getRetry.js";export{isTarget}from"./utils/helpers/isTarget.js";export{throttle}from"./utils/helpers/throttle.js";
|
|
1
|
+
/* @license @siberiacancode/reactuse v0.0.100 */
|
|
2
|
+
export{useActiveElement}from"./hooks/useActiveElement/useActiveElement.js";export{useAsync}from"./hooks/useAsync/useAsync.js";export{useBattery}from"./hooks/useBattery/useBattery.js";export{useBluetooth}from"./hooks/useBluetooth/useBluetooth.js";export{useBoolean}from"./hooks/useBoolean/useBoolean.js";export{BREAKPOINTS_ANT_DESIGN,BREAKPOINTS_BOOTSTRAP_V5,BREAKPOINTS_MANTINE,BREAKPOINTS_MASTER_CSS,BREAKPOINTS_MATERIAL_UI,BREAKPOINTS_PRIME_FLEX,BREAKPOINTS_QUASAR_V2,BREAKPOINTS_SEMANTIC,BREAKPOINTS_TAILWIND,useBreakpoints}from"./hooks/useBreakpoints/useBreakpoints.js";export{useBrowserLanguage}from"./hooks/useBrowserLanguage/useBrowserLanguage.js";export{useClickOutside}from"./hooks/useClickOutside/useClickOutside.js";export{isPermissionAllowed,legacyCopyToClipboard,useClipboard}from"./hooks/useClipboard/useClipboard.js";export{useConst}from"./hooks/useConst/useConst.js";export{COOKIE_EVENT,dispatchCookieEvent,getCookies,removeCookie,setCookie,useCookie}from"./hooks/useCookie/useCookie.js";export{clearCookies,getParsedCookies,useCookies}from"./hooks/useCookies/useCookies.js";export{useCounter}from"./hooks/useCounter/useCounter.js";export{useCssVar}from"./hooks/useCssVar/useCssVar.js";export{useDebounceCallback}from"./hooks/useDebounceCallback/useDebounceCallback.js";export{useDebounceValue}from"./hooks/useDebounceValue/useDebounceValue.js";export{useDefault}from"./hooks/useDefault/useDefault.js";export{useDeviceMotion}from"./hooks/useDeviceMotion/useDeviceMotion.js";export{useDeviceOrientation}from"./hooks/useDeviceOrientation/useDeviceOrientation.js";export{useDevicePixelRatio}from"./hooks/useDevicePixelRatio/useDevicePixelRatio.js";export{useDidUpdate}from"./hooks/useDidUpdate/useDidUpdate.js";export{useDisclosure}from"./hooks/useDisclosure/useDisclosure.js";export{useDisplayMedia}from"./hooks/useDisplayMedia/useDisplayMedia.js";export{useDocumentEvent}from"./hooks/useDocumentEvent/useDocumentEvent.js";export{useDocumentTitle}from"./hooks/useDocumentTitle/useDocumentTitle.js";export{useDocumentVisibility}from"./hooks/useDocumentVisibility/useDocumentVisibility.js";export{useElementSize}from"./hooks/useElementSize/useElementSize.js";export{useEvent}from"./hooks/useEvent/useEvent.js";export{useEventListener}from"./hooks/useEventListener/useEventListener.js";export{useEyeDropper}from"./hooks/useEyeDropper/useEyeDropper.js";export{useFavicon}from"./hooks/useFavicon/useFavicon.js";export{useField}from"./hooks/useField/useField.js";export{useFileDialog}from"./hooks/useFileDialog/useFileDialog.js";export{useFocus}from"./hooks/useFocus/useFocus.js";export{useFps}from"./hooks/useFps/useFps.js";export{useFullscreen}from"./hooks/useFullscreen/useFullscreen.js";export{mapGamepadToXbox360Controller,useGamepad}from"./hooks/useGamepad/useGamepad.js";export{useGeolocation}from"./hooks/useGeolocation/useGeolocation.js";export{useHash}from"./hooks/useHash/useHash.js";export{isHotkeyMatch,useHotkeys}from"./hooks/useHotkeys/useHotkeys.js";export{useHover}from"./hooks/useHover/useHover.js";export{useIdle}from"./hooks/useIdle/useIdle.js";export{useImage}from"./hooks/useImage/useImage.js";export{useInfiniteScroll}from"./hooks/useInfiniteScroll/useInfiniteScroll.js";export{useIntersectionObserver}from"./hooks/useIntersectionObserver/useIntersectionObserver.js";export{useInterval}from"./hooks/useInterval/useInterval.js";export{useIsFirstRender}from"./hooks/useIsFirstRender/useIsFirstRender.js";export{useIsomorphicLayoutEffect}from"./hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";export{useKeyboard}from"./hooks/useKeyboard/useKeyboard.js";export{useKeyPress}from"./hooks/useKeyPress/useKeyPress.js";export{useKeyPressEvent}from"./hooks/useKeyPressEvent/useKeyPressEvent.js";export{useKeysPressed}from"./hooks/useKeysPressed/useKeysPressed.js";export{useLastChanged}from"./hooks/useLastChanged/useLastChanged.js";export{useLatest}from"./hooks/useLatest/useLatest.js";export{useLess}from"./hooks/useLess/useLess.js";export{useList}from"./hooks/useList/useList.js";export{useLocalStorage}from"./hooks/useLocalStorage/useLocalStorage.js";export{useLogger}from"./hooks/useLogger/useLogger.js";export{useLongPress}from"./hooks/useLongPress/useLongPress.js";export{useMap}from"./hooks/useMap/useMap.js";export{useMeasure}from"./hooks/useMeasure/useMeasure.js";export{useMediaQuery}from"./hooks/useMediaQuery/useMediaQuery.js";export{useMemory}from"./hooks/useMemory/useMemory.js";export{useMount}from"./hooks/useMount/useMount.js";export{useMouse}from"./hooks/useMouse/useMouse.js";export{useMutation}from"./hooks/useMutation/useMutation.js";export{useMutationObserver}from"./hooks/useMutationObserver/useMutationObserver.js";export{getConnection,useNetwork}from"./hooks/useNetwork/useNetwork.js";export{useOffsetPagination}from"./hooks/useOffsetPagination/useOffsetPagination.js";export{useOnline}from"./hooks/useOnline/useOnline.js";export{getOperatingSystem,useOperatingSystem}from"./hooks/useOperatingSystem/useOperatingSystem.js";export{useOptimistic}from"./hooks/useOptimistic/useOptimistic.js";export{useOrientation}from"./hooks/useOrientation/useOrientation.js";export{useOtpCredential}from"./hooks/useOtpCredential/useOtpCredential.js";export{usePageLeave}from"./hooks/usePageLeave/usePageLeave.js";export{Paint,Pointer,usePaint}from"./hooks/usePaint/usePaint.js";export{useParallax}from"./hooks/useParallax/useParallax.js";export{usePerformanceObserver}from"./hooks/usePerformanceObserver/usePerformanceObserver.js";export{usePermission}from"./hooks/usePermission/usePermission.js";export{usePointerLock}from"./hooks/usePointerLock/usePointerLock.js";export{usePostMessage}from"./hooks/usePostMessage/usePostMessage.js";export{usePreferredColorScheme}from"./hooks/usePreferredColorScheme/usePreferredColorScheme.js";export{usePreferredContrast}from"./hooks/usePreferredContrast/usePreferredContrast.js";export{usePreferredDark}from"./hooks/usePreferredDark/usePreferredDark.js";export{usePreferredLanguages}from"./hooks/usePreferredLanguages/usePreferredLanguages.js";export{usePreferredReducedMotion}from"./hooks/usePreferredReducedMotion/usePreferredReducedMotion.js";export{usePrevious}from"./hooks/usePrevious/usePrevious.js";export{useQuery}from"./hooks/useQuery/useQuery.js";export{useQueue}from"./hooks/useQueue/useQueue.js";export{useRaf}from"./hooks/useRaf/useRaf.js";export{useRafValue}from"./hooks/useRafValue/useRafValue.js";export{useRefState}from"./hooks/useRefState/useRefState.js";export{useRenderCount}from"./hooks/useRenderCount/useRenderCount.js";export{useRenderInfo}from"./hooks/useRenderInfo/useRenderInfo.js";export{useRerender}from"./hooks/useRerender/useRerender.js";export{useResizeObserver}from"./hooks/useResizeObserver/useResizeObserver.js";export{useScreenOrientation}from"./hooks/useScreenOrientation/useScreenOrientation.js";export{SCRIPT_STATUS_ATTRIBUTE_NAME,useScript}from"./hooks/useScript/useScript.js";export{useScroll}from"./hooks/useScroll/useScroll.js";export{useScrollIntoView}from"./hooks/useScrollIntoView/useScrollIntoView.js";export{useScrollTo}from"./hooks/useScrollTo/useScrollTo.js";export{useSessionStorage}from"./hooks/useSessionStorage/useSessionStorage.js";export{useSet}from"./hooks/useSet/useSet.js";export{useShare}from"./hooks/useShare/useShare.js";export{useStateHistory}from"./hooks/useStateHistory/useStateHistory.js";export{useStep}from"./hooks/useStep/useStep.js";export{useStopwatch}from"./hooks/useStopwatch/useStopwatch.js";export{STORAGE_EVENT,dispatchStorageEvent,useStorage}from"./hooks/useStorage/useStorage.js";export{useTextDirection}from"./hooks/useTextDirection/useTextDirection.js";export{getRangesSelection,useTextSelection}from"./hooks/useTextSelection/useTextSelection.js";export{useThrottleCallback}from"./hooks/useThrottleCallback/useThrottleCallback.js";export{useThrottleValue}from"./hooks/useThrottleValue/useThrottleValue.js";export{useTime}from"./hooks/useTime/useTime.js";export{useTimeout}from"./hooks/useTimeout/useTimeout.js";export{getTimeFromSeconds,useTimer}from"./hooks/useTimer/useTimer.js";export{useToggle}from"./hooks/useToggle/useToggle.js";export{useUnmount}from"./hooks/useUnmount/useUnmount.js";export{useVibrate}from"./hooks/useVibrate/useVibrate.js";export{useWebSocket}from"./hooks/useWebSocket/useWebSocket.js";export{useWindowEvent}from"./hooks/useWindowEvent/useWindowEvent.js";export{useWindowFocus}from"./hooks/useWindowFocus/useWindowFocus.js";export{scrollTo,useWindowScroll}from"./hooks/useWindowScroll/useWindowScroll.js";export{useWindowSize}from"./hooks/useWindowSize/useWindowSize.js";export{useWizard}from"./hooks/useWizard/useWizard.js";export{debounce}from"./utils/helpers/debounce.js";export{getDate}from"./utils/helpers/getDate.js";export{getElement}from"./utils/helpers/getElement.js";export{getRetry}from"./utils/helpers/getRetry.js";export{isTarget}from"./utils/helpers/isTarget.js";export{throttle}from"./utils/helpers/throttle.js";import"./_rollupPluginBabelHelpers-hUSWuNSL.js";import"react";import"react-dom";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.
|
|
1
|
+
/* @license @siberiacancode/reactuse v0.0.100 */
|
|
2
2
|
function r(r,t){var n;return function(){for(var e=this,o=arguments.length,u=new Array(o),i=0;i<o;i++)u[i]=arguments[i];clearTimeout(n),n=setTimeout((function(){return r.apply(e,u)}),t)}}export{r as debounce};
|
|
3
3
|
//# sourceMappingURL=debounce.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.
|
|
1
|
+
/* @license @siberiacancode/reactuse v0.0.100 */
|
|
2
2
|
var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=e.getSeconds(),n=e.getMinutes(),r=e.getHours();return{seconds:t,minutes:n,hours:r,meridiemHours:{value:r%12==0?12:r%12,type:r>=12?"pm":"am"},day:e.getDate(),month:e.getMonth()+1,year:e.getFullYear(),timestamp:e.getTime()}};export{e as getDate};
|
|
3
3
|
//# sourceMappingURL=getDate.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.
|
|
1
|
+
/* @license @siberiacancode/reactuse v0.0.100 */
|
|
2
2
|
var n=function(n){return"function"==typeof n?n():"string"==typeof n?document.querySelector(n):n instanceof Document||n instanceof Window||n instanceof Element?n:n.current};export{n as getElement};
|
|
3
3
|
//# sourceMappingURL=getElement.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.
|
|
2
|
-
export{debounce}from"./debounce.js";export{getDate}from"./getDate.js";export{getElement}from"./getElement.js";export{getRetry}from"./getRetry.js";export{isTarget}from"./isTarget.js";export{throttle}from"./throttle.js";import"../../_rollupPluginBabelHelpers-
|
|
1
|
+
/* @license @siberiacancode/reactuse v0.0.100 */
|
|
2
|
+
export{debounce}from"./debounce.js";export{getDate}from"./getDate.js";export{getElement}from"./getElement.js";export{getRetry}from"./getRetry.js";export{isTarget}from"./isTarget.js";export{throttle}from"./throttle.js";import"../../_rollupPluginBabelHelpers-hUSWuNSL.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.
|
|
2
|
-
import{b as n}from"../../_rollupPluginBabelHelpers-
|
|
1
|
+
/* @license @siberiacancode/reactuse v0.0.100 */
|
|
2
|
+
import{b as n}from"../../_rollupPluginBabelHelpers-hUSWuNSL.js";var e=function(e){return"string"==typeof e||e instanceof Element||e instanceof Window||e instanceof Document||e&&"object"===n(e)&&"current"in e};export{e as isTarget};
|
|
3
3
|
//# sourceMappingURL=isTarget.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.
|
|
1
|
+
/* @license @siberiacancode/reactuse v0.0.100 */
|
|
2
2
|
var n=function(n,t){var e=!1,r=null,u=function(){r?(n.apply(undefined,r),r=null,setTimeout(u,t)):e=!1};return function(){for(var i=arguments.length,l=new Array(i),o=0;o<i;o++)l[o]=arguments[o];e?r=l:(n.apply(this,l),e=!0,setTimeout(u,t))}};export{n as throttle};
|
|
3
3
|
//# sourceMappingURL=throttle.js.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ interface UseBatteryStateReturn {
|
|
|
69
69
|
* @description - Hook for getting information about battery status
|
|
70
70
|
* @category Browser
|
|
71
71
|
*
|
|
72
|
+
* @browserapi navigator.getBattery https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getBattery
|
|
73
|
+
*
|
|
72
74
|
* @returns {UseBatteryStateReturn} Object containing battery information & Battery API support
|
|
73
75
|
*
|
|
74
76
|
* @example
|
|
@@ -103,6 +105,8 @@ interface UseBluetoothOptions {
|
|
|
103
105
|
* @description - Hook for getting information about bluetooth
|
|
104
106
|
* @category Browser
|
|
105
107
|
*
|
|
108
|
+
* @browserapi navigator.bluetooth https://developer.mozilla.org/en-US/docs/Web/API/Navigator/bluetooth
|
|
109
|
+
*
|
|
106
110
|
* @param {boolean} [options.acceptAllDevices=false] The options to request all Bluetooth devices
|
|
107
111
|
* @param {Array<BluetoothLEScanFilter>} [options.filters] Array of filters to apply when scanning Bluetooth devices
|
|
108
112
|
* @param {Array<BluetoothServiceUUID>} [options.optionalServices] Array of optional services that the application can use
|
|
@@ -122,7 +126,7 @@ type UseBooleanReturn = [
|
|
|
122
126
|
];
|
|
123
127
|
/**
|
|
124
128
|
* @name useBoolean
|
|
125
|
-
* @description - Hook provides
|
|
129
|
+
* @description - Hook provides opportunity to manage boolean state
|
|
126
130
|
* @category Utilities
|
|
127
131
|
*
|
|
128
132
|
* @param {boolean} [initialValue=false] The initial boolean value
|
|
@@ -264,6 +268,8 @@ declare const BREAKPOINTS_PRIME_FLEX: {
|
|
|
264
268
|
* @description - Hook that returns the current browser language
|
|
265
269
|
* @category Browser
|
|
266
270
|
*
|
|
271
|
+
* @browserapi navigator.language https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
|
|
272
|
+
*
|
|
267
273
|
* @returns {string} The current browser language
|
|
268
274
|
*
|
|
269
275
|
* @example
|
|
@@ -279,7 +285,7 @@ interface StateRef<Value> {
|
|
|
279
285
|
/**
|
|
280
286
|
* @name useRefState
|
|
281
287
|
* @description - Hook that returns the state reference of the value
|
|
282
|
-
* @category
|
|
288
|
+
* @category Utilities
|
|
283
289
|
*
|
|
284
290
|
* @template Value The type of the value
|
|
285
291
|
* @param {Value} [initialValue] The initial value
|
|
@@ -341,6 +347,8 @@ interface UseCopyToClipboardParams {
|
|
|
341
347
|
* @description - Hook that manages a copy to clipboard
|
|
342
348
|
* @category Browser
|
|
343
349
|
*
|
|
350
|
+
* @browserapi navigator.clipboard https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard
|
|
351
|
+
*
|
|
344
352
|
* @param {boolean} [params.enabled=false] Whether the copy to clipboard is enabled
|
|
345
353
|
* @returns {UseCopyToClipboardReturn} An object containing the boolean state value and utility functions to manipulate the state
|
|
346
354
|
*
|
|
@@ -481,7 +489,7 @@ interface UseCounter {
|
|
|
481
489
|
}
|
|
482
490
|
/**
|
|
483
491
|
* @name useCounter
|
|
484
|
-
* @description - Hook that manages a counter
|
|
492
|
+
* @description - Hook that manages a counter
|
|
485
493
|
* @category Utilities
|
|
486
494
|
*
|
|
487
495
|
* @overload
|
|
@@ -519,7 +527,7 @@ interface UseCssVar {
|
|
|
519
527
|
}
|
|
520
528
|
/**
|
|
521
529
|
* @name useCssVar
|
|
522
|
-
* @description - Hook that returns the value of a
|
|
530
|
+
* @description - Hook that returns the value of a css variable
|
|
523
531
|
* @category Utilities
|
|
524
532
|
*
|
|
525
533
|
* @overload
|
|
@@ -544,7 +552,7 @@ declare const useCssVar: UseCssVar;
|
|
|
544
552
|
|
|
545
553
|
/**
|
|
546
554
|
* @name useDebounceCallback
|
|
547
|
-
* @description - Hook that creates a debounced callback
|
|
555
|
+
* @description - Hook that creates a debounced callback
|
|
548
556
|
* @category Utilities
|
|
549
557
|
*
|
|
550
558
|
* @template Params The type of the params
|
|
@@ -560,7 +568,7 @@ declare const useDebounceCallback: <Params extends unknown[], Return>(callback:
|
|
|
560
568
|
|
|
561
569
|
/**
|
|
562
570
|
* @name useDebounceValue
|
|
563
|
-
* @description - Hook that creates a debounced value
|
|
571
|
+
* @description - Hook that creates a debounced value
|
|
564
572
|
* @category Utilities
|
|
565
573
|
*
|
|
566
574
|
* @template Value The type of the value
|
|
@@ -607,6 +615,8 @@ interface UseDeviceMotionParams {
|
|
|
607
615
|
* @description - Hook that work with device motion
|
|
608
616
|
* @category Utilities
|
|
609
617
|
*
|
|
618
|
+
* @browserapi DeviceMotionEvent https://developer.mozilla.org/en-US/docs/Web/API/Window/DeviceMotionEvent
|
|
619
|
+
*
|
|
610
620
|
* @param {number} [delay=1000] The delay in milliseconds
|
|
611
621
|
* @param {(event: DeviceMotionEvent) => void} [callback] The callback function to be invoked
|
|
612
622
|
* @param {boolean} [enabled=true] Whether to enable the hook
|
|
@@ -638,6 +648,8 @@ interface UseDeviceOrientationReturn {
|
|
|
638
648
|
* @description - Hook that provides the current device orientation
|
|
639
649
|
* @category Sensors
|
|
640
650
|
*
|
|
651
|
+
* @browserapi DeviceOrientationEvent https://developer.mozilla.org/en-US/docs/Web/API/Window/DeviceOrientationEvent
|
|
652
|
+
*
|
|
641
653
|
* @returns {UseDeviceOrientationReturn} The current device orientation
|
|
642
654
|
*
|
|
643
655
|
* @example
|
|
@@ -654,9 +666,11 @@ interface UseDevicePixelRatioReturn {
|
|
|
654
666
|
}
|
|
655
667
|
/**
|
|
656
668
|
* @name useDevicePixelRatio
|
|
657
|
-
* @description - Hook that returns the
|
|
669
|
+
* @description - Hook that returns the device's pixel ratio
|
|
658
670
|
* @category Utilities
|
|
659
671
|
*
|
|
672
|
+
* @browserapi window.devicePixelRatio https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
|
|
673
|
+
*
|
|
660
674
|
* @returns {UseDevicePixelRatioReturn} The ratio and supported flag
|
|
661
675
|
*
|
|
662
676
|
* @example
|
|
@@ -666,14 +680,14 @@ declare const useDevicePixelRatio: () => UseDevicePixelRatioReturn;
|
|
|
666
680
|
|
|
667
681
|
/**
|
|
668
682
|
* @name useDidUpdate
|
|
669
|
-
* @description – Hook that
|
|
683
|
+
* @description – Hook that triggers the effect callback on updates
|
|
670
684
|
* @category Lifecycle
|
|
671
685
|
*
|
|
672
686
|
* @param {EffectCallback} effect The effect callback
|
|
673
687
|
* @param {DependencyList} [deps] The dependencies list for the effect
|
|
674
688
|
*
|
|
675
689
|
* @example
|
|
676
|
-
* useDidUpdate(() => console.log(
|
|
690
|
+
* useDidUpdate(() => console.log("Won't be called when mounted"), [deps]);
|
|
677
691
|
*/
|
|
678
692
|
declare const useDidUpdate: (effect: EffectCallback, deps?: DependencyList) => void;
|
|
679
693
|
|
|
@@ -742,9 +756,11 @@ interface UseDisplayMediaOverload {
|
|
|
742
756
|
}
|
|
743
757
|
/**
|
|
744
758
|
* @name useDisplayMedia
|
|
745
|
-
* @description - Hook that provides screen sharing functionality
|
|
759
|
+
* @description - Hook that provides screen sharing functionality
|
|
746
760
|
* @category Browser
|
|
747
761
|
*
|
|
762
|
+
* @browserapi mediaDevices.getDisplayMedia https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia
|
|
763
|
+
*
|
|
748
764
|
* @overload
|
|
749
765
|
* @template Target The target video element
|
|
750
766
|
* @param {Target} target The target video element to display the media stream
|
|
@@ -973,6 +989,8 @@ interface UseEyeDropperReturn {
|
|
|
973
989
|
* @description - Hook that gives you access to the eye dropper
|
|
974
990
|
* @category Browser
|
|
975
991
|
*
|
|
992
|
+
* @browserapi EyeDropper https://developer.mozilla.org/en-US/docs/Web/API/EyeDropper
|
|
993
|
+
*
|
|
976
994
|
* @param {string} [initialValue=undefined] The initial value for the eye dropper
|
|
977
995
|
* @returns {UseEyeDropperReturn} An object containing the supported status, the value and the open method
|
|
978
996
|
*
|
|
@@ -1191,6 +1209,8 @@ declare const useFocus: UseFocus;
|
|
|
1191
1209
|
* @description - Hook that measures frames per second
|
|
1192
1210
|
* @category Sensors
|
|
1193
1211
|
*
|
|
1212
|
+
* @browserapi requestAnimationFrame https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
|
|
1213
|
+
*
|
|
1194
1214
|
* @returns {number} A number which determines frames per second
|
|
1195
1215
|
*
|
|
1196
1216
|
* @example
|
|
@@ -1254,6 +1274,37 @@ interface UseFullScreen {
|
|
|
1254
1274
|
*/
|
|
1255
1275
|
declare const useFullscreen: UseFullScreen;
|
|
1256
1276
|
|
|
1277
|
+
declare global {
|
|
1278
|
+
interface Gamepad {
|
|
1279
|
+
hapticActuators?: GamepadHapticActuator[];
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
/** The use gamepad return type */
|
|
1283
|
+
interface UseGamepadStateReturn {
|
|
1284
|
+
/** The gamepad active status */
|
|
1285
|
+
active: boolean;
|
|
1286
|
+
/** The gamepad state */
|
|
1287
|
+
gamepads: Gamepad[];
|
|
1288
|
+
/** The gamepad supported status */
|
|
1289
|
+
supported: boolean;
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* @name useGamepad
|
|
1293
|
+
* @description - Hook for getting information about gamepad
|
|
1294
|
+
* @category Browser
|
|
1295
|
+
*
|
|
1296
|
+
* @browserapi navigator.getGamepads https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getGamepads
|
|
1297
|
+
*
|
|
1298
|
+
* @returns {UseGamepadStateReturn} An object containing the gamepad information
|
|
1299
|
+
*
|
|
1300
|
+
* @example
|
|
1301
|
+
* const { supported, gamepads, active } = useGamepad();
|
|
1302
|
+
*/
|
|
1303
|
+
declare const useGamepad: () => {
|
|
1304
|
+
active: boolean;
|
|
1305
|
+
supported: boolean;
|
|
1306
|
+
gamepads: Gamepad[];
|
|
1307
|
+
};
|
|
1257
1308
|
declare const mapGamepadToXbox360Controller: (gamepad: Gamepad) => {
|
|
1258
1309
|
buttons: {
|
|
1259
1310
|
a: GamepadButton;
|
|
@@ -1291,36 +1342,6 @@ declare const mapGamepadToXbox360Controller: (gamepad: Gamepad) => {
|
|
|
1291
1342
|
start: GamepadButton;
|
|
1292
1343
|
};
|
|
1293
1344
|
|
|
1294
|
-
declare global {
|
|
1295
|
-
interface Gamepad {
|
|
1296
|
-
hapticActuators?: GamepadHapticActuator[];
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
/** The use gamepad return type */
|
|
1300
|
-
interface UseGamepadStateReturn {
|
|
1301
|
-
/** The gamepad active status */
|
|
1302
|
-
active: boolean;
|
|
1303
|
-
/** The gamepad state */
|
|
1304
|
-
gamepads: Gamepad[];
|
|
1305
|
-
/** The gamepad supported status */
|
|
1306
|
-
supported: boolean;
|
|
1307
|
-
}
|
|
1308
|
-
/**
|
|
1309
|
-
* @name useGamepad
|
|
1310
|
-
* @description - Hook for getting information about gamepad
|
|
1311
|
-
* @category Browser
|
|
1312
|
-
*
|
|
1313
|
-
* @returns {UseGamepadStateReturn} An object containing the gamepad information
|
|
1314
|
-
*
|
|
1315
|
-
* @example
|
|
1316
|
-
* const { supported, gamepads, active } = useGamepad();
|
|
1317
|
-
*/
|
|
1318
|
-
declare const useGamepad: () => {
|
|
1319
|
-
active: boolean;
|
|
1320
|
-
supported: boolean;
|
|
1321
|
-
gamepads: Gamepad[];
|
|
1322
|
-
};
|
|
1323
|
-
|
|
1324
1345
|
/** The use geolocation return type */
|
|
1325
1346
|
interface UseGeolocationReturn {
|
|
1326
1347
|
/** The accuracy of the last position update */
|
|
@@ -1351,6 +1372,8 @@ type UseGeolocationParams = PositionOptions;
|
|
|
1351
1372
|
* @description - Hook that returns the current geolocation
|
|
1352
1373
|
* @category Browser
|
|
1353
1374
|
*
|
|
1375
|
+
* @browserapi navigator.geolocation https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation
|
|
1376
|
+
*
|
|
1354
1377
|
* @param {boolean} [params.enableHighAccuracy] Enable high accuracy
|
|
1355
1378
|
* @param {number} [params.maximumAge] Maximum age
|
|
1356
1379
|
* @param {number} [params.timeout] Timeout
|
|
@@ -2026,6 +2049,8 @@ declare const useStorage: <Value>(key: string, params?: UseStorageInitialValue<V
|
|
|
2026
2049
|
* @description - Hook that manages local storage value
|
|
2027
2050
|
* @category Browser
|
|
2028
2051
|
*
|
|
2052
|
+
* @browserapi localStorage https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
|
|
2053
|
+
*
|
|
2029
2054
|
* @template Value The type of the value
|
|
2030
2055
|
* @param {string} key The key of the storage
|
|
2031
2056
|
* @param {UseStorageInitialValue<Value>} [initialValue] The initial value of the storage
|
|
@@ -2159,6 +2184,8 @@ declare const useMeasure: UseMeasureScreen;
|
|
|
2159
2184
|
* @description - Hook that manages a media query
|
|
2160
2185
|
* @category Browser
|
|
2161
2186
|
*
|
|
2187
|
+
* @browserapi window.matchMedia https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia
|
|
2188
|
+
*
|
|
2162
2189
|
* @param {string} query The media query string
|
|
2163
2190
|
* @returns {boolean} A boolean indicating if the media query matches
|
|
2164
2191
|
*
|
|
@@ -2188,6 +2215,8 @@ interface UseMemoryReturn {
|
|
|
2188
2215
|
* @description - Hook that gives you current memory usage
|
|
2189
2216
|
* @category Browser
|
|
2190
2217
|
*
|
|
2218
|
+
* @browserapi performance.memory https://developer.mozilla.org/en-US/docs/Web/API/Performance/memory
|
|
2219
|
+
*
|
|
2191
2220
|
* @returns {UseMemoryReturn} An object containing the current memory usage
|
|
2192
2221
|
*
|
|
2193
2222
|
* @example
|
|
@@ -2393,6 +2422,8 @@ declare const getConnection: () => Connection;
|
|
|
2393
2422
|
* @description - Hook to track network status
|
|
2394
2423
|
* @category Sensors
|
|
2395
2424
|
*
|
|
2425
|
+
* @browserapi navigator.connection https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection
|
|
2426
|
+
*
|
|
2396
2427
|
* @returns {UseNetworkReturn} An object containing the network status
|
|
2397
2428
|
*
|
|
2398
2429
|
* @example
|
|
@@ -2474,6 +2505,8 @@ declare const useOffsetPagination: ({ total, pageSize, initialPage, onPageChange
|
|
|
2474
2505
|
* @description - Hook that manages if the user is online
|
|
2475
2506
|
* @category Sensors
|
|
2476
2507
|
*
|
|
2508
|
+
* @browserapi navigator.onLine https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine
|
|
2509
|
+
*
|
|
2477
2510
|
* @returns {boolean} A boolean indicating if the user is online
|
|
2478
2511
|
*
|
|
2479
2512
|
* @example
|
|
@@ -2527,6 +2560,8 @@ interface UseOrientationReturn {
|
|
|
2527
2560
|
* @description - Hook that returns the current screen orientation
|
|
2528
2561
|
* @category Browser
|
|
2529
2562
|
*
|
|
2563
|
+
* @browserapi window.screen.orientation https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation
|
|
2564
|
+
*
|
|
2530
2565
|
* @returns {UseOrientationReturn} An object containing the current screen orientation
|
|
2531
2566
|
*
|
|
2532
2567
|
* @example
|
|
@@ -2565,6 +2600,8 @@ interface UseOtpCredential {
|
|
|
2565
2600
|
* @description - Hook that creates an otp credential
|
|
2566
2601
|
* @category Browser
|
|
2567
2602
|
*
|
|
2603
|
+
* @browserapi navigator.credentials https://developer.mozilla.org/en-US/docs/Web/API/Navigator/credentials
|
|
2604
|
+
*
|
|
2568
2605
|
* @overload
|
|
2569
2606
|
* @param {UseOtpCredentialCallback} callback The callback function to be invoked
|
|
2570
2607
|
* @returns {UseOtpCredentialReturn}
|
|
@@ -2755,7 +2792,9 @@ type UsePerformanceObserverOptions = PerformanceObserverInit & {
|
|
|
2755
2792
|
/**
|
|
2756
2793
|
* @name usePerformanceObserver
|
|
2757
2794
|
* @description - Hook that allows you to observe performance entries
|
|
2758
|
-
* @category
|
|
2795
|
+
* @category Sensors
|
|
2796
|
+
*
|
|
2797
|
+
* @browserapi PerformanceObserver https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver
|
|
2759
2798
|
*
|
|
2760
2799
|
* @param {UsePerformanceObserverOptions} options The options for the performance observer
|
|
2761
2800
|
* @param {PerformanceObserverCallback} callback The function to handle performance entries
|
|
@@ -2792,6 +2831,8 @@ interface UsePermissionReturn {
|
|
|
2792
2831
|
* @description - Hook that gives you the state of permission
|
|
2793
2832
|
* @category Browser
|
|
2794
2833
|
*
|
|
2834
|
+
* @browserapi navigator.permissions https://developer.mozilla.org/en-US/docs/Web/API/Navigator/permissions
|
|
2835
|
+
*
|
|
2795
2836
|
* @param {UsePermissionName} permissionDescriptorName - The permission name
|
|
2796
2837
|
* @param {boolean} [options.enabled=true] - Whether the permission is enabled
|
|
2797
2838
|
* @returns {UsePermissionReturn} An object containing the state and the supported status
|
|
@@ -2807,9 +2848,13 @@ declare const usePermission: (permissionDescriptorName: UsePermissionName, optio
|
|
|
2807
2848
|
|
|
2808
2849
|
/** The use pointer lock return type */
|
|
2809
2850
|
interface UsePointerLockReturn {
|
|
2851
|
+
/** The pointer lock element */
|
|
2810
2852
|
element?: Element;
|
|
2853
|
+
/** Whether the pointer lock is supported */
|
|
2811
2854
|
supported: boolean;
|
|
2855
|
+
/** Lock the pointer lock */
|
|
2812
2856
|
lock: (event: MouseEvent$1) => void;
|
|
2857
|
+
/** Unlock the pointer lock */
|
|
2813
2858
|
unlock: () => boolean;
|
|
2814
2859
|
}
|
|
2815
2860
|
/**
|
|
@@ -2817,6 +2862,8 @@ interface UsePointerLockReturn {
|
|
|
2817
2862
|
* @description - Hook that provides reactive pointer lock
|
|
2818
2863
|
* @category Sensors
|
|
2819
2864
|
*
|
|
2865
|
+
* @browserapi pointerLockElement https://developer.mozilla.org/en-US/docs/Web/API/Document/pointerLockElement
|
|
2866
|
+
*
|
|
2820
2867
|
* @returns {UsePointerLockReturn} An object containing the pointer lock element and functions to interact with the pointer lock
|
|
2821
2868
|
*
|
|
2822
2869
|
* @example
|
|
@@ -2884,6 +2931,8 @@ declare const usePreferredDark: () => boolean;
|
|
|
2884
2931
|
* @description Hook that returns a browser preferred languages from navigator
|
|
2885
2932
|
* @category Browser
|
|
2886
2933
|
*
|
|
2934
|
+
* @browserapi navigator.languages https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages
|
|
2935
|
+
*
|
|
2887
2936
|
* @returns {readonly string[]} An array of strings representing the user's preferred languages
|
|
2888
2937
|
*
|
|
2889
2938
|
* @example
|
|
@@ -2980,6 +3029,8 @@ interface UseRafReturn {
|
|
|
2980
3029
|
* @description - Hook that defines the logic for raf callback
|
|
2981
3030
|
* @category Utilities
|
|
2982
3031
|
*
|
|
3032
|
+
* @browserapi requestAnimationFrame https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
|
|
3033
|
+
*
|
|
2983
3034
|
* @param {UseRafCallback} callback The callback to execute
|
|
2984
3035
|
* @param {number} [options.delay] The delay between each frame in milliseconds
|
|
2985
3036
|
* @param {boolean} [options.enabled=true] Whether the callback should be enabled
|
|
@@ -3076,6 +3127,8 @@ interface UseResizeObserver {
|
|
|
3076
3127
|
* @description - Hook that gives you resize observer state
|
|
3077
3128
|
* @category Browser
|
|
3078
3129
|
*
|
|
3130
|
+
* @browserapi ResizeObserver https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver
|
|
3131
|
+
*
|
|
3079
3132
|
* @overload
|
|
3080
3133
|
* @template Target The target element
|
|
3081
3134
|
* @param {boolean} [options.enabled=true] The IntersectionObserver options
|
|
@@ -3126,6 +3179,8 @@ interface useScreenOrientationReturn {
|
|
|
3126
3179
|
* @description - Hook that provides the current screen orientation
|
|
3127
3180
|
* @category Sensors
|
|
3128
3181
|
*
|
|
3182
|
+
* @browserapi screen.orientation https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation
|
|
3183
|
+
*
|
|
3129
3184
|
* @returns {useScreenOrientationReturn} The current screen orientation
|
|
3130
3185
|
*
|
|
3131
3186
|
* @example
|
|
@@ -3195,8 +3250,14 @@ interface UseScrollCallbackParams {
|
|
|
3195
3250
|
interface UseScroll {
|
|
3196
3251
|
<Target extends UseScrollTarget>(target: Target, callback?: (params: UseScrollCallbackParams, event: Event) => void): boolean;
|
|
3197
3252
|
<Target extends UseScrollTarget>(target: Target, options?: UseScrollOptions): boolean;
|
|
3198
|
-
<Target extends UseScrollTarget>(callback?: (params: UseScrollCallbackParams, event: Event) => void, target?: never):
|
|
3199
|
-
|
|
3253
|
+
<Target extends UseScrollTarget>(callback?: (params: UseScrollCallbackParams, event: Event) => void, target?: never): {
|
|
3254
|
+
ref: StateRef<Target>;
|
|
3255
|
+
scrolling: boolean;
|
|
3256
|
+
};
|
|
3257
|
+
<Target extends UseScrollTarget>(options?: UseScrollOptions, target?: never): {
|
|
3258
|
+
ref: StateRef<Target>;
|
|
3259
|
+
scrolling: boolean;
|
|
3260
|
+
};
|
|
3200
3261
|
}
|
|
3201
3262
|
/**
|
|
3202
3263
|
* @name useScroll
|
|
@@ -3238,7 +3299,7 @@ interface UseScroll {
|
|
|
3238
3299
|
* @returns {[StateRef<Target>, boolean]} The state of scrolling
|
|
3239
3300
|
*
|
|
3240
3301
|
* @example
|
|
3241
|
-
* const
|
|
3302
|
+
* const { ref, scrolling } = useScroll(options);
|
|
3242
3303
|
*
|
|
3243
3304
|
* @overload
|
|
3244
3305
|
* @template Target The target element
|
|
@@ -3247,7 +3308,7 @@ interface UseScroll {
|
|
|
3247
3308
|
* @returns {[StateRef<Target>, boolean]} The state of scrolling
|
|
3248
3309
|
*
|
|
3249
3310
|
* @example
|
|
3250
|
-
* const
|
|
3311
|
+
* const { ref, scrolling } = useScroll(() => console.log('callback'));
|
|
3251
3312
|
*/
|
|
3252
3313
|
declare const useScroll: UseScroll;
|
|
3253
3314
|
|
|
@@ -3362,6 +3423,8 @@ declare const useScrollTo: UseScrollTo;
|
|
|
3362
3423
|
* @description - Hook that manages session storage value
|
|
3363
3424
|
* @category Browser
|
|
3364
3425
|
*
|
|
3426
|
+
* @browserapi sessionStorage https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage
|
|
3427
|
+
*
|
|
3365
3428
|
* @template Value The type of the value
|
|
3366
3429
|
* @param {string} key The key of the storage
|
|
3367
3430
|
* @param {UseStorageInitialValue<Value>} [initialValue] The initial value of the storage
|
|
@@ -3651,6 +3714,8 @@ interface UseTextSelectionReturn {
|
|
|
3651
3714
|
* @description - Hook that manages the text selection
|
|
3652
3715
|
* @category Sensors
|
|
3653
3716
|
*
|
|
3717
|
+
* @browserapi document.getSelection https://developer.mozilla.org/en-US/docs/Web/API/Document/getSelection
|
|
3718
|
+
*
|
|
3654
3719
|
* @returns {UseTextSelectionReturn} An object containing the current text selection
|
|
3655
3720
|
*
|
|
3656
3721
|
* @example
|
|
@@ -3660,7 +3725,7 @@ declare const useTextSelection: () => UseTextSelectionReturn;
|
|
|
3660
3725
|
|
|
3661
3726
|
/**
|
|
3662
3727
|
* @name useThrottleCallback
|
|
3663
|
-
* @description - Hook that creates a throttled callback
|
|
3728
|
+
* @description - Hook that creates a throttled callback
|
|
3664
3729
|
* @category Utilities
|
|
3665
3730
|
*
|
|
3666
3731
|
* @template Params The type of the params
|
|
@@ -3676,7 +3741,7 @@ declare const useThrottleCallback: <Params extends unknown[], Return>(callback:
|
|
|
3676
3741
|
|
|
3677
3742
|
/**
|
|
3678
3743
|
* @name useThrottleValue
|
|
3679
|
-
* @description - Hook that creates a throttled value
|
|
3744
|
+
* @description - Hook that creates a throttled value
|
|
3680
3745
|
* @category Utilities
|
|
3681
3746
|
*
|
|
3682
3747
|
* @template Value The type of the value
|
|
@@ -3851,6 +3916,8 @@ interface UseVibrateReturn {
|
|
|
3851
3916
|
* @description - Hook that provides vibrate api
|
|
3852
3917
|
* @category Browser
|
|
3853
3918
|
*
|
|
3919
|
+
* @browserapi navigator.vibrate https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate
|
|
3920
|
+
*
|
|
3854
3921
|
* @overload
|
|
3855
3922
|
* @param {UseVibratePattern} options.pattern The pattern for vibration
|
|
3856
3923
|
* @param {number} [options.interval=0] Time in milliseconds between vibrations
|
|
@@ -3888,7 +3955,7 @@ interface UseWebSocketReturn {
|
|
|
3888
3955
|
/**
|
|
3889
3956
|
* @name useWebSocket
|
|
3890
3957
|
* @description - Hook that connects to a WebSocket server and handles incoming and outgoing messages
|
|
3891
|
-
* @category
|
|
3958
|
+
* @category Browser
|
|
3892
3959
|
*
|
|
3893
3960
|
* @param {UseWebSocketUrl} url The URL of the WebSocket server
|
|
3894
3961
|
* @param {(webSocket: WebSocket) => void} [options.onConnected] The callback function that is called when the WebSocket connection is established
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers-C-GU1yny.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.99 */
|
|
2
|
-
"use strict";exports.mapGamepadToXbox360Controller=function(t){return{buttons:{a:t.buttons[0],b:t.buttons[1],x:t.buttons[2],y:t.buttons[3]},bumper:{left:t.buttons[4],right:t.buttons[5]},triggers:{left:t.buttons[6],right:t.buttons[7]},stick:{left:{horizontal:t.axes[0],vertical:t.axes[1],button:t.buttons[10]},right:{horizontal:t.axes[2],vertical:t.axes[3],button:t.buttons[11]}},dpad:{up:t.buttons[12],down:t.buttons[13],left:t.buttons[14],right:t.buttons[15]},back:t.buttons[8],start:t.buttons[9]}};
|
|
3
|
-
//# sourceMappingURL=mapGamepadToXbox360Controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapGamepadToXbox360Controller.js","sources":["../../../../../src/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.ts"],"sourcesContent":["export const mapGamepadToXbox360Controller = (gamepad: Gamepad) => ({\n buttons: {\n a: gamepad.buttons[0],\n b: gamepad.buttons[1],\n x: gamepad.buttons[2],\n y: gamepad.buttons[3]\n },\n bumper: {\n left: gamepad.buttons[4],\n right: gamepad.buttons[5]\n },\n triggers: {\n left: gamepad.buttons[6],\n right: gamepad.buttons[7]\n },\n stick: {\n left: {\n horizontal: gamepad.axes[0],\n vertical: gamepad.axes[1],\n button: gamepad.buttons[10]\n },\n right: {\n horizontal: gamepad.axes[2],\n vertical: gamepad.axes[3],\n button: gamepad.buttons[11]\n }\n },\n dpad: {\n up: gamepad.buttons[12],\n down: gamepad.buttons[13],\n left: gamepad.buttons[14],\n right: gamepad.buttons[15]\n },\n back: gamepad.buttons[8],\n start: gamepad.buttons[9]\n});\n"],"names":["gamepad","buttons","a","b","x","y","bumper","left","right","triggers","stick","horizontal","axes","vertical","button","dpad","up","down","back","start"],"mappings":";mDAA6C,SAACA,GAAgB,MAAM,CAClEC,QAAS,CACPC,EAAGF,EAAQC,QAAQ,GACnBE,EAAGH,EAAQC,QAAQ,GACnBG,EAAGJ,EAAQC,QAAQ,GACnBI,EAAGL,EAAQC,QAAQ,IAErBK,OAAQ,CACNC,KAAMP,EAAQC,QAAQ,GACtBO,MAAOR,EAAQC,QAAQ,IAEzBQ,SAAU,CACRF,KAAMP,EAAQC,QAAQ,GACtBO,MAAOR,EAAQC,QAAQ,IAEzBS,MAAO,CACLH,KAAM,CACJI,WAAYX,EAAQY,KAAK,GACzBC,SAAUb,EAAQY,KAAK,GACvBE,OAAQd,EAAQC,QAAQ,KAE1BO,MAAO,CACLG,WAAYX,EAAQY,KAAK,GACzBC,SAAUb,EAAQY,KAAK,GACvBE,OAAQd,EAAQC,QAAQ,MAG5Bc,KAAM,CACJC,GAAIhB,EAAQC,QAAQ,IACpBgB,KAAMjB,EAAQC,QAAQ,IACtBM,KAAMP,EAAQC,QAAQ,IACtBO,MAAOR,EAAQC,QAAQ,KAEzBiB,KAAMlB,EAAQC,QAAQ,GACtBkB,MAAOnB,EAAQC,QAAQ,GACxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers-D_XDB4a1.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* @license @siberiacancode/reactuse v0.0.99 */
|
|
2
|
-
var t=function(t){return{buttons:{a:t.buttons[0],b:t.buttons[1],x:t.buttons[2],y:t.buttons[3]},bumper:{left:t.buttons[4],right:t.buttons[5]},triggers:{left:t.buttons[6],right:t.buttons[7]},stick:{left:{horizontal:t.axes[0],vertical:t.axes[1],button:t.buttons[10]},right:{horizontal:t.axes[2],vertical:t.axes[3],button:t.buttons[11]}},dpad:{up:t.buttons[12],down:t.buttons[13],left:t.buttons[14],right:t.buttons[15]},back:t.buttons[8],start:t.buttons[9]}};export{t as mapGamepadToXbox360Controller};
|
|
3
|
-
//# sourceMappingURL=mapGamepadToXbox360Controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapGamepadToXbox360Controller.js","sources":["../../../../../src/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.ts"],"sourcesContent":["export const mapGamepadToXbox360Controller = (gamepad: Gamepad) => ({\n buttons: {\n a: gamepad.buttons[0],\n b: gamepad.buttons[1],\n x: gamepad.buttons[2],\n y: gamepad.buttons[3]\n },\n bumper: {\n left: gamepad.buttons[4],\n right: gamepad.buttons[5]\n },\n triggers: {\n left: gamepad.buttons[6],\n right: gamepad.buttons[7]\n },\n stick: {\n left: {\n horizontal: gamepad.axes[0],\n vertical: gamepad.axes[1],\n button: gamepad.buttons[10]\n },\n right: {\n horizontal: gamepad.axes[2],\n vertical: gamepad.axes[3],\n button: gamepad.buttons[11]\n }\n },\n dpad: {\n up: gamepad.buttons[12],\n down: gamepad.buttons[13],\n left: gamepad.buttons[14],\n right: gamepad.buttons[15]\n },\n back: gamepad.buttons[8],\n start: gamepad.buttons[9]\n});\n"],"names":["mapGamepadToXbox360Controller","gamepad","buttons","a","b","x","y","bumper","left","right","triggers","stick","horizontal","axes","vertical","button","dpad","up","down","back","start"],"mappings":";IAAaA,EAAgC,SAACC,GAAgB,MAAM,CAClEC,QAAS,CACPC,EAAGF,EAAQC,QAAQ,GACnBE,EAAGH,EAAQC,QAAQ,GACnBG,EAAGJ,EAAQC,QAAQ,GACnBI,EAAGL,EAAQC,QAAQ,IAErBK,OAAQ,CACNC,KAAMP,EAAQC,QAAQ,GACtBO,MAAOR,EAAQC,QAAQ,IAEzBQ,SAAU,CACRF,KAAMP,EAAQC,QAAQ,GACtBO,MAAOR,EAAQC,QAAQ,IAEzBS,MAAO,CACLH,KAAM,CACJI,WAAYX,EAAQY,KAAK,GACzBC,SAAUb,EAAQY,KAAK,GACvBE,OAAQd,EAAQC,QAAQ,KAE1BO,MAAO,CACLG,WAAYX,EAAQY,KAAK,GACzBC,SAAUb,EAAQY,KAAK,GACvBE,OAAQd,EAAQC,QAAQ,MAG5Bc,KAAM,CACJC,GAAIhB,EAAQC,QAAQ,IACpBgB,KAAMjB,EAAQC,QAAQ,IACtBM,KAAMP,EAAQC,QAAQ,IACtBO,MAAOR,EAAQC,QAAQ,KAEzBiB,KAAMlB,EAAQC,QAAQ,GACtBkB,MAAOnB,EAAQC,QAAQ,GACxB"}
|