@siberiacancode/reactuse 0.0.20 → 0.0.22
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/{_rollupPluginBabelHelpers-BNQyJZ2M.js → _rollupPluginBabelHelpers-DDnjpXz_.js} +2 -2
- package/dist/cjs/_rollupPluginBabelHelpers-DDnjpXz_.js.map +1 -0
- package/dist/cjs/hooks/index.js +2 -2
- package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
- package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
- package/dist/cjs/hooks/useClickOutside/useClickOutside.js +1 -1
- package/dist/cjs/hooks/useCopyToClipboard/useCopyToClipboard.js +2 -2
- package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
- package/dist/cjs/hooks/useDebouncedValue/useDebouncedValue.js +2 -2
- package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
- package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
- package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
- package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
- package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
- package/dist/cjs/hooks/useEventListener/useEventListener.js +1 -1
- package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
- package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
- package/dist/cjs/hooks/useHash/useHash.js +2 -2
- package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
- package/dist/cjs/hooks/useHover/useHover.js +2 -2
- package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
- package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
- package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js.map +1 -1
- package/dist/cjs/hooks/useInterval/useInterval.js +3 -0
- package/dist/cjs/hooks/useInterval/useInterval.js.map +1 -0
- package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
- package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
- package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
- package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +1 -1
- package/dist/cjs/hooks/useKeyboard/useKeyboard.js +1 -1
- package/dist/cjs/hooks/useKeyboard/useKeyboard.js.map +1 -1
- package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
- package/dist/cjs/hooks/useList/useList.js +2 -2
- package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
- package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
- package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
- package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
- package/dist/cjs/hooks/useMount/useMount.js +1 -1
- package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
- package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
- package/dist/cjs/hooks/useMutationObserver.js +1 -1
- package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
- package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
- package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
- package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
- package/dist/cjs/hooks/usePageLeave/usePageLeave.js +1 -1
- package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
- package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
- package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
- package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
- package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
- package/dist/cjs/hooks/useRerender/useRerender.js +2 -2
- package/dist/cjs/hooks/useScript/useScript.js +2 -2
- package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
- package/dist/cjs/hooks/useSet/useSet.js +2 -2
- package/dist/cjs/hooks/useSet/useSet.js.map +1 -1
- package/dist/cjs/hooks/useStep/useStep.js +2 -2
- package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
- package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
- package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
- package/dist/cjs/hooks/useTimeout/useTimeout.js.map +1 -1
- package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
- package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
- package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +1 -1
- package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/utils/helpers/debounce.js +1 -1
- package/dist/cjs/utils/helpers/getRetry.js +1 -1
- package/dist/cjs/utils/helpers/index.js +1 -1
- package/dist/cjs/utils/helpers/isClient.js +1 -1
- package/dist/cjs/utils/helpers/throttle.js +1 -1
- package/dist/esm/{_rollupPluginBabelHelpers-jvrIKhwu.js → _rollupPluginBabelHelpers-pWwLtxdH.js} +2 -2
- package/dist/esm/_rollupPluginBabelHelpers-pWwLtxdH.js.map +1 -0
- package/dist/esm/hooks/index.js +2 -2
- package/dist/esm/hooks/useBattery/useBattery.js +2 -2
- package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
- package/dist/esm/hooks/useClickOutside/useClickOutside.js +1 -1
- package/dist/esm/hooks/useCopyToClipboard/useCopyToClipboard.js +2 -2
- package/dist/esm/hooks/useCounter/useCounter.js +2 -2
- package/dist/esm/hooks/useDebouncedValue/useDebouncedValue.js +2 -2
- package/dist/esm/hooks/useDefault/useDefault.js +2 -2
- package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
- package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
- package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
- package/dist/esm/hooks/useEvent/useEvent.js +1 -1
- package/dist/esm/hooks/useEventListener/useEventListener.js +1 -1
- package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
- package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
- package/dist/esm/hooks/useHash/useHash.js +2 -2
- package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
- package/dist/esm/hooks/useHover/useHover.js +2 -2
- package/dist/esm/hooks/useIdle/useIdle.js +2 -2
- package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
- package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js.map +1 -1
- package/dist/esm/hooks/useInterval/useInterval.js +3 -0
- package/dist/esm/hooks/useInterval/useInterval.js.map +1 -0
- package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
- package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
- package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
- package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +1 -1
- package/dist/esm/hooks/useKeyboard/useKeyboard.js +1 -1
- package/dist/esm/hooks/useKeyboard/useKeyboard.js.map +1 -1
- package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
- package/dist/esm/hooks/useList/useList.js +2 -2
- package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
- package/dist/esm/hooks/useLogger/useLogger.js +2 -2
- package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
- package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
- package/dist/esm/hooks/useMount/useMount.js +1 -1
- package/dist/esm/hooks/useMouse/useMouse.js +2 -2
- package/dist/esm/hooks/useMutation/useMutation.js +2 -2
- package/dist/esm/hooks/useMutationObserver.js +1 -1
- package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
- package/dist/esm/hooks/useOnline/useOnline.js +1 -1
- package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +1 -1
- package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
- package/dist/esm/hooks/usePageLeave/usePageLeave.js +1 -1
- package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
- package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
- package/dist/esm/hooks/useQuery/useQuery.js +2 -2
- package/dist/esm/hooks/useQueue/useQueue.js +2 -2
- package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
- package/dist/esm/hooks/useRerender/useRerender.js +2 -2
- package/dist/esm/hooks/useScript/useScript.js +2 -2
- package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
- package/dist/esm/hooks/useSet/useSet.js +2 -2
- package/dist/esm/hooks/useSet/useSet.js.map +1 -1
- package/dist/esm/hooks/useStep/useStep.js +2 -2
- package/dist/esm/hooks/useStorage/useStorage.js +2 -2
- package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
- package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
- package/dist/esm/hooks/useTimeout/useTimeout.js.map +1 -1
- package/dist/esm/hooks/useToggle/useToggle.js +2 -2
- package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
- package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +1 -1
- package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/utils/helpers/debounce.js +1 -1
- package/dist/esm/utils/helpers/getRetry.js +1 -1
- package/dist/esm/utils/helpers/index.js +1 -1
- package/dist/esm/utils/helpers/isClient.js +1 -1
- package/dist/esm/utils/helpers/throttle.js +1 -1
- package/dist/index.d.ts +86 -5
- package/package.json +2 -1
- package/dist/cjs/_rollupPluginBabelHelpers-BNQyJZ2M.js.map +0 -1
- package/dist/esm/_rollupPluginBabelHelpers-jvrIKhwu.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -450,7 +450,7 @@ declare const useIdle: (milliseconds?: number, { initialValue, events }?: UseIdl
|
|
|
450
450
|
|
|
451
451
|
type UseIntersectionObserverTarget = React.RefObject<Element | null> | (() => Element) | Element;
|
|
452
452
|
interface UseIntersectionObserverOptions extends Omit<IntersectionObserverInit, 'root'> {
|
|
453
|
-
|
|
453
|
+
enabled?: boolean;
|
|
454
454
|
onChange?: (entry: IntersectionObserverEntry) => void;
|
|
455
455
|
root?: IntersectionObserverInit['root'] | React.RefObject<Element | null>;
|
|
456
456
|
}
|
|
@@ -466,6 +466,49 @@ type UseIntersectionObserver = {
|
|
|
466
466
|
};
|
|
467
467
|
declare const useIntersectionObserver: UseIntersectionObserver;
|
|
468
468
|
|
|
469
|
+
/** The use interval options */
|
|
470
|
+
interface UseIntervalOptions {
|
|
471
|
+
/** Start the interval immediately */
|
|
472
|
+
enabled?: boolean;
|
|
473
|
+
}
|
|
474
|
+
/** The use interval return type */
|
|
475
|
+
interface UseIntervalReturn {
|
|
476
|
+
/** Is the interval active */
|
|
477
|
+
isActive: boolean;
|
|
478
|
+
/** Pause the interval */
|
|
479
|
+
pause: () => void;
|
|
480
|
+
/** Resume the interval */
|
|
481
|
+
resume: () => void;
|
|
482
|
+
}
|
|
483
|
+
type UseInterval = {
|
|
484
|
+
(callback: () => void, interval?: number, options?: UseIntervalOptions): UseIntervalReturn;
|
|
485
|
+
(callback: () => void, options?: UseIntervalOptions & {
|
|
486
|
+
interval?: number;
|
|
487
|
+
}): UseIntervalReturn;
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* @name useInterval
|
|
491
|
+
* @description - Hook that makes and interval and returns controlling functions
|
|
492
|
+
*
|
|
493
|
+
* @overload
|
|
494
|
+
* @param {() => void} callback Any callback function
|
|
495
|
+
* @param {number} [interval=1000] Time in milliseconds
|
|
496
|
+
* @param {boolean} [options.immediate=true] Start the interval immediately
|
|
497
|
+
* @returns {UseIntervalReturn}
|
|
498
|
+
*
|
|
499
|
+
* @example
|
|
500
|
+
* const { isActive, pause, resume } = useInterval(() => console.log('inside interval'), 2500);
|
|
501
|
+
*
|
|
502
|
+
* @overload
|
|
503
|
+
* @param {() => void} callback Any callback function
|
|
504
|
+
* @param {number} [options.interval=1000] Time in milliseconds
|
|
505
|
+
* @param {boolean} [options.immediate=true] Start the interval immediately
|
|
506
|
+
*
|
|
507
|
+
* @example
|
|
508
|
+
* const { isActive, pause, resume } = useInterval(() => console.log('inside interval'), { interval: 2500 });
|
|
509
|
+
*/
|
|
510
|
+
declare const useInterval: UseInterval;
|
|
511
|
+
|
|
469
512
|
/**
|
|
470
513
|
* @name useIsFirstRender
|
|
471
514
|
* @description - Hook that returns true if the component is first render
|
|
@@ -497,7 +540,7 @@ type UseKeyboardParams = {
|
|
|
497
540
|
};
|
|
498
541
|
/**
|
|
499
542
|
* @name useKeyboard
|
|
500
|
-
* @description - Hook that
|
|
543
|
+
* @description - Hook that help to listen for keyboard events
|
|
501
544
|
*
|
|
502
545
|
* @param {UseEventListenerTarget} [target=window] The target to attach the event listeners to
|
|
503
546
|
* @param {(event: KeyboardEvent) => void} [onKeyDown] The callback function to be invoked on key down
|
|
@@ -1027,18 +1070,56 @@ declare const useScript: (src: string, options?: UseScriptOptions) => UseScriptS
|
|
|
1027
1070
|
*/
|
|
1028
1071
|
declare const useSessionStorage: <Value>(key: string, initialValue?: UseStorageInitialValue<Value>, options?: UseStorageOptions<Value>) => readonly [Value | undefined, (value: Value) => void, () => void];
|
|
1029
1072
|
|
|
1073
|
+
declare global {
|
|
1074
|
+
interface Set<T> {
|
|
1075
|
+
union(other: Set<T>): Set<T>;
|
|
1076
|
+
difference(other: Set<T>): Set<T>;
|
|
1077
|
+
symmetricDifference(other: Set<T>): Set<T>;
|
|
1078
|
+
intersection(other: Set<T>): Set<T>;
|
|
1079
|
+
isDisjointFrom(other: Set<T>): boolean;
|
|
1080
|
+
isSubsetOf(other: Set<T>): boolean;
|
|
1081
|
+
isSupersetOf(other: Set<T>): boolean;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
/** The use set return type */
|
|
1085
|
+
interface UseSetReturn<Value> {
|
|
1086
|
+
/** The current set */
|
|
1087
|
+
value: Set<Value>;
|
|
1088
|
+
/** The size of the set */
|
|
1089
|
+
size: number;
|
|
1090
|
+
/** Function to check if a value exists in the set */
|
|
1091
|
+
has: (value: Value) => boolean;
|
|
1092
|
+
/** Function to add a value to the set */
|
|
1093
|
+
add: (value: Value) => void;
|
|
1094
|
+
/** Function to remove a value from the set */
|
|
1095
|
+
remove: (value: Value) => void;
|
|
1096
|
+
/** Function to clear the set */
|
|
1097
|
+
clear: () => void;
|
|
1098
|
+
/** Function to toggle a value in the set */
|
|
1099
|
+
reset: () => void;
|
|
1100
|
+
/** Function to toggle a value in the set */
|
|
1101
|
+
toggle: (value: Value) => void;
|
|
1102
|
+
/** Function to get the union of two sets */
|
|
1103
|
+
union: (other: Set<Value>) => void;
|
|
1104
|
+
/** Function to get the difference of two sets */
|
|
1105
|
+
intersection: (other: Set<Value>) => void;
|
|
1106
|
+
/** Function to get the symmetric difference of two sets */
|
|
1107
|
+
difference: (other: Set<Value>) => void;
|
|
1108
|
+
/** Function to get the symmetric difference of two sets */
|
|
1109
|
+
symmetricDifference: (other: Set<Value>) => void;
|
|
1110
|
+
}
|
|
1030
1111
|
/**
|
|
1031
1112
|
* @name useSet
|
|
1032
1113
|
* @description - Hook that manages a set structure
|
|
1033
1114
|
*
|
|
1034
1115
|
* @template Value The type of the value
|
|
1035
1116
|
* @param {Value[]} [values] The initial array of the set
|
|
1036
|
-
* @returns {
|
|
1117
|
+
* @returns {UseSetReturn} An object containing the current set and functions to interact with the set
|
|
1037
1118
|
*
|
|
1038
1119
|
* @example
|
|
1039
1120
|
* const set = useSet([1, 2, 3]);
|
|
1040
1121
|
*/
|
|
1041
|
-
declare const useSet: <Value>(values?: Value[]) =>
|
|
1122
|
+
declare const useSet: <Value>(values?: Value[]) => UseSetReturn<Value>;
|
|
1042
1123
|
|
|
1043
1124
|
/** The use step params */
|
|
1044
1125
|
interface UseStepParams {
|
|
@@ -1212,4 +1293,4 @@ declare const isClient: boolean;
|
|
|
1212
1293
|
|
|
1213
1294
|
declare const throttle: <Params extends any[]>(callback: (...args: Params) => void, delay: number) => ((...args: Params) => void);
|
|
1214
1295
|
|
|
1215
|
-
export { type ConnectionEffectiveType, type ConnectionType, type OperatingSystem, SCRIPT_STATUS_ATTRIBUTE_NAME, type UseClickOutside, type UseClickOutsideReturn, type UseCounter, type UseCounterOptions, type UseCounterParams, type UseCounterReturn, type UseDocumentTitleOptions, type UseDocumentTitleReturn, type UseEventListener, type UseEventListenerOptions, type UseEventListenerReturn, type UseEventListenerTarget, type UseFaviconReturn, type UseFullScreen, type UseFullScreenOptions, type UseFullScreenReturn, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHover, type UseHoverOptions, type UseHoverReturn, type UseHoverTarget, type UseIdleReturn, type UseIntersectionObserver, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseIntersectionObserverTarget, type UseKeyPressEvent, type UseKeyPressEventKey, type UseKeyPressKey, type UseKeyPressOptions, type UseKeyboardParams, type UseListReturn, type UseLongPress, type UseLongPressReturn, type UseLongPressTarget, type UseMouse, type UseMouseReturn, type UseNetworkReturn, type UseOrientationReturn, type UseQueueReturn, type UseScriptOptions, type UseScriptStatus, type UseStorageInitialValue, type UseStorageOptions, type UseStorageReturn, type UseTextSelectionReturn, type UseToggleReturn, type UseWindowSizeReturn, debounce, dispatchStorageEvent, getConnection, getOperatingSystem, getRangesSelection, getRetry, isClient, isHotkeyMatch, legacyCopyToClipboard, throttle, useBattery, useBoolean, useClickOutside, useCopyToClipboard, useCounter, useDebouncedValue, useDefault, useDidUpdate, useDocumentTitle, useDocumentVisibility, useEvent, useEventListener, useFavicon, useFullscreen, useHash, useHotkeys, useHover, useIdle, useIntersectionObserver, useIsFirstRender, useIsomorphicLayoutEffect, useKeyPress, useKeyPressEvent, useKeyboard, useKeysPressed, useList, useLocalStorage, useLogger, useLongPress, useMediaQuery, useMount, useMouse, useMutation, useNetwork, useOnline, useOperatingSystem, useOrientation, usePageLeave, usePreferredLanguages, usePrevious, useQuery, useQueue, useRenderCount, useRerender, useScript, useSessionStorage, useSet, useStep, useStorage, useTextSelection, useTimeout, useToggle, useUnmount, useWindowEvent, useWindowSize };
|
|
1296
|
+
export { type ConnectionEffectiveType, type ConnectionType, type OperatingSystem, SCRIPT_STATUS_ATTRIBUTE_NAME, type UseClickOutside, type UseClickOutsideReturn, type UseCounter, type UseCounterOptions, type UseCounterParams, type UseCounterReturn, type UseDocumentTitleOptions, type UseDocumentTitleReturn, type UseEventListener, type UseEventListenerOptions, type UseEventListenerReturn, type UseEventListenerTarget, type UseFaviconReturn, type UseFullScreen, type UseFullScreenOptions, type UseFullScreenReturn, type UseHotkeysHotkeys, type UseHotkeysKey, type UseHotkeysOptions, type UseHover, type UseHoverOptions, type UseHoverReturn, type UseHoverTarget, type UseIdleReturn, type UseIntersectionObserver, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseIntersectionObserverTarget, type UseIntervalOptions, type UseIntervalReturn, type UseKeyPressEvent, type UseKeyPressEventKey, type UseKeyPressKey, type UseKeyPressOptions, type UseKeyboardParams, type UseListReturn, type UseLongPress, type UseLongPressReturn, type UseLongPressTarget, type UseMouse, type UseMouseReturn, type UseNetworkReturn, type UseOrientationReturn, type UseQueueReturn, type UseScriptOptions, type UseScriptStatus, type UseStorageInitialValue, type UseStorageOptions, type UseStorageReturn, type UseTextSelectionReturn, type UseToggleReturn, type UseWindowSizeReturn, debounce, dispatchStorageEvent, getConnection, getOperatingSystem, getRangesSelection, getRetry, isClient, isHotkeyMatch, legacyCopyToClipboard, throttle, useBattery, useBoolean, useClickOutside, useCopyToClipboard, useCounter, useDebouncedValue, useDefault, useDidUpdate, useDocumentTitle, useDocumentVisibility, useEvent, useEventListener, useFavicon, useFullscreen, useHash, useHotkeys, useHover, useIdle, useIntersectionObserver, useInterval, useIsFirstRender, useIsomorphicLayoutEffect, useKeyPress, useKeyPressEvent, useKeyboard, useKeysPressed, useList, useLocalStorage, useLogger, useLongPress, useMediaQuery, useMount, useMouse, useMutation, useNetwork, useOnline, useOperatingSystem, useOrientation, usePageLeave, usePreferredLanguages, usePrevious, useQuery, useQueue, useRenderCount, useRerender, useScript, useSessionStorage, useSet, useStep, useStorage, useTextSelection, useTimeout, useToggle, useUnmount, useWindowEvent, useWindowSize };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siberiacancode/reactuse",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Ultimate tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"@types/react": "^18.3.2",
|
|
75
75
|
"@types/react-dom": "^18.3.0",
|
|
76
76
|
"comment-parser": "^1.4.1",
|
|
77
|
+
"core-js": "^3.37.1",
|
|
77
78
|
"doctrine": "^3.0.0",
|
|
78
79
|
"eslint": "^8.56.0",
|
|
79
80
|
"husky": "^9.0.11",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers-BNQyJZ2M.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_rollupPluginBabelHelpers-jvrIKhwu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|