@siberiacancode/reactuse 0.0.114 → 0.0.115
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/useClickOutside/useClickOutside.cjs.map +1 -1
- package/dist/cjs/hooks/useDoubleClick/useDoubleClick.cjs +2 -0
- package/dist/cjs/hooks/useDoubleClick/useDoubleClick.cjs.map +1 -0
- package/dist/cjs/hooks/useLongPress/useLongPress.cjs +1 -1
- package/dist/cjs/hooks/useLongPress/useLongPress.cjs.map +1 -1
- package/dist/cjs/hooks/useMouse/useMouse.cjs.map +1 -1
- package/dist/cjs/hooks/useParallax/useParallax.cjs +1 -1
- package/dist/cjs/hooks/useParallax/useParallax.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/hooks/useClickOutside/useClickOutside.mjs.map +1 -1
- package/dist/esm/hooks/useDoubleClick/useDoubleClick.mjs +29 -0
- package/dist/esm/hooks/useDoubleClick/useDoubleClick.mjs.map +1 -0
- package/dist/esm/hooks/useLongPress/useLongPress.mjs +30 -17
- package/dist/esm/hooks/useLongPress/useLongPress.mjs.map +1 -1
- package/dist/esm/hooks/useMouse/useMouse.mjs.map +1 -1
- package/dist/esm/hooks/useParallax/useParallax.mjs +90 -85
- package/dist/esm/hooks/useParallax/useParallax.mjs.map +1 -1
- package/dist/esm/index.mjs +253 -251
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useClickOutside/useClickOutside.d.ts +1 -1
- package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +38 -0
- package/dist/types/hooks/useLongPress/useLongPress.d.ts +27 -25
- package/package.json +1 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useActiveElement as r } from "./hooks/useActiveElement/useActiveElement.mjs";
|
|
2
2
|
import { useAsync as s } from "./hooks/useAsync/useAsync.mjs";
|
|
3
|
-
import { useBattery as
|
|
3
|
+
import { useBattery as u } from "./hooks/useBattery/useBattery.mjs";
|
|
4
4
|
import { useBluetooth as f } from "./hooks/useBluetooth/useBluetooth.mjs";
|
|
5
5
|
import { useBoolean as i } from "./hooks/useBoolean/useBoolean.mjs";
|
|
6
|
-
import { BREAKPOINTS_ANT_DESIGN as n, BREAKPOINTS_BOOTSTRAP_V5 as l, BREAKPOINTS_MANTINE as c, BREAKPOINTS_MASTER_CSS as S, BREAKPOINTS_MATERIAL_UI as T, BREAKPOINTS_PRIME_FLEX as g, BREAKPOINTS_QUASAR_V2 as d, BREAKPOINTS_SEMANTIC as E, BREAKPOINTS_TAILWIND as
|
|
6
|
+
import { BREAKPOINTS_ANT_DESIGN as n, BREAKPOINTS_BOOTSTRAP_V5 as l, BREAKPOINTS_MANTINE as c, BREAKPOINTS_MASTER_CSS as S, BREAKPOINTS_MATERIAL_UI as T, BREAKPOINTS_PRIME_FLEX as g, BREAKPOINTS_QUASAR_V2 as d, BREAKPOINTS_SEMANTIC as E, BREAKPOINTS_TAILWIND as C, useBreakpoints as P } from "./hooks/useBreakpoints/useBreakpoints.mjs";
|
|
7
7
|
import { useBrowserLanguage as R } from "./hooks/useBrowserLanguage/useBrowserLanguage.mjs";
|
|
8
|
-
import { useClickOutside as
|
|
9
|
-
import { useClipboard as
|
|
10
|
-
import { useConst as
|
|
11
|
-
import { COOKIE_EVENT as
|
|
8
|
+
import { useClickOutside as k } from "./hooks/useClickOutside/useClickOutside.mjs";
|
|
9
|
+
import { useClipboard as A } from "./hooks/useClipboard/useClipboard.mjs";
|
|
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 B, removeCookieItem as h, setCookie as K, setCookieItem as V, useCookie as F } 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";
|
|
@@ -18,122 +18,123 @@ import { useDebounceValue as $ } from "./hooks/useDebounceValue/useDebounceValue
|
|
|
18
18
|
import { useDefault as oe } from "./hooks/useDefault/useDefault.mjs";
|
|
19
19
|
import { useDeviceMotion as te } from "./hooks/useDeviceMotion/useDeviceMotion.mjs";
|
|
20
20
|
import { useDeviceOrientation as me } from "./hooks/useDeviceOrientation/useDeviceOrientation.mjs";
|
|
21
|
-
import { useDevicePixelRatio as
|
|
21
|
+
import { useDevicePixelRatio as pe } from "./hooks/useDevicePixelRatio/useDevicePixelRatio.mjs";
|
|
22
22
|
import { useDidUpdate as xe } from "./hooks/useDidUpdate/useDidUpdate.mjs";
|
|
23
23
|
import { useDisclosure as ae } from "./hooks/useDisclosure/useDisclosure.mjs";
|
|
24
24
|
import { useDisplayMedia as le } from "./hooks/useDisplayMedia/useDisplayMedia.mjs";
|
|
25
25
|
import { useDocumentEvent as Se } from "./hooks/useDocumentEvent/useDocumentEvent.mjs";
|
|
26
26
|
import { useDocumentTitle as ge } from "./hooks/useDocumentTitle/useDocumentTitle.mjs";
|
|
27
27
|
import { useDocumentVisibility as Ee } from "./hooks/useDocumentVisibility/useDocumentVisibility.mjs";
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
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 {
|
|
28
|
+
import { useDoubleClick as Pe } from "./hooks/useDoubleClick/useDoubleClick.mjs";
|
|
29
|
+
import { useElementSize as Re } from "./hooks/useElementSize/useElementSize.mjs";
|
|
30
|
+
import { useEvent as ke } from "./hooks/useEvent/useEvent.mjs";
|
|
31
|
+
import { useEventListener as Ae } from "./hooks/useEventListener/useEventListener.mjs";
|
|
32
|
+
import { useEyeDropper as De } from "./hooks/useEyeDropper/useEyeDropper.mjs";
|
|
33
|
+
import { useFavicon as be } from "./hooks/useFavicon/useFavicon.mjs";
|
|
34
|
+
import { useField as Ne } from "./hooks/useField/useField.mjs";
|
|
35
|
+
import { useFileDialog as Be } from "./hooks/useFileDialog/useFileDialog.mjs";
|
|
36
|
+
import { useFocus as Ke } from "./hooks/useFocus/useFocus.mjs";
|
|
37
|
+
import { useFps as Fe } from "./hooks/useFps/useFps.mjs";
|
|
38
|
+
import { useFullscreen as We } from "./hooks/useFullscreen/useFullscreen.mjs";
|
|
39
|
+
import { mapGamepadToXbox360Controller as Ge, useGamepad as He } from "./hooks/useGamepad/useGamepad.mjs";
|
|
40
|
+
import { useGeolocation as Qe } from "./hooks/useGeolocation/useGeolocation.mjs";
|
|
41
|
+
import { useHash as je } from "./hooks/useHash/useHash.mjs";
|
|
42
|
+
import { isHotkeyMatch as Je, useHotkeys as Ye } from "./hooks/useHotkeys/useHotkeys.mjs";
|
|
43
|
+
import { useHover as $e } from "./hooks/useHover/useHover.mjs";
|
|
44
|
+
import { useIdle as oo } from "./hooks/useIdle/useIdle.mjs";
|
|
45
|
+
import { useImage as to } from "./hooks/useImage/useImage.mjs";
|
|
46
|
+
import { useInfiniteScroll as mo } from "./hooks/useInfiniteScroll/useInfiniteScroll.mjs";
|
|
47
|
+
import { useIntersectionObserver as po } from "./hooks/useIntersectionObserver/useIntersectionObserver.mjs";
|
|
48
|
+
import { useInterval as xo } from "./hooks/useInterval/useInterval.mjs";
|
|
49
|
+
import { useIsFirstRender as ao } from "./hooks/useIsFirstRender/useIsFirstRender.mjs";
|
|
50
|
+
import { useIsomorphicLayoutEffect as lo } from "./hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
|
|
51
|
+
import { useKeyboard as So } from "./hooks/useKeyboard/useKeyboard.mjs";
|
|
52
|
+
import { useKeyPress as go } from "./hooks/useKeyPress/useKeyPress.mjs";
|
|
53
|
+
import { useKeyPressEvent as Co } from "./hooks/useKeyPressEvent/useKeyPressEvent.mjs";
|
|
54
|
+
import { useKeysPressed as Io } from "./hooks/useKeysPressed/useKeysPressed.mjs";
|
|
55
|
+
import { useLastChanged as Oo } from "./hooks/useLastChanged/useLastChanged.mjs";
|
|
56
|
+
import { useLatest as yo } from "./hooks/useLatest/useLatest.mjs";
|
|
57
|
+
import { useLess as vo } from "./hooks/useLess/useLess.mjs";
|
|
58
|
+
import { useList as _o } from "./hooks/useList/useList.mjs";
|
|
59
|
+
import { useLocalStorage as Mo } from "./hooks/useLocalStorage/useLocalStorage.mjs";
|
|
60
|
+
import { useLockCallback as Lo } from "./hooks/useLockCallback/useLockCallback.mjs";
|
|
61
|
+
import { useLogger as ho } from "./hooks/useLogger/useLogger.mjs";
|
|
62
|
+
import { useLongPress as Vo } from "./hooks/useLongPress/useLongPress.mjs";
|
|
63
|
+
import { useMap as wo } from "./hooks/useMap/useMap.mjs";
|
|
64
|
+
import { useMeasure as Uo } from "./hooks/useMeasure/useMeasure.mjs";
|
|
65
|
+
import { useMediaQuery as Ho } from "./hooks/useMediaQuery/useMediaQuery.mjs";
|
|
66
|
+
import { useMemory as Qo } from "./hooks/useMemory/useMemory.mjs";
|
|
67
|
+
import { useMount as jo } from "./hooks/useMount/useMount.mjs";
|
|
68
|
+
import { useMouse as Jo } from "./hooks/useMouse/useMouse.mjs";
|
|
69
|
+
import { useMutation as Zo } from "./hooks/useMutation/useMutation.mjs";
|
|
70
|
+
import { useMutationObserver as er } from "./hooks/useMutationObserver/useMutationObserver.mjs";
|
|
71
|
+
import { getConnection as rr, useNetwork as tr } from "./hooks/useNetwork/useNetwork.mjs";
|
|
72
|
+
import { useOffsetPagination as mr } from "./hooks/useOffsetPagination/useOffsetPagination.mjs";
|
|
73
|
+
import { useOnce as pr } from "./hooks/useOnce/useOnce.mjs";
|
|
74
|
+
import { useOnline as xr } from "./hooks/useOnline/useOnline.mjs";
|
|
75
|
+
import { getOperatingSystem as ar, useOperatingSystem as nr } from "./hooks/useOperatingSystem/useOperatingSystem.mjs";
|
|
76
|
+
import { useOptimistic as cr } from "./hooks/useOptimistic/useOptimistic.mjs";
|
|
77
|
+
import { useOrientation as Tr } from "./hooks/useOrientation/useOrientation.mjs";
|
|
78
|
+
import { useOtpCredential as dr } from "./hooks/useOtpCredential/useOtpCredential.mjs";
|
|
79
|
+
import { usePageLeave as Cr } from "./hooks/usePageLeave/usePageLeave.mjs";
|
|
80
|
+
import { Paint as Ir, Pointer as Rr, usePaint as Or } from "./hooks/usePaint/usePaint.mjs";
|
|
81
|
+
import { useParallax as yr } from "./hooks/useParallax/useParallax.mjs";
|
|
82
|
+
import { usePerformanceObserver as vr } from "./hooks/usePerformanceObserver/usePerformanceObserver.mjs";
|
|
83
|
+
import { usePermission as _r } from "./hooks/usePermission/usePermission.mjs";
|
|
84
|
+
import { usePointerLock as Mr } from "./hooks/usePointerLock/usePointerLock.mjs";
|
|
85
|
+
import { usePostMessage as Lr } from "./hooks/usePostMessage/usePostMessage.mjs";
|
|
86
|
+
import { usePreferredColorScheme as hr } from "./hooks/usePreferredColorScheme/usePreferredColorScheme.mjs";
|
|
87
|
+
import { usePreferredContrast as Vr } from "./hooks/usePreferredContrast/usePreferredContrast.mjs";
|
|
88
|
+
import { usePreferredDark as wr } from "./hooks/usePreferredDark/usePreferredDark.mjs";
|
|
89
|
+
import { usePreferredLanguages as Ur } from "./hooks/usePreferredLanguages/usePreferredLanguages.mjs";
|
|
90
|
+
import { usePreferredReducedMotion as Hr } from "./hooks/usePreferredReducedMotion/usePreferredReducedMotion.mjs";
|
|
91
|
+
import { usePrevious as Qr } from "./hooks/usePrevious/usePrevious.mjs";
|
|
92
|
+
import { useQuery as jr } from "./hooks/useQuery/useQuery.mjs";
|
|
93
|
+
import { useQueue as Jr } from "./hooks/useQueue/useQueue.mjs";
|
|
94
|
+
import { useRaf as Zr } from "./hooks/useRaf/useRaf.mjs";
|
|
95
|
+
import { useRafValue as et } from "./hooks/useRafValue/useRafValue.mjs";
|
|
96
|
+
import { useRefState as rt } from "./hooks/useRefState/useRefState.mjs";
|
|
97
|
+
import { useRenderCount as st } from "./hooks/useRenderCount/useRenderCount.mjs";
|
|
98
|
+
import { useRenderInfo as ut } from "./hooks/useRenderInfo/useRenderInfo.mjs";
|
|
99
|
+
import { useRerender as ft } from "./hooks/useRerender/useRerender.mjs";
|
|
100
|
+
import { useResizeObserver as it } from "./hooks/useResizeObserver/useResizeObserver.mjs";
|
|
101
|
+
import { useScreenOrientation as nt } from "./hooks/useScreenOrientation/useScreenOrientation.mjs";
|
|
102
|
+
import { SCRIPT_STATUS_ATTRIBUTE_NAME as ct, useScript as St } from "./hooks/useScript/useScript.mjs";
|
|
103
|
+
import { useScroll as gt } from "./hooks/useScroll/useScroll.mjs";
|
|
104
|
+
import { useScrollIntoView as Et } from "./hooks/useScrollIntoView/useScrollIntoView.mjs";
|
|
105
|
+
import { useScrollTo as Pt } from "./hooks/useScrollTo/useScrollTo.mjs";
|
|
106
|
+
import { useSessionStorage as Rt } from "./hooks/useSessionStorage/useSessionStorage.mjs";
|
|
107
|
+
import { useSet as kt } from "./hooks/useSet/useSet.mjs";
|
|
108
|
+
import { useShare as At } from "./hooks/useShare/useShare.mjs";
|
|
109
|
+
import { getSpeechRecognition as Dt, useSpeechRecognition as _t } from "./hooks/useSpeechRecognition/useSpeechRecognition.mjs";
|
|
110
|
+
import { useStateHistory as Mt } from "./hooks/useStateHistory/useStateHistory.mjs";
|
|
111
|
+
import { useStep as Lt } from "./hooks/useStep/useStep.mjs";
|
|
112
|
+
import { useSticky as ht } from "./hooks/useSticky/useSticky.mjs";
|
|
113
|
+
import { useStopwatch as Vt } from "./hooks/useStopwatch/useStopwatch.mjs";
|
|
114
|
+
import { STORAGE_EVENT as wt, dispatchStorageEvent as Wt, useStorage as Ut } from "./hooks/useStorage/useStorage.mjs";
|
|
115
|
+
import { useTextDirection as Ht } from "./hooks/useTextDirection/useTextDirection.mjs";
|
|
116
|
+
import { getRangesSelection as Qt, useTextSelection as Xt } from "./hooks/useTextSelection/useTextSelection.mjs";
|
|
117
|
+
import { useThrottleCallback as qt } from "./hooks/useThrottleCallback/useThrottleCallback.mjs";
|
|
118
|
+
import { useThrottleValue as Yt } from "./hooks/useThrottleValue/useThrottleValue.mjs";
|
|
119
|
+
import { useTime as $t } from "./hooks/useTime/useTime.mjs";
|
|
120
|
+
import { useTimeout as os } from "./hooks/useTimeout/useTimeout.mjs";
|
|
121
|
+
import { getTimeFromSeconds as ts, useTimer as ss } from "./hooks/useTimer/useTimer.mjs";
|
|
122
|
+
import { useToggle as us } from "./hooks/useToggle/useToggle.mjs";
|
|
123
|
+
import { useUnmount as fs } from "./hooks/useUnmount/useUnmount.mjs";
|
|
124
|
+
import { useVibrate as is } from "./hooks/useVibrate/useVibrate.mjs";
|
|
125
|
+
import { useWebSocket as ns } from "./hooks/useWebSocket/useWebSocket.mjs";
|
|
126
|
+
import { useWindowEvent as cs } from "./hooks/useWindowEvent/useWindowEvent.mjs";
|
|
127
|
+
import { useWindowFocus as Ts } from "./hooks/useWindowFocus/useWindowFocus.mjs";
|
|
128
|
+
import { scrollTo as ds, useWindowScroll as Es } from "./hooks/useWindowScroll/useWindowScroll.mjs";
|
|
129
|
+
import { useWindowSize as Ps } from "./hooks/useWindowSize/useWindowSize.mjs";
|
|
130
|
+
import { useWizard as Rs } from "./hooks/useWizard/useWizard.mjs";
|
|
131
|
+
import { copy as ks, legacyCopyToClipboard as ys } from "./utils/helpers/copy.mjs";
|
|
132
|
+
import { debounce as vs } from "./utils/helpers/debounce.mjs";
|
|
133
|
+
import { getDate as _s } from "./utils/helpers/getDate.mjs";
|
|
134
|
+
import { getElement as Ms, target as Ns, targetSymbol as Ls } from "./utils/helpers/getElement.mjs";
|
|
135
|
+
import { getRetry as hs } from "./utils/helpers/getRetry.mjs";
|
|
136
|
+
import { isTarget as Vs } from "./utils/helpers/isTarget.mjs";
|
|
137
|
+
import { throttle as ws } from "./utils/helpers/throttle.mjs";
|
|
137
138
|
export {
|
|
138
139
|
n as BREAKPOINTS_ANT_DESIGN,
|
|
139
140
|
l as BREAKPOINTS_BOOTSTRAP_V5,
|
|
@@ -143,50 +144,50 @@ export {
|
|
|
143
144
|
g as BREAKPOINTS_PRIME_FLEX,
|
|
144
145
|
d as BREAKPOINTS_QUASAR_V2,
|
|
145
146
|
E as BREAKPOINTS_SEMANTIC,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
C as BREAKPOINTS_TAILWIND,
|
|
148
|
+
b as COOKIE_EVENT,
|
|
149
|
+
Ir as Paint,
|
|
150
|
+
Rr as Pointer,
|
|
151
|
+
ct as SCRIPT_STATUS_ATTRIBUTE_NAME,
|
|
152
|
+
wt as STORAGE_EVENT,
|
|
152
153
|
W as clearCookies,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
154
|
+
ks as copy,
|
|
155
|
+
vs as debounce,
|
|
156
|
+
M as dispatchCookieEvent,
|
|
157
|
+
Wt as dispatchStorageEvent,
|
|
158
|
+
rr as getConnection,
|
|
159
|
+
N as getCookie,
|
|
159
160
|
L as getCookies,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
_s as getDate,
|
|
162
|
+
Ms as getElement,
|
|
163
|
+
ar as getOperatingSystem,
|
|
163
164
|
U as getParsedCookies,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
165
|
+
Qt as getRangesSelection,
|
|
166
|
+
hs as getRetry,
|
|
167
|
+
Dt as getSpeechRecognition,
|
|
168
|
+
ts as getTimeFromSeconds,
|
|
169
|
+
Je as isHotkeyMatch,
|
|
170
|
+
Vs as isTarget,
|
|
171
|
+
ys as legacyCopyToClipboard,
|
|
172
|
+
Ge as mapGamepadToXbox360Controller,
|
|
172
173
|
B as removeCookie,
|
|
173
174
|
h as removeCookieItem,
|
|
174
|
-
|
|
175
|
+
ds as scrollTo,
|
|
175
176
|
K as setCookie,
|
|
176
177
|
V as setCookieItem,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
Ns as target,
|
|
179
|
+
Ls as targetSymbol,
|
|
180
|
+
ws as throttle,
|
|
180
181
|
r as useActiveElement,
|
|
181
182
|
s as useAsync,
|
|
182
|
-
|
|
183
|
+
u as useBattery,
|
|
183
184
|
f as useBluetooth,
|
|
184
185
|
i as useBoolean,
|
|
185
|
-
|
|
186
|
+
P as useBreakpoints,
|
|
186
187
|
R as useBrowserLanguage,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
k as useClickOutside,
|
|
189
|
+
A as useClipboard,
|
|
190
|
+
D as useConst,
|
|
190
191
|
F as useCookie,
|
|
191
192
|
G as useCookies,
|
|
192
193
|
z as useCopy,
|
|
@@ -197,114 +198,115 @@ export {
|
|
|
197
198
|
oe as useDefault,
|
|
198
199
|
te as useDeviceMotion,
|
|
199
200
|
me as useDeviceOrientation,
|
|
200
|
-
|
|
201
|
+
pe as useDevicePixelRatio,
|
|
201
202
|
xe as useDidUpdate,
|
|
202
203
|
ae as useDisclosure,
|
|
203
204
|
le as useDisplayMedia,
|
|
204
205
|
Se as useDocumentEvent,
|
|
205
206
|
ge as useDocumentTitle,
|
|
206
207
|
Ee as useDocumentVisibility,
|
|
207
|
-
|
|
208
|
-
Re as
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
Be as
|
|
215
|
-
Ke as
|
|
216
|
-
Fe as
|
|
217
|
-
|
|
218
|
-
He as
|
|
219
|
-
Qe as
|
|
220
|
-
|
|
221
|
-
Ye as
|
|
222
|
-
$e as
|
|
223
|
-
oo as
|
|
224
|
-
to as
|
|
225
|
-
mo as
|
|
226
|
-
|
|
227
|
-
xo as
|
|
228
|
-
ao as
|
|
229
|
-
|
|
230
|
-
go as
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
Io as
|
|
234
|
-
Oo as
|
|
235
|
-
|
|
236
|
-
vo as
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
Lo as
|
|
240
|
-
ho as
|
|
241
|
-
Vo as
|
|
242
|
-
wo as
|
|
243
|
-
Uo as
|
|
244
|
-
Ho as
|
|
245
|
-
Qo as
|
|
246
|
-
jo as
|
|
247
|
-
Jo as
|
|
248
|
-
Zo as
|
|
249
|
-
|
|
250
|
-
tr as
|
|
251
|
-
mr as
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
nr as
|
|
255
|
-
cr as
|
|
256
|
-
Tr as
|
|
257
|
-
dr as
|
|
258
|
-
|
|
259
|
-
Or as
|
|
260
|
-
|
|
261
|
-
vr as
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
Lr as
|
|
265
|
-
hr as
|
|
266
|
-
Vr as
|
|
267
|
-
wr as
|
|
268
|
-
Ur as
|
|
269
|
-
Hr as
|
|
270
|
-
Qr as
|
|
271
|
-
jr as
|
|
272
|
-
Jr as
|
|
273
|
-
Zr as
|
|
274
|
-
et as
|
|
275
|
-
rt as
|
|
276
|
-
st as
|
|
277
|
-
|
|
278
|
-
ft as
|
|
279
|
-
it as
|
|
280
|
-
|
|
281
|
-
St as
|
|
282
|
-
gt as
|
|
283
|
-
Et as
|
|
284
|
-
|
|
285
|
-
Rt as
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
Lt as
|
|
291
|
-
ht as
|
|
292
|
-
|
|
293
|
-
Ut as
|
|
294
|
-
|
|
295
|
-
Xt as
|
|
296
|
-
qt as
|
|
297
|
-
Yt as
|
|
298
|
-
$t as
|
|
299
|
-
|
|
300
|
-
ss as
|
|
301
|
-
|
|
302
|
-
fs as
|
|
303
|
-
is as
|
|
304
|
-
ns as
|
|
305
|
-
cs as
|
|
306
|
-
|
|
307
|
-
Es as
|
|
308
|
-
|
|
208
|
+
Pe as useDoubleClick,
|
|
209
|
+
Re as useElementSize,
|
|
210
|
+
ke as useEvent,
|
|
211
|
+
Ae as useEventListener,
|
|
212
|
+
De as useEyeDropper,
|
|
213
|
+
be as useFavicon,
|
|
214
|
+
Ne as useField,
|
|
215
|
+
Be as useFileDialog,
|
|
216
|
+
Ke as useFocus,
|
|
217
|
+
Fe as useFps,
|
|
218
|
+
We as useFullscreen,
|
|
219
|
+
He as useGamepad,
|
|
220
|
+
Qe as useGeolocation,
|
|
221
|
+
je as useHash,
|
|
222
|
+
Ye as useHotkeys,
|
|
223
|
+
$e as useHover,
|
|
224
|
+
oo as useIdle,
|
|
225
|
+
to as useImage,
|
|
226
|
+
mo as useInfiniteScroll,
|
|
227
|
+
po as useIntersectionObserver,
|
|
228
|
+
xo as useInterval,
|
|
229
|
+
ao as useIsFirstRender,
|
|
230
|
+
lo as useIsomorphicLayoutEffect,
|
|
231
|
+
go as useKeyPress,
|
|
232
|
+
Co as useKeyPressEvent,
|
|
233
|
+
So as useKeyboard,
|
|
234
|
+
Io as useKeysPressed,
|
|
235
|
+
Oo as useLastChanged,
|
|
236
|
+
yo as useLatest,
|
|
237
|
+
vo as useLess,
|
|
238
|
+
_o as useList,
|
|
239
|
+
Mo as useLocalStorage,
|
|
240
|
+
Lo as useLockCallback,
|
|
241
|
+
ho as useLogger,
|
|
242
|
+
Vo as useLongPress,
|
|
243
|
+
wo as useMap,
|
|
244
|
+
Uo as useMeasure,
|
|
245
|
+
Ho as useMediaQuery,
|
|
246
|
+
Qo as useMemory,
|
|
247
|
+
jo as useMount,
|
|
248
|
+
Jo as useMouse,
|
|
249
|
+
Zo as useMutation,
|
|
250
|
+
er as useMutationObserver,
|
|
251
|
+
tr as useNetwork,
|
|
252
|
+
mr as useOffsetPagination,
|
|
253
|
+
pr as useOnce,
|
|
254
|
+
xr as useOnline,
|
|
255
|
+
nr as useOperatingSystem,
|
|
256
|
+
cr as useOptimistic,
|
|
257
|
+
Tr as useOrientation,
|
|
258
|
+
dr as useOtpCredential,
|
|
259
|
+
Cr as usePageLeave,
|
|
260
|
+
Or as usePaint,
|
|
261
|
+
yr as useParallax,
|
|
262
|
+
vr as usePerformanceObserver,
|
|
263
|
+
_r as usePermission,
|
|
264
|
+
Mr as usePointerLock,
|
|
265
|
+
Lr as usePostMessage,
|
|
266
|
+
hr as usePreferredColorScheme,
|
|
267
|
+
Vr as usePreferredContrast,
|
|
268
|
+
wr as usePreferredDark,
|
|
269
|
+
Ur as usePreferredLanguages,
|
|
270
|
+
Hr as usePreferredReducedMotion,
|
|
271
|
+
Qr as usePrevious,
|
|
272
|
+
jr as useQuery,
|
|
273
|
+
Jr as useQueue,
|
|
274
|
+
Zr as useRaf,
|
|
275
|
+
et as useRafValue,
|
|
276
|
+
rt as useRefState,
|
|
277
|
+
st as useRenderCount,
|
|
278
|
+
ut as useRenderInfo,
|
|
279
|
+
ft as useRerender,
|
|
280
|
+
it as useResizeObserver,
|
|
281
|
+
nt as useScreenOrientation,
|
|
282
|
+
St as useScript,
|
|
283
|
+
gt as useScroll,
|
|
284
|
+
Et as useScrollIntoView,
|
|
285
|
+
Pt as useScrollTo,
|
|
286
|
+
Rt as useSessionStorage,
|
|
287
|
+
kt as useSet,
|
|
288
|
+
At as useShare,
|
|
289
|
+
_t as useSpeechRecognition,
|
|
290
|
+
Mt as useStateHistory,
|
|
291
|
+
Lt as useStep,
|
|
292
|
+
ht as useSticky,
|
|
293
|
+
Vt as useStopwatch,
|
|
294
|
+
Ut as useStorage,
|
|
295
|
+
Ht as useTextDirection,
|
|
296
|
+
Xt as useTextSelection,
|
|
297
|
+
qt as useThrottleCallback,
|
|
298
|
+
Yt as useThrottleValue,
|
|
299
|
+
$t as useTime,
|
|
300
|
+
os as useTimeout,
|
|
301
|
+
ss as useTimer,
|
|
302
|
+
us as useToggle,
|
|
303
|
+
fs as useUnmount,
|
|
304
|
+
is as useVibrate,
|
|
305
|
+
ns as useWebSocket,
|
|
306
|
+
cs as useWindowEvent,
|
|
307
|
+
Ts as useWindowFocus,
|
|
308
|
+
Es as useWindowScroll,
|
|
309
|
+
Ps as useWindowSize,
|
|
310
|
+
Rs as useWizard
|
|
309
311
|
};
|
|
310
312
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -25,6 +25,7 @@ export * from './useDisplayMedia/useDisplayMedia';
|
|
|
25
25
|
export * from './useDocumentEvent/useDocumentEvent';
|
|
26
26
|
export * from './useDocumentTitle/useDocumentTitle';
|
|
27
27
|
export * from './useDocumentVisibility/useDocumentVisibility';
|
|
28
|
+
export * from './useDoubleClick/useDoubleClick';
|
|
28
29
|
export * from './useElementSize/useElementSize';
|
|
29
30
|
export * from './useEvent/useEvent';
|
|
30
31
|
export * from './useEventListener/useEventListener';
|
|
@@ -23,7 +23,7 @@ export interface UseClickOutside {
|
|
|
23
23
|
* @returns {(node: Target) => void} A React ref to attach to the target element
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
|
-
* const ref =
|
|
26
|
+
* const ref = useClickOutside<HTMLDivElement>(() => console.log('click outside'));
|
|
27
27
|
*
|
|
28
28
|
* @see {@link https://siberiacancode.github.io/reactuse/functions/hooks/useClickOutside.html}
|
|
29
29
|
*/
|