source: imaps-frontend/node_modules/react-use/lib/index.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 24.0 KB
Line 
1"use strict";
2var __importDefault = (this && this.__importDefault) || function (mod) {
3 return (mod && mod.__esModule) ? mod : { "default": mod };
4};
5Object.defineProperty(exports, "__esModule", { value: true });
6exports.useLogger = exports.useLockBodyScroll = exports.useLocation = exports.useLocalStorage = exports.useList = exports.useLifecycles = exports.useLatest = exports.useKeyPressEvent = exports.useKeyPress = exports.createBreakpoint = exports.useKey = exports.useIsomorphicLayoutEffect = exports.useInterval = exports.useIntersection = exports.useIdle = exports.useHoverDirty = exports.useHover = exports.useHarmonicIntervalFn = exports.useGetSetState = exports.useGetSet = exports.useGeolocation = exports.useFullscreen = exports.useFavicon = exports.useError = exports.useEvent = exports.ensuredForwardRef = exports.useEnsuredForwardedRef = exports.useEffectOnce = exports.useDropArea = exports.useDrop = exports.useDefault = exports.useDeepCompareEffect = exports.useDebounce = exports.useCustomCompareEffect = exports.useCss = exports.useCounter = exports.useCopyToClipboard = exports.useCookie = exports.useClickAway = exports.useBoolean = exports.useBeforeUnload = exports.useBattery = exports.useAudio = exports.useAsyncRetry = exports.useAsyncFn = exports.useAsync = exports.createStateContext = exports.createReducer = exports.createReducerContext = exports.createMemo = void 0;
7exports.useUpsert = exports.useUpdateEffect = exports.useUpdate = exports.useUnmountPromise = exports.useUnmount = exports.useTween = exports.useToggle = exports.useTitle = exports.useTimeoutFn = exports.useTimeout = exports.useThrottleFn = exports.useThrottle = exports.useStateList = exports.useStateWithHistory = exports.useStartTyping = exports.useSpeech = exports.useSlider = exports.useSize = exports.useShallowCompareEffect = exports.useSetState = exports.useSessionStorage = exports.useScrolling = exports.useScroll = exports.useScratch = exports.useSearchParam = exports.useRafState = exports.useRafLoop = exports.useRaf = exports.useQueue = exports.usePromise = exports.usePreviousDistinct = exports.usePrevious = exports.usePermission = exports.usePageLeave = exports.useOrientation = exports.useObservable = exports.useNumber = exports.useNetworkState = exports.useMouseWheel = exports.useMouseHovered = exports.useMouse = exports.useMountedState = exports.useMount = exports.useMotion = exports.useMethods = exports.useMediatedState = exports.useMediaDevices = exports.useMedia = exports.useMap = exports.useLongPress = void 0;
8exports.useHash = exports.createGlobalState = exports.useSet = exports.useFirstMountState = exports.useRendersCount = exports.usePinchZoom = exports.useMeasure = exports.useWindowSize = exports.useWindowScroll = exports.useMultiStateValidator = exports.useScrollbarWidth = exports.useStateValidator = exports.useVideo = exports.useVibrate = void 0;
9var createMemo_1 = require("./factory/createMemo");
10Object.defineProperty(exports, "createMemo", { enumerable: true, get: function () { return __importDefault(createMemo_1).default; } });
11var createReducerContext_1 = require("./factory/createReducerContext");
12Object.defineProperty(exports, "createReducerContext", { enumerable: true, get: function () { return __importDefault(createReducerContext_1).default; } });
13var createReducer_1 = require("./factory/createReducer");
14Object.defineProperty(exports, "createReducer", { enumerable: true, get: function () { return __importDefault(createReducer_1).default; } });
15var createStateContext_1 = require("./factory/createStateContext");
16Object.defineProperty(exports, "createStateContext", { enumerable: true, get: function () { return __importDefault(createStateContext_1).default; } });
17var useAsync_1 = require("./useAsync");
18Object.defineProperty(exports, "useAsync", { enumerable: true, get: function () { return __importDefault(useAsync_1).default; } });
19var useAsyncFn_1 = require("./useAsyncFn");
20Object.defineProperty(exports, "useAsyncFn", { enumerable: true, get: function () { return __importDefault(useAsyncFn_1).default; } });
21var useAsyncRetry_1 = require("./useAsyncRetry");
22Object.defineProperty(exports, "useAsyncRetry", { enumerable: true, get: function () { return __importDefault(useAsyncRetry_1).default; } });
23var useAudio_1 = require("./useAudio");
24Object.defineProperty(exports, "useAudio", { enumerable: true, get: function () { return __importDefault(useAudio_1).default; } });
25var useBattery_1 = require("./useBattery");
26Object.defineProperty(exports, "useBattery", { enumerable: true, get: function () { return __importDefault(useBattery_1).default; } });
27var useBeforeUnload_1 = require("./useBeforeUnload");
28Object.defineProperty(exports, "useBeforeUnload", { enumerable: true, get: function () { return __importDefault(useBeforeUnload_1).default; } });
29var useBoolean_1 = require("./useBoolean");
30Object.defineProperty(exports, "useBoolean", { enumerable: true, get: function () { return __importDefault(useBoolean_1).default; } });
31var useClickAway_1 = require("./useClickAway");
32Object.defineProperty(exports, "useClickAway", { enumerable: true, get: function () { return __importDefault(useClickAway_1).default; } });
33var useCookie_1 = require("./useCookie");
34Object.defineProperty(exports, "useCookie", { enumerable: true, get: function () { return __importDefault(useCookie_1).default; } });
35var useCopyToClipboard_1 = require("./useCopyToClipboard");
36Object.defineProperty(exports, "useCopyToClipboard", { enumerable: true, get: function () { return __importDefault(useCopyToClipboard_1).default; } });
37var useCounter_1 = require("./useCounter");
38Object.defineProperty(exports, "useCounter", { enumerable: true, get: function () { return __importDefault(useCounter_1).default; } });
39var useCss_1 = require("./useCss");
40Object.defineProperty(exports, "useCss", { enumerable: true, get: function () { return __importDefault(useCss_1).default; } });
41var useCustomCompareEffect_1 = require("./useCustomCompareEffect");
42Object.defineProperty(exports, "useCustomCompareEffect", { enumerable: true, get: function () { return __importDefault(useCustomCompareEffect_1).default; } });
43var useDebounce_1 = require("./useDebounce");
44Object.defineProperty(exports, "useDebounce", { enumerable: true, get: function () { return __importDefault(useDebounce_1).default; } });
45var useDeepCompareEffect_1 = require("./useDeepCompareEffect");
46Object.defineProperty(exports, "useDeepCompareEffect", { enumerable: true, get: function () { return __importDefault(useDeepCompareEffect_1).default; } });
47var useDefault_1 = require("./useDefault");
48Object.defineProperty(exports, "useDefault", { enumerable: true, get: function () { return __importDefault(useDefault_1).default; } });
49var useDrop_1 = require("./useDrop");
50Object.defineProperty(exports, "useDrop", { enumerable: true, get: function () { return __importDefault(useDrop_1).default; } });
51var useDropArea_1 = require("./useDropArea");
52Object.defineProperty(exports, "useDropArea", { enumerable: true, get: function () { return __importDefault(useDropArea_1).default; } });
53var useEffectOnce_1 = require("./useEffectOnce");
54Object.defineProperty(exports, "useEffectOnce", { enumerable: true, get: function () { return __importDefault(useEffectOnce_1).default; } });
55var useEnsuredForwardedRef_1 = require("./useEnsuredForwardedRef");
56Object.defineProperty(exports, "useEnsuredForwardedRef", { enumerable: true, get: function () { return __importDefault(useEnsuredForwardedRef_1).default; } });
57Object.defineProperty(exports, "ensuredForwardRef", { enumerable: true, get: function () { return useEnsuredForwardedRef_1.ensuredForwardRef; } });
58var useEvent_1 = require("./useEvent");
59Object.defineProperty(exports, "useEvent", { enumerable: true, get: function () { return __importDefault(useEvent_1).default; } });
60var useError_1 = require("./useError");
61Object.defineProperty(exports, "useError", { enumerable: true, get: function () { return __importDefault(useError_1).default; } });
62var useFavicon_1 = require("./useFavicon");
63Object.defineProperty(exports, "useFavicon", { enumerable: true, get: function () { return __importDefault(useFavicon_1).default; } });
64var useFullscreen_1 = require("./useFullscreen");
65Object.defineProperty(exports, "useFullscreen", { enumerable: true, get: function () { return __importDefault(useFullscreen_1).default; } });
66var useGeolocation_1 = require("./useGeolocation");
67Object.defineProperty(exports, "useGeolocation", { enumerable: true, get: function () { return __importDefault(useGeolocation_1).default; } });
68var useGetSet_1 = require("./useGetSet");
69Object.defineProperty(exports, "useGetSet", { enumerable: true, get: function () { return __importDefault(useGetSet_1).default; } });
70var useGetSetState_1 = require("./useGetSetState");
71Object.defineProperty(exports, "useGetSetState", { enumerable: true, get: function () { return __importDefault(useGetSetState_1).default; } });
72var useHarmonicIntervalFn_1 = require("./useHarmonicIntervalFn");
73Object.defineProperty(exports, "useHarmonicIntervalFn", { enumerable: true, get: function () { return __importDefault(useHarmonicIntervalFn_1).default; } });
74var useHover_1 = require("./useHover");
75Object.defineProperty(exports, "useHover", { enumerable: true, get: function () { return __importDefault(useHover_1).default; } });
76var useHoverDirty_1 = require("./useHoverDirty");
77Object.defineProperty(exports, "useHoverDirty", { enumerable: true, get: function () { return __importDefault(useHoverDirty_1).default; } });
78var useIdle_1 = require("./useIdle");
79Object.defineProperty(exports, "useIdle", { enumerable: true, get: function () { return __importDefault(useIdle_1).default; } });
80var useIntersection_1 = require("./useIntersection");
81Object.defineProperty(exports, "useIntersection", { enumerable: true, get: function () { return __importDefault(useIntersection_1).default; } });
82var useInterval_1 = require("./useInterval");
83Object.defineProperty(exports, "useInterval", { enumerable: true, get: function () { return __importDefault(useInterval_1).default; } });
84var useIsomorphicLayoutEffect_1 = require("./useIsomorphicLayoutEffect");
85Object.defineProperty(exports, "useIsomorphicLayoutEffect", { enumerable: true, get: function () { return __importDefault(useIsomorphicLayoutEffect_1).default; } });
86var useKey_1 = require("./useKey");
87Object.defineProperty(exports, "useKey", { enumerable: true, get: function () { return __importDefault(useKey_1).default; } });
88var createBreakpoint_1 = require("./factory/createBreakpoint");
89Object.defineProperty(exports, "createBreakpoint", { enumerable: true, get: function () { return __importDefault(createBreakpoint_1).default; } });
90// not exported because of peer dependency
91// export { default as useKeyboardJs } from './useKeyboardJs';
92var useKeyPress_1 = require("./useKeyPress");
93Object.defineProperty(exports, "useKeyPress", { enumerable: true, get: function () { return __importDefault(useKeyPress_1).default; } });
94var useKeyPressEvent_1 = require("./useKeyPressEvent");
95Object.defineProperty(exports, "useKeyPressEvent", { enumerable: true, get: function () { return __importDefault(useKeyPressEvent_1).default; } });
96var useLatest_1 = require("./useLatest");
97Object.defineProperty(exports, "useLatest", { enumerable: true, get: function () { return __importDefault(useLatest_1).default; } });
98var useLifecycles_1 = require("./useLifecycles");
99Object.defineProperty(exports, "useLifecycles", { enumerable: true, get: function () { return __importDefault(useLifecycles_1).default; } });
100var useList_1 = require("./useList");
101Object.defineProperty(exports, "useList", { enumerable: true, get: function () { return __importDefault(useList_1).default; } });
102var useLocalStorage_1 = require("./useLocalStorage");
103Object.defineProperty(exports, "useLocalStorage", { enumerable: true, get: function () { return __importDefault(useLocalStorage_1).default; } });
104var useLocation_1 = require("./useLocation");
105Object.defineProperty(exports, "useLocation", { enumerable: true, get: function () { return __importDefault(useLocation_1).default; } });
106var useLockBodyScroll_1 = require("./useLockBodyScroll");
107Object.defineProperty(exports, "useLockBodyScroll", { enumerable: true, get: function () { return __importDefault(useLockBodyScroll_1).default; } });
108var useLogger_1 = require("./useLogger");
109Object.defineProperty(exports, "useLogger", { enumerable: true, get: function () { return __importDefault(useLogger_1).default; } });
110var useLongPress_1 = require("./useLongPress");
111Object.defineProperty(exports, "useLongPress", { enumerable: true, get: function () { return __importDefault(useLongPress_1).default; } });
112var useMap_1 = require("./useMap");
113Object.defineProperty(exports, "useMap", { enumerable: true, get: function () { return __importDefault(useMap_1).default; } });
114var useMedia_1 = require("./useMedia");
115Object.defineProperty(exports, "useMedia", { enumerable: true, get: function () { return __importDefault(useMedia_1).default; } });
116var useMediaDevices_1 = require("./useMediaDevices");
117Object.defineProperty(exports, "useMediaDevices", { enumerable: true, get: function () { return __importDefault(useMediaDevices_1).default; } });
118var useMediatedState_1 = require("./useMediatedState");
119Object.defineProperty(exports, "useMediatedState", { enumerable: true, get: function () { return useMediatedState_1.useMediatedState; } });
120var useMethods_1 = require("./useMethods");
121Object.defineProperty(exports, "useMethods", { enumerable: true, get: function () { return __importDefault(useMethods_1).default; } });
122var useMotion_1 = require("./useMotion");
123Object.defineProperty(exports, "useMotion", { enumerable: true, get: function () { return __importDefault(useMotion_1).default; } });
124var useMount_1 = require("./useMount");
125Object.defineProperty(exports, "useMount", { enumerable: true, get: function () { return __importDefault(useMount_1).default; } });
126var useMountedState_1 = require("./useMountedState");
127Object.defineProperty(exports, "useMountedState", { enumerable: true, get: function () { return __importDefault(useMountedState_1).default; } });
128var useMouse_1 = require("./useMouse");
129Object.defineProperty(exports, "useMouse", { enumerable: true, get: function () { return __importDefault(useMouse_1).default; } });
130var useMouseHovered_1 = require("./useMouseHovered");
131Object.defineProperty(exports, "useMouseHovered", { enumerable: true, get: function () { return __importDefault(useMouseHovered_1).default; } });
132var useMouseWheel_1 = require("./useMouseWheel");
133Object.defineProperty(exports, "useMouseWheel", { enumerable: true, get: function () { return __importDefault(useMouseWheel_1).default; } });
134var useNetworkState_1 = require("./useNetworkState");
135Object.defineProperty(exports, "useNetworkState", { enumerable: true, get: function () { return __importDefault(useNetworkState_1).default; } });
136var useNumber_1 = require("./useNumber");
137Object.defineProperty(exports, "useNumber", { enumerable: true, get: function () { return __importDefault(useNumber_1).default; } });
138var useObservable_1 = require("./useObservable");
139Object.defineProperty(exports, "useObservable", { enumerable: true, get: function () { return __importDefault(useObservable_1).default; } });
140var useOrientation_1 = require("./useOrientation");
141Object.defineProperty(exports, "useOrientation", { enumerable: true, get: function () { return __importDefault(useOrientation_1).default; } });
142var usePageLeave_1 = require("./usePageLeave");
143Object.defineProperty(exports, "usePageLeave", { enumerable: true, get: function () { return __importDefault(usePageLeave_1).default; } });
144var usePermission_1 = require("./usePermission");
145Object.defineProperty(exports, "usePermission", { enumerable: true, get: function () { return __importDefault(usePermission_1).default; } });
146var usePrevious_1 = require("./usePrevious");
147Object.defineProperty(exports, "usePrevious", { enumerable: true, get: function () { return __importDefault(usePrevious_1).default; } });
148var usePreviousDistinct_1 = require("./usePreviousDistinct");
149Object.defineProperty(exports, "usePreviousDistinct", { enumerable: true, get: function () { return __importDefault(usePreviousDistinct_1).default; } });
150var usePromise_1 = require("./usePromise");
151Object.defineProperty(exports, "usePromise", { enumerable: true, get: function () { return __importDefault(usePromise_1).default; } });
152var useQueue_1 = require("./useQueue");
153Object.defineProperty(exports, "useQueue", { enumerable: true, get: function () { return __importDefault(useQueue_1).default; } });
154var useRaf_1 = require("./useRaf");
155Object.defineProperty(exports, "useRaf", { enumerable: true, get: function () { return __importDefault(useRaf_1).default; } });
156var useRafLoop_1 = require("./useRafLoop");
157Object.defineProperty(exports, "useRafLoop", { enumerable: true, get: function () { return __importDefault(useRafLoop_1).default; } });
158var useRafState_1 = require("./useRafState");
159Object.defineProperty(exports, "useRafState", { enumerable: true, get: function () { return __importDefault(useRafState_1).default; } });
160var useSearchParam_1 = require("./useSearchParam");
161Object.defineProperty(exports, "useSearchParam", { enumerable: true, get: function () { return __importDefault(useSearchParam_1).default; } });
162var useScratch_1 = require("./useScratch");
163Object.defineProperty(exports, "useScratch", { enumerable: true, get: function () { return __importDefault(useScratch_1).default; } });
164var useScroll_1 = require("./useScroll");
165Object.defineProperty(exports, "useScroll", { enumerable: true, get: function () { return __importDefault(useScroll_1).default; } });
166var useScrolling_1 = require("./useScrolling");
167Object.defineProperty(exports, "useScrolling", { enumerable: true, get: function () { return __importDefault(useScrolling_1).default; } });
168var useSessionStorage_1 = require("./useSessionStorage");
169Object.defineProperty(exports, "useSessionStorage", { enumerable: true, get: function () { return __importDefault(useSessionStorage_1).default; } });
170var useSetState_1 = require("./useSetState");
171Object.defineProperty(exports, "useSetState", { enumerable: true, get: function () { return __importDefault(useSetState_1).default; } });
172var useShallowCompareEffect_1 = require("./useShallowCompareEffect");
173Object.defineProperty(exports, "useShallowCompareEffect", { enumerable: true, get: function () { return __importDefault(useShallowCompareEffect_1).default; } });
174var useSize_1 = require("./useSize");
175Object.defineProperty(exports, "useSize", { enumerable: true, get: function () { return __importDefault(useSize_1).default; } });
176var useSlider_1 = require("./useSlider");
177Object.defineProperty(exports, "useSlider", { enumerable: true, get: function () { return __importDefault(useSlider_1).default; } });
178var useSpeech_1 = require("./useSpeech");
179Object.defineProperty(exports, "useSpeech", { enumerable: true, get: function () { return __importDefault(useSpeech_1).default; } });
180// not exported because of peer dependency
181// export { default as useSpring } from './useSpring';
182var useStartTyping_1 = require("./useStartTyping");
183Object.defineProperty(exports, "useStartTyping", { enumerable: true, get: function () { return __importDefault(useStartTyping_1).default; } });
184var useStateWithHistory_1 = require("./useStateWithHistory");
185Object.defineProperty(exports, "useStateWithHistory", { enumerable: true, get: function () { return useStateWithHistory_1.useStateWithHistory; } });
186var useStateList_1 = require("./useStateList");
187Object.defineProperty(exports, "useStateList", { enumerable: true, get: function () { return __importDefault(useStateList_1).default; } });
188var useThrottle_1 = require("./useThrottle");
189Object.defineProperty(exports, "useThrottle", { enumerable: true, get: function () { return __importDefault(useThrottle_1).default; } });
190var useThrottleFn_1 = require("./useThrottleFn");
191Object.defineProperty(exports, "useThrottleFn", { enumerable: true, get: function () { return __importDefault(useThrottleFn_1).default; } });
192var useTimeout_1 = require("./useTimeout");
193Object.defineProperty(exports, "useTimeout", { enumerable: true, get: function () { return __importDefault(useTimeout_1).default; } });
194var useTimeoutFn_1 = require("./useTimeoutFn");
195Object.defineProperty(exports, "useTimeoutFn", { enumerable: true, get: function () { return __importDefault(useTimeoutFn_1).default; } });
196var useTitle_1 = require("./useTitle");
197Object.defineProperty(exports, "useTitle", { enumerable: true, get: function () { return __importDefault(useTitle_1).default; } });
198var useToggle_1 = require("./useToggle");
199Object.defineProperty(exports, "useToggle", { enumerable: true, get: function () { return __importDefault(useToggle_1).default; } });
200var useTween_1 = require("./useTween");
201Object.defineProperty(exports, "useTween", { enumerable: true, get: function () { return __importDefault(useTween_1).default; } });
202var useUnmount_1 = require("./useUnmount");
203Object.defineProperty(exports, "useUnmount", { enumerable: true, get: function () { return __importDefault(useUnmount_1).default; } });
204var useUnmountPromise_1 = require("./useUnmountPromise");
205Object.defineProperty(exports, "useUnmountPromise", { enumerable: true, get: function () { return __importDefault(useUnmountPromise_1).default; } });
206var useUpdate_1 = require("./useUpdate");
207Object.defineProperty(exports, "useUpdate", { enumerable: true, get: function () { return __importDefault(useUpdate_1).default; } });
208var useUpdateEffect_1 = require("./useUpdateEffect");
209Object.defineProperty(exports, "useUpdateEffect", { enumerable: true, get: function () { return __importDefault(useUpdateEffect_1).default; } });
210var useUpsert_1 = require("./useUpsert");
211Object.defineProperty(exports, "useUpsert", { enumerable: true, get: function () { return __importDefault(useUpsert_1).default; } });
212var useVibrate_1 = require("./useVibrate");
213Object.defineProperty(exports, "useVibrate", { enumerable: true, get: function () { return __importDefault(useVibrate_1).default; } });
214var useVideo_1 = require("./useVideo");
215Object.defineProperty(exports, "useVideo", { enumerable: true, get: function () { return __importDefault(useVideo_1).default; } });
216var useStateValidator_1 = require("./useStateValidator");
217Object.defineProperty(exports, "useStateValidator", { enumerable: true, get: function () { return __importDefault(useStateValidator_1).default; } });
218var useScrollbarWidth_1 = require("./useScrollbarWidth");
219Object.defineProperty(exports, "useScrollbarWidth", { enumerable: true, get: function () { return useScrollbarWidth_1.useScrollbarWidth; } });
220var useMultiStateValidator_1 = require("./useMultiStateValidator");
221Object.defineProperty(exports, "useMultiStateValidator", { enumerable: true, get: function () { return useMultiStateValidator_1.useMultiStateValidator; } });
222var useWindowScroll_1 = require("./useWindowScroll");
223Object.defineProperty(exports, "useWindowScroll", { enumerable: true, get: function () { return __importDefault(useWindowScroll_1).default; } });
224var useWindowSize_1 = require("./useWindowSize");
225Object.defineProperty(exports, "useWindowSize", { enumerable: true, get: function () { return __importDefault(useWindowSize_1).default; } });
226var useMeasure_1 = require("./useMeasure");
227Object.defineProperty(exports, "useMeasure", { enumerable: true, get: function () { return __importDefault(useMeasure_1).default; } });
228var usePinchZoom_1 = require("./usePinchZoom");
229Object.defineProperty(exports, "usePinchZoom", { enumerable: true, get: function () { return __importDefault(usePinchZoom_1).default; } });
230var useRendersCount_1 = require("./useRendersCount");
231Object.defineProperty(exports, "useRendersCount", { enumerable: true, get: function () { return useRendersCount_1.useRendersCount; } });
232var useFirstMountState_1 = require("./useFirstMountState");
233Object.defineProperty(exports, "useFirstMountState", { enumerable: true, get: function () { return useFirstMountState_1.useFirstMountState; } });
234var useSet_1 = require("./useSet");
235Object.defineProperty(exports, "useSet", { enumerable: true, get: function () { return __importDefault(useSet_1).default; } });
236var createGlobalState_1 = require("./factory/createGlobalState");
237Object.defineProperty(exports, "createGlobalState", { enumerable: true, get: function () { return createGlobalState_1.createGlobalState; } });
238var useHash_1 = require("./useHash");
239Object.defineProperty(exports, "useHash", { enumerable: true, get: function () { return useHash_1.useHash; } });
Note: See TracBrowser for help on using the repository browser.