react-simplikit 0.1.0 → 0.2.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 +20 -0
- package/README.md +1 -41
- package/dist/hooks/useDebouncedCallback/useDebouncedCallback.cjs +24 -6
- package/dist/hooks/useDebouncedCallback/useDebouncedCallback.d.cts +17 -7
- package/dist/hooks/useDebouncedCallback/useDebouncedCallback.d.mts +17 -7
- package/dist/hooks/useDebouncedCallback/useDebouncedCallback.mjs +24 -6
- 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 +7 -5
- package/dist/hooks/useImpressionRef/useImpressionRef.d.cts +0 -4
- package/dist/hooks/useImpressionRef/useImpressionRef.d.mts +0 -4
- package/dist/hooks/useImpressionRef/useImpressionRef.mjs +7 -5
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.cjs +1 -5
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.d.cts +1 -5
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.d.mts +1 -5
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.mjs +1 -5
- 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 +0 -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 +0 -4
- 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/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.d.cts +0 -4
- package/dist/hooks/useStorageState/useStorageState.d.mts +0 -4
- package/dist/hooks/useThrottledCallback/useThrottledCallback.cjs +16 -9
- package/dist/hooks/useThrottledCallback/useThrottledCallback.d.cts +18 -11
- package/dist/hooks/useThrottledCallback/useThrottledCallback.d.mts +18 -11
- package/dist/hooks/useThrottledCallback/useThrottledCallback.mjs +16 -9
- 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/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/mobile/hooks/usePageVisibility/usePageVisibility.cjs +2 -0
- package/dist/mobile/hooks/usePageVisibility/usePageVisibility.d.cts +2 -0
- package/dist/mobile/hooks/usePageVisibility/usePageVisibility.d.mts +2 -0
- package/dist/mobile/hooks/usePageVisibility/usePageVisibility.mjs +2 -0
- 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/package.json +1 -3
|
@@ -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
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-simplikit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "React hooks, components and utilities — SSR-safe, zero dependencies, mobile web included",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -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",
|