@siberiacancode/reactuse 0.0.98 → 0.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/dist/cjs/{_rollupPluginBabelHelpers-Du0ODElA.js → _rollupPluginBabelHelpers-DjrPZN5E.js} +2 -2
  2. package/dist/cjs/_rollupPluginBabelHelpers-DjrPZN5E.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/useBattery/useBattery.js.map +1 -1
  8. package/dist/cjs/hooks/useBluetooth/useBluetooth.js +2 -2
  9. package/dist/cjs/hooks/useBluetooth/useBluetooth.js.map +1 -1
  10. package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
  11. package/dist/cjs/hooks/useBoolean/useBoolean.js.map +1 -1
  12. package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
  13. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  14. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js.map +1 -1
  15. package/dist/cjs/hooks/useClickOutside/useClickOutside.js +2 -2
  16. package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
  17. package/dist/cjs/hooks/useClipboard/useClipboard.js.map +1 -1
  18. package/dist/cjs/hooks/useConst/useConst.js +1 -1
  19. package/dist/cjs/hooks/useCookie/useCookie.js +2 -2
  20. package/dist/cjs/hooks/useCookie/useCookie.js.map +1 -1
  21. package/dist/cjs/hooks/useCookies/useCookies.js +2 -2
  22. package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
  23. package/dist/cjs/hooks/useCounter/useCounter.js.map +1 -1
  24. package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
  25. package/dist/cjs/hooks/useCssVar/useCssVar.js.map +1 -1
  26. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  27. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js.map +1 -1
  28. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
  29. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js.map +1 -1
  30. package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
  31. package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  32. package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js.map +1 -1
  33. package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  34. package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js.map +1 -1
  35. package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
  36. package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js.map +1 -1
  37. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
  38. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js.map +1 -1
  39. package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
  40. package/dist/cjs/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
  41. package/dist/cjs/hooks/useDisplayMedia/useDisplayMedia.js.map +1 -1
  42. package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  43. package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  44. package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  45. package/dist/cjs/hooks/useElementSize/useElementSize.js +2 -2
  46. package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
  47. package/dist/cjs/hooks/useEventListener/useEventListener.js +2 -2
  48. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
  49. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js.map +1 -1
  50. package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
  51. package/dist/cjs/hooks/useField/useField.js +2 -2
  52. package/dist/cjs/hooks/useField/useField.js.map +1 -1
  53. package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
  54. package/dist/cjs/hooks/useFileDialog/useFileDialog.js.map +1 -1
  55. package/dist/cjs/hooks/useFocus/useFocus.js +2 -2
  56. package/dist/cjs/hooks/useFocus/useFocus.js.map +1 -1
  57. package/dist/cjs/hooks/useFps/useFps.js +2 -2
  58. package/dist/cjs/hooks/useFps/useFps.js.map +1 -1
  59. package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
  60. package/dist/cjs/hooks/useGamepad/useGamepad.js +2 -2
  61. package/dist/cjs/hooks/useGamepad/useGamepad.js.map +1 -1
  62. package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
  63. package/dist/cjs/hooks/useGeolocation/useGeolocation.js.map +1 -1
  64. package/dist/cjs/hooks/useHash/useHash.js +2 -2
  65. package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
  66. package/dist/cjs/hooks/useHover/useHover.js +2 -2
  67. package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
  68. package/dist/cjs/hooks/useImage/useImage.js +2 -2
  69. package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  70. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  71. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js.map +1 -1
  72. package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
  73. package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  74. package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  75. package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
  76. package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  77. package/dist/cjs/hooks/useKeyboard/useKeyboard.js +2 -2
  78. package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
  79. package/dist/cjs/hooks/useLastChanged/useLastChanged.js +2 -2
  80. package/dist/cjs/hooks/useLatest/useLatest.js +1 -1
  81. package/dist/cjs/hooks/useLess/useLess.js +3 -0
  82. package/dist/cjs/hooks/useLess/useLess.js.map +1 -0
  83. package/dist/cjs/hooks/useList/useList.js +2 -2
  84. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
  85. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
  86. package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
  87. package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
  88. package/dist/cjs/hooks/useMap/useMap.js +2 -2
  89. package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
  90. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
  91. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js.map +1 -1
  92. package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
  93. package/dist/cjs/hooks/useMemory/useMemory.js.map +1 -1
  94. package/dist/cjs/hooks/useMount/useMount.js +1 -1
  95. package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
  96. package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
  97. package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
  98. package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
  99. package/dist/cjs/hooks/useNetwork/useNetwork.js.map +1 -1
  100. package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  101. package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
  102. package/dist/cjs/hooks/useOnline/useOnline.js.map +1 -1
  103. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
  104. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js.map +1 -1
  105. package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
  106. package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
  107. package/dist/cjs/hooks/useOrientation/useOrientation.js.map +1 -1
  108. package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
  109. package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js.map +1 -1
  110. package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
  111. package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
  112. package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
  113. package/dist/cjs/hooks/usePerformanceObserver/usePerformanceObserver.js +3 -0
  114. package/dist/cjs/hooks/usePerformanceObserver/usePerformanceObserver.js.map +1 -0
  115. package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
  116. package/dist/cjs/hooks/usePermission/usePermission.js.map +1 -1
  117. package/dist/cjs/hooks/usePointerLock/usePointerLock.js +2 -2
  118. package/dist/cjs/hooks/usePointerLock/usePointerLock.js.map +1 -1
  119. package/dist/cjs/hooks/usePostMessage/usePostMessage.js +1 -1
  120. package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  121. package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  122. package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
  123. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  124. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js.map +1 -1
  125. package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  126. package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
  127. package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
  128. package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
  129. package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
  130. package/dist/cjs/hooks/useRaf/useRaf.js.map +1 -1
  131. package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
  132. package/dist/cjs/hooks/useRefState/useRefState.js +2 -2
  133. package/dist/cjs/hooks/useRefState/useRefState.js.map +1 -1
  134. package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
  135. package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
  136. package/dist/cjs/hooks/useRerender/useRerender.js +1 -1
  137. package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js +2 -2
  138. package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js.map +1 -1
  139. package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  140. package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js.map +1 -1
  141. package/dist/cjs/hooks/useScript/useScript.js +2 -2
  142. package/dist/cjs/hooks/useScroll/useScroll.js +2 -2
  143. package/dist/cjs/hooks/useScroll/useScroll.js.map +1 -1
  144. package/dist/cjs/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
  145. package/dist/cjs/hooks/useScrollTo/useScrollTo.js +2 -2
  146. package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
  147. package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js.map +1 -1
  148. package/dist/cjs/hooks/useSet/useSet.js +2 -2
  149. package/dist/cjs/hooks/useShare/useShare.js +2 -2
  150. package/dist/cjs/hooks/useStateHistory/useStateHistory.js +2 -2
  151. package/dist/cjs/hooks/useStep/useStep.js +2 -2
  152. package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
  153. package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
  154. package/dist/cjs/hooks/useStorage/useStorage.js.map +1 -1
  155. package/dist/cjs/hooks/useTextDirection/useTextDirection.js +2 -2
  156. package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
  157. package/dist/cjs/hooks/useTextSelection/useTextSelection.js.map +1 -1
  158. package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  159. package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js.map +1 -1
  160. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js +2 -2
  161. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js.map +1 -1
  162. package/dist/cjs/hooks/useTime/useTime.js +2 -2
  163. package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
  164. package/dist/cjs/hooks/useTimer/useTimer.js +2 -2
  165. package/dist/cjs/hooks/useTimer/useTimer.js.map +1 -1
  166. package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
  167. package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
  168. package/dist/cjs/hooks/useVibrate/useVibrate.js +2 -2
  169. package/dist/cjs/hooks/useVibrate/useVibrate.js.map +1 -1
  170. package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
  171. package/dist/cjs/hooks/useWebSocket/useWebSocket.js.map +1 -1
  172. package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +2 -2
  173. package/dist/cjs/hooks/useWindowFocus/useWindowFocus.js +2 -2
  174. package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
  175. package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
  176. package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
  177. package/dist/cjs/index.js +2 -2
  178. package/dist/cjs/utils/helpers/debounce.js +1 -1
  179. package/dist/cjs/utils/helpers/getDate.js +1 -1
  180. package/dist/cjs/utils/helpers/getElement.js +1 -1
  181. package/dist/cjs/utils/helpers/getRetry.js +1 -1
  182. package/dist/cjs/utils/helpers/index.js +2 -2
  183. package/dist/cjs/utils/helpers/isTarget.js +2 -2
  184. package/dist/cjs/utils/helpers/throttle.js +1 -1
  185. package/dist/esm/{_rollupPluginBabelHelpers-DMxTFLvA.js → _rollupPluginBabelHelpers-hUSWuNSL.js} +2 -2
  186. package/dist/esm/_rollupPluginBabelHelpers-hUSWuNSL.js.map +1 -0
  187. package/dist/esm/hooks/index.js +2 -2
  188. package/dist/esm/hooks/useActiveElement/useActiveElement.js +2 -2
  189. package/dist/esm/hooks/useAsync/useAsync.js +2 -2
  190. package/dist/esm/hooks/useBattery/useBattery.js +2 -2
  191. package/dist/esm/hooks/useBattery/useBattery.js.map +1 -1
  192. package/dist/esm/hooks/useBluetooth/useBluetooth.js +2 -2
  193. package/dist/esm/hooks/useBluetooth/useBluetooth.js.map +1 -1
  194. package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
  195. package/dist/esm/hooks/useBoolean/useBoolean.js.map +1 -1
  196. package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
  197. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  198. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js.map +1 -1
  199. package/dist/esm/hooks/useClickOutside/useClickOutside.js +2 -2
  200. package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
  201. package/dist/esm/hooks/useClipboard/useClipboard.js.map +1 -1
  202. package/dist/esm/hooks/useConst/useConst.js +1 -1
  203. package/dist/esm/hooks/useCookie/useCookie.js +2 -2
  204. package/dist/esm/hooks/useCookie/useCookie.js.map +1 -1
  205. package/dist/esm/hooks/useCookies/useCookies.js +2 -2
  206. package/dist/esm/hooks/useCounter/useCounter.js +2 -2
  207. package/dist/esm/hooks/useCounter/useCounter.js.map +1 -1
  208. package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
  209. package/dist/esm/hooks/useCssVar/useCssVar.js.map +1 -1
  210. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  211. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js.map +1 -1
  212. package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
  213. package/dist/esm/hooks/useDebounceValue/useDebounceValue.js.map +1 -1
  214. package/dist/esm/hooks/useDefault/useDefault.js +2 -2
  215. package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  216. package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js.map +1 -1
  217. package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  218. package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js.map +1 -1
  219. package/dist/esm/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
  220. package/dist/esm/hooks/useDevicePixelRatio/useDevicePixelRatio.js.map +1 -1
  221. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
  222. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js.map +1 -1
  223. package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
  224. package/dist/esm/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
  225. package/dist/esm/hooks/useDisplayMedia/useDisplayMedia.js.map +1 -1
  226. package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  227. package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  228. package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  229. package/dist/esm/hooks/useElementSize/useElementSize.js +2 -2
  230. package/dist/esm/hooks/useEvent/useEvent.js +1 -1
  231. package/dist/esm/hooks/useEventListener/useEventListener.js +2 -2
  232. package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
  233. package/dist/esm/hooks/useEyeDropper/useEyeDropper.js.map +1 -1
  234. package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
  235. package/dist/esm/hooks/useField/useField.js +2 -2
  236. package/dist/esm/hooks/useField/useField.js.map +1 -1
  237. package/dist/esm/hooks/useFileDialog/useFileDialog.js +2 -2
  238. package/dist/esm/hooks/useFileDialog/useFileDialog.js.map +1 -1
  239. package/dist/esm/hooks/useFocus/useFocus.js +2 -2
  240. package/dist/esm/hooks/useFocus/useFocus.js.map +1 -1
  241. package/dist/esm/hooks/useFps/useFps.js +2 -2
  242. package/dist/esm/hooks/useFps/useFps.js.map +1 -1
  243. package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
  244. package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
  245. package/dist/esm/hooks/useGamepad/useGamepad.js.map +1 -1
  246. package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
  247. package/dist/esm/hooks/useGeolocation/useGeolocation.js.map +1 -1
  248. package/dist/esm/hooks/useHash/useHash.js +2 -2
  249. package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
  250. package/dist/esm/hooks/useHover/useHover.js +2 -2
  251. package/dist/esm/hooks/useIdle/useIdle.js +2 -2
  252. package/dist/esm/hooks/useImage/useImage.js +2 -2
  253. package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  254. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  255. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js.map +1 -1
  256. package/dist/esm/hooks/useInterval/useInterval.js +2 -2
  257. package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  258. package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  259. package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
  260. package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  261. package/dist/esm/hooks/useKeyboard/useKeyboard.js +2 -2
  262. package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
  263. package/dist/esm/hooks/useLastChanged/useLastChanged.js +2 -2
  264. package/dist/esm/hooks/useLatest/useLatest.js +1 -1
  265. package/dist/esm/hooks/useLess/useLess.js +3 -0
  266. package/dist/esm/hooks/useLess/useLess.js.map +1 -0
  267. package/dist/esm/hooks/useList/useList.js +2 -2
  268. package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
  269. package/dist/esm/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
  270. package/dist/esm/hooks/useLogger/useLogger.js +2 -2
  271. package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
  272. package/dist/esm/hooks/useMap/useMap.js +2 -2
  273. package/dist/esm/hooks/useMeasure/useMeasure.js +2 -2
  274. package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
  275. package/dist/esm/hooks/useMediaQuery/useMediaQuery.js.map +1 -1
  276. package/dist/esm/hooks/useMemory/useMemory.js +2 -2
  277. package/dist/esm/hooks/useMemory/useMemory.js.map +1 -1
  278. package/dist/esm/hooks/useMount/useMount.js +1 -1
  279. package/dist/esm/hooks/useMouse/useMouse.js +2 -2
  280. package/dist/esm/hooks/useMutation/useMutation.js +2 -2
  281. package/dist/esm/hooks/useMutationObserver/useMutationObserver.js +2 -2
  282. package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
  283. package/dist/esm/hooks/useNetwork/useNetwork.js.map +1 -1
  284. package/dist/esm/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  285. package/dist/esm/hooks/useOnline/useOnline.js +1 -1
  286. package/dist/esm/hooks/useOnline/useOnline.js.map +1 -1
  287. package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
  288. package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js.map +1 -1
  289. package/dist/esm/hooks/useOptimistic/useOptimistic.js +2 -2
  290. package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
  291. package/dist/esm/hooks/useOrientation/useOrientation.js.map +1 -1
  292. package/dist/esm/hooks/useOtpCredential/useOtpCredential.js +2 -2
  293. package/dist/esm/hooks/useOtpCredential/useOtpCredential.js.map +1 -1
  294. package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
  295. package/dist/esm/hooks/usePaint/usePaint.js +2 -2
  296. package/dist/esm/hooks/useParallax/useParallax.js +2 -2
  297. package/dist/esm/hooks/usePerformanceObserver/usePerformanceObserver.js +3 -0
  298. package/dist/esm/hooks/usePerformanceObserver/usePerformanceObserver.js.map +1 -0
  299. package/dist/esm/hooks/usePermission/usePermission.js +2 -2
  300. package/dist/esm/hooks/usePermission/usePermission.js.map +1 -1
  301. package/dist/esm/hooks/usePointerLock/usePointerLock.js +2 -2
  302. package/dist/esm/hooks/usePointerLock/usePointerLock.js.map +1 -1
  303. package/dist/esm/hooks/usePostMessage/usePostMessage.js +1 -1
  304. package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  305. package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  306. package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
  307. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  308. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js.map +1 -1
  309. package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  310. package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
  311. package/dist/esm/hooks/useQuery/useQuery.js +2 -2
  312. package/dist/esm/hooks/useQueue/useQueue.js +2 -2
  313. package/dist/esm/hooks/useRaf/useRaf.js +2 -2
  314. package/dist/esm/hooks/useRaf/useRaf.js.map +1 -1
  315. package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
  316. package/dist/esm/hooks/useRefState/useRefState.js +2 -2
  317. package/dist/esm/hooks/useRefState/useRefState.js.map +1 -1
  318. package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
  319. package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
  320. package/dist/esm/hooks/useRerender/useRerender.js +1 -1
  321. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
  322. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js.map +1 -1
  323. package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  324. package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js.map +1 -1
  325. package/dist/esm/hooks/useScript/useScript.js +2 -2
  326. package/dist/esm/hooks/useScroll/useScroll.js +2 -2
  327. package/dist/esm/hooks/useScroll/useScroll.js.map +1 -1
  328. package/dist/esm/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
  329. package/dist/esm/hooks/useScrollTo/useScrollTo.js +2 -2
  330. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
  331. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js.map +1 -1
  332. package/dist/esm/hooks/useSet/useSet.js +2 -2
  333. package/dist/esm/hooks/useShare/useShare.js +2 -2
  334. package/dist/esm/hooks/useStateHistory/useStateHistory.js +2 -2
  335. package/dist/esm/hooks/useStep/useStep.js +2 -2
  336. package/dist/esm/hooks/useStopwatch/useStopwatch.js +2 -2
  337. package/dist/esm/hooks/useStorage/useStorage.js +2 -2
  338. package/dist/esm/hooks/useStorage/useStorage.js.map +1 -1
  339. package/dist/esm/hooks/useTextDirection/useTextDirection.js +2 -2
  340. package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
  341. package/dist/esm/hooks/useTextSelection/useTextSelection.js.map +1 -1
  342. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  343. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js.map +1 -1
  344. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js +2 -2
  345. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js.map +1 -1
  346. package/dist/esm/hooks/useTime/useTime.js +2 -2
  347. package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
  348. package/dist/esm/hooks/useTimer/useTimer.js +2 -2
  349. package/dist/esm/hooks/useTimer/useTimer.js.map +1 -1
  350. package/dist/esm/hooks/useToggle/useToggle.js +2 -2
  351. package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
  352. package/dist/esm/hooks/useVibrate/useVibrate.js +2 -2
  353. package/dist/esm/hooks/useVibrate/useVibrate.js.map +1 -1
  354. package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
  355. package/dist/esm/hooks/useWebSocket/useWebSocket.js.map +1 -1
  356. package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +2 -2
  357. package/dist/esm/hooks/useWindowFocus/useWindowFocus.js +2 -2
  358. package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
  359. package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
  360. package/dist/esm/hooks/useWizard/useWizard.js +2 -2
  361. package/dist/esm/index.js +2 -2
  362. package/dist/esm/utils/helpers/debounce.js +1 -1
  363. package/dist/esm/utils/helpers/getDate.js +1 -1
  364. package/dist/esm/utils/helpers/getElement.js +1 -1
  365. package/dist/esm/utils/helpers/getRetry.js +1 -1
  366. package/dist/esm/utils/helpers/index.js +2 -2
  367. package/dist/esm/utils/helpers/isTarget.js +2 -2
  368. package/dist/esm/utils/helpers/throttle.js +1 -1
  369. package/dist/types/index.d.ts +153 -48
  370. package/package.json +1 -1
  371. package/dist/cjs/_rollupPluginBabelHelpers-Du0ODElA.js.map +0 -1
  372. package/dist/cjs/hooks/useGamepad/helpers/index.js +0 -3
  373. package/dist/cjs/hooks/useGamepad/helpers/index.js.map +0 -1
  374. package/dist/cjs/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +0 -3
  375. package/dist/cjs/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js.map +0 -1
  376. package/dist/esm/_rollupPluginBabelHelpers-DMxTFLvA.js.map +0 -1
  377. package/dist/esm/hooks/useGamepad/helpers/index.js +0 -3
  378. package/dist/esm/hooks/useGamepad/helpers/index.js.map +0 -1
  379. package/dist/esm/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +0 -3
  380. package/dist/esm/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js.map +0 -1
@@ -69,6 +69,8 @@ interface UseBatteryStateReturn {
69
69
  * @description - Hook for getting information about battery status
70
70
  * @category Browser
71
71
  *
72
+ * @browserapi navigator.getBattery https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getBattery
73
+ *
72
74
  * @returns {UseBatteryStateReturn} Object containing battery information & Battery API support
73
75
  *
74
76
  * @example
@@ -103,6 +105,8 @@ interface UseBluetoothOptions {
103
105
  * @description - Hook for getting information about bluetooth
104
106
  * @category Browser
105
107
  *
108
+ * @browserapi navigator.bluetooth https://developer.mozilla.org/en-US/docs/Web/API/Navigator/bluetooth
109
+ *
106
110
  * @param {boolean} [options.acceptAllDevices=false] The options to request all Bluetooth devices
107
111
  * @param {Array<BluetoothLEScanFilter>} [options.filters] Array of filters to apply when scanning Bluetooth devices
108
112
  * @param {Array<BluetoothServiceUUID>} [options.optionalServices] Array of optional services that the application can use
@@ -122,7 +126,7 @@ type UseBooleanReturn = [
122
126
  ];
123
127
  /**
124
128
  * @name useBoolean
125
- * @description - Hook provides a boolean state and a function to toggle the boolean value
129
+ * @description - Hook provides opportunity to manage boolean state
126
130
  * @category Utilities
127
131
  *
128
132
  * @param {boolean} [initialValue=false] The initial boolean value
@@ -264,6 +268,8 @@ declare const BREAKPOINTS_PRIME_FLEX: {
264
268
  * @description - Hook that returns the current browser language
265
269
  * @category Browser
266
270
  *
271
+ * @browserapi navigator.language https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
272
+ *
267
273
  * @returns {string} The current browser language
268
274
  *
269
275
  * @example
@@ -279,7 +285,7 @@ interface StateRef<Value> {
279
285
  /**
280
286
  * @name useRefState
281
287
  * @description - Hook that returns the state reference of the value
282
- * @category Lifecycle
288
+ * @category Utilities
283
289
  *
284
290
  * @template Value The type of the value
285
291
  * @param {Value} [initialValue] The initial value
@@ -341,6 +347,8 @@ interface UseCopyToClipboardParams {
341
347
  * @description - Hook that manages a copy to clipboard
342
348
  * @category Browser
343
349
  *
350
+ * @browserapi navigator.clipboard https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard
351
+ *
344
352
  * @param {boolean} [params.enabled=false] Whether the copy to clipboard is enabled
345
353
  * @returns {UseCopyToClipboardReturn} An object containing the boolean state value and utility functions to manipulate the state
346
354
  *
@@ -481,7 +489,7 @@ interface UseCounter {
481
489
  }
482
490
  /**
483
491
  * @name useCounter
484
- * @description - Hook that manages a counter with increment, decrement, reset, and set functionalities
492
+ * @description - Hook that manages a counter
485
493
  * @category Utilities
486
494
  *
487
495
  * @overload
@@ -519,7 +527,7 @@ interface UseCssVar {
519
527
  }
520
528
  /**
521
529
  * @name useCssVar
522
- * @description - Hook that returns the value of a CSS variable
530
+ * @description - Hook that returns the value of a css variable
523
531
  * @category Utilities
524
532
  *
525
533
  * @overload
@@ -544,7 +552,7 @@ declare const useCssVar: UseCssVar;
544
552
 
545
553
  /**
546
554
  * @name useDebounceCallback
547
- * @description - Hook that creates a debounced callback and returns a stable reference of it
555
+ * @description - Hook that creates a debounced callback
548
556
  * @category Utilities
549
557
  *
550
558
  * @template Params The type of the params
@@ -560,7 +568,7 @@ declare const useDebounceCallback: <Params extends unknown[], Return>(callback:
560
568
 
561
569
  /**
562
570
  * @name useDebounceValue
563
- * @description - Hook that creates a debounced value and returns a stable reference of it
571
+ * @description - Hook that creates a debounced value
564
572
  * @category Utilities
565
573
  *
566
574
  * @template Value The type of the value
@@ -607,6 +615,8 @@ interface UseDeviceMotionParams {
607
615
  * @description - Hook that work with device motion
608
616
  * @category Utilities
609
617
  *
618
+ * @browserapi DeviceMotionEvent https://developer.mozilla.org/en-US/docs/Web/API/Window/DeviceMotionEvent
619
+ *
610
620
  * @param {number} [delay=1000] The delay in milliseconds
611
621
  * @param {(event: DeviceMotionEvent) => void} [callback] The callback function to be invoked
612
622
  * @param {boolean} [enabled=true] Whether to enable the hook
@@ -638,6 +648,8 @@ interface UseDeviceOrientationReturn {
638
648
  * @description - Hook that provides the current device orientation
639
649
  * @category Sensors
640
650
  *
651
+ * @browserapi DeviceOrientationEvent https://developer.mozilla.org/en-US/docs/Web/API/Window/DeviceOrientationEvent
652
+ *
641
653
  * @returns {UseDeviceOrientationReturn} The current device orientation
642
654
  *
643
655
  * @example
@@ -654,9 +666,11 @@ interface UseDevicePixelRatioReturn {
654
666
  }
655
667
  /**
656
668
  * @name useDevicePixelRatio
657
- * @description - Hook that returns the ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device
669
+ * @description - Hook that returns the device's pixel ratio
658
670
  * @category Utilities
659
671
  *
672
+ * @browserapi window.devicePixelRatio https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
673
+ *
660
674
  * @returns {UseDevicePixelRatioReturn} The ratio and supported flag
661
675
  *
662
676
  * @example
@@ -666,14 +680,14 @@ declare const useDevicePixelRatio: () => UseDevicePixelRatioReturn;
666
680
 
667
681
  /**
668
682
  * @name useDidUpdate
669
- * @description – Hook that behaves like useEffect, but skips the effect on the initial render
683
+ * @description – Hook that triggers the effect callback on updates
670
684
  * @category Lifecycle
671
685
  *
672
686
  * @param {EffectCallback} effect The effect callback
673
687
  * @param {DependencyList} [deps] The dependencies list for the effect
674
688
  *
675
689
  * @example
676
- * useDidUpdate(() => console.log('Won't be called when mounted'), [deps]);
690
+ * useDidUpdate(() => console.log("Won't be called when mounted"), [deps]);
677
691
  */
678
692
  declare const useDidUpdate: (effect: EffectCallback, deps?: DependencyList) => void;
679
693
 
@@ -742,9 +756,11 @@ interface UseDisplayMediaOverload {
742
756
  }
743
757
  /**
744
758
  * @name useDisplayMedia
745
- * @description - Hook that provides screen sharing functionality using the Display Media API
759
+ * @description - Hook that provides screen sharing functionality
746
760
  * @category Browser
747
761
  *
762
+ * @browserapi mediaDevices.getDisplayMedia https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia
763
+ *
748
764
  * @overload
749
765
  * @template Target The target video element
750
766
  * @param {Target} target The target video element to display the media stream
@@ -973,6 +989,8 @@ interface UseEyeDropperReturn {
973
989
  * @description - Hook that gives you access to the eye dropper
974
990
  * @category Browser
975
991
  *
992
+ * @browserapi EyeDropper https://developer.mozilla.org/en-US/docs/Web/API/EyeDropper
993
+ *
976
994
  * @param {string} [initialValue=undefined] The initial value for the eye dropper
977
995
  * @returns {UseEyeDropperReturn} An object containing the supported status, the value and the open method
978
996
  *
@@ -1191,6 +1209,8 @@ declare const useFocus: UseFocus;
1191
1209
  * @description - Hook that measures frames per second
1192
1210
  * @category Sensors
1193
1211
  *
1212
+ * @browserapi requestAnimationFrame https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
1213
+ *
1194
1214
  * @returns {number} A number which determines frames per second
1195
1215
  *
1196
1216
  * @example
@@ -1254,6 +1274,37 @@ interface UseFullScreen {
1254
1274
  */
1255
1275
  declare const useFullscreen: UseFullScreen;
1256
1276
 
1277
+ declare global {
1278
+ interface Gamepad {
1279
+ hapticActuators?: GamepadHapticActuator[];
1280
+ }
1281
+ }
1282
+ /** The use gamepad return type */
1283
+ interface UseGamepadStateReturn {
1284
+ /** The gamepad active status */
1285
+ active: boolean;
1286
+ /** The gamepad state */
1287
+ gamepads: Gamepad[];
1288
+ /** The gamepad supported status */
1289
+ supported: boolean;
1290
+ }
1291
+ /**
1292
+ * @name useGamepad
1293
+ * @description - Hook for getting information about gamepad
1294
+ * @category Browser
1295
+ *
1296
+ * @browserapi navigator.getGamepads https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getGamepads
1297
+ *
1298
+ * @returns {UseGamepadStateReturn} An object containing the gamepad information
1299
+ *
1300
+ * @example
1301
+ * const { supported, gamepads, active } = useGamepad();
1302
+ */
1303
+ declare const useGamepad: () => {
1304
+ active: boolean;
1305
+ supported: boolean;
1306
+ gamepads: Gamepad[];
1307
+ };
1257
1308
  declare const mapGamepadToXbox360Controller: (gamepad: Gamepad) => {
1258
1309
  buttons: {
1259
1310
  a: GamepadButton;
@@ -1291,36 +1342,6 @@ declare const mapGamepadToXbox360Controller: (gamepad: Gamepad) => {
1291
1342
  start: GamepadButton;
1292
1343
  };
1293
1344
 
1294
- declare global {
1295
- interface Gamepad {
1296
- hapticActuators?: GamepadHapticActuator[];
1297
- }
1298
- }
1299
- /** The use gamepad return type */
1300
- interface UseGamepadStateReturn {
1301
- /** The gamepad active status */
1302
- active: boolean;
1303
- /** The gamepad state */
1304
- gamepads: Gamepad[];
1305
- /** The gamepad supported status */
1306
- supported: boolean;
1307
- }
1308
- /**
1309
- * @name useGamepad
1310
- * @description - Hook for getting information about gamepad
1311
- * @category Browser
1312
- *
1313
- * @returns {UseGamepadStateReturn} An object containing the gamepad information
1314
- *
1315
- * @example
1316
- * const { supported, gamepads, active } = useGamepad();
1317
- */
1318
- declare const useGamepad: () => {
1319
- active: boolean;
1320
- supported: boolean;
1321
- gamepads: Gamepad[];
1322
- };
1323
-
1324
1345
  /** The use geolocation return type */
1325
1346
  interface UseGeolocationReturn {
1326
1347
  /** The accuracy of the last position update */
@@ -1351,6 +1372,8 @@ type UseGeolocationParams = PositionOptions;
1351
1372
  * @description - Hook that returns the current geolocation
1352
1373
  * @category Browser
1353
1374
  *
1375
+ * @browserapi navigator.geolocation https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation
1376
+ *
1354
1377
  * @param {boolean} [params.enableHighAccuracy] Enable high accuracy
1355
1378
  * @param {number} [params.maximumAge] Maximum age
1356
1379
  * @param {number} [params.timeout] Timeout
@@ -1926,6 +1949,20 @@ declare const useLastChanged: (source: any, options?: UseLastChangedOptions) =>
1926
1949
  */
1927
1950
  declare const useLatest: <Value>(value: Value) => Value;
1928
1951
 
1952
+ /**
1953
+ * @name useLess
1954
+ * @description - Hook that humorously suggests using it less not for production
1955
+ * @category Humor
1956
+ *
1957
+ * @template Value The type of the value
1958
+ * @param {Value} [value] The value to be returned
1959
+ * @returns {Value} The value passed to the hook
1960
+ *
1961
+ * @example
1962
+ * const value = useLess(state);
1963
+ */
1964
+ declare const useLess: (value?: any) => any;
1965
+
1929
1966
  /** The use list return type */
1930
1967
  interface UseListReturn<Item> {
1931
1968
  /** The current list of items */
@@ -2012,6 +2049,8 @@ declare const useStorage: <Value>(key: string, params?: UseStorageInitialValue<V
2012
2049
  * @description - Hook that manages local storage value
2013
2050
  * @category Browser
2014
2051
  *
2052
+ * @browserapi localStorage https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
2053
+ *
2015
2054
  * @template Value The type of the value
2016
2055
  * @param {string} key The key of the storage
2017
2056
  * @param {UseStorageInitialValue<Value>} [initialValue] The initial value of the storage
@@ -2145,6 +2184,8 @@ declare const useMeasure: UseMeasureScreen;
2145
2184
  * @description - Hook that manages a media query
2146
2185
  * @category Browser
2147
2186
  *
2187
+ * @browserapi window.matchMedia https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia
2188
+ *
2148
2189
  * @param {string} query The media query string
2149
2190
  * @returns {boolean} A boolean indicating if the media query matches
2150
2191
  *
@@ -2174,6 +2215,8 @@ interface UseMemoryReturn {
2174
2215
  * @description - Hook that gives you current memory usage
2175
2216
  * @category Browser
2176
2217
  *
2218
+ * @browserapi performance.memory https://developer.mozilla.org/en-US/docs/Web/API/Performance/memory
2219
+ *
2177
2220
  * @returns {UseMemoryReturn} An object containing the current memory usage
2178
2221
  *
2179
2222
  * @example
@@ -2379,6 +2422,8 @@ declare const getConnection: () => Connection;
2379
2422
  * @description - Hook to track network status
2380
2423
  * @category Sensors
2381
2424
  *
2425
+ * @browserapi navigator.connection https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection
2426
+ *
2382
2427
  * @returns {UseNetworkReturn} An object containing the network status
2383
2428
  *
2384
2429
  * @example
@@ -2460,6 +2505,8 @@ declare const useOffsetPagination: ({ total, pageSize, initialPage, onPageChange
2460
2505
  * @description - Hook that manages if the user is online
2461
2506
  * @category Sensors
2462
2507
  *
2508
+ * @browserapi navigator.onLine https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine
2509
+ *
2463
2510
  * @returns {boolean} A boolean indicating if the user is online
2464
2511
  *
2465
2512
  * @example
@@ -2513,6 +2560,8 @@ interface UseOrientationReturn {
2513
2560
  * @description - Hook that returns the current screen orientation
2514
2561
  * @category Browser
2515
2562
  *
2563
+ * @browserapi window.screen.orientation https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation
2564
+ *
2516
2565
  * @returns {UseOrientationReturn} An object containing the current screen orientation
2517
2566
  *
2518
2567
  * @example
@@ -2551,6 +2600,8 @@ interface UseOtpCredential {
2551
2600
  * @description - Hook that creates an otp credential
2552
2601
  * @category Browser
2553
2602
  *
2603
+ * @browserapi navigator.credentials https://developer.mozilla.org/en-US/docs/Web/API/Navigator/credentials
2604
+ *
2554
2605
  * @overload
2555
2606
  * @param {UseOtpCredentialCallback} callback The callback function to be invoked
2556
2607
  * @returns {UseOtpCredentialReturn}
@@ -2733,6 +2784,32 @@ interface UseParallax {
2733
2784
  */
2734
2785
  declare const useParallax: UseParallax;
2735
2786
 
2787
+ /** The use performance observer options type */
2788
+ type UsePerformanceObserverOptions = PerformanceObserverInit & {
2789
+ /** Whether to start the observer immediately */
2790
+ immediate?: boolean;
2791
+ };
2792
+ /**
2793
+ * @name usePerformanceObserver
2794
+ * @description - Hook that allows you to observe performance entries
2795
+ * @category Sensors
2796
+ *
2797
+ * @browserapi PerformanceObserver https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver
2798
+ *
2799
+ * @param {UsePerformanceObserverOptions} options The options for the performance observer
2800
+ * @param {PerformanceObserverCallback} callback The function to handle performance entries
2801
+ * @returns {object} An object containing the observer's support status and methods to start and stop the observer
2802
+ *
2803
+ * @example
2804
+ * const { supported, entries, start, stop } = usePerformanceObserver();
2805
+ */
2806
+ declare const usePerformanceObserver: (options: UsePerformanceObserverOptions, callback?: PerformanceObserverCallback) => {
2807
+ supported: boolean;
2808
+ entries: PerformanceEntry[];
2809
+ start: () => void;
2810
+ stop: () => void;
2811
+ };
2812
+
2736
2813
  /** The permission name */
2737
2814
  type UsePermissionName = 'accelerometer' | 'accessibility-events' | 'ambient-light-sensor' | 'background-sync' | 'camera' | 'clipboard-read' | 'clipboard-write' | 'gyroscope' | 'magnetometer' | 'microphone' | 'notifications' | 'payment-handler' | 'persistent-storage' | 'push' | 'speaker' | PermissionName;
2738
2815
  /** The use permission options type */
@@ -2754,6 +2831,8 @@ interface UsePermissionReturn {
2754
2831
  * @description - Hook that gives you the state of permission
2755
2832
  * @category Browser
2756
2833
  *
2834
+ * @browserapi navigator.permissions https://developer.mozilla.org/en-US/docs/Web/API/Navigator/permissions
2835
+ *
2757
2836
  * @param {UsePermissionName} permissionDescriptorName - The permission name
2758
2837
  * @param {boolean} [options.enabled=true] - Whether the permission is enabled
2759
2838
  * @returns {UsePermissionReturn} An object containing the state and the supported status
@@ -2769,9 +2848,13 @@ declare const usePermission: (permissionDescriptorName: UsePermissionName, optio
2769
2848
 
2770
2849
  /** The use pointer lock return type */
2771
2850
  interface UsePointerLockReturn {
2851
+ /** The pointer lock element */
2772
2852
  element?: Element;
2853
+ /** Whether the pointer lock is supported */
2773
2854
  supported: boolean;
2855
+ /** Lock the pointer lock */
2774
2856
  lock: (event: MouseEvent$1) => void;
2857
+ /** Unlock the pointer lock */
2775
2858
  unlock: () => boolean;
2776
2859
  }
2777
2860
  /**
@@ -2779,6 +2862,8 @@ interface UsePointerLockReturn {
2779
2862
  * @description - Hook that provides reactive pointer lock
2780
2863
  * @category Sensors
2781
2864
  *
2865
+ * @browserapi pointerLockElement https://developer.mozilla.org/en-US/docs/Web/API/Document/pointerLockElement
2866
+ *
2782
2867
  * @returns {UsePointerLockReturn} An object containing the pointer lock element and functions to interact with the pointer lock
2783
2868
  *
2784
2869
  * @example
@@ -2846,6 +2931,8 @@ declare const usePreferredDark: () => boolean;
2846
2931
  * @description Hook that returns a browser preferred languages from navigator
2847
2932
  * @category Browser
2848
2933
  *
2934
+ * @browserapi navigator.languages https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages
2935
+ *
2849
2936
  * @returns {readonly string[]} An array of strings representing the user's preferred languages
2850
2937
  *
2851
2938
  * @example
@@ -2942,6 +3029,8 @@ interface UseRafReturn {
2942
3029
  * @description - Hook that defines the logic for raf callback
2943
3030
  * @category Utilities
2944
3031
  *
3032
+ * @browserapi requestAnimationFrame https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
3033
+ *
2945
3034
  * @param {UseRafCallback} callback The callback to execute
2946
3035
  * @param {number} [options.delay] The delay between each frame in milliseconds
2947
3036
  * @param {boolean} [options.enabled=true] Whether the callback should be enabled
@@ -3038,6 +3127,8 @@ interface UseResizeObserver {
3038
3127
  * @description - Hook that gives you resize observer state
3039
3128
  * @category Browser
3040
3129
  *
3130
+ * @browserapi ResizeObserver https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver
3131
+ *
3041
3132
  * @overload
3042
3133
  * @template Target The target element
3043
3134
  * @param {boolean} [options.enabled=true] The IntersectionObserver options
@@ -3088,6 +3179,8 @@ interface useScreenOrientationReturn {
3088
3179
  * @description - Hook that provides the current screen orientation
3089
3180
  * @category Sensors
3090
3181
  *
3182
+ * @browserapi screen.orientation https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation
3183
+ *
3091
3184
  * @returns {useScreenOrientationReturn} The current screen orientation
3092
3185
  *
3093
3186
  * @example
@@ -3157,8 +3250,14 @@ interface UseScrollCallbackParams {
3157
3250
  interface UseScroll {
3158
3251
  <Target extends UseScrollTarget>(target: Target, callback?: (params: UseScrollCallbackParams, event: Event) => void): boolean;
3159
3252
  <Target extends UseScrollTarget>(target: Target, options?: UseScrollOptions): boolean;
3160
- <Target extends UseScrollTarget>(callback?: (params: UseScrollCallbackParams, event: Event) => void, target?: never): [StateRef<Target>, boolean];
3161
- <Target extends UseScrollTarget>(options?: UseScrollOptions, target?: never): [StateRef<Target>, boolean];
3253
+ <Target extends UseScrollTarget>(callback?: (params: UseScrollCallbackParams, event: Event) => void, target?: never): {
3254
+ ref: StateRef<Target>;
3255
+ scrolling: boolean;
3256
+ };
3257
+ <Target extends UseScrollTarget>(options?: UseScrollOptions, target?: never): {
3258
+ ref: StateRef<Target>;
3259
+ scrolling: boolean;
3260
+ };
3162
3261
  }
3163
3262
  /**
3164
3263
  * @name useScroll
@@ -3200,7 +3299,7 @@ interface UseScroll {
3200
3299
  * @returns {[StateRef<Target>, boolean]} The state of scrolling
3201
3300
  *
3202
3301
  * @example
3203
- * const [ref, scrolling] = useScroll(options);
3302
+ * const { ref, scrolling } = useScroll(options);
3204
3303
  *
3205
3304
  * @overload
3206
3305
  * @template Target The target element
@@ -3209,7 +3308,7 @@ interface UseScroll {
3209
3308
  * @returns {[StateRef<Target>, boolean]} The state of scrolling
3210
3309
  *
3211
3310
  * @example
3212
- * const [ref, scrolling] = useScroll(() => console.log('callback'));
3311
+ * const { ref, scrolling } = useScroll(() => console.log('callback'));
3213
3312
  */
3214
3313
  declare const useScroll: UseScroll;
3215
3314
 
@@ -3324,6 +3423,8 @@ declare const useScrollTo: UseScrollTo;
3324
3423
  * @description - Hook that manages session storage value
3325
3424
  * @category Browser
3326
3425
  *
3426
+ * @browserapi sessionStorage https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage
3427
+ *
3327
3428
  * @template Value The type of the value
3328
3429
  * @param {string} key The key of the storage
3329
3430
  * @param {UseStorageInitialValue<Value>} [initialValue] The initial value of the storage
@@ -3613,6 +3714,8 @@ interface UseTextSelectionReturn {
3613
3714
  * @description - Hook that manages the text selection
3614
3715
  * @category Sensors
3615
3716
  *
3717
+ * @browserapi document.getSelection https://developer.mozilla.org/en-US/docs/Web/API/Document/getSelection
3718
+ *
3616
3719
  * @returns {UseTextSelectionReturn} An object containing the current text selection
3617
3720
  *
3618
3721
  * @example
@@ -3622,7 +3725,7 @@ declare const useTextSelection: () => UseTextSelectionReturn;
3622
3725
 
3623
3726
  /**
3624
3727
  * @name useThrottleCallback
3625
- * @description - Hook that creates a throttled callback and returns a stable reference of it
3728
+ * @description - Hook that creates a throttled callback
3626
3729
  * @category Utilities
3627
3730
  *
3628
3731
  * @template Params The type of the params
@@ -3638,7 +3741,7 @@ declare const useThrottleCallback: <Params extends unknown[], Return>(callback:
3638
3741
 
3639
3742
  /**
3640
3743
  * @name useThrottleValue
3641
- * @description - Hook that creates a throttled value and returns a stable reference of it
3744
+ * @description - Hook that creates a throttled value
3642
3745
  * @category Utilities
3643
3746
  *
3644
3747
  * @template Value The type of the value
@@ -3813,6 +3916,8 @@ interface UseVibrateReturn {
3813
3916
  * @description - Hook that provides vibrate api
3814
3917
  * @category Browser
3815
3918
  *
3919
+ * @browserapi navigator.vibrate https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate
3920
+ *
3816
3921
  * @overload
3817
3922
  * @param {UseVibratePattern} options.pattern The pattern for vibration
3818
3923
  * @param {number} [options.interval=0] Time in milliseconds between vibrations
@@ -3850,7 +3955,7 @@ interface UseWebSocketReturn {
3850
3955
  /**
3851
3956
  * @name useWebSocket
3852
3957
  * @description - Hook that connects to a WebSocket server and handles incoming and outgoing messages
3853
- * @category Network
3958
+ * @category Browser
3854
3959
  *
3855
3960
  * @param {UseWebSocketUrl} url The URL of the WebSocket server
3856
3961
  * @param {(webSocket: WebSocket) => void} [options.onConnected] The callback function that is called when the WebSocket connection is established
@@ -3996,4 +4101,4 @@ declare const isTarget: (target: any) => any;
3996
4101
 
3997
4102
  declare const throttle: <Params extends any[]>(callback: (...args: Params) => void, delay: number) => ((...args: Params) => void);
3998
4103
 
3999
- 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, COOKIE_EVENT, type ColorSelectionOptions, type ColorSelectionResult, type Connection, type ConnectionEffectiveType, type ConnectionType, type EyeDropper, type EyeDropperConstructor, type GetElementTarget, type LongPressReactEvents, type OperatingSystem, type OrientationLockType, Paint, type Point, Pointer, type RemoveCookieParams, type RequestOptions, SCRIPT_STATUS_ATTRIBUTE_NAME, STORAGE_EVENT, type ScrollPosition, type SetCookieParams, type StateRef, type UseAsyncReturn, type UseBatteryStateReturn, type UseBatteryValue, type UseBluetoothOptions, type UseBluetoothReturn, type UseBooleanReturn, type UseBreakpointsReturn, type UseBreakpointsStrategy, type UseClickOutside, type UseClickOutsideTarget, type UseCookieInitialValue, type UseCookieOptions, type UseCookieReturn, 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 UseDevicePixelRatioReturn, type UseDisclosureOptions, type UseDisclosureReturn, type UseDisplayMediaOptions, type UseDisplayMediaOverload, type UseDisplayMediaReturn, type UseDisplayMediaTarget, 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 UseHotkeys, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHotkeysTarget, 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 UseScrollIntoViewOptions, type UseScrollIntoViewOverload, type UseScrollIntoViewReturn, type UseScrollIntoViewTarget, 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, clearCookies, debounce, dispatchCookieEvent, dispatchStorageEvent, getConnection, getCookies, getDate, getElement, getOperatingSystem, getParsedCookies, getRangesSelection, getRetry, getTimeFromSeconds, isHotkeyMatch, isPermissionAllowed, isTarget, legacyCopyToClipboard, mapGamepadToXbox360Controller, removeCookie, scrollTo, setCookie, throttle, useActiveElement, useAsync, useBattery, useBluetooth, useBoolean, useBreakpoints, useBrowserLanguage, useClickOutside, useClipboard, useConst, useCookie, useCookies, useCounter, useCssVar, useDebounceCallback, useDebounceValue, useDefault, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDidUpdate, useDisclosure, useDisplayMedia, 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, useRefState, useRenderCount, useRenderInfo, useRerender, useResizeObserver, useScreenOrientation, type useScreenOrientationReturn, useScript, useScroll, useScrollIntoView, useScrollTo, useSessionStorage, useSet, useShare, useStateHistory, useStep, useStopwatch, useStorage, useTextDirection, useTextSelection, useThrottleCallback, useThrottleValue, useTime, useTimeout, useTimer, useToggle, useUnmount, useVibrate, useWebSocket, useWindowEvent, useWindowFocus, useWindowScroll, useWindowSize, useWizard };
4104
+ 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, COOKIE_EVENT, type ColorSelectionOptions, type ColorSelectionResult, type Connection, type ConnectionEffectiveType, type ConnectionType, type EyeDropper, type EyeDropperConstructor, type GetElementTarget, type LongPressReactEvents, type OperatingSystem, type OrientationLockType, Paint, type Point, Pointer, type RemoveCookieParams, type RequestOptions, SCRIPT_STATUS_ATTRIBUTE_NAME, STORAGE_EVENT, type ScrollPosition, type SetCookieParams, type StateRef, type UseAsyncReturn, type UseBatteryStateReturn, type UseBatteryValue, type UseBluetoothOptions, type UseBluetoothReturn, type UseBooleanReturn, type UseBreakpointsReturn, type UseBreakpointsStrategy, type UseClickOutside, type UseClickOutsideTarget, type UseCookieInitialValue, type UseCookieOptions, type UseCookieReturn, 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 UseDevicePixelRatioReturn, type UseDisclosureOptions, type UseDisclosureReturn, type UseDisplayMediaOptions, type UseDisplayMediaOverload, type UseDisplayMediaReturn, type UseDisplayMediaTarget, 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 UseHotkeys, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHotkeysTarget, 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 UsePerformanceObserverOptions, 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 UseScrollIntoViewOptions, type UseScrollIntoViewOverload, type UseScrollIntoViewReturn, type UseScrollIntoViewTarget, 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, clearCookies, debounce, dispatchCookieEvent, dispatchStorageEvent, getConnection, getCookies, getDate, getElement, getOperatingSystem, getParsedCookies, getRangesSelection, getRetry, getTimeFromSeconds, isHotkeyMatch, isPermissionAllowed, isTarget, legacyCopyToClipboard, mapGamepadToXbox360Controller, removeCookie, scrollTo, setCookie, throttle, useActiveElement, useAsync, useBattery, useBluetooth, useBoolean, useBreakpoints, useBrowserLanguage, useClickOutside, useClipboard, useConst, useCookie, useCookies, useCounter, useCssVar, useDebounceCallback, useDebounceValue, useDefault, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDidUpdate, useDisclosure, useDisplayMedia, 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, useLess, useList, useLocalStorage, useLogger, useLongPress, useMap, useMeasure, useMediaQuery, useMemory, useMount, useMouse, useMutation, useMutationObserver, useNetwork, useOffsetPagination, useOnline, useOperatingSystem, useOptimistic, useOrientation, useOtpCredential, usePageLeave, usePaint, useParallax, usePerformanceObserver, usePermission, usePointerLock, usePostMessage, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useQuery, useQueue, useRaf, useRafValue, useRefState, useRenderCount, useRenderInfo, useRerender, useResizeObserver, useScreenOrientation, type useScreenOrientationReturn, useScript, useScroll, useScrollIntoView, useScrollTo, useSessionStorage, useSet, useShare, useStateHistory, useStep, useStopwatch, useStorage, useTextDirection, useTextSelection, useThrottleCallback, useThrottleValue, useTime, useTimeout, useTimer, useToggle, useUnmount, useVibrate, useWebSocket, useWindowEvent, useWindowFocus, useWindowScroll, useWindowSize, useWizard };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siberiacancode/reactuse",
3
- "version": "0.0.98",
3
+ "version": "0.0.100",
4
4
  "description": "The ultimate collection of react hooks",
5
5
  "author": {
6
6
  "name": "SIBERIA CAN CODE 🧊",
@@ -1 +0,0 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers-Du0ODElA.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +0,0 @@
1
- /* @license @siberiacancode/reactuse v0.0.98 */
2
- "use strict";var o=require("./mapGamepadToXbox360Controller.js");exports.mapGamepadToXbox360Controller=o.mapGamepadToXbox360Controller;
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +0,0 @@
1
- /* @license @siberiacancode/reactuse v0.0.98 */
2
- "use strict";exports.mapGamepadToXbox360Controller=function(t){return{buttons:{a:t.buttons[0],b:t.buttons[1],x:t.buttons[2],y:t.buttons[3]},bumper:{left:t.buttons[4],right:t.buttons[5]},triggers:{left:t.buttons[6],right:t.buttons[7]},stick:{left:{horizontal:t.axes[0],vertical:t.axes[1],button:t.buttons[10]},right:{horizontal:t.axes[2],vertical:t.axes[3],button:t.buttons[11]}},dpad:{up:t.buttons[12],down:t.buttons[13],left:t.buttons[14],right:t.buttons[15]},back:t.buttons[8],start:t.buttons[9]}};
3
- //# sourceMappingURL=mapGamepadToXbox360Controller.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mapGamepadToXbox360Controller.js","sources":["../../../../../src/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.ts"],"sourcesContent":["export const mapGamepadToXbox360Controller = (gamepad: Gamepad) => ({\n buttons: {\n a: gamepad.buttons[0],\n b: gamepad.buttons[1],\n x: gamepad.buttons[2],\n y: gamepad.buttons[3]\n },\n bumper: {\n left: gamepad.buttons[4],\n right: gamepad.buttons[5]\n },\n triggers: {\n left: gamepad.buttons[6],\n right: gamepad.buttons[7]\n },\n stick: {\n left: {\n horizontal: gamepad.axes[0],\n vertical: gamepad.axes[1],\n button: gamepad.buttons[10]\n },\n right: {\n horizontal: gamepad.axes[2],\n vertical: gamepad.axes[3],\n button: gamepad.buttons[11]\n }\n },\n dpad: {\n up: gamepad.buttons[12],\n down: gamepad.buttons[13],\n left: gamepad.buttons[14],\n right: gamepad.buttons[15]\n },\n back: gamepad.buttons[8],\n start: gamepad.buttons[9]\n});\n"],"names":["gamepad","buttons","a","b","x","y","bumper","left","right","triggers","stick","horizontal","axes","vertical","button","dpad","up","down","back","start"],"mappings":";mDAA6C,SAACA,GAAgB,MAAM,CAClEC,QAAS,CACPC,EAAGF,EAAQC,QAAQ,GACnBE,EAAGH,EAAQC,QAAQ,GACnBG,EAAGJ,EAAQC,QAAQ,GACnBI,EAAGL,EAAQC,QAAQ,IAErBK,OAAQ,CACNC,KAAMP,EAAQC,QAAQ,GACtBO,MAAOR,EAAQC,QAAQ,IAEzBQ,SAAU,CACRF,KAAMP,EAAQC,QAAQ,GACtBO,MAAOR,EAAQC,QAAQ,IAEzBS,MAAO,CACLH,KAAM,CACJI,WAAYX,EAAQY,KAAK,GACzBC,SAAUb,EAAQY,KAAK,GACvBE,OAAQd,EAAQC,QAAQ,KAE1BO,MAAO,CACLG,WAAYX,EAAQY,KAAK,GACzBC,SAAUb,EAAQY,KAAK,GACvBE,OAAQd,EAAQC,QAAQ,MAG5Bc,KAAM,CACJC,GAAIhB,EAAQC,QAAQ,IACpBgB,KAAMjB,EAAQC,QAAQ,IACtBM,KAAMP,EAAQC,QAAQ,IACtBO,MAAOR,EAAQC,QAAQ,KAEzBiB,KAAMlB,EAAQC,QAAQ,GACtBkB,MAAOnB,EAAQC,QAAQ,GACxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers-DMxTFLvA.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +0,0 @@
1
- /* @license @siberiacancode/reactuse v0.0.98 */
2
- export{mapGamepadToXbox360Controller}from"./mapGamepadToXbox360Controller.js";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +0,0 @@
1
- /* @license @siberiacancode/reactuse v0.0.98 */
2
- var t=function(t){return{buttons:{a:t.buttons[0],b:t.buttons[1],x:t.buttons[2],y:t.buttons[3]},bumper:{left:t.buttons[4],right:t.buttons[5]},triggers:{left:t.buttons[6],right:t.buttons[7]},stick:{left:{horizontal:t.axes[0],vertical:t.axes[1],button:t.buttons[10]},right:{horizontal:t.axes[2],vertical:t.axes[3],button:t.buttons[11]}},dpad:{up:t.buttons[12],down:t.buttons[13],left:t.buttons[14],right:t.buttons[15]},back:t.buttons[8],start:t.buttons[9]}};export{t as mapGamepadToXbox360Controller};
3
- //# sourceMappingURL=mapGamepadToXbox360Controller.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mapGamepadToXbox360Controller.js","sources":["../../../../../src/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.ts"],"sourcesContent":["export const mapGamepadToXbox360Controller = (gamepad: Gamepad) => ({\n buttons: {\n a: gamepad.buttons[0],\n b: gamepad.buttons[1],\n x: gamepad.buttons[2],\n y: gamepad.buttons[3]\n },\n bumper: {\n left: gamepad.buttons[4],\n right: gamepad.buttons[5]\n },\n triggers: {\n left: gamepad.buttons[6],\n right: gamepad.buttons[7]\n },\n stick: {\n left: {\n horizontal: gamepad.axes[0],\n vertical: gamepad.axes[1],\n button: gamepad.buttons[10]\n },\n right: {\n horizontal: gamepad.axes[2],\n vertical: gamepad.axes[3],\n button: gamepad.buttons[11]\n }\n },\n dpad: {\n up: gamepad.buttons[12],\n down: gamepad.buttons[13],\n left: gamepad.buttons[14],\n right: gamepad.buttons[15]\n },\n back: gamepad.buttons[8],\n start: gamepad.buttons[9]\n});\n"],"names":["mapGamepadToXbox360Controller","gamepad","buttons","a","b","x","y","bumper","left","right","triggers","stick","horizontal","axes","vertical","button","dpad","up","down","back","start"],"mappings":";IAAaA,EAAgC,SAACC,GAAgB,MAAM,CAClEC,QAAS,CACPC,EAAGF,EAAQC,QAAQ,GACnBE,EAAGH,EAAQC,QAAQ,GACnBG,EAAGJ,EAAQC,QAAQ,GACnBI,EAAGL,EAAQC,QAAQ,IAErBK,OAAQ,CACNC,KAAMP,EAAQC,QAAQ,GACtBO,MAAOR,EAAQC,QAAQ,IAEzBQ,SAAU,CACRF,KAAMP,EAAQC,QAAQ,GACtBO,MAAOR,EAAQC,QAAQ,IAEzBS,MAAO,CACLH,KAAM,CACJI,WAAYX,EAAQY,KAAK,GACzBC,SAAUb,EAAQY,KAAK,GACvBE,OAAQd,EAAQC,QAAQ,KAE1BO,MAAO,CACLG,WAAYX,EAAQY,KAAK,GACzBC,SAAUb,EAAQY,KAAK,GACvBE,OAAQd,EAAQC,QAAQ,MAG5Bc,KAAM,CACJC,GAAIhB,EAAQC,QAAQ,IACpBgB,KAAMjB,EAAQC,QAAQ,IACtBM,KAAMP,EAAQC,QAAQ,IACtBO,MAAOR,EAAQC,QAAQ,KAEzBiB,KAAMlB,EAAQC,QAAQ,GACtBkB,MAAOnB,EAAQC,QAAQ,GACxB"}