@siberiacancode/reactuse 0.1.0 → 0.1.1
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/useDidUpdate/useDidUpdate.cjs.map +1 -1
- package/dist/cjs/hooks/useDropZone/useDropZone.cjs +2 -0
- package/dist/cjs/hooks/useDropZone/useDropZone.cjs.map +1 -0
- package/dist/cjs/hooks/useEventSource/useEventSource.cjs +2 -0
- package/dist/cjs/hooks/useEventSource/useEventSource.cjs.map +1 -0
- package/dist/cjs/hooks/useHover/useHover.cjs +1 -1
- package/dist/cjs/hooks/useHover/useHover.cjs.map +1 -1
- package/dist/cjs/hooks/useQuery/useQuery.cjs +1 -1
- package/dist/cjs/hooks/useQuery/useQuery.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/hooks/useDidUpdate/useDidUpdate.mjs.map +1 -1
- package/dist/esm/hooks/useDropZone/useDropZone.mjs +50 -0
- package/dist/esm/hooks/useDropZone/useDropZone.mjs.map +1 -0
- package/dist/esm/hooks/useEventSource/useEventSource.mjs +52 -0
- package/dist/esm/hooks/useEventSource/useEventSource.mjs.map +1 -0
- package/dist/esm/hooks/useHover/useHover.mjs +9 -6
- package/dist/esm/hooks/useHover/useHover.mjs.map +1 -1
- package/dist/esm/hooks/useQuery/useQuery.mjs +27 -29
- package/dist/esm/hooks/useQuery/useQuery.mjs.map +1 -1
- package/dist/esm/index.mjs +260 -256
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useDropZone/useDropZone.d.ts +80 -0
- package/dist/types/hooks/useEventSource/useEventSource.d.ts +47 -0
- package/dist/types/hooks/useHover/useHover.d.ts +11 -4
- package/dist/types/hooks/useQuery/useQuery.d.ts +0 -1
- package/package.json +2 -6
package/dist/esm/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 m } 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
|
|
6
|
+
import { BREAKPOINTS_ANT_DESIGN as a, 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 E, BREAKPOINTS_SEMANTIC as d, BREAKPOINTS_TAILWIND as C, useBreakpoints as P } from "./hooks/useBreakpoints/useBreakpoints.mjs";
|
|
7
7
|
import { useBrowserLanguage as R } from "./hooks/useBrowserLanguage/useBrowserLanguage.mjs";
|
|
8
8
|
import { useClickOutside as k } from "./hooks/useClickOutside/useClickOutside.mjs";
|
|
9
9
|
import { useClipboard as A } from "./hooks/useClipboard/useClipboard.mjs";
|
|
@@ -12,178 +12,180 @@ import { COOKIE_EVENT as b, dispatchCookieEvent as M, getCookie as N, getCookies
|
|
|
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";
|
|
15
|
-
import { useCssVar as
|
|
16
|
-
import { useDebounceCallback as
|
|
15
|
+
import { useCssVar as j } from "./hooks/useCssVar/useCssVar.mjs";
|
|
16
|
+
import { useDebounceCallback as J } from "./hooks/useDebounceCallback/useDebounceCallback.mjs";
|
|
17
17
|
import { useDebounceValue as $ } from "./hooks/useDebounceValue/useDebounceValue.mjs";
|
|
18
18
|
import { useDefault as oe } from "./hooks/useDefault/useDefault.mjs";
|
|
19
19
|
import { useDeviceMotion as te } from "./hooks/useDeviceMotion/useDeviceMotion.mjs";
|
|
20
|
-
import { useDeviceOrientation as
|
|
20
|
+
import { useDeviceOrientation as ue } from "./hooks/useDeviceOrientation/useDeviceOrientation.mjs";
|
|
21
21
|
import { useDevicePixelRatio as pe } from "./hooks/useDevicePixelRatio/useDevicePixelRatio.mjs";
|
|
22
22
|
import { useDidUpdate as xe } from "./hooks/useDidUpdate/useDidUpdate.mjs";
|
|
23
|
-
import { useDisclosure as
|
|
23
|
+
import { useDisclosure as ne } 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
|
-
import { useDocumentVisibility as
|
|
27
|
+
import { useDocumentVisibility as de } from "./hooks/useDocumentVisibility/useDocumentVisibility.mjs";
|
|
28
28
|
import { useDoubleClick as Pe } from "./hooks/useDoubleClick/useDoubleClick.mjs";
|
|
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 {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
29
|
+
import { useDropZone as Re } from "./hooks/useDropZone/useDropZone.mjs";
|
|
30
|
+
import { useElementSize as ke } from "./hooks/useElementSize/useElementSize.mjs";
|
|
31
|
+
import { useEvent as Ae } from "./hooks/useEvent/useEvent.mjs";
|
|
32
|
+
import { useEventListener as De } from "./hooks/useEventListener/useEventListener.mjs";
|
|
33
|
+
import { useEventSource as be } from "./hooks/useEventSource/useEventSource.mjs";
|
|
34
|
+
import { useEyeDropper as Ne } from "./hooks/useEyeDropper/useEyeDropper.mjs";
|
|
35
|
+
import { useFavicon as he } from "./hooks/useFavicon/useFavicon.mjs";
|
|
36
|
+
import { useField as Ke } from "./hooks/useField/useField.mjs";
|
|
37
|
+
import { useFileDialog as Ve } from "./hooks/useFileDialog/useFileDialog.mjs";
|
|
38
|
+
import { useFocus as We } from "./hooks/useFocus/useFocus.mjs";
|
|
39
|
+
import { useFps as Ge } from "./hooks/useFps/useFps.mjs";
|
|
40
|
+
import { useFul as ze } from "./hooks/useFul/useFul.mjs";
|
|
41
|
+
import { useFullscreen as Xe } from "./hooks/useFullscreen/useFullscreen.mjs";
|
|
42
|
+
import { mapGamepadToXbox360Controller as je, useGamepad as qe } from "./hooks/useGamepad/useGamepad.mjs";
|
|
43
|
+
import { useGeolocation as Ye } from "./hooks/useGeolocation/useGeolocation.mjs";
|
|
44
|
+
import { useHash as eo } from "./hooks/useHash/useHash.mjs";
|
|
45
|
+
import { isHotkeyMatch as ro, useHotkeys as to } from "./hooks/useHotkeys/useHotkeys.mjs";
|
|
46
|
+
import { useHover as uo } from "./hooks/useHover/useHover.mjs";
|
|
47
|
+
import { useIdle as po } from "./hooks/useIdle/useIdle.mjs";
|
|
48
|
+
import { useImage as xo } from "./hooks/useImage/useImage.mjs";
|
|
49
|
+
import { useInfiniteScroll as no } from "./hooks/useInfiniteScroll/useInfiniteScroll.mjs";
|
|
50
|
+
import { useIntersectionObserver as lo } from "./hooks/useIntersectionObserver/useIntersectionObserver.mjs";
|
|
51
|
+
import { useInterval as So } from "./hooks/useInterval/useInterval.mjs";
|
|
52
|
+
import { useIsFirstRender as go } from "./hooks/useIsFirstRender/useIsFirstRender.mjs";
|
|
53
|
+
import { useIsomorphicLayoutEffect as Co } from "./hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
|
|
54
|
+
import { useKeyboard as Io } from "./hooks/useKeyboard/useKeyboard.mjs";
|
|
55
|
+
import { useKeyPress as Oo } from "./hooks/useKeyPress/useKeyPress.mjs";
|
|
56
|
+
import { useKeyPressEvent as yo } from "./hooks/useKeyPressEvent/useKeyPressEvent.mjs";
|
|
57
|
+
import { useKeysPressed as vo } from "./hooks/useKeysPressed/useKeysPressed.mjs";
|
|
58
|
+
import { useLastChanged as _o } from "./hooks/useLastChanged/useLastChanged.mjs";
|
|
59
|
+
import { useLatest as Mo } from "./hooks/useLatest/useLatest.mjs";
|
|
60
|
+
import { useLess as Lo } from "./hooks/useLess/useLess.mjs";
|
|
61
|
+
import { useList as Bo } from "./hooks/useList/useList.mjs";
|
|
62
|
+
import { useLocalStorage as Fo } from "./hooks/useLocalStorage/useLocalStorage.mjs";
|
|
63
|
+
import { useLockCallback as wo } from "./hooks/useLockCallback/useLockCallback.mjs";
|
|
64
|
+
import { useLogger as Uo } from "./hooks/useLogger/useLogger.mjs";
|
|
65
|
+
import { useLongPress as Ho } from "./hooks/useLongPress/useLongPress.mjs";
|
|
66
|
+
import { useMap as Qo } from "./hooks/useMap/useMap.mjs";
|
|
67
|
+
import { useMeasure as Zo } from "./hooks/useMeasure/useMeasure.mjs";
|
|
68
|
+
import { useMediaQuery as qo } from "./hooks/useMediaQuery/useMediaQuery.mjs";
|
|
69
|
+
import { useMemory as Yo } from "./hooks/useMemory/useMemory.mjs";
|
|
70
|
+
import { useMount as er } from "./hooks/useMount/useMount.mjs";
|
|
71
|
+
import { useMouse as rr } from "./hooks/useMouse/useMouse.mjs";
|
|
72
|
+
import { useMutation as sr } from "./hooks/useMutation/useMutation.mjs";
|
|
73
|
+
import { useMutationObserver as mr } from "./hooks/useMutationObserver/useMutationObserver.mjs";
|
|
74
|
+
import { getConnection as fr, useNetwork as xr } from "./hooks/useNetwork/useNetwork.mjs";
|
|
75
|
+
import { useOffsetPagination as nr } from "./hooks/useOffsetPagination/useOffsetPagination.mjs";
|
|
76
|
+
import { useOnce as lr } from "./hooks/useOnce/useOnce.mjs";
|
|
77
|
+
import { useOnline as Sr } from "./hooks/useOnline/useOnline.mjs";
|
|
78
|
+
import { getOperatingSystem as gr, useOperatingSystem as Er } from "./hooks/useOperatingSystem/useOperatingSystem.mjs";
|
|
79
|
+
import { useOptimistic as Cr } from "./hooks/useOptimistic/useOptimistic.mjs";
|
|
80
|
+
import { useOrientation as Ir } from "./hooks/useOrientation/useOrientation.mjs";
|
|
81
|
+
import { useOtpCredential as Or } from "./hooks/useOtpCredential/useOtpCredential.mjs";
|
|
82
|
+
import { usePageLeave as yr } from "./hooks/usePageLeave/usePageLeave.mjs";
|
|
83
|
+
import { Paint as vr, Pointer as Dr, usePaint as _r } from "./hooks/usePaint/usePaint.mjs";
|
|
84
|
+
import { useParallax as Mr } from "./hooks/useParallax/useParallax.mjs";
|
|
85
|
+
import { usePerformanceObserver as Lr } from "./hooks/usePerformanceObserver/usePerformanceObserver.mjs";
|
|
86
|
+
import { usePermission as Br } from "./hooks/usePermission/usePermission.mjs";
|
|
87
|
+
import { usePointerLock as Fr } from "./hooks/usePointerLock/usePointerLock.mjs";
|
|
88
|
+
import { usePostMessage as wr } from "./hooks/usePostMessage/usePostMessage.mjs";
|
|
89
|
+
import { usePreferredColorScheme as Ur } from "./hooks/usePreferredColorScheme/usePreferredColorScheme.mjs";
|
|
90
|
+
import { usePreferredContrast as Hr } from "./hooks/usePreferredContrast/usePreferredContrast.mjs";
|
|
91
|
+
import { usePreferredDark as Qr } from "./hooks/usePreferredDark/usePreferredDark.mjs";
|
|
92
|
+
import { usePreferredLanguages as Zr } from "./hooks/usePreferredLanguages/usePreferredLanguages.mjs";
|
|
93
|
+
import { usePreferredReducedMotion as qr } from "./hooks/usePreferredReducedMotion/usePreferredReducedMotion.mjs";
|
|
94
|
+
import { usePrevious as Yr } from "./hooks/usePrevious/usePrevious.mjs";
|
|
95
|
+
import { useQuery as et } from "./hooks/useQuery/useQuery.mjs";
|
|
96
|
+
import { useQueue as rt } from "./hooks/useQueue/useQueue.mjs";
|
|
97
|
+
import { useRaf as st } from "./hooks/useRaf/useRaf.mjs";
|
|
98
|
+
import { useRafValue as mt } from "./hooks/useRafValue/useRafValue.mjs";
|
|
99
|
+
import { useRefState as ft } from "./hooks/useRefState/useRefState.mjs";
|
|
100
|
+
import { useRenderCount as it } from "./hooks/useRenderCount/useRenderCount.mjs";
|
|
101
|
+
import { useRenderInfo as at } from "./hooks/useRenderInfo/useRenderInfo.mjs";
|
|
102
|
+
import { useRerender as ct } from "./hooks/useRerender/useRerender.mjs";
|
|
103
|
+
import { useResizeObserver as Tt } from "./hooks/useResizeObserver/useResizeObserver.mjs";
|
|
104
|
+
import { useScreenOrientation as Et } from "./hooks/useScreenOrientation/useScreenOrientation.mjs";
|
|
105
|
+
import { SCRIPT_STATUS_ATTRIBUTE_NAME as Ct, useScript as Pt } from "./hooks/useScript/useScript.mjs";
|
|
106
|
+
import { useScroll as Rt } from "./hooks/useScroll/useScroll.mjs";
|
|
107
|
+
import { useScrollIntoView as kt } from "./hooks/useScrollIntoView/useScrollIntoView.mjs";
|
|
108
|
+
import { useScrollTo as At } from "./hooks/useScrollTo/useScrollTo.mjs";
|
|
109
|
+
import { useSessionStorage as Dt } from "./hooks/useSessionStorage/useSessionStorage.mjs";
|
|
110
|
+
import { useSet as bt } from "./hooks/useSet/useSet.mjs";
|
|
111
|
+
import { useShare as Nt } from "./hooks/useShare/useShare.mjs";
|
|
112
|
+
import { getSpeechRecognition as ht, useSpeechRecognition as Bt } from "./hooks/useSpeechRecognition/useSpeechRecognition.mjs";
|
|
113
|
+
import { useSpeechSynthesis as Ft } from "./hooks/useSpeechSynthesis/useSpeechSynthesis.mjs";
|
|
114
|
+
import { useStateHistory as wt } from "./hooks/useStateHistory/useStateHistory.mjs";
|
|
115
|
+
import { useStep as Ut } from "./hooks/useStep/useStep.mjs";
|
|
116
|
+
import { useSticky as Ht } from "./hooks/useSticky/useSticky.mjs";
|
|
117
|
+
import { useStopwatch as Qt } from "./hooks/useStopwatch/useStopwatch.mjs";
|
|
118
|
+
import { STORAGE_EVENT as Zt, dispatchStorageEvent as jt, useStorage as qt } from "./hooks/useStorage/useStorage.mjs";
|
|
119
|
+
import { useTextDirection as Yt } from "./hooks/useTextDirection/useTextDirection.mjs";
|
|
120
|
+
import { getRangesSelection as es, useTextSelection as os } from "./hooks/useTextSelection/useTextSelection.mjs";
|
|
121
|
+
import { useThrottleCallback as ts } from "./hooks/useThrottleCallback/useThrottleCallback.mjs";
|
|
122
|
+
import { useThrottleValue as us } from "./hooks/useThrottleValue/useThrottleValue.mjs";
|
|
123
|
+
import { useTime as ps } from "./hooks/useTime/useTime.mjs";
|
|
124
|
+
import { useTimeout as xs } from "./hooks/useTimeout/useTimeout.mjs";
|
|
125
|
+
import { getTimeFromSeconds as ns, useTimer as as } from "./hooks/useTimer/useTimer.mjs";
|
|
126
|
+
import { useToggle as cs } from "./hooks/useToggle/useToggle.mjs";
|
|
127
|
+
import { useUnmount as Ts } from "./hooks/useUnmount/useUnmount.mjs";
|
|
128
|
+
import { useVibrate as Es } from "./hooks/useVibrate/useVibrate.mjs";
|
|
129
|
+
import { useWakeLock as Cs } from "./hooks/useWakeLock/useWakeLock.mjs";
|
|
130
|
+
import { useWebSocket as Is } from "./hooks/useWebSocket/useWebSocket.mjs";
|
|
131
|
+
import { useWindowEvent as Os } from "./hooks/useWindowEvent/useWindowEvent.mjs";
|
|
132
|
+
import { useWindowFocus as ys } from "./hooks/useWindowFocus/useWindowFocus.mjs";
|
|
133
|
+
import { scrollTo as vs, useWindowScroll as Ds } from "./hooks/useWindowScroll/useWindowScroll.mjs";
|
|
134
|
+
import { useWindowSize as bs } from "./hooks/useWindowSize/useWindowSize.mjs";
|
|
135
|
+
import { useWizard as Ns } from "./hooks/useWizard/useWizard.mjs";
|
|
136
|
+
import { copy as hs, legacyCopyToClipboard as Bs } from "./utils/helpers/copy.mjs";
|
|
137
|
+
import { debounce as Fs } from "./utils/helpers/debounce.mjs";
|
|
138
|
+
import { getDate as ws } from "./utils/helpers/getDate.mjs";
|
|
139
|
+
import { getElement as Us, target as Gs, targetSymbol as Hs } from "./utils/helpers/getElement.mjs";
|
|
140
|
+
import { getRetry as Qs } from "./utils/helpers/getRetry.mjs";
|
|
141
|
+
import { isTarget as Zs } from "./utils/helpers/isTarget.mjs";
|
|
142
|
+
import { throttle as qs } from "./utils/helpers/throttle.mjs";
|
|
141
143
|
export {
|
|
142
|
-
|
|
144
|
+
a as BREAKPOINTS_ANT_DESIGN,
|
|
143
145
|
l as BREAKPOINTS_BOOTSTRAP_V5,
|
|
144
146
|
c as BREAKPOINTS_MANTINE,
|
|
145
147
|
S as BREAKPOINTS_MASTER_CSS,
|
|
146
148
|
T as BREAKPOINTS_MATERIAL_UI,
|
|
147
149
|
g as BREAKPOINTS_PRIME_FLEX,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
E as BREAKPOINTS_QUASAR_V2,
|
|
151
|
+
d as BREAKPOINTS_SEMANTIC,
|
|
150
152
|
C as BREAKPOINTS_TAILWIND,
|
|
151
153
|
b as COOKIE_EVENT,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
vr as Paint,
|
|
155
|
+
Dr as Pointer,
|
|
156
|
+
Ct as SCRIPT_STATUS_ATTRIBUTE_NAME,
|
|
157
|
+
Zt as STORAGE_EVENT,
|
|
156
158
|
W as clearCookies,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
hs as copy,
|
|
160
|
+
Fs as debounce,
|
|
159
161
|
M as dispatchCookieEvent,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
jt as dispatchStorageEvent,
|
|
163
|
+
fr as getConnection,
|
|
162
164
|
N as getCookie,
|
|
163
165
|
L as getCookies,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
ws as getDate,
|
|
167
|
+
Us as getElement,
|
|
168
|
+
gr as getOperatingSystem,
|
|
167
169
|
U as getParsedCookies,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
170
|
+
es as getRangesSelection,
|
|
171
|
+
Qs as getRetry,
|
|
172
|
+
ht as getSpeechRecognition,
|
|
173
|
+
ns as getTimeFromSeconds,
|
|
174
|
+
ro as isHotkeyMatch,
|
|
175
|
+
Zs as isTarget,
|
|
176
|
+
Bs as legacyCopyToClipboard,
|
|
177
|
+
je as mapGamepadToXbox360Controller,
|
|
176
178
|
h as removeCookie,
|
|
177
179
|
B as removeCookieItem,
|
|
178
|
-
|
|
180
|
+
vs as scrollTo,
|
|
179
181
|
K as setCookie,
|
|
180
182
|
F as setCookieItem,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
183
|
+
Gs as target,
|
|
184
|
+
Hs as targetSymbol,
|
|
185
|
+
qs as throttle,
|
|
184
186
|
r as useActiveElement,
|
|
185
187
|
s as useAsync,
|
|
186
|
-
|
|
188
|
+
m as useBattery,
|
|
187
189
|
f as useBluetooth,
|
|
188
190
|
i as useBoolean,
|
|
189
191
|
P as useBreakpoints,
|
|
@@ -195,124 +197,126 @@ export {
|
|
|
195
197
|
G as useCookies,
|
|
196
198
|
z as useCopy,
|
|
197
199
|
X as useCounter,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
j as useCssVar,
|
|
201
|
+
J as useDebounceCallback,
|
|
200
202
|
$ as useDebounceValue,
|
|
201
203
|
oe as useDefault,
|
|
202
204
|
te as useDeviceMotion,
|
|
203
|
-
|
|
205
|
+
ue as useDeviceOrientation,
|
|
204
206
|
pe as useDevicePixelRatio,
|
|
205
207
|
xe as useDidUpdate,
|
|
206
|
-
|
|
208
|
+
ne as useDisclosure,
|
|
207
209
|
le as useDisplayMedia,
|
|
208
210
|
Se as useDocumentEvent,
|
|
209
211
|
ge as useDocumentTitle,
|
|
210
|
-
|
|
212
|
+
de as useDocumentVisibility,
|
|
211
213
|
Pe as useDoubleClick,
|
|
212
|
-
Re as
|
|
213
|
-
ke as
|
|
214
|
-
Ae as
|
|
215
|
-
De as
|
|
216
|
-
be as
|
|
217
|
-
Ne as
|
|
218
|
-
he as
|
|
219
|
-
Ke as
|
|
220
|
-
Ve as
|
|
221
|
-
We as
|
|
222
|
-
Ge as
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
to as
|
|
229
|
-
|
|
230
|
-
po as
|
|
231
|
-
xo as
|
|
232
|
-
|
|
233
|
-
lo as
|
|
234
|
-
So as
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
vo as
|
|
241
|
-
_o as
|
|
242
|
-
Mo as
|
|
243
|
-
Lo as
|
|
244
|
-
Bo as
|
|
245
|
-
Fo as
|
|
246
|
-
wo as
|
|
247
|
-
Uo as
|
|
248
|
-
Ho as
|
|
249
|
-
Qo as
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
er as
|
|
254
|
-
rr as
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
xr as
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
Cr as
|
|
263
|
-
Ir as
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
_r as
|
|
267
|
-
Mr as
|
|
268
|
-
Lr as
|
|
269
|
-
Br as
|
|
270
|
-
Fr as
|
|
271
|
-
wr as
|
|
272
|
-
Ur as
|
|
273
|
-
Hr as
|
|
274
|
-
Qr as
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
et as
|
|
279
|
-
rt as
|
|
280
|
-
st as
|
|
281
|
-
|
|
282
|
-
ft as
|
|
283
|
-
it as
|
|
284
|
-
|
|
285
|
-
ct as
|
|
286
|
-
|
|
287
|
-
Et as
|
|
288
|
-
Pt as
|
|
289
|
-
Rt as
|
|
290
|
-
kt as
|
|
291
|
-
At as
|
|
292
|
-
Dt as
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
Bt as
|
|
296
|
-
Ft as
|
|
297
|
-
wt as
|
|
298
|
-
Ut as
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
os as
|
|
304
|
-
ts as
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
cs as
|
|
310
|
-
Ts as
|
|
311
|
-
|
|
312
|
-
Cs as
|
|
313
|
-
Is as
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
Ds as
|
|
214
|
+
Re as useDropZone,
|
|
215
|
+
ke as useElementSize,
|
|
216
|
+
Ae as useEvent,
|
|
217
|
+
De as useEventListener,
|
|
218
|
+
be as useEventSource,
|
|
219
|
+
Ne as useEyeDropper,
|
|
220
|
+
he as useFavicon,
|
|
221
|
+
Ke as useField,
|
|
222
|
+
Ve as useFileDialog,
|
|
223
|
+
We as useFocus,
|
|
224
|
+
Ge as useFps,
|
|
225
|
+
ze as useFul,
|
|
226
|
+
Xe as useFullscreen,
|
|
227
|
+
qe as useGamepad,
|
|
228
|
+
Ye as useGeolocation,
|
|
229
|
+
eo as useHash,
|
|
230
|
+
to as useHotkeys,
|
|
231
|
+
uo as useHover,
|
|
232
|
+
po as useIdle,
|
|
233
|
+
xo as useImage,
|
|
234
|
+
no as useInfiniteScroll,
|
|
235
|
+
lo as useIntersectionObserver,
|
|
236
|
+
So as useInterval,
|
|
237
|
+
go as useIsFirstRender,
|
|
238
|
+
Co as useIsomorphicLayoutEffect,
|
|
239
|
+
Oo as useKeyPress,
|
|
240
|
+
yo as useKeyPressEvent,
|
|
241
|
+
Io as useKeyboard,
|
|
242
|
+
vo as useKeysPressed,
|
|
243
|
+
_o as useLastChanged,
|
|
244
|
+
Mo as useLatest,
|
|
245
|
+
Lo as useLess,
|
|
246
|
+
Bo as useList,
|
|
247
|
+
Fo as useLocalStorage,
|
|
248
|
+
wo as useLockCallback,
|
|
249
|
+
Uo as useLogger,
|
|
250
|
+
Ho as useLongPress,
|
|
251
|
+
Qo as useMap,
|
|
252
|
+
Zo as useMeasure,
|
|
253
|
+
qo as useMediaQuery,
|
|
254
|
+
Yo as useMemory,
|
|
255
|
+
er as useMount,
|
|
256
|
+
rr as useMouse,
|
|
257
|
+
sr as useMutation,
|
|
258
|
+
mr as useMutationObserver,
|
|
259
|
+
xr as useNetwork,
|
|
260
|
+
nr as useOffsetPagination,
|
|
261
|
+
lr as useOnce,
|
|
262
|
+
Sr as useOnline,
|
|
263
|
+
Er as useOperatingSystem,
|
|
264
|
+
Cr as useOptimistic,
|
|
265
|
+
Ir as useOrientation,
|
|
266
|
+
Or as useOtpCredential,
|
|
267
|
+
yr as usePageLeave,
|
|
268
|
+
_r as usePaint,
|
|
269
|
+
Mr as useParallax,
|
|
270
|
+
Lr as usePerformanceObserver,
|
|
271
|
+
Br as usePermission,
|
|
272
|
+
Fr as usePointerLock,
|
|
273
|
+
wr as usePostMessage,
|
|
274
|
+
Ur as usePreferredColorScheme,
|
|
275
|
+
Hr as usePreferredContrast,
|
|
276
|
+
Qr as usePreferredDark,
|
|
277
|
+
Zr as usePreferredLanguages,
|
|
278
|
+
qr as usePreferredReducedMotion,
|
|
279
|
+
Yr as usePrevious,
|
|
280
|
+
et as useQuery,
|
|
281
|
+
rt as useQueue,
|
|
282
|
+
st as useRaf,
|
|
283
|
+
mt as useRafValue,
|
|
284
|
+
ft as useRefState,
|
|
285
|
+
it as useRenderCount,
|
|
286
|
+
at as useRenderInfo,
|
|
287
|
+
ct as useRerender,
|
|
288
|
+
Tt as useResizeObserver,
|
|
289
|
+
Et as useScreenOrientation,
|
|
290
|
+
Pt as useScript,
|
|
291
|
+
Rt as useScroll,
|
|
292
|
+
kt as useScrollIntoView,
|
|
293
|
+
At as useScrollTo,
|
|
294
|
+
Dt as useSessionStorage,
|
|
295
|
+
bt as useSet,
|
|
296
|
+
Nt as useShare,
|
|
297
|
+
Bt as useSpeechRecognition,
|
|
298
|
+
Ft as useSpeechSynthesis,
|
|
299
|
+
wt as useStateHistory,
|
|
300
|
+
Ut as useStep,
|
|
301
|
+
Ht as useSticky,
|
|
302
|
+
Qt as useStopwatch,
|
|
303
|
+
qt as useStorage,
|
|
304
|
+
Yt as useTextDirection,
|
|
305
|
+
os as useTextSelection,
|
|
306
|
+
ts as useThrottleCallback,
|
|
307
|
+
us as useThrottleValue,
|
|
308
|
+
ps as useTime,
|
|
309
|
+
xs as useTimeout,
|
|
310
|
+
as as useTimer,
|
|
311
|
+
cs as useToggle,
|
|
312
|
+
Ts as useUnmount,
|
|
313
|
+
Es as useVibrate,
|
|
314
|
+
Cs as useWakeLock,
|
|
315
|
+
Is as useWebSocket,
|
|
316
|
+
Os as useWindowEvent,
|
|
317
|
+
ys as useWindowFocus,
|
|
318
|
+
Ds as useWindowScroll,
|
|
319
|
+
bs as useWindowSize,
|
|
320
|
+
Ns as useWizard
|
|
317
321
|
};
|
|
318
322
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -26,9 +26,11 @@ export * from './useDocumentEvent/useDocumentEvent';
|
|
|
26
26
|
export * from './useDocumentTitle/useDocumentTitle';
|
|
27
27
|
export * from './useDocumentVisibility/useDocumentVisibility';
|
|
28
28
|
export * from './useDoubleClick/useDoubleClick';
|
|
29
|
+
export * from './useDropZone/useDropZone';
|
|
29
30
|
export * from './useElementSize/useElementSize';
|
|
30
31
|
export * from './useEvent/useEvent';
|
|
31
32
|
export * from './useEventListener/useEventListener';
|
|
33
|
+
export * from './useEventSource/useEventSource';
|
|
32
34
|
export * from './useEyeDropper/useEyeDropper';
|
|
33
35
|
export * from './useFavicon/useFavicon';
|
|
34
36
|
export * from './useField/useField';
|