foxact 0.3.1 → 0.3.3

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.
@@ -0,0 +1,2 @@
1
+ 'use client';
2
+ "use strict";var r=require("react/jsx-runtime"),e=require("react");exports.NoopComponent=function(){return r.jsx(e.Fragment,{})};
@@ -0,0 +1,3 @@
1
+ declare function NoopComponent(): React.ReactElement;
2
+
3
+ export { NoopComponent };
@@ -0,0 +1,2 @@
1
+ 'use client';
2
+ import{jsx as o}from"react/jsx-runtime";import{Fragment as r}from"react";function t(){return o(r,{})}export{t as NoopComponent};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foxact",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
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": {
@@ -124,15 +124,6 @@
124
124
  "require": "./create-magic-portal/index.cjs",
125
125
  "default": "./create-magic-portal/index.cjs"
126
126
  },
127
- "./create-session-storage-state": {
128
- "types": "./create-session-storage-state/index.d.ts",
129
- "import": {
130
- "types": "./create-session-storage-state/index.d.ts",
131
- "default": "./create-session-storage-state/index.mjs"
132
- },
133
- "require": "./create-session-storage-state/index.cjs",
134
- "default": "./create-session-storage-state/index.cjs"
135
- },
136
127
  "./create-stackless-error": {
137
128
  "types": "./create-stackless-error/index.d.ts",
138
129
  "import": {
@@ -232,6 +223,15 @@
232
223
  "require": "./no-ssr/index.cjs",
233
224
  "default": "./no-ssr/index.cjs"
234
225
  },
226
+ "./create-session-storage-state": {
227
+ "types": "./create-session-storage-state/index.d.ts",
228
+ "import": {
229
+ "types": "./create-session-storage-state/index.d.ts",
230
+ "default": "./create-session-storage-state/index.mjs"
231
+ },
232
+ "require": "./create-session-storage-state/index.cjs",
233
+ "default": "./create-session-storage-state/index.cjs"
234
+ },
235
235
  "./noop": {
236
236
  "types": "./noop/index.d.ts",
237
237
  "import": {
@@ -241,6 +241,15 @@
241
241
  "require": "./noop/index.cjs",
242
242
  "default": "./noop/index.cjs"
243
243
  },
244
+ "./noop-component": {
245
+ "types": "./noop-component/index.d.ts",
246
+ "import": {
247
+ "types": "./noop-component/index.d.ts",
248
+ "default": "./noop-component/index.mjs"
249
+ },
250
+ "require": "./noop-component/index.cjs",
251
+ "default": "./noop-component/index.cjs"
252
+ },
244
253
  "./nullthrow": {
245
254
  "types": "./nullthrow/index.d.ts",
246
255
  "import": {
@@ -250,15 +259,6 @@
250
259
  "require": "./nullthrow/index.cjs",
251
260
  "default": "./nullthrow/index.cjs"
252
261
  },
253
- "./open-new-tab": {
254
- "types": "./open-new-tab/index.d.ts",
255
- "import": {
256
- "types": "./open-new-tab/index.d.ts",
257
- "default": "./open-new-tab/index.mjs"
258
- },
259
- "require": "./open-new-tab/index.cjs",
260
- "default": "./open-new-tab/index.cjs"
261
- },
262
262
  "./rem": {
263
263
  "types": "./rem/index.d.ts",
264
264
  "import": {
@@ -268,6 +268,15 @@
268
268
  "require": "./rem/index.cjs",
269
269
  "default": "./rem/index.cjs"
270
270
  },
271
+ "./open-new-tab": {
272
+ "types": "./open-new-tab/index.d.ts",
273
+ "import": {
274
+ "types": "./open-new-tab/index.d.ts",
275
+ "default": "./open-new-tab/index.mjs"
276
+ },
277
+ "require": "./open-new-tab/index.cjs",
278
+ "default": "./open-new-tab/index.cjs"
279
+ },
271
280
  "./request-idle-callback": {
272
281
  "types": "./request-idle-callback/index.d.ts",
273
282
  "import": {
@@ -367,6 +376,15 @@
367
376
  "require": "./use-debounced-value/index.cjs",
368
377
  "default": "./use-debounced-value/index.cjs"
369
378
  },
379
+ "./use-intersection": {
380
+ "types": "./use-intersection/index.d.ts",
381
+ "import": {
382
+ "types": "./use-intersection/index.d.ts",
383
+ "default": "./use-intersection/index.mjs"
384
+ },
385
+ "require": "./use-intersection/index.cjs",
386
+ "default": "./use-intersection/index.cjs"
387
+ },
370
388
  "./use-error-boundary": {
371
389
  "types": "./use-error-boundary/index.d.ts",
372
390
  "import": {
@@ -385,15 +403,6 @@
385
403
  "require": "./use-fast-click/index.cjs",
386
404
  "default": "./use-fast-click/index.cjs"
387
405
  },
388
- "./use-intersection": {
389
- "types": "./use-intersection/index.d.ts",
390
- "import": {
391
- "types": "./use-intersection/index.d.ts",
392
- "default": "./use-intersection/index.mjs"
393
- },
394
- "require": "./use-intersection/index.cjs",
395
- "default": "./use-intersection/index.cjs"
396
- },
397
406
  "./use-is-client": {
398
407
  "types": "./use-is-client/index.d.ts",
399
408
  "import": {
@@ -475,15 +484,6 @@
475
484
  "require": "./use-retimer/index.cjs",
476
485
  "default": "./use-retimer/index.cjs"
477
486
  },
478
- "./use-set": {
479
- "types": "./use-set/index.d.ts",
480
- "import": {
481
- "types": "./use-set/index.d.ts",
482
- "default": "./use-set/index.mjs"
483
- },
484
- "require": "./use-set/index.cjs",
485
- "default": "./use-set/index.cjs"
486
- },
487
487
  "./use-session-storage": {
488
488
  "types": "./use-session-storage/index.d.ts",
489
489
  "import": {
@@ -493,6 +493,15 @@
493
493
  "require": "./use-session-storage/index.cjs",
494
494
  "default": "./use-session-storage/index.cjs"
495
495
  },
496
+ "./use-set": {
497
+ "types": "./use-set/index.d.ts",
498
+ "import": {
499
+ "types": "./use-set/index.d.ts",
500
+ "default": "./use-set/index.mjs"
501
+ },
502
+ "require": "./use-set/index.cjs",
503
+ "default": "./use-set/index.cjs"
504
+ },
496
505
  "./use-singleton": {
497
506
  "types": "./use-singleton/index.d.ts",
498
507
  "import": {
@@ -502,15 +511,6 @@
502
511
  "require": "./use-singleton/index.cjs",
503
512
  "default": "./use-singleton/index.cjs"
504
513
  },
505
- "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired": {
506
- "types": "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired/index.d.ts",
507
- "import": {
508
- "types": "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired/index.d.ts",
509
- "default": "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired/index.mjs"
510
- },
511
- "require": "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired/index.cjs",
512
- "default": "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired/index.cjs"
513
- },
514
514
  "./use-state-with-deps": {
515
515
  "types": "./use-state-with-deps/index.d.ts",
516
516
  "import": {
@@ -520,6 +520,15 @@
520
520
  "require": "./use-state-with-deps/index.cjs",
521
521
  "default": "./use-state-with-deps/index.cjs"
522
522
  },
523
+ "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired": {
524
+ "types": "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired/index.d.ts",
525
+ "import": {
526
+ "types": "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired/index.d.ts",
527
+ "default": "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired/index.mjs"
528
+ },
529
+ "require": "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired/index.cjs",
530
+ "default": "./use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired/index.cjs"
531
+ },
523
532
  "./use-typescript-happy-callback": {
524
533
  "types": "./use-typescript-happy-callback/index.d.ts",
525
534
  "import": {
package/sizes.json CHANGED
@@ -1 +1 @@
1
- {"total":{"raw":25626,"gzip":15486,"br":0},"exports":{"context-state":{"raw":402,"gzip":259,"br":218},"create-context-state":{"raw":145,"gzip":116,"br":96},"compose-context-provider":{"raw":177,"gzip":155,"br":122},"create-local-storage-state":{"raw":446,"gzip":222,"br":209},"create-magic-portal":{"raw":268,"gzip":148,"br":121},"context-reducer":{"raw":557,"gzip":332,"br":319},"create-stackless-error":{"raw":278,"gzip":198,"br":162},"create-context-reducer":{"raw":223,"gzip":146,"br":117},"create-storage-state-factory":{"raw":620,"gzip":341,"br":290},"email-protection":{"raw":426,"gzip":321,"br":272},"create-fixed-array":{"raw":452,"gzip":282,"br":248},"fetch-jsonp":{"raw":890,"gzip":546,"br":429},"create-session-storage-state":{"raw":450,"gzip":223,"br":206},"create-storage-hook":{"raw":2462,"gzip":972,"br":852},"invariant":{"raw":178,"gzip":156,"br":118},"is-safari":{"raw":233,"gzip":164,"br":119},"no-ssr":{"raw":338,"gzip":267,"br":219},"current-year":{"raw":524,"gzip":355,"br":293},"merge-refs":{"raw":525,"gzip":280,"br":235},"nullthrow":{"raw":187,"gzip":163,"br":121},"open-new-tab":{"raw":335,"gzip":255,"br":187},"magic-portal":{"raw":1083,"gzip":536,"br":472},"types":{"raw":0,"gzip":20,"br":1},"rem":{"raw":823,"gzip":395,"br":350},"typescript-happy-forward-ref":{"raw":119,"gzip":103,"br":80},"use":{"raw":298,"gzip":197,"br":160},"use-abortable-effect":{"raw":215,"gzip":170,"br":144},"use-array":{"raw":322,"gzip":236,"br":202},"noop":{"raw":33,"gzip":53,"br":37},"request-idle-callback":{"raw":392,"gzip":221,"br":171},"use-composition-input":{"raw":470,"gzip":286,"br":241},"use-debounced-state":{"raw":401,"gzip":280,"br":242},"use-component-will-receive-update":{"raw":216,"gzip":188,"br":154},"use-clipboard":{"raw":1177,"gzip":650,"br":552},"use-fast-click":{"raw":622,"gzip":392,"br":317},"use-error-boundary":{"raw":252,"gzip":195,"br":165},"use-debounced-value":{"raw":524,"gzip":342,"br":286},"use-isomorphic-layout-effect":{"raw":169,"gzip":137,"br":110},"use-is-online":{"raw":370,"gzip":258,"br":220},"use-local-storage":{"raw":428,"gzip":226,"br":198},"use-is-client":{"raw":204,"gzip":153,"br":121},"use-intersection":{"raw":1230,"gzip":649,"br":597},"use-page-visibility":{"raw":359,"gzip":263,"br":210},"use-map":{"raw":339,"gzip":243,"br":208},"use-set":{"raw":340,"gzip":238,"br":203},"use-media-query":{"raw":648,"gzip":397,"br":332},"use-singleton":{"raw":149,"gzip":135,"br":116},"use-retimer":{"raw":199,"gzip":166,"br":127},"use-readonly-search-params":{"raw":1164,"gzip":589,"br":496},"use-state-with-deps":{"raw":464,"gzip":321,"br":295},"use-typescript-happy-callback":{"raw":107,"gzip":102,"br":77},"use-session-storage":{"raw":434,"gzip":225,"br":210},"use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired":{"raw":450,"gzip":318,"br":249},"use-uncontrolled":{"raw":388,"gzip":273,"br":230},"use-url-hash-state":{"raw":1121,"gzip":628,"br":556}}}
1
+ {"total":{"raw":25768,"gzip":15616,"br":0},"exports":{"compose-context-provider":{"raw":177,"gzip":155,"br":122},"create-context-reducer":{"raw":223,"gzip":146,"br":117},"context-state":{"raw":402,"gzip":259,"br":218},"context-reducer":{"raw":557,"gzip":332,"br":319},"create-context-state":{"raw":145,"gzip":116,"br":96},"create-magic-portal":{"raw":268,"gzip":148,"br":121},"create-fixed-array":{"raw":452,"gzip":282,"br":248},"create-local-storage-state":{"raw":446,"gzip":222,"br":209},"create-stackless-error":{"raw":278,"gzip":198,"br":162},"current-year":{"raw":524,"gzip":355,"br":293},"create-storage-state-factory":{"raw":620,"gzip":341,"br":290},"email-protection":{"raw":426,"gzip":321,"br":272},"is-safari":{"raw":233,"gzip":164,"br":119},"invariant":{"raw":178,"gzip":156,"br":118},"fetch-jsonp":{"raw":890,"gzip":546,"br":429},"no-ssr":{"raw":338,"gzip":267,"br":219},"merge-refs":{"raw":525,"gzip":280,"br":235},"noop-component":{"raw":142,"gzip":130,"br":111},"create-storage-hook":{"raw":2462,"gzip":972,"br":852},"create-session-storage-state":{"raw":450,"gzip":223,"br":206},"noop":{"raw":33,"gzip":53,"br":37},"magic-portal":{"raw":1083,"gzip":536,"br":472},"nullthrow":{"raw":187,"gzip":163,"br":121},"types":{"raw":0,"gzip":20,"br":1},"open-new-tab":{"raw":335,"gzip":255,"br":187},"typescript-happy-forward-ref":{"raw":119,"gzip":103,"br":80},"request-idle-callback":{"raw":392,"gzip":221,"br":171},"use-abortable-effect":{"raw":215,"gzip":170,"br":144},"rem":{"raw":823,"gzip":395,"br":350},"use":{"raw":298,"gzip":197,"br":160},"use-array":{"raw":322,"gzip":236,"br":202},"use-component-will-receive-update":{"raw":216,"gzip":188,"br":154},"use-debounced-state":{"raw":401,"gzip":280,"br":242},"use-composition-input":{"raw":470,"gzip":286,"br":241},"use-debounced-value":{"raw":524,"gzip":342,"br":286},"use-clipboard":{"raw":1177,"gzip":650,"br":552},"use-error-boundary":{"raw":252,"gzip":195,"br":165},"use-is-client":{"raw":204,"gzip":153,"br":121},"use-fast-click":{"raw":622,"gzip":392,"br":317},"use-intersection":{"raw":1230,"gzip":649,"br":597},"use-isomorphic-layout-effect":{"raw":169,"gzip":137,"br":110},"use-is-online":{"raw":370,"gzip":258,"br":220},"use-local-storage":{"raw":428,"gzip":226,"br":198},"use-map":{"raw":339,"gzip":243,"br":208},"use-page-visibility":{"raw":359,"gzip":263,"br":210},"use-retimer":{"raw":199,"gzip":166,"br":127},"use-media-query":{"raw":648,"gzip":397,"br":332},"use-set":{"raw":340,"gzip":238,"br":203},"use-singleton":{"raw":149,"gzip":135,"br":116},"use-session-storage":{"raw":434,"gzip":225,"br":210},"use-readonly-search-params":{"raw":1164,"gzip":589,"br":496},"use-typescript-happy-callback":{"raw":107,"gzip":102,"br":77},"use-state-with-deps":{"raw":464,"gzip":321,"br":295},"use-uncontrolled":{"raw":388,"gzip":273,"br":230},"use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired":{"raw":450,"gzip":318,"br":249},"use-url-hash-state":{"raw":1121,"gzip":628,"br":556}}}