foxact 0.2.47 → 0.2.49
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/context-state/index.d.ts +2 -1
- package/package.json +10 -10
- package/sizes.json +1 -1
package/context-state/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface ProviderProps<T> {
|
|
|
5
5
|
}
|
|
6
6
|
/** @see https://foxact.skk.moe/context-state */
|
|
7
7
|
declare function createContextState<T>(initialState: T): [
|
|
8
|
-
Provider: React.ComponentType<
|
|
8
|
+
Provider: React.ComponentType<Foxact.PropsWithChildren>,
|
|
9
9
|
useValue: () => T,
|
|
10
10
|
useSetValue: () => React.Dispatch<React.SetStateAction<T>>,
|
|
11
11
|
StateContext: React.Context<T>
|
|
@@ -24,3 +24,4 @@ declare function createContextState<T>(): [
|
|
|
24
24
|
];
|
|
25
25
|
|
|
26
26
|
export { createContextState };
|
|
27
|
+
export type { ProviderProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foxact",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.49",
|
|
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": {
|
|
@@ -128,15 +128,6 @@
|
|
|
128
128
|
"require": "./current-year/index.cjs",
|
|
129
129
|
"default": "./current-year/index.cjs"
|
|
130
130
|
},
|
|
131
|
-
"./email-protection": {
|
|
132
|
-
"types": "./email-protection/index.d.ts",
|
|
133
|
-
"import": {
|
|
134
|
-
"types": "./email-protection/index.d.ts",
|
|
135
|
-
"default": "./email-protection/index.mjs"
|
|
136
|
-
},
|
|
137
|
-
"require": "./email-protection/index.cjs",
|
|
138
|
-
"default": "./email-protection/index.cjs"
|
|
139
|
-
},
|
|
140
131
|
"./fetch-jsonp": {
|
|
141
132
|
"types": "./fetch-jsonp/index.d.ts",
|
|
142
133
|
"import": {
|
|
@@ -505,6 +496,15 @@
|
|
|
505
496
|
},
|
|
506
497
|
"require": "./use-url-hash-state/index.cjs",
|
|
507
498
|
"default": "./use-url-hash-state/index.cjs"
|
|
499
|
+
},
|
|
500
|
+
"./email-protection": {
|
|
501
|
+
"types": "./email-protection/index.d.ts",
|
|
502
|
+
"import": {
|
|
503
|
+
"types": "./email-protection/index.d.ts",
|
|
504
|
+
"default": "./email-protection/index.mjs"
|
|
505
|
+
},
|
|
506
|
+
"require": "./email-protection/index.cjs",
|
|
507
|
+
"default": "./email-protection/index.cjs"
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
}
|
package/sizes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"total":{"raw":23624,"gzip":14527,"br":0},"exports":{"
|
|
1
|
+
{"total":{"raw":23624,"gzip":14527,"br":0},"exports":{"create-context-state":{"raw":145,"gzip":116,"br":96},"context-state":{"raw":402,"gzip":259,"br":221},"create-local-storage-state":{"raw":328,"gzip":183,"br":154},"create-fixed-array":{"raw":452,"gzip":282,"br":248},"create-session-storage-state":{"raw":332,"gzip":182,"br":152},"create-storage-state-factory":{"raw":519,"gzip":309,"br":263},"current-year":{"raw":592,"gzip":400,"br":326},"fetch-jsonp":{"raw":875,"gzip":533,"br":418},"is-safari":{"raw":248,"gzip":164,"br":117},"noop":{"raw":33,"gzip":53,"br":37},"no-ssr":{"raw":474,"gzip":316,"br":260},"nullthrow":{"raw":187,"gzip":163,"br":121},"open-new-tab":{"raw":344,"gzip":260,"br":190},"invariant":{"raw":178,"gzip":156,"br":118},"types":{"raw":0,"gzip":20,"br":1},"typescript-happy-forward-ref":{"raw":119,"gzip":103,"br":80},"request-idle-callback":{"raw":410,"gzip":229,"br":175},"rem":{"raw":823,"gzip":395,"br":350},"use":{"raw":283,"gzip":185,"br":154},"use-abortable-effect":{"raw":215,"gzip":170,"br":144},"use-component-will-receive-update":{"raw":216,"gzip":188,"br":154},"use-array":{"raw":322,"gzip":236,"br":202},"create-storage-hook":{"raw":2073,"gzip":880,"br":764},"use-debounced-state":{"raw":401,"gzip":280,"br":242},"use-composition-input":{"raw":470,"gzip":286,"br":241},"use-error-boundary":{"raw":252,"gzip":195,"br":165},"use-fast-click":{"raw":553,"gzip":364,"br":297},"use-is-client":{"raw":150,"gzip":145,"br":115},"use-debounced-value":{"raw":524,"gzip":342,"br":286},"use-intersection":{"raw":1230,"gzip":649,"br":597},"use-isomorphic-layout-effect":{"raw":178,"gzip":142,"br":112},"use-is-online":{"raw":356,"gzip":212,"br":158},"use-local-storage":{"raw":310,"gzip":184,"br":157},"use-clipboard":{"raw":1177,"gzip":651,"br":552},"use-media-query":{"raw":725,"gzip":406,"br":332},"use-next-pathname":{"raw":314,"gzip":235,"br":203},"use-page-visibility":{"raw":290,"gzip":206,"br":154},"use-map":{"raw":339,"gzip":243,"br":208},"use-next-link":{"raw":1673,"gzip":871,"br":744},"use-retimer":{"raw":199,"gzip":166,"br":127},"use-session-storage":{"raw":316,"gzip":181,"br":152},"use-react-router-is-match":{"raw":563,"gzip":372,"br":314},"use-singleton":{"raw":139,"gzip":130,"br":104},"use-typescript-happy-callback":{"raw":107,"gzip":102,"br":77},"use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired":{"raw":459,"gzip":325,"br":249},"use-react-router-enable-concurrent-navigation":{"raw":966,"gzip":470,"br":397},"use-uncontrolled":{"raw":352,"gzip":258,"br":216},"compose-context-provider":{"raw":177,"gzip":155,"br":122},"use-set":{"raw":340,"gzip":238,"br":203},"email-protection":{"raw":426,"gzip":321,"br":272},"use-url-hash-state":{"raw":1068,"gzip":616,"br":539}}}
|