@siberiacancode/reactuse 0.0.82 → 0.0.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/dist/cjs/{_rollupPluginBabelHelpers-C1MI8U4n.js → _rollupPluginBabelHelpers-C6yks7ns.js} +2 -2
  2. package/dist/cjs/_rollupPluginBabelHelpers-C6yks7ns.js.map +1 -0
  3. package/dist/cjs/hooks/index.js +2 -2
  4. package/dist/cjs/hooks/useActiveElement/useActiveElement.js +2 -2
  5. package/dist/cjs/hooks/useAsync/useAsync.js +2 -2
  6. package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
  7. package/dist/cjs/hooks/useBluetooth/useBluetooth.js +2 -2
  8. package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
  9. package/dist/cjs/hooks/useBreakpoints/constants/breakpoints.js +1 -1
  10. package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
  11. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  12. package/dist/cjs/hooks/useClickOutside/useClickOutside.js +2 -2
  13. package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
  14. package/dist/cjs/hooks/useConst/useConst.js +1 -1
  15. package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
  16. package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
  17. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  18. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js.map +1 -1
  19. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
  20. package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
  21. package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  22. package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  23. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
  24. package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
  25. package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  26. package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  27. package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  28. package/dist/cjs/hooks/useElementSize/useElementSize.js +2 -2
  29. package/dist/cjs/hooks/useElementSize/useElementSize.js.map +1 -1
  30. package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
  31. package/dist/cjs/hooks/useEventListener/useEventListener.js +2 -2
  32. package/dist/cjs/hooks/useEventListener/useEventListener.js.map +1 -1
  33. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
  34. package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
  35. package/dist/cjs/hooks/useField/useField.js +2 -2
  36. package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
  37. package/dist/cjs/hooks/useFocus/useFocus.js +2 -2
  38. package/dist/cjs/hooks/useFps/useFps.js +2 -2
  39. package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
  40. package/dist/cjs/hooks/useFullscreen/useFullscreen.js.map +1 -1
  41. package/dist/cjs/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +1 -1
  42. package/dist/cjs/hooks/useGamepad/useGamepad.js +2 -2
  43. package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
  44. package/dist/cjs/hooks/useHash/useHash.js +2 -2
  45. package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
  46. package/dist/cjs/hooks/useHover/useHover.js +2 -2
  47. package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
  48. package/dist/cjs/hooks/useImage/useImage.js +2 -2
  49. package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  50. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  51. package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
  52. package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  53. package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  54. package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
  55. package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  56. package/dist/cjs/hooks/useKeyboard/useKeyboard.js +2 -2
  57. package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
  58. package/dist/cjs/hooks/useLastChanged/useLastChanged.js +2 -2
  59. package/dist/cjs/hooks/useLatest/useLatest.js +1 -1
  60. package/dist/cjs/hooks/useList/useList.js +2 -2
  61. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
  62. package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
  63. package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
  64. package/dist/cjs/hooks/useMap/useMap.js +2 -2
  65. package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
  66. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
  67. package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
  68. package/dist/cjs/hooks/useMount/useMount.js +1 -1
  69. package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
  70. package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
  71. package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
  72. package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
  73. package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  74. package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
  75. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
  76. package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
  77. package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
  78. package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
  79. package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
  80. package/dist/cjs/hooks/usePaint/helpers/Paint.js +2 -2
  81. package/dist/cjs/hooks/usePaint/helpers/Pointer.js +2 -2
  82. package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
  83. package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
  84. package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
  85. package/dist/cjs/hooks/usePointerLock/usePointerLock.js +2 -2
  86. package/dist/cjs/hooks/usePointerLock/usePointerLock.js.map +1 -1
  87. package/dist/cjs/hooks/usePostMessage/usePostMessage.js +1 -1
  88. package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  89. package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  90. package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
  91. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  92. package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  93. package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
  94. package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
  95. package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
  96. package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
  97. package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
  98. package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
  99. package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
  100. package/dist/cjs/hooks/useRerender/useRerender.js +2 -2
  101. package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js +2 -2
  102. package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  103. package/dist/cjs/hooks/useScript/useScript.js +2 -2
  104. package/dist/cjs/hooks/useScroll/useScroll.js +2 -2
  105. package/dist/cjs/hooks/useScrollTo/useScrollTo.js +2 -2
  106. package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
  107. package/dist/cjs/hooks/useSet/useSet.js +2 -2
  108. package/dist/cjs/hooks/useShare/useShare.js +2 -2
  109. package/dist/cjs/hooks/useStep/useStep.js +2 -2
  110. package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
  111. package/dist/cjs/hooks/useStopwatch/useStopwatch.js.map +1 -1
  112. package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
  113. package/dist/cjs/hooks/useTextDirection/useTextDirection.js +2 -2
  114. package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
  115. package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js +3 -0
  116. package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js.map +1 -0
  117. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js +3 -0
  118. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js.map +1 -0
  119. package/dist/cjs/hooks/useTime/useTime.js +2 -2
  120. package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
  121. package/dist/cjs/hooks/useTimer/useTimer.js +2 -2
  122. package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
  123. package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
  124. package/dist/cjs/hooks/useVibrate/useVibrate.js +2 -2
  125. package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
  126. package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +2 -2
  127. package/dist/cjs/hooks/useWindowFocus/useWindowFocus.js +2 -2
  128. package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
  129. package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
  130. package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
  131. package/dist/cjs/index.js +2 -2
  132. package/dist/cjs/utils/helpers/debounce.js +1 -1
  133. package/dist/cjs/utils/helpers/getElement.js +1 -1
  134. package/dist/cjs/utils/helpers/getRetry.js +1 -1
  135. package/dist/cjs/utils/helpers/index.js +1 -1
  136. package/dist/cjs/utils/helpers/isClient.js +1 -1
  137. package/dist/cjs/utils/helpers/isTarget.js +1 -1
  138. package/dist/cjs/utils/helpers/throttle.js +1 -1
  139. package/dist/cjs/utils/helpers/time/getDate.js +1 -1
  140. package/dist/esm/{_rollupPluginBabelHelpers-BE1aVqiF.js → _rollupPluginBabelHelpers-Dugjabfg.js} +2 -2
  141. package/dist/esm/_rollupPluginBabelHelpers-Dugjabfg.js.map +1 -0
  142. package/dist/esm/hooks/index.js +2 -2
  143. package/dist/esm/hooks/useActiveElement/useActiveElement.js +2 -2
  144. package/dist/esm/hooks/useAsync/useAsync.js +2 -2
  145. package/dist/esm/hooks/useBattery/useBattery.js +2 -2
  146. package/dist/esm/hooks/useBluetooth/useBluetooth.js +2 -2
  147. package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
  148. package/dist/esm/hooks/useBreakpoints/constants/breakpoints.js +1 -1
  149. package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
  150. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  151. package/dist/esm/hooks/useClickOutside/useClickOutside.js +2 -2
  152. package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
  153. package/dist/esm/hooks/useConst/useConst.js +1 -1
  154. package/dist/esm/hooks/useCounter/useCounter.js +2 -2
  155. package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
  156. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  157. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js.map +1 -1
  158. package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
  159. package/dist/esm/hooks/useDefault/useDefault.js +2 -2
  160. package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  161. package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  162. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
  163. package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
  164. package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  165. package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  166. package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  167. package/dist/esm/hooks/useElementSize/useElementSize.js +2 -2
  168. package/dist/esm/hooks/useElementSize/useElementSize.js.map +1 -1
  169. package/dist/esm/hooks/useEvent/useEvent.js +1 -1
  170. package/dist/esm/hooks/useEventListener/useEventListener.js +2 -2
  171. package/dist/esm/hooks/useEventListener/useEventListener.js.map +1 -1
  172. package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
  173. package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
  174. package/dist/esm/hooks/useField/useField.js +2 -2
  175. package/dist/esm/hooks/useFileDialog/useFileDialog.js +2 -2
  176. package/dist/esm/hooks/useFocus/useFocus.js +2 -2
  177. package/dist/esm/hooks/useFps/useFps.js +2 -2
  178. package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
  179. package/dist/esm/hooks/useFullscreen/useFullscreen.js.map +1 -1
  180. package/dist/esm/hooks/useGamepad/helpers/mapGamepadToXbox360Controller.js +1 -1
  181. package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
  182. package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
  183. package/dist/esm/hooks/useHash/useHash.js +2 -2
  184. package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
  185. package/dist/esm/hooks/useHover/useHover.js +2 -2
  186. package/dist/esm/hooks/useIdle/useIdle.js +2 -2
  187. package/dist/esm/hooks/useImage/useImage.js +2 -2
  188. package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  189. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  190. package/dist/esm/hooks/useInterval/useInterval.js +2 -2
  191. package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  192. package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  193. package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
  194. package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  195. package/dist/esm/hooks/useKeyboard/useKeyboard.js +2 -2
  196. package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
  197. package/dist/esm/hooks/useLastChanged/useLastChanged.js +2 -2
  198. package/dist/esm/hooks/useLatest/useLatest.js +1 -1
  199. package/dist/esm/hooks/useList/useList.js +2 -2
  200. package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
  201. package/dist/esm/hooks/useLogger/useLogger.js +2 -2
  202. package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
  203. package/dist/esm/hooks/useMap/useMap.js +2 -2
  204. package/dist/esm/hooks/useMeasure/useMeasure.js +2 -2
  205. package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
  206. package/dist/esm/hooks/useMemory/useMemory.js +2 -2
  207. package/dist/esm/hooks/useMount/useMount.js +1 -1
  208. package/dist/esm/hooks/useMouse/useMouse.js +2 -2
  209. package/dist/esm/hooks/useMutation/useMutation.js +2 -2
  210. package/dist/esm/hooks/useMutationObserver/useMutationObserver.js +2 -2
  211. package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
  212. package/dist/esm/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  213. package/dist/esm/hooks/useOnline/useOnline.js +1 -1
  214. package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
  215. package/dist/esm/hooks/useOptimistic/useOptimistic.js +2 -2
  216. package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
  217. package/dist/esm/hooks/useOtpCredential/useOtpCredential.js +2 -2
  218. package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
  219. package/dist/esm/hooks/usePaint/helpers/Paint.js +2 -2
  220. package/dist/esm/hooks/usePaint/helpers/Pointer.js +2 -2
  221. package/dist/esm/hooks/usePaint/usePaint.js +2 -2
  222. package/dist/esm/hooks/useParallax/useParallax.js +2 -2
  223. package/dist/esm/hooks/usePermission/usePermission.js +2 -2
  224. package/dist/esm/hooks/usePointerLock/usePointerLock.js +2 -2
  225. package/dist/esm/hooks/usePointerLock/usePointerLock.js.map +1 -1
  226. package/dist/esm/hooks/usePostMessage/usePostMessage.js +1 -1
  227. package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  228. package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  229. package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
  230. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  231. package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  232. package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
  233. package/dist/esm/hooks/useQuery/useQuery.js +2 -2
  234. package/dist/esm/hooks/useQueue/useQueue.js +2 -2
  235. package/dist/esm/hooks/useRaf/useRaf.js +2 -2
  236. package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
  237. package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
  238. package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
  239. package/dist/esm/hooks/useRerender/useRerender.js +2 -2
  240. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
  241. package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  242. package/dist/esm/hooks/useScript/useScript.js +2 -2
  243. package/dist/esm/hooks/useScroll/useScroll.js +2 -2
  244. package/dist/esm/hooks/useScrollTo/useScrollTo.js +2 -2
  245. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
  246. package/dist/esm/hooks/useSet/useSet.js +2 -2
  247. package/dist/esm/hooks/useShare/useShare.js +2 -2
  248. package/dist/esm/hooks/useStep/useStep.js +2 -2
  249. package/dist/esm/hooks/useStopwatch/useStopwatch.js +2 -2
  250. package/dist/esm/hooks/useStopwatch/useStopwatch.js.map +1 -1
  251. package/dist/esm/hooks/useStorage/useStorage.js +2 -2
  252. package/dist/esm/hooks/useTextDirection/useTextDirection.js +2 -2
  253. package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
  254. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js +3 -0
  255. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js.map +1 -0
  256. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js +3 -0
  257. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js.map +1 -0
  258. package/dist/esm/hooks/useTime/useTime.js +2 -2
  259. package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
  260. package/dist/esm/hooks/useTimer/useTimer.js +2 -2
  261. package/dist/esm/hooks/useToggle/useToggle.js +2 -2
  262. package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
  263. package/dist/esm/hooks/useVibrate/useVibrate.js +2 -2
  264. package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
  265. package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +2 -2
  266. package/dist/esm/hooks/useWindowFocus/useWindowFocus.js +2 -2
  267. package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
  268. package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
  269. package/dist/esm/hooks/useWizard/useWizard.js +2 -2
  270. package/dist/esm/index.js +2 -2
  271. package/dist/esm/utils/helpers/debounce.js +1 -1
  272. package/dist/esm/utils/helpers/getElement.js +1 -1
  273. package/dist/esm/utils/helpers/getRetry.js +1 -1
  274. package/dist/esm/utils/helpers/index.js +1 -1
  275. package/dist/esm/utils/helpers/isClient.js +1 -1
  276. package/dist/esm/utils/helpers/isTarget.js +1 -1
  277. package/dist/esm/utils/helpers/throttle.js +1 -1
  278. package/dist/esm/utils/helpers/time/getDate.js +1 -1
  279. package/dist/types/index.d.ts +36 -6
  280. package/package.json +114 -114
  281. package/dist/cjs/_rollupPluginBabelHelpers-C1MI8U4n.js.map +0 -1
  282. package/dist/cjs/index-Dri6vcf4.js +0 -3
  283. package/dist/cjs/index-Dri6vcf4.js.map +0 -1
  284. package/dist/esm/_rollupPluginBabelHelpers-BE1aVqiF.js.map +0 -1
  285. package/dist/esm/index-Cg_YGXPU.js +0 -3
  286. package/dist/esm/index-Cg_YGXPU.js.map +0 -1
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.82 */
1
+ /* @license @siberiacancode/reactuse v0.0.83 */
2
2
  var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=e.getSeconds(),n=e.getMinutes(),r=e.getHours();return{seconds:t,minutes:n,hours:r,meridiemHours:{value:r%12==0?12:r%12,type:r>=12?"pm":"am"},day:e.getDate(),month:e.getMonth()+1,year:e.getFullYear(),timestamp:e.getTime()}};export{e as getDate};
3
3
  //# sourceMappingURL=getDate.js.map
@@ -446,7 +446,7 @@ declare const useCssVar: UseCssVar;
446
446
  * @returns {(...args: Params) => Return} The callback with debounce
447
447
  *
448
448
  * @example
449
- * const debounced = useDebounceCallback(() => console.log('callback'), 500);
449
+ * const debouncedCallback = useDebounceCallback(() => console.log('callback'), 500);
450
450
  */
451
451
  declare const useDebounceCallback: <Params extends unknown[], Return>(callback: (...args: Params) => Return, delay: number) => (...args: Params) => void;
452
452
 
@@ -2487,11 +2487,11 @@ declare const usePermission: (permissionDescriptorName: UsePermissionName, optio
2487
2487
  query: () => Promise<PermissionState>;
2488
2488
  };
2489
2489
 
2490
- type UsePointerLockTarget = RefObject<Element | null | undefined>;
2490
+ /** The use pointer lock return type */
2491
2491
  interface UsePointerLockReturn {
2492
2492
  element?: Element;
2493
2493
  supported: boolean;
2494
- lock: (event: Event | MouseEvent$1<Element>) => void;
2494
+ lock: (event: MouseEvent$1) => void;
2495
2495
  unlock: () => boolean;
2496
2496
  }
2497
2497
  /**
@@ -2499,13 +2499,12 @@ interface UsePointerLockReturn {
2499
2499
  * @description - Hook that provides reactive pointer lock
2500
2500
  * @category Sensors
2501
2501
  *
2502
- * @param {UsePointerLockTarget} target The target element for the pointer lock
2503
2502
  * @returns {UsePointerLockReturn} An object containing the pointer lock element and functions to interact with the pointer lock
2504
2503
  *
2505
2504
  * @example
2506
2505
  * const { supported, lock, unlock, element } = usePointerLock();
2507
2506
  */
2508
- declare const usePointerLock: (target?: UsePointerLockTarget) => UsePointerLockReturn;
2507
+ declare const usePointerLock: () => UsePointerLockReturn;
2509
2508
 
2510
2509
  type UsePostMessageReturn<Message> = (message: Message) => void;
2511
2510
  /**
@@ -3249,6 +3248,37 @@ interface UseTextSelectionReturn {
3249
3248
  */
3250
3249
  declare const useTextSelection: () => UseTextSelectionReturn;
3251
3250
 
3251
+ /**
3252
+ * @name useThrottleCallback
3253
+ * @description - Hook that creates a throttled callback and returns a stable reference of it
3254
+ * @category Utilities
3255
+ *
3256
+ * @template Params The type of the params
3257
+ * @template Return The type of the return
3258
+ * @param {(...args: Params) => Return} callback The callback function
3259
+ * @param {number} delay The delay in milliseconds
3260
+ * @returns {(...args: Params) => Return} The callback with throttle
3261
+ *
3262
+ * @example
3263
+ * const throttled = useThrottleCallback(() => console.log('callback'), 500);
3264
+ */
3265
+ declare const useThrottleCallback: <Params extends unknown[], Return>(callback: (...args: Params) => Return, delay: number) => (...args: Params) => void;
3266
+
3267
+ /**
3268
+ * @name useThrottleValue
3269
+ * @description - Hook that creates a throttled value and returns a stable reference of it
3270
+ * @category Utilities
3271
+ *
3272
+ * @template Value The type of the value
3273
+ * @param {Value} value The value to be throttled
3274
+ * @param {number} delay The delay in milliseconds
3275
+ * @returns {Value} The throttled value
3276
+ *
3277
+ * @example
3278
+ * const throttledValue = useThrottleValue(value, 500);
3279
+ */
3280
+ declare const useThrottleValue: <Value>(value: Value, delay: number) => Value;
3281
+
3252
3282
  interface UseTimeReturn {
3253
3283
  day: number;
3254
3284
  hours: number;
@@ -3596,4 +3626,4 @@ declare const getDate: (now?: Date) => {
3596
3626
  timestamp: number;
3597
3627
  };
3598
3628
 
3599
- export { BREAKPOINTS_ANT_DESIGN, BREAKPOINTS_BOOTSTRAP_V5, BREAKPOINTS_MANTINE, BREAKPOINTS_MASTER_CSS, BREAKPOINTS_MATERIAL_UI, BREAKPOINTS_PRIME_FLEX, BREAKPOINTS_QUASAR_V2, BREAKPOINTS_SEMANTIC, BREAKPOINTS_TAILWIND, type BatteryManager, type Breakpoints, type ColorSelectionOptions, type ColorSelectionResult, type Connection, type ConnectionEffectiveType, type ConnectionType, type EyeDropper, type EyeDropperConstructor, type GetElementTarget, type LongPressReactEvents, type OperatingSystem, type OrientationLockType, type RequestOptions, SCRIPT_STATUS_ATTRIBUTE_NAME, type ScrollPosition, type UseAsyncReturn, type UseBatteryStateReturn, type UseBatteryValue, type UseBluetoothOptions, type UseBluetoothReturn, type UseBooleanReturn, type UseBreakpointsReturn, type UseBreakpointsStrategy, type UseClickOutside, type UseClickOutsideTarget, type UseCopyToClipboardParams, type UseCopyToClipboardReturn, type UseCounter, type UseCounterOptions, type UseCounterReturn, type UseCssVar, type UseCssVarReturn, type UseCssVarTarget, type UseDeviceMotionParams, type UseDeviceMotionReturn, type UseDeviceOrientationReturn, type UseDeviceOrientationValue, type UseDisclosureOptions, type UseDisclosureReturn, type UseDocumentTitleOptions, type UseDocumentTitleReturn, type UseElementSize, type UseElementSizeReturn, type UseElementSizeTarget, type UseElementSizeValue, type UseEventListener, type UseEventListenerOptions, type UseEventListenerReturn, type UseEventListenerTarget, type UseEyeDropperReturn, type UseFaviconReturn, type UseFieldParams, type UseFieldRegisterParams, type UseFieldReturn, type UseFileDialog, type UseFileDialogOptions, type UseFileDialogReturn, type UseFocus, type UseFocusOptions, type UseFocusReturn, type UseFocusTarget, type UseFullScreen, type UseFullScreenOptions, type UseFullScreenReturn, type UseFullScreenTarget, type UseGamepadStateReturn, type UseGeolocationParams, type UseGeolocationReturn, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHover, type UseHoverOptions, type UseHoverTarget, type UseIdleOptions, type UseIdleReturn, type UseImageOptions, type UseImageReturn, type UseInfiniteScroll, type UseInfiniteScrollOptions, type UseInfiniteScrollTarget, type UseIntersectionObserver, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseIntersectionObserverTarget, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPressEvent, type UseKeyPressEventKey, type UseKeyPressKey, type UseKeyPressOptions, type UseKeyboardParams, type UseKeysPressedParams, type UseLastChangedOptions, type UseListReturn, type UseLongPressBind, type UseLongPressOptions, type UseLongPressReturn, type UseLongPressTarget, type UseMapReturn, type UseMeasureReturn, type UseMeasureScreen, type UseMeasureTarget, type UseMemoryReturn, type UseMouse, type UseMouseReturn, type UseMouseTarget, type UseMutationObserver, type UseMutationObserverOptions, type UseMutationObserverReturn, type UseMutationObserverTarget, type UseNetworkReturn, type UseOffsetPaginationOptions, type UseOffsetPaginationReturn, type UseOptimisticReturn, type UseOrientationReturn, type UseOtpCredential, type UseOtpCredentialCallback, type UseOtpCredentialParams, type UseOtpCredentialReturn, type UsePaint, type UsePaintOptions, type UsePaintReturn, type UsePaintTarget, type UseParallax, type UseParallaxOptions, type UseParallaxValue, type UsePermissionName, type UsePermissionOptions, type UsePermissionReturn, type UsePostMessageReturn, type UsePreferredColorSchemeReturn, type UsePreferredContrastReturn, type UsePreferredReducedMotionReturn, type UsePreviousOptions, type UseQueryOptions, type UseQueryReturn, type UseQueueReturn, type UseRafCallback, type UseRafOptions, type UseRafParams, type UseRafReturn, type UseRafValueReturn, type UseRenderInfoReturn, type UseResizeObserver, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseResizeObserverTarget, type UseScreenOrientationValue, type UseScriptOptions, type UseScriptStatus, type UseScroll, type UseScrollCallbackParams, type UseScrollOptions, type UseScrollTarget, type UseScrollTo, type UseScrollToOptions, type UseScrollToReturn, type UseScrollToTarget, type UseShareParams, type UseShareReturn, type UseStopwatchOptions, type UseStopwatchReturn, type UseStorageInitialValue, type UseStorageOptions, type UseStorageReturn, type UseTextDirection, type UseTextDirectionReturn, type UseTextDirectionTarget, type UseTextDirectionValue, type UseTextSelectionReturn, type UseTimeReturn, type UseTimer, type UseTimerOptions, type UseTimerReturn, type UseToggleReturn, type UseVibratePattern, type UseVibrateReturn, type UseWebSocketOptions, type UseWebSocketReturn, type UseWebSocketStatus, type UseWebSocketUrl, type UseWindowSizeReturn, type WizardItem, debounce, dispatchStorageEvent, getConnection, getDate, getElement, getOperatingSystem, getRangesSelection, getRetry, getTimeFromSeconds, isClient, isHotkeyMatch, isPermissionAllowed, isTarget, legacyCopyToClipboard, mapGamepadToXbox360Controller, scrollTo, throttle, useActiveElement, useAsync, useBattery, useBluetooth, useBoolean, useBreakpoints, useBrowserLanguage, useClickOutside, useClipboard, useConst, useCounter, useCssVar, useDebounceCallback, useDebounceValue, useDefault, useDeviceMotion, useDeviceOrientation, useDidUpdate, useDisclosure, useDocumentEvent, useDocumentTitle, useDocumentVisibility, useElementSize, useEvent, useEventListener, useEyeDropper, useFavicon, useField, useFileDialog, useFocus, useFps, useFullscreen, useGamepad, useGeolocation, useHash, useHotkeys, useHover, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useInterval, useIsFirstRender, useIsomorphicLayoutEffect, useKeyPress, useKeyPressEvent, useKeyboard, useKeysPressed, useLastChanged, useLatest, useList, useLocalStorage, useLogger, useLongPress, useMap, useMeasure, useMediaQuery, useMemory, useMount, useMouse, useMutation, useMutationObserver, useNetwork, useOffsetPagination, useOnline, useOperatingSystem, useOptimistic, useOrientation, useOtpCredential, usePageLeave, usePaint, useParallax, usePermission, usePointerLock, usePostMessage, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useQuery, useQueue, useRaf, useRafValue, useRenderCount, useRenderInfo, useRerender, useResizeObserver, useScreenOrientation, type useScreenOrientationReturn, useScript, useScroll, useScrollTo, useSessionStorage, useSet, useShare, useStep, useStopwatch, useStorage, useTextDirection, useTextSelection, useTime, useTimeout, useTimer, useToggle, useUnmount, useVibrate, useWebSocket, useWindowEvent, useWindowFocus, useWindowScroll, useWindowSize, useWizard };
3629
+ export { BREAKPOINTS_ANT_DESIGN, BREAKPOINTS_BOOTSTRAP_V5, BREAKPOINTS_MANTINE, BREAKPOINTS_MASTER_CSS, BREAKPOINTS_MATERIAL_UI, BREAKPOINTS_PRIME_FLEX, BREAKPOINTS_QUASAR_V2, BREAKPOINTS_SEMANTIC, BREAKPOINTS_TAILWIND, type BatteryManager, type Breakpoints, type ColorSelectionOptions, type ColorSelectionResult, type Connection, type ConnectionEffectiveType, type ConnectionType, type EyeDropper, type EyeDropperConstructor, type GetElementTarget, type LongPressReactEvents, type OperatingSystem, type OrientationLockType, type RequestOptions, SCRIPT_STATUS_ATTRIBUTE_NAME, type ScrollPosition, type UseAsyncReturn, type UseBatteryStateReturn, type UseBatteryValue, type UseBluetoothOptions, type UseBluetoothReturn, type UseBooleanReturn, type UseBreakpointsReturn, type UseBreakpointsStrategy, type UseClickOutside, type UseClickOutsideTarget, type UseCopyToClipboardParams, type UseCopyToClipboardReturn, type UseCounter, type UseCounterOptions, type UseCounterReturn, type UseCssVar, type UseCssVarReturn, type UseCssVarTarget, type UseDeviceMotionParams, type UseDeviceMotionReturn, type UseDeviceOrientationReturn, type UseDeviceOrientationValue, type UseDisclosureOptions, type UseDisclosureReturn, type UseDocumentTitleOptions, type UseDocumentTitleReturn, type UseElementSize, type UseElementSizeReturn, type UseElementSizeTarget, type UseElementSizeValue, type UseEventListener, type UseEventListenerOptions, type UseEventListenerReturn, type UseEventListenerTarget, type UseEyeDropperReturn, type UseFaviconReturn, type UseFieldParams, type UseFieldRegisterParams, type UseFieldReturn, type UseFileDialog, type UseFileDialogOptions, type UseFileDialogReturn, type UseFocus, type UseFocusOptions, type UseFocusReturn, type UseFocusTarget, type UseFullScreen, type UseFullScreenOptions, type UseFullScreenReturn, type UseFullScreenTarget, type UseGamepadStateReturn, type UseGeolocationParams, type UseGeolocationReturn, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHover, type UseHoverOptions, type UseHoverTarget, type UseIdleOptions, type UseIdleReturn, type UseImageOptions, type UseImageReturn, type UseInfiniteScroll, type UseInfiniteScrollOptions, type UseInfiniteScrollTarget, type UseIntersectionObserver, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseIntersectionObserverTarget, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPressEvent, type UseKeyPressEventKey, type UseKeyPressKey, type UseKeyPressOptions, type UseKeyboardParams, type UseKeysPressedParams, type UseLastChangedOptions, type UseListReturn, type UseLongPressBind, type UseLongPressOptions, type UseLongPressReturn, type UseLongPressTarget, type UseMapReturn, type UseMeasureReturn, type UseMeasureScreen, type UseMeasureTarget, type UseMemoryReturn, type UseMouse, type UseMouseReturn, type UseMouseTarget, type UseMutationObserver, type UseMutationObserverOptions, type UseMutationObserverReturn, type UseMutationObserverTarget, type UseNetworkReturn, type UseOffsetPaginationOptions, type UseOffsetPaginationReturn, type UseOptimisticReturn, type UseOrientationReturn, type UseOtpCredential, type UseOtpCredentialCallback, type UseOtpCredentialParams, type UseOtpCredentialReturn, type UsePaint, type UsePaintOptions, type UsePaintReturn, type UsePaintTarget, type UseParallax, type UseParallaxOptions, type UseParallaxValue, type UsePermissionName, type UsePermissionOptions, type UsePermissionReturn, type UsePostMessageReturn, type UsePreferredColorSchemeReturn, type UsePreferredContrastReturn, type UsePreferredReducedMotionReturn, type UsePreviousOptions, type UseQueryOptions, type UseQueryReturn, type UseQueueReturn, type UseRafCallback, type UseRafOptions, type UseRafParams, type UseRafReturn, type UseRafValueReturn, type UseRenderInfoReturn, type UseResizeObserver, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseResizeObserverTarget, type UseScreenOrientationValue, type UseScriptOptions, type UseScriptStatus, type UseScroll, type UseScrollCallbackParams, type UseScrollOptions, type UseScrollTarget, type UseScrollTo, type UseScrollToOptions, type UseScrollToReturn, type UseScrollToTarget, type UseShareParams, type UseShareReturn, type UseStopwatchOptions, type UseStopwatchReturn, type UseStorageInitialValue, type UseStorageOptions, type UseStorageReturn, type UseTextDirection, type UseTextDirectionReturn, type UseTextDirectionTarget, type UseTextDirectionValue, type UseTextSelectionReturn, type UseTimeReturn, type UseTimer, type UseTimerOptions, type UseTimerReturn, type UseToggleReturn, type UseVibratePattern, type UseVibrateReturn, type UseWebSocketOptions, type UseWebSocketReturn, type UseWebSocketStatus, type UseWebSocketUrl, type UseWindowSizeReturn, type WizardItem, debounce, dispatchStorageEvent, getConnection, getDate, getElement, getOperatingSystem, getRangesSelection, getRetry, getTimeFromSeconds, isClient, isHotkeyMatch, isPermissionAllowed, isTarget, legacyCopyToClipboard, mapGamepadToXbox360Controller, scrollTo, throttle, useActiveElement, useAsync, useBattery, useBluetooth, useBoolean, useBreakpoints, useBrowserLanguage, useClickOutside, useClipboard, useConst, useCounter, useCssVar, useDebounceCallback, useDebounceValue, useDefault, useDeviceMotion, useDeviceOrientation, useDidUpdate, useDisclosure, useDocumentEvent, useDocumentTitle, useDocumentVisibility, useElementSize, useEvent, useEventListener, useEyeDropper, useFavicon, useField, useFileDialog, useFocus, useFps, useFullscreen, useGamepad, useGeolocation, useHash, useHotkeys, useHover, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useInterval, useIsFirstRender, useIsomorphicLayoutEffect, useKeyPress, useKeyPressEvent, useKeyboard, useKeysPressed, useLastChanged, useLatest, useList, useLocalStorage, useLogger, useLongPress, useMap, useMeasure, useMediaQuery, useMemory, useMount, useMouse, useMutation, useMutationObserver, useNetwork, useOffsetPagination, useOnline, useOperatingSystem, useOptimistic, useOrientation, useOtpCredential, usePageLeave, usePaint, useParallax, usePermission, usePointerLock, usePostMessage, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useQuery, useQueue, useRaf, useRafValue, useRenderCount, useRenderInfo, useRerender, useResizeObserver, useScreenOrientation, type useScreenOrientationReturn, useScript, useScroll, useScrollTo, useSessionStorage, useSet, useShare, useStep, useStopwatch, useStorage, useTextDirection, useTextSelection, useThrottleCallback, useThrottleValue, useTime, useTimeout, useTimer, useToggle, useUnmount, useVibrate, useWebSocket, useWindowEvent, useWindowFocus, useWindowScroll, useWindowSize, useWizard };
package/package.json CHANGED
@@ -1,114 +1,114 @@
1
- {
2
- "name": "@siberiacancode/reactuse",
3
- "version": "0.0.82",
4
- "description": "Ultimate tool",
5
- "author": {
6
- "name": "SIBERIA CAN CODE 🧊",
7
- "url": "https://github.com/siberiacancode"
8
- },
9
- "contributors": [
10
- {
11
- "name": "Dmitry Babin",
12
- "url": "https://github.com/debabin"
13
- }
14
- ],
15
- "license": "MIT",
16
- "homepage": "https://siberiacancode.github.io/reactuse/",
17
- "repository": {
18
- "type": "git",
19
- "url": "https://github.com/siberiacancode/reactuse.git"
20
- },
21
- "bugs": "https://github.com/siberiacancode/reactuse/issues",
22
- "keywords": [
23
- "react",
24
- "react hooks",
25
- "react use",
26
- "use",
27
- "hooks"
28
- ],
29
- "sideEffects": false,
30
- "exports": {
31
- "types": "./dist/types/index.d.ts",
32
- "import": "./dist/esm/index.js",
33
- "require": "./dist/cjs/index.cjs"
34
- },
35
- "main": "dist/cjs/index.js",
36
- "module": "dist/esm/index.js",
37
- "types": "dist/types/index.d.ts",
38
- "files": [
39
- "dist"
40
- ],
41
- "engines": {
42
- "node": ">=14"
43
- },
44
- "publishConfig": {
45
- "access": "public"
46
- },
47
- "scripts": {
48
- "prepublishOnly": "yarn type && yarn unit-test run && yarn build",
49
- "build": "shx rm -rf dist && rollup -c --bundleConfigAsCjs",
50
- "lint": "eslint . --fix",
51
- "type": "tsc --noEmit",
52
- "format": "prettier --write .",
53
- "pretty": "yarn type && yarn lint && yarn format",
54
- "prepare": "husky",
55
- "unit-test": "vitest",
56
- "docs:dev": "vitepress dev docs",
57
- "docs:build": "vitepress build docs",
58
- "docs:preview": "vitepress preview docs"
59
- },
60
- "peerDependencies": {
61
- "@types/react": "^18.0.0",
62
- "react": "^17.0.2 || ^18.0.0",
63
- "react-dom": "^17.0.2 || ^18.0.0"
64
- },
65
- "peerDependenciesMeta": {
66
- "@types/react": {
67
- "optional": true
68
- }
69
- },
70
- "dependencies": {
71
- "screenfull": "^6.0.2"
72
- },
73
- "devDependencies": {
74
- "@siberiacancode/builder": "^1.3.17",
75
- "@siberiacancode/eslint": "^2.8.0",
76
- "@siberiacancode/prettier": "^1.2.0",
77
- "@siberiacancode/vitest": "^1.2.4",
78
- "@tailwindcss/postcss": "^4.0.4",
79
- "@testing-library/dom": "^10.4.0",
80
- "@testing-library/react": "^16.2.0",
81
- "@types/doctrine": "^0.0.9",
82
- "@types/node": "^22.13.1",
83
- "@types/react": "^18.3.12",
84
- "@types/react-dom": "^18.3.2",
85
- "@types/web-bluetooth": "^0.0.20",
86
- "clsx": "^2.1.1",
87
- "comment-parser": "^1.4.1",
88
- "core-js": "^3.40.0",
89
- "doctrine": "^3.0.0",
90
- "husky": "^9.1.7",
91
- "lint-staged": "^15.4.3",
92
- "markdown-table": "^3.0.4",
93
- "postcss": "^8.5.1",
94
- "prettier-plugin-tailwindcss": "^0.6.11",
95
- "react": "^18.3.1",
96
- "react-dom": "^18.3.1",
97
- "shx": "^0.3.4",
98
- "tailwind-merge": "^3.0.1",
99
- "tailwindcss": "^4.0.4",
100
- "typescript": "^5.7.3",
101
- "vite": "^6.0.11",
102
- "vitepress": "^1.6.3"
103
- },
104
- "lint-staged": {
105
- "*.js": [
106
- "eslint --fix",
107
- "prettier --write"
108
- ],
109
- "*.ts": [
110
- "eslint --fix",
111
- "prettier --write"
112
- ]
113
- }
114
- }
1
+ {
2
+ "name": "@siberiacancode/reactuse",
3
+ "version": "0.0.83",
4
+ "description": "Ultimate tool",
5
+ "author": {
6
+ "name": "SIBERIA CAN CODE 🧊",
7
+ "url": "https://github.com/siberiacancode"
8
+ },
9
+ "contributors": [
10
+ {
11
+ "name": "Dmitry Babin",
12
+ "url": "https://github.com/debabin"
13
+ }
14
+ ],
15
+ "license": "MIT",
16
+ "homepage": "https://siberiacancode.github.io/reactuse/",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/siberiacancode/reactuse.git"
20
+ },
21
+ "bugs": "https://github.com/siberiacancode/reactuse/issues",
22
+ "keywords": [
23
+ "react",
24
+ "react hooks",
25
+ "react use",
26
+ "use",
27
+ "hooks"
28
+ ],
29
+ "sideEffects": false,
30
+ "exports": {
31
+ "types": "./dist/types/index.d.ts",
32
+ "import": "./dist/esm/index.js",
33
+ "require": "./dist/cjs/index.cjs"
34
+ },
35
+ "main": "dist/cjs/index.js",
36
+ "module": "dist/esm/index.js",
37
+ "types": "dist/types/index.d.ts",
38
+ "files": [
39
+ "dist"
40
+ ],
41
+ "engines": {
42
+ "node": ">=14"
43
+ },
44
+ "publishConfig": {
45
+ "access": "public"
46
+ },
47
+ "scripts": {
48
+ "prepublishOnly": "yarn type && yarn unit-test run && yarn build",
49
+ "build": "shx rm -rf dist && rollup -c --bundleConfigAsCjs",
50
+ "lint": "eslint . --fix",
51
+ "type": "tsc --noEmit",
52
+ "format": "prettier --write .",
53
+ "pretty": "yarn type && yarn lint && yarn format",
54
+ "prepare": "husky",
55
+ "unit-test": "vitest",
56
+ "docs:dev": "vitepress dev docs",
57
+ "docs:build": "vitepress build docs",
58
+ "docs:preview": "vitepress preview docs"
59
+ },
60
+ "peerDependencies": {
61
+ "@types/react": "^18.0.0",
62
+ "react": "^17.0.2 || ^18.0.0",
63
+ "react-dom": "^17.0.2 || ^18.0.0"
64
+ },
65
+ "peerDependenciesMeta": {
66
+ "@types/react": {
67
+ "optional": true
68
+ }
69
+ },
70
+ "dependencies": {
71
+ "screenfull": "^6.0.2"
72
+ },
73
+ "devDependencies": {
74
+ "@siberiacancode/builder": "^1.3.17",
75
+ "@siberiacancode/eslint": "^2.8.0",
76
+ "@siberiacancode/prettier": "^1.2.0",
77
+ "@siberiacancode/vitest": "^1.2.4",
78
+ "@tailwindcss/postcss": "^4.0.4",
79
+ "@testing-library/dom": "^10.4.0",
80
+ "@testing-library/react": "^16.2.0",
81
+ "@types/doctrine": "^0.0.9",
82
+ "@types/node": "^22.13.1",
83
+ "@types/react": "^18.3.12",
84
+ "@types/react-dom": "^18.3.2",
85
+ "@types/web-bluetooth": "^0.0.20",
86
+ "clsx": "^2.1.1",
87
+ "comment-parser": "^1.4.1",
88
+ "core-js": "^3.40.0",
89
+ "doctrine": "^3.0.0",
90
+ "husky": "^9.1.7",
91
+ "lint-staged": "^15.4.3",
92
+ "markdown-table": "^3.0.4",
93
+ "postcss": "^8.5.1",
94
+ "prettier-plugin-tailwindcss": "^0.6.11",
95
+ "react": "^18.3.1",
96
+ "react-dom": "^18.3.1",
97
+ "shx": "^0.3.4",
98
+ "tailwind-merge": "^3.0.1",
99
+ "tailwindcss": "^4.0.4",
100
+ "typescript": "^5.7.3",
101
+ "vite": "^6.0.11",
102
+ "vitepress": "^1.6.3"
103
+ },
104
+ "lint-staged": {
105
+ "*.js": [
106
+ "eslint --fix",
107
+ "prettier --write"
108
+ ],
109
+ "*.ts": [
110
+ "eslint --fix",
111
+ "prettier --write"
112
+ ]
113
+ }
114
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers-C1MI8U4n.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +0,0 @@
1
- /* @license @siberiacancode/reactuse v0.0.82 */
2
- "use strict";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 u=e[n.requestFullscreen](l);u instanceof Promise&&u.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;exports.screenfull=c;
3
- //# sourceMappingURL=index-Dri6vcf4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-Dri6vcf4.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,CAAE,EAEtB,IAAK,MAAMC,KAAcL,EAAW,CACnC,MAAMM,EAAuBD,IAAa,GAC1C,GAAIC,KAAwBJ,SAAU,CACrC,IAAK,MAAOK,EAAOC,KAAWH,EAAWI,UACxCL,EAAYD,EAAkBI,IAAUC,EAGzC,OAAOJ,CACV,CACA,CAEC,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,EAClD,IAGCQ,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,EAC/C,IAGCY,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]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers-BE1aVqiF.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +0,0 @@
1
- /* @license @siberiacancode/reactuse v0.0.82 */
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-Cg_YGXPU.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-Cg_YGXPU.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,CAAE,EAEtB,IAAK,MAAMC,KAAcL,EAAW,CACnC,MAAMM,EAAuBD,IAAa,GAC1C,GAAIC,KAAwBJ,SAAU,CACrC,IAAK,MAAOK,EAAOC,KAAWH,EAAWI,UACxCL,EAAYD,EAAkBI,IAAUC,EAGzC,OAAOJ,CACV,CACA,CAEC,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,EAClD,IAGCQ,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,EAC/C,IAGCY,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]}