@siberiacancode/reactuse 0.0.113 → 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/useDocumentEvent/useDocumentEvent.cjs +1 -1
- package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.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/useEventListener/useEventListener.cjs +1 -1
- package/dist/cjs/hooks/useEventListener/useEventListener.cjs.map +1 -1
- 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/hooks/useSpeechRecognition/useSpeechRecognition.cjs +2 -0
- package/dist/cjs/hooks/useSpeechRecognition/useSpeechRecognition.cjs.map +1 -0
- package/dist/cjs/hooks/useWindowEvent/useWindowEvent.cjs +1 -1
- package/dist/cjs/hooks/useWindowEvent/useWindowEvent.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/useDocumentEvent/useDocumentEvent.mjs +4 -3
- package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.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/useEventListener/useEventListener.mjs +15 -15
- package/dist/esm/hooks/useEventListener/useEventListener.mjs.map +1 -1
- 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/hooks/useSpeechRecognition/useSpeechRecognition.mjs +41 -0
- package/dist/esm/hooks/useSpeechRecognition/useSpeechRecognition.mjs.map +1 -0
- package/dist/esm/hooks/useWindowEvent/useWindowEvent.mjs +4 -3
- package/dist/esm/hooks/useWindowEvent/useWindowEvent.mjs.map +1 -1
- package/dist/esm/index.mjs +257 -252
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useClickOutside/useClickOutside.d.ts +2 -0
- package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +38 -0
- package/dist/types/hooks/useEventListener/useEventListener.d.ts +5 -5
- package/dist/types/hooks/useLongPress/useLongPress.d.ts +27 -25
- package/dist/types/hooks/useSpeechRecognition/useSpeechRecognition.d.ts +69 -0
- package/package.json +2 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -3,12 +3,12 @@ import { useAsync as s } from "./hooks/useAsync/useAsync.mjs";
|
|
|
3
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
|
|
7
|
-
import { useBrowserLanguage as
|
|
8
|
-
import { useClickOutside as
|
|
9
|
-
import { useClipboard as
|
|
10
|
-
import { useConst as
|
|
11
|
-
import { COOKIE_EVENT 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
|
+
import { useBrowserLanguage as R } from "./hooks/useBrowserLanguage/useBrowserLanguage.mjs";
|
|
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";
|
|
@@ -23,168 +23,171 @@ 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
|
-
import { useDocumentTitle as
|
|
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 {
|
|
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";
|
|
136
138
|
export {
|
|
137
139
|
n as BREAKPOINTS_ANT_DESIGN,
|
|
138
140
|
l as BREAKPOINTS_BOOTSTRAP_V5,
|
|
139
141
|
c as BREAKPOINTS_MANTINE,
|
|
140
142
|
S as BREAKPOINTS_MASTER_CSS,
|
|
141
143
|
T as BREAKPOINTS_MATERIAL_UI,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
+
g as BREAKPOINTS_PRIME_FLEX,
|
|
145
|
+
d as BREAKPOINTS_QUASAR_V2,
|
|
144
146
|
E as BREAKPOINTS_SEMANTIC,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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,
|
|
151
153
|
W as clearCookies,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
ks as copy,
|
|
155
|
+
vs as debounce,
|
|
156
|
+
M as dispatchCookieEvent,
|
|
157
|
+
Wt as dispatchStorageEvent,
|
|
158
|
+
rr as getConnection,
|
|
159
|
+
N as getCookie,
|
|
158
160
|
L as getCookies,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
_s as getDate,
|
|
162
|
+
Ms as getElement,
|
|
163
|
+
ar as getOperatingSystem,
|
|
162
164
|
U as getParsedCookies,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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,
|
|
170
173
|
B as removeCookie,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
+
h as removeCookieItem,
|
|
175
|
+
ds as scrollTo,
|
|
176
|
+
K as setCookie,
|
|
174
177
|
V as setCookieItem,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
+
Ns as target,
|
|
179
|
+
Ls as targetSymbol,
|
|
180
|
+
ws as throttle,
|
|
178
181
|
r as useActiveElement,
|
|
179
182
|
s as useAsync,
|
|
180
183
|
u as useBattery,
|
|
181
184
|
f as useBluetooth,
|
|
182
185
|
i as useBoolean,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
P as useBreakpoints,
|
|
187
|
+
R as useBrowserLanguage,
|
|
188
|
+
k as useClickOutside,
|
|
189
|
+
A as useClipboard,
|
|
190
|
+
D as useConst,
|
|
188
191
|
F as useCookie,
|
|
189
192
|
G as useCookies,
|
|
190
193
|
z as useCopy,
|
|
@@ -200,108 +203,110 @@ export {
|
|
|
200
203
|
ae as useDisclosure,
|
|
201
204
|
le as useDisplayMedia,
|
|
202
205
|
Se as useDocumentEvent,
|
|
203
|
-
|
|
206
|
+
ge as useDocumentTitle,
|
|
204
207
|
Ee as useDocumentVisibility,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
Be as
|
|
213
|
-
|
|
214
|
-
Fe as
|
|
215
|
-
|
|
216
|
-
He as
|
|
217
|
-
Qe as
|
|
218
|
-
|
|
219
|
-
Ye as
|
|
220
|
-
$e as
|
|
221
|
-
oo as
|
|
222
|
-
to as
|
|
223
|
-
mo as
|
|
224
|
-
po as
|
|
225
|
-
xo as
|
|
226
|
-
ao as
|
|
227
|
-
|
|
228
|
-
go as
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
Io as
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
vo as
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
Lo as
|
|
238
|
-
|
|
239
|
-
Vo as
|
|
240
|
-
wo as
|
|
241
|
-
Uo as
|
|
242
|
-
Ho as
|
|
243
|
-
Qo as
|
|
244
|
-
jo as
|
|
245
|
-
Jo as
|
|
246
|
-
Zo as
|
|
247
|
-
|
|
248
|
-
tr as
|
|
249
|
-
mr as
|
|
250
|
-
pr as
|
|
251
|
-
|
|
252
|
-
nr as
|
|
253
|
-
cr as
|
|
254
|
-
Tr as
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
vr as
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
Lr as
|
|
263
|
-
|
|
264
|
-
Vr as
|
|
265
|
-
wr as
|
|
266
|
-
Ur as
|
|
267
|
-
Hr as
|
|
268
|
-
Qr as
|
|
269
|
-
jr as
|
|
270
|
-
Jr as
|
|
271
|
-
Zr as
|
|
272
|
-
et as
|
|
273
|
-
rt as
|
|
274
|
-
st as
|
|
275
|
-
ut as
|
|
276
|
-
ft as
|
|
277
|
-
it as
|
|
278
|
-
|
|
279
|
-
St as
|
|
280
|
-
|
|
281
|
-
Et as
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
_t as
|
|
287
|
-
Mt as
|
|
288
|
-
|
|
289
|
-
ht as
|
|
290
|
-
|
|
291
|
-
Ut as
|
|
292
|
-
Ht as
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
$t as
|
|
297
|
-
os as
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
cs as
|
|
304
|
-
Ts as
|
|
305
|
-
|
|
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
|
|
306
311
|
};
|
|
307
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';
|
|
@@ -105,6 +106,7 @@ export * from './useScrollTo/useScrollTo';
|
|
|
105
106
|
export * from './useSessionStorage/useSessionStorage';
|
|
106
107
|
export * from './useSet/useSet';
|
|
107
108
|
export * from './useShare/useShare';
|
|
109
|
+
export * from './useSpeechRecognition/useSpeechRecognition';
|
|
108
110
|
export * from './useStateHistory/useStateHistory';
|
|
109
111
|
export * from './useStep/useStep';
|
|
110
112
|
export * from './useSticky/useSticky';
|
|
@@ -24,5 +24,7 @@ export interface UseClickOutside {
|
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* const ref = useClickOutside<HTMLDivElement>(() => console.log('click outside'));
|
|
27
|
+
*
|
|
28
|
+
* @see {@link https://siberiacancode.github.io/reactuse/functions/hooks/useClickOutside.html}
|
|
27
29
|
*/
|
|
28
30
|
export declare const useClickOutside: UseClickOutside;
|