@oneplatformdev/hooks 0.1.0-9 → 0.1.0-91

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 (334) hide show
  1. package/CHANGELOG.md +320 -0
  2. package/package.json +14 -19
  3. package/{dist/useEventListener → useEventListener}/useEventListener.d.ts +4 -2
  4. package/{dist/useEventListener → useEventListener}/useEventListener.d.ts.map +1 -1
  5. package/{dist/useHover → useHover}/useHover.d.ts +1 -1
  6. package/{dist/useHover → useHover}/useHover.d.ts.map +1 -1
  7. package/{dist/useOnClickOutside → useOnClickOutside}/useOnClickOutside.d.ts +1 -1
  8. package/{dist/useOnClickOutside → useOnClickOutside}/useOnClickOutside.d.ts.map +1 -1
  9. package/{dist/useResizeObserver → useResizeObserver}/useResizeObserver.d.ts +1 -1
  10. package/{dist/useResizeObserver → useResizeObserver}/useResizeObserver.d.ts.map +1 -1
  11. package/.babelrc +0 -12
  12. package/dist/CHANGELOG.md +0 -19
  13. package/dist/LICENSE +0 -21
  14. package/dist/README.md +0 -7
  15. package/dist/package.json +0 -68
  16. package/node_modules/@types/lodash.debounce/LICENSE +0 -21
  17. package/node_modules/@types/lodash.debounce/README.md +0 -23
  18. package/node_modules/@types/lodash.debounce/index.d.ts +0 -4
  19. package/node_modules/@types/lodash.debounce/package.json +0 -32
  20. package/node_modules/@types/react/LICENSE +0 -21
  21. package/node_modules/@types/react/README.md +0 -15
  22. package/node_modules/@types/react/canary.d.ts +0 -35
  23. package/node_modules/@types/react/compiler-runtime.d.ts +0 -4
  24. package/node_modules/@types/react/experimental.d.ts +0 -125
  25. package/node_modules/@types/react/global.d.ts +0 -160
  26. package/node_modules/@types/react/index.d.ts +0 -4206
  27. package/node_modules/@types/react/jsx-dev-runtime.d.ts +0 -45
  28. package/node_modules/@types/react/jsx-runtime.d.ts +0 -36
  29. package/node_modules/@types/react/package.json +0 -210
  30. package/node_modules/@types/react/ts5.0/canary.d.ts +0 -35
  31. package/node_modules/@types/react/ts5.0/experimental.d.ts +0 -125
  32. package/node_modules/@types/react/ts5.0/global.d.ts +0 -160
  33. package/node_modules/@types/react/ts5.0/index.d.ts +0 -4193
  34. package/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +0 -44
  35. package/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +0 -35
  36. package/node_modules/@types/react/ts5.0/v18/global.d.ts +0 -160
  37. package/node_modules/@types/react/ts5.0/v18/index.d.ts +0 -4543
  38. package/node_modules/@types/react/ts5.0/v18/jsx-dev-runtime.d.ts +0 -45
  39. package/node_modules/@types/react/ts5.0/v18/jsx-runtime.d.ts +0 -36
  40. package/node_modules/@types/react/ts5.0/v18/ts5.0/global.d.ts +0 -160
  41. package/node_modules/@types/react/ts5.0/v18/ts5.0/index.d.ts +0 -4530
  42. package/node_modules/@types/react/ts5.0/v18/ts5.0/jsx-dev-runtime.d.ts +0 -44
  43. package/node_modules/@types/react/ts5.0/v18/ts5.0/jsx-runtime.d.ts +0 -35
  44. package/src/index.ts +0 -36
  45. package/src/useBoolean/index.ts +0 -1
  46. package/src/useBoolean/useBoolean.ts +0 -50
  47. package/src/useClickAnyWhere/index.ts +0 -1
  48. package/src/useClickAnyWhere/useClickAnyWhere.ts +0 -22
  49. package/src/useCopyToClipboard/index.ts +0 -1
  50. package/src/useCopyToClipboard/useCopyToClipboard.ts +0 -58
  51. package/src/useCountdown/index.ts +0 -1
  52. package/src/useCountdown/useCountdown.ts +0 -102
  53. package/src/useCounter/index.ts +0 -1
  54. package/src/useCounter/useCounter.ts +0 -52
  55. package/src/useDarkMode/index.ts +0 -1
  56. package/src/useDarkMode/useDarkMode.ts +0 -92
  57. package/src/useDebounceCallback/index.ts +0 -2
  58. package/src/useDebounceCallback/useDebounceCallback.ts +0 -115
  59. package/src/useDebounceValue/index.ts +0 -1
  60. package/src/useDebounceValue/useDebounceValue.ts +0 -67
  61. package/src/useDocumentTitle/index.ts +0 -1
  62. package/src/useDocumentTitle/useDocumentTitle.ts +0 -43
  63. package/src/useEventCallback/index.ts +0 -1
  64. package/src/useEventCallback/useEventCallback.ts +0 -40
  65. package/src/useEventListener/index.ts +0 -1
  66. package/src/useEventListener/useEventListener.ts +0 -121
  67. package/src/useHover/index.ts +0 -1
  68. package/src/useHover/useHover.ts +0 -37
  69. package/src/useIntersectionObserver/index.ts +0 -1
  70. package/src/useIntersectionObserver/useIntersectionObserver.ts +0 -186
  71. package/src/useInterval/index.ts +0 -1
  72. package/src/useInterval/useInterval.ts +0 -43
  73. package/src/useIsClient/index.ts +0 -1
  74. package/src/useIsClient/useIsClient.ts +0 -22
  75. package/src/useIsMobile/index.ts +0 -2
  76. package/src/useIsMobile/types.ts +0 -3
  77. package/src/useIsMobile/useIsMobile.tsx +0 -23
  78. package/src/useIsMounted/index.ts +0 -1
  79. package/src/useIsMounted/useIsMounted.ts +0 -15
  80. package/src/useIsomorphicLayoutEffect/index.ts +0 -1
  81. package/src/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts +0 -17
  82. package/src/useLocalStorage/index.ts +0 -1
  83. package/src/useLocalStorage/useLocalStorage.ts +0 -191
  84. package/src/useLockBody/index.ts +0 -1
  85. package/src/useLockBody/useLockBody.tsx +0 -12
  86. package/src/useMap/index.ts +0 -1
  87. package/src/useMap/useMap.ts +0 -83
  88. package/src/useMediaQuery/index.ts +0 -1
  89. package/src/useMediaQuery/useMediaQuery.ts +0 -83
  90. package/src/useOnClickOutside/index.ts +0 -1
  91. package/src/useOnClickOutside/useOnClickOutside.ts +0 -61
  92. package/src/useQueryString/index.ts +0 -1
  93. package/src/useQueryString/useQueryString.ts +0 -26
  94. package/src/useReadLocalStorage/index.ts +0 -1
  95. package/src/useReadLocalStorage/useReadLocalStorage.ts +0 -122
  96. package/src/useResizeObserver/index.ts +0 -1
  97. package/src/useResizeObserver/useResizeObserver.ts +0 -131
  98. package/src/useScreen/index.ts +0 -1
  99. package/src/useScreen/useScreen.ts +0 -106
  100. package/src/useScript/index.ts +0 -1
  101. package/src/useScript/useScript.ts +0 -142
  102. package/src/useScrollLock/index.ts +0 -1
  103. package/src/useScrollLock/useScrollLock.ts +0 -141
  104. package/src/useSessionStorage/index.ts +0 -1
  105. package/src/useSessionStorage/useSessionStorage.ts +0 -191
  106. package/src/useStep/index.ts +0 -1
  107. package/src/useStep/useStep.ts +0 -83
  108. package/src/useTernaryDarkMode/index.ts +0 -1
  109. package/src/useTernaryDarkMode/useTernaryDarkMode.ts +0 -81
  110. package/src/useTimeout/index.ts +0 -1
  111. package/src/useTimeout/useTimeout.ts +0 -44
  112. package/src/useToggle/index.ts +0 -1
  113. package/src/useToggle/useToggle.ts +0 -30
  114. package/src/useUnmount/index.ts +0 -1
  115. package/src/useUnmount/useUnmount.ts +0 -26
  116. package/src/useWindowSize/index.ts +0 -1
  117. package/src/useWindowSize/useWindowSize.ts +0 -100
  118. package/tsconfig.json +0 -10
  119. package/tsconfig.lib.json +0 -33
  120. package/vite.config.ts +0 -62
  121. /package/{dist/index.d.ts → index.d.ts} +0 -0
  122. /package/{dist/index.d.ts.map → index.d.ts.map} +0 -0
  123. /package/{dist/index.js → index.js} +0 -0
  124. /package/{dist/useBoolean → useBoolean}/index.d.ts +0 -0
  125. /package/{dist/useBoolean → useBoolean}/index.d.ts.map +0 -0
  126. /package/{dist/useBoolean → useBoolean}/index.js +0 -0
  127. /package/{dist/useBoolean → useBoolean}/useBoolean.d.ts +0 -0
  128. /package/{dist/useBoolean → useBoolean}/useBoolean.d.ts.map +0 -0
  129. /package/{dist/useBoolean → useBoolean}/useBoolean.js +0 -0
  130. /package/{dist/useClickAnyWhere → useClickAnyWhere}/index.d.ts +0 -0
  131. /package/{dist/useClickAnyWhere → useClickAnyWhere}/index.d.ts.map +0 -0
  132. /package/{dist/useClickAnyWhere → useClickAnyWhere}/index.js +0 -0
  133. /package/{dist/useClickAnyWhere → useClickAnyWhere}/useClickAnyWhere.d.ts +0 -0
  134. /package/{dist/useClickAnyWhere → useClickAnyWhere}/useClickAnyWhere.d.ts.map +0 -0
  135. /package/{dist/useClickAnyWhere → useClickAnyWhere}/useClickAnyWhere.js +0 -0
  136. /package/{dist/useCopyToClipboard → useCopyToClipboard}/index.d.ts +0 -0
  137. /package/{dist/useCopyToClipboard → useCopyToClipboard}/index.d.ts.map +0 -0
  138. /package/{dist/useCopyToClipboard → useCopyToClipboard}/index.js +0 -0
  139. /package/{dist/useCopyToClipboard → useCopyToClipboard}/useCopyToClipboard.d.ts +0 -0
  140. /package/{dist/useCopyToClipboard → useCopyToClipboard}/useCopyToClipboard.d.ts.map +0 -0
  141. /package/{dist/useCopyToClipboard → useCopyToClipboard}/useCopyToClipboard.js +0 -0
  142. /package/{dist/useCountdown → useCountdown}/index.d.ts +0 -0
  143. /package/{dist/useCountdown → useCountdown}/index.d.ts.map +0 -0
  144. /package/{dist/useCountdown → useCountdown}/index.js +0 -0
  145. /package/{dist/useCountdown → useCountdown}/useCountdown.d.ts +0 -0
  146. /package/{dist/useCountdown → useCountdown}/useCountdown.d.ts.map +0 -0
  147. /package/{dist/useCountdown → useCountdown}/useCountdown.js +0 -0
  148. /package/{dist/useCounter → useCounter}/index.d.ts +0 -0
  149. /package/{dist/useCounter → useCounter}/index.d.ts.map +0 -0
  150. /package/{dist/useCounter → useCounter}/index.js +0 -0
  151. /package/{dist/useCounter → useCounter}/useCounter.d.ts +0 -0
  152. /package/{dist/useCounter → useCounter}/useCounter.d.ts.map +0 -0
  153. /package/{dist/useCounter → useCounter}/useCounter.js +0 -0
  154. /package/{dist/useDarkMode → useDarkMode}/index.d.ts +0 -0
  155. /package/{dist/useDarkMode → useDarkMode}/index.d.ts.map +0 -0
  156. /package/{dist/useDarkMode → useDarkMode}/index.js +0 -0
  157. /package/{dist/useDarkMode → useDarkMode}/useDarkMode.d.ts +0 -0
  158. /package/{dist/useDarkMode → useDarkMode}/useDarkMode.d.ts.map +0 -0
  159. /package/{dist/useDarkMode → useDarkMode}/useDarkMode.js +0 -0
  160. /package/{dist/useDebounceCallback → useDebounceCallback}/index.d.ts +0 -0
  161. /package/{dist/useDebounceCallback → useDebounceCallback}/index.d.ts.map +0 -0
  162. /package/{dist/useDebounceCallback → useDebounceCallback}/index.js +0 -0
  163. /package/{dist/useDebounceCallback → useDebounceCallback}/useDebounceCallback.d.ts +0 -0
  164. /package/{dist/useDebounceCallback → useDebounceCallback}/useDebounceCallback.d.ts.map +0 -0
  165. /package/{dist/useDebounceCallback → useDebounceCallback}/useDebounceCallback.js +0 -0
  166. /package/{dist/useDebounceValue → useDebounceValue}/index.d.ts +0 -0
  167. /package/{dist/useDebounceValue → useDebounceValue}/index.d.ts.map +0 -0
  168. /package/{dist/useDebounceValue → useDebounceValue}/index.js +0 -0
  169. /package/{dist/useDebounceValue → useDebounceValue}/useDebounceValue.d.ts +0 -0
  170. /package/{dist/useDebounceValue → useDebounceValue}/useDebounceValue.d.ts.map +0 -0
  171. /package/{dist/useDebounceValue → useDebounceValue}/useDebounceValue.js +0 -0
  172. /package/{dist/useDocumentTitle → useDocumentTitle}/index.d.ts +0 -0
  173. /package/{dist/useDocumentTitle → useDocumentTitle}/index.d.ts.map +0 -0
  174. /package/{dist/useDocumentTitle → useDocumentTitle}/index.js +0 -0
  175. /package/{dist/useDocumentTitle → useDocumentTitle}/useDocumentTitle.d.ts +0 -0
  176. /package/{dist/useDocumentTitle → useDocumentTitle}/useDocumentTitle.d.ts.map +0 -0
  177. /package/{dist/useDocumentTitle → useDocumentTitle}/useDocumentTitle.js +0 -0
  178. /package/{dist/useEventCallback → useEventCallback}/index.d.ts +0 -0
  179. /package/{dist/useEventCallback → useEventCallback}/index.d.ts.map +0 -0
  180. /package/{dist/useEventCallback → useEventCallback}/index.js +0 -0
  181. /package/{dist/useEventCallback → useEventCallback}/useEventCallback.d.ts +0 -0
  182. /package/{dist/useEventCallback → useEventCallback}/useEventCallback.d.ts.map +0 -0
  183. /package/{dist/useEventCallback → useEventCallback}/useEventCallback.js +0 -0
  184. /package/{dist/useEventListener → useEventListener}/index.d.ts +0 -0
  185. /package/{dist/useEventListener → useEventListener}/index.d.ts.map +0 -0
  186. /package/{dist/useEventListener → useEventListener}/index.js +0 -0
  187. /package/{dist/useEventListener → useEventListener}/useEventListener.js +0 -0
  188. /package/{dist/useHover → useHover}/index.d.ts +0 -0
  189. /package/{dist/useHover → useHover}/index.d.ts.map +0 -0
  190. /package/{dist/useHover → useHover}/index.js +0 -0
  191. /package/{dist/useHover → useHover}/useHover.js +0 -0
  192. /package/{dist/useIntersectionObserver → useIntersectionObserver}/index.d.ts +0 -0
  193. /package/{dist/useIntersectionObserver → useIntersectionObserver}/index.d.ts.map +0 -0
  194. /package/{dist/useIntersectionObserver → useIntersectionObserver}/index.js +0 -0
  195. /package/{dist/useIntersectionObserver → useIntersectionObserver}/useIntersectionObserver.d.ts +0 -0
  196. /package/{dist/useIntersectionObserver → useIntersectionObserver}/useIntersectionObserver.d.ts.map +0 -0
  197. /package/{dist/useIntersectionObserver → useIntersectionObserver}/useIntersectionObserver.js +0 -0
  198. /package/{dist/useInterval → useInterval}/index.d.ts +0 -0
  199. /package/{dist/useInterval → useInterval}/index.d.ts.map +0 -0
  200. /package/{dist/useInterval → useInterval}/index.js +0 -0
  201. /package/{dist/useInterval → useInterval}/useInterval.d.ts +0 -0
  202. /package/{dist/useInterval → useInterval}/useInterval.d.ts.map +0 -0
  203. /package/{dist/useInterval → useInterval}/useInterval.js +0 -0
  204. /package/{dist/useIsClient → useIsClient}/index.d.ts +0 -0
  205. /package/{dist/useIsClient → useIsClient}/index.d.ts.map +0 -0
  206. /package/{dist/useIsClient → useIsClient}/index.js +0 -0
  207. /package/{dist/useIsClient → useIsClient}/useIsClient.d.ts +0 -0
  208. /package/{dist/useIsClient → useIsClient}/useIsClient.d.ts.map +0 -0
  209. /package/{dist/useIsClient → useIsClient}/useIsClient.js +0 -0
  210. /package/{dist/useIsMobile → useIsMobile}/index.d.ts +0 -0
  211. /package/{dist/useIsMobile → useIsMobile}/index.d.ts.map +0 -0
  212. /package/{dist/useIsMobile → useIsMobile}/index.js +0 -0
  213. /package/{dist/useIsMobile → useIsMobile}/types.d.ts +0 -0
  214. /package/{dist/useIsMobile → useIsMobile}/types.d.ts.map +0 -0
  215. /package/{dist/useIsMobile → useIsMobile}/types.js +0 -0
  216. /package/{dist/useIsMobile → useIsMobile}/useIsMobile.d.ts +0 -0
  217. /package/{dist/useIsMobile → useIsMobile}/useIsMobile.d.ts.map +0 -0
  218. /package/{dist/useIsMobile → useIsMobile}/useIsMobile.js +0 -0
  219. /package/{dist/useIsMounted → useIsMounted}/index.d.ts +0 -0
  220. /package/{dist/useIsMounted → useIsMounted}/index.d.ts.map +0 -0
  221. /package/{dist/useIsMounted → useIsMounted}/index.js +0 -0
  222. /package/{dist/useIsMounted → useIsMounted}/useIsMounted.d.ts +0 -0
  223. /package/{dist/useIsMounted → useIsMounted}/useIsMounted.d.ts.map +0 -0
  224. /package/{dist/useIsMounted → useIsMounted}/useIsMounted.js +0 -0
  225. /package/{dist/useIsomorphicLayoutEffect → useIsomorphicLayoutEffect}/index.d.ts +0 -0
  226. /package/{dist/useIsomorphicLayoutEffect → useIsomorphicLayoutEffect}/index.d.ts.map +0 -0
  227. /package/{dist/useIsomorphicLayoutEffect → useIsomorphicLayoutEffect}/index.js +0 -0
  228. /package/{dist/useIsomorphicLayoutEffect → useIsomorphicLayoutEffect}/useIsomorphicLayoutEffect.d.ts +0 -0
  229. /package/{dist/useIsomorphicLayoutEffect → useIsomorphicLayoutEffect}/useIsomorphicLayoutEffect.d.ts.map +0 -0
  230. /package/{dist/useIsomorphicLayoutEffect → useIsomorphicLayoutEffect}/useIsomorphicLayoutEffect.js +0 -0
  231. /package/{dist/useLocalStorage → useLocalStorage}/index.d.ts +0 -0
  232. /package/{dist/useLocalStorage → useLocalStorage}/index.d.ts.map +0 -0
  233. /package/{dist/useLocalStorage → useLocalStorage}/index.js +0 -0
  234. /package/{dist/useLocalStorage → useLocalStorage}/useLocalStorage.d.ts +0 -0
  235. /package/{dist/useLocalStorage → useLocalStorage}/useLocalStorage.d.ts.map +0 -0
  236. /package/{dist/useLocalStorage → useLocalStorage}/useLocalStorage.js +0 -0
  237. /package/{dist/useLockBody → useLockBody}/index.d.ts +0 -0
  238. /package/{dist/useLockBody → useLockBody}/index.d.ts.map +0 -0
  239. /package/{dist/useLockBody → useLockBody}/index.js +0 -0
  240. /package/{dist/useLockBody → useLockBody}/useLockBody.d.ts +0 -0
  241. /package/{dist/useLockBody → useLockBody}/useLockBody.d.ts.map +0 -0
  242. /package/{dist/useLockBody → useLockBody}/useLockBody.js +0 -0
  243. /package/{dist/useMap → useMap}/index.d.ts +0 -0
  244. /package/{dist/useMap → useMap}/index.d.ts.map +0 -0
  245. /package/{dist/useMap → useMap}/index.js +0 -0
  246. /package/{dist/useMap → useMap}/useMap.d.ts +0 -0
  247. /package/{dist/useMap → useMap}/useMap.d.ts.map +0 -0
  248. /package/{dist/useMap → useMap}/useMap.js +0 -0
  249. /package/{dist/useMediaQuery → useMediaQuery}/index.d.ts +0 -0
  250. /package/{dist/useMediaQuery → useMediaQuery}/index.d.ts.map +0 -0
  251. /package/{dist/useMediaQuery → useMediaQuery}/index.js +0 -0
  252. /package/{dist/useMediaQuery → useMediaQuery}/useMediaQuery.d.ts +0 -0
  253. /package/{dist/useMediaQuery → useMediaQuery}/useMediaQuery.d.ts.map +0 -0
  254. /package/{dist/useMediaQuery → useMediaQuery}/useMediaQuery.js +0 -0
  255. /package/{dist/useOnClickOutside → useOnClickOutside}/index.d.ts +0 -0
  256. /package/{dist/useOnClickOutside → useOnClickOutside}/index.d.ts.map +0 -0
  257. /package/{dist/useOnClickOutside → useOnClickOutside}/index.js +0 -0
  258. /package/{dist/useOnClickOutside → useOnClickOutside}/useOnClickOutside.js +0 -0
  259. /package/{dist/useQueryString → useQueryString}/index.d.ts +0 -0
  260. /package/{dist/useQueryString → useQueryString}/index.d.ts.map +0 -0
  261. /package/{dist/useQueryString → useQueryString}/index.js +0 -0
  262. /package/{dist/useQueryString → useQueryString}/useQueryString.d.ts +0 -0
  263. /package/{dist/useQueryString → useQueryString}/useQueryString.d.ts.map +0 -0
  264. /package/{dist/useQueryString → useQueryString}/useQueryString.js +0 -0
  265. /package/{dist/useReadLocalStorage → useReadLocalStorage}/index.d.ts +0 -0
  266. /package/{dist/useReadLocalStorage → useReadLocalStorage}/index.d.ts.map +0 -0
  267. /package/{dist/useReadLocalStorage → useReadLocalStorage}/index.js +0 -0
  268. /package/{dist/useReadLocalStorage → useReadLocalStorage}/useReadLocalStorage.d.ts +0 -0
  269. /package/{dist/useReadLocalStorage → useReadLocalStorage}/useReadLocalStorage.d.ts.map +0 -0
  270. /package/{dist/useReadLocalStorage → useReadLocalStorage}/useReadLocalStorage.js +0 -0
  271. /package/{dist/useResizeObserver → useResizeObserver}/index.d.ts +0 -0
  272. /package/{dist/useResizeObserver → useResizeObserver}/index.d.ts.map +0 -0
  273. /package/{dist/useResizeObserver → useResizeObserver}/index.js +0 -0
  274. /package/{dist/useResizeObserver → useResizeObserver}/useResizeObserver.js +0 -0
  275. /package/{dist/useScreen → useScreen}/index.d.ts +0 -0
  276. /package/{dist/useScreen → useScreen}/index.d.ts.map +0 -0
  277. /package/{dist/useScreen → useScreen}/index.js +0 -0
  278. /package/{dist/useScreen → useScreen}/useScreen.d.ts +0 -0
  279. /package/{dist/useScreen → useScreen}/useScreen.d.ts.map +0 -0
  280. /package/{dist/useScreen → useScreen}/useScreen.js +0 -0
  281. /package/{dist/useScript → useScript}/index.d.ts +0 -0
  282. /package/{dist/useScript → useScript}/index.d.ts.map +0 -0
  283. /package/{dist/useScript → useScript}/index.js +0 -0
  284. /package/{dist/useScript → useScript}/useScript.d.ts +0 -0
  285. /package/{dist/useScript → useScript}/useScript.d.ts.map +0 -0
  286. /package/{dist/useScript → useScript}/useScript.js +0 -0
  287. /package/{dist/useScrollLock → useScrollLock}/index.d.ts +0 -0
  288. /package/{dist/useScrollLock → useScrollLock}/index.d.ts.map +0 -0
  289. /package/{dist/useScrollLock → useScrollLock}/index.js +0 -0
  290. /package/{dist/useScrollLock → useScrollLock}/useScrollLock.d.ts +0 -0
  291. /package/{dist/useScrollLock → useScrollLock}/useScrollLock.d.ts.map +0 -0
  292. /package/{dist/useScrollLock → useScrollLock}/useScrollLock.js +0 -0
  293. /package/{dist/useSessionStorage → useSessionStorage}/index.d.ts +0 -0
  294. /package/{dist/useSessionStorage → useSessionStorage}/index.d.ts.map +0 -0
  295. /package/{dist/useSessionStorage → useSessionStorage}/index.js +0 -0
  296. /package/{dist/useSessionStorage → useSessionStorage}/useSessionStorage.d.ts +0 -0
  297. /package/{dist/useSessionStorage → useSessionStorage}/useSessionStorage.d.ts.map +0 -0
  298. /package/{dist/useSessionStorage → useSessionStorage}/useSessionStorage.js +0 -0
  299. /package/{dist/useStep → useStep}/index.d.ts +0 -0
  300. /package/{dist/useStep → useStep}/index.d.ts.map +0 -0
  301. /package/{dist/useStep → useStep}/index.js +0 -0
  302. /package/{dist/useStep → useStep}/useStep.d.ts +0 -0
  303. /package/{dist/useStep → useStep}/useStep.d.ts.map +0 -0
  304. /package/{dist/useStep → useStep}/useStep.js +0 -0
  305. /package/{dist/useTernaryDarkMode → useTernaryDarkMode}/index.d.ts +0 -0
  306. /package/{dist/useTernaryDarkMode → useTernaryDarkMode}/index.d.ts.map +0 -0
  307. /package/{dist/useTernaryDarkMode → useTernaryDarkMode}/index.js +0 -0
  308. /package/{dist/useTernaryDarkMode → useTernaryDarkMode}/useTernaryDarkMode.d.ts +0 -0
  309. /package/{dist/useTernaryDarkMode → useTernaryDarkMode}/useTernaryDarkMode.d.ts.map +0 -0
  310. /package/{dist/useTernaryDarkMode → useTernaryDarkMode}/useTernaryDarkMode.js +0 -0
  311. /package/{dist/useTimeout → useTimeout}/index.d.ts +0 -0
  312. /package/{dist/useTimeout → useTimeout}/index.d.ts.map +0 -0
  313. /package/{dist/useTimeout → useTimeout}/index.js +0 -0
  314. /package/{dist/useTimeout → useTimeout}/useTimeout.d.ts +0 -0
  315. /package/{dist/useTimeout → useTimeout}/useTimeout.d.ts.map +0 -0
  316. /package/{dist/useTimeout → useTimeout}/useTimeout.js +0 -0
  317. /package/{dist/useToggle → useToggle}/index.d.ts +0 -0
  318. /package/{dist/useToggle → useToggle}/index.d.ts.map +0 -0
  319. /package/{dist/useToggle → useToggle}/index.js +0 -0
  320. /package/{dist/useToggle → useToggle}/useToggle.d.ts +0 -0
  321. /package/{dist/useToggle → useToggle}/useToggle.d.ts.map +0 -0
  322. /package/{dist/useToggle → useToggle}/useToggle.js +0 -0
  323. /package/{dist/useUnmount → useUnmount}/index.d.ts +0 -0
  324. /package/{dist/useUnmount → useUnmount}/index.d.ts.map +0 -0
  325. /package/{dist/useUnmount → useUnmount}/index.js +0 -0
  326. /package/{dist/useUnmount → useUnmount}/useUnmount.d.ts +0 -0
  327. /package/{dist/useUnmount → useUnmount}/useUnmount.d.ts.map +0 -0
  328. /package/{dist/useUnmount → useUnmount}/useUnmount.js +0 -0
  329. /package/{dist/useWindowSize → useWindowSize}/index.d.ts +0 -0
  330. /package/{dist/useWindowSize → useWindowSize}/index.d.ts.map +0 -0
  331. /package/{dist/useWindowSize → useWindowSize}/index.js +0 -0
  332. /package/{dist/useWindowSize → useWindowSize}/useWindowSize.d.ts +0 -0
  333. /package/{dist/useWindowSize → useWindowSize}/useWindowSize.d.ts.map +0 -0
  334. /package/{dist/useWindowSize → useWindowSize}/useWindowSize.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,323 @@
1
+ ## 0.1.0-91 (2025-10-13)
2
+
3
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
4
+
5
+ ## 0.1.0-90 (2025-10-13)
6
+
7
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
8
+
9
+ ## 0.1.0-89 (2025-10-13)
10
+
11
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
12
+
13
+ ## 0.1.0-88 (2025-10-06)
14
+
15
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
16
+
17
+ ## 0.1.0-87 (2025-10-04)
18
+
19
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
20
+
21
+ ## 0.1.0-86 (2025-10-04)
22
+
23
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
24
+
25
+ ## 0.1.0-85 (2025-10-04)
26
+
27
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
28
+
29
+ ## 0.1.0-84 (2025-10-04)
30
+
31
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
32
+
33
+ ## 0.1.0-83 (2025-10-03)
34
+
35
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
36
+
37
+ ## 0.1.0-82 (2025-10-03)
38
+
39
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
40
+
41
+ ## 0.1.0-81 (2025-10-03)
42
+
43
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
44
+
45
+ ## 0.1.0-80 (2025-10-02)
46
+
47
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
48
+
49
+ ## 0.1.0-79 (2025-10-02)
50
+
51
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
52
+
53
+ ## 0.1.0-78 (2025-10-02)
54
+
55
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
56
+
57
+ ## 0.1.0-77 (2025-10-02)
58
+
59
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
60
+
61
+ ## 0.1.0-76 (2025-10-02)
62
+
63
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
64
+
65
+ ## 0.1.0-75 (2025-10-02)
66
+
67
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
68
+
69
+ ## 0.1.0-74 (2025-10-02)
70
+
71
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
72
+
73
+ ## 0.1.0-73 (2025-10-02)
74
+
75
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
76
+
77
+ ## 0.1.0-72 (2025-10-02)
78
+
79
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
80
+
81
+ ## 0.1.0-71 (2025-10-02)
82
+
83
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
84
+
85
+ ## 0.1.0-70 (2025-10-02)
86
+
87
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
88
+
89
+ ## 0.1.0-69 (2025-10-02)
90
+
91
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
92
+
93
+ ## 0.1.0-68 (2025-10-02)
94
+
95
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
96
+
97
+ ## 0.1.0-67 (2025-09-16)
98
+
99
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
100
+
101
+ ## 0.1.0-66 (2025-09-16)
102
+
103
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
104
+
105
+ ## 0.1.0-65 (2025-09-16)
106
+
107
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
108
+
109
+ ## 0.1.0-64 (2025-09-16)
110
+
111
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
112
+
113
+ ## 0.1.0-63 (2025-09-16)
114
+
115
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
116
+
117
+ ## 0.1.0-62 (2025-09-16)
118
+
119
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
120
+
121
+ ## 0.1.0-61 (2025-09-16)
122
+
123
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
124
+
125
+ ## 0.1.0-60 (2025-09-16)
126
+
127
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
128
+
129
+ ## 0.1.0-59 (2025-09-16)
130
+
131
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
132
+
133
+ ## 0.1.0-58 (2025-09-16)
134
+
135
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
136
+
137
+ ## 0.1.0-57 (2025-09-16)
138
+
139
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
140
+
141
+ ## 0.1.0-56 (2025-09-16)
142
+
143
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
144
+
145
+ ## 0.1.0-55 (2025-09-16)
146
+
147
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
148
+
149
+ ## 0.1.0-54 (2025-09-16)
150
+
151
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
152
+
153
+ ## 0.1.0-53 (2025-09-16)
154
+
155
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
156
+
157
+ ## 0.1.0-52 (2025-09-16)
158
+
159
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
160
+
161
+ ## 0.1.0-51 (2025-09-16)
162
+
163
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
164
+
165
+ ## 0.1.0-50 (2025-09-15)
166
+
167
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
168
+
169
+ ## 0.1.0-49 (2025-09-15)
170
+
171
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
172
+
173
+ ## 0.1.0-48 (2025-09-15)
174
+
175
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
176
+
177
+ ## 0.1.0-47 (2025-09-15)
178
+
179
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
180
+
181
+ ## 0.1.0-46 (2025-09-15)
182
+
183
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
184
+
185
+ ## 0.1.0-45 (2025-09-15)
186
+
187
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
188
+
189
+ ## 0.1.0-44 (2025-09-15)
190
+
191
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
192
+
193
+ ## 0.1.0-43 (2025-09-15)
194
+
195
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
196
+
197
+ ## 0.1.0-42 (2025-09-15)
198
+
199
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
200
+
201
+ ## 0.1.0-41 (2025-09-15)
202
+
203
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
204
+
205
+ ## 0.1.0-40 (2025-09-15)
206
+
207
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
208
+
209
+ ## 0.1.0-39 (2025-09-15)
210
+
211
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
212
+
213
+ ## 0.1.0-38 (2025-09-15)
214
+
215
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
216
+
217
+ ## 0.1.0-37 (2025-09-15)
218
+
219
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
220
+
221
+ ## 0.1.0-36 (2025-09-15)
222
+
223
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
224
+
225
+ ## 0.1.0-35 (2025-09-15)
226
+
227
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
228
+
229
+ ## 0.1.0-34 (2025-09-15)
230
+
231
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
232
+
233
+ ## 0.1.0-33 (2025-09-15)
234
+
235
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
236
+
237
+ ## 0.1.0-32 (2025-09-15)
238
+
239
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
240
+
241
+ ## 0.1.0-31 (2025-09-15)
242
+
243
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
244
+
245
+ ## 0.1.0-30 (2025-09-15)
246
+
247
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
248
+
249
+ ## 0.1.0-29 (2025-09-15)
250
+
251
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
252
+
253
+ ## 0.1.0-28 (2025-09-15)
254
+
255
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
256
+
257
+ ## 0.1.0-26 (2025-09-15)
258
+
259
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
260
+
261
+ ## 0.1.0-25 (2025-09-15)
262
+
263
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
264
+
265
+ ## 0.1.0-24 (2025-09-15)
266
+
267
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
268
+
269
+ ## 0.1.0-23 (2025-09-15)
270
+
271
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
272
+
273
+ ## 0.1.0-22 (2025-09-15)
274
+
275
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
276
+
277
+ ## 0.1.0-21 (2025-09-15)
278
+
279
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
280
+
281
+ ## 0.1.0-20 (2025-09-15)
282
+
283
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
284
+
285
+ ## 0.1.0-19 (2025-09-15)
286
+
287
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
288
+
289
+ ## 0.1.0-18 (2025-09-15)
290
+
291
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
292
+
293
+ ## 0.1.0-17 (2025-09-15)
294
+
295
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
296
+
297
+ ## 0.1.0-16 (2025-09-15)
298
+
299
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
300
+
301
+ ## 0.1.0-14 (2025-09-15)
302
+
303
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
304
+
305
+ ## 0.1.0-13 (2025-09-15)
306
+
307
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
308
+
309
+ ## 0.1.0-12 (2025-09-15)
310
+
311
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
312
+
313
+ ## 0.1.0-11 (2025-09-15)
314
+
315
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
316
+
317
+ ## 0.1.0-10 (2025-09-11)
318
+
319
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
320
+
1
321
  ## 0.1.0-9 (2025-09-11)
2
322
 
3
323
  This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/hooks",
3
- "version": "0.1.0-9",
3
+ "version": "0.1.0-91",
4
4
  "description": "React hook library",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [
@@ -21,37 +21,32 @@
21
21
  "private": false,
22
22
  "license": "MIT",
23
23
  "type": "module",
24
+ "source": "./index.ts",
24
25
  "main": "./index.js",
25
26
  "module": "./index.js",
27
+ "default": "./index.js",
26
28
  "types": "./index.d.ts",
27
- "exports": {
28
- "./package.json": "./package.json",
29
- ".": {
30
- "@oneplatformdev/source": "./src/index.ts",
31
- "types": "./index.d.ts",
32
- "import": "./index.js",
33
- "default": "./index.js"
34
- },
35
- "./*": {
36
- "types": "./*.d.ts",
37
- "import": "./*.js",
38
- "default": "./*.js"
39
- }
29
+ "sideEffects": false,
30
+ "publishConfig": {
31
+ "directory": "dist"
40
32
  },
41
33
  "files": [
42
34
  "**/*",
43
35
  "dist",
44
- "README.md",
45
- "LICENSE",
46
36
  "!**/*.tsbuildinfo"
47
37
  ],
48
38
  "dependencies": {
49
39
  "lodash.debounce": "^4.0.8"
50
40
  },
51
41
  "peerDependencies": {
52
- "react": ">=18",
53
- "react-dom": ">=18",
54
- "@types/react": ">=18",
42
+ "react": "^19.0.0",
43
+ "react-dom": "^19.0.0"
44
+ },
45
+ "devDependencies": {
46
+ "react": "19.1.1",
47
+ "react-dom": "19.1.1",
48
+ "@types/react": "19.x",
49
+ "@types/react-dom": "19.x",
55
50
  "@types/lodash.debounce": "^4.0.9"
56
51
  },
57
52
  "peerDependenciesMeta": {
@@ -1,7 +1,9 @@
1
1
  import { RefObject } from 'react';
2
2
  declare function useEventListener<K extends keyof MediaQueryListEventMap>(eventName: K, handler: (event: MediaQueryListEventMap[K]) => void, element: RefObject<MediaQueryList>, options?: boolean | AddEventListenerOptions): void;
3
3
  declare function useEventListener<K extends keyof WindowEventMap>(eventName: K, handler: (event: WindowEventMap[K]) => void, element?: undefined, options?: boolean | AddEventListenerOptions): void;
4
- declare function useEventListener<K extends keyof HTMLElementEventMap & keyof SVGElementEventMap, T extends Element = K extends keyof HTMLElementEventMap ? HTMLDivElement : SVGElement>(eventName: K, handler: ((event: HTMLElementEventMap[K]) => void) | ((event: SVGElementEventMap[K]) => void), element: RefObject<T>, options?: boolean | AddEventListenerOptions): void;
5
- declare function useEventListener<K extends keyof DocumentEventMap>(eventName: K, handler: (event: DocumentEventMap[K]) => void, element: RefObject<Document>, options?: boolean | AddEventListenerOptions): void;
4
+ declare function useEventListener<K extends keyof HTMLElementEventMap & keyof SVGElementEventMap, T extends Element = K extends keyof HTMLElementEventMap ? HTMLDivElement : SVGElement>(eventName: K, handler: ((event: HTMLElementEventMap[K]) => void) | ((event: SVGElementEventMap[K]) => void), element: RefObject<Document | undefined | null>, options?: boolean | AddEventListenerOptions): void;
5
+ declare function useEventListener<K extends keyof WindowEventMap>(eventName: K, handler: (event: WindowEventMap[K]) => void, element: RefObject<Window | undefined | null>, options?: boolean | AddEventListenerOptions): void;
6
+ declare function useEventListener<K extends keyof DocumentEventMap>(eventName: K, handler: (event: DocumentEventMap[K]) => void, element: RefObject<Document | undefined | null>, options?: boolean | AddEventListenerOptions): void;
7
+ declare function useEventListener<K extends keyof HTMLElementEventMap>(eventName: K, handler: (event: HTMLElementEventMap[K]) => void, element: RefObject<HTMLElement | undefined | null>, options?: boolean | AddEventListenerOptions): void;
6
8
  export { useEventListener };
7
9
  //# sourceMappingURL=useEventListener.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useEventListener.d.ts","sourceRoot":"","sources":["../../src/useEventListener/useEventListener.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,sBAAsB,EAC9D,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAAK,IAAI,EACnD,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,EAClC,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAA;AAGP,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,cAAc,EACtD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,EAC3C,OAAO,CAAC,EAAE,SAAS,EACnB,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAA;AAGP,iBAAS,gBAAgB,CACvB,CAAC,SAAS,MAAM,mBAAmB,GAAG,MAAM,kBAAkB,EAC9D,CAAC,SAAS,OAAO,GAAG,CAAC,SAAS,MAAM,mBAAmB,GACnD,cAAc,GACd,UAAU,EAEd,SAAS,EAAE,CAAC,EACZ,OAAO,EACH,CAAC,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,GACzC,CAAC,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,EAC5C,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,EACrB,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAA;AAGP,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,gBAAgB,EACxD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,EAC7C,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC5B,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAA;AA6EP,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
1
+ {"version":3,"file":"useEventListener.d.ts","sourceRoot":"","sources":["../../src/useEventListener/useEventListener.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,sBAAsB,EAC9D,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAAK,IAAI,EACnD,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,EAClC,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAA;AAGP,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,cAAc,EACtD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,EAC3C,OAAO,CAAC,EAAE,SAAS,EACnB,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAA;AAGP,iBAAS,gBAAgB,CACvB,CAAC,SAAS,MAAM,mBAAmB,GAAG,MAAM,kBAAkB,EAC9D,CAAC,SAAS,OAAO,GAAG,CAAC,SAAS,MAAM,mBAAmB,GACnD,cAAc,GACd,UAAU,EAEd,SAAS,EAAE,CAAC,EACZ,OAAO,EACH,CAAC,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,GACzC,CAAC,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,EAC5C,OAAO,EAAE,SAAS,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC,EAC/C,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAA;AAGP,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,cAAc,EACtD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,EAC3C,OAAO,EAAE,SAAS,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,EAC7C,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;AACR,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,gBAAgB,EACxD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,EAC7C,OAAO,EAAE,SAAS,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC,EAC/C,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAA;AACP,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,mBAAmB,EAC3D,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,EAChD,OAAO,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC,EAClD,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;AA6ER,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -13,5 +13,5 @@ import { RefObject } from 'react';
13
13
  * // Access the isHovered variable to determine if the button is being hovered over.
14
14
  * ```
15
15
  */
16
- export declare function useHover<T extends HTMLElement = HTMLElement>(elementRef: RefObject<T>): boolean;
16
+ export declare function useHover<T extends HTMLElement = HTMLElement>(elementRef: RefObject<T | undefined | null>): boolean;
17
17
  //# sourceMappingURL=useHover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useHover.d.ts","sourceRoot":"","sources":["../../src/useHover/useHover.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAC1D,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,GACvB,OAAO,CAcT"}
1
+ {"version":3,"file":"useHover.d.ts","sourceRoot":"","sources":["../../src/useHover/useHover.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAC1D,UAAU,EAAE,SAAS,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,GAC1C,OAAO,CAcT"}
@@ -19,6 +19,6 @@ type EventType = 'mousedown' | 'mouseup' | 'touchstart' | 'touchend' | 'focusin'
19
19
  * });
20
20
  * ```
21
21
  */
22
- export declare function useOnClickOutside<T extends HTMLElement = HTMLElement>(ref: RefObject<T> | RefObject<T>[], handler: (event: MouseEvent | TouchEvent | FocusEvent) => void, eventType?: EventType, eventListenerOptions?: AddEventListenerOptions): void;
22
+ export declare function useOnClickOutside<T extends HTMLElement = HTMLElement>(ref: RefObject<T | undefined | null> | RefObject<T | undefined | null>[], handler: (event: MouseEvent | TouchEvent | FocusEvent) => void, eventType?: EventType, eventListenerOptions?: AddEventListenerOptions): void;
23
23
  export {};
24
24
  //# sourceMappingURL=useOnClickOutside.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useOnClickOutside.d.ts","sourceRoot":"","sources":["../../src/useOnClickOutside/useOnClickOutside.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,6BAA6B;AAC7B,KAAK,SAAS,GACV,WAAW,GACX,SAAS,GACT,YAAY,GACZ,UAAU,GACV,SAAS,GACT,UAAU,CAAA;AAEd;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EACnE,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,EAClC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,KAAK,IAAI,EAC9D,SAAS,GAAE,SAAuB,EAClC,oBAAoB,GAAE,uBAA4B,GACjD,IAAI,CAwBN"}
1
+ {"version":3,"file":"useOnClickOutside.d.ts","sourceRoot":"","sources":["../../src/useOnClickOutside/useOnClickOutside.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,6BAA6B;AAC7B,KAAK,SAAS,GACV,WAAW,GACX,SAAS,GACT,YAAY,GACZ,UAAU,GACV,SAAS,GACT,UAAU,CAAA;AAEd;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EACnE,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,EACxE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,KAAK,IAAI,EAC9D,SAAS,GAAE,SAAuB,EAClC,oBAAoB,GAAE,uBAA4B,GACjD,IAAI,CAwBN"}
@@ -9,7 +9,7 @@ type Size = {
9
9
  /** The options for the ResizeObserver. */
10
10
  type UseResizeObserverOptions<T extends HTMLElement = HTMLElement> = {
11
11
  /** The ref of the element to observe. */
12
- ref: RefObject<T>;
12
+ ref: RefObject<T | undefined | null>;
13
13
  /**
14
14
  * When using `onResize`, the hook doesn't re-render on element size changes; it delegates handling to the provided callback.
15
15
  * @default undefined
@@ -1 +1 @@
1
- {"version":3,"file":"useResizeObserver.d.ts","sourceRoot":"","sources":["../../src/useResizeObserver/useResizeObserver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,wCAAwC;AACxC,KAAK,IAAI,GAAG;IACV,yCAAyC;IACzC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,0CAA0C;IAC1C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAA;AAED,0CAA0C;AAC1C,KAAK,wBAAwB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI;IACnE,yCAAyC;IACzC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAC/B;;;OAGG;IACH,GAAG,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,0BAA0B,CAAA;CAChE,CAAA;AAOD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EACnE,OAAO,EAAE,wBAAwB,CAAC,CAAC,CAAC,GACnC,IAAI,CAmDN"}
1
+ {"version":3,"file":"useResizeObserver.d.ts","sourceRoot":"","sources":["../../src/useResizeObserver/useResizeObserver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,wCAAwC;AACxC,KAAK,IAAI,GAAG;IACV,yCAAyC;IACzC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,0CAA0C;IAC1C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAA;AAED,0CAA0C;AAC1C,KAAK,wBAAwB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI;IACnE,yCAAyC;IACzC,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,CAAA;IACpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAC/B;;;OAGG;IACH,GAAG,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,0BAA0B,CAAA;CAChE,CAAA;AAOD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EACnE,OAAO,EAAE,wBAAwB,CAAC,CAAC,CAAC,GACnC,IAAI,CAmDN"}
package/.babelrc DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@nx/react/babel",
5
- {
6
- "runtime": "automatic",
7
- "useBuiltIns": "usage"
8
- }
9
- ]
10
- ],
11
- "plugins": []
12
- }
package/dist/CHANGELOG.md DELETED
@@ -1,19 +0,0 @@
1
- ## 0.1.0-8 (2025-09-11)
2
-
3
- This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
4
-
5
- ## 0.1.0-7 (2025-09-11)
6
-
7
- This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
8
-
9
- ## 0.1.0-6 (2025-09-11)
10
-
11
- This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
12
-
13
- ## 0.1.0-5 (2025-09-11)
14
-
15
- This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
16
-
17
- ## 0.1.0-4 (2025-09-11)
18
-
19
- This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
package/dist/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2025 Oleh Maksimenko
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/dist/README.md DELETED
@@ -1,7 +0,0 @@
1
- # @oneplatformdev/hooks
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- ## Running unit tests
6
-
7
- Run `nx test @oneplatformdev/hooks` to execute the unit tests via [Vitest](https://vitest.dev/).
package/dist/package.json DELETED
@@ -1,68 +0,0 @@
1
- {
2
- "name": "@oneplatformdev/hooks",
3
- "version": "0.1.0-8",
4
- "description": "React hook library",
5
- "author": "One Platform Development Team",
6
- "keywords": [
7
- "react",
8
- "oneplatform",
9
- "hooks",
10
- "typescript"
11
- ],
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/oneplatformdev/core.git",
15
- "directory": "packages/hooks"
16
- },
17
- "bugs": {
18
- "url": "https://github.com/oneplatformdev/core/issues"
19
- },
20
- "homepage": "private package",
21
- "private": false,
22
- "license": "MIT",
23
- "type": "module",
24
- "main": "./index.js",
25
- "module": "./index.js",
26
- "types": "./index.d.ts",
27
- "exports": {
28
- "./package.json": "./package.json",
29
- ".": {
30
- "@oneplatformdev/source": "./src/index.ts",
31
- "types": "./index.d.ts",
32
- "import": "./index.js",
33
- "default": "./index.js"
34
- },
35
- "./*": {
36
- "types": "./*.d.ts",
37
- "import": "./*.js",
38
- "default": "./*.js"
39
- }
40
- },
41
- "files": [
42
- "**/*",
43
- "dist",
44
- "README.md",
45
- "LICENSE",
46
- "!**/*.tsbuildinfo"
47
- ],
48
- "dependencies": {
49
- "lodash.debounce": "^4.0.8"
50
- },
51
- "peerDependencies": {
52
- "react": ">=18",
53
- "react-dom": ">=18",
54
- "@types/react": ">=18",
55
- "@types/lodash.debounce": "^4.0.9"
56
- },
57
- "peerDependenciesMeta": {
58
- "@types/react": {
59
- "optional": true
60
- },
61
- "@types/react-dom": {
62
- "optional": true
63
- },
64
- "@types/lodash.debounce": {
65
- "optional": true
66
- }
67
- }
68
- }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
@@ -1,23 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/lodash.debounce`
3
-
4
- # Summary
5
- This package contains type definitions for lodash.debounce (https://lodash.com).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash.debounce.
9
- ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash.debounce/index.d.ts)
10
- ````ts
11
- // Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts
12
-
13
- import { debounce } from "lodash";
14
- export = debounce;
15
-
16
- ````
17
-
18
- ### Additional Details
19
- * Last updated: Tue, 07 Nov 2023 09:09:38 GMT
20
- * Dependencies: [@types/lodash](https://npmjs.com/package/@types/lodash)
21
-
22
- # Credits
23
- These definitions were written by [Brian Zengel](https://github.com/bczengel), and [Ilya Mochalov](https://github.com/chrootsu).
@@ -1,4 +0,0 @@
1
- // Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts
2
-
3
- import { debounce } from "lodash";
4
- export = debounce;