@siberiacancode/reactuse 0.0.43 → 0.0.44

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 (206) hide show
  1. package/dist/cjs/{_rollupPluginBabelHelpers-BRE4VASD.js → _rollupPluginBabelHelpers-Bx9oEugz.js} +2 -2
  2. package/dist/cjs/_rollupPluginBabelHelpers-Bx9oEugz.js.map +1 -0
  3. package/dist/cjs/hooks/index.js +2 -2
  4. package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
  5. package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
  6. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  7. package/dist/cjs/hooks/useClickOutside/useClickOutside.js +1 -1
  8. package/dist/cjs/hooks/useCopyToClipboard/useCopyToClipboard.js +2 -2
  9. package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
  10. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  11. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
  12. package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
  13. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
  14. package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
  15. package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +1 -1
  16. package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  17. package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  18. package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
  19. package/dist/cjs/hooks/useEventListener/useEventListener.js +1 -1
  20. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
  21. package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
  22. package/dist/cjs/hooks/useField/useField.js +2 -2
  23. package/dist/cjs/hooks/useFileDialog/useFileDialog.js +3 -0
  24. package/dist/cjs/hooks/useFileDialog/useFileDialog.js.map +1 -0
  25. package/dist/cjs/hooks/useFps/useFps.js +2 -2
  26. package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
  27. package/dist/cjs/hooks/useFullscreen/useFullscreen.js.map +1 -1
  28. package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
  29. package/dist/cjs/hooks/useHash/useHash.js +2 -2
  30. package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
  31. package/dist/cjs/hooks/useHover/useHover.js +2 -2
  32. package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
  33. package/dist/cjs/hooks/useImage/useImage.js +3 -0
  34. package/dist/cjs/hooks/useImage/useImage.js.map +1 -0
  35. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  36. package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
  37. package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  38. package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  39. package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
  40. package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +1 -1
  41. package/dist/cjs/hooks/useKeyboard/useKeyboard.js +1 -1
  42. package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
  43. package/dist/cjs/hooks/useList/useList.js +2 -2
  44. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
  45. package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
  46. package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
  47. package/dist/cjs/hooks/useMap/useMap.js +2 -2
  48. package/dist/cjs/hooks/useMeasure/useMeasure.js +3 -0
  49. package/dist/cjs/hooks/useMeasure/useMeasure.js.map +1 -0
  50. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
  51. package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
  52. package/dist/cjs/hooks/useMount/useMount.js +1 -1
  53. package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
  54. package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
  55. package/dist/cjs/hooks/useMutationObserver.js +1 -1
  56. package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
  57. package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
  58. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
  59. package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
  60. package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
  61. package/dist/cjs/hooks/usePaint/helpers/Paint.js +2 -2
  62. package/dist/cjs/hooks/usePaint/helpers/Pointer.js +2 -2
  63. package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
  64. package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
  65. package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  66. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  67. package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
  68. package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
  69. package/dist/cjs/hooks/useQuery/useQuery.js.map +1 -1
  70. package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
  71. package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
  72. package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
  73. package/dist/cjs/hooks/useRerender/useRerender.js +2 -2
  74. package/dist/cjs/hooks/useScript/useScript.js +2 -2
  75. package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
  76. package/dist/cjs/hooks/useSet/useSet.js +2 -2
  77. package/dist/cjs/hooks/useShare/useShare.js +2 -2
  78. package/dist/cjs/hooks/useStep/useStep.js +2 -2
  79. package/dist/cjs/hooks/useStopwatch/useStopwatch.js +3 -0
  80. package/dist/cjs/hooks/useStopwatch/useStopwatch.js.map +1 -0
  81. package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
  82. package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
  83. package/dist/cjs/hooks/useTime/useTime.js +2 -2
  84. package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
  85. package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
  86. package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
  87. package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
  88. package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +1 -1
  89. package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
  90. package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
  91. package/dist/cjs/index-P7gOty8T.js +3 -0
  92. package/dist/cjs/index-P7gOty8T.js.map +1 -0
  93. package/dist/cjs/index.js +2 -2
  94. package/dist/cjs/utils/helpers/debounce.js +1 -1
  95. package/dist/cjs/utils/helpers/getRetry.js +1 -1
  96. package/dist/cjs/utils/helpers/index.js +1 -1
  97. package/dist/cjs/utils/helpers/isClient.js +1 -1
  98. package/dist/cjs/utils/helpers/throttle.js +1 -1
  99. package/dist/cjs/utils/helpers/time/getDate.js +1 -1
  100. package/dist/cjs/utils/types/index.js +1 -1
  101. package/dist/esm/{_rollupPluginBabelHelpers-q3sUYXUv.js → _rollupPluginBabelHelpers-CePHKKZk.js} +3 -3
  102. package/dist/esm/_rollupPluginBabelHelpers-CePHKKZk.js.map +1 -0
  103. package/dist/esm/hooks/index.js +2 -2
  104. package/dist/esm/hooks/useBattery/useBattery.js +2 -2
  105. package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
  106. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  107. package/dist/esm/hooks/useClickOutside/useClickOutside.js +1 -1
  108. package/dist/esm/hooks/useCopyToClipboard/useCopyToClipboard.js +2 -2
  109. package/dist/esm/hooks/useCounter/useCounter.js +2 -2
  110. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  111. package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
  112. package/dist/esm/hooks/useDefault/useDefault.js +2 -2
  113. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
  114. package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
  115. package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +1 -1
  116. package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  117. package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  118. package/dist/esm/hooks/useEvent/useEvent.js +1 -1
  119. package/dist/esm/hooks/useEventListener/useEventListener.js +1 -1
  120. package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
  121. package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
  122. package/dist/esm/hooks/useField/useField.js +2 -2
  123. package/dist/esm/hooks/useFileDialog/useFileDialog.js +3 -0
  124. package/dist/esm/hooks/useFileDialog/useFileDialog.js.map +1 -0
  125. package/dist/esm/hooks/useFps/useFps.js +2 -2
  126. package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
  127. package/dist/esm/hooks/useFullscreen/useFullscreen.js.map +1 -1
  128. package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
  129. package/dist/esm/hooks/useHash/useHash.js +2 -2
  130. package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
  131. package/dist/esm/hooks/useHover/useHover.js +2 -2
  132. package/dist/esm/hooks/useIdle/useIdle.js +2 -2
  133. package/dist/esm/hooks/useImage/useImage.js +3 -0
  134. package/dist/esm/hooks/useImage/useImage.js.map +1 -0
  135. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  136. package/dist/esm/hooks/useInterval/useInterval.js +2 -2
  137. package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  138. package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  139. package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
  140. package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +1 -1
  141. package/dist/esm/hooks/useKeyboard/useKeyboard.js +1 -1
  142. package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
  143. package/dist/esm/hooks/useList/useList.js +2 -2
  144. package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
  145. package/dist/esm/hooks/useLogger/useLogger.js +2 -2
  146. package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
  147. package/dist/esm/hooks/useMap/useMap.js +2 -2
  148. package/dist/esm/hooks/useMeasure/useMeasure.js +3 -0
  149. package/dist/esm/hooks/useMeasure/useMeasure.js.map +1 -0
  150. package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
  151. package/dist/esm/hooks/useMemory/useMemory.js +2 -2
  152. package/dist/esm/hooks/useMount/useMount.js +1 -1
  153. package/dist/esm/hooks/useMouse/useMouse.js +2 -2
  154. package/dist/esm/hooks/useMutation/useMutation.js +2 -2
  155. package/dist/esm/hooks/useMutationObserver.js +1 -1
  156. package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
  157. package/dist/esm/hooks/useOnline/useOnline.js +1 -1
  158. package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
  159. package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
  160. package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
  161. package/dist/esm/hooks/usePaint/helpers/Paint.js +2 -2
  162. package/dist/esm/hooks/usePaint/helpers/Pointer.js +2 -2
  163. package/dist/esm/hooks/usePaint/usePaint.js +2 -2
  164. package/dist/esm/hooks/usePermission/usePermission.js +2 -2
  165. package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  166. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  167. package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
  168. package/dist/esm/hooks/useQuery/useQuery.js +2 -2
  169. package/dist/esm/hooks/useQuery/useQuery.js.map +1 -1
  170. package/dist/esm/hooks/useQueue/useQueue.js +2 -2
  171. package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
  172. package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
  173. package/dist/esm/hooks/useRerender/useRerender.js +2 -2
  174. package/dist/esm/hooks/useScript/useScript.js +2 -2
  175. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
  176. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js.map +1 -1
  177. package/dist/esm/hooks/useSet/useSet.js +2 -2
  178. package/dist/esm/hooks/useShare/useShare.js +2 -2
  179. package/dist/esm/hooks/useShare/useShare.js.map +1 -1
  180. package/dist/esm/hooks/useStep/useStep.js +2 -2
  181. package/dist/esm/hooks/useStopwatch/useStopwatch.js +3 -0
  182. package/dist/esm/hooks/useStopwatch/useStopwatch.js.map +1 -0
  183. package/dist/esm/hooks/useStorage/useStorage.js +2 -2
  184. package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
  185. package/dist/esm/hooks/useTime/useTime.js +2 -2
  186. package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
  187. package/dist/esm/hooks/useToggle/useToggle.js +2 -2
  188. package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
  189. package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
  190. package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +1 -1
  191. package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
  192. package/dist/esm/hooks/useWizard/useWizard.js +2 -2
  193. package/dist/esm/index-D_PnqV6k.js +3 -0
  194. package/dist/esm/index-D_PnqV6k.js.map +1 -0
  195. package/dist/esm/index.js +2 -2
  196. package/dist/esm/utils/helpers/debounce.js +1 -1
  197. package/dist/esm/utils/helpers/getRetry.js +1 -1
  198. package/dist/esm/utils/helpers/index.js +1 -1
  199. package/dist/esm/utils/helpers/isClient.js +1 -1
  200. package/dist/esm/utils/helpers/throttle.js +1 -1
  201. package/dist/esm/utils/helpers/time/getDate.js +1 -1
  202. package/dist/esm/utils/types/index.js +1 -1
  203. package/dist/index.d.ts +261 -43
  204. package/package.json +1 -1
  205. package/dist/cjs/_rollupPluginBabelHelpers-BRE4VASD.js.map +0 -1
  206. package/dist/esm/_rollupPluginBabelHelpers-q3sUYXUv.js.map +0 -1
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-q3sUYXUv.js";import{useReducer as n}from"react";var t=function(){var t=n((function(r,n){var t=n instanceof Function?n(r[0]):n,e=Math.abs(r.indexOf(t));return r.slice(e).concat(r.slice(0,e))}),arguments.length>0&&void 0!==arguments[0]?arguments[0]:[!1,!0]),e=r(t,2);return[r(e[0],1)[0],e[1]]};export{t as useToggle};
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-CePHKKZk.js";import{useReducer as n}from"react";var t=function(){var t=n((function(r,n){var t=n instanceof Function?n(r[0]):n,e=Math.abs(r.indexOf(t));return r.slice(e).concat(r.slice(0,e))}),arguments.length>0&&void 0!==arguments[0]?arguments[0]:[!1,!0]),e=r(t,2);return[r(e[0],1)[0],e[1]]};export{t as useToggle};
3
3
  //# sourceMappingURL=useToggle.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
2
  import{useRef as r,useEffect as n}from"react";var t=function(t){var c=r(t);c.current=t,n((function(){return function(){c.current()}}),[])};export{t as useUnmount};
3
3
  //# sourceMappingURL=useUnmount.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-q3sUYXUv.js";import{useRef as r,useState as e,useEffect as o}from"react";import{getRetry as t}from"../../utils/helpers/getRetry.js";import"../../utils/helpers/isClient.js";import{useEvent as u}from"../useEvent/useEvent.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var c=function(c,l){var i=r(),s=r(null!=l&&l.retry?t(l.retry):0),f=r(!1),a=e("connecting"),v=n(a,2),d=v[0],p=v[1],m=u((function(){i.current=new WebSocket("function"==typeof c?c():c,null==l?void 0:l.protocols),p("connecting");var n=i.current;n&&(n.onopen=function(){var r;p("connected"),null==l||null===(r=l.onConnected)||void 0===r||r.call(l,n)},n.onerror=function(r){var e;p("failed"),null==l||null===(e=l.onError)||void 0===e||e.call(l,r,n)},n.onmessage=function(r){var e;return null==l||null===(e=l.onMessage)||void 0===e?void 0:e.call(l,r,n)},n.onclose=function(r){var e;if(p("disconnected"),null==l||null===(e=l.onDisconnected)||void 0===e||e.call(l,r,n),!f.current)return s.current>0?(s.current-=1,m()):void(s.current=null!=l&&l.retry?t(l.retry):0)})}));o((function(){return m(),function(){i.current&&(i.current.close(),i.current=void 0)}}),[c]);return{client:i.current,close:function(){var n;f.current=!0,null===(n=i.current)||void 0===n||n.close()},open:function(){f.current=!1,m()},send:function(n){var r;return null===(r=i.current)||void 0===r?void 0:r.send(n)},status:d}};export{c as useWebSocket};
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-CePHKKZk.js";import{useRef as r,useState as e,useEffect as o}from"react";import{getRetry as t}from"../../utils/helpers/getRetry.js";import"../../utils/helpers/isClient.js";import{useEvent as u}from"../useEvent/useEvent.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var c=function(c,l){var i=r(),s=r(null!=l&&l.retry?t(l.retry):0),f=r(!1),a=e("connecting"),v=n(a,2),d=v[0],p=v[1],m=u((function(){i.current=new WebSocket("function"==typeof c?c():c,null==l?void 0:l.protocols),p("connecting");var n=i.current;n&&(n.onopen=function(){var r;p("connected"),null==l||null===(r=l.onConnected)||void 0===r||r.call(l,n)},n.onerror=function(r){var e;p("failed"),null==l||null===(e=l.onError)||void 0===e||e.call(l,r,n)},n.onmessage=function(r){var e;return null==l||null===(e=l.onMessage)||void 0===e?void 0:e.call(l,r,n)},n.onclose=function(r){var e;if(p("disconnected"),null==l||null===(e=l.onDisconnected)||void 0===e||e.call(l,r,n),!f.current)return s.current>0?(s.current-=1,m()):void(s.current=null!=l&&l.retry?t(l.retry):0)})}));o((function(){return m(),function(){i.current&&(i.current.close(),i.current=void 0)}}),[c]);return{client:i.current,close:function(){var n;f.current=!0,null===(n=i.current)||void 0===n||n.close()},open:function(){f.current=!1,m()},send:function(n){var r;return null===(r=i.current)||void 0===r?void 0:r.send(n)},status:d}};export{c as useWebSocket};
3
3
  //# sourceMappingURL=useWebSocket.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
2
  import{useEventListener as e}from"../useEventListener/useEventListener.js";import"react";import"../useEvent/useEvent.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../../utils/helpers/isClient.js";var t=function(t,s,r){return e(window,t,s,r)};export{t as useWindowEvent};
3
3
  //# sourceMappingURL=useWindowEvent.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
2
- import{_ as i}from"../../_rollupPluginBabelHelpers-q3sUYXUv.js";import{useState as n,useEffect as e}from"react";import{isClient as r}from"../../utils/helpers/isClient.js";var t=function(t){var o,d,l=n({width:r?window.innerWidth:null!==(o=null==t?void 0:t.initialWidth)&&void 0!==o?o:Number.POSITIVE_INFINITY,height:r?window.innerHeight:null!==(d=null==t?void 0:t.initialWidth)&&void 0!==d?d:Number.POSITIVE_INFINITY}),u=i(l,2),w=u[0],h=u[1];return e((function(){var i=function(){h({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",i),function(){window.removeEventListener("resize",i)}}),[]),w};export{t as useWindowSize};
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
+ import{_ as i}from"../../_rollupPluginBabelHelpers-CePHKKZk.js";import{useState as n,useEffect as e}from"react";import{isClient as r}from"../../utils/helpers/isClient.js";var t=function(t){var o,d,l=n({width:r?window.innerWidth:null!==(o=null==t?void 0:t.initialWidth)&&void 0!==o?o:Number.POSITIVE_INFINITY,height:r?window.innerHeight:null!==(d=null==t?void 0:t.initialWidth)&&void 0!==d?d:Number.POSITIVE_INFINITY}),u=i(l,2),w=u[0],h=u[1];return e((function(){var i=function(){h({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",i),function(){window.removeEventListener("resize",i)}}),[]),w};export{t as useWindowSize};
3
3
  //# sourceMappingURL=useWindowSize.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
2
- import{_ as n,a as o}from"../../_rollupPluginBabelHelpers-q3sUYXUv.js";import{useState as t}from"react";var r=function(r,e){var c=null!=e?e:r[0].id,i=new Map(r.map((function(n){return[n.id,n]}))),l=t(c),a=n(l,2),u=a[0],f=a[1],s=t([c]),d=n(s,2),v=d[0],g=d[1];return{currentStepId:u,set:function(n){var t;if(null===(t=i.get(u))||void 0===t||null===(t=t.nodes)||void 0===t||!t.includes(n))throw new Error("Can't go to ".concat(n," from ").concat(u));g([].concat(o(v),[n])),f(n)},reset:function(){f(c),g([c])},back:function(){var n;if(1!==v.length){var o=v[v.length-2];if(null===(n=i.get(u))||void 0===n||null===(n=n.nodes)||void 0===n||!n.includes(o))throw new Error("Can't go to ".concat(o," from ").concat(u));g(v.slice(0,-1)),f(v[v.length-2])}},history:v}};export{r as useWizard};
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
+ import{_ as n,a as o}from"../../_rollupPluginBabelHelpers-CePHKKZk.js";import{useState as t}from"react";var r=function(r,e){var c=null!=e?e:r[0].id,i=new Map(r.map((function(n){return[n.id,n]}))),l=t(c),a=n(l,2),u=a[0],f=a[1],s=t([c]),d=n(s,2),v=d[0],g=d[1];return{currentStepId:u,set:function(n){var t;if(null===(t=i.get(u))||void 0===t||null===(t=t.nodes)||void 0===t||!t.includes(n))throw new Error("Can't go to ".concat(n," from ").concat(u));g([].concat(o(v),[n])),f(n)},reset:function(){f(c),g([c])},back:function(){var n;if(1!==v.length){var o=v[v.length-2];if(null===(n=i.get(u))||void 0===n||null===(n=n.nodes)||void 0===n||!n.includes(o))throw new Error("Can't go to ".concat(o," from ").concat(u));g(v.slice(0,-1)),f(v[v.length-2])}},history:v}};export{r as useWizard};
3
3
  //# sourceMappingURL=useWizard.js.map
@@ -0,0 +1,3 @@
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
+ const e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=(()=>{if("undefined"==typeof document)return!1;const n=e[0],l={};for(const r of e){const e=r?.[1];if(e in document){for(const[e,c]of r.entries())l[n[e]]=c;return l}}return!1})(),l={change:n.fullscreenchange,error:n.fullscreenerror};let r={request:(e=document.documentElement,l)=>new Promise(((c,t)=>{const s=()=>{r.off("change",s),c()};r.on("change",s);const o=e[n.requestFullscreen](l);o instanceof Promise&&o.then(s).catch(t)})),exit:()=>new Promise(((e,l)=>{if(!r.isFullscreen)return void e();const c=()=>{r.off("change",c),e()};r.on("change",c);const t=document[n.exitFullscreen]();t instanceof Promise&&t.then(c).catch(l)})),toggle:(e,n)=>r.isFullscreen?r.exit():r.request(e,n),onchange(e){r.on("change",e)},onerror(e){r.on("error",e)},on(e,n){const r=l[e];r&&document.addEventListener(r,n,!1)},off(e,n){const r=l[e];r&&document.removeEventListener(r,n,!1)},raw:n};Object.defineProperties(r,{isFullscreen:{get:()=>Boolean(document[n.fullscreenElement])},element:{enumerable:!0,get:()=>document[n.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[n.fullscreenEnabled])}}),n||(r={isEnabled:!1});var c=r;export{c as s};
3
+ //# sourceMappingURL=index-D_PnqV6k.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-D_PnqV6k.js","sources":["../../node_modules/screenfull/index.js"],"sourcesContent":["/* eslint-disable promise/prefer-await-to-then */\n\nconst methodMap = [\n\t[\n\t\t'requestFullscreen',\n\t\t'exitFullscreen',\n\t\t'fullscreenElement',\n\t\t'fullscreenEnabled',\n\t\t'fullscreenchange',\n\t\t'fullscreenerror',\n\t],\n\t// New WebKit\n\t[\n\t\t'webkitRequestFullscreen',\n\t\t'webkitExitFullscreen',\n\t\t'webkitFullscreenElement',\n\t\t'webkitFullscreenEnabled',\n\t\t'webkitfullscreenchange',\n\t\t'webkitfullscreenerror',\n\n\t],\n\t// Old WebKit\n\t[\n\t\t'webkitRequestFullScreen',\n\t\t'webkitCancelFullScreen',\n\t\t'webkitCurrentFullScreenElement',\n\t\t'webkitCancelFullScreen',\n\t\t'webkitfullscreenchange',\n\t\t'webkitfullscreenerror',\n\n\t],\n\t[\n\t\t'mozRequestFullScreen',\n\t\t'mozCancelFullScreen',\n\t\t'mozFullScreenElement',\n\t\t'mozFullScreenEnabled',\n\t\t'mozfullscreenchange',\n\t\t'mozfullscreenerror',\n\t],\n\t[\n\t\t'msRequestFullscreen',\n\t\t'msExitFullscreen',\n\t\t'msFullscreenElement',\n\t\t'msFullscreenEnabled',\n\t\t'MSFullscreenChange',\n\t\t'MSFullscreenError',\n\t],\n];\n\nconst nativeAPI = (() => {\n\tif (typeof document === 'undefined') {\n\t\treturn false;\n\t}\n\n\tconst unprefixedMethods = methodMap[0];\n\tconst returnValue = {};\n\n\tfor (const methodList of methodMap) {\n\t\tconst exitFullscreenMethod = methodList?.[1];\n\t\tif (exitFullscreenMethod in document) {\n\t\t\tfor (const [index, method] of methodList.entries()) {\n\t\t\t\treturnValue[unprefixedMethods[index]] = method;\n\t\t\t}\n\n\t\t\treturn returnValue;\n\t\t}\n\t}\n\n\treturn false;\n})();\n\nconst eventNameMap = {\n\tchange: nativeAPI.fullscreenchange,\n\terror: nativeAPI.fullscreenerror,\n};\n\n// eslint-disable-next-line import/no-mutable-exports\nlet screenfull = {\n\t// eslint-disable-next-line default-param-last\n\trequest(element = document.documentElement, options) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst onFullScreenEntered = () => {\n\t\t\t\tscreenfull.off('change', onFullScreenEntered);\n\t\t\t\tresolve();\n\t\t\t};\n\n\t\t\tscreenfull.on('change', onFullScreenEntered);\n\n\t\t\tconst returnPromise = element[nativeAPI.requestFullscreen](options);\n\n\t\t\tif (returnPromise instanceof Promise) {\n\t\t\t\treturnPromise.then(onFullScreenEntered).catch(reject);\n\t\t\t}\n\t\t});\n\t},\n\texit() {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tif (!screenfull.isFullscreen) {\n\t\t\t\tresolve();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst onFullScreenExit = () => {\n\t\t\t\tscreenfull.off('change', onFullScreenExit);\n\t\t\t\tresolve();\n\t\t\t};\n\n\t\t\tscreenfull.on('change', onFullScreenExit);\n\n\t\t\tconst returnPromise = document[nativeAPI.exitFullscreen]();\n\n\t\t\tif (returnPromise instanceof Promise) {\n\t\t\t\treturnPromise.then(onFullScreenExit).catch(reject);\n\t\t\t}\n\t\t});\n\t},\n\ttoggle(element, options) {\n\t\treturn screenfull.isFullscreen ? screenfull.exit() : screenfull.request(element, options);\n\t},\n\tonchange(callback) {\n\t\tscreenfull.on('change', callback);\n\t},\n\tonerror(callback) {\n\t\tscreenfull.on('error', callback);\n\t},\n\ton(event, callback) {\n\t\tconst eventName = eventNameMap[event];\n\t\tif (eventName) {\n\t\t\tdocument.addEventListener(eventName, callback, false);\n\t\t}\n\t},\n\toff(event, callback) {\n\t\tconst eventName = eventNameMap[event];\n\t\tif (eventName) {\n\t\t\tdocument.removeEventListener(eventName, callback, false);\n\t\t}\n\t},\n\traw: nativeAPI,\n};\n\nObject.defineProperties(screenfull, {\n\tisFullscreen: {\n\t\tget: () => Boolean(document[nativeAPI.fullscreenElement]),\n\t},\n\telement: {\n\t\tenumerable: true,\n\t\tget: () => document[nativeAPI.fullscreenElement] ?? undefined,\n\t},\n\tisEnabled: {\n\t\tenumerable: true,\n\t\t// Coerce to boolean in case of old WebKit.\n\t\tget: () => Boolean(document[nativeAPI.fullscreenEnabled]),\n\t},\n});\n\nif (!nativeAPI) {\n\tscreenfull = {isEnabled: false};\n}\n\nexport default screenfull;\n"],"names":["methodMap","nativeAPI","document","unprefixedMethods","returnValue","methodList","exitFullscreenMethod","index","method","entries","eventNameMap","change","fullscreenchange","error","fullscreenerror","screenfull","request","element","documentElement","options","Promise","resolve","reject","onFullScreenEntered","off","on","returnPromise","requestFullscreen","then","catch","exit","isFullscreen","onFullScreenExit","exitFullscreen","toggle","onchange","callback","onerror","event","eventName","addEventListener","removeEventListener","raw","Object","defineProperties","get","Boolean","fullscreenElement","enumerable","undefined","isEnabled","fullscreenEnabled","screenfull$1"],"mappings":";AAEA,MAAMA,EAAY,CACjB,CACC,oBACA,iBACA,oBACA,oBACA,mBACA,mBAGD,CACC,0BACA,uBACA,0BACA,0BACA,yBACA,yBAID,CACC,0BACA,yBACA,iCACA,yBACA,yBACA,yBAGD,CACC,uBACA,sBACA,uBACA,uBACA,sBACA,sBAED,CACC,sBACA,mBACA,sBACA,sBACA,qBACA,sBAIIC,EAAY,MACjB,GAAwB,oBAAbC,SACV,OAAO,EAGR,MAAMC,EAAoBH,EAAU,GAC9BI,EAAc,CAAA,EAEpB,IAAK,MAAMC,KAAcL,EAAW,CACnC,MAAMM,EAAuBD,IAAa,GAC1C,GAAIC,KAAwBJ,SAAU,CACrC,IAAK,MAAOK,EAAOC,KAAWH,EAAWI,UACxCL,EAAYD,EAAkBI,IAAUC,EAGzC,OAAOJ,CACP,CACD,CAED,OAAO,CACP,EApBiB,GAsBZM,EAAe,CACpBC,OAAQV,EAAUW,iBAClBC,MAAOZ,EAAUa,iBAIlB,IAAIC,EAAa,CAEhBC,QAAO,CAACC,EAAUf,SAASgB,gBAAiBC,IACpC,IAAIC,SAAQ,CAACC,EAASC,KAC5B,MAAMC,EAAsB,KAC3BR,EAAWS,IAAI,SAAUD,GACzBF,GAAS,EAGVN,EAAWU,GAAG,SAAUF,GAExB,MAAMG,EAAgBT,EAAQhB,EAAU0B,mBAAmBR,GAEvDO,aAAyBN,SAC5BM,EAAcE,KAAKL,GAAqBM,MAAMP,EAC9C,IAGHQ,KAAI,IACI,IAAIV,SAAQ,CAACC,EAASC,KAC5B,IAAKP,EAAWgB,aAEf,YADAV,IAID,MAAMW,EAAmB,KACxBjB,EAAWS,IAAI,SAAUQ,GACzBX,GAAS,EAGVN,EAAWU,GAAG,SAAUO,GAExB,MAAMN,EAAgBxB,SAASD,EAAUgC,kBAErCP,aAAyBN,SAC5BM,EAAcE,KAAKI,GAAkBH,MAAMP,EAC3C,IAGHY,OAAM,CAACjB,EAASE,IACRJ,EAAWgB,aAAehB,EAAWe,OAASf,EAAWC,QAAQC,EAASE,GAElF,QAAAgB,CAASC,GACRrB,EAAWU,GAAG,SAAUW,EACxB,EACD,OAAAC,CAAQD,GACPrB,EAAWU,GAAG,QAASW,EACvB,EACD,EAAAX,CAAGa,EAAOF,GACT,MAAMG,EAAY7B,EAAa4B,GAC3BC,GACHrC,SAASsC,iBAAiBD,EAAWH,GAAU,EAEhD,EACD,GAAAZ,CAAIc,EAAOF,GACV,MAAMG,EAAY7B,EAAa4B,GAC3BC,GACHrC,SAASuC,oBAAoBF,EAAWH,GAAU,EAEnD,EACDM,IAAKzC,GAGN0C,OAAOC,iBAAiB7B,EAAY,CACnCgB,aAAc,CACbc,IAAK,IAAMC,QAAQ5C,SAASD,EAAU8C,qBAEvC9B,QAAS,CACR+B,YAAY,EACZH,IAAK,IAAM3C,SAASD,EAAU8C,yBAAsBE,GAErDC,UAAW,CACVF,YAAY,EAEZH,IAAK,IAAMC,QAAQ5C,SAASD,EAAUkD,uBAInClD,IACJc,EAAa,CAACmC,WAAW,IAG1B,IAAAE,EAAerC","x_google_ignoreList":[0]}
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
2
- export{useBattery}from"./hooks/useBattery/useBattery.js";export{useBoolean}from"./hooks/useBoolean/useBoolean.js";export{useBrowserLanguage}from"./hooks/useBrowserLanguage/useBrowserLanguage.js";export{useClickOutside}from"./hooks/useClickOutside/useClickOutside.js";export{useCopyToClipboard}from"./hooks/useCopyToClipboard/useCopyToClipboard.js";export{useCounter}from"./hooks/useCounter/useCounter.js";export{useDebounceCallback}from"./hooks/useDebounceCallback/useDebounceCallback.js";export{useDebounceValue}from"./hooks/useDebounceValue/useDebounceValue.js";export{useDefault}from"./hooks/useDefault/useDefault.js";export{useDidUpdate}from"./hooks/useDidUpdate/useDidUpdate.js";export{useDisclosure}from"./hooks/useDisclosure/useDisclosure.js";export{useDocumentEvent}from"./hooks/useDocumentEvent/useDocumentEvent.js";export{useDocumentTitle}from"./hooks/useDocumentTitle/useDocumentTitle.js";export{useDocumentVisibility}from"./hooks/useDocumentVisibility/useDocumentVisibility.js";export{useEvent}from"./hooks/useEvent/useEvent.js";export{useEventListener}from"./hooks/useEventListener/useEventListener.js";export{useEyeDropper}from"./hooks/useEyeDropper/useEyeDropper.js";export{useFavicon}from"./hooks/useFavicon/useFavicon.js";export{useField}from"./hooks/useField/useField.js";export{useFps}from"./hooks/useFps/useFps.js";export{useFullscreen}from"./hooks/useFullscreen/useFullscreen.js";export{useHash}from"./hooks/useHash/useHash.js";export{useHotkeys}from"./hooks/useHotkeys/useHotkeys.js";export{useHover}from"./hooks/useHover/useHover.js";export{useIdle}from"./hooks/useIdle/useIdle.js";export{useIntersectionObserver}from"./hooks/useIntersectionObserver/useIntersectionObserver.js";export{useInterval}from"./hooks/useInterval/useInterval.js";export{useIsFirstRender}from"./hooks/useIsFirstRender/useIsFirstRender.js";export{useIsomorphicLayoutEffect}from"./hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";export{useKeyboard}from"./hooks/useKeyboard/useKeyboard.js";export{useKeyPress}from"./hooks/useKeyPress/useKeyPress.js";export{useKeyPressEvent}from"./hooks/useKeyPressEvent/useKeyPressEvent.js";export{useKeysPressed}from"./hooks/useKeysPressed/useKeysPressed.js";export{useList}from"./hooks/useList/useList.js";export{useLocalStorage}from"./hooks/useLocalStorage/useLocalStorage.js";export{useLogger}from"./hooks/useLogger/useLogger.js";export{useLongPress}from"./hooks/useLongPress/useLongPress.js";export{useMap}from"./hooks/useMap/useMap.js";export{useMediaQuery}from"./hooks/useMediaQuery/useMediaQuery.js";export{useMemory}from"./hooks/useMemory/useMemory.js";export{useMount}from"./hooks/useMount/useMount.js";export{useMouse}from"./hooks/useMouse/useMouse.js";export{useMutation}from"./hooks/useMutation/useMutation.js";export{useNetwork}from"./hooks/useNetwork/useNetwork.js";export{useOnline}from"./hooks/useOnline/useOnline.js";export{useOperatingSystem}from"./hooks/useOperatingSystem/useOperatingSystem.js";export{useOrientation}from"./hooks/useOrientation/useOrientation.js";export{usePageLeave}from"./hooks/usePageLeave/usePageLeave.js";export{usePaint}from"./hooks/usePaint/usePaint.js";export{usePermission}from"./hooks/usePermission/usePermission.js";export{usePreferredColorScheme}from"./hooks/usePreferredColorScheme/usePreferredColorScheme.js";export{usePreferredLanguages}from"./hooks/usePreferredLanguages/usePreferredLanguages.js";export{usePrevious}from"./hooks/usePrevious/usePrevious.js";export{useQuery}from"./hooks/useQuery/useQuery.js";export{useQueue}from"./hooks/useQueue/useQueue.js";export{useRenderCount}from"./hooks/useRenderCount/useRenderCount.js";export{useRenderInfo}from"./hooks/useRenderInfo/useRenderInfo.js";export{useRerender}from"./hooks/useRerender/useRerender.js";export{useScript}from"./hooks/useScript/useScript.js";export{useSessionStorage}from"./hooks/useSessionStorage/useSessionStorage.js";export{useSet}from"./hooks/useSet/useSet.js";export{useShare}from"./hooks/useShare/useShare.js";export{useStep}from"./hooks/useStep/useStep.js";export{useStorage}from"./hooks/useStorage/useStorage.js";export{useTextSelection}from"./hooks/useTextSelection/useTextSelection.js";export{useTime}from"./hooks/useTime/useTime.js";export{useTimeout}from"./hooks/useTimeout/useTimeout.js";export{useToggle}from"./hooks/useToggle/useToggle.js";export{useUnmount}from"./hooks/useUnmount/useUnmount.js";export{useWebSocket}from"./hooks/useWebSocket/useWebSocket.js";export{useWindowEvent}from"./hooks/useWindowEvent/useWindowEvent.js";export{useWindowSize}from"./hooks/useWindowSize/useWindowSize.js";export{useWizard}from"./hooks/useWizard/useWizard.js";export{debounce}from"./utils/helpers/debounce.js";export{getRetry}from"./utils/helpers/getRetry.js";export{isClient}from"./utils/helpers/isClient.js";export{throttle}from"./utils/helpers/throttle.js";export{getDate}from"./utils/helpers/time/getDate.js";import"./_rollupPluginBabelHelpers-q3sUYXUv.js";import"react";import"./hooks/useMutationObserver.js";import"./hooks/usePaint/helpers/Paint.js";import"./hooks/usePaint/helpers/Pointer.js";import"react-dom";
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
+ export{useBattery}from"./hooks/useBattery/useBattery.js";export{useBoolean}from"./hooks/useBoolean/useBoolean.js";export{useBrowserLanguage}from"./hooks/useBrowserLanguage/useBrowserLanguage.js";export{useClickOutside}from"./hooks/useClickOutside/useClickOutside.js";export{useCopyToClipboard}from"./hooks/useCopyToClipboard/useCopyToClipboard.js";export{useCounter}from"./hooks/useCounter/useCounter.js";export{useDebounceCallback}from"./hooks/useDebounceCallback/useDebounceCallback.js";export{useDebounceValue}from"./hooks/useDebounceValue/useDebounceValue.js";export{useDefault}from"./hooks/useDefault/useDefault.js";export{useDidUpdate}from"./hooks/useDidUpdate/useDidUpdate.js";export{useDisclosure}from"./hooks/useDisclosure/useDisclosure.js";export{useDocumentEvent}from"./hooks/useDocumentEvent/useDocumentEvent.js";export{useDocumentTitle}from"./hooks/useDocumentTitle/useDocumentTitle.js";export{useDocumentVisibility}from"./hooks/useDocumentVisibility/useDocumentVisibility.js";export{useEvent}from"./hooks/useEvent/useEvent.js";export{useEventListener}from"./hooks/useEventListener/useEventListener.js";export{useEyeDropper}from"./hooks/useEyeDropper/useEyeDropper.js";export{useFavicon}from"./hooks/useFavicon/useFavicon.js";export{useField}from"./hooks/useField/useField.js";export{useFileDialog}from"./hooks/useFileDialog/useFileDialog.js";export{useFps}from"./hooks/useFps/useFps.js";export{useFullscreen}from"./hooks/useFullscreen/useFullscreen.js";export{useGeolocation}from"./hooks/useGeolocation/useGeolocation.js";export{useHash}from"./hooks/useHash/useHash.js";export{useHotkeys}from"./hooks/useHotkeys/useHotkeys.js";export{useHover}from"./hooks/useHover/useHover.js";export{useIdle}from"./hooks/useIdle/useIdle.js";export{useImage}from"./hooks/useImage/useImage.js";export{useIntersectionObserver}from"./hooks/useIntersectionObserver/useIntersectionObserver.js";export{useInterval}from"./hooks/useInterval/useInterval.js";export{useIsFirstRender}from"./hooks/useIsFirstRender/useIsFirstRender.js";export{useIsomorphicLayoutEffect}from"./hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";export{useKeyboard}from"./hooks/useKeyboard/useKeyboard.js";export{useKeyPress}from"./hooks/useKeyPress/useKeyPress.js";export{useKeyPressEvent}from"./hooks/useKeyPressEvent/useKeyPressEvent.js";export{useKeysPressed}from"./hooks/useKeysPressed/useKeysPressed.js";export{useList}from"./hooks/useList/useList.js";export{useLocalStorage}from"./hooks/useLocalStorage/useLocalStorage.js";export{useLogger}from"./hooks/useLogger/useLogger.js";export{useLongPress}from"./hooks/useLongPress/useLongPress.js";export{useMap}from"./hooks/useMap/useMap.js";export{useMeasure}from"./hooks/useMeasure/useMeasure.js";export{useMediaQuery}from"./hooks/useMediaQuery/useMediaQuery.js";export{useMemory}from"./hooks/useMemory/useMemory.js";export{useMount}from"./hooks/useMount/useMount.js";export{useMouse}from"./hooks/useMouse/useMouse.js";export{useMutation}from"./hooks/useMutation/useMutation.js";export{useNetwork}from"./hooks/useNetwork/useNetwork.js";export{useOnline}from"./hooks/useOnline/useOnline.js";export{useOperatingSystem}from"./hooks/useOperatingSystem/useOperatingSystem.js";export{useOrientation}from"./hooks/useOrientation/useOrientation.js";export{usePageLeave}from"./hooks/usePageLeave/usePageLeave.js";export{usePaint}from"./hooks/usePaint/usePaint.js";export{usePermission}from"./hooks/usePermission/usePermission.js";export{usePreferredColorScheme}from"./hooks/usePreferredColorScheme/usePreferredColorScheme.js";export{usePreferredLanguages}from"./hooks/usePreferredLanguages/usePreferredLanguages.js";export{usePrevious}from"./hooks/usePrevious/usePrevious.js";export{useQuery}from"./hooks/useQuery/useQuery.js";export{useQueue}from"./hooks/useQueue/useQueue.js";export{useRenderCount}from"./hooks/useRenderCount/useRenderCount.js";export{useRenderInfo}from"./hooks/useRenderInfo/useRenderInfo.js";export{useRerender}from"./hooks/useRerender/useRerender.js";export{useScript}from"./hooks/useScript/useScript.js";export{useSessionStorage}from"./hooks/useSessionStorage/useSessionStorage.js";export{useSet}from"./hooks/useSet/useSet.js";export{useShare}from"./hooks/useShare/useShare.js";export{useStep}from"./hooks/useStep/useStep.js";export{useStopwatch}from"./hooks/useStopwatch/useStopwatch.js";export{useStorage}from"./hooks/useStorage/useStorage.js";export{useTextSelection}from"./hooks/useTextSelection/useTextSelection.js";export{useTime}from"./hooks/useTime/useTime.js";export{useTimeout}from"./hooks/useTimeout/useTimeout.js";export{useToggle}from"./hooks/useToggle/useToggle.js";export{useUnmount}from"./hooks/useUnmount/useUnmount.js";export{useWebSocket}from"./hooks/useWebSocket/useWebSocket.js";export{useWindowEvent}from"./hooks/useWindowEvent/useWindowEvent.js";export{useWindowSize}from"./hooks/useWindowSize/useWindowSize.js";export{useWizard}from"./hooks/useWizard/useWizard.js";export{debounce}from"./utils/helpers/debounce.js";export{getRetry}from"./utils/helpers/getRetry.js";export{isClient}from"./utils/helpers/isClient.js";export{throttle}from"./utils/helpers/throttle.js";export{getDate}from"./utils/helpers/time/getDate.js";import"./_rollupPluginBabelHelpers-CePHKKZk.js";import"react";import"./hooks/useMutationObserver.js";import"./index-D_PnqV6k.js";import"./hooks/usePaint/helpers/Paint.js";import"./hooks/usePaint/helpers/Pointer.js";import"react-dom";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
2
  var r=function(r,n){var t;return function(){for(var e=arguments.length,o=new Array(e),u=0;u<e;u++)o[u]=arguments[u];clearTimeout(t),t=setTimeout((function(){return r.apply(void 0,o)}),n)}};export{r as debounce};
3
3
  //# sourceMappingURL=debounce.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
2
  var r=function(r){return"number"==typeof r?r:r?1:0};export{r as getRetry};
3
3
  //# sourceMappingURL=getRetry.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
2
  export{debounce}from"./debounce.js";export{getRetry}from"./getRetry.js";export{isClient}from"./isClient.js";export{throttle}from"./throttle.js";export{getDate}from"./time/getDate.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
2
  var n,d,e=!("undefined"==typeof window||null===(n=window)||void 0===n||!n.document||null===(d=window)||void 0===d||null===(d=d.document)||void 0===d||!d.createElement);export{e as isClient};
3
3
  //# sourceMappingURL=isClient.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
2
  var n=function(n,t){var o=!1;return function(){o||(n.apply(void 0,arguments),o=!0,setTimeout((function(){o=!1}),t))}};export{n as throttle};
3
3
  //# sourceMappingURL=throttle.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
2
  var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=e.getSeconds(),n=e.getMinutes(),r=e.getHours();return{seconds:t,minutes:n,hours:r,meridiemHours:{value:r%12==0?12:r%12,type:r>=12?"pm":"am"},day:e.getDate(),month:e.getMonth()+1,year:e.getFullYear(),timestamp:e.getTime()}};export{e as getDate};
3
3
  //# sourceMappingURL=getDate.js.map
@@ -1,2 +1,2 @@
1
- /* @license @siberiacancode/reactuse v0.0.43 */
1
+ /* @license @siberiacancode/reactuse v0.0.44 */
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BatteryManager, EyeDropperConstructor, ColorSelectionOptions, ColorSelectionResult, Connection } from '@/utils/types';
2
2
  import * as react from 'react';
3
- import { RefObject, Dispatch, SetStateAction, EffectCallback, DependencyList, useEffect, ComponentProps } from 'react';
3
+ import { RefObject, Dispatch, SetStateAction, EffectCallback, DependencyList, ComponentProps, useEffect } from 'react';
4
4
 
5
5
  declare global {
6
6
  interface Navigator {
@@ -475,6 +475,52 @@ interface UseFieldReturn<Value> {
475
475
  */
476
476
  declare const useField: <Value extends string | boolean = string, Type = Value extends string ? string : boolean>(params?: UseFieldParams<Value>) => UseFieldReturn<Type>;
477
477
 
478
+ interface UseFileDialogOptions extends Pick<ComponentProps<'input'>, 'multiple' | 'accept'> {
479
+ /** The capture value */
480
+ capture?: string;
481
+ /** The reset value */
482
+ reset?: boolean;
483
+ }
484
+ interface UseFileDialogReturn {
485
+ /** The selected files */
486
+ value: FileList | null;
487
+ /** The open function */
488
+ open: (openParams?: UseFileDialogOptions) => void;
489
+ /** The reset function */
490
+ reset: () => void;
491
+ }
492
+ type UseFileDialog = {
493
+ (callback?: (value: FileList | null) => void, options?: UseFileDialogOptions): UseFileDialogReturn;
494
+ (options?: UseFileDialogOptions, callback?: never): UseFileDialogReturn;
495
+ };
496
+ /**
497
+ * @name useFileDialog
498
+ * @description - Hook to handle file input
499
+ * @category Browser
500
+ *
501
+ * @overload
502
+ * @param {(value: FileList | null) => void} callback The callback to execute when a file is selected
503
+ * @param {boolean} [options.multiple=true] Whether multiple files can be selected
504
+ * @param {string} [options.accept='*'] The accepted file types
505
+ * @param {boolean} [options.reset=false] Whether the input should be reset when the callback is called
506
+ * @param {string} [options.capture] The capture value
507
+ * @returns {UseFileDialogReturn} An object containing the selected files
508
+ *
509
+ * @example
510
+ * const { values, open, reset } = useFileDialog((value) => console.log(value));
511
+ *
512
+ * @overload
513
+ * @param {boolean} [options.multiple=true] Whether multiple files can be selected
514
+ * @param {string} [options.accept='*'] The accepted file types
515
+ * @param {boolean} [options.reset=false] Whether the input should be reset when the callback is called
516
+ * @param {string} [options.capture] The capture value
517
+ * @returns {UseFileDialogReturn} An object containing the selected files
518
+ *
519
+ * @example
520
+ * const { values, open, reset } = useFileDialog({ accept: 'image/*' });
521
+ */
522
+ declare const useFileDialog: UseFileDialog;
523
+
478
524
  /**
479
525
  * @name useFps
480
526
  * @description - Hook that measures frames per second
@@ -539,6 +585,46 @@ type UseFullScreen = {
539
585
  */
540
586
  declare const useFullscreen: UseFullScreen;
541
587
 
588
+ /** The use geolocation return type */
589
+ interface UseGeolocationReturn {
590
+ /** The loading state */
591
+ loading: boolean;
592
+ /** The error of the last position update */
593
+ error: GeolocationPositionError | null;
594
+ /** The timestamp of the last position update */
595
+ timestamp: number | null;
596
+ /** The accuracy of the last position update */
597
+ accuracy: number | null;
598
+ /** The latitude of the last position update */
599
+ latitude: number | null;
600
+ /** The longitude of the last position update */
601
+ longitude: number | null;
602
+ /** The altitude of the last position update */
603
+ altitude: number | null;
604
+ /** The altitude accuracy of the last position update */
605
+ altitudeAccuracy: number | null;
606
+ /** The heading of the last position update */
607
+ heading: number | null;
608
+ /** The speed of the last position update */
609
+ speed: number | null;
610
+ }
611
+ /** The use geolocation params */
612
+ type UseGeolocationParams = PositionOptions;
613
+ /**
614
+ * @name useGeolocation
615
+ * @description - Hook that returns the current geolocation
616
+ * @category Browser
617
+ *
618
+ * @param {boolean} [params.enableHighAccuracy] Enable high accuracy
619
+ * @param {number} [params.maximumAge] Maximum age
620
+ * @param {number} [params.timeout] Timeout
621
+ * @returns {UseGeolocationReturn}
622
+ *
623
+ * @example
624
+ * const { loading, error, timestamp, accuracy, latitude, longitude, altitude, altitudeAccuracy, heading, speed } = useGeolocation();
625
+ */
626
+ declare const useGeolocation: (params?: UseGeolocationParams) => UseGeolocationReturn;
627
+
542
628
  /** The use hash return type */
543
629
  type UseHashReturn = [string, (value: string) => void];
544
630
  /**
@@ -670,6 +756,89 @@ interface UseIdleReturn {
670
756
  */
671
757
  declare const useIdle: (milliseconds?: number, { initialValue, events }?: UseIdleOptions) => UseIdleReturn;
672
758
 
759
+ interface UseQueryOptions<QueryData, Data> {
760
+ keys?: DependencyList;
761
+ onSuccess?: (data: Data) => void;
762
+ onError?: (error: Error) => void;
763
+ select?: (data: QueryData) => Data;
764
+ initialData?: Data | (() => Data);
765
+ placeholderData?: Data | (() => Data);
766
+ retry?: boolean | number;
767
+ refetchInterval?: number;
768
+ }
769
+ interface UseQueryReturn<Data> {
770
+ data?: Data;
771
+ isLoading: boolean;
772
+ isError: boolean;
773
+ isSuccess: boolean;
774
+ error?: Error;
775
+ refetch: () => void;
776
+ isRefetching: boolean;
777
+ }
778
+ /**
779
+ * @name useQuery
780
+ * @description - Hook that defines the logic when query data
781
+ * @category Utilities
782
+ *
783
+ * @template Data The type of the data
784
+ * @param {() => Promise<Data>} callback The callback function to be invoked
785
+ * @param {DependencyList} [options.keys] The dependencies for the hook
786
+ * @param {(data: Data) => void} [options.onSuccess] The callback function to be invoked on success
787
+ * @param {(error: Error) => void} [options.onError] The callback function to be invoked on error
788
+ * @param {UseQueryOptionsSelect<Data>} [options.select] The select function to be invoked
789
+ * @param {Data | (() => Data)} [options.initialData] The initial data for the hook
790
+ * @param {Data | (() => Data)} [options.placeholderData] The placeholder data for the hook
791
+ * @param {number} [options.refetchInterval] The refetch interval
792
+ * @param {boolean | number} [options.retry] The retry count of requests
793
+ * @returns {UseQueryReturn<Data>} An object with the state of the query
794
+ *
795
+ * @example
796
+ * const { data, isLoading, isError, isSuccess, error, refetch, isRefetching } = useQuery(() => fetch('https://example.com/data'));
797
+ */
798
+ declare const useQuery: <QueryData, Data = QueryData>(callback: () => Promise<QueryData>, options?: UseQueryOptions<QueryData, Data>) => UseQueryReturn<Data>;
799
+
800
+ /** The use image options */
801
+ interface UseImageOptions {
802
+ /** The srcset of the image */
803
+ srcset?: string;
804
+ /** The sizes of the image */
805
+ sizes?: string;
806
+ /** The alt of the image */
807
+ alt?: string;
808
+ /** The class of the image */
809
+ class?: string;
810
+ /** The loading of the image */
811
+ loading?: HTMLImageElement['loading'];
812
+ /** The crossorigin of the image */
813
+ crossorigin?: string;
814
+ /** The referrer policy of the image */
815
+ referrerPolicy?: HTMLImageElement['referrerPolicy'];
816
+ }
817
+ /**
818
+ * @name useImage
819
+ * @description - Hook that load an image in the browser
820
+ * @category Browser
821
+ *
822
+ * @param {string} src The source of the image
823
+ * @param {string} [options.srcset] The srcset of the image
824
+ * @param {string} [options.sizes] The sizes of the image
825
+ * @param {string} [options.alt] The alt of the image
826
+ * @param {string} [options.class] The class of the image
827
+ * @param {HTMLImageElement['loading']} [options.loading] The loading of the image
828
+ * @param {string} [options.crossorigin] The crossorigin of the image
829
+ * @param {HTMLImageElement['referrerPolicy']} [options.referrerPolicy] The referrerPolicy of the image
830
+ * @param {DependencyList} [useQueryOptions.keys] The dependencies for the hook
831
+ * @param {(data: Data) => void} [useQueryOptions.onSuccess] The callback function to be invoked on success
832
+ * @param {(error: Error) => void} [useQueryOptions.onError] The callback function to be invoked on error
833
+ * @param {number} [useQueryOptions.refetchInterval] The refetch interval
834
+ * @param {boolean | number} [useQueryOptions.retry] The retry count of requests
835
+ * @returns {UseImageReturn} An object with the state of the image
836
+ *
837
+ * @example
838
+ * const { data, isLoading, isError, isSuccess, error, refetch, isRefetching } = useImage('https://example.com/image.png');
839
+ */
840
+ declare const useImage: (src: string, options?: UseImageOptions, useQueryOptions?: Omit<UseQueryOptions<HTMLImageElement, HTMLImageElement>, 'select' | 'initialData' | 'placeholderData'>) => UseQueryReturn<HTMLImageElement>;
841
+
673
842
  type UseIntersectionObserverTarget = RefObject<Element | null> | (() => Element) | Element;
674
843
  interface UseIntersectionObserverOptions extends Omit<IntersectionObserverInit, 'root'> {
675
844
  enabled?: boolean;
@@ -967,6 +1136,38 @@ interface UseMapReturn<Key, Value> {
967
1136
  */
968
1137
  declare const useMap: <Key, Value>(values?: [Key, Value][]) => UseMapReturn<Key, Value>;
969
1138
 
1139
+ /** The use measure target element type */
1140
+ type UseMeasureTarget = RefObject<Element | null> | (() => Element) | Element;
1141
+ /** The use measure return type */
1142
+ type UseMeasureReturn = Pick<DOMRectReadOnly, 'x' | 'y' | 'top' | 'left' | 'right' | 'bottom' | 'height' | 'width'>;
1143
+ type UseMeasureScreen = {
1144
+ <Target extends UseMeasureTarget>(target: Target): UseMeasureReturn;
1145
+ <Target extends UseMeasureTarget>(target?: never): UseMeasureReturn & {
1146
+ ref: RefObject<Target>;
1147
+ };
1148
+ };
1149
+ /**
1150
+ * @name useMeasure
1151
+ * @description - Hook to measure the size and position of an element
1152
+ * @category Browser
1153
+ *
1154
+ * @overload
1155
+ * @template Target The element to measure
1156
+ * @param {Target} [target] The element to measure
1157
+ * @returns {UseMeasureReturn} The element's size and position
1158
+ *
1159
+ * @example
1160
+ * const { x, y, width, height, top, left, bottom, right } = useMeasure(ref);
1161
+ *
1162
+ * @overload
1163
+ * @template Target The element to measure
1164
+ * @returns {UseMeasureReturn & { ref: RefObject<Target> }} The element's size and position
1165
+ *
1166
+ * @example
1167
+ * const { ref, x, y, width, height, top, left, bottom, right } = useMeasure();
1168
+ */
1169
+ declare const useMeasure: UseMeasureScreen;
1170
+
970
1171
  /**
971
1172
  * @name useMediaQuery
972
1173
  * @description - Hook that manages a media query
@@ -1346,47 +1547,6 @@ declare const usePreferredLanguages: () => readonly string[];
1346
1547
  */
1347
1548
  declare const usePrevious: <Value>(value: Value) => Value | undefined;
1348
1549
 
1349
- interface UseQueryOptions<QueryData, Data> {
1350
- keys?: DependencyList;
1351
- onSuccess?: (data: Data) => void;
1352
- onError?: (error: Error) => void;
1353
- select?: (data: QueryData) => Data;
1354
- initialData?: Data | (() => Data);
1355
- placeholderData?: Data | (() => Data);
1356
- retry?: boolean | number;
1357
- refetchInterval?: number;
1358
- }
1359
- interface UseQueryReturn<Data> {
1360
- data?: Data;
1361
- isLoading: boolean;
1362
- isError: boolean;
1363
- isSuccess: boolean;
1364
- error?: Error;
1365
- refetch: () => void;
1366
- isRefetching: boolean;
1367
- }
1368
- /**
1369
- * @name useQuery
1370
- * @description - Hook that defines the logic when query data
1371
- * @category Utilities
1372
- *
1373
- * @template Data The type of the data
1374
- * @param {() => Promise<Data>} callback The callback function to be invoked
1375
- * @param {DependencyList} [options.keys] The dependencies for the hook
1376
- * @param {(data: Data) => void} [options.onSuccess] The callback function to be invoked on success
1377
- * @param {(error: Error) => void} [options.onError] The callback function to be invoked on error
1378
- * @param {UseQueryOptionsSelect<Data>} [options.select] The select function to be invoked
1379
- * @param {Data | (() => Data)} [options.initialData] The initial data for the hook
1380
- * @param {Data | (() => Data)} [options.placeholderData] The placeholder data for the hook
1381
- * @param {number} [options.refetchInterval] The refetch interval
1382
- * @param {boolean | number} [options.retry] The retry count of requests
1383
- * @returns {UseQueryReturn<Data>} An object with the state of the query
1384
- *
1385
- * @example
1386
- * const { data, isLoading, isError, isSuccess, error, refetch, isRefetching } = useQuery(() => fetch('https://example.com/data'));
1387
- */
1388
- declare const useQuery: <QueryData, Data = QueryData>(callback: () => Promise<QueryData>, options?: UseQueryOptions<QueryData, Data>) => UseQueryReturn<Data>;
1389
-
1390
1550
  /** The use queue return type */
1391
1551
  interface UseQueueReturn<Value> {
1392
1552
  /** The current queue */
@@ -1634,6 +1794,64 @@ interface UseStepReturn {
1634
1794
  */
1635
1795
  declare const useStep: (params: number | UseStepParams) => UseStepReturn;
1636
1796
 
1797
+ /** The use stopwatch return type */
1798
+ interface UseStopwatchReturn {
1799
+ /** The paused state of the stopwatch */
1800
+ paused: boolean;
1801
+ /** The over state of the stopwatch */
1802
+ over: boolean;
1803
+ /** The day count of the stopwatch */
1804
+ days: number;
1805
+ /** The hour count of the stopwatch */
1806
+ hours: number;
1807
+ /** The minute count of the stopwatch */
1808
+ minutes: number;
1809
+ /** The second count of the stopwatch */
1810
+ seconds: number;
1811
+ /** The total count of the stopwatch */
1812
+ count: number;
1813
+ /** The function to pause the stopwatch */
1814
+ pause: () => void;
1815
+ /** The function to start the stopwatch */
1816
+ start: () => void;
1817
+ /** The function to reset the stopwatch */
1818
+ reset: () => void;
1819
+ /** The function to toggle the stopwatch */
1820
+ toggle: () => void;
1821
+ }
1822
+ /** The use stopwatch options */
1823
+ interface UseStopwatchOptions {
1824
+ /** The enabled state of the timer */
1825
+ enabled?: boolean;
1826
+ }
1827
+ type UseStopwatch = {
1828
+ (initialTime?: number, options?: UseStopwatchOptions): UseStopwatchReturn;
1829
+ (options?: UseStopwatchOptions & {
1830
+ initialTime?: number;
1831
+ }): UseStopwatchReturn;
1832
+ };
1833
+ /**
1834
+ * @name useStopwatch
1835
+ * @description - Hook that creates a stopwatch functionality
1836
+ *
1837
+ * @overload
1838
+ * @param {number} [initialTime=0] The initial time of the timer
1839
+ * @param {boolean} [options.enabled=true] The enabled state of the timer
1840
+ * @returns {UseStopwatchReturn} An object containing the current time and functions to interact with the timer
1841
+ *
1842
+ * @example
1843
+ * const { seconds, minutes, start, pause, reset } = useStopwatch(1000, { enabled: false });
1844
+ *
1845
+ * @overload
1846
+ * @param {number} [options.initialTime=0] -The initial time of the timer
1847
+ * @param {boolean} [options.enabled=true] The enabled state of the timer
1848
+ * @returns {UseStopwatchReturn} An object containing the current time and functions to interact with the timer
1849
+ *
1850
+ * @example
1851
+ * const { seconds, minutes, start, pause, reset } = useStopwatch({ initialTime: 1000, enabled: false });
1852
+ */
1853
+ declare const useStopwatch: UseStopwatch;
1854
+
1637
1855
  /** The use text selection return type */
1638
1856
  interface UseTextSelectionReturn {
1639
1857
  /** The current selection text */
@@ -1858,4 +2076,4 @@ declare const getDate: (now?: Date) => {
1858
2076
  timestamp: number;
1859
2077
  };
1860
2078
 
1861
- export { debounce, getDate, getRetry, isClient, throttle, useBattery, useBoolean, useBrowserLanguage, useClickOutside, useCopyToClipboard, useCounter, useDebounceCallback, useDebounceValue, useDefault, useDidUpdate, useDisclosure, useDocumentEvent, useDocumentTitle, useDocumentVisibility, useEvent, useEventListener, useEyeDropper, useFavicon, useField, useFps, useFullscreen, useHash, useHotkeys, useHover, useIdle, useIntersectionObserver, useInterval, useIsFirstRender, useIsomorphicLayoutEffect, useKeyPress, useKeyPressEvent, useKeyboard, useKeysPressed, useList, useLocalStorage, useLogger, useLongPress, useMap, useMediaQuery, useMemory, useMount, useMouse, useMutation, useNetwork, useOnline, useOperatingSystem, useOrientation, usePageLeave, usePaint, usePermission, usePreferredColorScheme, usePreferredLanguages, usePrevious, useQuery, useQueue, useRenderCount, useRenderInfo, useRerender, useScript, useSessionStorage, useSet, useShare, useStep, useStorage, useTextSelection, useTime, useTimeout, useToggle, useUnmount, useWebSocket, useWindowEvent, useWindowSize, useWizard };
2079
+ export { debounce, getDate, getRetry, isClient, throttle, useBattery, useBoolean, useBrowserLanguage, useClickOutside, useCopyToClipboard, useCounter, useDebounceCallback, useDebounceValue, useDefault, useDidUpdate, useDisclosure, useDocumentEvent, useDocumentTitle, useDocumentVisibility, useEvent, useEventListener, useEyeDropper, useFavicon, useField, useFileDialog, useFps, useFullscreen, useGeolocation, useHash, useHotkeys, useHover, useIdle, useImage, useIntersectionObserver, useInterval, useIsFirstRender, useIsomorphicLayoutEffect, useKeyPress, useKeyPressEvent, useKeyboard, useKeysPressed, useList, useLocalStorage, useLogger, useLongPress, useMap, useMeasure, useMediaQuery, useMemory, useMount, useMouse, useMutation, useNetwork, useOnline, useOperatingSystem, useOrientation, usePageLeave, usePaint, usePermission, usePreferredColorScheme, usePreferredLanguages, usePrevious, useQuery, useQueue, useRenderCount, useRenderInfo, useRerender, useScript, useSessionStorage, useSet, useShare, useStep, useStopwatch, useStorage, useTextSelection, useTime, useTimeout, useToggle, useUnmount, useWebSocket, useWindowEvent, useWindowSize, useWizard };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siberiacancode/reactuse",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "Ultimate tool",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers-BRE4VASD.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers-q3sUYXUv.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}