@siberiacancode/reactuse 0.0.115 → 0.0.117
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.
- package/dist/cjs/hooks/useActiveElement/useActiveElement.cjs.map +1 -1
- package/dist/cjs/hooks/useDidUpdate/useDidUpdate.cjs +1 -1
- package/dist/cjs/hooks/useDidUpdate/useDidUpdate.cjs.map +1 -1
- package/dist/cjs/hooks/useDoubleClick/useDoubleClick.cjs.map +1 -1
- package/dist/cjs/hooks/useFul/useFul.cjs +2 -0
- package/dist/cjs/hooks/useFul/useFul.cjs.map +1 -0
- package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.cjs.map +1 -1
- package/dist/cjs/hooks/useSpeechSynthesis/useSpeechSynthesis.cjs +2 -0
- package/dist/cjs/hooks/useSpeechSynthesis/useSpeechSynthesis.cjs.map +1 -0
- package/dist/cjs/hooks/useWakeLock/useWakeLock.cjs +2 -0
- package/dist/cjs/hooks/useWakeLock/useWakeLock.cjs.map +1 -0
- package/dist/cjs/hooks/useWindowFocus/useWindowFocus.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/hooks/useActiveElement/useActiveElement.mjs.map +1 -1
- package/dist/esm/hooks/useDidUpdate/useDidUpdate.mjs +14 -13
- package/dist/esm/hooks/useDidUpdate/useDidUpdate.mjs.map +1 -1
- package/dist/esm/hooks/useDoubleClick/useDoubleClick.mjs.map +1 -1
- package/dist/esm/hooks/useFul/useFul.mjs +8 -0
- package/dist/esm/hooks/useFul/useFul.mjs.map +1 -0
- package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.mjs.map +1 -1
- package/dist/esm/hooks/useSpeechSynthesis/useSpeechSynthesis.mjs +56 -0
- package/dist/esm/hooks/useSpeechSynthesis/useSpeechSynthesis.mjs.map +1 -0
- package/dist/esm/hooks/useWakeLock/useWakeLock.mjs +24 -0
- package/dist/esm/hooks/useWakeLock/useWakeLock.mjs.map +1 -0
- package/dist/esm/hooks/useWindowFocus/useWindowFocus.mjs.map +1 -1
- package/dist/esm/index.mjs +231 -225
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/hooks/index.d.ts +3 -0
- package/dist/types/hooks/useActiveElement/useActiveElement.d.ts +2 -0
- package/dist/types/hooks/useDidUpdate/useDidUpdate.d.ts +1 -1
- package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +3 -4
- package/dist/types/hooks/useIntersectionObserver/useIntersectionObserver.d.ts +2 -0
- package/dist/types/hooks/useSpeechSynthesis/useSpeechSynthesis.d.ts +59 -0
- package/dist/types/hooks/useWakeLock/useWakeLock.d.ts +32 -0
- package/dist/types/hooks/useWindowFocus/useWindowFocus.d.ts +2 -0
- package/package.json +1 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { useBrowserLanguage as R } from "./hooks/useBrowserLanguage/useBrowserLa
|
|
|
8
8
|
import { useClickOutside as k } from "./hooks/useClickOutside/useClickOutside.mjs";
|
|
9
9
|
import { useClipboard as A } from "./hooks/useClipboard/useClipboard.mjs";
|
|
10
10
|
import { useConst as D } from "./hooks/useConst/useConst.mjs";
|
|
11
|
-
import { COOKIE_EVENT as b, dispatchCookieEvent as M, getCookie as N, getCookies as L, removeCookie as
|
|
11
|
+
import { COOKIE_EVENT as b, dispatchCookieEvent as M, getCookie as N, getCookies as L, removeCookie as h, removeCookieItem as B, setCookie as K, setCookieItem as F, useCookie as V } from "./hooks/useCookie/useCookie.mjs";
|
|
12
12
|
import { clearCookies as W, getParsedCookies as U, useCookies as G } from "./hooks/useCookies/useCookies.mjs";
|
|
13
13
|
import { useCopy as z } from "./hooks/useCopy/useCopy.mjs";
|
|
14
14
|
import { useCounter as X } from "./hooks/useCounter/useCounter.mjs";
|
|
@@ -32,109 +32,112 @@ import { useEventListener as Ae } from "./hooks/useEventListener/useEventListene
|
|
|
32
32
|
import { useEyeDropper as De } from "./hooks/useEyeDropper/useEyeDropper.mjs";
|
|
33
33
|
import { useFavicon as be } from "./hooks/useFavicon/useFavicon.mjs";
|
|
34
34
|
import { useField as Ne } from "./hooks/useField/useField.mjs";
|
|
35
|
-
import { useFileDialog as
|
|
35
|
+
import { useFileDialog as he } from "./hooks/useFileDialog/useFileDialog.mjs";
|
|
36
36
|
import { useFocus as Ke } from "./hooks/useFocus/useFocus.mjs";
|
|
37
|
-
import { useFps as
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
37
|
+
import { useFps as Ve } from "./hooks/useFps/useFps.mjs";
|
|
38
|
+
import { useFul as We } from "./hooks/useFul/useFul.mjs";
|
|
39
|
+
import { useFullscreen as Ge } from "./hooks/useFullscreen/useFullscreen.mjs";
|
|
40
|
+
import { mapGamepadToXbox360Controller as ze, useGamepad as Qe } from "./hooks/useGamepad/useGamepad.mjs";
|
|
41
|
+
import { useGeolocation as je } from "./hooks/useGeolocation/useGeolocation.mjs";
|
|
42
|
+
import { useHash as Je } from "./hooks/useHash/useHash.mjs";
|
|
43
|
+
import { isHotkeyMatch as Ze, useHotkeys as $e } from "./hooks/useHotkeys/useHotkeys.mjs";
|
|
44
|
+
import { useHover as oo } from "./hooks/useHover/useHover.mjs";
|
|
45
|
+
import { useIdle as to } from "./hooks/useIdle/useIdle.mjs";
|
|
46
|
+
import { useImage as mo } from "./hooks/useImage/useImage.mjs";
|
|
47
|
+
import { useInfiniteScroll as po } from "./hooks/useInfiniteScroll/useInfiniteScroll.mjs";
|
|
48
|
+
import { useIntersectionObserver as xo } from "./hooks/useIntersectionObserver/useIntersectionObserver.mjs";
|
|
49
|
+
import { useInterval as ao } from "./hooks/useInterval/useInterval.mjs";
|
|
50
|
+
import { useIsFirstRender as lo } from "./hooks/useIsFirstRender/useIsFirstRender.mjs";
|
|
51
|
+
import { useIsomorphicLayoutEffect as So } from "./hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
|
|
52
|
+
import { useKeyboard as go } from "./hooks/useKeyboard/useKeyboard.mjs";
|
|
53
|
+
import { useKeyPress as Co } from "./hooks/useKeyPress/useKeyPress.mjs";
|
|
54
|
+
import { useKeyPressEvent as Io } from "./hooks/useKeyPressEvent/useKeyPressEvent.mjs";
|
|
55
|
+
import { useKeysPressed as Oo } from "./hooks/useKeysPressed/useKeysPressed.mjs";
|
|
56
|
+
import { useLastChanged as yo } from "./hooks/useLastChanged/useLastChanged.mjs";
|
|
57
|
+
import { useLatest as vo } from "./hooks/useLatest/useLatest.mjs";
|
|
58
|
+
import { useLess as _o } from "./hooks/useLess/useLess.mjs";
|
|
59
|
+
import { useList as Mo } from "./hooks/useList/useList.mjs";
|
|
60
|
+
import { useLocalStorage as Lo } from "./hooks/useLocalStorage/useLocalStorage.mjs";
|
|
61
|
+
import { useLockCallback as Bo } from "./hooks/useLockCallback/useLockCallback.mjs";
|
|
62
|
+
import { useLogger as Fo } from "./hooks/useLogger/useLogger.mjs";
|
|
63
|
+
import { useLongPress as wo } from "./hooks/useLongPress/useLongPress.mjs";
|
|
64
|
+
import { useMap as Uo } from "./hooks/useMap/useMap.mjs";
|
|
65
|
+
import { useMeasure as Ho } from "./hooks/useMeasure/useMeasure.mjs";
|
|
66
|
+
import { useMediaQuery as Qo } from "./hooks/useMediaQuery/useMediaQuery.mjs";
|
|
67
|
+
import { useMemory as jo } from "./hooks/useMemory/useMemory.mjs";
|
|
68
|
+
import { useMount as Jo } from "./hooks/useMount/useMount.mjs";
|
|
69
|
+
import { useMouse as Zo } from "./hooks/useMouse/useMouse.mjs";
|
|
70
|
+
import { useMutation as er } from "./hooks/useMutation/useMutation.mjs";
|
|
71
|
+
import { useMutationObserver as rr } from "./hooks/useMutationObserver/useMutationObserver.mjs";
|
|
72
|
+
import { getConnection as sr, useNetwork as mr } from "./hooks/useNetwork/useNetwork.mjs";
|
|
73
|
+
import { useOffsetPagination as pr } from "./hooks/useOffsetPagination/useOffsetPagination.mjs";
|
|
74
|
+
import { useOnce as xr } from "./hooks/useOnce/useOnce.mjs";
|
|
75
|
+
import { useOnline as ar } from "./hooks/useOnline/useOnline.mjs";
|
|
76
|
+
import { getOperatingSystem as lr, useOperatingSystem as cr } from "./hooks/useOperatingSystem/useOperatingSystem.mjs";
|
|
77
|
+
import { useOptimistic as Tr } from "./hooks/useOptimistic/useOptimistic.mjs";
|
|
78
|
+
import { useOrientation as dr } from "./hooks/useOrientation/useOrientation.mjs";
|
|
79
|
+
import { useOtpCredential as Cr } from "./hooks/useOtpCredential/useOtpCredential.mjs";
|
|
80
|
+
import { usePageLeave as Ir } from "./hooks/usePageLeave/usePageLeave.mjs";
|
|
81
|
+
import { Paint as Or, Pointer as kr, usePaint as yr } from "./hooks/usePaint/usePaint.mjs";
|
|
82
|
+
import { useParallax as vr } from "./hooks/useParallax/useParallax.mjs";
|
|
83
|
+
import { usePerformanceObserver as _r } from "./hooks/usePerformanceObserver/usePerformanceObserver.mjs";
|
|
84
|
+
import { usePermission as Mr } from "./hooks/usePermission/usePermission.mjs";
|
|
85
|
+
import { usePointerLock as Lr } from "./hooks/usePointerLock/usePointerLock.mjs";
|
|
86
|
+
import { usePostMessage as Br } from "./hooks/usePostMessage/usePostMessage.mjs";
|
|
87
|
+
import { usePreferredColorScheme as Fr } from "./hooks/usePreferredColorScheme/usePreferredColorScheme.mjs";
|
|
88
|
+
import { usePreferredContrast as wr } from "./hooks/usePreferredContrast/usePreferredContrast.mjs";
|
|
89
|
+
import { usePreferredDark as Ur } from "./hooks/usePreferredDark/usePreferredDark.mjs";
|
|
90
|
+
import { usePreferredLanguages as Hr } from "./hooks/usePreferredLanguages/usePreferredLanguages.mjs";
|
|
91
|
+
import { usePreferredReducedMotion as Qr } from "./hooks/usePreferredReducedMotion/usePreferredReducedMotion.mjs";
|
|
92
|
+
import { usePrevious as jr } from "./hooks/usePrevious/usePrevious.mjs";
|
|
93
|
+
import { useQuery as Jr } from "./hooks/useQuery/useQuery.mjs";
|
|
94
|
+
import { useQueue as Zr } from "./hooks/useQueue/useQueue.mjs";
|
|
95
|
+
import { useRaf as et } from "./hooks/useRaf/useRaf.mjs";
|
|
96
|
+
import { useRafValue as rt } from "./hooks/useRafValue/useRafValue.mjs";
|
|
97
|
+
import { useRefState as st } from "./hooks/useRefState/useRefState.mjs";
|
|
98
|
+
import { useRenderCount as ut } from "./hooks/useRenderCount/useRenderCount.mjs";
|
|
99
|
+
import { useRenderInfo as ft } from "./hooks/useRenderInfo/useRenderInfo.mjs";
|
|
100
|
+
import { useRerender as it } from "./hooks/useRerender/useRerender.mjs";
|
|
101
|
+
import { useResizeObserver as nt } from "./hooks/useResizeObserver/useResizeObserver.mjs";
|
|
102
|
+
import { useScreenOrientation as ct } from "./hooks/useScreenOrientation/useScreenOrientation.mjs";
|
|
103
|
+
import { SCRIPT_STATUS_ATTRIBUTE_NAME as Tt, useScript as gt } from "./hooks/useScript/useScript.mjs";
|
|
104
|
+
import { useScroll as Et } from "./hooks/useScroll/useScroll.mjs";
|
|
105
|
+
import { useScrollIntoView as Pt } from "./hooks/useScrollIntoView/useScrollIntoView.mjs";
|
|
106
|
+
import { useScrollTo as Rt } from "./hooks/useScrollTo/useScrollTo.mjs";
|
|
107
|
+
import { useSessionStorage as kt } from "./hooks/useSessionStorage/useSessionStorage.mjs";
|
|
108
|
+
import { useSet as At } from "./hooks/useSet/useSet.mjs";
|
|
109
|
+
import { useShare as Dt } from "./hooks/useShare/useShare.mjs";
|
|
110
|
+
import { getSpeechRecognition as bt, useSpeechRecognition as Mt } from "./hooks/useSpeechRecognition/useSpeechRecognition.mjs";
|
|
111
|
+
import { useSpeechSynthesis as Lt } from "./hooks/useSpeechSynthesis/useSpeechSynthesis.mjs";
|
|
112
|
+
import { useStateHistory as Bt } from "./hooks/useStateHistory/useStateHistory.mjs";
|
|
113
|
+
import { useStep as Ft } from "./hooks/useStep/useStep.mjs";
|
|
114
|
+
import { useSticky as wt } from "./hooks/useSticky/useSticky.mjs";
|
|
115
|
+
import { useStopwatch as Ut } from "./hooks/useStopwatch/useStopwatch.mjs";
|
|
116
|
+
import { STORAGE_EVENT as Ht, dispatchStorageEvent as zt, useStorage as Qt } from "./hooks/useStorage/useStorage.mjs";
|
|
117
|
+
import { useTextDirection as jt } from "./hooks/useTextDirection/useTextDirection.mjs";
|
|
118
|
+
import { getRangesSelection as Jt, useTextSelection as Yt } from "./hooks/useTextSelection/useTextSelection.mjs";
|
|
119
|
+
import { useThrottleCallback as $t } from "./hooks/useThrottleCallback/useThrottleCallback.mjs";
|
|
120
|
+
import { useThrottleValue as os } from "./hooks/useThrottleValue/useThrottleValue.mjs";
|
|
121
|
+
import { useTime as ts } from "./hooks/useTime/useTime.mjs";
|
|
122
|
+
import { useTimeout as ms } from "./hooks/useTimeout/useTimeout.mjs";
|
|
123
|
+
import { getTimeFromSeconds as ps, useTimer as fs } from "./hooks/useTimer/useTimer.mjs";
|
|
124
|
+
import { useToggle as is } from "./hooks/useToggle/useToggle.mjs";
|
|
125
|
+
import { useUnmount as ns } from "./hooks/useUnmount/useUnmount.mjs";
|
|
126
|
+
import { useVibrate as cs } from "./hooks/useVibrate/useVibrate.mjs";
|
|
127
|
+
import { useWakeLock as Ts } from "./hooks/useWakeLock/useWakeLock.mjs";
|
|
128
|
+
import { useWebSocket as ds } from "./hooks/useWebSocket/useWebSocket.mjs";
|
|
129
|
+
import { useWindowEvent as Cs } from "./hooks/useWindowEvent/useWindowEvent.mjs";
|
|
130
|
+
import { useWindowFocus as Is } from "./hooks/useWindowFocus/useWindowFocus.mjs";
|
|
131
|
+
import { scrollTo as Os, useWindowScroll as ks } from "./hooks/useWindowScroll/useWindowScroll.mjs";
|
|
132
|
+
import { useWindowSize as As } from "./hooks/useWindowSize/useWindowSize.mjs";
|
|
133
|
+
import { useWizard as Ds } from "./hooks/useWizard/useWizard.mjs";
|
|
134
|
+
import { copy as bs, legacyCopyToClipboard as Ms } from "./utils/helpers/copy.mjs";
|
|
135
|
+
import { debounce as Ls } from "./utils/helpers/debounce.mjs";
|
|
136
|
+
import { getDate as Bs } from "./utils/helpers/getDate.mjs";
|
|
137
|
+
import { getElement as Fs, target as Vs, targetSymbol as ws } from "./utils/helpers/getElement.mjs";
|
|
138
|
+
import { getRetry as Us } from "./utils/helpers/getRetry.mjs";
|
|
139
|
+
import { isTarget as Hs } from "./utils/helpers/isTarget.mjs";
|
|
140
|
+
import { throttle as Qs } from "./utils/helpers/throttle.mjs";
|
|
138
141
|
export {
|
|
139
142
|
n as BREAKPOINTS_ANT_DESIGN,
|
|
140
143
|
l as BREAKPOINTS_BOOTSTRAP_V5,
|
|
@@ -146,38 +149,38 @@ export {
|
|
|
146
149
|
E as BREAKPOINTS_SEMANTIC,
|
|
147
150
|
C as BREAKPOINTS_TAILWIND,
|
|
148
151
|
b as COOKIE_EVENT,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
Or as Paint,
|
|
153
|
+
kr as Pointer,
|
|
154
|
+
Tt as SCRIPT_STATUS_ATTRIBUTE_NAME,
|
|
155
|
+
Ht as STORAGE_EVENT,
|
|
153
156
|
W as clearCookies,
|
|
154
|
-
|
|
155
|
-
|
|
157
|
+
bs as copy,
|
|
158
|
+
Ls as debounce,
|
|
156
159
|
M as dispatchCookieEvent,
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
zt as dispatchStorageEvent,
|
|
161
|
+
sr as getConnection,
|
|
159
162
|
N as getCookie,
|
|
160
163
|
L as getCookies,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
+
Bs as getDate,
|
|
165
|
+
Fs as getElement,
|
|
166
|
+
lr as getOperatingSystem,
|
|
164
167
|
U as getParsedCookies,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
Jt as getRangesSelection,
|
|
169
|
+
Us as getRetry,
|
|
170
|
+
bt as getSpeechRecognition,
|
|
171
|
+
ps as getTimeFromSeconds,
|
|
172
|
+
Ze as isHotkeyMatch,
|
|
173
|
+
Hs as isTarget,
|
|
174
|
+
Ms as legacyCopyToClipboard,
|
|
175
|
+
ze as mapGamepadToXbox360Controller,
|
|
176
|
+
h as removeCookie,
|
|
177
|
+
B as removeCookieItem,
|
|
178
|
+
Os as scrollTo,
|
|
176
179
|
K as setCookie,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
F as setCookieItem,
|
|
181
|
+
Vs as target,
|
|
182
|
+
ws as targetSymbol,
|
|
183
|
+
Qs as throttle,
|
|
181
184
|
r as useActiveElement,
|
|
182
185
|
s as useAsync,
|
|
183
186
|
u as useBattery,
|
|
@@ -188,7 +191,7 @@ export {
|
|
|
188
191
|
k as useClickOutside,
|
|
189
192
|
A as useClipboard,
|
|
190
193
|
D as useConst,
|
|
191
|
-
|
|
194
|
+
V as useCookie,
|
|
192
195
|
G as useCookies,
|
|
193
196
|
z as useCopy,
|
|
194
197
|
X as useCounter,
|
|
@@ -212,101 +215,104 @@ export {
|
|
|
212
215
|
De as useEyeDropper,
|
|
213
216
|
be as useFavicon,
|
|
214
217
|
Ne as useField,
|
|
215
|
-
|
|
218
|
+
he as useFileDialog,
|
|
216
219
|
Ke as useFocus,
|
|
217
|
-
|
|
218
|
-
We as
|
|
219
|
-
|
|
220
|
-
Qe as
|
|
221
|
-
je as
|
|
222
|
-
|
|
223
|
-
$e as
|
|
224
|
-
oo as
|
|
225
|
-
to as
|
|
226
|
-
mo as
|
|
227
|
-
po as
|
|
228
|
-
xo as
|
|
229
|
-
ao as
|
|
230
|
-
lo as
|
|
231
|
-
|
|
232
|
-
Co as
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
Oo as
|
|
236
|
-
yo as
|
|
237
|
-
vo as
|
|
238
|
-
_o as
|
|
239
|
-
Mo as
|
|
240
|
-
Lo as
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
wo as
|
|
244
|
-
Uo as
|
|
245
|
-
Ho as
|
|
246
|
-
Qo as
|
|
247
|
-
jo as
|
|
248
|
-
Jo as
|
|
249
|
-
Zo as
|
|
250
|
-
er as
|
|
251
|
-
|
|
252
|
-
mr as
|
|
253
|
-
pr as
|
|
254
|
-
xr as
|
|
255
|
-
|
|
256
|
-
cr as
|
|
257
|
-
Tr as
|
|
258
|
-
dr as
|
|
259
|
-
Cr as
|
|
260
|
-
|
|
261
|
-
yr as
|
|
262
|
-
vr as
|
|
263
|
-
_r as
|
|
264
|
-
Mr as
|
|
265
|
-
Lr as
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
wr as
|
|
269
|
-
Ur as
|
|
270
|
-
Hr as
|
|
271
|
-
Qr as
|
|
272
|
-
jr as
|
|
273
|
-
Jr as
|
|
274
|
-
Zr as
|
|
275
|
-
et as
|
|
276
|
-
rt as
|
|
277
|
-
st as
|
|
278
|
-
ut as
|
|
279
|
-
ft as
|
|
280
|
-
it as
|
|
281
|
-
nt as
|
|
282
|
-
|
|
283
|
-
gt as
|
|
284
|
-
Et as
|
|
285
|
-
Pt as
|
|
286
|
-
Rt as
|
|
287
|
-
kt as
|
|
288
|
-
At as
|
|
289
|
-
|
|
290
|
-
Mt as
|
|
291
|
-
Lt as
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
Yt as
|
|
299
|
-
$t as
|
|
300
|
-
os as
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
fs as
|
|
304
|
-
is as
|
|
305
|
-
ns as
|
|
306
|
-
cs as
|
|
307
|
-
Ts as
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
220
|
+
Ve as useFps,
|
|
221
|
+
We as useFul,
|
|
222
|
+
Ge as useFullscreen,
|
|
223
|
+
Qe as useGamepad,
|
|
224
|
+
je as useGeolocation,
|
|
225
|
+
Je as useHash,
|
|
226
|
+
$e as useHotkeys,
|
|
227
|
+
oo as useHover,
|
|
228
|
+
to as useIdle,
|
|
229
|
+
mo as useImage,
|
|
230
|
+
po as useInfiniteScroll,
|
|
231
|
+
xo as useIntersectionObserver,
|
|
232
|
+
ao as useInterval,
|
|
233
|
+
lo as useIsFirstRender,
|
|
234
|
+
So as useIsomorphicLayoutEffect,
|
|
235
|
+
Co as useKeyPress,
|
|
236
|
+
Io as useKeyPressEvent,
|
|
237
|
+
go as useKeyboard,
|
|
238
|
+
Oo as useKeysPressed,
|
|
239
|
+
yo as useLastChanged,
|
|
240
|
+
vo as useLatest,
|
|
241
|
+
_o as useLess,
|
|
242
|
+
Mo as useList,
|
|
243
|
+
Lo as useLocalStorage,
|
|
244
|
+
Bo as useLockCallback,
|
|
245
|
+
Fo as useLogger,
|
|
246
|
+
wo as useLongPress,
|
|
247
|
+
Uo as useMap,
|
|
248
|
+
Ho as useMeasure,
|
|
249
|
+
Qo as useMediaQuery,
|
|
250
|
+
jo as useMemory,
|
|
251
|
+
Jo as useMount,
|
|
252
|
+
Zo as useMouse,
|
|
253
|
+
er as useMutation,
|
|
254
|
+
rr as useMutationObserver,
|
|
255
|
+
mr as useNetwork,
|
|
256
|
+
pr as useOffsetPagination,
|
|
257
|
+
xr as useOnce,
|
|
258
|
+
ar as useOnline,
|
|
259
|
+
cr as useOperatingSystem,
|
|
260
|
+
Tr as useOptimistic,
|
|
261
|
+
dr as useOrientation,
|
|
262
|
+
Cr as useOtpCredential,
|
|
263
|
+
Ir as usePageLeave,
|
|
264
|
+
yr as usePaint,
|
|
265
|
+
vr as useParallax,
|
|
266
|
+
_r as usePerformanceObserver,
|
|
267
|
+
Mr as usePermission,
|
|
268
|
+
Lr as usePointerLock,
|
|
269
|
+
Br as usePostMessage,
|
|
270
|
+
Fr as usePreferredColorScheme,
|
|
271
|
+
wr as usePreferredContrast,
|
|
272
|
+
Ur as usePreferredDark,
|
|
273
|
+
Hr as usePreferredLanguages,
|
|
274
|
+
Qr as usePreferredReducedMotion,
|
|
275
|
+
jr as usePrevious,
|
|
276
|
+
Jr as useQuery,
|
|
277
|
+
Zr as useQueue,
|
|
278
|
+
et as useRaf,
|
|
279
|
+
rt as useRafValue,
|
|
280
|
+
st as useRefState,
|
|
281
|
+
ut as useRenderCount,
|
|
282
|
+
ft as useRenderInfo,
|
|
283
|
+
it as useRerender,
|
|
284
|
+
nt as useResizeObserver,
|
|
285
|
+
ct as useScreenOrientation,
|
|
286
|
+
gt as useScript,
|
|
287
|
+
Et as useScroll,
|
|
288
|
+
Pt as useScrollIntoView,
|
|
289
|
+
Rt as useScrollTo,
|
|
290
|
+
kt as useSessionStorage,
|
|
291
|
+
At as useSet,
|
|
292
|
+
Dt as useShare,
|
|
293
|
+
Mt as useSpeechRecognition,
|
|
294
|
+
Lt as useSpeechSynthesis,
|
|
295
|
+
Bt as useStateHistory,
|
|
296
|
+
Ft as useStep,
|
|
297
|
+
wt as useSticky,
|
|
298
|
+
Ut as useStopwatch,
|
|
299
|
+
Qt as useStorage,
|
|
300
|
+
jt as useTextDirection,
|
|
301
|
+
Yt as useTextSelection,
|
|
302
|
+
$t as useThrottleCallback,
|
|
303
|
+
os as useThrottleValue,
|
|
304
|
+
ts as useTime,
|
|
305
|
+
ms as useTimeout,
|
|
306
|
+
fs as useTimer,
|
|
307
|
+
is as useToggle,
|
|
308
|
+
ns as useUnmount,
|
|
309
|
+
cs as useVibrate,
|
|
310
|
+
Ts as useWakeLock,
|
|
311
|
+
ds as useWebSocket,
|
|
312
|
+
Cs as useWindowEvent,
|
|
313
|
+
Is as useWindowFocus,
|
|
314
|
+
ks as useWindowScroll,
|
|
315
|
+
As as useWindowSize,
|
|
316
|
+
Ds as useWizard
|
|
311
317
|
};
|
|
312
318
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -35,6 +35,7 @@ export * from './useField/useField';
|
|
|
35
35
|
export * from './useFileDialog/useFileDialog';
|
|
36
36
|
export * from './useFocus/useFocus';
|
|
37
37
|
export * from './useFps/useFps';
|
|
38
|
+
export * from './useFul/useFul';
|
|
38
39
|
export * from './useFullscreen/useFullscreen';
|
|
39
40
|
export * from './useGamepad/useGamepad';
|
|
40
41
|
export * from './useGeolocation/useGeolocation';
|
|
@@ -107,6 +108,7 @@ export * from './useSessionStorage/useSessionStorage';
|
|
|
107
108
|
export * from './useSet/useSet';
|
|
108
109
|
export * from './useShare/useShare';
|
|
109
110
|
export * from './useSpeechRecognition/useSpeechRecognition';
|
|
111
|
+
export * from './useSpeechSynthesis/useSpeechSynthesis';
|
|
110
112
|
export * from './useStateHistory/useStateHistory';
|
|
111
113
|
export * from './useStep/useStep';
|
|
112
114
|
export * from './useSticky/useSticky';
|
|
@@ -122,6 +124,7 @@ export * from './useTimer/useTimer';
|
|
|
122
124
|
export * from './useToggle/useToggle';
|
|
123
125
|
export * from './useUnmount/useUnmount';
|
|
124
126
|
export * from './useVibrate/useVibrate';
|
|
127
|
+
export * from './useWakeLock/useWakeLock';
|
|
125
128
|
export * from './useWebSocket/useWebSocket';
|
|
126
129
|
export * from './useWindowEvent/useWindowEvent';
|
|
127
130
|
export * from './useWindowFocus/useWindowFocus';
|
|
@@ -7,5 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* const activeElement = useActiveElement();
|
|
10
|
+
*
|
|
11
|
+
* @see {@link https://siberiacancode.github.io/reactuse/functions/hooks/useActiveElement.html}
|
|
10
12
|
*/
|
|
11
13
|
export declare const useActiveElement: <ActiveElement extends HTMLElement>() => ActiveElement | null;
|
|
@@ -8,6 +8,6 @@ import { DependencyList, EffectCallback } from 'react';
|
|
|
8
8
|
* @param {DependencyList} [deps] The dependencies list for the effect
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
-
* useDidUpdate(() => console.log("effect runs on updates"),
|
|
11
|
+
* useDidUpdate(() => console.log("effect runs on updates"), deps);
|
|
12
12
|
*/
|
|
13
13
|
export declare const useDidUpdate: (effect: EffectCallback, deps?: DependencyList) => void;
|
|
@@ -7,10 +7,7 @@ export interface UseDoubleClickOptions {
|
|
|
7
7
|
}
|
|
8
8
|
export interface UseDoubleClick {
|
|
9
9
|
(target: HookTarget, callback: (event: DoubleClickEvents) => void, options?: UseDoubleClickOptions): boolean;
|
|
10
|
-
<Target extends Element>(callback: (event: DoubleClickEvents) => void, options?: UseDoubleClickOptions, target?: never):
|
|
11
|
-
ref: StateRef<Target>;
|
|
12
|
-
clicked: boolean;
|
|
13
|
-
};
|
|
10
|
+
<Target extends Element>(callback: (event: DoubleClickEvents) => void, options?: UseDoubleClickOptions, target?: never): StateRef<Target>;
|
|
14
11
|
}
|
|
15
12
|
/**
|
|
16
13
|
* @name useDoubleClick
|
|
@@ -34,5 +31,7 @@ export interface UseDoubleClick {
|
|
|
34
31
|
*
|
|
35
32
|
* @example
|
|
36
33
|
* const ref = useDoubleClick(() => console.log('double clicked'));
|
|
34
|
+
*
|
|
35
|
+
* @see {@link https://siberiacancode.github.io/reactuse/functions/hooks/useDoubleClick.html}
|
|
37
36
|
*/
|
|
38
37
|
export declare const useDoubleClick: UseDoubleClick;
|
|
@@ -22,6 +22,8 @@ export interface UseIntersectionObserver {
|
|
|
22
22
|
* @description - Hook that gives you intersection observer state
|
|
23
23
|
* @category Browser
|
|
24
24
|
*
|
|
25
|
+
* @browserapi IntersectionObserver https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver
|
|
26
|
+
*
|
|
25
27
|
* @overload
|
|
26
28
|
* @param {HookTarget} target The target element to detect intersection
|
|
27
29
|
* @param {boolean} [options.enabled=true] The IntersectionObserver options
|