@uniflowed/react 0.0.0-alpha.1

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.
Files changed (2) hide show
  1. package/index.js +78 -0
  2. package/package.json +23 -0
package/index.js ADDED
@@ -0,0 +1,78 @@
1
+ // @flow
2
+ //
3
+ // `@uniflowed/react`: React, re-exported by name.
4
+ //
5
+ // This is the real `react` package, not a declaration of it. Naming every
6
+ // export rather than `export *` keeps the surface explicit — a name not listed
7
+ // here is not part of what uf documents — and lets a bundler drop the ones an
8
+ // application never touches. The Flow types come from Flow's own library
9
+ // definition for `react`, so `import type { Node } from "@uniflowed/react"`
10
+ // is exactly `import type { Node } from "react"`.
11
+
12
+ import * as React from "react";
13
+
14
+ export type {
15
+ AbstractComponent,
16
+ ChildrenArray,
17
+ ComponentType,
18
+ Config,
19
+ Context,
20
+ Element,
21
+ ElementConfig,
22
+ ElementProps,
23
+ ElementRef,
24
+ ElementType,
25
+ Key,
26
+ MixedElement,
27
+ Node,
28
+ Portal,
29
+ Ref,
30
+ RefSetter,
31
+ StatelessFunctionalComponent,
32
+ } from "react";
33
+
34
+ export {
35
+ Children,
36
+ Component,
37
+ Fragment,
38
+ Profiler,
39
+ PureComponent,
40
+ StrictMode,
41
+ Suspense,
42
+ act,
43
+ cache,
44
+ cloneElement,
45
+ createContext,
46
+ createElement,
47
+ createRef,
48
+ forwardRef,
49
+ isValidElement,
50
+ lazy,
51
+ memo,
52
+ startTransition,
53
+ use,
54
+ useActionState,
55
+ useCallback,
56
+ useContext,
57
+ useDebugValue,
58
+ useDeferredValue,
59
+ useEffect,
60
+ useId,
61
+ useImperativeHandle,
62
+ useInsertionEffect,
63
+ useLayoutEffect,
64
+ useMemo,
65
+ useOptimistic,
66
+ useReducer,
67
+ useRef,
68
+ useState,
69
+ useSyncExternalStore,
70
+ useTransition,
71
+ version,
72
+ } from "react";
73
+
74
+ /** The setter shape `useState` hands back. */
75
+ export type SetState<S> = S | ((previous: S) => S);
76
+
77
+ export { React };
78
+ export default React;
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@uniflowed/react",
3
+ "version": "0.0.0-alpha.1",
4
+ "description": "React, re-exported by name with its Flow types, for the Unified Toolchain for Flow.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "sideEffects": false,
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/ubugeeei-prod/uf.git",
11
+ "directory": "packages/react"
12
+ },
13
+ "exports": {
14
+ ".": "./index.js",
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "index.js"
19
+ ],
20
+ "peerDependencies": {
21
+ "react": ">=19"
22
+ }
23
+ }