@oneplatformdev/hooks 0.1.0-11 → 0.1.0-110

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 (223) hide show
  1. package/CHANGELOG.md +419 -0
  2. package/index.d.ts +37 -0
  3. package/index.d.ts.map +1 -0
  4. package/package.json +13 -21
  5. package/useBoolean/index.d.ts +2 -0
  6. package/useBoolean/index.d.ts.map +1 -0
  7. package/useBoolean/index.js +4 -0
  8. package/useBoolean/useBoolean.d.ts +29 -0
  9. package/useBoolean/useBoolean.d.ts.map +1 -0
  10. package/useBoolean/useBoolean.js +16 -0
  11. package/useClickAnyWhere/index.d.ts +2 -0
  12. package/useClickAnyWhere/index.d.ts.map +1 -0
  13. package/useClickAnyWhere/index.js +4 -0
  14. package/useClickAnyWhere/useClickAnyWhere.d.ts +17 -0
  15. package/useClickAnyWhere/useClickAnyWhere.d.ts.map +1 -0
  16. package/useClickAnyWhere/useClickAnyWhere.js +9 -0
  17. package/useCopyToClipboard/index.d.ts +2 -0
  18. package/useCopyToClipboard/index.d.ts.map +1 -0
  19. package/useCopyToClipboard/index.js +4 -0
  20. package/useCopyToClipboard/useCopyToClipboard.d.ts +34 -0
  21. package/useCopyToClipboard/useCopyToClipboard.d.ts.map +1 -0
  22. package/useCopyToClipboard/useCopyToClipboard.js +16 -0
  23. package/useCountdown/index.d.ts +2 -0
  24. package/useCountdown/index.d.ts.map +1 -0
  25. package/useCountdown/index.js +4 -0
  26. package/useCountdown/useCountdown.d.ts +47 -0
  27. package/useCountdown/useCountdown.d.ts.map +1 -0
  28. package/useCountdown/useCountdown.js +33 -0
  29. package/useCounter/index.d.ts +2 -0
  30. package/useCounter/index.d.ts.map +1 -0
  31. package/useCounter/index.js +4 -0
  32. package/useCounter/useCounter.d.ts +28 -0
  33. package/useCounter/useCounter.d.ts.map +1 -0
  34. package/useCounter/useCounter.js +20 -0
  35. package/useDarkMode/index.d.ts +2 -0
  36. package/useDarkMode/index.d.ts.map +1 -0
  37. package/useDarkMode/index.js +4 -0
  38. package/useDarkMode/useDarkMode.d.ts +46 -0
  39. package/useDarkMode/useDarkMode.d.ts.map +1 -0
  40. package/useDarkMode/useDarkMode.js +38 -0
  41. package/useDebounceCallback/index.d.ts +3 -0
  42. package/useDebounceCallback/index.d.ts.map +1 -0
  43. package/useDebounceCallback/index.js +5 -0
  44. package/useDebounceCallback/useDebounceCallback.d.ts +62 -0
  45. package/useDebounceCallback/useDebounceCallback.d.ts.map +1 -0
  46. package/useDebounceCallback/useDebounceCallback.js +21 -0
  47. package/useDebounceValue/index.d.ts +2 -0
  48. package/useDebounceValue/index.d.ts.map +1 -0
  49. package/useDebounceValue/index.js +4 -0
  50. package/useDebounceValue/useDebounceValue.d.ts +40 -0
  51. package/useDebounceValue/useDebounceValue.d.ts.map +1 -0
  52. package/useDebounceValue/useDebounceValue.js +13 -0
  53. package/useDocumentTitle/index.d.ts +2 -0
  54. package/useDocumentTitle/index.d.ts.map +1 -0
  55. package/useDocumentTitle/index.js +4 -0
  56. package/useDocumentTitle/useDocumentTitle.d.ts +19 -0
  57. package/useDocumentTitle/useDocumentTitle.d.ts.map +1 -0
  58. package/useDocumentTitle/useDocumentTitle.js +16 -0
  59. package/useEventCallback/index.d.ts +2 -0
  60. package/useEventCallback/index.d.ts.map +1 -0
  61. package/useEventCallback/index.js +4 -0
  62. package/useEventCallback/useEventCallback.d.ts +18 -0
  63. package/useEventCallback/useEventCallback.d.ts.map +1 -0
  64. package/useEventCallback/useEventCallback.js +13 -0
  65. package/useEventListener/index.d.ts +2 -0
  66. package/useEventListener/index.d.ts.map +1 -0
  67. package/useEventListener/index.js +4 -0
  68. package/useEventListener/useEventListener.d.ts +9 -0
  69. package/useEventListener/useEventListener.d.ts.map +1 -0
  70. package/useEventListener/useEventListener.js +20 -0
  71. package/useHover/index.d.ts +2 -0
  72. package/useHover/index.d.ts.map +1 -0
  73. package/useHover/index.js +4 -0
  74. package/useHover/useHover.d.ts +17 -0
  75. package/useHover/useHover.d.ts.map +1 -0
  76. package/useHover/useHover.js +13 -0
  77. package/useIntersectionObserver/index.d.ts +2 -0
  78. package/useIntersectionObserver/index.d.ts.map +1 -0
  79. package/useIntersectionObserver/index.js +4 -0
  80. package/useIntersectionObserver/useIntersectionObserver.d.ts +72 -0
  81. package/useIntersectionObserver/useIntersectionObserver.d.ts.map +1 -0
  82. package/useIntersectionObserver/useIntersectionObserver.js +53 -0
  83. package/useInterval/index.d.ts +2 -0
  84. package/useInterval/index.d.ts.map +1 -0
  85. package/useInterval/index.js +4 -0
  86. package/useInterval/useInterval.d.ts +16 -0
  87. package/useInterval/useInterval.d.ts.map +1 -0
  88. package/useInterval/useInterval.js +20 -0
  89. package/useIsClient/index.d.ts +2 -0
  90. package/useIsClient/index.d.ts.map +1 -0
  91. package/useIsClient/index.js +4 -0
  92. package/useIsClient/useIsClient.d.ts +13 -0
  93. package/useIsClient/useIsClient.d.ts.map +1 -0
  94. package/useIsClient/useIsClient.js +10 -0
  95. package/useIsMobile/index.d.ts +3 -0
  96. package/useIsMobile/index.d.ts.map +1 -0
  97. package/useIsMobile/index.js +4 -0
  98. package/useIsMobile/types.d.ts +4 -0
  99. package/useIsMobile/types.d.ts.map +1 -0
  100. package/useIsMobile/types.js +1 -0
  101. package/useIsMobile/useIsMobile.d.ts +3 -0
  102. package/useIsMobile/useIsMobile.d.ts.map +1 -0
  103. package/useIsMobile/useIsMobile.js +16 -0
  104. package/useIsMounted/index.d.ts +2 -0
  105. package/useIsMounted/index.d.ts.map +1 -0
  106. package/useIsMounted/index.js +4 -0
  107. package/useIsMounted/useIsMounted.d.ts +2 -0
  108. package/useIsMounted/useIsMounted.d.ts.map +1 -0
  109. package/useIsMounted/useIsMounted.js +10 -0
  110. package/useIsomorphicLayoutEffect/index.d.ts +2 -0
  111. package/useIsomorphicLayoutEffect/index.d.ts.map +1 -0
  112. package/useIsomorphicLayoutEffect/index.js +4 -0
  113. package/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +16 -0
  114. package/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts.map +1 -0
  115. package/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +5 -0
  116. package/useLocalStorage/index.d.ts +2 -0
  117. package/useLocalStorage/index.d.ts.map +1 -0
  118. package/useLocalStorage/index.js +4 -0
  119. package/useLocalStorage/useLocalStorage.d.ts +39 -0
  120. package/useLocalStorage/useLocalStorage.d.ts.map +1 -0
  121. package/useLocalStorage/useLocalStorage.js +65 -0
  122. package/useLockBody/index.d.ts +2 -0
  123. package/useLockBody/index.d.ts.map +1 -0
  124. package/useLockBody/index.js +4 -0
  125. package/useLockBody/useLockBody.d.ts +2 -0
  126. package/useLockBody/useLockBody.d.ts.map +1 -0
  127. package/useLockBody/useLockBody.js +12 -0
  128. package/useMap/index.d.ts +2 -0
  129. package/useMap/index.d.ts.map +1 -0
  130. package/useMap/index.js +4 -0
  131. package/useMap/useMap.d.ts +48 -0
  132. package/useMap/useMap.d.ts.map +1 -0
  133. package/useMap/useMap.js +27 -0
  134. package/useMediaQuery/index.d.ts +2 -0
  135. package/useMediaQuery/index.d.ts.map +1 -0
  136. package/useMediaQuery/index.js +4 -0
  137. package/useMediaQuery/useMediaQuery.d.ts +29 -0
  138. package/useMediaQuery/useMediaQuery.d.ts.map +1 -0
  139. package/useMediaQuery/useMediaQuery.js +21 -0
  140. package/useOnClickOutside/index.d.ts +2 -0
  141. package/useOnClickOutside/index.d.ts.map +1 -0
  142. package/useOnClickOutside/index.js +4 -0
  143. package/useOnClickOutside/useOnClickOutside.d.ts +24 -0
  144. package/useOnClickOutside/useOnClickOutside.d.ts.map +1 -0
  145. package/useOnClickOutside/useOnClickOutside.js +17 -0
  146. package/useQueryString/index.d.ts +2 -0
  147. package/useQueryString/index.d.ts.map +1 -0
  148. package/useQueryString/index.js +4 -0
  149. package/useQueryString/useQueryString.d.ts +10 -0
  150. package/useQueryString/useQueryString.d.ts.map +1 -0
  151. package/useQueryString/useQueryString.js +10 -0
  152. package/useReadLocalStorage/index.d.ts +2 -0
  153. package/useReadLocalStorage/index.d.ts.map +1 -0
  154. package/useReadLocalStorage/index.js +4 -0
  155. package/useReadLocalStorage/useReadLocalStorage.d.ts +14 -0
  156. package/useReadLocalStorage/useReadLocalStorage.d.ts.map +1 -0
  157. package/useReadLocalStorage/useReadLocalStorage.js +48 -0
  158. package/useResizeObserver/index.d.ts +2 -0
  159. package/useResizeObserver/index.d.ts.map +1 -0
  160. package/useResizeObserver/index.js +4 -0
  161. package/useResizeObserver/useResizeObserver.d.ts +44 -0
  162. package/useResizeObserver/useResizeObserver.d.ts.map +1 -0
  163. package/useResizeObserver/useResizeObserver.js +31 -0
  164. package/useScreen/index.d.ts +2 -0
  165. package/useScreen/index.d.ts.map +1 -0
  166. package/useScreen/index.js +4 -0
  167. package/useScreen/useScreen.d.ts +20 -0
  168. package/useScreen/useScreen.d.ts.map +1 -0
  169. package/useScreen/useScreen.js +48 -0
  170. package/useScript/index.d.ts +2 -0
  171. package/useScript/index.d.ts.map +1 -0
  172. package/useScript/index.js +4 -0
  173. package/useScript/useScript.d.ts +24 -0
  174. package/useScript/useScript.d.ts.map +1 -0
  175. package/useScript/useScript.js +45 -0
  176. package/useScrollLock/index.d.ts +2 -0
  177. package/useScrollLock/index.d.ts.map +1 -0
  178. package/useScrollLock/index.js +4 -0
  179. package/useScrollLock/useScrollLock.d.ts +54 -0
  180. package/useScrollLock/useScrollLock.d.ts.map +1 -0
  181. package/useScrollLock/useScrollLock.js +26 -0
  182. package/useSessionStorage/index.d.ts +2 -0
  183. package/useSessionStorage/index.d.ts.map +1 -0
  184. package/useSessionStorage/index.js +4 -0
  185. package/useSessionStorage/useSessionStorage.d.ts +39 -0
  186. package/useSessionStorage/useSessionStorage.d.ts.map +1 -0
  187. package/useSessionStorage/useSessionStorage.js +65 -0
  188. package/useStep/index.d.ts +2 -0
  189. package/useStep/index.d.ts.map +1 -0
  190. package/useStep/index.js +4 -0
  191. package/useStep/useStep.d.ts +31 -0
  192. package/useStep/useStep.d.ts.map +1 -0
  193. package/useStep/useStep.js +34 -0
  194. package/useTernaryDarkMode/index.d.ts +2 -0
  195. package/useTernaryDarkMode/index.d.ts.map +1 -0
  196. package/useTernaryDarkMode/index.js +4 -0
  197. package/useTernaryDarkMode/useTernaryDarkMode.d.ts +46 -0
  198. package/useTernaryDarkMode/useTernaryDarkMode.d.ts.map +1 -0
  199. package/useTernaryDarkMode/useTernaryDarkMode.js +27 -0
  200. package/useTimeout/index.d.ts +2 -0
  201. package/useTimeout/index.d.ts.map +1 -0
  202. package/useTimeout/index.js +4 -0
  203. package/useTimeout/useTimeout.d.ts +17 -0
  204. package/useTimeout/useTimeout.d.ts.map +1 -0
  205. package/useTimeout/useTimeout.js +20 -0
  206. package/useToggle/index.d.ts +2 -0
  207. package/useToggle/index.d.ts.map +1 -0
  208. package/useToggle/index.js +4 -0
  209. package/useToggle/useToggle.d.ts +18 -0
  210. package/useToggle/useToggle.d.ts.map +1 -0
  211. package/useToggle/useToggle.js +10 -0
  212. package/useUnmount/index.d.ts +2 -0
  213. package/useUnmount/index.d.ts.map +1 -0
  214. package/useUnmount/index.js +4 -0
  215. package/useUnmount/useUnmount.d.ts +14 -0
  216. package/useUnmount/useUnmount.d.ts.map +1 -0
  217. package/useUnmount/useUnmount.js +13 -0
  218. package/useWindowSize/index.d.ts +2 -0
  219. package/useWindowSize/index.d.ts.map +1 -0
  220. package/useWindowSize/index.js +4 -0
  221. package/useWindowSize/useWindowSize.d.ts +30 -0
  222. package/useWindowSize/useWindowSize.d.ts.map +1 -0
  223. package/useWindowSize/useWindowSize.js +31 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,419 @@
1
+ ## 0.1.0-110 (2025-11-06)
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-109 (2025-11-06)
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-108 (2025-11-06)
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-107 (2025-11-03)
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-106 (2025-11-03)
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-105 (2025-10-22)
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-104 (2025-10-21)
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-103 (2025-10-21)
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-102 (2025-10-21)
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-101 (2025-10-21)
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-100 (2025-10-21)
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-99 (2025-10-21)
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-98 (2025-10-20)
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-97 (2025-10-20)
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-96 (2025-10-20)
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-95 (2025-10-20)
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-94 (2025-10-20)
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-93 (2025-10-13)
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-92 (2025-10-13)
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-91 (2025-10-13)
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-90 (2025-10-13)
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-89 (2025-10-13)
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-88 (2025-10-06)
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-87 (2025-10-04)
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-86 (2025-10-04)
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-85 (2025-10-04)
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-84 (2025-10-04)
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-83 (2025-10-03)
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-82 (2025-10-03)
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-81 (2025-10-03)
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-80 (2025-10-02)
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-79 (2025-10-02)
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-78 (2025-10-02)
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-77 (2025-10-02)
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-76 (2025-10-02)
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-75 (2025-10-02)
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-74 (2025-10-02)
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-73 (2025-10-02)
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-72 (2025-10-02)
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-71 (2025-10-02)
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-70 (2025-10-02)
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-69 (2025-10-02)
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-68 (2025-10-02)
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-67 (2025-09-16)
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-66 (2025-09-16)
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-65 (2025-09-16)
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-64 (2025-09-16)
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-63 (2025-09-16)
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-62 (2025-09-16)
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-61 (2025-09-16)
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-60 (2025-09-16)
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-59 (2025-09-16)
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-58 (2025-09-16)
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-57 (2025-09-16)
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-56 (2025-09-16)
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-55 (2025-09-16)
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-54 (2025-09-16)
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-53 (2025-09-16)
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-52 (2025-09-16)
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-51 (2025-09-16)
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-50 (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-49 (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-48 (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-47 (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-46 (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-45 (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-44 (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-43 (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-42 (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-41 (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-40 (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-39 (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-38 (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-37 (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-36 (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-35 (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-34 (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-33 (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-32 (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-31 (2025-09-15)
318
+
319
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
320
+
321
+ ## 0.1.0-30 (2025-09-15)
322
+
323
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
324
+
325
+ ## 0.1.0-29 (2025-09-15)
326
+
327
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
328
+
329
+ ## 0.1.0-28 (2025-09-15)
330
+
331
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
332
+
333
+ ## 0.1.0-26 (2025-09-15)
334
+
335
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
336
+
337
+ ## 0.1.0-25 (2025-09-15)
338
+
339
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
340
+
341
+ ## 0.1.0-24 (2025-09-15)
342
+
343
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
344
+
345
+ ## 0.1.0-23 (2025-09-15)
346
+
347
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
348
+
349
+ ## 0.1.0-22 (2025-09-15)
350
+
351
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
352
+
353
+ ## 0.1.0-21 (2025-09-15)
354
+
355
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
356
+
357
+ ## 0.1.0-20 (2025-09-15)
358
+
359
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
360
+
361
+ ## 0.1.0-19 (2025-09-15)
362
+
363
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
364
+
365
+ ## 0.1.0-18 (2025-09-15)
366
+
367
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
368
+
369
+ ## 0.1.0-17 (2025-09-15)
370
+
371
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
372
+
373
+ ## 0.1.0-16 (2025-09-15)
374
+
375
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
376
+
377
+ ## 0.1.0-14 (2025-09-15)
378
+
379
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
380
+
381
+ ## 0.1.0-13 (2025-09-15)
382
+
383
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
384
+
385
+ ## 0.1.0-12 (2025-09-15)
386
+
387
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
388
+
389
+ ## 0.1.0-11 (2025-09-15)
390
+
391
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
392
+
393
+ ## 0.1.0-10 (2025-09-11)
394
+
395
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
396
+
397
+ ## 0.1.0-9 (2025-09-11)
398
+
399
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
400
+
401
+ ## 0.1.0-8 (2025-09-11)
402
+
403
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
404
+
405
+ ## 0.1.0-7 (2025-09-11)
406
+
407
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
408
+
409
+ ## 0.1.0-6 (2025-09-11)
410
+
411
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
412
+
413
+ ## 0.1.0-5 (2025-09-11)
414
+
415
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
416
+
417
+ ## 0.1.0-4 (2025-09-11)
418
+
419
+ This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes.
package/index.d.ts ADDED
@@ -0,0 +1,37 @@
1
+ export * from './useBoolean';
2
+ export * from './useClickAnyWhere';
3
+ export * from './useCopyToClipboard';
4
+ export * from './useCountdown';
5
+ export * from './useCounter';
6
+ export * from './useDarkMode';
7
+ export * from './useDebounceCallback';
8
+ export * from './useDebounceValue';
9
+ export * from './useDocumentTitle';
10
+ export * from './useEventCallback';
11
+ export * from './useEventListener';
12
+ export * from './useHover';
13
+ export * from './useIntersectionObserver';
14
+ export * from './useInterval';
15
+ export * from './useIsClient';
16
+ export * from './useIsMobile';
17
+ export * from './useIsMounted';
18
+ export * from './useIsomorphicLayoutEffect';
19
+ export * from './useLocalStorage';
20
+ export * from './useLockBody';
21
+ export * from './useMap';
22
+ export * from './useMediaQuery';
23
+ export * from './useOnClickOutside';
24
+ export * from './useReadLocalStorage';
25
+ export * from './useResizeObserver';
26
+ export * from './useScreen';
27
+ export * from './useScript';
28
+ export * from './useScrollLock';
29
+ export * from './useSessionStorage';
30
+ export * from './useStep';
31
+ export * from './useTernaryDarkMode';
32
+ export * from './useTimeout';
33
+ export * from './useToggle';
34
+ export * from './useUnmount';
35
+ export * from './useWindowSize';
36
+ export * from './useQueryString';
37
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/hooks",
3
- "version": "0.1.0-11",
3
+ "version": "0.1.0-110",
4
4
  "description": "React hook library",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [
@@ -21,40 +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
- }
40
- },
29
+ "sideEffects": false,
41
30
  "publishConfig": {
42
31
  "directory": "dist"
43
32
  },
44
33
  "files": [
34
+ "**/*",
45
35
  "dist",
46
- "README.md",
47
- "LICENSE",
48
- "package.json",
49
36
  "!**/*.tsbuildinfo"
50
37
  ],
51
38
  "dependencies": {
52
39
  "lodash.debounce": "^4.0.8"
53
40
  },
54
41
  "peerDependencies": {
55
- "react": ">=18",
56
- "react-dom": ">=18",
57
- "@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",
58
50
  "@types/lodash.debounce": "^4.0.9"
59
51
  },
60
52
  "peerDependenciesMeta": {
@@ -0,0 +1,2 @@
1
+ export * from './useBoolean';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useBoolean/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { useBoolean as r } from "./useBoolean.js";
2
+ export {
3
+ r as useBoolean
4
+ };
@@ -0,0 +1,29 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ /** The useBoolean return type. */
3
+ type UseBooleanReturn = {
4
+ /** The current boolean state value. */
5
+ value: boolean;
6
+ /** Function to set the boolean state directly. */
7
+ setValue: Dispatch<SetStateAction<boolean>>;
8
+ /** Function to set the boolean state to `true`. */
9
+ setTrue: () => void;
10
+ /** Function to set the boolean state to `false`. */
11
+ setFalse: () => void;
12
+ /** Function to toggle the boolean state. */
13
+ toggle: () => void;
14
+ };
15
+ /**
16
+ * Custom hook that handles boolean state with useful utility functions.
17
+ * @param {boolean} [defaultValue] - The initial value for the boolean state (default is `false`).
18
+ * @returns {UseBooleanReturn} An object containing the boolean state value and utility functions to manipulate the state.
19
+ * @throws Will throw an error if `defaultValue` is an invalid boolean value.
20
+ * @public
21
+ * @see [Documentation](https://usehooks-ts.com/react-hook/use-boolean)
22
+ * @example
23
+ * ```tsx
24
+ * const { value, setTrue, setFalse, toggle } = useBoolean(true);
25
+ * ```
26
+ */
27
+ export declare function useBoolean(defaultValue?: boolean): UseBooleanReturn;
28
+ export {};
29
+ //# sourceMappingURL=useBoolean.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBoolean.d.ts","sourceRoot":"","sources":["../../src/useBoolean/useBoolean.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,kCAAkC;AAClC,KAAK,gBAAgB,GAAG;IACtB,uCAAuC;IACvC,KAAK,EAAE,OAAO,CAAA;IACd,kDAAkD;IAClD,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IAC3C,mDAAmD;IACnD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,oDAAoD;IACpD,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,4CAA4C;IAC5C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,YAAY,UAAQ,GAAG,gBAAgB,CAmBjE"}
@@ -0,0 +1,16 @@
1
+ import { useState as n, useCallback as t } from "react";
2
+ function c(o = !1) {
3
+ if (typeof o != "boolean")
4
+ throw new Error("defaultValue must be `true` or `false`");
5
+ const [s, e] = n(o), r = t(() => {
6
+ e(!0);
7
+ }, []), a = t(() => {
8
+ e(!1);
9
+ }, []), l = t(() => {
10
+ e((u) => !u);
11
+ }, []);
12
+ return { value: s, setValue: e, setTrue: r, setFalse: a, toggle: l };
13
+ }
14
+ export {
15
+ c as useBoolean
16
+ };
@@ -0,0 +1,2 @@
1
+ export * from './useClickAnyWhere';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useClickAnyWhere/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { useClickAnyWhere as o } from "./useClickAnyWhere.js";
2
+ export {
3
+ o as useClickAnyWhere
4
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Custom hook that handles click events anywhere on the document.
3
+ * @param {Function} handler - The function to be called when a click event is detected anywhere on the document.
4
+ * @public
5
+ * @see [Documentation](https://usehooks-ts.com/react-hook/use-click-any-where)
6
+ * @example
7
+ * ```tsx
8
+ * const handleClick = (event) => {
9
+ * console.log('Document clicked!', event);
10
+ * };
11
+ *
12
+ * // Attach click event handler to document
13
+ * useClickAnywhere(handleClick);
14
+ * ```
15
+ */
16
+ export declare function useClickAnyWhere(handler: (event: MouseEvent) => void): void;
17
+ //# sourceMappingURL=useClickAnyWhere.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useClickAnyWhere.d.ts","sourceRoot":"","sources":["../../src/useClickAnyWhere/useClickAnyWhere.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,QAIpE"}
@@ -0,0 +1,9 @@
1
+ import { useEventListener as n } from "../useEventListener/useEventListener.js";
2
+ function t(e) {
3
+ n("click", (i) => {
4
+ e(i);
5
+ });
6
+ }
7
+ export {
8
+ t as useClickAnyWhere
9
+ };
@@ -0,0 +1,2 @@
1
+ export * from './useCopyToClipboard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useCopyToClipboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { useCopyToClipboard as r } from "./useCopyToClipboard.js";
2
+ export {
3
+ r as useCopyToClipboard
4
+ };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * The copied text as `string` or `null` if nothing has been copied yet.
3
+ */
4
+ type CopiedValue = string | null;
5
+ /**
6
+ * Function to copy text to the clipboard.
7
+ * @param text - The text to copy to the clipboard.
8
+ * @returns {Promise<boolean>} A promise that resolves to `true` if the text was copied successfully, or `false` otherwise.
9
+ */
10
+ type CopyFn = (text: string) => Promise<boolean>;
11
+ /**
12
+ * Custom hook that copies text to the clipboard using the [`Clipboard API`](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API).
13
+ * @returns {[CopiedValue, CopyFn]} An tuple containing the copied text and a function to copy text to the clipboard.
14
+ * @public
15
+ * @see [Documentation](https://usehooks-ts.com/react-hook/use-copy-to-clipboard)
16
+ * @example
17
+ * ```tsx
18
+ * const [copiedText, copyToClipboard] = useCopyToClipboard();
19
+ * const textToCopy = 'Hello, world!';
20
+ *
21
+ * // Attempt to copy text to the clipboard
22
+ * copyToClipboard(textToCopy)
23
+ * .then(success => {
24
+ * if (success) {
25
+ * console.log(`Text "${textToCopy}" copied to clipboard successfully.`);
26
+ * } else {
27
+ * console.error('Failed to copy text to clipboard.');
28
+ * }
29
+ * });
30
+ * ```
31
+ */
32
+ export declare function useCopyToClipboard(): [CopiedValue, CopyFn];
33
+ export {};
34
+ //# sourceMappingURL=useCopyToClipboard.d.ts.map