@fringeworks/react-utils 0.9.2 → 0.10.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/README.ja.md +110 -10
- package/README.md +110 -10
- package/_helpers/_useExecutionHandler.cjs +37 -0
- package/_helpers/_useExecutionHandler.d.cts +18 -0
- package/_helpers/_useExecutionHandler.d.mts +18 -0
- package/_helpers/_useExecutionHandler.mjs +36 -0
- package/hooks/index.cjs +17 -2
- package/hooks/index.d.cts +8 -3
- package/hooks/index.d.mts +8 -3
- package/hooks/index.mjs +13 -3
- package/hooks/useExecutionEffect/index.cjs +5 -0
- package/hooks/useExecutionEffect/index.d.cts +2 -0
- package/hooks/useExecutionEffect/index.d.mts +2 -0
- package/hooks/useExecutionEffect/index.mjs +3 -0
- package/hooks/useExecutionEffect/useExecutionEffect.cjs +37 -0
- package/hooks/useExecutionEffect/useExecutionEffect.d.cts +27 -0
- package/hooks/useExecutionEffect/useExecutionEffect.d.mts +27 -0
- package/hooks/useExecutionEffect/useExecutionEffect.mjs +36 -0
- package/hooks/useExecutionLayoutEffect/index.cjs +5 -0
- package/hooks/useExecutionLayoutEffect/index.d.cts +2 -0
- package/hooks/useExecutionLayoutEffect/index.d.mts +2 -0
- package/hooks/useExecutionLayoutEffect/index.mjs +3 -0
- package/hooks/useExecutionLayoutEffect/useExecutionLayoutEffect.cjs +24 -0
- package/hooks/useExecutionLayoutEffect/useExecutionLayoutEffect.d.cts +14 -0
- package/hooks/useExecutionLayoutEffect/useExecutionLayoutEffect.d.mts +14 -0
- package/hooks/useExecutionLayoutEffect/useExecutionLayoutEffect.mjs +23 -0
- package/hooks/useIsHydrated/index.cjs +5 -0
- package/hooks/useIsHydrated/index.d.cts +2 -0
- package/hooks/useIsHydrated/index.d.mts +2 -0
- package/hooks/useIsHydrated/index.mjs +3 -0
- package/hooks/useIsHydrated/useIsHydrated.cjs +28 -0
- package/hooks/useIsHydrated/useIsHydrated.d.cts +15 -0
- package/hooks/useIsHydrated/useIsHydrated.d.mts +15 -0
- package/hooks/useIsHydrated/useIsHydrated.mjs +27 -0
- package/hooks/useRerender/index.cjs +5 -0
- package/hooks/useRerender/index.d.cts +2 -0
- package/hooks/useRerender/index.d.mts +2 -0
- package/hooks/useRerender/index.mjs +3 -0
- package/hooks/useRerender/useRerender.cjs +19 -0
- package/hooks/useRerender/useRerender.d.cts +11 -0
- package/hooks/useRerender/useRerender.d.mts +11 -0
- package/hooks/useRerender/useRerender.mjs +18 -0
- package/hooks/useStableCallback/index.cjs +5 -0
- package/hooks/useStableCallback/index.d.cts +2 -0
- package/hooks/useStableCallback/index.d.mts +2 -0
- package/hooks/useStableCallback/index.mjs +3 -0
- package/hooks/useStableCallback/useStableCallback.cjs +25 -0
- package/hooks/useStableCallback/useStableCallback.d.cts +15 -0
- package/hooks/useStableCallback/useStableCallback.d.mts +15 -0
- package/hooks/useStableCallback/useStableCallback.mjs +24 -0
- package/index.cjs +11 -1
- package/index.d.cts +8 -3
- package/index.d.mts +8 -3
- package/index.mjs +7 -2
- package/package.json +51 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fringeworks/react-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "A library some will find handy, providing utilities for React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
@@ -64,6 +64,36 @@
|
|
|
64
64
|
"default": "./hooks/useExecutionAt/index.cjs"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
+
"./hooks/useExecutionEffect": {
|
|
68
|
+
"import": {
|
|
69
|
+
"types": "./hooks/useExecutionEffect/index.d.mts",
|
|
70
|
+
"default": "./hooks/useExecutionEffect/index.mjs"
|
|
71
|
+
},
|
|
72
|
+
"require": {
|
|
73
|
+
"types": "./hooks/useExecutionEffect/index.d.cts",
|
|
74
|
+
"default": "./hooks/useExecutionEffect/index.cjs"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"./hooks/useExecutionLayoutEffect": {
|
|
78
|
+
"import": {
|
|
79
|
+
"types": "./hooks/useExecutionLayoutEffect/index.d.mts",
|
|
80
|
+
"default": "./hooks/useExecutionLayoutEffect/index.mjs"
|
|
81
|
+
},
|
|
82
|
+
"require": {
|
|
83
|
+
"types": "./hooks/useExecutionLayoutEffect/index.d.cts",
|
|
84
|
+
"default": "./hooks/useExecutionLayoutEffect/index.cjs"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"./hooks/useIsHydrated": {
|
|
88
|
+
"import": {
|
|
89
|
+
"types": "./hooks/useIsHydrated/index.d.mts",
|
|
90
|
+
"default": "./hooks/useIsHydrated/index.mjs"
|
|
91
|
+
},
|
|
92
|
+
"require": {
|
|
93
|
+
"types": "./hooks/useIsHydrated/index.d.cts",
|
|
94
|
+
"default": "./hooks/useIsHydrated/index.cjs"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
67
97
|
"./hooks/useIsMounted": {
|
|
68
98
|
"import": {
|
|
69
99
|
"types": "./hooks/useIsMounted/index.d.mts",
|
|
@@ -94,6 +124,26 @@
|
|
|
94
124
|
"default": "./hooks/usePreviousValue/index.cjs"
|
|
95
125
|
}
|
|
96
126
|
},
|
|
127
|
+
"./hooks/useRerender": {
|
|
128
|
+
"import": {
|
|
129
|
+
"types": "./hooks/useRerender/index.d.mts",
|
|
130
|
+
"default": "./hooks/useRerender/index.mjs"
|
|
131
|
+
},
|
|
132
|
+
"require": {
|
|
133
|
+
"types": "./hooks/useRerender/index.d.cts",
|
|
134
|
+
"default": "./hooks/useRerender/index.cjs"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"./hooks/useStableCallback": {
|
|
138
|
+
"import": {
|
|
139
|
+
"types": "./hooks/useStableCallback/index.d.mts",
|
|
140
|
+
"default": "./hooks/useStableCallback/index.mjs"
|
|
141
|
+
},
|
|
142
|
+
"require": {
|
|
143
|
+
"types": "./hooks/useStableCallback/index.d.cts",
|
|
144
|
+
"default": "./hooks/useStableCallback/index.cjs"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
97
147
|
"./hooks/useStableLength": {
|
|
98
148
|
"import": {
|
|
99
149
|
"types": "./hooks/useStableLength/index.d.mts",
|