foxact 0.2.54 → 0.2.55
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/merge-refs/index.cjs +1 -0
- package/merge-refs/index.d.ts +4 -0
- package/merge-refs/index.mjs +1 -0
- package/package.json +37 -28
- package/sizes.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=18>=Number.parseFloat(require("react").version)?function(){for(var r=arguments.length,e=Array(r),t=0;t<r;t++)e[t]=arguments[t];return r=>{e.forEach(e=>{"function"==typeof e?e(r):e&&(e.current=r)})}}:function(){for(var r=arguments.length,e=Array(r),t=0;t<r;t++)e[t]=arguments[t];return r=>{const t=new Set,n=new Set;return e.forEach(e=>{if("function"==typeof e){const o=e(r);"function"==typeof o?t.add(o):n.add(e)}else e&&(e.current=r)}),()=>{t.forEach(r=>r()),n.forEach(r=>r(null))}}};exports.mergeRefs=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{version as r}from"react";const t=18>=Number.parseFloat(r)?function(){for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];return r=>{t.forEach(t=>{"function"==typeof t?t(r):t&&(t.current=r)})}}:function(){for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];return r=>{const e=new Set,n=new Set;return t.forEach(t=>{if("function"==typeof t){const o=t(r);"function"==typeof o?e.add(o):n.add(t)}else t&&(t.current=r)}),()=>{e.forEach(r=>r()),n.forEach(r=>r(null))}}};export{t as mergeRefs};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foxact",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.55",
|
|
4
4
|
"description": "React Hooks/Utils done right. For browser, SSR, and React Server Components.",
|
|
5
5
|
"homepage": "https://foxact.skk.moe",
|
|
6
6
|
"repository": {
|
|
@@ -61,6 +61,15 @@
|
|
|
61
61
|
"require": "./compose-context-provider/index.cjs",
|
|
62
62
|
"default": "./compose-context-provider/index.cjs"
|
|
63
63
|
},
|
|
64
|
+
"./context-reducer": {
|
|
65
|
+
"types": "./context-reducer/index.d.ts",
|
|
66
|
+
"import": {
|
|
67
|
+
"types": "./context-reducer/index.d.ts",
|
|
68
|
+
"default": "./context-reducer/index.mjs"
|
|
69
|
+
},
|
|
70
|
+
"require": "./context-reducer/index.cjs",
|
|
71
|
+
"default": "./context-reducer/index.cjs"
|
|
72
|
+
},
|
|
64
73
|
"./context-state": {
|
|
65
74
|
"types": "./context-state/index.d.ts",
|
|
66
75
|
"import": {
|
|
@@ -79,15 +88,6 @@
|
|
|
79
88
|
"require": "./create-context-reducer/index.cjs",
|
|
80
89
|
"default": "./create-context-reducer/index.cjs"
|
|
81
90
|
},
|
|
82
|
-
"./context-reducer": {
|
|
83
|
-
"types": "./context-reducer/index.d.ts",
|
|
84
|
-
"import": {
|
|
85
|
-
"types": "./context-reducer/index.d.ts",
|
|
86
|
-
"default": "./context-reducer/index.mjs"
|
|
87
|
-
},
|
|
88
|
-
"require": "./context-reducer/index.cjs",
|
|
89
|
-
"default": "./context-reducer/index.cjs"
|
|
90
|
-
},
|
|
91
91
|
"./create-context-state": {
|
|
92
92
|
"types": "./create-context-state/index.d.ts",
|
|
93
93
|
"import": {
|
|
@@ -187,6 +187,15 @@
|
|
|
187
187
|
"require": "./invariant/index.cjs",
|
|
188
188
|
"default": "./invariant/index.cjs"
|
|
189
189
|
},
|
|
190
|
+
"./is-safari": {
|
|
191
|
+
"types": "./is-safari/index.d.ts",
|
|
192
|
+
"import": {
|
|
193
|
+
"types": "./is-safari/index.d.ts",
|
|
194
|
+
"default": "./is-safari/index.mjs"
|
|
195
|
+
},
|
|
196
|
+
"require": "./is-safari/index.cjs",
|
|
197
|
+
"default": "./is-safari/index.cjs"
|
|
198
|
+
},
|
|
190
199
|
"./magic-portal": {
|
|
191
200
|
"types": "./magic-portal/index.d.ts",
|
|
192
201
|
"import": {
|
|
@@ -196,6 +205,15 @@
|
|
|
196
205
|
"require": "./magic-portal/index.cjs",
|
|
197
206
|
"default": "./magic-portal/index.cjs"
|
|
198
207
|
},
|
|
208
|
+
"./merge-refs": {
|
|
209
|
+
"types": "./merge-refs/index.d.ts",
|
|
210
|
+
"import": {
|
|
211
|
+
"types": "./merge-refs/index.d.ts",
|
|
212
|
+
"default": "./merge-refs/index.mjs"
|
|
213
|
+
},
|
|
214
|
+
"require": "./merge-refs/index.cjs",
|
|
215
|
+
"default": "./merge-refs/index.cjs"
|
|
216
|
+
},
|
|
199
217
|
"./no-ssr": {
|
|
200
218
|
"types": "./no-ssr/index.d.ts",
|
|
201
219
|
"import": {
|
|
@@ -205,15 +223,6 @@
|
|
|
205
223
|
"require": "./no-ssr/index.cjs",
|
|
206
224
|
"default": "./no-ssr/index.cjs"
|
|
207
225
|
},
|
|
208
|
-
"./is-safari": {
|
|
209
|
-
"types": "./is-safari/index.d.ts",
|
|
210
|
-
"import": {
|
|
211
|
-
"types": "./is-safari/index.d.ts",
|
|
212
|
-
"default": "./is-safari/index.mjs"
|
|
213
|
-
},
|
|
214
|
-
"require": "./is-safari/index.cjs",
|
|
215
|
-
"default": "./is-safari/index.cjs"
|
|
216
|
-
},
|
|
217
226
|
"./noop": {
|
|
218
227
|
"types": "./noop/index.d.ts",
|
|
219
228
|
"import": {
|
|
@@ -241,15 +250,6 @@
|
|
|
241
250
|
"require": "./open-new-tab/index.cjs",
|
|
242
251
|
"default": "./open-new-tab/index.cjs"
|
|
243
252
|
},
|
|
244
|
-
"./request-idle-callback": {
|
|
245
|
-
"types": "./request-idle-callback/index.d.ts",
|
|
246
|
-
"import": {
|
|
247
|
-
"types": "./request-idle-callback/index.d.ts",
|
|
248
|
-
"default": "./request-idle-callback/index.mjs"
|
|
249
|
-
},
|
|
250
|
-
"require": "./request-idle-callback/index.cjs",
|
|
251
|
-
"default": "./request-idle-callback/index.cjs"
|
|
252
|
-
},
|
|
253
253
|
"./rem": {
|
|
254
254
|
"types": "./rem/index.d.ts",
|
|
255
255
|
"import": {
|
|
@@ -259,6 +259,15 @@
|
|
|
259
259
|
"require": "./rem/index.cjs",
|
|
260
260
|
"default": "./rem/index.cjs"
|
|
261
261
|
},
|
|
262
|
+
"./request-idle-callback": {
|
|
263
|
+
"types": "./request-idle-callback/index.d.ts",
|
|
264
|
+
"import": {
|
|
265
|
+
"types": "./request-idle-callback/index.d.ts",
|
|
266
|
+
"default": "./request-idle-callback/index.mjs"
|
|
267
|
+
},
|
|
268
|
+
"require": "./request-idle-callback/index.cjs",
|
|
269
|
+
"default": "./request-idle-callback/index.cjs"
|
|
270
|
+
},
|
|
262
271
|
"./types": {
|
|
263
272
|
"types": "./types/index.d.ts",
|
|
264
273
|
"import": {
|
package/sizes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"total":{"raw":
|
|
1
|
+
{"total":{"raw":28153,"gzip":17099,"br":0},"exports":{"compose-context-provider":{"raw":177,"gzip":155,"br":122},"context-state":{"raw":402,"gzip":259,"br":218},"create-context-reducer":{"raw":223,"gzip":146,"br":117},"create-context-state":{"raw":145,"gzip":116,"br":96},"create-magic-portal":{"raw":224,"gzip":136,"br":112},"create-fixed-array":{"raw":452,"gzip":282,"br":248},"create-session-storage-state":{"raw":406,"gzip":215,"br":188},"create-local-storage-state":{"raw":402,"gzip":216,"br":189},"context-reducer":{"raw":557,"gzip":332,"br":319},"current-year":{"raw":524,"gzip":355,"br":293},"email-protection":{"raw":426,"gzip":321,"br":272},"create-storage-state-factory":{"raw":592,"gzip":338,"br":304},"invariant":{"raw":178,"gzip":156,"br":118},"fetch-jsonp":{"raw":890,"gzip":546,"br":429},"is-safari":{"raw":233,"gzip":164,"br":119},"create-storage-hook":{"raw":2087,"gzip":897,"br":789},"noop":{"raw":33,"gzip":53,"br":37},"no-ssr":{"raw":465,"gzip":313,"br":260},"nullthrow":{"raw":187,"gzip":163,"br":121},"magic-portal":{"raw":1039,"gzip":521,"br":463},"request-idle-callback":{"raw":392,"gzip":221,"br":171},"types":{"raw":0,"gzip":20,"br":1},"merge-refs":{"raw":525,"gzip":280,"br":235},"use":{"raw":298,"gzip":197,"br":160},"use-abortable-effect":{"raw":215,"gzip":170,"br":144},"open-new-tab":{"raw":335,"gzip":255,"br":187},"typescript-happy-forward-ref":{"raw":119,"gzip":103,"br":80},"rem":{"raw":823,"gzip":395,"br":350},"use-component-will-receive-update":{"raw":216,"gzip":188,"br":154},"use-composition-input":{"raw":470,"gzip":286,"br":241},"use-debounced-state":{"raw":401,"gzip":280,"br":242},"use-array":{"raw":322,"gzip":236,"br":202},"use-error-boundary":{"raw":252,"gzip":195,"br":165},"use-clipboard":{"raw":1177,"gzip":650,"br":552},"use-is-client":{"raw":204,"gzip":153,"br":121},"use-debounced-value":{"raw":524,"gzip":342,"br":286},"use-isomorphic-layout-effect":{"raw":169,"gzip":137,"br":110},"use-intersection":{"raw":1230,"gzip":649,"br":597},"use-fast-click":{"raw":578,"gzip":377,"br":304},"use-local-storage":{"raw":384,"gzip":215,"br":201},"use-map":{"raw":339,"gzip":243,"br":208},"use-is-online":{"raw":370,"gzip":258,"br":220},"use-page-visibility":{"raw":359,"gzip":263,"br":210},"use-next-pathname":{"raw":314,"gzip":235,"br":203},"use-media-query":{"raw":604,"gzip":380,"br":315},"use-next-link":{"raw":1647,"gzip":875,"br":742},"use-retimer":{"raw":199,"gzip":166,"br":127},"use-react-router-is-match":{"raw":594,"gzip":395,"br":337},"use-set":{"raw":340,"gzip":238,"br":203},"use-react-router-enable-concurrent-navigation":{"raw":966,"gzip":470,"br":397},"use-session-storage":{"raw":390,"gzip":210,"br":201},"use-singleton":{"raw":149,"gzip":135,"br":116},"use-typescript-happy-callback":{"raw":107,"gzip":102,"br":77},"use-readonly-search-params":{"raw":1120,"gzip":573,"br":477},"use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired":{"raw":450,"gzip":318,"br":249},"use-state-with-deps":{"raw":464,"gzip":321,"br":295},"use-uncontrolled":{"raw":388,"gzip":273,"br":230},"use-url-hash-state":{"raw":1077,"gzip":611,"br":536}}}
|