@my-react/react-reconciler-compact 0.0.12 → 0.0.14
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/dist/cjs/index.development.js +922 -730
- package/dist/cjs/index.production.js +755 -660
- package/dist/esm/index.mjs +1676 -1394
- package/dist/types/api/append.d.ts.map +1 -1
- package/dist/types/api/create.d.ts.map +1 -1
- package/dist/types/api/position.d.ts.map +1 -1
- package/dist/types/api/ref.d.ts.map +1 -1
- package/dist/types/api/remove.d.ts.map +1 -1
- package/dist/types/api/update.d.ts.map +1 -1
- package/dist/types/config.d.ts +5 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/devtool.d.ts.map +1 -1
- package/dist/types/{dispatchFiber.d.ts → dispatch-fiber.d.ts} +1 -1
- package/dist/types/dispatch-fiber.d.ts.map +1 -0
- package/dist/types/{dispatchMap.d.ts → dispatch-map.d.ts} +1 -1
- package/dist/types/dispatch-map.d.ts.map +1 -0
- package/dist/types/{dispatchMount.d.ts → dispatch-mount.d.ts} +1 -1
- package/dist/types/dispatch-mount.d.ts.map +1 -0
- package/dist/types/{dispatchUpdate.d.ts → dispatch-update.d.ts} +1 -1
- package/dist/types/dispatch-update.d.ts.map +1 -0
- package/dist/types/dispatch.d.ts +34 -211
- package/dist/types/dispatch.d.ts.map +1 -1
- package/dist/types/feature.d.ts +35 -211
- package/dist/types/feature.d.ts.map +1 -1
- package/dist/types/hmr.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/portal.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/types/dispatchFiber.d.ts.map +0 -1
- package/dist/types/dispatchMap.d.ts.map +0 -1
- package/dist/types/dispatchMount.d.ts.map +0 -1
- package/dist/types/dispatchUpdate.d.ts.map +0 -1
package/dist/types/feature.d.ts
CHANGED
|
@@ -54,16 +54,15 @@ export declare const Reconciler: (_config: any) => {
|
|
|
54
54
|
version: string;
|
|
55
55
|
id: string;
|
|
56
56
|
mode: string;
|
|
57
|
-
enableNewEntry
|
|
58
|
-
enableConcurrentMode
|
|
57
|
+
enableNewEntry?: boolean;
|
|
58
|
+
enableConcurrentMode?: boolean;
|
|
59
59
|
renderMode: string;
|
|
60
60
|
renderPackage?: string;
|
|
61
|
-
pendingCommitFiberList: import("@my-react/react-shared").ListTree<MyReactFiberNode
|
|
61
|
+
pendingCommitFiberList: import("@my-react/react-shared").ListTree<MyReactFiberNode> | null;
|
|
62
62
|
pendingCommitFiberPatch: import("@my-react/react-shared").PATCH_TYPE;
|
|
63
|
-
pendingChangedFiberList: import("@my-react/react-shared").ListTree<MyReactFiberNode>;
|
|
64
63
|
pendingUpdateFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
|
|
65
64
|
pendingSuspenseFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
|
|
66
|
-
performanceLogTimeLimit
|
|
65
|
+
performanceLogTimeLimit?: number;
|
|
67
66
|
uniqueIdCount: number;
|
|
68
67
|
beforeCommit?: () => void;
|
|
69
68
|
afterCommit?: () => void;
|
|
@@ -72,7 +71,6 @@ export declare const Reconciler: (_config: any) => {
|
|
|
72
71
|
beforeUnmount?: () => void;
|
|
73
72
|
afterUnmount?: () => void;
|
|
74
73
|
generateCommitList(_fiber: MyReactFiberNode): void;
|
|
75
|
-
generateChangedList(_fiber: MyReactFiberNode, withCheck?: boolean): void;
|
|
76
74
|
pendingCreate(_fiber: MyReactFiberNode): void;
|
|
77
75
|
pendingUpdate(_fiber: MyReactFiberNode): void;
|
|
78
76
|
pendingAppend(_fiber: MyReactFiberNode): void;
|
|
@@ -92,200 +90,25 @@ export declare const Reconciler: (_config: any) => {
|
|
|
92
90
|
stickyToFoot?: boolean;
|
|
93
91
|
}): void;
|
|
94
92
|
patchToFiberUpdate(_fiber: MyReactFiberNode): void;
|
|
95
|
-
processLazy(_elementType: import("@my-react/react").
|
|
93
|
+
processLazy(_elementType: ReturnType<typeof import("@my-react/react").lazy>): Promise<void>;
|
|
96
94
|
processPromise(_promise: import("@my-react/react-reconciler").PromiseWithState<unknown>): Promise<void>;
|
|
97
95
|
resolveStrict(_fiber: MyReactFiberNode): boolean;
|
|
98
|
-
resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode;
|
|
96
|
+
resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode | null;
|
|
99
97
|
resolveSuspenseValue(_fiber: MyReactFiberNode): MyReactElementNode;
|
|
100
|
-
resolveSuspenseFiber(_fiber: MyReactFiberNode): MyReactFiberNode;
|
|
101
|
-
resolveErrorBoundaries(_fiber: MyReactFiberNode): MyReactFiberNode;
|
|
102
|
-
resolveContextFiber(_fiber: MyReactFiberNode, _contextObject
|
|
103
|
-
|
|
104
|
-
value: unknown;
|
|
105
|
-
Context: {
|
|
106
|
-
$$typeof: symbol;
|
|
107
|
-
displayName: string;
|
|
108
|
-
};
|
|
109
|
-
}, {
|
|
110
|
-
$$typeof: symbol;
|
|
111
|
-
Context: {
|
|
112
|
-
$$typeof: symbol;
|
|
113
|
-
displayName: string;
|
|
114
|
-
};
|
|
115
|
-
}>): MyReactFiberNode;
|
|
116
|
-
resolveContextValue(_fiber: MyReactFiberNode, _contextObject: import("@my-react/react").ContextObjectType<{
|
|
117
|
-
$$typeof: symbol;
|
|
118
|
-
value: unknown;
|
|
119
|
-
Context: {
|
|
120
|
-
$$typeof: symbol;
|
|
121
|
-
displayName: string;
|
|
122
|
-
};
|
|
123
|
-
}, {
|
|
124
|
-
$$typeof: symbol;
|
|
125
|
-
Context: {
|
|
126
|
-
$$typeof: symbol;
|
|
127
|
-
displayName: string;
|
|
128
|
-
};
|
|
129
|
-
}>): Record<string, unknown>;
|
|
98
|
+
resolveSuspenseFiber(_fiber: MyReactFiberNode): MyReactFiberNode | null;
|
|
99
|
+
resolveErrorBoundaries(_fiber: MyReactFiberNode): MyReactFiberNode | null;
|
|
100
|
+
resolveContextFiber(_fiber: MyReactFiberNode, _contextObject?: ReturnType<typeof import("@my-react/react").createContext> | null): MyReactFiberNode | null;
|
|
101
|
+
resolveContextValue(_fiber: MyReactFiberNode | null, _contextObject?: ReturnType<typeof import("@my-react/react").createContext> | null): Record<string, unknown> | null;
|
|
130
102
|
reconcileUnmount(): void;
|
|
131
103
|
shouldYield(): boolean;
|
|
132
104
|
resetYield(): void;
|
|
133
105
|
resetUpdateFlowRuntimeFiber(): void;
|
|
134
106
|
getFiberTree(_fiber: MyReactFiberNode): string;
|
|
135
107
|
readPromise(_params: Promise<unknown>): unknown;
|
|
136
|
-
readContext(_params: import("@my-react/react").
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
$$typeof: symbol;
|
|
141
|
-
displayName: string;
|
|
142
|
-
};
|
|
143
|
-
}, {
|
|
144
|
-
$$typeof: symbol;
|
|
145
|
-
Context: {
|
|
146
|
-
$$typeof: symbol;
|
|
147
|
-
displayName: string;
|
|
148
|
-
};
|
|
149
|
-
}>): unknown;
|
|
150
|
-
runtimeMap: {
|
|
151
|
-
effectMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
|
|
152
|
-
layoutEffectMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
|
|
153
|
-
insertionEffectMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
|
|
154
|
-
unmountMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<MyReactFiberNode>>;
|
|
155
|
-
eventMap: WeakMap<MyReactFiberNode, Record<string, ((...args: any[]) => void) & {
|
|
156
|
-
cb?: any;
|
|
157
|
-
}>>;
|
|
158
|
-
triggerCallbackMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
|
|
159
|
-
};
|
|
160
|
-
runtimeFiber: Record<"scheduledFiber" | "errorCatchFiber" | "nextWorkingFiber" | "retriggerFiber", MyReactFiberNode>;
|
|
161
|
-
dispatcher: {
|
|
162
|
-
current: {
|
|
163
|
-
proxy: {
|
|
164
|
-
readContext: <T_1 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
165
|
-
$$typeof: symbol;
|
|
166
|
-
value: T_1;
|
|
167
|
-
Context: {
|
|
168
|
-
$$typeof: symbol;
|
|
169
|
-
displayName: string;
|
|
170
|
-
};
|
|
171
|
-
}, {
|
|
172
|
-
$$typeof: symbol;
|
|
173
|
-
Context: {
|
|
174
|
-
$$typeof: symbol;
|
|
175
|
-
displayName: string;
|
|
176
|
-
};
|
|
177
|
-
}> | Promise<T_1>) => T_1;
|
|
178
|
-
use: <T_1_1 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
179
|
-
$$typeof: symbol;
|
|
180
|
-
value: T_1_1;
|
|
181
|
-
Context: {
|
|
182
|
-
$$typeof: symbol;
|
|
183
|
-
displayName: string;
|
|
184
|
-
};
|
|
185
|
-
}, {
|
|
186
|
-
$$typeof: symbol;
|
|
187
|
-
Context: {
|
|
188
|
-
$$typeof: symbol;
|
|
189
|
-
displayName: string;
|
|
190
|
-
};
|
|
191
|
-
}> | Promise<T_1_1>) => T_1_1;
|
|
192
|
-
useCallback: <T_2 extends (...args: any) => any = (...args: any) => any>(callback: T_2, deps?: any[]) => T_2;
|
|
193
|
-
useContext: <T_3 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
194
|
-
$$typeof: symbol;
|
|
195
|
-
value: T_3;
|
|
196
|
-
Context: {
|
|
197
|
-
$$typeof: symbol;
|
|
198
|
-
displayName: string;
|
|
199
|
-
};
|
|
200
|
-
}, {
|
|
201
|
-
$$typeof: symbol;
|
|
202
|
-
Context: {
|
|
203
|
-
$$typeof: symbol;
|
|
204
|
-
displayName: string;
|
|
205
|
-
};
|
|
206
|
-
}>) => T_3;
|
|
207
|
-
useDebugValue: (...args: any[]) => unknown;
|
|
208
|
-
useDeferredValue: <T_4 = any>(value: T_4) => T_4;
|
|
209
|
-
useEffect: (action: () => any, deps?: any[]) => void;
|
|
210
|
-
useId: () => string;
|
|
211
|
-
useImperativeHandle: (ref: any, createHandle: import("@my-react/react").Reducer, deps: any[]) => unknown;
|
|
212
|
-
useInsertionEffect: (action: () => any, deps: any[]) => unknown;
|
|
213
|
-
useLayoutEffect: (action: () => any, deps?: any[]) => void;
|
|
214
|
-
useMemo: <T_5 = any>(action: () => T_5, deps?: any[]) => T_5;
|
|
215
|
-
useReducer: (reducer: import("@my-react/react").Reducer, initialArgs: any, init?: (...args: any) => any) => unknown;
|
|
216
|
-
useRef: <T_6 = any>(value: T_6) => {
|
|
217
|
-
current: T_6;
|
|
218
|
-
};
|
|
219
|
-
useState: <T_7 = any>(initial: T_7 | (() => T_7)) => [T_7, (t?: T_7 | ((t: T_7) => T_7)) => void];
|
|
220
|
-
useSignal: <T_8 = any>(initial: T_8 | (() => T_8)) => unknown;
|
|
221
|
-
useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
|
|
222
|
-
useTransition: () => [boolean, (cb: () => void) => void];
|
|
223
|
-
useOptimistic: <S, A>(passthrough: S, reducer?: (p: S, c: A) => S) => [S, (p: A) => void];
|
|
224
|
-
useEffectEvent: <T_9 extends Function>(cb: T_9) => unknown;
|
|
225
|
-
};
|
|
226
|
-
readContext: <T_1_2 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
227
|
-
$$typeof: symbol;
|
|
228
|
-
value: T_1_2;
|
|
229
|
-
Context: {
|
|
230
|
-
$$typeof: symbol;
|
|
231
|
-
displayName: string;
|
|
232
|
-
};
|
|
233
|
-
}, {
|
|
234
|
-
$$typeof: symbol;
|
|
235
|
-
Context: {
|
|
236
|
-
$$typeof: symbol;
|
|
237
|
-
displayName: string;
|
|
238
|
-
};
|
|
239
|
-
}> | Promise<T_1_2>) => T_1_2;
|
|
240
|
-
use: <T_1_3 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
241
|
-
$$typeof: symbol;
|
|
242
|
-
value: T_1_3;
|
|
243
|
-
Context: {
|
|
244
|
-
$$typeof: symbol;
|
|
245
|
-
displayName: string;
|
|
246
|
-
};
|
|
247
|
-
}, {
|
|
248
|
-
$$typeof: symbol;
|
|
249
|
-
Context: {
|
|
250
|
-
$$typeof: symbol;
|
|
251
|
-
displayName: string;
|
|
252
|
-
};
|
|
253
|
-
}> | Promise<T_1_3>) => T_1_3;
|
|
254
|
-
useCallback: <T_2_1 extends (...args: any) => any = (...args: any) => any>(callback: T_2_1, deps?: any[]) => T_2_1;
|
|
255
|
-
useContext: <T_3_1 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
256
|
-
$$typeof: symbol;
|
|
257
|
-
value: T_3_1;
|
|
258
|
-
Context: {
|
|
259
|
-
$$typeof: symbol;
|
|
260
|
-
displayName: string;
|
|
261
|
-
};
|
|
262
|
-
}, {
|
|
263
|
-
$$typeof: symbol;
|
|
264
|
-
Context: {
|
|
265
|
-
$$typeof: symbol;
|
|
266
|
-
displayName: string;
|
|
267
|
-
};
|
|
268
|
-
}>) => T_3_1;
|
|
269
|
-
useDebugValue: (...args: any[]) => unknown;
|
|
270
|
-
useDeferredValue: <T_4_1 = any>(value: T_4_1) => T_4_1;
|
|
271
|
-
useEffect: (action: () => any, deps?: any[]) => void;
|
|
272
|
-
useId: () => string;
|
|
273
|
-
useImperativeHandle: (ref: any, createHandle: import("@my-react/react").Reducer, deps: any[]) => unknown;
|
|
274
|
-
useInsertionEffect: (action: () => any, deps: any[]) => unknown;
|
|
275
|
-
useLayoutEffect: (action: () => any, deps?: any[]) => void;
|
|
276
|
-
useMemo: <T_5_1 = any>(action: () => T_5_1, deps?: any[]) => T_5_1;
|
|
277
|
-
useReducer: (reducer: import("@my-react/react").Reducer, initialArgs: any, init?: (...args: any) => any) => unknown;
|
|
278
|
-
useRef: <T_6_1 = any>(value: T_6_1) => {
|
|
279
|
-
current: T_6_1;
|
|
280
|
-
};
|
|
281
|
-
useState: <T_7_1 = any>(initial: T_7_1 | (() => T_7_1)) => [T_7_1, (t?: T_7_1 | ((t: T_7_1) => T_7_1)) => void];
|
|
282
|
-
useSignal: <T_8_1 = any>(initial: T_8_1 | (() => T_8_1)) => unknown;
|
|
283
|
-
useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
|
|
284
|
-
useTransition: () => [boolean, (cb: () => void) => void];
|
|
285
|
-
useOptimistic: <S_1, A_1>(passthrough: S_1, reducer?: (p: S_1, c: A_1) => S_1) => [S_1, (p: A_1) => void];
|
|
286
|
-
useEffectEvent: <T_9_1 extends Function>(cb: T_9_1) => unknown;
|
|
287
|
-
};
|
|
288
|
-
};
|
|
108
|
+
readContext(_params: ReturnType<typeof import("@my-react/react").createContext>): unknown;
|
|
109
|
+
runtimeMap: import("@my-react/react-reconciler").RenderDispatch["runtimeMap"];
|
|
110
|
+
runtimeFiber: import("@my-react/react-reconciler").RenderDispatch["runtimeFiber"];
|
|
111
|
+
dispatcher: import("@my-react/react-reconciler").RenderDispatch["dispatcher"];
|
|
289
112
|
rootElement: MyReactElementNode;
|
|
290
113
|
trigger(_fiber: MyReactFiberNode, _state?: STATE_TYPE, cb?: () => void): void;
|
|
291
114
|
onFiberInitial(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
@@ -333,33 +156,33 @@ export declare const Reconciler: (_config: any) => {
|
|
|
333
156
|
onAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
334
157
|
onceAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
335
158
|
callOnAfterDispatchRender(renderDispatch: CustomRenderDispatch): void;
|
|
336
|
-
onBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode
|
|
337
|
-
onceBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode
|
|
338
|
-
callOnBeforeDispatchUpdate(renderDispatch: CustomRenderDispatch, list: MyReactFiberNode
|
|
159
|
+
onBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: Array<MyReactFiberNode>) => void): () => boolean;
|
|
160
|
+
onceBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: Array<MyReactFiberNode>) => void): void;
|
|
161
|
+
callOnBeforeDispatchUpdate(renderDispatch: CustomRenderDispatch, list: Array<MyReactFiberNode>): void;
|
|
339
162
|
onAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
340
163
|
onceAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
341
164
|
callOnAfterDispatchUpdate(renderDispatch: CustomRenderDispatch): void;
|
|
342
|
-
onInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
343
|
-
onceInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
344
|
-
callOnInstanceInitial(_instance: import("@my-react/react").MyReactComponent
|
|
345
|
-
onInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
346
|
-
onceInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
347
|
-
callOnInstanceUpdate(_instance: import("@my-react/react").MyReactComponent
|
|
348
|
-
onInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
349
|
-
onceInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
350
|
-
callOnInstanceState(_instance: import("@my-react/react").MyReactComponent
|
|
351
|
-
onInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
352
|
-
onceInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
353
|
-
callOnInstanceUnmount(_instance: import("@my-react/react").MyReactComponent
|
|
165
|
+
onInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
166
|
+
onceInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
|
|
167
|
+
callOnInstanceInitial(_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode): void;
|
|
168
|
+
onInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
169
|
+
onceInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
|
|
170
|
+
callOnInstanceUpdate(_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode): void;
|
|
171
|
+
onInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
|
|
172
|
+
onceInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
|
|
173
|
+
callOnInstanceState(_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
|
|
174
|
+
onInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
175
|
+
onceInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
|
|
176
|
+
callOnInstanceUnmount(_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode): void;
|
|
354
177
|
onHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
355
178
|
onceHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
356
|
-
callOnHookInitial(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber
|
|
179
|
+
callOnHookInitial(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
|
|
357
180
|
onHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
358
181
|
onceHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
359
|
-
callOnHookUpdate(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber
|
|
182
|
+
callOnHookUpdate(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
|
|
360
183
|
onHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
361
184
|
onceHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
362
|
-
callOnHookUnmount(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber
|
|
185
|
+
callOnHookUnmount(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
|
|
363
186
|
onHookState(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
|
|
364
187
|
onceHookTrigger(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
|
|
365
188
|
callOnHookState(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
|
|
@@ -381,11 +204,12 @@ export declare const Reconciler: (_config: any) => {
|
|
|
381
204
|
onAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
382
205
|
onceAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
383
206
|
callOnAfterCommitUnmount(renderDispatch: CustomRenderDispatch): void;
|
|
384
|
-
|
|
385
|
-
_reactInternals
|
|
207
|
+
get isMyReactInstance(): boolean;
|
|
208
|
+
_reactInternals?: import("@my-react/react").RenderFiber;
|
|
386
209
|
};
|
|
387
210
|
injectIntoDevToolsWithSocketIO: (url: string, _config: any) => Promise<void>;
|
|
388
211
|
flushSync: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
|
|
212
|
+
flushSyncWork: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
|
|
389
213
|
batchedUpdates: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
|
|
390
214
|
};
|
|
391
215
|
//# sourceMappingURL=feature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../src/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACtG,OAAO,EACL,gBAAgB,EAChB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../src/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACtG,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EASrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAW,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAU7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAOrD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,aAAa,EAAE,kBAAkB,CAAC;CACnC,CAAC;AAGF,eAAO,MAAM,UAAU,GAAI,SAAS,GAAG;;kCASA,eAAe,QAAQ,MAAM;gCAsB/B,kBAAkB,cAAc,eAAe,WAAW,GAAG,OAAO,MAAM,IAAI;kCA6DtE,GAAG;wCA0BH,eAAe;;;;;;;;;;;;;;;;;;;;;;;iBAVjC,CAAC;mBAA2B,CAAC;;;iBAOpD,CADE;mBAIJ,CAAF;;;iBAOI,CAAH;iBACI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAzFG,CAAC;wBAA+B,CAAC;;;wBAGD,CAAC;wBAClC,CAAR;;;wBAI2D,CAAC;wBAItD,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAqFsqB,CAAC;iEAAiG,CAAC;;mDAAsJ,GAAI;qDAAoF,GAAI;;oDAA6I,GAAI;sDAAqF,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CA7BtrC,MAAM,WAAW,GAAG;2DA3H5D,GAAG;+DAAH,GAAG;gEAAH,GAAG;CAuJf,CAAC"}
|
package/dist/types/hmr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hmr.d.ts","sourceRoot":"","sources":["../../src/hmr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAOrD,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"hmr.d.ts","sourceRoot":"","sources":["../../src/hmr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAOrD,eAAO,MAAM,aAAa,GAAI,UAAU,kBAAkB,SAYzD,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ export interface FiberNode<T = Record<string, any>> extends MyReactFiberNode {
|
|
|
10
10
|
sibling: FiberNode | null;
|
|
11
11
|
alternate?: FiberNode | null;
|
|
12
12
|
}
|
|
13
|
+
export { enableKnownConfigLog } from "./config";
|
|
13
14
|
export default createReconciler;
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,oBAAoB,MAAM,kBAAkB,CAAC;AAEzD,cAAc,4BAA4B,CAAC;AAE3C,eAAO,MAAM,OAAO,QAAc,CAAC;AAEnC,eAAO,MAAM,gBAAgB,EAA4B,OAAO,oBAAoB,CAAC;AAErF,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAE,SAAQ,gBAAgB;IAC1E,SAAS,EAAE,CAAC,CAAC;IACb,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,SAAS,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC9B;AAED,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,iBAAiB,CAAC;AAIzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAyB,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEhH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,iBAAiB,CAAC;AAIzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAyB,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEhH,eAAO,MAAM,YAAY,GAAI,UAAU,kBAAkB,EAAE,YAAY,eAAe,6CAIrF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,gBAAgB,oBAAoB,EAAE,OAAO,gBAAgB,SAgB3F,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "@my-react/react-reconciler-compact",
|
|
4
4
|
"author": "MrWangJustToDo",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.14",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"types": "index.d.ts",
|
|
9
9
|
"files": [
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
}
|
|
75
75
|
],
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@my-react/react-reconciler": "^0.3.
|
|
78
|
-
"@my-react/react-shared": "^0.3.
|
|
79
|
-
"@types/react-reconciler": "^0.32.
|
|
77
|
+
"@my-react/react-reconciler": "^0.3.23",
|
|
78
|
+
"@my-react/react-shared": "^0.3.23",
|
|
79
|
+
"@types/react-reconciler": "^0.32.3"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@my-react/react": ">=0.3.
|
|
82
|
+
"@my-react/react": ">=0.3.23"
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dispatchFiber.d.ts","sourceRoot":"","sources":["../../src/dispatchFiber.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,eAAO,MAAM,uBAAuB,mBAAoB,kBAAkB,SAAS,gBAAgB,SAqBlG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dispatchMap.d.ts","sourceRoot":"","sources":["../../src/dispatchMap.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAA2C,MAAM,4BAA4B,CAAC;AAE5G,eAAO,MAAM,UAAU,aAAc,kBAAkB,SAAS,gBAAgB,UAAU,GAAG,SAkC5F,CAAC;AAEF,eAAO,MAAM,UAAU,aAAc,kBAAkB,SAAS,gBAAgB,SAI/E,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAC1B,gBAAgB,GAAG,IAAI,iBACf,gBAAgB,KAAK,gBAAgB,GAAG,IAAI,KAC1D,gBAAgB,GAAG,IAYrB,CAAC;AAEF,eAAO,MAAM,2BAA2B,cAAe,kBAAkB,UAAU,gBAAgB,qBAUlG,CAAC;AA4BF,eAAO,MAAM,uCAAuC,UAAW,gBAAgB,GAAG,IAAI,eAAe,gBAAgB,GAAG,IAAI,KAAG,gBAAgB,GAAG,IAUjJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dispatchMount.d.ts","sourceRoot":"","sources":["../../src/dispatchMount.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMnE,eAAO,MAAM,uBAAuB,cAAe,kBAAkB,UAAU,gBAAgB,UAAU,GAAG,SAgG3G,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dispatchUpdate.d.ts","sourceRoot":"","sources":["../../src/dispatchUpdate.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAMvD,eAAO,MAAM,wBAAwB,cAAe,kBAAkB,SAAS,SAAS,gBAAgB,CAAC,UAAU,GAAG,SAAS,OAAO,SAgJrI,CAAC"}
|