@siberiacancode/reactuse 0.0.81 → 0.0.83

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.
Files changed (294) hide show
  1. package/dist/cjs/{_rollupPluginBabelHelpers-C9Oih4Du.js → _rollupPluginBabelHelpers-C6yks7ns.js} +2 -2
  2. package/dist/cjs/_rollupPluginBabelHelpers-C6yks7ns.js.map +1 -0
  3. package/dist/cjs/hooks/index.js +2 -2
  4. package/dist/cjs/hooks/useActiveElement/useActiveElement.js +2 -2
  5. package/dist/cjs/hooks/useAsync/useAsync.js +2 -2
  6. package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
  7. package/dist/cjs/hooks/useBluetooth/useBluetooth.js +2 -2
  8. package/dist/cjs/hooks/useBluetooth/useBluetooth.js.map +1 -1
  9. package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
  10. package/dist/cjs/hooks/useBreakpoints/constants/breakpoints.js +1 -1
  11. package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
  12. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  13. package/dist/cjs/hooks/useClickOutside/useClickOutside.js +2 -2
  14. package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
  15. package/dist/cjs/hooks/useConst/useConst.js +1 -1
  16. package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
  17. package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
  18. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  19. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js.map +1 -1
  20. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
  21. package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
  22. package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  23. package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  24. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
  25. package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
  26. package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  27. package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  28. package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  29. package/dist/cjs/hooks/useElementSize/useElementSize.js +2 -2
  30. package/dist/cjs/hooks/useElementSize/useElementSize.js.map +1 -1
  31. package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
  32. package/dist/cjs/hooks/useEventListener/useEventListener.js +2 -2
  33. package/dist/cjs/hooks/useEventListener/useEventListener.js.map +1 -1
  34. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
  35. package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
  36. package/dist/cjs/hooks/useField/useField.js +2 -2
  37. package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
  38. package/dist/cjs/hooks/useFocus/useFocus.js +2 -2
  39. package/dist/cjs/hooks/useFocus/useFocus.js.map +1 -1
  40. package/dist/cjs/hooks/useFps/useFps.js +2 -2
  41. package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
  42. package/dist/cjs/hooks/useFullscreen/useFullscreen.js.map +1 -1
  43. package/dist/cjs/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +1 -1
  44. package/dist/cjs/hooks/useGamepad/useGamepad.js +2 -2
  45. package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
  46. package/dist/cjs/hooks/useGeolocation/useGeolocation.js.map +1 -1
  47. package/dist/cjs/hooks/useHash/useHash.js +2 -2
  48. package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
  49. package/dist/cjs/hooks/useHover/useHover.js +2 -2
  50. package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
  51. package/dist/cjs/hooks/useImage/useImage.js +2 -2
  52. package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  53. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  54. package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
  55. package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  56. package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  57. package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
  58. package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  59. package/dist/cjs/hooks/useKeyboard/useKeyboard.js +2 -2
  60. package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
  61. package/dist/cjs/hooks/useLastChanged/useLastChanged.js +2 -2
  62. package/dist/cjs/hooks/useLatest/useLatest.js +1 -1
  63. package/dist/cjs/hooks/useList/useList.js +2 -2
  64. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
  65. package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
  66. package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
  67. package/dist/cjs/hooks/useMap/useMap.js +2 -2
  68. package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
  69. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
  70. package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
  71. package/dist/cjs/hooks/useMount/useMount.js +1 -1
  72. package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
  73. package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
  74. package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
  75. package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
  76. package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  77. package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
  78. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
  79. package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
  80. package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
  81. package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
  82. package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
  83. package/dist/cjs/hooks/usePaint/helpers/Paint.js +2 -2
  84. package/dist/cjs/hooks/usePaint/helpers/Pointer.js +2 -2
  85. package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
  86. package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
  87. package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
  88. package/dist/cjs/hooks/usePointerLock/usePointerLock.js +2 -2
  89. package/dist/cjs/hooks/usePointerLock/usePointerLock.js.map +1 -1
  90. package/dist/cjs/hooks/usePostMessage/usePostMessage.js +1 -1
  91. package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  92. package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  93. package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
  94. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  95. package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  96. package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
  97. package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
  98. package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
  99. package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
  100. package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
  101. package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
  102. package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
  103. package/dist/cjs/hooks/useRerender/useRerender.js +2 -2
  104. package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js +2 -2
  105. package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  106. package/dist/cjs/hooks/useScript/useScript.js +2 -2
  107. package/dist/cjs/hooks/useScroll/useScroll.js +2 -2
  108. package/dist/cjs/hooks/useScroll/useScroll.js.map +1 -1
  109. package/dist/cjs/hooks/useScrollTo/useScrollTo.js +2 -2
  110. package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
  111. package/dist/cjs/hooks/useSet/useSet.js +2 -2
  112. package/dist/cjs/hooks/useShare/useShare.js +2 -2
  113. package/dist/cjs/hooks/useStep/useStep.js +2 -2
  114. package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
  115. package/dist/cjs/hooks/useStopwatch/useStopwatch.js.map +1 -1
  116. package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
  117. package/dist/cjs/hooks/useTextDirection/useTextDirection.js +2 -2
  118. package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
  119. package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js +3 -0
  120. package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js.map +1 -0
  121. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js +3 -0
  122. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js.map +1 -0
  123. package/dist/cjs/hooks/useTime/useTime.js +2 -2
  124. package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
  125. package/dist/cjs/hooks/useTimer/useTimer.js +2 -2
  126. package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
  127. package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
  128. package/dist/cjs/hooks/useVibrate/useVibrate.js +2 -2
  129. package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
  130. package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +2 -2
  131. package/dist/cjs/hooks/useWindowFocus/useWindowFocus.js +2 -2
  132. package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
  133. package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
  134. package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
  135. package/dist/cjs/index.js +2 -2
  136. package/dist/cjs/utils/helpers/debounce.js +1 -1
  137. package/dist/cjs/utils/helpers/getElement.js +1 -1
  138. package/dist/cjs/utils/helpers/getRetry.js +1 -1
  139. package/dist/cjs/utils/helpers/index.js +1 -1
  140. package/dist/cjs/utils/helpers/isClient.js +1 -1
  141. package/dist/cjs/utils/helpers/isTarget.js +1 -1
  142. package/dist/cjs/utils/helpers/throttle.js +1 -1
  143. package/dist/cjs/utils/helpers/time/getDate.js +1 -1
  144. package/dist/esm/{_rollupPluginBabelHelpers-CIijGS7V.js → _rollupPluginBabelHelpers-Dugjabfg.js} +2 -2
  145. package/dist/esm/_rollupPluginBabelHelpers-Dugjabfg.js.map +1 -0
  146. package/dist/esm/hooks/index.js +2 -2
  147. package/dist/esm/hooks/useActiveElement/useActiveElement.js +2 -2
  148. package/dist/esm/hooks/useAsync/useAsync.js +2 -2
  149. package/dist/esm/hooks/useBattery/useBattery.js +2 -2
  150. package/dist/esm/hooks/useBluetooth/useBluetooth.js +2 -2
  151. package/dist/esm/hooks/useBluetooth/useBluetooth.js.map +1 -1
  152. package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
  153. package/dist/esm/hooks/useBreakpoints/constants/breakpoints.js +1 -1
  154. package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
  155. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  156. package/dist/esm/hooks/useClickOutside/useClickOutside.js +2 -2
  157. package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
  158. package/dist/esm/hooks/useConst/useConst.js +1 -1
  159. package/dist/esm/hooks/useCounter/useCounter.js +2 -2
  160. package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
  161. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  162. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js.map +1 -1
  163. package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
  164. package/dist/esm/hooks/useDefault/useDefault.js +2 -2
  165. package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  166. package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  167. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
  168. package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
  169. package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  170. package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  171. package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  172. package/dist/esm/hooks/useElementSize/useElementSize.js +2 -2
  173. package/dist/esm/hooks/useElementSize/useElementSize.js.map +1 -1
  174. package/dist/esm/hooks/useEvent/useEvent.js +1 -1
  175. package/dist/esm/hooks/useEventListener/useEventListener.js +2 -2
  176. package/dist/esm/hooks/useEventListener/useEventListener.js.map +1 -1
  177. package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
  178. package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
  179. package/dist/esm/hooks/useField/useField.js +2 -2
  180. package/dist/esm/hooks/useFileDialog/useFileDialog.js +2 -2
  181. package/dist/esm/hooks/useFocus/useFocus.js +2 -2
  182. package/dist/esm/hooks/useFocus/useFocus.js.map +1 -1
  183. package/dist/esm/hooks/useFps/useFps.js +2 -2
  184. package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
  185. package/dist/esm/hooks/useFullscreen/useFullscreen.js.map +1 -1
  186. package/dist/esm/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +1 -1
  187. package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
  188. package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
  189. package/dist/esm/hooks/useGeolocation/useGeolocation.js.map +1 -1
  190. package/dist/esm/hooks/useHash/useHash.js +2 -2
  191. package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
  192. package/dist/esm/hooks/useHover/useHover.js +2 -2
  193. package/dist/esm/hooks/useIdle/useIdle.js +2 -2
  194. package/dist/esm/hooks/useImage/useImage.js +2 -2
  195. package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  196. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  197. package/dist/esm/hooks/useInterval/useInterval.js +2 -2
  198. package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  199. package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  200. package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
  201. package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  202. package/dist/esm/hooks/useKeyboard/useKeyboard.js +2 -2
  203. package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
  204. package/dist/esm/hooks/useLastChanged/useLastChanged.js +2 -2
  205. package/dist/esm/hooks/useLatest/useLatest.js +1 -1
  206. package/dist/esm/hooks/useList/useList.js +2 -2
  207. package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
  208. package/dist/esm/hooks/useLogger/useLogger.js +2 -2
  209. package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
  210. package/dist/esm/hooks/useMap/useMap.js +2 -2
  211. package/dist/esm/hooks/useMeasure/useMeasure.js +2 -2
  212. package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
  213. package/dist/esm/hooks/useMemory/useMemory.js +2 -2
  214. package/dist/esm/hooks/useMount/useMount.js +1 -1
  215. package/dist/esm/hooks/useMouse/useMouse.js +2 -2
  216. package/dist/esm/hooks/useMutation/useMutation.js +2 -2
  217. package/dist/esm/hooks/useMutationObserver/useMutationObserver.js +2 -2
  218. package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
  219. package/dist/esm/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  220. package/dist/esm/hooks/useOnline/useOnline.js +1 -1
  221. package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
  222. package/dist/esm/hooks/useOptimistic/useOptimistic.js +2 -2
  223. package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
  224. package/dist/esm/hooks/useOtpCredential/useOtpCredential.js +2 -2
  225. package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
  226. package/dist/esm/hooks/usePaint/helpers/Paint.js +2 -2
  227. package/dist/esm/hooks/usePaint/helpers/Pointer.js +2 -2
  228. package/dist/esm/hooks/usePaint/usePaint.js +2 -2
  229. package/dist/esm/hooks/useParallax/useParallax.js +2 -2
  230. package/dist/esm/hooks/usePermission/usePermission.js +2 -2
  231. package/dist/esm/hooks/usePointerLock/usePointerLock.js +2 -2
  232. package/dist/esm/hooks/usePointerLock/usePointerLock.js.map +1 -1
  233. package/dist/esm/hooks/usePostMessage/usePostMessage.js +1 -1
  234. package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  235. package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  236. package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
  237. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  238. package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  239. package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
  240. package/dist/esm/hooks/useQuery/useQuery.js +2 -2
  241. package/dist/esm/hooks/useQueue/useQueue.js +2 -2
  242. package/dist/esm/hooks/useRaf/useRaf.js +2 -2
  243. package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
  244. package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
  245. package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
  246. package/dist/esm/hooks/useRerender/useRerender.js +2 -2
  247. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
  248. package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  249. package/dist/esm/hooks/useScript/useScript.js +2 -2
  250. package/dist/esm/hooks/useScroll/useScroll.js +2 -2
  251. package/dist/esm/hooks/useScroll/useScroll.js.map +1 -1
  252. package/dist/esm/hooks/useScrollTo/useScrollTo.js +2 -2
  253. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
  254. package/dist/esm/hooks/useSet/useSet.js +2 -2
  255. package/dist/esm/hooks/useShare/useShare.js +2 -2
  256. package/dist/esm/hooks/useStep/useStep.js +2 -2
  257. package/dist/esm/hooks/useStopwatch/useStopwatch.js +2 -2
  258. package/dist/esm/hooks/useStopwatch/useStopwatch.js.map +1 -1
  259. package/dist/esm/hooks/useStorage/useStorage.js +2 -2
  260. package/dist/esm/hooks/useTextDirection/useTextDirection.js +2 -2
  261. package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
  262. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js +3 -0
  263. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js.map +1 -0
  264. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js +3 -0
  265. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js.map +1 -0
  266. package/dist/esm/hooks/useTime/useTime.js +2 -2
  267. package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
  268. package/dist/esm/hooks/useTimer/useTimer.js +2 -2
  269. package/dist/esm/hooks/useToggle/useToggle.js +2 -2
  270. package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
  271. package/dist/esm/hooks/useVibrate/useVibrate.js +2 -2
  272. package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
  273. package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +2 -2
  274. package/dist/esm/hooks/useWindowFocus/useWindowFocus.js +2 -2
  275. package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
  276. package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
  277. package/dist/esm/hooks/useWizard/useWizard.js +2 -2
  278. package/dist/esm/index.js +2 -2
  279. package/dist/esm/utils/helpers/debounce.js +1 -1
  280. package/dist/esm/utils/helpers/getElement.js +1 -1
  281. package/dist/esm/utils/helpers/getRetry.js +1 -1
  282. package/dist/esm/utils/helpers/index.js +1 -1
  283. package/dist/esm/utils/helpers/isClient.js +1 -1
  284. package/dist/esm/utils/helpers/isTarget.js +1 -1
  285. package/dist/esm/utils/helpers/throttle.js +1 -1
  286. package/dist/esm/utils/helpers/time/getDate.js +1 -1
  287. package/dist/types/index.d.ts +86 -19
  288. package/package.json +114 -108
  289. package/dist/cjs/_rollupPluginBabelHelpers-C9Oih4Du.js.map +0 -1
  290. package/dist/cjs/index-BiXFlYaY.js +0 -3
  291. package/dist/cjs/index-BiXFlYaY.js.map +0 -1
  292. package/dist/esm/_rollupPluginBabelHelpers-CIijGS7V.js.map +0 -1
  293. package/dist/esm/index-DJBW4urx.js +0 -3
  294. package/dist/esm/index-DJBW4urx.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useStopwatch.js","sources":["../../../../src/hooks/useStopwatch/useStopwatch.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nimport { useEvent } from '@/hooks';\n\nconst getStopwatchTime = (time: number) => {\n if (!time)\n return {\n days: 0,\n hours: 0,\n minutes: 0,\n seconds: 0,\n count: 0\n };\n\n const days = Math.floor(time / 86400);\n const hours = Math.floor((time % 86400) / 3600);\n const minutes = Math.floor((time % 3600) / 60);\n const seconds = Math.floor(time % 60);\n\n return { days, hours, minutes, seconds, count: time };\n};\n\n/** The use stopwatch return type */\nexport interface UseStopwatchReturn {\n /** The total count of the stopwatch */\n count: number;\n /** The day count of the stopwatch */\n days: number;\n /** The hour count of the stopwatch */\n hours: number;\n /** The minute count of the stopwatch */\n minutes: number;\n /** The over state of the stopwatch */\n over: boolean;\n /** The paused state of the stopwatch */\n paused: boolean;\n /** The second count of the stopwatch */\n seconds: number;\n /** The function to pause the stopwatch */\n pause: () => void;\n /** The function to reset the stopwatch */\n reset: () => void;\n /** The function to start the stopwatch */\n start: () => void;\n /** The function to toggle the stopwatch */\n toggle: () => void;\n}\n\n/** The use stopwatch options */\nexport interface UseStopwatchOptions {\n /** The enabled state of the timer */\n enabled?: boolean;\n}\n\ninterface UseStopwatch {\n (initialTime?: number, options?: UseStopwatchOptions): UseStopwatchReturn;\n (options?: UseStopwatchOptions & { initialTime?: number }): UseStopwatchReturn;\n}\n/**\n * @name useStopwatch\n * @description - Hook that creates a stopwatch functionality\n * @category Time\n *\n * @overload\n * @param {number} [initialTime=0] The initial time of the timer\n * @param {boolean} [options.enabled=true] The enabled state of the timer\n * @returns {UseStopwatchReturn} An object containing the current time and functions to interact with the timer\n *\n * @example\n * const { seconds, minutes, start, pause, reset } = useStopwatch(1000, { enabled: false });\n *\n * @overload\n * @param {number} [options.initialTime=0] -The initial time of the timer\n * @param {boolean} [options.enabled=true] The enabled state of the timer\n * @returns {UseStopwatchReturn} An object containing the current time and functions to interact with the timer\n *\n * @example\n * const { seconds, minutes, start, pause, reset } = useStopwatch({ initialTime: 1000, enabled: false });\n */\nexport const useStopwatch = ((...params: any[]) => {\n const initialTime =\n (typeof params[0] === 'number'\n ? (params[0] as number | undefined)\n : (params[0] as UseStopwatchOptions & { initialTime?: number })?.initialTime) ?? 0;\n\n const options =\n typeof params[0] === 'number'\n ? (params[1] as UseStopwatchOptions | undefined)\n : (params[0] as (UseStopwatchOptions & { initialTime?: number }) | undefined);\n\n const [time, setTime] = useState(getStopwatchTime(initialTime));\n const [paused, setPaused] = useState(!options?.enabled);\n\n const onInterval = useEvent(() => {\n const updatedCount = time.count + 1;\n\n if (updatedCount % 60 === 0) {\n return setTime({\n ...time,\n minutes: time.minutes + 1,\n seconds: 0,\n count: updatedCount\n });\n }\n\n if (updatedCount % (60 * 60) === 0) {\n return setTime({\n ...time,\n hours: time.hours + 1,\n minutes: 0,\n seconds: 0,\n count: updatedCount\n });\n }\n\n if (updatedCount % (60 * 60 * 24) === 0) {\n return setTime({\n ...time,\n days: time.days + 1,\n hours: 0,\n minutes: 0,\n seconds: 0,\n count: updatedCount\n });\n }\n\n setTime({\n ...time,\n seconds: time.seconds + 1,\n count: updatedCount\n });\n });\n\n useEffect(() => {\n if (paused) return;\n const interval = setInterval(() => onInterval(), 1000);\n return () => clearInterval(interval);\n }, [paused]);\n\n return {\n ...time,\n paused,\n pause: () => setPaused(true),\n start: () => setPaused(false),\n reset: () => setTime(getStopwatchTime(initialTime)),\n toggle: () => setPaused((prevPause) => !prevPause)\n };\n}) as UseStopwatch;\n"],"names":["getStopwatchTime","time","days","Math","floor","hours","minutes","seconds","count","useStopwatch","_ref","_params$","_len","arguments","length","params","Array","_key","initialTime","options","_useState","useState","_useState2","_slicedToArray","setTime","_useState3","enabled","_useState4","paused","setPaused","onInterval","useEvent","updatedCount","_objectSpread","useEffect","interval","setInterval","clearInterval","pause","start","reset","toggle","prevPause"],"mappings":";oQAIA,IAAMA,EAAmB,SAACC,GACxB,OAAKA,EAcE,CAAEC,KALIC,KAAKC,MAAMH,EAAO,OAKhBI,MAJDF,KAAKC,MAAOH,EAAO,MAAS,MAIpBK,QAHNH,KAAKC,MAAOH,EAAO,KAAQ,IAGZM,QAFfJ,KAAKC,MAAMH,EAAO,IAEMO,MAAOP,GAbtC,CACLC,KAAM,EACNG,MAAO,EACPC,QAAS,EACTC,QAAS,EACTC,MAAO,EASb,EA2DaC,EAAgB,WAAsB,IAAA,IAAAC,EAAAC,EAAAC,EAAAC,UAAAC,OAAlBC,EAAMC,IAAAA,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAANF,EAAME,GAAAJ,UAAAI,GACrC,IAAMC,EAG0ER,QAH/DA,EACO,iBAAdK,EAAO,GACVA,EAAO,WAAEJ,EACTI,EAAO,UAAE,IAAAJ,OAAA,EAAVA,EAA+DO,mBAAWR,IAAAA,EAAAA,EAAK,EAE/ES,EACiB,iBAAdJ,EAAO,GACTA,EAAO,GACPA,EAAO,GAEdK,EAAwBC,EAASrB,EAAiBkB,IAAaI,EAAAC,EAAAH,EAAA,GAAxDnB,EAAIqB,EAAA,GAAEE,EAAOF,EAAA,GACpBG,EAA4BJ,IAAUF,SAAAA,EAASO,UAAQC,EAAAJ,EAAAE,EAAA,GAAhDG,EAAMD,EAAA,GAAEE,EAASF,EAAA,GAElBG,EAAaC,GAAS,WAC1B,IAAMC,EAAe/B,EAAKO,MAAQ,EAElC,OAAIwB,EAAe,IAAO,EACjBR,EAAOS,EAAAA,KACThC,GAAI,GAAA,CACPK,QAASL,EAAKK,QAAU,EACxBC,QAAS,EACTC,MAAOwB,KAIPA,EAAgB,MAAa,EACxBR,EAAOS,EAAAA,KACThC,GAAI,GAAA,CACPI,MAAOJ,EAAKI,MAAQ,EACpBC,QAAS,EACTC,QAAS,EACTC,MAAOwB,KAIPA,EAAY,OAAsB,EAC7BR,EAAOS,EAAAA,KACThC,GAAI,GAAA,CACPC,KAAMD,EAAKC,KAAO,EAClBG,MAAO,EACPC,QAAS,EACTC,QAAS,EACTC,MAAOwB,UAIXR,EAAOS,EAAAA,KACFhC,GAAI,CAAA,EAAA,CACPM,QAASN,EAAKM,QAAU,EACxBC,MAAOwB,IAEX,IAQA,OANAE,GAAU,WACR,IAAIN,EAAJ,CACA,IAAMO,EAAWC,aAAY,WAAA,OAAMN,GAAY,GAAE,KACjD,OAAO,WAAA,OAAMO,cAAcF,EAAS,CAFxB,CAGd,GAAG,CAACP,IAEJK,EAAAA,EAAA,CAAA,EACKhC,GAAI,CAAA,EAAA,CACP2B,OAAAA,EACAU,MAAO,WAAF,OAAQT,GAAU,EAAK,EAC5BU,MAAO,WAAF,OAAQV,GAAU,EAAM,EAC7BW,MAAO,WAAF,OAAQhB,EAAQxB,EAAiBkB,GAAa,EACnDuB,OAAQ,WAAF,OAAQZ,GAAU,SAACa,GAAS,OAAMA,IAAU,GAEtD"}
1
+ {"version":3,"file":"useStopwatch.js","sources":["../../../../src/hooks/useStopwatch/useStopwatch.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nconst getStopwatchTime = (time: number) => {\n if (!time)\n return {\n days: 0,\n hours: 0,\n minutes: 0,\n seconds: 0,\n count: 0\n };\n\n const days = Math.floor(time / 86400);\n const hours = Math.floor((time % 86400) / 3600);\n const minutes = Math.floor((time % 3600) / 60);\n const seconds = Math.floor(time % 60);\n\n return { days, hours, minutes, seconds, count: time };\n};\n\n/** The use stopwatch return type */\nexport interface UseStopwatchReturn {\n /** The total count of the stopwatch */\n count: number;\n /** The day count of the stopwatch */\n days: number;\n /** The hour count of the stopwatch */\n hours: number;\n /** The minute count of the stopwatch */\n minutes: number;\n /** The over state of the stopwatch */\n over: boolean;\n /** The paused state of the stopwatch */\n paused: boolean;\n /** The second count of the stopwatch */\n seconds: number;\n /** The function to pause the stopwatch */\n pause: () => void;\n /** The function to reset the stopwatch */\n reset: () => void;\n /** The function to start the stopwatch */\n start: () => void;\n /** The function to toggle the stopwatch */\n toggle: () => void;\n}\n\n/** The use stopwatch options */\nexport interface UseStopwatchOptions {\n /** The enabled state of the timer */\n enabled?: boolean;\n}\n\ninterface UseStopwatch {\n (initialTime?: number, options?: UseStopwatchOptions): UseStopwatchReturn;\n (options?: UseStopwatchOptions & { initialTime?: number }): UseStopwatchReturn;\n}\n/**\n * @name useStopwatch\n * @description - Hook that creates a stopwatch functionality\n * @category Time\n *\n * @overload\n * @param {number} [initialTime=0] The initial time of the timer\n * @param {boolean} [options.enabled=true] The enabled state of the timer\n * @returns {UseStopwatchReturn} An object containing the current time and functions to interact with the timer\n *\n * @example\n * const { seconds, minutes, start, pause, reset } = useStopwatch(1000, { enabled: false });\n *\n * @overload\n * @param {number} [options.initialTime=0] -The initial time of the timer\n * @param {boolean} [options.enabled=true] The enabled state of the timer\n * @returns {UseStopwatchReturn} An object containing the current time and functions to interact with the timer\n *\n * @example\n * const { seconds, minutes, start, pause, reset } = useStopwatch({ initialTime: 1000, enabled: false });\n */\nexport const useStopwatch = ((...params: any[]) => {\n const initialTime =\n (typeof params[0] === 'number'\n ? (params[0] as number | undefined)\n : (params[0] as UseStopwatchOptions & { initialTime?: number })?.initialTime) ?? 0;\n\n const options =\n typeof params[0] === 'number'\n ? (params[1] as UseStopwatchOptions | undefined)\n : (params[0] as (UseStopwatchOptions & { initialTime?: number }) | undefined);\n\n const [time, setTime] = useState(getStopwatchTime(initialTime));\n const [paused, setPaused] = useState(!options?.enabled);\n\n useEffect(() => {\n if (paused) return;\n const onInterval = () => {\n setTime((prevTime) => {\n const updatedCount = prevTime.count + 1;\n\n if (updatedCount % 60 === 0) {\n return {\n ...prevTime,\n minutes: prevTime.minutes + 1,\n seconds: 0,\n count: updatedCount\n };\n }\n\n if (updatedCount % (60 * 60) === 0) {\n return {\n ...prevTime,\n hours: prevTime.hours + 1,\n minutes: 0,\n seconds: 0,\n count: updatedCount\n };\n }\n\n if (updatedCount % (60 * 60 * 24) === 0) {\n return {\n ...prevTime,\n days: prevTime.days + 1,\n hours: 0,\n minutes: 0,\n seconds: 0,\n count: updatedCount\n };\n }\n\n return {\n ...prevTime,\n seconds: prevTime.seconds + 1,\n count: updatedCount\n };\n });\n };\n\n const interval = setInterval(() => onInterval(), 1000);\n return () => clearInterval(interval);\n }, [paused]);\n\n return {\n ...time,\n paused,\n pause: () => setPaused(true),\n start: () => setPaused(false),\n reset: () => setTime(getStopwatchTime(initialTime)),\n toggle: () => setPaused((prevPause) => !prevPause)\n };\n}) as UseStopwatch;\n"],"names":["getStopwatchTime","time","days","Math","floor","hours","minutes","seconds","count","useStopwatch","_ref","_params$","_len","arguments","length","params","Array","_key","initialTime","options","_useState","useState","_useState2","_slicedToArray","setTime","_useState3","enabled","_useState4","paused","setPaused","useEffect","interval","setInterval","prevTime","updatedCount","_objectSpread","clearInterval","pause","start","reset","toggle","prevPause"],"mappings":";uHAEA,IAAMA,EAAmB,SAACC,GACxB,OAAKA,EAcE,CAAEC,KALIC,KAAKC,MAAMH,EAAO,OAKhBI,MAJDF,KAAKC,MAAOH,EAAO,MAAS,MAIpBK,QAHNH,KAAKC,MAAOH,EAAO,KAAQ,IAGZM,QAFfJ,KAAKC,MAAMH,EAAO,IAEMO,MAAOP,GAbtC,CACLC,KAAM,EACNG,MAAO,EACPC,QAAS,EACTC,QAAS,EACTC,MAAO,EASb,EA2DaC,EAAgB,WAAsB,IAAA,IAAAC,EAAAC,EAAAC,EAAAC,UAAAC,OAAlBC,EAAMC,IAAAA,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAANF,EAAME,GAAAJ,UAAAI,GACrC,IAAMC,EAG0ER,QAH/DA,EACO,iBAAdK,EAAO,GACVA,EAAO,WAAEJ,EACTI,EAAO,UAAE,IAAAJ,OAAA,EAAVA,EAA+DO,mBAAWR,IAAAA,EAAAA,EAAK,EAE/ES,EACiB,iBAAdJ,EAAO,GACTA,EAAO,GACPA,EAAO,GAEdK,EAAwBC,EAASrB,EAAiBkB,IAAaI,EAAAC,EAAAH,EAAA,GAAxDnB,EAAIqB,EAAA,GAAEE,EAAOF,EAAA,GACpBG,EAA4BJ,IAAUF,SAAAA,EAASO,UAAQC,EAAAJ,EAAAE,EAAA,GAAhDG,EAAMD,EAAA,GAAEE,EAASF,EAAA,GAkDxB,OAhDAG,GAAU,WACR,IAAIF,EAAJ,CACA,IA0CMG,EAAWC,aAAY,WAzC3BR,GAAQ,SAACS,GACP,IAAMC,EAAeD,EAASzB,MAAQ,EAEtC,OACE2B,EAAAA,EAAA,CAAA,EACKF,GAAQ,CAAA,EAFXC,EAAe,IAAO,EAEX,CACX5B,QAAS2B,EAAS3B,QAAU,EAC5BC,QAAS,EACTC,MAAO0B,GAIPA,EAAgB,MAAa,EAElB,CACX7B,MAAO4B,EAAS5B,MAAQ,EACxBC,QAAS,EACTC,QAAS,EACTC,MAAO0B,GAIPA,EAAY,OAAsB,EAEvB,CACXhC,KAAM+B,EAAS/B,KAAO,EACtBG,MAAO,EACPC,QAAS,EACTC,QAAS,EACTC,MAAO0B,GAKE,CACX3B,QAAS0B,EAAS1B,QAAU,EAC5BC,MAAO0B,GAEX,GAG6C,GAAE,KACjD,OAAO,WAAA,OAAME,cAAcL,EAAS,CA5CxB,CA6Cd,GAAG,CAACH,IAEJO,EAAAA,EAAA,CAAA,EACKlC,GAAI,CAAA,EAAA,CACP2B,OAAAA,EACAS,MAAO,WAAF,OAAQR,GAAU,EAAK,EAC5BS,MAAO,WAAF,OAAQT,GAAU,EAAM,EAC7BU,MAAO,WAAF,OAAQf,EAAQxB,EAAiBkB,GAAa,EACnDsB,OAAQ,WAAF,OAAQX,GAAU,SAACY,GAAS,OAAMA,IAAU,GAEtD"}
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{b as e}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useSyncExternalStore as n}from"react";import{isClient as t}from"../../utils/helpers/isClient.js";import{useIsomorphicLayoutEffect as r}from"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var o=function(e){return window.dispatchEvent(new StorageEvent("storage",e))},i=function(e,n,t){var r=e.getItem(n);e.setItem(n,t),o({key:n,oldValue:r,newValue:t,storageArea:e})},u=function(e,n){var t=e.getItem(n);e.removeItem(n),o({key:n,oldValue:t,newValue:null,storageArea:e})},l=function(e,n){var t=e.getItem(n);if(t)return t},a=function(e){return window.addEventListener("storage",e),function(){return window.removeEventListener("storage",e)}},s=function(){},f=function(o,f){var c,v,d="object"===e(f)?f:void 0,m=d?null==d?void 0:d.initialValue:f,g=function(e){return null!=d&&d.serializer?d.serializer(e):JSON.stringify(e)},p=null!==(c=null==d?void 0:d.storage)&&void 0!==c?c:null===(v=window)||void 0===v?void 0:v.localStorage,w=function(e){if(null===e)return u(p,o);i(p,o,g(e))},I=function(){return u(p,o)},y=n(a,(function(){return l(p,o)}),s);return r((function(){void 0===l(p,o)&&void 0!==m&&i(p,o,g(m instanceof Function?m():m))}),[o]),t?{value:y?function(e){if(null!=d&&d.deserializer)return d.deserializer(e);if("undefined"!==e)try{return JSON.parse(e)}catch(n){return e}}(y):void 0,set:w,remove:I}:{value:m instanceof Function?m():m,set:w,remove:I}};export{o as dispatchStorageEvent,f as useStorage};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{b as e}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useSyncExternalStore as n}from"react";import{isClient as t}from"../../utils/helpers/isClient.js";import{useIsomorphicLayoutEffect as r}from"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var o=function(e){return window.dispatchEvent(new StorageEvent("storage",e))},i=function(e,n,t){var r=e.getItem(n);e.setItem(n,t),o({key:n,oldValue:r,newValue:t,storageArea:e})},u=function(e,n){var t=e.getItem(n);e.removeItem(n),o({key:n,oldValue:t,newValue:null,storageArea:e})},l=function(e,n){var t=e.getItem(n);if(t)return t},a=function(e){return window.addEventListener("storage",e),function(){return window.removeEventListener("storage",e)}},s=function(){},f=function(o,f){var c,v,d="object"===e(f)?f:void 0,m=d?null==d?void 0:d.initialValue:f,g=function(e){return null!=d&&d.serializer?d.serializer(e):JSON.stringify(e)},p=null!==(c=null==d?void 0:d.storage)&&void 0!==c?c:null===(v=window)||void 0===v?void 0:v.localStorage,w=function(e){if(null===e)return u(p,o);i(p,o,g(e))},I=function(){return u(p,o)},y=n(a,(function(){return l(p,o)}),s);return r((function(){void 0===l(p,o)&&void 0!==m&&i(p,o,g(m instanceof Function?m():m))}),[o]),t?{value:y?function(e){if(null!=d&&d.deserializer)return d.deserializer(e);if("undefined"!==e)try{return JSON.parse(e)}catch(n){return e}}(y):void 0,set:w,remove:I}:{value:m instanceof Function?m():m,set:w,remove:I}};export{o as dispatchStorageEvent,f as useStorage};
3
3
  //# sourceMappingURL=useStorage.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as t}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useState as e,useEffect as r}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var n=function(){var n,l="string"==typeof(arguments.length<=0?void 0:arguments[0])&&["auto","ltr","rtl"].includes(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],o=null!==(n=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0])&&void 0!==n?n:"ltr",u=e(),v=t(u,2),s=v[0],a=v[1],f=function(){var t,e=l?i(l):s;return null!==(t=null==e?void 0:e.getAttribute("dir"))&&void 0!==t?t:o},d=e(f()),c=t(d,2),m=c[0],p=c[1],g=function(){var t=l?i(l):s;t&&(null==t||t.removeAttribute("dir"))},b=function(t){var e=l?i(l):s;e&&(p(t),null==e||e.setAttribute("dir",t))};return r((function(){if(l||s){var t=l?i(l):s;if(t){var e=new MutationObserver((function(){f()}));return e.observe(t,{attributes:!0}),function(){e.disconnect()}}}}),[s,l]),l?{value:m,set:b,remove:g}:{ref:a,value:m,set:b,remove:g}};export{n as useTextDirection};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as t}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useState as e,useEffect as r}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";var n=function(){var n,l="string"==typeof(arguments.length<=0?void 0:arguments[0])&&["auto","ltr","rtl"].includes(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],o=null!==(n=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0])&&void 0!==n?n:"ltr",u=e(),v=t(u,2),s=v[0],a=v[1],f=function(){var t,e=l?i(l):s;return null!==(t=null==e?void 0:e.getAttribute("dir"))&&void 0!==t?t:o},d=e(f()),c=t(d,2),m=c[0],p=c[1],g=function(){var t=l?i(l):s;t&&(null==t||t.removeAttribute("dir"))},b=function(t){var e=l?i(l):s;e&&(p(t),null==e||e.setAttribute("dir",t))};return r((function(){if(l||s){var t=l?i(l):s;if(t){var e=new MutationObserver((function(){f()}));return e.observe(t,{attributes:!0}),function(){e.disconnect()}}}}),[s,l]),l?{value:m,set:b,remove:g}:{ref:a,value:m,set:b,remove:g}};export{n as useTextDirection};
3
3
  //# sourceMappingURL=useTextDirection.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useState as n,useEffect as t}from"react";import{isClient as r}from"../../utils/helpers/isClient.js";import{useRerender as o}from"../useRerender/useRerender.js";var u=function(e){var n,t=null!==(n=e.rangeCount)&&void 0!==n?n:0;return Array.from({length:t},(function(n,t){return e.getRangeAt(t)}))},i=function(){var i,l=o(),c=n(r?document.getSelection():null),a=e(c,2),s=a[0],m=a[1];t((function(){var e=function(){m(document.getSelection()),l.update()};return document.addEventListener("selectionchange",e),function(){return document.removeEventListener("selectionchange",e)}}),[]);var d=null!==(i=null==s?void 0:s.toString())&&void 0!==i?i:"",g=s?u(s):[],f=g.map((function(e){return e.getBoundingClientRect()}));return{text:d,ranges:g,rects:f,selection:s}};export{u as getRangesSelection,i as useTextSelection};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useState as n,useEffect as t}from"react";import{isClient as r}from"../../utils/helpers/isClient.js";import{useRerender as o}from"../useRerender/useRerender.js";var u=function(e){var n,t=null!==(n=e.rangeCount)&&void 0!==n?n:0;return Array.from({length:t},(function(n,t){return e.getRangeAt(t)}))},i=function(){var i,l=o(),c=n(r?document.getSelection():null),a=e(c,2),s=a[0],m=a[1];t((function(){var e=function(){m(document.getSelection()),l.update()};return document.addEventListener("selectionchange",e),function(){return document.removeEventListener("selectionchange",e)}}),[]);var d=null!==(i=null==s?void 0:s.toString())&&void 0!==i?i:"",g=s?u(s):[],f=g.map((function(e){return e.getBoundingClientRect()}));return{text:d,ranges:g,rects:f,selection:s}};export{u as getRangesSelection,i as useTextSelection};
3
3
  //# sourceMappingURL=useTextSelection.js.map
@@ -0,0 +1,3 @@
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{useMemo as r}from"react";import"../../utils/helpers/isClient.js";import{throttle as t}from"../../utils/helpers/throttle.js";import{useEvent as e}from"../useEvent/useEvent.js";var o=function(o,i){var s=e(o);return r((function(){return t(s,i)}),[i])};export{o as useThrottleCallback};
3
+ //# sourceMappingURL=useThrottleCallback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useThrottleCallback.js","sources":["../../../../src/hooks/useThrottleCallback/useThrottleCallback.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport { throttle } from '@/utils/helpers';\n\nimport { useEvent } from '../useEvent/useEvent';\n\n/**\n * @name useThrottleCallback\n * @description - Hook that creates a throttled callback and returns a stable reference of it\n * @category Utilities\n *\n * @template Params The type of the params\n * @template Return The type of the return\n * @param {(...args: Params) => Return} callback The callback function\n * @param {number} delay The delay in milliseconds\n * @returns {(...args: Params) => Return} The callback with throttle\n *\n * @example\n * const throttled = useThrottleCallback(() => console.log('callback'), 500);\n */\nexport const useThrottleCallback = <Params extends unknown[], Return>(\n callback: (...args: Params) => Return,\n delay: number\n) => {\n const internalCallback = useEvent(callback);\n const throttled = useMemo(() => throttle(internalCallback, delay), [delay]);\n\n return throttled;\n};\n"],"names":["useThrottleCallback","callback","delay","internalCallback","useEvent","useMemo","throttle"],"mappings":";sLAoBO,IAAMA,EAAsB,SACjCC,EACAC,GAEA,IAAMC,EAAmBC,EAASH,GAGlC,OAFkBI,GAAQ,WAAA,OAAMC,EAASH,EAAkBD,KAAQ,CAACA,GAGtE"}
@@ -0,0 +1,3 @@
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useRef as t,useState as e,useEffect as l}from"react";import{useThrottleCallback as o}from"../useThrottleCallback/useThrottleCallback.js";import"../../utils/helpers/isClient.js";import"../../utils/helpers/throttle.js";import"../useEvent/useEvent.js";var s=function(s,i){var u=t(s),n=e(s),p=r(n,2),a=p[0],m=p[1],c=o(m,i);return l((function(){u.current!==s&&(c(s),u.current=s)}),[s]),a};export{s as useThrottleValue};
3
+ //# sourceMappingURL=useThrottleValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useThrottleValue.js","sources":["../../../../src/hooks/useThrottleValue/useThrottleValue.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\nimport { useThrottleCallback } from '../useThrottleCallback/useThrottleCallback';\n\n/**\n * @name useThrottleValue\n * @description - Hook that creates a throttled value and returns a stable reference of it\n * @category Utilities\n *\n * @template Value The type of the value\n * @param {Value} value The value to be throttled\n * @param {number} delay The delay in milliseconds\n * @returns {Value} The throttled value\n *\n * @example\n * const throttledValue = useThrottleValue(value, 500);\n */\nexport const useThrottleValue = <Value>(value: Value, delay: number) => {\n const previousValueRef = useRef(value);\n const [throttledValue, setDebounceValue] = useState(value);\n\n const throttledSetState = useThrottleCallback(setDebounceValue, delay);\n\n useEffect(() => {\n if (previousValueRef.current === value) return;\n throttledSetState(value);\n previousValueRef.current = value;\n }, [value]);\n\n return throttledValue;\n};\n"],"names":["useThrottleValue","value","delay","previousValueRef","useRef","_useState","useState","_useState2","_slicedToArray","throttledValue","setDebounceValue","throttledSetState","useThrottleCallback","useEffect","current"],"mappings":";gUAiBO,IAAMA,EAAmB,SAAQC,EAAcC,GACpD,IAAMC,EAAmBC,EAAOH,GAChCI,EAA2CC,EAASL,GAAMM,EAAAC,EAAAH,EAAA,GAAnDI,EAAcF,EAAA,GAAEG,EAAgBH,EAAA,GAEjCI,EAAoBC,EAAoBF,EAAkBR,GAQhE,OANAW,GAAU,WACJV,EAAiBW,UAAYb,IACjCU,EAAkBV,GAClBE,EAAiBW,QAAUb,EAC7B,GAAG,CAACA,IAEGQ,CACT"}
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useState as r}from"react";import"../../utils/helpers/isClient.js";import{getDate as t}from"../../utils/helpers/time/getDate.js";import{useInterval as s}from"../useInterval/useInterval.js";import"../useEvent/useEvent.js";var i=function(){var i=r(t()),o=e(i,2),l=o[0],n=o[1];return s((function(){return n(t())}),1e3),l};export{i as useTime};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useState as r}from"react";import"../../utils/helpers/isClient.js";import{getDate as t}from"../../utils/helpers/time/getDate.js";import{useInterval as s}from"../useInterval/useInterval.js";import"../useEvent/useEvent.js";var i=function(){var i=r(t()),o=e(i,2),l=o[0],n=o[1];return s((function(){return n(t())}),1e3),l};export{i as useTime};
3
3
  //# sourceMappingURL=useTime.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useState as e,useRef as t,useEffect as n}from"react";import{useEvent as u}from"../useEvent/useEvent.js";function o(o,c){var i=e(!1),m=r(i,2),a=m[0],f=m[1],l=t(),s=u(o);n((function(){return l.current=setTimeout((function(){s(),f(!0)}),c),function(){clearTimeout(l.current)}}),[c]);return{ready:a,clear:function(){clearTimeout(l.current),f(!0)}}}export{o as useTimeout};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useState as e,useRef as t,useEffect as n}from"react";import{useEvent as u}from"../useEvent/useEvent.js";function o(o,c){var i=e(!1),m=r(i,2),a=m[0],f=m[1],l=t(),s=u(o);n((function(){return l.current=setTimeout((function(){s(),f(!0)}),c),function(){clearTimeout(l.current)}}),[c]);return{ready:a,clear:function(){clearTimeout(l.current),f(!0)}}}export{o as useTimeout};
3
3
  //# sourceMappingURL=useTimeout.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{b as t,_ as n,c as o}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useState as e}from"react";import{useInterval as l}from"../useInterval/useInterval.js";import"../useEvent/useEvent.js";var r=function(t){var n=Math.ceil(t),o=Math.floor(n/86400),e=Math.floor(n%86400/3600),l=Math.floor(n%3600/60);return{seconds:Math.floor(n%60),minutes:l,hours:e,days:o}},i=function(){var i,a=arguments.length<=0?void 0:arguments[0],u="object"===t(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:{onExpire:arguments.length<=1?void 0:arguments[1]},s=null===(i=null==u?void 0:u.autostart)||void 0===i||i,c=e(Math.ceil(a/1e3)),v=n(c,2),f=v[0],h=v[1],d=e(s),p=n(d,2),g=p[0],m=p[1];return l((function(){var t,n,o=f-1;(null==u||null===(t=u.onTick)||void 0===t||t.call(u,f),h(o),0===o)&&(m(!1),null==u||null===(n=u.onExpire)||void 0===n||n.call(u))}),1e3,{enabled:g}),o(o({},r(f)),{},{pause:function(){return m(!1)},toggle:function(){return m(!g)},start:function(){m(!0),h(Math.ceil(a/1e3))},restart:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];h(Math.ceil(t/1e3)),m(n)},running:g})};export{r as getTimeFromSeconds,i as useTimer};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{b as t,_ as n,c as o}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useState as e}from"react";import{useInterval as l}from"../useInterval/useInterval.js";import"../useEvent/useEvent.js";var r=function(t){var n=Math.ceil(t),o=Math.floor(n/86400),e=Math.floor(n%86400/3600),l=Math.floor(n%3600/60);return{seconds:Math.floor(n%60),minutes:l,hours:e,days:o}},i=function(){var i,a=arguments.length<=0?void 0:arguments[0],u="object"===t(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:{onExpire:arguments.length<=1?void 0:arguments[1]},s=null===(i=null==u?void 0:u.autostart)||void 0===i||i,c=e(Math.ceil(a/1e3)),v=n(c,2),f=v[0],h=v[1],d=e(s),p=n(d,2),g=p[0],m=p[1];return l((function(){var t,n,o=f-1;(null==u||null===(t=u.onTick)||void 0===t||t.call(u,f),h(o),0===o)&&(m(!1),null==u||null===(n=u.onExpire)||void 0===n||n.call(u))}),1e3,{enabled:g}),o(o({},r(f)),{},{pause:function(){return m(!1)},toggle:function(){return m(!g)},start:function(){m(!0),h(Math.ceil(a/1e3))},restart:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];h(Math.ceil(t/1e3)),m(n)},running:g})};export{r as getTimeFromSeconds,i as useTimer};
3
3
  //# sourceMappingURL=useTimer.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useReducer as n}from"react";var t=function(){var t=n((function(r,n){var t=n instanceof Function?n(r[0]):n,e=Math.abs(r.indexOf(t));return r.slice(e).concat(r.slice(0,e))}),arguments.length>0&&void 0!==arguments[0]?arguments[0]:[!1,!0]),e=r(t,2);return[r(e[0],1)[0],e[1]]};export{t as useToggle};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useReducer as n}from"react";var t=function(){var t=n((function(r,n){var t=n instanceof Function?n(r[0]):n,e=Math.abs(r.indexOf(t));return r.slice(e).concat(r.slice(0,e))}),arguments.length>0&&void 0!==arguments[0]?arguments[0]:[!1,!0]),e=r(t,2);return[r(e[0],1)[0],e[1]]};export{t as useToggle};
3
3
  //# sourceMappingURL=useToggle.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
2
  import{useRef as r,useEffect as n}from"react";var t=function(t){var c=r(t);c.current=t,n((function(){return function(){c.current()}}),[])};export{t as useUnmount};
3
3
  //# sourceMappingURL=useUnmount.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useRef as t,useState as n,useEffect as e}from"react";var a=function(a){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="undefined"!=typeof navigator&&"vibrate"in navigator,u=t(),c=n(!1),v=r(c,2),l=v[0],f=v[1],g=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;o&&navigator.vibrate(r)},p=function(){o&&(navigator.vibrate(0),f(!1),u.current&&clearInterval(u.current))},s=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;o&&(u.current&&clearInterval(u.current),f(!0),u.current=setInterval(g,r))};return e((function(){if(o&&!(i<=0))return s(i),function(){p()}}),[i,a]),{supported:o,trigger:g,stop:p,active:l,pause:function(){o&&(f(!1),u.current&&clearInterval(u.current))},resume:s}};export{a as useVibrate};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useRef as t,useState as n,useEffect as e}from"react";var a=function(a){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="undefined"!=typeof navigator&&"vibrate"in navigator,u=t(),c=n(!1),v=r(c,2),l=v[0],f=v[1],g=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;o&&navigator.vibrate(r)},p=function(){o&&(navigator.vibrate(0),f(!1),u.current&&clearInterval(u.current))},s=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;o&&(u.current&&clearInterval(u.current),f(!0),u.current=setInterval(g,r))};return e((function(){if(o&&!(i<=0))return s(i),function(){p()}}),[i,a]),{supported:o,trigger:g,stop:p,active:l,pause:function(){o&&(f(!1),u.current&&clearInterval(u.current))},resume:s}};export{a as useVibrate};
3
3
  //# sourceMappingURL=useVibrate.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useRef as r,useState as e,useEffect as o}from"react";import{getRetry as t}from"../../utils/helpers/getRetry.js";import"../../utils/helpers/isClient.js";import{useEvent as l}from"../useEvent/useEvent.js";var u=function(u,c){var i=r(),s=r(null!=c&&c.retry?t(c.retry):0),v=r(!1),a=e("connecting"),d=n(a,2),f=d[0],p=d[1],m=l((function(){i.current=new WebSocket("function"==typeof u?u():u,null==c?void 0:c.protocols),p("connecting");var n=i.current;n&&(n.onopen=function(){var r;p("connected"),null==c||null===(r=c.onConnected)||void 0===r||r.call(c,n)},n.onerror=function(r){var e;p("failed"),null==c||null===(e=c.onError)||void 0===e||e.call(c,r,n)},n.onmessage=function(r){var e;return null==c||null===(e=c.onMessage)||void 0===e?void 0:e.call(c,r,n)},n.onclose=function(r){var e;if(p("disconnected"),null==c||null===(e=c.onDisconnected)||void 0===e||e.call(c,r,n),!v.current)return s.current>0?(s.current-=1,m()):void(s.current=null!=c&&c.retry?t(c.retry):0)})}));o((function(){return m(),function(){i.current&&(i.current.close(),i.current=void 0)}}),[u]);return{client:i.current,close:function(){var n;v.current=!0,null===(n=i.current)||void 0===n||n.close()},open:function(){v.current=!1,m()},send:function(n){var r;return null===(r=i.current)||void 0===r?void 0:r.send(n)},status:f}};export{u as useWebSocket};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useRef as r,useState as e,useEffect as o}from"react";import{getRetry as t}from"../../utils/helpers/getRetry.js";import"../../utils/helpers/isClient.js";import{useEvent as l}from"../useEvent/useEvent.js";var u=function(u,c){var i=r(),s=r(null!=c&&c.retry?t(c.retry):0),v=r(!1),a=e("connecting"),d=n(a,2),f=d[0],p=d[1],m=l((function(){i.current=new WebSocket("function"==typeof u?u():u,null==c?void 0:c.protocols),p("connecting");var n=i.current;n&&(n.onopen=function(){var r;p("connected"),null==c||null===(r=c.onConnected)||void 0===r||r.call(c,n)},n.onerror=function(r){var e;p("failed"),null==c||null===(e=c.onError)||void 0===e||e.call(c,r,n)},n.onmessage=function(r){var e;return null==c||null===(e=c.onMessage)||void 0===e?void 0:e.call(c,r,n)},n.onclose=function(r){var e;if(p("disconnected"),null==c||null===(e=c.onDisconnected)||void 0===e||e.call(c,r,n),!v.current)return s.current>0?(s.current-=1,m()):void(s.current=null!=c&&c.retry?t(c.retry):0)})}));o((function(){return m(),function(){i.current&&(i.current.close(),i.current=void 0)}}),[u]);return{client:i.current,close:function(){var n;v.current=!0,null===(n=i.current)||void 0===n||n.close()},open:function(){v.current=!1,m()},send:function(n){var r;return null===(r=i.current)||void 0===r?void 0:r.send(n)},status:f}};export{u as useWebSocket};
3
3
  //# sourceMappingURL=useWebSocket.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{useEventListener as e}from"../useEventListener/useEventListener.js";import"../../_rollupPluginBabelHelpers-CIijGS7V.js";import"react";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.js";var t=function(t,r,s){return e(window,t,r,s)};export{t as useWindowEvent};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{useEventListener as e}from"../useEventListener/useEventListener.js";import"../../_rollupPluginBabelHelpers-Dugjabfg.js";import"react";import"../../utils/helpers/getElement.js";import"../../utils/helpers/isClient.js";import"../useEvent/useEvent.js";var t=function(t,r,s){return e(window,t,r,s)};export{t as useWindowEvent};
3
3
  //# sourceMappingURL=useWindowEvent.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useState as r,useEffect as e}from"react";var t=function(){var t=r(!1),o=n(t,2),i=o[0],u=o[1];return e((function(){var n=function(){return u(!0)},r=function(){return u(!1)};return window.addEventListener("focus",n),window.addEventListener("blur",r),function(){window.removeEventListener("focus",n),window.removeEventListener("blur",r)}})),i};export{t as useWindowFocus};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useState as r,useEffect as e}from"react";var t=function(){var t=r(!1),o=n(t,2),i=o[0],u=o[1];return e((function(){var n=function(){return u(!0)},r=function(){return u(!1)};return window.addEventListener("focus",n),window.addEventListener("blur",r),function(){window.removeEventListener("focus",n),window.removeEventListener("blur",r)}})),i};export{t as useWindowFocus};
3
3
  //# sourceMappingURL=useWindowFocus.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useState as o,useEffect as e}from"react";import{isClient as n}from"../../utils/helpers/isClient.js";var i=function(r){var o=r.x,e=r.y,n=r.behavior,i={behavior:void 0===n?"smooth":n};"number"==typeof o&&(i.left=o),"number"==typeof e&&(i.top=e),window.scrollTo(i)},t=function(){var t=o({x:n?window.scrollX:Number.POSITIVE_INFINITY,y:n?window.scrollY:Number.POSITIVE_INFINITY}),l=r(t,2),s=l[0],w=l[1];return e((function(){var r=function(){return w({x:window.scrollX,y:window.scrollY})};return window.addEventListener("scroll",r),window.addEventListener("resize",r),function(){window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}}),[]),{value:s,scrollTo:i}};export{i as scrollTo,t as useWindowScroll};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useState as o,useEffect as e}from"react";import{isClient as n}from"../../utils/helpers/isClient.js";var i=function(r){var o=r.x,e=r.y,n=r.behavior,i={behavior:void 0===n?"smooth":n};"number"==typeof o&&(i.left=o),"number"==typeof e&&(i.top=e),window.scrollTo(i)},t=function(){var t=o({x:n?window.scrollX:Number.POSITIVE_INFINITY,y:n?window.scrollY:Number.POSITIVE_INFINITY}),l=r(t,2),s=l[0],w=l[1];return e((function(){var r=function(){return w({x:window.scrollX,y:window.scrollY})};return window.addEventListener("scroll",r),window.addEventListener("resize",r),function(){window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}}),[]),{value:s,scrollTo:i}};export{i as scrollTo,t as useWindowScroll};
3
3
  //# sourceMappingURL=useWindowScroll.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useState as n,useEffect as i}from"react";import{isClient as t}from"../../utils/helpers/isClient.js";var o=function(o){var r,d=null===(r=null==o?void 0:o.includeScrollbar)||void 0===r||r,l=n((function(){return t?{width:d?window.innerWidth:window.document.documentElement.clientWidth,height:d?window.innerHeight:window.document.documentElement.clientHeight}:{width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY}})),u=e(l,2),w=u[0],c=u[1];return i((function(){var e=function(){c(d?{width:window.innerWidth,height:window.innerHeight}:{width:window.document.documentElement.clientWidth,height:window.document.documentElement.clientHeight})};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[null==o?void 0:o.includeScrollbar]),w};export{o as useWindowSize};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useState as n,useEffect as i}from"react";import{isClient as t}from"../../utils/helpers/isClient.js";var o=function(o){var r,d=null===(r=null==o?void 0:o.includeScrollbar)||void 0===r||r,l=n((function(){return t?{width:d?window.innerWidth:window.document.documentElement.clientWidth,height:d?window.innerHeight:window.document.documentElement.clientHeight}:{width:Number.POSITIVE_INFINITY,height:Number.POSITIVE_INFINITY}})),u=e(l,2),w=u[0],c=u[1];return i((function(){var e=function(){c(d?{width:window.innerWidth,height:window.innerHeight}:{width:window.document.documentElement.clientWidth,height:window.document.documentElement.clientHeight})};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[null==o?void 0:o.includeScrollbar]),w};export{o as useWindowSize};
3
3
  //# sourceMappingURL=useWindowSize.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- import{_ as n,a as o}from"../../_rollupPluginBabelHelpers-CIijGS7V.js";import{useState as t}from"react";var r=function(r,e){var c=null!=e?e:r[0].id,i=new Map(r.map((function(n){return[n.id,n]}))),l=t(c),a=n(l,2),u=a[0],f=a[1],s=t([c]),d=n(s,2),v=d[0],g=d[1];return{currentStepId:u,set:function(n){var t;if(null===(t=i.get(u))||void 0===t||null===(t=t.nodes)||void 0===t||!t.includes(n))throw new Error("Can't go to ".concat(n," from ").concat(u));g([].concat(o(v),[n])),f(n)},reset:function(){f(c),g([c])},back:function(){var n;if(1!==v.length){var o=v[v.length-2];if(null===(n=i.get(u))||void 0===n||null===(n=n.nodes)||void 0===n||!n.includes(o))throw new Error("Can't go to ".concat(o," from ").concat(u));g(v.slice(0,-1)),f(v[v.length-2])}},history:v}};export{r as useWizard};
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
+ import{_ as n,a as o}from"../../_rollupPluginBabelHelpers-Dugjabfg.js";import{useState as t}from"react";var r=function(r,e){var c=null!=e?e:r[0].id,i=new Map(r.map((function(n){return[n.id,n]}))),l=t(c),a=n(l,2),u=a[0],f=a[1],s=t([c]),d=n(s,2),v=d[0],g=d[1];return{currentStepId:u,set:function(n){var t;if(null===(t=i.get(u))||void 0===t||null===(t=t.nodes)||void 0===t||!t.includes(n))throw new Error("Can't go to ".concat(n," from ").concat(u));g([].concat(o(v),[n])),f(n)},reset:function(){f(c),g([c])},back:function(){var n;if(1!==v.length){var o=v[v.length-2];if(null===(n=i.get(u))||void 0===n||null===(n=n.nodes)||void 0===n||!n.includes(o))throw new Error("Can't go to ".concat(o," from ").concat(u));g(v.slice(0,-1)),f(v[v.length-2])}},history:v}};export{r as useWizard};
3
3
  //# sourceMappingURL=useWizard.js.map
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
2
- export{useActiveElement}from"./hooks/useActiveElement/useActiveElement.js";export{useAsync}from"./hooks/useAsync/useAsync.js";export{useBattery}from"./hooks/useBattery/useBattery.js";export{useBoolean}from"./hooks/useBoolean/useBoolean.js";export{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{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{useDidUpdate}from"./hooks/useDidUpdate/useDidUpdate.js";export{useDisclosure}from"./hooks/useDisclosure/useDisclosure.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{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{usePaint}from"./hooks/usePaint/usePaint.js";export{useParallax}from"./hooks/useParallax/useParallax.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{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{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{useStep}from"./hooks/useStep/useStep.js";export{useStopwatch}from"./hooks/useStopwatch/useStopwatch.js";export{dispatchStorageEvent,useStorage}from"./hooks/useStorage/useStorage.js";export{useTextDirection}from"./hooks/useTextDirection/useTextDirection.js";export{getRangesSelection,useTextSelection}from"./hooks/useTextSelection/useTextSelection.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{getElement}from"./utils/helpers/getElement.js";export{getRetry}from"./utils/helpers/getRetry.js";export{isClient}from"./utils/helpers/isClient.js";export{isTarget}from"./utils/helpers/isTarget.js";export{throttle}from"./utils/helpers/throttle.js";export{getDate}from"./utils/helpers/time/getDate.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}from"./hooks/useBreakpoints/constants/breakpoints.js";export{mapGamepadToXbox360Controller}from"./hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js";import"./_rollupPluginBabelHelpers-CIijGS7V.js";import"react";import"./index-DJBW4urx.js";import"./hooks/usePaint/helpers/Paint.js";import"./hooks/usePaint/helpers/Pointer.js";import"react-dom";
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
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{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{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{useDidUpdate}from"./hooks/useDidUpdate/useDidUpdate.js";export{useDisclosure}from"./hooks/useDisclosure/useDisclosure.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{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{usePaint}from"./hooks/usePaint/usePaint.js";export{useParallax}from"./hooks/useParallax/useParallax.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{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{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{useStep}from"./hooks/useStep/useStep.js";export{useStopwatch}from"./hooks/useStopwatch/useStopwatch.js";export{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{getElement}from"./utils/helpers/getElement.js";export{getRetry}from"./utils/helpers/getRetry.js";export{isClient}from"./utils/helpers/isClient.js";export{isTarget}from"./utils/helpers/isTarget.js";export{throttle}from"./utils/helpers/throttle.js";export{getDate}from"./utils/helpers/time/getDate.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}from"./hooks/useBreakpoints/constants/breakpoints.js";export{mapGamepadToXbox360Controller}from"./hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js";import"./_rollupPluginBabelHelpers-Dugjabfg.js";import"react";import"./hooks/usePaint/helpers/Paint.js";import"./hooks/usePaint/helpers/Pointer.js";import"react-dom";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
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.81 */
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
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.81 */
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
2
  var r=function(r){return"number"==typeof r?r:r?1:0};export{r as getRetry};
3
3
  //# sourceMappingURL=getRetry.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
2
  export{debounce}from"./debounce.js";export{getElement}from"./getElement.js";export{getRetry}from"./getRetry.js";export{isClient}from"./isClient.js";export{isTarget}from"./isTarget.js";export{throttle}from"./throttle.js";export{getDate}from"./time/getDate.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
2
  var n,d,e=!("undefined"==typeof window||null===(n=window)||void 0===n||!n.document||null===(d=window)||void 0===d||null===(d=d.document)||void 0===d||!d.createElement);export{e as isClient};
3
3
  //# sourceMappingURL=isClient.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
2
  var n=function(n){return"string"==typeof n||n instanceof Element||n instanceof Window||n instanceof Document||n&&"current"in n};export{n as isTarget};
3
3
  //# sourceMappingURL=isTarget.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
2
  var n=function(n,r){var t=!1;return function(){if(!t){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];n.apply(this,i),t=!0,setTimeout((function(){t=!1}),r)}}};export{n as throttle};
3
3
  //# sourceMappingURL=throttle.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.81 */
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
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
@@ -76,6 +76,43 @@ interface UseBatteryStateReturn {
76
76
  */
77
77
  declare const useBattery: () => UseBatteryStateReturn;
78
78
 
79
+ /** The use bluetooth return type */
80
+ interface UseBluetoothReturn {
81
+ /** Indicates if bluetooth device is currently connected */
82
+ connected: boolean;
83
+ /** Describe connected bluetooth device */
84
+ device?: BluetoothDevice;
85
+ /** The GATT server for connected bluetooth device */
86
+ server?: BluetoothRemoteGATTServer;
87
+ /** Indicates if bluetooth API is supported by the browser */
88
+ supported: boolean;
89
+ /** Function to request bluetooth device from the user */
90
+ requestDevice: () => Promise<void>;
91
+ }
92
+ /** The use bluetooth options type */
93
+ interface UseBluetoothOptions {
94
+ /** The options to request all bluetooth devices */
95
+ acceptAllDevices?: boolean;
96
+ /** Array of filters to apply when scanning bluetooth devices */
97
+ filters?: BluetoothLEScanFilter[];
98
+ /** Array of optional services that the application can use */
99
+ optionalServices?: BluetoothServiceUUID[];
100
+ }
101
+ /**
102
+ * @name useBluetooth
103
+ * @description - Hook for getting information about bluetooth
104
+ * @category Browser
105
+ *
106
+ * @param {boolean} [options.acceptAllDevices=false] The options to request all Bluetooth devices
107
+ * @param {Array<BluetoothLEScanFilter>} [options.filters] Array of filters to apply when scanning Bluetooth devices
108
+ * @param {Array<BluetoothServiceUUID>} [options.optionalServices] Array of optional services that the application can use
109
+ * @returns {UseBluetoothReturn} Object containing battery information & Battery API support
110
+ *
111
+ * @example
112
+ * const { supported, connected, device, requestDevice, server } = useBluetooth(options);
113
+ */
114
+ declare const useBluetooth: (options?: UseBluetoothOptions) => UseBluetoothReturn;
115
+
79
116
  /** The use boolean return type */
80
117
  type UseBooleanReturn = [
81
118
  /** The current boolean state value */
@@ -409,7 +446,7 @@ declare const useCssVar: UseCssVar;
409
446
  * @returns {(...args: Params) => Return} The callback with debounce
410
447
  *
411
448
  * @example
412
- * const debounced = useDebounceCallback(() => console.log('callback'), 500);
449
+ * const debouncedCallback = useDebounceCallback(() => console.log('callback'), 500);
413
450
  */
414
451
  declare const useDebounceCallback: <Params extends unknown[], Return>(callback: (...args: Params) => Return, delay: number) => (...args: Params) => void;
415
452
 
@@ -865,7 +902,7 @@ interface UseFileDialog {
865
902
  declare const useFileDialog: UseFileDialog;
866
903
 
867
904
  /** The use focus target type */
868
- type UseFocusTarget = (() => Element) | string | Element | RefObject<Element | null | undefined>;
905
+ type UseFocusTarget = string | Element | RefObject<Element | null | undefined>;
869
906
  /** The use focus options type */
870
907
  interface UseFocusOptions {
871
908
  /** The initial focus state of the target */
@@ -2450,11 +2487,11 @@ declare const usePermission: (permissionDescriptorName: UsePermissionName, optio
2450
2487
  query: () => Promise<PermissionState>;
2451
2488
  };
2452
2489
 
2453
- type UsePointerLockTarget = RefObject<Element | null | undefined>;
2490
+ /** The use pointer lock return type */
2454
2491
  interface UsePointerLockReturn {
2455
2492
  element?: Element;
2456
2493
  supported: boolean;
2457
- lock: (event: Event | MouseEvent$1<Element>) => void;
2494
+ lock: (event: MouseEvent$1) => void;
2458
2495
  unlock: () => boolean;
2459
2496
  }
2460
2497
  /**
@@ -2462,13 +2499,12 @@ interface UsePointerLockReturn {
2462
2499
  * @description - Hook that provides reactive pointer lock
2463
2500
  * @category Sensors
2464
2501
  *
2465
- * @param {UsePointerLockTarget} target The target element for the pointer lock
2466
2502
  * @returns {UsePointerLockReturn} An object containing the pointer lock element and functions to interact with the pointer lock
2467
2503
  *
2468
2504
  * @example
2469
2505
  * const { supported, lock, unlock, element } = usePointerLock();
2470
2506
  */
2471
- declare const usePointerLock: (target?: UsePointerLockTarget) => UsePointerLockReturn;
2507
+ declare const usePointerLock: () => UsePointerLockReturn;
2472
2508
 
2473
2509
  type UsePostMessageReturn<Message> = (message: Message) => void;
2474
2510
  /**
@@ -2851,13 +2887,13 @@ interface UseScroll {
2851
2887
  *
2852
2888
  * @overload
2853
2889
  * @template Target The target element
2854
- * @param {ScrollBehavior} [options.behavior = 'auto'] The behavior of scrolling
2855
- * @param {number} [options.offset.left = 0] The left offset for arrived states
2856
- * @param {number} [options.offset.right = 0] The right offset for arrived states
2857
- * @param {number} [options.offset.top = 0] The top offset for arrived states
2858
- * @param {number} [options.offset.bottom = 0] The bottom offset for arrived states
2890
+ * @param {ScrollBehavior} [options.behavior=auto] The behavior of scrolling
2891
+ * @param {number} [options.offset.left=0] The left offset for arrived states
2892
+ * @param {number} [options.offset.right=0] The right offset for arrived states
2893
+ * @param {number} [options.offset.top=0] The top offset for arrived states
2894
+ * @param {number} [options.offset.bottom=0] The bottom offset for arrived states
2859
2895
  * @param {(params: UseScrollCallbackParams, event: Event) => void} [options.onScroll] The callback function to be invoked on scroll
2860
- * @param {(e: Event) => void} [options.onStop] The callback function to be invoked on scroll end
2896
+ * @param {(event: Event) => void} [options.onStop] The callback function to be invoked on scroll end
2861
2897
  * @returns {boolean} The state of scrolling
2862
2898
  *
2863
2899
  * @example
@@ -2874,13 +2910,13 @@ interface UseScroll {
2874
2910
  * @overload
2875
2911
  * @template Target The target element
2876
2912
  * @param {Target} target The target element to scroll
2877
- * @param {ScrollBehavior} [options.behavior = 'auto'] The behavior of scrolling
2878
- * @param {number} [options.offset.left = 0] The left offset for arrived states
2879
- * @param {number} [options.offset.right = 0] The right offset for arrived states
2880
- * @param {number} [options.offset.top = 0] The top offset for arrived states
2881
- * @param {number} [options.offset.bottom = 0] The bottom offset for arrived states
2913
+ * @param {ScrollBehavior} [options.behavior=auto] The behavior of scrolling
2914
+ * @param {number} [options.offset.left=0] The left offset for arrived states
2915
+ * @param {number} [options.offset.right=0] The right offset for arrived states
2916
+ * @param {number} [options.offset.top=0] The top offset for arrived states
2917
+ * @param {number} [options.offset.bottom=0] The bottom offset for arrived states
2882
2918
  * @param {(params: UseScrollCallbackParams, event: Event) => void} [options.onScroll] The callback function to be invoked on scroll
2883
- * @param {(e: Event) => void} [options.onStop] The callback function to be invoked on scroll end
2919
+ * @param {(event: Event) => void} [options.onStop] The callback function to be invoked on scroll end
2884
2920
  * @returns {[(node: Target) => void, boolean]} The state of scrolling
2885
2921
  *
2886
2922
  * @example
@@ -3212,6 +3248,37 @@ interface UseTextSelectionReturn {
3212
3248
  */
3213
3249
  declare const useTextSelection: () => UseTextSelectionReturn;
3214
3250
 
3251
+ /**
3252
+ * @name useThrottleCallback
3253
+ * @description - Hook that creates a throttled callback and returns a stable reference of it
3254
+ * @category Utilities
3255
+ *
3256
+ * @template Params The type of the params
3257
+ * @template Return The type of the return
3258
+ * @param {(...args: Params) => Return} callback The callback function
3259
+ * @param {number} delay The delay in milliseconds
3260
+ * @returns {(...args: Params) => Return} The callback with throttle
3261
+ *
3262
+ * @example
3263
+ * const throttled = useThrottleCallback(() => console.log('callback'), 500);
3264
+ */
3265
+ declare const useThrottleCallback: <Params extends unknown[], Return>(callback: (...args: Params) => Return, delay: number) => (...args: Params) => void;
3266
+
3267
+ /**
3268
+ * @name useThrottleValue
3269
+ * @description - Hook that creates a throttled value and returns a stable reference of it
3270
+ * @category Utilities
3271
+ *
3272
+ * @template Value The type of the value
3273
+ * @param {Value} value The value to be throttled
3274
+ * @param {number} delay The delay in milliseconds
3275
+ * @returns {Value} The throttled value
3276
+ *
3277
+ * @example
3278
+ * const throttledValue = useThrottleValue(value, 500);
3279
+ */
3280
+ declare const useThrottleValue: <Value>(value: Value, delay: number) => Value;
3281
+
3215
3282
  interface UseTimeReturn {
3216
3283
  day: number;
3217
3284
  hours: number;
@@ -3559,4 +3626,4 @@ declare const getDate: (now?: Date) => {
3559
3626
  timestamp: number;
3560
3627
  };
3561
3628
 
3562
- 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, type BatteryManager, type Breakpoints, type ColorSelectionOptions, type ColorSelectionResult, type Connection, type ConnectionEffectiveType, type ConnectionType, type EyeDropper, type EyeDropperConstructor, type GetElementTarget, type LongPressReactEvents, type OperatingSystem, type OrientationLockType, type RequestOptions, SCRIPT_STATUS_ATTRIBUTE_NAME, type ScrollPosition, type UseAsyncReturn, type UseBatteryStateReturn, type UseBatteryValue, type UseBooleanReturn, type UseBreakpointsReturn, type UseBreakpointsStrategy, type UseClickOutside, type UseClickOutsideTarget, type UseCopyToClipboardParams, type UseCopyToClipboardReturn, type UseCounter, type UseCounterOptions, type UseCounterReturn, type UseCssVar, type UseCssVarReturn, type UseCssVarTarget, type UseDeviceMotionParams, type UseDeviceMotionReturn, type UseDeviceOrientationReturn, type UseDeviceOrientationValue, type UseDisclosureOptions, type UseDisclosureReturn, type UseDocumentTitleOptions, type UseDocumentTitleReturn, type UseElementSize, type UseElementSizeReturn, type UseElementSizeTarget, type UseElementSizeValue, type UseEventListener, type UseEventListenerOptions, type UseEventListenerReturn, type UseEventListenerTarget, type UseEyeDropperReturn, type UseFaviconReturn, type UseFieldParams, type UseFieldRegisterParams, type UseFieldReturn, type UseFileDialog, type UseFileDialogOptions, type UseFileDialogReturn, type UseFocus, type UseFocusOptions, type UseFocusReturn, type UseFocusTarget, type UseFullScreen, type UseFullScreenOptions, type UseFullScreenReturn, type UseFullScreenTarget, type UseGamepadStateReturn, type UseGeolocationParams, type UseGeolocationReturn, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHover, type UseHoverOptions, type UseHoverTarget, type UseIdleOptions, type UseIdleReturn, type UseImageOptions, type UseImageReturn, type UseInfiniteScroll, type UseInfiniteScrollOptions, type UseInfiniteScrollTarget, type UseIntersectionObserver, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseIntersectionObserverTarget, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPressEvent, type UseKeyPressEventKey, type UseKeyPressKey, type UseKeyPressOptions, type UseKeyboardParams, type UseKeysPressedParams, type UseLastChangedOptions, type UseListReturn, type UseLongPressBind, type UseLongPressOptions, type UseLongPressReturn, type UseLongPressTarget, type UseMapReturn, type UseMeasureReturn, type UseMeasureScreen, type UseMeasureTarget, type UseMemoryReturn, type UseMouse, type UseMouseReturn, type UseMouseTarget, type UseMutationObserver, type UseMutationObserverOptions, type UseMutationObserverReturn, type UseMutationObserverTarget, type UseNetworkReturn, type UseOffsetPaginationOptions, type UseOffsetPaginationReturn, type UseOptimisticReturn, type UseOrientationReturn, type UseOtpCredential, type UseOtpCredentialCallback, type UseOtpCredentialParams, type UseOtpCredentialReturn, type UsePaint, type UsePaintOptions, type UsePaintReturn, type UsePaintTarget, type UseParallax, type UseParallaxOptions, type UseParallaxValue, type UsePermissionName, type UsePermissionOptions, type UsePermissionReturn, type UsePostMessageReturn, type UsePreferredColorSchemeReturn, type UsePreferredContrastReturn, type UsePreferredReducedMotionReturn, type UsePreviousOptions, type UseQueryOptions, type UseQueryReturn, type UseQueueReturn, type UseRafCallback, type UseRafOptions, type UseRafParams, type UseRafReturn, type UseRafValueReturn, type UseRenderInfoReturn, type UseResizeObserver, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseResizeObserverTarget, type UseScreenOrientationValue, type UseScriptOptions, type UseScriptStatus, type UseScroll, type UseScrollCallbackParams, type UseScrollOptions, type UseScrollTarget, type UseScrollTo, type UseScrollToOptions, type UseScrollToReturn, type UseScrollToTarget, type UseShareParams, type UseShareReturn, type UseStopwatchOptions, type UseStopwatchReturn, type UseStorageInitialValue, type UseStorageOptions, type UseStorageReturn, type UseTextDirection, type UseTextDirectionReturn, type UseTextDirectionTarget, type UseTextDirectionValue, type UseTextSelectionReturn, type UseTimeReturn, type UseTimer, type UseTimerOptions, type UseTimerReturn, type UseToggleReturn, type UseVibratePattern, type UseVibrateReturn, type UseWebSocketOptions, type UseWebSocketReturn, type UseWebSocketStatus, type UseWebSocketUrl, type UseWindowSizeReturn, type WizardItem, debounce, dispatchStorageEvent, getConnection, getDate, getElement, getOperatingSystem, getRangesSelection, getRetry, getTimeFromSeconds, isClient, isHotkeyMatch, isPermissionAllowed, isTarget, legacyCopyToClipboard, mapGamepadToXbox360Controller, scrollTo, throttle, useActiveElement, useAsync, useBattery, useBoolean, useBreakpoints, useBrowserLanguage, useClickOutside, useClipboard, useConst, useCounter, useCssVar, useDebounceCallback, useDebounceValue, useDefault, useDeviceMotion, useDeviceOrientation, useDidUpdate, useDisclosure, useDocumentEvent, useDocumentTitle, useDocumentVisibility, useElementSize, useEvent, useEventListener, useEyeDropper, useFavicon, useField, useFileDialog, useFocus, useFps, useFullscreen, useGamepad, useGeolocation, useHash, useHotkeys, useHover, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useInterval, useIsFirstRender, useIsomorphicLayoutEffect, useKeyPress, useKeyPressEvent, useKeyboard, useKeysPressed, useLastChanged, useLatest, useList, useLocalStorage, useLogger, useLongPress, useMap, useMeasure, useMediaQuery, useMemory, useMount, useMouse, useMutation, useMutationObserver, useNetwork, useOffsetPagination, useOnline, useOperatingSystem, useOptimistic, useOrientation, useOtpCredential, usePageLeave, usePaint, useParallax, usePermission, usePointerLock, usePostMessage, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useQuery, useQueue, useRaf, useRafValue, useRenderCount, useRenderInfo, useRerender, useResizeObserver, useScreenOrientation, type useScreenOrientationReturn, useScript, useScroll, useScrollTo, useSessionStorage, useSet, useShare, useStep, useStopwatch, useStorage, useTextDirection, useTextSelection, useTime, useTimeout, useTimer, useToggle, useUnmount, useVibrate, useWebSocket, useWindowEvent, useWindowFocus, useWindowScroll, useWindowSize, useWizard };
3629
+ 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, type BatteryManager, type Breakpoints, type ColorSelectionOptions, type ColorSelectionResult, type Connection, type ConnectionEffectiveType, type ConnectionType, type EyeDropper, type EyeDropperConstructor, type GetElementTarget, type LongPressReactEvents, type OperatingSystem, type OrientationLockType, type RequestOptions, SCRIPT_STATUS_ATTRIBUTE_NAME, type ScrollPosition, type UseAsyncReturn, type UseBatteryStateReturn, type UseBatteryValue, type UseBluetoothOptions, type UseBluetoothReturn, type UseBooleanReturn, type UseBreakpointsReturn, type UseBreakpointsStrategy, type UseClickOutside, type UseClickOutsideTarget, type UseCopyToClipboardParams, type UseCopyToClipboardReturn, type UseCounter, type UseCounterOptions, type UseCounterReturn, type UseCssVar, type UseCssVarReturn, type UseCssVarTarget, type UseDeviceMotionParams, type UseDeviceMotionReturn, type UseDeviceOrientationReturn, type UseDeviceOrientationValue, type UseDisclosureOptions, type UseDisclosureReturn, type UseDocumentTitleOptions, type UseDocumentTitleReturn, type UseElementSize, type UseElementSizeReturn, type UseElementSizeTarget, type UseElementSizeValue, type UseEventListener, type UseEventListenerOptions, type UseEventListenerReturn, type UseEventListenerTarget, type UseEyeDropperReturn, type UseFaviconReturn, type UseFieldParams, type UseFieldRegisterParams, type UseFieldReturn, type UseFileDialog, type UseFileDialogOptions, type UseFileDialogReturn, type UseFocus, type UseFocusOptions, type UseFocusReturn, type UseFocusTarget, type UseFullScreen, type UseFullScreenOptions, type UseFullScreenReturn, type UseFullScreenTarget, type UseGamepadStateReturn, type UseGeolocationParams, type UseGeolocationReturn, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHover, type UseHoverOptions, type UseHoverTarget, type UseIdleOptions, type UseIdleReturn, type UseImageOptions, type UseImageReturn, type UseInfiniteScroll, type UseInfiniteScrollOptions, type UseInfiniteScrollTarget, type UseIntersectionObserver, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseIntersectionObserverTarget, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPressEvent, type UseKeyPressEventKey, type UseKeyPressKey, type UseKeyPressOptions, type UseKeyboardParams, type UseKeysPressedParams, type UseLastChangedOptions, type UseListReturn, type UseLongPressBind, type UseLongPressOptions, type UseLongPressReturn, type UseLongPressTarget, type UseMapReturn, type UseMeasureReturn, type UseMeasureScreen, type UseMeasureTarget, type UseMemoryReturn, type UseMouse, type UseMouseReturn, type UseMouseTarget, type UseMutationObserver, type UseMutationObserverOptions, type UseMutationObserverReturn, type UseMutationObserverTarget, type UseNetworkReturn, type UseOffsetPaginationOptions, type UseOffsetPaginationReturn, type UseOptimisticReturn, type UseOrientationReturn, type UseOtpCredential, type UseOtpCredentialCallback, type UseOtpCredentialParams, type UseOtpCredentialReturn, type UsePaint, type UsePaintOptions, type UsePaintReturn, type UsePaintTarget, type UseParallax, type UseParallaxOptions, type UseParallaxValue, type UsePermissionName, type UsePermissionOptions, type UsePermissionReturn, type UsePostMessageReturn, type UsePreferredColorSchemeReturn, type UsePreferredContrastReturn, type UsePreferredReducedMotionReturn, type UsePreviousOptions, type UseQueryOptions, type UseQueryReturn, type UseQueueReturn, type UseRafCallback, type UseRafOptions, type UseRafParams, type UseRafReturn, type UseRafValueReturn, type UseRenderInfoReturn, type UseResizeObserver, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseResizeObserverTarget, type UseScreenOrientationValue, type UseScriptOptions, type UseScriptStatus, type UseScroll, type UseScrollCallbackParams, type UseScrollOptions, type UseScrollTarget, type UseScrollTo, type UseScrollToOptions, type UseScrollToReturn, type UseScrollToTarget, type UseShareParams, type UseShareReturn, type UseStopwatchOptions, type UseStopwatchReturn, type UseStorageInitialValue, type UseStorageOptions, type UseStorageReturn, type UseTextDirection, type UseTextDirectionReturn, type UseTextDirectionTarget, type UseTextDirectionValue, type UseTextSelectionReturn, type UseTimeReturn, type UseTimer, type UseTimerOptions, type UseTimerReturn, type UseToggleReturn, type UseVibratePattern, type UseVibrateReturn, type UseWebSocketOptions, type UseWebSocketReturn, type UseWebSocketStatus, type UseWebSocketUrl, type UseWindowSizeReturn, type WizardItem, debounce, dispatchStorageEvent, getConnection, getDate, getElement, getOperatingSystem, getRangesSelection, getRetry, getTimeFromSeconds, isClient, isHotkeyMatch, isPermissionAllowed, isTarget, legacyCopyToClipboard, mapGamepadToXbox360Controller, scrollTo, throttle, useActiveElement, useAsync, useBattery, useBluetooth, useBoolean, useBreakpoints, useBrowserLanguage, useClickOutside, useClipboard, useConst, useCounter, useCssVar, useDebounceCallback, useDebounceValue, useDefault, useDeviceMotion, useDeviceOrientation, useDidUpdate, useDisclosure, useDocumentEvent, useDocumentTitle, useDocumentVisibility, useElementSize, useEvent, useEventListener, useEyeDropper, useFavicon, useField, useFileDialog, useFocus, useFps, useFullscreen, useGamepad, useGeolocation, useHash, useHotkeys, useHover, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useInterval, useIsFirstRender, useIsomorphicLayoutEffect, useKeyPress, useKeyPressEvent, useKeyboard, useKeysPressed, useLastChanged, useLatest, useList, useLocalStorage, useLogger, useLongPress, useMap, useMeasure, useMediaQuery, useMemory, useMount, useMouse, useMutation, useMutationObserver, useNetwork, useOffsetPagination, useOnline, useOperatingSystem, useOptimistic, useOrientation, useOtpCredential, usePageLeave, usePaint, useParallax, usePermission, usePointerLock, usePostMessage, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useQuery, useQueue, useRaf, useRafValue, useRenderCount, useRenderInfo, useRerender, useResizeObserver, useScreenOrientation, type useScreenOrientationReturn, useScript, useScroll, useScrollTo, useSessionStorage, useSet, useShare, useStep, useStopwatch, useStorage, useTextDirection, useTextSelection, useThrottleCallback, useThrottleValue, useTime, useTimeout, useTimer, useToggle, useUnmount, useVibrate, useWebSocket, useWindowEvent, useWindowFocus, useWindowScroll, useWindowSize, useWizard };