@reactre/full-compat 0.0.0-stage → 0.0.2

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,6 @@
1
+ import {
2
+ __installKeys2
3
+ } from "./chunk-e4yywtvf.js";
4
+
5
+ // ../compat/src/features/keys.ts
6
+ __installKeys2();
@@ -0,0 +1,6 @@
1
+ import {
2
+ __installUndo2
3
+ } from "./chunk-e4yywtvf.js";
4
+
5
+ // ../compat/src/features/undo.ts
6
+ __installUndo2();
@@ -0,0 +1,6 @@
1
+ import {
2
+ __installRetry2
3
+ } from "./chunk-e4yywtvf.js";
4
+
5
+ // ../compat/src/features/retry.ts
6
+ __installRetry2();
@@ -0,0 +1,277 @@
1
+ import {
2
+ shallowEqual2,
3
+ __installClasses2
4
+ } from "./chunk-e4yywtvf.js";
5
+
6
+ // ../compat/src/features/classes.ts
7
+ var INSTANCE = Symbol("fiber");
8
+ var SNAPSHOT = Symbol("snapshot");
9
+ var isThenable = (v) => v !== null && typeof v === "object" && typeof v.then === "function";
10
+ function support(core) {
11
+ const { DIRTY, FORCE, RERENDER, DEAD, NO_CONTEXT } = core;
12
+ function nextState(f, inst, state, props) {
13
+ const q = f.q;
14
+ if (q === null)
15
+ return state;
16
+ f.q = null;
17
+ for (const u of q) {
18
+ const part = typeof u === "function" ? u.call(inst, state, props) : u;
19
+ if (part != null)
20
+ state = { ...state, ...part };
21
+ }
22
+ return state;
23
+ }
24
+ function classProps(p) {
25
+ if (!("ref" in p))
26
+ return p;
27
+ const out = { ...p };
28
+ delete out["ref"];
29
+ return out;
30
+ }
31
+ function boundary(f) {
32
+ return typeof f.t.getDerivedStateFromError === "function" || f.s !== null && typeof f.s.componentDidCatch === "function";
33
+ }
34
+ function render(f, inst, final = false) {
35
+ const out = core.rendering(f, () => {
36
+ try {
37
+ f.f &= ~RERENDER;
38
+ return inst.render();
39
+ } catch (e) {
40
+ f.f |= DIRTY;
41
+ if (final)
42
+ core.settledIn(f, e);
43
+ else
44
+ core.renderThrew(f, e);
45
+ throw e;
46
+ }
47
+ });
48
+ core.reconcile(f, out);
49
+ }
50
+ function classRef(f, old, inst) {
51
+ const ref = f.p.ref, oref = old === null ? undefined : old["ref"];
52
+ if (ref === oref)
53
+ return;
54
+ if (oref != null && core.hiddenLevel(f) === 0)
55
+ core.detachRef(f, oref);
56
+ if (ref != null) {
57
+ core.checkRef(ref);
58
+ core.laterShown(f, () => core.attachRef(f, ref, inst));
59
+ }
60
+ }
61
+ function draft(f, e) {
62
+ const gdsfe = f.t.getDerivedStateFromError;
63
+ if (typeof gdsfe !== "function")
64
+ return;
65
+ const { s: inst, c: kept } = f, state = inst.state;
66
+ f.c = [];
67
+ try {
68
+ const d = gdsfe(e);
69
+ if (d != null)
70
+ inst.state = { ...state, ...d };
71
+ core.forShow(() => render(f, inst));
72
+ } finally {
73
+ core.discard(f);
74
+ f.c = kept;
75
+ inst.state = state;
76
+ }
77
+ }
78
+ function callbacks(f) {
79
+ const cbs = f.rx;
80
+ if (cbs === null)
81
+ return;
82
+ f.rx = null;
83
+ for (const cb of cbs)
84
+ core.later(f, () => cb.call(f.s));
85
+ }
86
+ function run(f, old, mount) {
87
+ try {
88
+ const C = f.t;
89
+ const props = classProps(f.p);
90
+ const ctxType = C.contextType;
91
+ const context = ctxType != null ? core.readContext(f, ctxType) : NO_CONTEXT;
92
+ let inst = f.s;
93
+ let thrown = f.x;
94
+ f.x = null;
95
+ if (thrown === null) {
96
+ let prevProps = null, prevState = null, snapshot, prevContext = null, queued = null, forced = 0;
97
+ if (mount) {
98
+ inst = f.s = core.rendering(f, () => new C(props, context));
99
+ inst.props = props;
100
+ inst.context = context;
101
+ if (inst.state === undefined)
102
+ inst.state = null;
103
+ inst[INSTANCE] = f;
104
+ if (typeof C.getDerivedStateFromProps === "function") {
105
+ const d = C.getDerivedStateFromProps(props, inst.state);
106
+ if (d != null)
107
+ inst.state = { ...inst.state, ...d };
108
+ } else if (typeof inst.getSnapshotBeforeUpdate !== "function") {
109
+ const will = inst.UNSAFE_componentWillMount ?? inst.componentWillMount;
110
+ if (typeof will === "function") {
111
+ core.rendering(f, () => will.call(inst));
112
+ inst.state = nextState(f, inst, inst.state, props);
113
+ }
114
+ }
115
+ } else {
116
+ prevProps = inst.props;
117
+ prevState = inst.state;
118
+ prevContext = inst.context;
119
+ queued = f.q;
120
+ forced = f.f & FORCE;
121
+ const legacy = typeof C.getDerivedStateFromProps !== "function" && typeof inst.getSnapshotBeforeUpdate !== "function";
122
+ if (legacy && old !== f.p) {
123
+ const wrp = inst.UNSAFE_componentWillReceiveProps ?? inst.componentWillReceiveProps;
124
+ if (typeof wrp === "function")
125
+ wrp.call(inst, props, context);
126
+ }
127
+ let state = nextState(f, inst, prevState, props);
128
+ if (typeof C.getDerivedStateFromProps === "function") {
129
+ const d = C.getDerivedStateFromProps(props, state);
130
+ if (d != null)
131
+ state = { ...state, ...d };
132
+ }
133
+ let go = (f.f & FORCE) !== 0 || inst.context !== context;
134
+ if (!go) {
135
+ if (typeof inst.shouldComponentUpdate === "function")
136
+ go = !!inst.shouldComponentUpdate(props, state, context);
137
+ else if (C.prototype.isPureReactComponent)
138
+ go = !shallowEqual2(prevProps, props) || !shallowEqual2(prevState, state);
139
+ else
140
+ go = true;
141
+ }
142
+ f.f &= ~FORCE;
143
+ if (!go) {
144
+ inst.props = props;
145
+ inst.state = state;
146
+ inst.context = context;
147
+ callbacks(f);
148
+ return;
149
+ }
150
+ if (legacy) {
151
+ const wu = inst.UNSAFE_componentWillUpdate ?? inst.componentWillUpdate;
152
+ if (typeof wu === "function")
153
+ wu.call(inst, props, state, context);
154
+ }
155
+ inst.props = props;
156
+ inst.state = state;
157
+ inst.context = context;
158
+ if (typeof inst.getSnapshotBeforeUpdate === "function" && !core.snapshot(f, () => {
159
+ inst[SNAPSHOT] = [prevProps, prevState, inst.getSnapshotBeforeUpdate(prevProps, prevState)];
160
+ })) {
161
+ const kept = inst[SNAPSHOT];
162
+ if (kept !== undefined && kept[0] === prevProps && kept[1] === prevState)
163
+ snapshot = kept[2];
164
+ else
165
+ inst[SNAPSHOT] = [prevProps, prevState, snapshot = inst.getSnapshotBeforeUpdate(prevProps, prevState)];
166
+ }
167
+ }
168
+ try {
169
+ render(f, inst);
170
+ if (mount) {
171
+ if (typeof inst.componentDidMount === "function")
172
+ core.laterShown(f, () => inst.componentDidMount());
173
+ } else if (typeof inst.componentDidUpdate === "function" || typeof inst.getSnapshotBeforeUpdate === "function") {
174
+ core.laterShown(f, () => {
175
+ const kept = inst[SNAPSHOT];
176
+ inst[SNAPSHOT] = undefined;
177
+ if (typeof inst.componentDidUpdate === "function")
178
+ inst.componentDidUpdate(prevProps, prevState, kept === undefined ? snapshot : kept[2]);
179
+ });
180
+ }
181
+ classRef(f, old, inst);
182
+ callbacks(f);
183
+ return;
184
+ } catch (e) {
185
+ if (isThenable(e) || core.hydrating())
186
+ throw e;
187
+ const undo = () => {
188
+ if (mount)
189
+ return;
190
+ inst.props = prevProps;
191
+ inst.state = prevState;
192
+ inst.context = prevContext;
193
+ f.q = queued;
194
+ f.f |= forced;
195
+ };
196
+ if (!boundary(f)) {
197
+ undo();
198
+ throw e;
199
+ }
200
+ const errors = core.failed(f, e);
201
+ if (errors === null)
202
+ thrown = e;
203
+ else {
204
+ try {
205
+ draft(f, e);
206
+ } finally {
207
+ undo();
208
+ }
209
+ if (errors.length) {
210
+ if (mount)
211
+ core.discard(f);
212
+ f.f &= ~DIRTY;
213
+ const x = core.again(f, errors, () => run(f, old, mount));
214
+ if (x !== null)
215
+ throw x;
216
+ }
217
+ return;
218
+ }
219
+ }
220
+ }
221
+ core.removeAll(f);
222
+ f.f &= ~DIRTY;
223
+ const gdsfe = C.getDerivedStateFromError;
224
+ if (typeof gdsfe === "function") {
225
+ const d = gdsfe(thrown);
226
+ if (d != null)
227
+ inst.state = { ...inst.state, ...d };
228
+ }
229
+ const caught = thrown, componentStack = core.componentStack(caught, f);
230
+ core.later(f, () => {
231
+ const report = f.o.opts.onCaughtError;
232
+ if (report)
233
+ core.report(report, caught, { componentStack, errorBoundary: inst });
234
+ else
235
+ console.error(caught);
236
+ if (typeof inst.componentDidCatch === "function")
237
+ inst.componentDidCatch(caught, { componentStack });
238
+ });
239
+ if (typeof gdsfe === "function")
240
+ render(f, inst, true);
241
+ classRef(f, old, inst);
242
+ } catch (e) {
243
+ core.thrownIn(f, e);
244
+ throw e;
245
+ }
246
+ }
247
+ return {
248
+ run,
249
+ boundary,
250
+ enqueue(inst, partial, cb, force) {
251
+ const f = inst[INSTANCE];
252
+ if (f === undefined || f.f & DEAD)
253
+ return;
254
+ if (!core.waits(f, () => enqueue(f, partial, cb, force)))
255
+ enqueue(f, partial, cb, force);
256
+ },
257
+ unmount(f) {
258
+ const inst = f.s;
259
+ if (inst !== null && typeof inst.componentWillUnmount === "function")
260
+ inst.componentWillUnmount();
261
+ },
262
+ draft
263
+ };
264
+ function enqueue(f, partial, cb, force) {
265
+ if (partial !== null)
266
+ (f.q ??= []).push(partial);
267
+ if (force)
268
+ f.f |= FORCE;
269
+ if (typeof cb === "function")
270
+ (f.rx ??= []).push(cb);
271
+ if (core.isRendering(f))
272
+ f.f |= RERENDER;
273
+ else
274
+ core.schedule(f);
275
+ }
276
+ }
277
+ __installClasses2(support);
@@ -0,0 +1,6 @@
1
+ import {
2
+ __installConcurrent2
3
+ } from "./chunk-e4yywtvf.js";
4
+
5
+ // ../compat/src/features/concurrent.ts
6
+ __installConcurrent2();
package/dist/core.js ADDED
@@ -0,0 +1,171 @@
1
+ import"./chunk-b3y5xqd8.js";
2
+ import {
3
+ version2,
4
+ Fragment2,
5
+ StrictMode2,
6
+ Profiler2,
7
+ Suspense2,
8
+ Activity2,
9
+ ViewTransition2,
10
+ addTransitionType2,
11
+ __key2,
12
+ __defaults2,
13
+ jsx2,
14
+ createElement2,
15
+ cloneElement2,
16
+ isValidElement2,
17
+ createRef2,
18
+ memo2,
19
+ forwardRef2,
20
+ lazy2,
21
+ createContext2,
22
+ createPortal2,
23
+ Children2,
24
+ shallowEqual2,
25
+ __template2,
26
+ __block2,
27
+ __delta2,
28
+ createRoot2,
29
+ hydrateRoot2,
30
+ Component2,
31
+ PureComponent2,
32
+ __installClasses2,
33
+ __installStacks2,
34
+ __installKeys2,
35
+ __installRetry2,
36
+ flushSync2,
37
+ unstable_batchedUpdates2,
38
+ act2,
39
+ useEffect2,
40
+ useLayoutEffect2,
41
+ useInsertionEffect2,
42
+ useState2,
43
+ useReducer2,
44
+ useRef2,
45
+ useMemo2,
46
+ useCallback2,
47
+ useContext2,
48
+ useImperativeHandle2,
49
+ useDebugValue2,
50
+ useId2,
51
+ useSyncExternalStore2,
52
+ useSyncExternalStoreWithSelector2,
53
+ useEffectEvent2,
54
+ c2,
55
+ __COMPILER_RUNTIME2,
56
+ use2,
57
+ browser2,
58
+ startTransition2,
59
+ useTransition2,
60
+ useDeferredValue2,
61
+ useOptimistic2,
62
+ useActionState2,
63
+ __lanePhase2,
64
+ __installUndo2,
65
+ __installViewTransitions2,
66
+ __installConcurrent2,
67
+ useFormStatus2,
68
+ requestFormReset2,
69
+ __serverRender2,
70
+ cache2,
71
+ cacheSignal2,
72
+ captureOwnerStack2,
73
+ unstable_useCacheRefresh2,
74
+ __serverHints2,
75
+ preconnect2,
76
+ prefetchDNS2,
77
+ preload2,
78
+ preloadModule2,
79
+ preinit2,
80
+ preinitModule2,
81
+ __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE2,
82
+ core_default
83
+ } from "./chunk-e4yywtvf.js";
84
+ export {
85
+ Activity2 as Activity,
86
+ Children2 as Children,
87
+ Component2 as Component,
88
+ Fragment2 as Fragment,
89
+ Profiler2 as Profiler,
90
+ PureComponent2 as PureComponent,
91
+ StrictMode2 as StrictMode,
92
+ Suspense2 as Suspense,
93
+ ViewTransition2 as ViewTransition,
94
+ __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE2 as __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
95
+ __COMPILER_RUNTIME2 as __COMPILER_RUNTIME,
96
+ __block2 as __block,
97
+ __defaults2 as __defaults,
98
+ __delta2 as __delta,
99
+ __installClasses2 as __installClasses,
100
+ __installConcurrent2 as __installConcurrent,
101
+ __installKeys2 as __installKeys,
102
+ __installRetry2 as __installRetry,
103
+ __installStacks2 as __installStacks,
104
+ __installUndo2 as __installUndo,
105
+ __installViewTransitions2 as __installViewTransitions,
106
+ __key2 as __key,
107
+ __lanePhase2 as __lanePhase,
108
+ __serverHints2 as __serverHints,
109
+ __serverRender2 as __serverRender,
110
+ __template2 as __template,
111
+ act2 as act,
112
+ addTransitionType2 as addTransitionType,
113
+ browser2 as browser,
114
+ c2 as c,
115
+ cache2 as cache,
116
+ cacheSignal2 as cacheSignal,
117
+ captureOwnerStack2 as captureOwnerStack,
118
+ cloneElement2 as cloneElement,
119
+ createContext2 as createContext,
120
+ createElement2 as createElement,
121
+ createPortal2 as createPortal,
122
+ createRef2 as createRef,
123
+ createRoot2 as createRoot,
124
+ core_default as default,
125
+ flushSync2 as flushSync,
126
+ forwardRef2 as forwardRef,
127
+ hydrateRoot2 as hydrateRoot,
128
+ isValidElement2 as isValidElement,
129
+ jsx2 as jsx,
130
+ jsx2 as jsxDEV,
131
+ jsx2 as jsxs,
132
+ lazy2 as lazy,
133
+ memo2 as memo,
134
+ preconnect2 as preconnect,
135
+ prefetchDNS2 as prefetchDNS,
136
+ preinit2 as preinit,
137
+ preinitModule2 as preinitModule,
138
+ preload2 as preload,
139
+ preloadModule2 as preloadModule,
140
+ requestFormReset2 as requestFormReset,
141
+ shallowEqual2 as shallowEqual,
142
+ startTransition2 as startTransition,
143
+ Activity2 as unstable_Activity,
144
+ ViewTransition2 as unstable_ViewTransition,
145
+ unstable_batchedUpdates2 as unstable_batchedUpdates,
146
+ unstable_useCacheRefresh2 as unstable_useCacheRefresh,
147
+ use2 as use,
148
+ useActionState2 as useActionState,
149
+ useCallback2 as useCallback,
150
+ useContext2 as useContext,
151
+ useDebugValue2 as useDebugValue,
152
+ useDeferredValue2 as useDeferredValue,
153
+ useEffect2 as useEffect,
154
+ useEffectEvent2 as useEffectEvent,
155
+ useActionState2 as useFormState,
156
+ useFormStatus2 as useFormStatus,
157
+ useId2 as useId,
158
+ useImperativeHandle2 as useImperativeHandle,
159
+ useInsertionEffect2 as useInsertionEffect,
160
+ useLayoutEffect2 as useLayoutEffect,
161
+ useMemo2 as useMemo,
162
+ c2 as useMemoCache,
163
+ useOptimistic2 as useOptimistic,
164
+ useReducer2 as useReducer,
165
+ useRef2 as useRef,
166
+ useState2 as useState,
167
+ useSyncExternalStore2 as useSyncExternalStore,
168
+ useSyncExternalStoreWithSelector2 as useSyncExternalStoreWithSelector,
169
+ useTransition2 as useTransition,
170
+ version2 as version
171
+ };
@@ -0,0 +1,2 @@
1
+ import"../chunk-e4yywtvf.js";
2
+ import"../chunk-skse5h3m.js";
@@ -0,0 +1,2 @@
1
+ import"../chunk-e4yywtvf.js";
2
+ import"../chunk-v1e4rr21.js";
@@ -0,0 +1,2 @@
1
+ import"../chunk-e4yywtvf.js";
2
+ import"../chunk-ez9na11j.js";
@@ -0,0 +1,2 @@
1
+ import"../chunk-e4yywtvf.js";
2
+ import"../chunk-mtd8nnwt.js";
@@ -0,0 +1,2 @@
1
+ import"../chunk-e4yywtvf.js";
2
+ import"../chunk-11zdy4zv.js";
@@ -0,0 +1,2 @@
1
+ import"../chunk-e4yywtvf.js";
2
+ import"../chunk-m94gb9v9.js";
@@ -0,0 +1,2 @@
1
+ import"../chunk-e4yywtvf.js";
2
+ import"../chunk-4er1w1vd.js";
package/dist/index.js ADDED
@@ -0,0 +1,178 @@
1
+ import"./chunk-b3y5xqd8.js";
2
+ import {
3
+ version2,
4
+ Fragment2,
5
+ StrictMode2,
6
+ Profiler2,
7
+ Suspense2,
8
+ Activity2,
9
+ ViewTransition2,
10
+ addTransitionType2,
11
+ __key2,
12
+ __defaults2,
13
+ jsx2,
14
+ createElement2,
15
+ cloneElement2,
16
+ isValidElement2,
17
+ createRef2,
18
+ memo2,
19
+ forwardRef2,
20
+ lazy2,
21
+ createContext2,
22
+ createPortal2,
23
+ Children2,
24
+ shallowEqual2,
25
+ __template2,
26
+ __block2,
27
+ __delta2,
28
+ createRoot2,
29
+ hydrateRoot2,
30
+ Component2,
31
+ PureComponent2,
32
+ __installClasses2,
33
+ __installStacks2,
34
+ __installKeys2,
35
+ __installRetry2,
36
+ flushSync2,
37
+ unstable_batchedUpdates2,
38
+ act2,
39
+ useEffect2,
40
+ useLayoutEffect2,
41
+ useInsertionEffect2,
42
+ useState2,
43
+ useReducer2,
44
+ useRef2,
45
+ useMemo2,
46
+ useCallback2,
47
+ useContext2,
48
+ useImperativeHandle2,
49
+ useDebugValue2,
50
+ useId2,
51
+ useSyncExternalStore2,
52
+ useSyncExternalStoreWithSelector2,
53
+ useEffectEvent2,
54
+ c2,
55
+ __COMPILER_RUNTIME2,
56
+ use2,
57
+ browser2,
58
+ startTransition2,
59
+ useTransition2,
60
+ useDeferredValue2,
61
+ useOptimistic2,
62
+ useActionState2,
63
+ __lanePhase2,
64
+ __installUndo2,
65
+ __installViewTransitions2,
66
+ __installConcurrent2,
67
+ useFormStatus2,
68
+ requestFormReset2,
69
+ __serverRender2,
70
+ cache2,
71
+ cacheSignal2,
72
+ captureOwnerStack2,
73
+ unstable_useCacheRefresh2,
74
+ __serverHints2,
75
+ preconnect2,
76
+ prefetchDNS2,
77
+ preload2,
78
+ preloadModule2,
79
+ preinit2,
80
+ preinitModule2,
81
+ __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE2,
82
+ core_default
83
+ } from "./chunk-e4yywtvf.js";
84
+ import"./chunk-skse5h3m.js";
85
+ import"./chunk-11zdy4zv.js";
86
+ import"./chunk-ez9na11j.js";
87
+ import"./chunk-mtd8nnwt.js";
88
+ import"./chunk-v1e4rr21.js";
89
+ import"./chunk-4er1w1vd.js";
90
+ import"./chunk-m94gb9v9.js";
91
+ export {
92
+ Activity2 as Activity,
93
+ Children2 as Children,
94
+ Component2 as Component,
95
+ Fragment2 as Fragment,
96
+ Profiler2 as Profiler,
97
+ PureComponent2 as PureComponent,
98
+ StrictMode2 as StrictMode,
99
+ Suspense2 as Suspense,
100
+ ViewTransition2 as ViewTransition,
101
+ __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE2 as __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
102
+ __COMPILER_RUNTIME2 as __COMPILER_RUNTIME,
103
+ __block2 as __block,
104
+ __defaults2 as __defaults,
105
+ __delta2 as __delta,
106
+ __installClasses2 as __installClasses,
107
+ __installConcurrent2 as __installConcurrent,
108
+ __installKeys2 as __installKeys,
109
+ __installRetry2 as __installRetry,
110
+ __installStacks2 as __installStacks,
111
+ __installUndo2 as __installUndo,
112
+ __installViewTransitions2 as __installViewTransitions,
113
+ __key2 as __key,
114
+ __lanePhase2 as __lanePhase,
115
+ __serverHints2 as __serverHints,
116
+ __serverRender2 as __serverRender,
117
+ __template2 as __template,
118
+ act2 as act,
119
+ addTransitionType2 as addTransitionType,
120
+ browser2 as browser,
121
+ c2 as c,
122
+ cache2 as cache,
123
+ cacheSignal2 as cacheSignal,
124
+ captureOwnerStack2 as captureOwnerStack,
125
+ cloneElement2 as cloneElement,
126
+ createContext2 as createContext,
127
+ createElement2 as createElement,
128
+ createPortal2 as createPortal,
129
+ createRef2 as createRef,
130
+ createRoot2 as createRoot,
131
+ core_default as default,
132
+ flushSync2 as flushSync,
133
+ forwardRef2 as forwardRef,
134
+ hydrateRoot2 as hydrateRoot,
135
+ isValidElement2 as isValidElement,
136
+ jsx2 as jsx,
137
+ jsx2 as jsxDEV,
138
+ jsx2 as jsxs,
139
+ lazy2 as lazy,
140
+ memo2 as memo,
141
+ preconnect2 as preconnect,
142
+ prefetchDNS2 as prefetchDNS,
143
+ preinit2 as preinit,
144
+ preinitModule2 as preinitModule,
145
+ preload2 as preload,
146
+ preloadModule2 as preloadModule,
147
+ requestFormReset2 as requestFormReset,
148
+ shallowEqual2 as shallowEqual,
149
+ startTransition2 as startTransition,
150
+ Activity2 as unstable_Activity,
151
+ ViewTransition2 as unstable_ViewTransition,
152
+ unstable_batchedUpdates2 as unstable_batchedUpdates,
153
+ unstable_useCacheRefresh2 as unstable_useCacheRefresh,
154
+ use2 as use,
155
+ useActionState2 as useActionState,
156
+ useCallback2 as useCallback,
157
+ useContext2 as useContext,
158
+ useDebugValue2 as useDebugValue,
159
+ useDeferredValue2 as useDeferredValue,
160
+ useEffect2 as useEffect,
161
+ useEffectEvent2 as useEffectEvent,
162
+ useActionState2 as useFormState,
163
+ useFormStatus2 as useFormStatus,
164
+ useId2 as useId,
165
+ useImperativeHandle2 as useImperativeHandle,
166
+ useInsertionEffect2 as useInsertionEffect,
167
+ useLayoutEffect2 as useLayoutEffect,
168
+ useMemo2 as useMemo,
169
+ c2 as useMemoCache,
170
+ useOptimistic2 as useOptimistic,
171
+ useReducer2 as useReducer,
172
+ useRef2 as useRef,
173
+ useState2 as useState,
174
+ useSyncExternalStore2 as useSyncExternalStore,
175
+ useSyncExternalStoreWithSelector2 as useSyncExternalStoreWithSelector,
176
+ useTransition2 as useTransition,
177
+ version2 as version
178
+ };
@@ -0,0 +1,6 @@
1
+ // src/server.browser.ts
2
+ export * from "@reactre/compat/server.browser";
3
+ import { default as default2 } from "@reactre/compat/server.browser";
4
+ export {
5
+ default2 as default
6
+ };
@@ -0,0 +1,6 @@
1
+ // src/server.edge.ts
2
+ export * from "@reactre/compat/server.edge";
3
+ import { default as default2 } from "@reactre/compat/server.edge";
4
+ export {
5
+ default2 as default
6
+ };