@siberiacancode/reactuse 0.0.104 → 0.0.106

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 (288) hide show
  1. package/dist/cjs/{_rollupPluginBabelHelpers-bNFZI5lN.js → _rollupPluginBabelHelpers-CV7lkadd.js} +2 -2
  2. package/dist/cjs/_rollupPluginBabelHelpers-CV7lkadd.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/useBoolean/useBoolean.js +2 -2
  9. package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
  10. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  11. package/dist/cjs/hooks/useClickOutside/useClickOutside.js +2 -2
  12. package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
  13. package/dist/cjs/hooks/useConst/useConst.js +1 -1
  14. package/dist/cjs/hooks/useCookie/useCookie.js +2 -2
  15. package/dist/cjs/hooks/useCookie/useCookie.js.map +1 -1
  16. package/dist/cjs/hooks/useCookies/useCookies.js +2 -2
  17. package/dist/cjs/hooks/useCopy/useCopy.js +2 -2
  18. package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
  19. package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
  20. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  21. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
  22. package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
  23. package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  24. package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  25. package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
  26. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
  27. package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
  28. package/dist/cjs/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
  29. package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  30. package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  31. package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  32. package/dist/cjs/hooks/useElementSize/useElementSize.js +2 -2
  33. package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
  34. package/dist/cjs/hooks/useEventListener/useEventListener.js +2 -2
  35. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
  36. package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
  37. package/dist/cjs/hooks/useField/useField.js +2 -2
  38. package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
  39. package/dist/cjs/hooks/useFocus/useFocus.js +2 -2
  40. package/dist/cjs/hooks/useFps/useFps.js +2 -2
  41. package/dist/cjs/hooks/useFul/useFul.js +3 -0
  42. package/dist/cjs/hooks/useFul/useFul.js.map +1 -0
  43. package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
  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/useHash/useHash.js +2 -2
  47. package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
  48. package/dist/cjs/hooks/useHover/useHover.js +2 -2
  49. package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
  50. package/dist/cjs/hooks/useImage/useImage.js +2 -2
  51. package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  52. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  53. package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
  54. package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  55. package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  56. package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
  57. package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  58. package/dist/cjs/hooks/useKeyboard/useKeyboard.js +2 -2
  59. package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
  60. package/dist/cjs/hooks/useLastChanged/useLastChanged.js +2 -2
  61. package/dist/cjs/hooks/useLatest/useLatest.js +1 -1
  62. package/dist/cjs/hooks/useLess/useLess.js +1 -1
  63. package/dist/cjs/hooks/useLess/useLess.js.map +1 -1
  64. package/dist/cjs/hooks/useList/useList.js +2 -2
  65. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
  66. package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
  67. package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
  68. package/dist/cjs/hooks/useMap/useMap.js +2 -2
  69. package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
  70. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
  71. package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
  72. package/dist/cjs/hooks/useMount/useMount.js +1 -1
  73. package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
  74. package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
  75. package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
  76. package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
  77. package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  78. package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
  79. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
  80. package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
  81. package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
  82. package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
  83. package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
  84. package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
  85. package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
  86. package/dist/cjs/hooks/usePerformanceObserver/usePerformanceObserver.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/usePostMessage/usePostMessage.js +1 -1
  90. package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  91. package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  92. package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
  93. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  94. package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  95. package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
  96. package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
  97. package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
  98. package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
  99. package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
  100. package/dist/cjs/hooks/useRefState/useRefState.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 +1 -1
  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/useScrollIntoView/useScrollIntoView.js +2 -2
  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/useStateHistory/useStateHistory.js +2 -2
  114. package/dist/cjs/hooks/useStep/useStep.js +2 -2
  115. package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
  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 +1 -1
  120. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js +2 -2
  121. package/dist/cjs/hooks/useTime/useTime.js +2 -2
  122. package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
  123. package/dist/cjs/hooks/useTimer/useTimer.js +2 -2
  124. package/dist/cjs/hooks/useTimer/useTimer.js.map +1 -1
  125. package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
  126. package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
  127. package/dist/cjs/hooks/useVibrate/useVibrate.js +2 -2
  128. package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
  129. package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +2 -2
  130. package/dist/cjs/hooks/useWindowFocus/useWindowFocus.js +2 -2
  131. package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
  132. package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
  133. package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
  134. package/dist/cjs/index.js +2 -2
  135. package/dist/cjs/utils/helpers/copy.js +2 -2
  136. package/dist/cjs/utils/helpers/debounce.js +1 -1
  137. package/dist/cjs/utils/helpers/getDate.js +1 -1
  138. package/dist/cjs/utils/helpers/getElement.js +1 -1
  139. package/dist/cjs/utils/helpers/getRetry.js +1 -1
  140. package/dist/cjs/utils/helpers/index.js +2 -2
  141. package/dist/cjs/utils/helpers/isTarget.js +2 -2
  142. package/dist/cjs/utils/helpers/throttle.js +1 -1
  143. package/dist/esm/{_rollupPluginBabelHelpers-F2c-yday.js → _rollupPluginBabelHelpers-5Q3v93KV.js} +2 -2
  144. package/dist/esm/_rollupPluginBabelHelpers-5Q3v93KV.js.map +1 -0
  145. package/dist/esm/hooks/index.js +2 -2
  146. package/dist/esm/hooks/useActiveElement/useActiveElement.js +2 -2
  147. package/dist/esm/hooks/useAsync/useAsync.js +2 -2
  148. package/dist/esm/hooks/useBattery/useBattery.js +2 -2
  149. package/dist/esm/hooks/useBluetooth/useBluetooth.js +2 -2
  150. package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
  151. package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
  152. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  153. package/dist/esm/hooks/useClickOutside/useClickOutside.js +2 -2
  154. package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
  155. package/dist/esm/hooks/useConst/useConst.js +1 -1
  156. package/dist/esm/hooks/useCookie/useCookie.js +2 -2
  157. package/dist/esm/hooks/useCookie/useCookie.js.map +1 -1
  158. package/dist/esm/hooks/useCookies/useCookies.js +2 -2
  159. package/dist/esm/hooks/useCopy/useCopy.js +2 -2
  160. package/dist/esm/hooks/useCounter/useCounter.js +2 -2
  161. package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
  162. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +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/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
  168. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
  169. package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
  170. package/dist/esm/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
  171. package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  172. package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  173. package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  174. package/dist/esm/hooks/useElementSize/useElementSize.js +2 -2
  175. package/dist/esm/hooks/useEvent/useEvent.js +1 -1
  176. package/dist/esm/hooks/useEventListener/useEventListener.js +2 -2
  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/useFps/useFps.js +2 -2
  183. package/dist/esm/hooks/useFul/useFul.js +3 -0
  184. package/dist/esm/hooks/useFul/useFul.js.map +1 -0
  185. package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
  186. package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
  187. package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
  188. package/dist/esm/hooks/useHash/useHash.js +2 -2
  189. package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
  190. package/dist/esm/hooks/useHover/useHover.js +2 -2
  191. package/dist/esm/hooks/useIdle/useIdle.js +2 -2
  192. package/dist/esm/hooks/useImage/useImage.js +2 -2
  193. package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  194. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  195. package/dist/esm/hooks/useInterval/useInterval.js +2 -2
  196. package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  197. package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  198. package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
  199. package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  200. package/dist/esm/hooks/useKeyboard/useKeyboard.js +2 -2
  201. package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
  202. package/dist/esm/hooks/useLastChanged/useLastChanged.js +2 -2
  203. package/dist/esm/hooks/useLatest/useLatest.js +1 -1
  204. package/dist/esm/hooks/useLess/useLess.js +1 -1
  205. package/dist/esm/hooks/useLess/useLess.js.map +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 +2 -2
  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/usePaint.js +2 -2
  227. package/dist/esm/hooks/useParallax/useParallax.js +2 -2
  228. package/dist/esm/hooks/usePerformanceObserver/usePerformanceObserver.js +2 -2
  229. package/dist/esm/hooks/usePermission/usePermission.js +2 -2
  230. package/dist/esm/hooks/usePointerLock/usePointerLock.js +2 -2
  231. package/dist/esm/hooks/usePostMessage/usePostMessage.js +1 -1
  232. package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  233. package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  234. package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
  235. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  236. package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  237. package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
  238. package/dist/esm/hooks/useQuery/useQuery.js +2 -2
  239. package/dist/esm/hooks/useQueue/useQueue.js +2 -2
  240. package/dist/esm/hooks/useRaf/useRaf.js +2 -2
  241. package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
  242. package/dist/esm/hooks/useRefState/useRefState.js +2 -2
  243. package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
  244. package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
  245. package/dist/esm/hooks/useRerender/useRerender.js +1 -1
  246. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
  247. package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  248. package/dist/esm/hooks/useScript/useScript.js +2 -2
  249. package/dist/esm/hooks/useScroll/useScroll.js +2 -2
  250. package/dist/esm/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
  251. package/dist/esm/hooks/useScrollTo/useScrollTo.js +2 -2
  252. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
  253. package/dist/esm/hooks/useSet/useSet.js +2 -2
  254. package/dist/esm/hooks/useShare/useShare.js +2 -2
  255. package/dist/esm/hooks/useStateHistory/useStateHistory.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/useStorage/useStorage.js +2 -2
  259. package/dist/esm/hooks/useTextDirection/useTextDirection.js +2 -2
  260. package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
  261. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  262. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js +2 -2
  263. package/dist/esm/hooks/useTime/useTime.js +2 -2
  264. package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
  265. package/dist/esm/hooks/useTimer/useTimer.js +2 -2
  266. package/dist/esm/hooks/useTimer/useTimer.js.map +1 -1
  267. package/dist/esm/hooks/useToggle/useToggle.js +2 -2
  268. package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
  269. package/dist/esm/hooks/useVibrate/useVibrate.js +2 -2
  270. package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
  271. package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +2 -2
  272. package/dist/esm/hooks/useWindowFocus/useWindowFocus.js +2 -2
  273. package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
  274. package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
  275. package/dist/esm/hooks/useWizard/useWizard.js +2 -2
  276. package/dist/esm/index.js +2 -2
  277. package/dist/esm/utils/helpers/copy.js +2 -2
  278. package/dist/esm/utils/helpers/debounce.js +1 -1
  279. package/dist/esm/utils/helpers/getDate.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 +2 -2
  283. package/dist/esm/utils/helpers/isTarget.js +2 -2
  284. package/dist/esm/utils/helpers/throttle.js +1 -1
  285. package/dist/types/index.d.ts +15 -6
  286. package/package.json +91 -91
  287. package/dist/cjs/_rollupPluginBabelHelpers-bNFZI5lN.js.map +0 -1
  288. package/dist/esm/_rollupPluginBabelHelpers-F2c-yday.js.map +0 -1
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- export{copy,legacyCopyToClipboard}from"./copy.js";export{debounce}from"./debounce.js";export{getDate}from"./getDate.js";export{getElement,target,targetSymbol}from"./getElement.js";export{getRetry}from"./getRetry.js";export{isTarget}from"./isTarget.js";export{throttle}from"./throttle.js";import"../../_rollupPluginBabelHelpers-F2c-yday.js";
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ export{copy,legacyCopyToClipboard}from"./copy.js";export{debounce}from"./debounce.js";export{getDate}from"./getDate.js";export{getElement,target,targetSymbol}from"./getElement.js";export{getRetry}from"./getRetry.js";export{isTarget}from"./isTarget.js";export{throttle}from"./throttle.js";import"../../_rollupPluginBabelHelpers-5Q3v93KV.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{b as r}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{targetSymbol as e}from"./getElement.js";var t=function(t){return"object"===r(t)&&("current"in t||t.type===e)};export{t as isTarget};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{b as r}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{targetSymbol as e}from"./getElement.js";var t=function(t){return"object"===r(t)&&("current"in t||t.type===e)};export{t as isTarget};
3
3
  //# sourceMappingURL=isTarget.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
2
  var n=function(n,t){var e=!1,r=null,u=function(){r?(n.apply(undefined,r),r=null,setTimeout(u,t)):e=!1};return function(){for(var i=arguments.length,l=new Array(i),o=0;o<i;o++)l[o]=arguments[o];e?r=l:(n.apply(this,l),e=!0,setTimeout(u,t))}};export{n as throttle};
3
3
  //# sourceMappingURL=throttle.js.map
@@ -408,6 +408,9 @@ interface UseCookieReturn<Value> {
408
408
  }
409
409
  declare const COOKIE_EVENT = "reactuse-cookie";
410
410
  declare const dispatchCookieEvent: () => boolean;
411
+ declare const setCookieItem: (key: string, value: string, options?: SetCookieParams) => void;
412
+ declare const removeCookieItem: (key: string, options?: RemoveCookieParams) => void;
413
+ declare const getCookie: (key: string) => string | undefined;
411
414
  /**
412
415
  * @name useCookie
413
416
  * @description - Hook that manages cookie value
@@ -1997,9 +2000,11 @@ declare const useLatest: <Value>(value: Value) => Value;
1997
2000
 
1998
2001
  /**
1999
2002
  * @name useLess
2000
- * @description - Hook that humorously suggests using it less not for production
2003
+ * @description - Hook that can be so useless
2001
2004
  * @category Humor
2002
2005
  *
2006
+ * @warning - This hook is a joke. Please do not use it in production code!
2007
+ *
2003
2008
  * @template Value The type of the value
2004
2009
  * @param {Value} [value] The value to be returned
2005
2010
  * @returns {Value} The value passed to the hook
@@ -2007,7 +2012,7 @@ declare const useLatest: <Value>(value: Value) => Value;
2007
2012
  * @example
2008
2013
  * const value = useLess(state);
2009
2014
  */
2010
- declare const useLess: (value?: any) => any;
2015
+ declare const useLess: <Value>(value?: Value) => Value | undefined;
2011
2016
 
2012
2017
  /** The use list return type */
2013
2018
  interface UseListReturn<Item> {
@@ -3845,6 +3850,8 @@ interface UseTimerReturn {
3845
3850
  minutes: number;
3846
3851
  /** The second count of the timer */
3847
3852
  seconds: number;
3853
+ /** The function to clear the timer */
3854
+ clear: () => void;
3848
3855
  /** The function to pause the timer */
3849
3856
  pause: () => void;
3850
3857
  /** The function to restart the timer */
@@ -3855,6 +3862,8 @@ interface UseTimerReturn {
3855
3862
  start: () => void;
3856
3863
  /** The function to toggle the timer */
3857
3864
  toggle: () => void;
3865
+ /** The function to update the timer */
3866
+ update: (seconds: number) => void;
3858
3867
  }
3859
3868
  interface UseTimer {
3860
3869
  (timestamp: number, callback: () => void): UseTimerReturn;
@@ -3874,9 +3883,9 @@ interface UseTimer {
3874
3883
  *
3875
3884
  * @overload
3876
3885
  * @param {number} timestamp The timestamp value that define for how long the timer will be running
3877
- * @param {boolean} options.immediately The flag to decide if timer should start automatically
3878
- * @param {() => void} options.onExpire The function to be executed when the timer is expired
3879
- * @param {(timestamp: number) => void} options.onTick The function to be executed on each tick of the timer
3886
+ * @param {boolean} [options.immediately=true] The flag to decide if timer should start automatically
3887
+ * @param {() => void} [options.onExpire] The function to be executed when the timer is expired
3888
+ * @param {(timestamp: number) => void} [options.onTick] The function to be executed on each tick of the timer
3880
3889
  *
3881
3890
  * @example
3882
3891
  * const { days, hours, minutes, seconds, toggle, pause, start, restart, resume, active } = useTimer(1000);
@@ -4133,4 +4142,4 @@ declare const isTarget: (target: HookTarget) => boolean;
4133
4142
 
4134
4143
  declare const throttle: <Params extends any[]>(callback: (...args: Params) => void, delay: number) => ((...args: Params) => void);
4135
4144
 
4136
- 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 HookTarget, type KeyboardEventHandler, 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 Target, type UseAsyncReturn, type UseBatteryStateReturn, type UseBatteryValue, type UseBluetoothOptions, type UseBluetoothReturn, type UseBooleanReturn, type UseBreakpointsReturn, type UseBreakpointsStrategy, type UseClickOutside, type UseCookieInitialValue, type UseCookieOptions, type UseCookieReturn, type UseCopyParams, type UseCopyReturn, type UseCopyToClipboardParams, type UseCopyToClipboardReturn, type UseCounter, type UseCounterOptions, type UseCounterReturn, type UseCssVar, type UseCssVarReturn, type UseDeviceMotionParams, type UseDeviceMotionReturn, type UseDeviceOrientationReturn, type UseDeviceOrientationValue, type UseDevicePixelRatioReturn, type UseDisclosureOptions, type UseDisclosureReturn, type UseDisplayMedia, type UseDisplayMediaOptions, type UseDisplayMediaReturn, type UseDocumentTitleOptions, type UseDocumentTitleReturn, type UseElementSize, type UseElementSizeReturn, type UseElementSizeValue, type UseEventListener, type UseEventListenerOptions, type UseEventListenerReturn, type UseEyeDropperReturn, type UseFaviconReturn, type UseFieldParams, type UseFieldRegisterParams, type UseFieldReturn, type UseFileDialog, type UseFileDialogOptions, type UseFileDialogReturn, type UseFocus, type UseFocusOptions, type UseFocusReturn, type UseFullScreen, type UseFullScreenOptions, type UseFullScreenReturn, type UseGamepadStateReturn, type UseGeolocationParams, type UseGeolocationReturn, type UseHotkeys, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHotkeysTarget, type UseHover, type UseHoverOptions, type UseIdleOptions, type UseIdleReturn, type UseImageOptions, type UseImageReturn, type UseInfiniteScroll, type UseInfiniteScrollOptions, type UseIntersectionObserver, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPress, type UseKeyPressCallback, type UseKeyPressEvent, type UseKeyPressEventKey, type UseKeyPressEventOptions, type UseKeyPressKey, type UseKeyboard, type UseKeyboardOptions, type UseKeysPressed, type UseKeysPressedOptions, type UseLastChangedOptions, type UseListReturn, type UseLongPressBind, type UseLongPressOptions, type UseLongPressReturn, type UseLongPressTarget, type UseMapReturn, type UseMeasure, type UseMeasureReturn, type UseMemoryReturn, type UseMouse, type UseMouseReturn, 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 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 UseScreenOrientationValue, type UseScriptOptions, type UseScriptStatus, type UseScroll, type UseScrollCallbackParams, type UseScrollIntoView, type UseScrollIntoViewOptions, type UseScrollIntoViewReturn, type UseScrollOptions, type UseScrollTo, type UseScrollToOptions, type UseScrollToReturn, type UseShareParams, type UseShareReturn, type UseStopwatchOptions, type UseStopwatchReturn, type UseStorageInitialValue, type UseStorageOptions, type UseStorageReturn, type UseTextDirection, type UseTextDirectionReturn, 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, copy, debounce, dispatchCookieEvent, dispatchStorageEvent, getConnection, getCookies, getDate, getElement, getOperatingSystem, getParsedCookies, getRangesSelection, getRetry, getTimeFromSeconds, isHotkeyMatch, isTarget, legacyCopyToClipboard, mapGamepadToXbox360Controller, removeCookie, scrollTo, setCookie, target, targetSymbol, throttle, useActiveElement, useAsync, useBattery, useBluetooth, useBoolean, useBreakpoints, useBrowserLanguage, useClickOutside, useClipboard, useConst, useCookie, useCookies, useCopy, 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 };
4145
+ 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 HookTarget, type KeyboardEventHandler, 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 Target, type UseAsyncReturn, type UseBatteryStateReturn, type UseBatteryValue, type UseBluetoothOptions, type UseBluetoothReturn, type UseBooleanReturn, type UseBreakpointsReturn, type UseBreakpointsStrategy, type UseClickOutside, type UseCookieInitialValue, type UseCookieOptions, type UseCookieReturn, type UseCopyParams, type UseCopyReturn, type UseCopyToClipboardParams, type UseCopyToClipboardReturn, type UseCounter, type UseCounterOptions, type UseCounterReturn, type UseCssVar, type UseCssVarReturn, type UseDeviceMotionParams, type UseDeviceMotionReturn, type UseDeviceOrientationReturn, type UseDeviceOrientationValue, type UseDevicePixelRatioReturn, type UseDisclosureOptions, type UseDisclosureReturn, type UseDisplayMedia, type UseDisplayMediaOptions, type UseDisplayMediaReturn, type UseDocumentTitleOptions, type UseDocumentTitleReturn, type UseElementSize, type UseElementSizeReturn, type UseElementSizeValue, type UseEventListener, type UseEventListenerOptions, type UseEventListenerReturn, type UseEyeDropperReturn, type UseFaviconReturn, type UseFieldParams, type UseFieldRegisterParams, type UseFieldReturn, type UseFileDialog, type UseFileDialogOptions, type UseFileDialogReturn, type UseFocus, type UseFocusOptions, type UseFocusReturn, type UseFullScreen, type UseFullScreenOptions, type UseFullScreenReturn, type UseGamepadStateReturn, type UseGeolocationParams, type UseGeolocationReturn, type UseHotkeys, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHotkeysTarget, type UseHover, type UseHoverOptions, type UseIdleOptions, type UseIdleReturn, type UseImageOptions, type UseImageReturn, type UseInfiniteScroll, type UseInfiniteScrollOptions, type UseIntersectionObserver, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPress, type UseKeyPressCallback, type UseKeyPressEvent, type UseKeyPressEventKey, type UseKeyPressEventOptions, type UseKeyPressKey, type UseKeyboard, type UseKeyboardOptions, type UseKeysPressed, type UseKeysPressedOptions, type UseLastChangedOptions, type UseListReturn, type UseLongPressBind, type UseLongPressOptions, type UseLongPressReturn, type UseLongPressTarget, type UseMapReturn, type UseMeasure, type UseMeasureReturn, type UseMemoryReturn, type UseMouse, type UseMouseReturn, 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 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 UseScreenOrientationValue, type UseScriptOptions, type UseScriptStatus, type UseScroll, type UseScrollCallbackParams, type UseScrollIntoView, type UseScrollIntoViewOptions, type UseScrollIntoViewReturn, type UseScrollOptions, type UseScrollTo, type UseScrollToOptions, type UseScrollToReturn, type UseShareParams, type UseShareReturn, type UseStopwatchOptions, type UseStopwatchReturn, type UseStorageInitialValue, type UseStorageOptions, type UseStorageReturn, type UseTextDirection, type UseTextDirectionReturn, 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, copy, debounce, dispatchCookieEvent, dispatchStorageEvent, getConnection, getCookie, getCookies, getDate, getElement, getOperatingSystem, getParsedCookies, getRangesSelection, getRetry, getTimeFromSeconds, isHotkeyMatch, isTarget, legacyCopyToClipboard, mapGamepadToXbox360Controller, removeCookie, removeCookieItem, scrollTo, setCookie, setCookieItem, target, targetSymbol, throttle, useActiveElement, useAsync, useBattery, useBluetooth, useBoolean, useBreakpoints, useBrowserLanguage, useClickOutside, useClipboard, useConst, useCookie, useCookies, useCopy, 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,91 +1,91 @@
1
- {
2
- "name": "@siberiacancode/reactuse",
3
- "version": "0.0.104",
4
- "description": "The ultimate collection of react hooks",
5
- "author": {
6
- "name": "SIBERIA CAN CODE 🧊",
7
- "url": "https://github.com/siberiacancode"
8
- },
9
- "license": "MIT",
10
- "homepage": "https://siberiacancode.github.io/reactuse/",
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/siberiacancode/reactuse.git",
14
- "directory": "packages/core"
15
- },
16
- "bugs": "https://github.com/siberiacancode/reactuse/issues",
17
- "keywords": [
18
- "react",
19
- "react hooks",
20
- "react use",
21
- "use",
22
- "hooks"
23
- ],
24
- "sideEffects": false,
25
- "exports": {
26
- "types": "./dist/types/index.d.ts",
27
- "import": "./dist/esm/index.js",
28
- "require": "./dist/cjs/index.cjs"
29
- },
30
- "main": "dist/cjs/index.js",
31
- "module": "dist/esm/index.js",
32
- "types": "dist/types/index.d.ts",
33
- "files": [
34
- "dist"
35
- ],
36
- "engines": {
37
- "node": ">=14"
38
- },
39
- "publishConfig": {
40
- "access": "public"
41
- },
42
- "scripts": {
43
- "prepublishOnly": "pnpm unit-test run && pnpm build",
44
- "build": "shx rm -rf dist && rollup -c --bundleConfigAsCjs",
45
- "build:js": "tsc --project tsconfig.build.json",
46
- "lint": "eslint . --fix",
47
- "lint-inspector": "npx @eslint/config-inspector@latest",
48
- "format": "prettier --write .",
49
- "pretty": "pnpm lint && pnpm format",
50
- "unit-test": "vitest",
51
- "lint-staged": "lint-staged"
52
- },
53
- "peerDependencies": {
54
- "@types/react": "^18.0.0",
55
- "react": "^17.0.2 || ^18.0.0",
56
- "react-dom": "^17.0.2 || ^18.0.0"
57
- },
58
- "peerDependenciesMeta": {
59
- "@types/react": {
60
- "optional": true
61
- }
62
- },
63
- "dependencies": {
64
- "screenfull": "^6.0.2"
65
- },
66
- "devDependencies": {
67
- "@siberiacancode/builder": "^1.3.17",
68
- "@siberiacancode/vitest": "^2.0.2",
69
- "@testing-library/dom": "^10.4.0",
70
- "@testing-library/react": "^16.2.0",
71
- "@types/react": "^18.3.18",
72
- "@types/react-dom": "^18.3.5",
73
- "@types/web-bluetooth": "^0.0.20",
74
- "core-js": "^3.40.0",
75
- "react": "^18.3.1",
76
- "react-dom": "^18.3.1",
77
- "shx": "^0.3.4",
78
- "vite": "^6.1.1",
79
- "vitest": "^3.0.6"
80
- },
81
- "lint-staged": {
82
- "*.js": [
83
- "eslint --fix",
84
- "prettier --write"
85
- ],
86
- "*.ts": [
87
- "eslint --fix",
88
- "prettier --write"
89
- ]
90
- }
91
- }
1
+ {
2
+ "name": "@siberiacancode/reactuse",
3
+ "version": "0.0.106",
4
+ "description": "The ultimate collection of react hooks",
5
+ "author": {
6
+ "name": "SIBERIA CAN CODE 🧊",
7
+ "url": "https://github.com/siberiacancode"
8
+ },
9
+ "license": "MIT",
10
+ "homepage": "https://siberiacancode.github.io/reactuse/",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/siberiacancode/reactuse.git",
14
+ "directory": "packages/core"
15
+ },
16
+ "bugs": "https://github.com/siberiacancode/reactuse/issues",
17
+ "keywords": [
18
+ "react",
19
+ "react hooks",
20
+ "react use",
21
+ "use",
22
+ "hooks"
23
+ ],
24
+ "sideEffects": false,
25
+ "exports": {
26
+ "types": "./dist/types/index.d.ts",
27
+ "import": "./dist/esm/index.js",
28
+ "require": "./dist/cjs/index.cjs"
29
+ },
30
+ "main": "dist/cjs/index.js",
31
+ "module": "dist/esm/index.js",
32
+ "types": "dist/types/index.d.ts",
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "engines": {
37
+ "node": ">=14"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "scripts": {
43
+ "prepublishOnly": "pnpm unit-test run && pnpm build",
44
+ "build": "shx rm -rf dist && rollup -c --bundleConfigAsCjs",
45
+ "build:js": "tsc --project tsconfig.build.json",
46
+ "lint": "eslint . --fix",
47
+ "lint-inspector": "npx @eslint/config-inspector@latest",
48
+ "format": "prettier --write .",
49
+ "pretty": "pnpm lint && pnpm format",
50
+ "unit-test": "vitest",
51
+ "lint-staged": "lint-staged"
52
+ },
53
+ "peerDependencies": {
54
+ "@types/react": "^18.0.0",
55
+ "react": "^17.0.2 || ^18.0.0",
56
+ "react-dom": "^17.0.2 || ^18.0.0"
57
+ },
58
+ "peerDependenciesMeta": {
59
+ "@types/react": {
60
+ "optional": true
61
+ }
62
+ },
63
+ "dependencies": {
64
+ "screenfull": "^6.0.2"
65
+ },
66
+ "devDependencies": {
67
+ "@siberiacancode/builder": "^1.3.17",
68
+ "@siberiacancode/vitest": "^2.0.2",
69
+ "@testing-library/dom": "^10.4.0",
70
+ "@testing-library/react": "^16.2.0",
71
+ "@types/react": "^18.3.18",
72
+ "@types/react-dom": "^18.3.5",
73
+ "@types/web-bluetooth": "^0.0.20",
74
+ "core-js": "^3.40.0",
75
+ "react": "^18.3.1",
76
+ "react-dom": "^18.3.1",
77
+ "shx": "^0.3.4",
78
+ "vite": "^6.1.1",
79
+ "vitest": "^3.0.6"
80
+ },
81
+ "lint-staged": {
82
+ "*.js": [
83
+ "eslint --fix",
84
+ "prettier --write"
85
+ ],
86
+ "*.ts": [
87
+ "eslint --fix",
88
+ "prettier --write"
89
+ ]
90
+ }
91
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers-bNFZI5lN.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers-F2c-yday.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}