react-simplikit 0.1.0 → 0.3.0
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/CHANGELOG.md +43 -0
- package/README.md +6 -73
- package/dist/hooks/useAsyncEffect/useAsyncEffect.cjs +2 -2
- package/dist/hooks/useAsyncEffect/useAsyncEffect.d.cts +2 -2
- package/dist/hooks/useAsyncEffect/useAsyncEffect.d.mts +2 -2
- package/dist/hooks/useAsyncEffect/useAsyncEffect.mjs +2 -2
- package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/useAvoidKeyboard.cjs +1 -1
- package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/useAvoidKeyboard.d.cts +1 -1
- package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/useAvoidKeyboard.d.mts +1 -1
- package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/useAvoidKeyboard.mjs +1 -1
- package/dist/{mobile/hooks → hooks}/useBodyScrollLock/useBodyScrollLock.cjs +1 -1
- package/dist/{mobile/hooks → hooks}/useBodyScrollLock/useBodyScrollLock.d.cts +1 -1
- package/dist/{mobile/hooks → hooks}/useBodyScrollLock/useBodyScrollLock.d.mts +1 -1
- package/dist/{mobile/hooks → hooks}/useBodyScrollLock/useBodyScrollLock.mjs +1 -1
- package/dist/hooks/useBooleanState/useBooleanState.cjs +3 -3
- package/dist/hooks/useBooleanState/useBooleanState.d.cts +3 -2
- package/dist/hooks/useBooleanState/useBooleanState.d.mts +3 -2
- package/dist/hooks/useBooleanState/useBooleanState.mjs +3 -3
- package/dist/hooks/useDebounce/debounce.cjs +1 -0
- package/dist/hooks/useDebounce/debounce.mjs +1 -0
- package/dist/hooks/useDebounce/useDebounce.cjs +1 -1
- package/dist/hooks/useDebounce/useDebounce.mjs +1 -1
- package/dist/hooks/useDebouncedCallback/useDebouncedCallback.cjs +31 -36
- package/dist/hooks/useDebouncedCallback/useDebouncedCallback.d.cts +17 -7
- package/dist/hooks/useDebouncedCallback/useDebouncedCallback.d.mts +17 -7
- package/dist/hooks/useDebouncedCallback/useDebouncedCallback.mjs +32 -37
- package/dist/hooks/useDebouncedValue/useDebouncedValue.cjs +64 -0
- package/dist/hooks/useDebouncedValue/useDebouncedValue.d.cts +49 -0
- package/dist/hooks/useDebouncedValue/useDebouncedValue.d.mts +49 -0
- package/dist/hooks/useDebouncedValue/useDebouncedValue.mjs +64 -0
- package/dist/hooks/useDoubleClick/useDoubleClick.cjs +0 -4
- package/dist/hooks/useDoubleClick/useDoubleClick.d.cts +0 -4
- package/dist/hooks/useDoubleClick/useDoubleClick.d.mts +0 -4
- package/dist/hooks/useDoubleClick/useDoubleClick.mjs +0 -4
- package/dist/hooks/useGeolocation/useGeolocation.cjs +0 -4
- package/dist/hooks/useGeolocation/useGeolocation.d.cts +0 -4
- package/dist/hooks/useGeolocation/useGeolocation.d.mts +0 -4
- package/dist/hooks/useGeolocation/useGeolocation.mjs +0 -4
- package/dist/hooks/useImpressionRef/useImpressionRef.cjs +25 -7
- package/dist/hooks/useImpressionRef/useImpressionRef.d.cts +0 -4
- package/dist/hooks/useImpressionRef/useImpressionRef.d.mts +0 -4
- package/dist/hooks/useImpressionRef/useImpressionRef.mjs +26 -8
- package/dist/hooks/useInputState/useInputState.cjs +1 -1
- package/dist/hooks/useInputState/useInputState.d.cts +3 -2
- package/dist/hooks/useInputState/useInputState.d.mts +3 -2
- package/dist/hooks/useInputState/useInputState.mjs +1 -1
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.cjs +9 -8
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.d.cts +1 -5
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.d.mts +1 -5
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.mjs +9 -8
- package/dist/{mobile/hooks → hooks}/useKeyboardHeight/useKeyboardHeight.cjs +1 -1
- package/dist/{mobile/hooks → hooks}/useKeyboardHeight/useKeyboardHeight.d.cts +1 -1
- package/dist/{mobile/hooks → hooks}/useKeyboardHeight/useKeyboardHeight.d.mts +1 -1
- package/dist/{mobile/hooks → hooks}/useKeyboardHeight/useKeyboardHeight.mjs +1 -1
- package/dist/hooks/useList/useList.cjs +11 -8
- package/dist/hooks/useList/useList.d.cts +12 -9
- package/dist/hooks/useList/useList.d.mts +12 -9
- package/dist/hooks/useList/useList.mjs +11 -8
- package/dist/hooks/useLongPress/useLongPress.cjs +3 -4
- package/dist/hooks/useLongPress/useLongPress.d.cts +0 -4
- package/dist/hooks/useLongPress/useLongPress.d.mts +0 -4
- package/dist/hooks/useLongPress/useLongPress.mjs +4 -5
- package/dist/{mobile/hooks → hooks}/useNetworkStatus/useNetworkStatus.cjs +1 -1
- package/dist/{mobile/hooks → hooks}/useNetworkStatus/useNetworkStatus.d.cts +1 -1
- package/dist/{mobile/hooks → hooks}/useNetworkStatus/useNetworkStatus.d.mts +1 -1
- package/dist/{mobile/hooks → hooks}/useNetworkStatus/useNetworkStatus.mjs +1 -1
- package/dist/hooks/useOutsideClickEffect/useOutsideClickEffect.cjs +0 -4
- package/dist/hooks/useOutsideClickEffect/useOutsideClickEffect.d.cts +0 -4
- package/dist/hooks/useOutsideClickEffect/useOutsideClickEffect.d.mts +0 -4
- package/dist/hooks/useOutsideClickEffect/useOutsideClickEffect.mjs +0 -4
- package/dist/{mobile/hooks → hooks}/usePageVisibility/usePageVisibility.cjs +3 -1
- package/dist/{mobile/hooks → hooks}/usePageVisibility/usePageVisibility.d.cts +3 -1
- package/dist/{mobile/hooks → hooks}/usePageVisibility/usePageVisibility.d.mts +3 -1
- package/dist/{mobile/hooks → hooks}/usePageVisibility/usePageVisibility.mjs +3 -1
- package/dist/hooks/useRefEffect/useRefEffect.cjs +6 -4
- package/dist/hooks/useRefEffect/useRefEffect.mjs +7 -5
- package/dist/{mobile/hooks → hooks}/useSafeAreaInset/useSafeAreaInset.cjs +1 -1
- package/dist/{mobile/hooks → hooks}/useSafeAreaInset/useSafeAreaInset.d.cts +1 -1
- package/dist/{mobile/hooks → hooks}/useSafeAreaInset/useSafeAreaInset.d.mts +1 -1
- package/dist/{mobile/hooks → hooks}/useSafeAreaInset/useSafeAreaInset.mjs +1 -1
- package/dist/{mobile/hooks → hooks}/useScrollDirection/useScrollDirection.cjs +1 -1
- package/dist/{mobile/hooks → hooks}/useScrollDirection/useScrollDirection.d.cts +1 -1
- package/dist/{mobile/hooks → hooks}/useScrollDirection/useScrollDirection.d.mts +1 -1
- package/dist/{mobile/hooks → hooks}/useScrollDirection/useScrollDirection.mjs +1 -1
- package/dist/hooks/useSet/useSet.cjs +11 -2
- package/dist/hooks/useSet/useSet.d.cts +11 -2
- package/dist/hooks/useSet/useSet.d.mts +11 -2
- package/dist/hooks/useSet/useSet.mjs +11 -2
- package/dist/hooks/useStorageState/useStorageState.cjs +1 -1
- package/dist/hooks/useStorageState/useStorageState.d.cts +0 -4
- package/dist/hooks/useStorageState/useStorageState.d.mts +0 -4
- package/dist/hooks/useStorageState/useStorageState.mjs +1 -1
- package/dist/hooks/useThrottle/throttle.cjs +22 -5
- package/dist/hooks/useThrottle/throttle.mjs +22 -5
- package/dist/hooks/useThrottledCallback/useThrottledCallback.cjs +22 -37
- package/dist/hooks/useThrottledCallback/useThrottledCallback.d.cts +18 -11
- package/dist/hooks/useThrottledCallback/useThrottledCallback.d.mts +18 -11
- package/dist/hooks/useThrottledCallback/useThrottledCallback.mjs +23 -38
- package/dist/hooks/useThrottledValue/useThrottledValue.cjs +66 -0
- package/dist/hooks/useThrottledValue/useThrottledValue.d.cts +48 -0
- package/dist/hooks/useThrottledValue/useThrottledValue.d.mts +48 -0
- package/dist/hooks/useThrottledValue/useThrottledValue.mjs +66 -0
- package/dist/hooks/useVisibilityEvent/useVisibilityEvent.cjs +2 -4
- package/dist/hooks/useVisibilityEvent/useVisibilityEvent.d.cts +2 -4
- package/dist/hooks/useVisibilityEvent/useVisibilityEvent.d.mts +2 -4
- package/dist/hooks/useVisibilityEvent/useVisibilityEvent.mjs +2 -4
- package/dist/{mobile/hooks → hooks}/useVisualViewport/useVisualViewport.cjs +1 -1
- package/dist/{mobile/hooks → hooks}/useVisualViewport/useVisualViewport.d.cts +1 -1
- package/dist/{mobile/hooks → hooks}/useVisualViewport/useVisualViewport.d.mts +1 -1
- package/dist/{mobile/hooks → hooks}/useVisualViewport/useVisualViewport.mjs +1 -1
- package/dist/index.cjs +23 -19
- package/dist/index.d.cts +21 -19
- package/dist/index.d.mts +21 -19
- package/dist/index.mjs +22 -20
- package/dist/{mobile/utils → utils}/disableBodyScrollLock/disableBodyScrollLock.cjs +1 -1
- package/dist/{mobile/utils → utils}/disableBodyScrollLock/disableBodyScrollLock.d.cts +1 -1
- package/dist/{mobile/utils → utils}/disableBodyScrollLock/disableBodyScrollLock.d.mts +1 -1
- package/dist/{mobile/utils → utils}/disableBodyScrollLock/disableBodyScrollLock.mjs +1 -1
- package/dist/{mobile/utils → utils}/enableBodyScrollLock/enableBodyScrollLock.cjs +1 -1
- package/dist/{mobile/utils → utils}/enableBodyScrollLock/enableBodyScrollLock.d.cts +1 -1
- package/dist/{mobile/utils → utils}/enableBodyScrollLock/enableBodyScrollLock.d.mts +1 -1
- package/dist/{mobile/utils → utils}/enableBodyScrollLock/enableBodyScrollLock.mjs +1 -1
- package/dist/{mobile/utils → utils}/getKeyboardHeight/getKeyboardHeight.cjs +1 -1
- package/dist/{mobile/utils → utils}/getKeyboardHeight/getKeyboardHeight.d.cts +1 -1
- package/dist/{mobile/utils → utils}/getKeyboardHeight/getKeyboardHeight.d.mts +1 -1
- package/dist/{mobile/utils → utils}/getKeyboardHeight/getKeyboardHeight.mjs +1 -1
- package/dist/{mobile/utils → utils}/getSafeAreaInset/getSafeAreaInset.cjs +1 -1
- package/dist/{mobile/utils → utils}/getSafeAreaInset/getSafeAreaInset.d.cts +1 -1
- package/dist/{mobile/utils → utils}/getSafeAreaInset/getSafeAreaInset.d.mts +1 -1
- package/dist/{mobile/utils → utils}/getSafeAreaInset/getSafeAreaInset.mjs +1 -1
- package/dist/{mobile/utils → utils}/isAndroid/isAndroid.cjs +1 -1
- package/dist/{mobile/utils → utils}/isAndroid/isAndroid.d.cts +1 -1
- package/dist/{mobile/utils → utils}/isAndroid/isAndroid.d.mts +1 -1
- package/dist/{mobile/utils → utils}/isAndroid/isAndroid.mjs +1 -1
- package/dist/{mobile/utils → utils}/isIOS/isIOS.cjs +1 -1
- package/dist/{mobile/utils → utils}/isIOS/isIOS.d.cts +1 -1
- package/dist/{mobile/utils → utils}/isIOS/isIOS.d.mts +1 -1
- package/dist/{mobile/utils → utils}/isIOS/isIOS.mjs +1 -1
- package/dist/{mobile/utils → utils}/isKeyboardVisible/isKeyboardVisible.cjs +1 -1
- package/dist/{mobile/utils → utils}/isKeyboardVisible/isKeyboardVisible.d.cts +1 -1
- package/dist/{mobile/utils → utils}/isKeyboardVisible/isKeyboardVisible.d.mts +1 -1
- package/dist/{mobile/utils → utils}/isKeyboardVisible/isKeyboardVisible.mjs +1 -1
- package/dist/{mobile/utils → utils}/isServer/isServer.cjs +1 -1
- package/dist/{mobile/utils → utils}/isServer/isServer.d.cts +1 -1
- package/dist/{mobile/utils → utils}/isServer/isServer.d.mts +1 -1
- package/dist/{mobile/utils → utils}/isServer/isServer.mjs +1 -1
- package/dist/utils/mergeProps/mergeProps.cjs +1 -1
- package/dist/utils/mergeProps/mergeProps.d.cts +1 -1
- package/dist/utils/mergeProps/mergeProps.d.mts +1 -1
- package/dist/utils/mergeProps/mergeProps.mjs +1 -1
- package/dist/utils/mergeRefs/mergeRefs.cjs +1 -1
- package/dist/utils/mergeRefs/mergeRefs.d.cts +1 -1
- package/dist/utils/mergeRefs/mergeRefs.d.mts +1 -1
- package/dist/utils/mergeRefs/mergeRefs.mjs +1 -1
- package/dist/{mobile/utils → utils}/subscribeKeyboardHeight/subscribeKeyboardHeight.cjs +1 -1
- package/dist/{mobile/utils → utils}/subscribeKeyboardHeight/subscribeKeyboardHeight.d.cts +1 -1
- package/dist/{mobile/utils → utils}/subscribeKeyboardHeight/subscribeKeyboardHeight.d.mts +1 -1
- package/dist/{mobile/utils → utils}/subscribeKeyboardHeight/subscribeKeyboardHeight.mjs +1 -1
- package/package.json +2 -4
- /package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/index.d.cts +0 -0
- /package/dist/{mobile/hooks → hooks}/useAvoidKeyboard/index.d.mts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_isServer = require("../isServer/isServer.cjs");
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/enableBodyScrollLock/enableBodyScrollLock.ts
|
|
4
4
|
/**
|
|
5
5
|
* Data attribute key for storing scroll position
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { isServer } from "../isServer/isServer.mjs";
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/enableBodyScrollLock/enableBodyScrollLock.ts
|
|
4
4
|
/**
|
|
5
5
|
* Data attribute key for storing scroll position
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_isServer = require("../isServer/isServer.cjs");
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/getKeyboardHeight/getKeyboardHeight.ts
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* `getKeyboardHeight` is a utility function that returns the current on-screen keyboard height in pixels.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { isServer } from "../isServer/isServer.mjs";
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/getKeyboardHeight/getKeyboardHeight.ts
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* `getKeyboardHeight` is a utility function that returns the current on-screen keyboard height in pixels.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_isServer = require("../isServer/isServer.cjs");
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/getSafeAreaInset/getSafeAreaInset.ts
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* `getSafeAreaInset` is a utility function that returns all safe area insets in pixels as an object.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { isServer } from "../isServer/isServer.mjs";
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/getSafeAreaInset/getSafeAreaInset.ts
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* `getSafeAreaInset` is a utility function that returns all safe area insets in pixels as an object.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_isServer = require("../isServer/isServer.cjs");
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/isAndroid/isAndroid.ts
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* `isAndroid` is a utility function that detects whether the current device is running Android.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { isServer } from "../isServer/isServer.mjs";
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/isAndroid/isAndroid.ts
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* `isAndroid` is a utility function that detects whether the current device is running Android.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_isServer = require("../isServer/isServer.cjs");
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/isIOS/isIOS.ts
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* `isIOS` is a utility function that detects whether the current device is running iOS or iPadOS.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { isServer } from "../isServer/isServer.mjs";
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/isIOS/isIOS.ts
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* `isIOS` is a utility function that detects whether the current device is running iOS or iPadOS.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_getKeyboardHeight = require("../getKeyboardHeight/getKeyboardHeight.cjs");
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/isKeyboardVisible/isKeyboardVisible.ts
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* `isKeyboardVisible` is a utility function that checks whether the on-screen keyboard is currently visible.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getKeyboardHeight } from "../getKeyboardHeight/getKeyboardHeight.mjs";
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/utils/isKeyboardVisible/isKeyboardVisible.ts
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
6
6
|
* `isKeyboardVisible` is a utility function that checks whether the on-screen keyboard is currently visible.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @template PropsList - The type of the props objects to merge.
|
|
9
9
|
*
|
|
10
|
-
* @param {PropsList} props - The props objects to merge.
|
|
10
|
+
* @param {...PropsList} props - The props objects to merge.
|
|
11
11
|
* @returns {TupleToIntersection<PropsList>} The merged props object.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
@@ -13,7 +13,7 @@ type TupleToIntersection<T extends Record<string, unknown>[]> = { [I in keyof T]
|
|
|
13
13
|
*
|
|
14
14
|
* @template PropsList - The type of the props objects to merge.
|
|
15
15
|
*
|
|
16
|
-
* @param {PropsList} props - The props objects to merge.
|
|
16
|
+
* @param {...PropsList} props - The props objects to merge.
|
|
17
17
|
* @returns {TupleToIntersection<PropsList>} The merged props object.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
@@ -13,7 +13,7 @@ type TupleToIntersection<T extends Record<string, unknown>[]> = { [I in keyof T]
|
|
|
13
13
|
*
|
|
14
14
|
* @template PropsList - The type of the props objects to merge.
|
|
15
15
|
*
|
|
16
|
-
* @param {PropsList} props - The props objects to merge.
|
|
16
|
+
* @param {...PropsList} props - The props objects to merge.
|
|
17
17
|
* @returns {TupleToIntersection<PropsList>} The merged props object.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @template PropsList - The type of the props objects to merge.
|
|
9
9
|
*
|
|
10
|
-
* @param {PropsList} props - The props objects to merge.
|
|
10
|
+
* @param {...PropsList} props - The props objects to merge.
|
|
11
11
|
* @returns {TupleToIntersection<PropsList>} The merged props object.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @template T - The type of target to be referenced.
|
|
9
9
|
*
|
|
10
|
-
* @param {Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
|
|
10
|
+
* @param {...Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
|
|
11
11
|
*
|
|
12
12
|
* @returns {RefCallback<T>} A single ref callback that updates all provided refs.
|
|
13
13
|
*
|
|
@@ -8,7 +8,7 @@ import { RefCallback, RefObject } from "react";
|
|
|
8
8
|
*
|
|
9
9
|
* @template T - The type of target to be referenced.
|
|
10
10
|
*
|
|
11
|
-
* @param {Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
|
|
11
|
+
* @param {...Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
|
|
12
12
|
*
|
|
13
13
|
* @returns {RefCallback<T>} A single ref callback that updates all provided refs.
|
|
14
14
|
*
|
|
@@ -8,7 +8,7 @@ import { RefCallback, RefObject } from "react";
|
|
|
8
8
|
*
|
|
9
9
|
* @template T - The type of target to be referenced.
|
|
10
10
|
*
|
|
11
|
-
* @param {Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
|
|
11
|
+
* @param {...Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
|
|
12
12
|
*
|
|
13
13
|
* @returns {RefCallback<T>} A single ref callback that updates all provided refs.
|
|
14
14
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @template T - The type of target to be referenced.
|
|
9
9
|
*
|
|
10
|
-
* @param {Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
|
|
10
|
+
* @param {...Array<RefObject<T> | RefCallback<T> | null | undefined>} refs - An array of refs to be merged. Each ref can be either a RefObject or RefCallback.
|
|
11
11
|
*
|
|
12
12
|
* @returns {RefCallback<T>} A single ref callback that updates all provided refs.
|
|
13
13
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_isServer = require("../isServer/isServer.cjs");
|
|
3
3
|
const require_getKeyboardHeight = require("../getKeyboardHeight/getKeyboardHeight.cjs");
|
|
4
|
-
//#region src/
|
|
4
|
+
//#region src/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.ts
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
7
7
|
* `subscribeKeyboardHeight` is a utility function that subscribes to changes in the on-screen keyboard height.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
//#region src/
|
|
2
|
+
//#region src/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.d.ts
|
|
3
3
|
type SubscribeKeyboardHeightOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* A function that will be called with the updated keyboard height in pixels.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
//#region src/
|
|
2
|
+
//#region src/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.d.ts
|
|
3
3
|
type SubscribeKeyboardHeightOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* A function that will be called with the updated keyboard height in pixels.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { isServer } from "../isServer/isServer.mjs";
|
|
3
3
|
import { getKeyboardHeight } from "../getKeyboardHeight/getKeyboardHeight.mjs";
|
|
4
|
-
//#region src/
|
|
4
|
+
//#region src/utils/subscribeKeyboardHeight/subscribeKeyboardHeight.ts
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
7
7
|
* `subscribeKeyboardHeight` is a utility function that subscribes to changes in the on-screen keyboard height.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-simplikit",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "React hooks, components and utilities — SSR-safe, zero dependencies
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "React hooks, components and utilities for every React app, mobile web included — SSR-safe, zero dependencies",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.cts",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
"commander": "^13.1.0",
|
|
75
75
|
"comment-parser": "^1.4.1",
|
|
76
76
|
"corepack": "^0.30.0",
|
|
77
|
-
"dotenv": "^16.4.7",
|
|
78
77
|
"eslint": "^9.16.0",
|
|
79
78
|
"eslint-config-prettier": "^9.1.0",
|
|
80
79
|
"eslint-plugin-import": "^2.31.0",
|
|
@@ -88,7 +87,6 @@
|
|
|
88
87
|
"jsdom": "^25.0.1",
|
|
89
88
|
"listr2": "^8.2.5",
|
|
90
89
|
"nanoid": "^5.1.5",
|
|
91
|
-
"openai": "^4.93.0",
|
|
92
90
|
"ora": "^8.2.0",
|
|
93
91
|
"prettier": "^3.4.2",
|
|
94
92
|
"prettier-plugin-sort-re-exports": "^0.1.0",
|
|
File without changes
|
|
File without changes
|