@my-react/react-reconciler-compact 0.0.13 → 0.0.15
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/constants.js +1 -1
- package/dist/cjs/index.development.js +884 -1171
- package/dist/cjs/index.production.js +824 -1122
- package/dist/cjs/preload.development.js +548 -0
- package/dist/cjs/preload.production.js +548 -0
- package/dist/esm/index.mjs +1651 -1844
- package/dist/esm/preload.mjs +544 -0
- 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.map +1 -1
- 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 +35 -207
- package/dist/types/dispatch.d.ts.map +1 -1
- package/dist/types/feature.d.ts +46 -218
- package/dist/types/feature.d.ts.map +1 -1
- package/dist/types/hmr.d.ts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/polyfill.d.ts.map +1 -1
- package/dist/types/portal.d.ts +2 -2
- package/dist/types/portal.d.ts.map +1 -1
- package/dist/types/preload.d.ts +4 -0
- package/dist/types/preload.d.ts.map +1 -0
- package/index.d.ts +1 -1
- package/package.json +29 -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/dispatch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomRenderDispatch, NODE_TYPE } from "@my-react/react-reconciler";
|
|
2
|
-
import type { MyReactElementNode, RenderHookParams, UpdateQueue } from "@my-react/react";
|
|
2
|
+
import type { MyReactElementNode, RenderHookParams, UpdateQueue } from "@my-react/react/type";
|
|
3
3
|
import type { MyReactFiberRoot, MyReactFiberNode } from "@my-react/react-reconciler";
|
|
4
4
|
import type { ListTree } from "@my-react/react-shared";
|
|
5
5
|
export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot, rootElement: MyReactElementNode, config: any, flag: number) => {
|
|
@@ -44,15 +44,15 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
|
|
|
44
44
|
version: string;
|
|
45
45
|
id: string;
|
|
46
46
|
mode: string;
|
|
47
|
-
enableNewEntry
|
|
48
|
-
enableConcurrentMode
|
|
47
|
+
enableNewEntry?: boolean;
|
|
48
|
+
enableConcurrentMode?: boolean;
|
|
49
49
|
renderMode: string;
|
|
50
50
|
renderPackage?: string;
|
|
51
|
-
pendingCommitFiberList: ListTree<MyReactFiberNode
|
|
51
|
+
pendingCommitFiberList: ListTree<MyReactFiberNode> | null;
|
|
52
52
|
pendingCommitFiberPatch: import("@my-react/react-shared").PATCH_TYPE;
|
|
53
53
|
pendingUpdateFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
|
|
54
54
|
pendingSuspenseFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
|
|
55
|
-
performanceLogTimeLimit
|
|
55
|
+
performanceLogTimeLimit?: number;
|
|
56
56
|
uniqueIdCount: number;
|
|
57
57
|
beforeCommit?: () => void;
|
|
58
58
|
afterCommit?: () => void;
|
|
@@ -80,197 +80,25 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
|
|
|
80
80
|
stickyToFoot?: boolean;
|
|
81
81
|
}): void;
|
|
82
82
|
patchToFiberUpdate(_fiber: MyReactFiberNode): void;
|
|
83
|
-
processLazy(_elementType: import("@my-react/react").
|
|
83
|
+
processLazy(_elementType: ReturnType<typeof import("@my-react/react/type").lazy>): Promise<void>;
|
|
84
84
|
processPromise(_promise: import("@my-react/react-reconciler").PromiseWithState<unknown>): Promise<void>;
|
|
85
85
|
resolveStrict(_fiber: MyReactFiberNode): boolean;
|
|
86
|
-
resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode;
|
|
86
|
+
resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode | null;
|
|
87
87
|
resolveSuspenseValue(_fiber: MyReactFiberNode): MyReactElementNode;
|
|
88
|
-
resolveSuspenseFiber(_fiber: MyReactFiberNode): MyReactFiberNode;
|
|
89
|
-
resolveErrorBoundaries(_fiber: MyReactFiberNode): MyReactFiberNode;
|
|
90
|
-
resolveContextFiber(_fiber: MyReactFiberNode, _contextObject
|
|
91
|
-
|
|
92
|
-
value: unknown;
|
|
93
|
-
Context: {
|
|
94
|
-
$$typeof: symbol;
|
|
95
|
-
displayName: string;
|
|
96
|
-
};
|
|
97
|
-
}, {
|
|
98
|
-
$$typeof: symbol;
|
|
99
|
-
Context: {
|
|
100
|
-
$$typeof: symbol;
|
|
101
|
-
displayName: string;
|
|
102
|
-
};
|
|
103
|
-
}>): MyReactFiberNode;
|
|
104
|
-
resolveContextValue(_fiber: MyReactFiberNode, _contextObject: import("@my-react/react").ContextObjectType<{
|
|
105
|
-
$$typeof: symbol;
|
|
106
|
-
value: unknown;
|
|
107
|
-
Context: {
|
|
108
|
-
$$typeof: symbol;
|
|
109
|
-
displayName: string;
|
|
110
|
-
};
|
|
111
|
-
}, {
|
|
112
|
-
$$typeof: symbol;
|
|
113
|
-
Context: {
|
|
114
|
-
$$typeof: symbol;
|
|
115
|
-
displayName: string;
|
|
116
|
-
};
|
|
117
|
-
}>): Record<string, unknown>;
|
|
88
|
+
resolveSuspenseFiber(_fiber: MyReactFiberNode): MyReactFiberNode | null;
|
|
89
|
+
resolveErrorBoundaries(_fiber: MyReactFiberNode): MyReactFiberNode | null;
|
|
90
|
+
resolveContextFiber(_fiber: MyReactFiberNode, _contextObject?: ReturnType<typeof import("@my-react/react/type").createContext> | null): MyReactFiberNode | null;
|
|
91
|
+
resolveContextValue(_fiber: MyReactFiberNode | null, _contextObject?: ReturnType<typeof import("@my-react/react/type").createContext> | null): Record<string, unknown> | null;
|
|
118
92
|
reconcileUnmount(): void;
|
|
119
93
|
shouldYield(): boolean;
|
|
120
94
|
resetYield(): void;
|
|
121
95
|
resetUpdateFlowRuntimeFiber(): void;
|
|
122
96
|
getFiberTree(_fiber: MyReactFiberNode): string;
|
|
123
97
|
readPromise(_params: Promise<unknown>): unknown;
|
|
124
|
-
readContext(_params: import("@my-react/react").
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
$$typeof: symbol;
|
|
129
|
-
displayName: string;
|
|
130
|
-
};
|
|
131
|
-
}, {
|
|
132
|
-
$$typeof: symbol;
|
|
133
|
-
Context: {
|
|
134
|
-
$$typeof: symbol;
|
|
135
|
-
displayName: string;
|
|
136
|
-
};
|
|
137
|
-
}>): unknown;
|
|
138
|
-
runtimeMap: {
|
|
139
|
-
effectMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
|
|
140
|
-
layoutEffectMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
|
|
141
|
-
insertionEffectMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
|
|
142
|
-
unmountMap: WeakMap<MyReactFiberNode, ListTree<MyReactFiberNode>>;
|
|
143
|
-
triggerCallbackMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
|
|
144
|
-
};
|
|
145
|
-
runtimeFiber: Record<"scheduledFiber" | "errorCatchFiber" | "nextWorkingFiber" | "retriggerFiber", MyReactFiberNode>;
|
|
146
|
-
dispatcher: {
|
|
147
|
-
current: {
|
|
148
|
-
proxy: {
|
|
149
|
-
readContext: <T_1 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
150
|
-
$$typeof: symbol;
|
|
151
|
-
value: T_1;
|
|
152
|
-
Context: {
|
|
153
|
-
$$typeof: symbol;
|
|
154
|
-
displayName: string;
|
|
155
|
-
};
|
|
156
|
-
}, {
|
|
157
|
-
$$typeof: symbol;
|
|
158
|
-
Context: {
|
|
159
|
-
$$typeof: symbol;
|
|
160
|
-
displayName: string;
|
|
161
|
-
};
|
|
162
|
-
}> | Promise<T_1>) => T_1;
|
|
163
|
-
use: <T_1_1 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
164
|
-
$$typeof: symbol;
|
|
165
|
-
value: T_1_1;
|
|
166
|
-
Context: {
|
|
167
|
-
$$typeof: symbol;
|
|
168
|
-
displayName: string;
|
|
169
|
-
};
|
|
170
|
-
}, {
|
|
171
|
-
$$typeof: symbol;
|
|
172
|
-
Context: {
|
|
173
|
-
$$typeof: symbol;
|
|
174
|
-
displayName: string;
|
|
175
|
-
};
|
|
176
|
-
}> | Promise<T_1_1>) => T_1_1;
|
|
177
|
-
useCallback: <T_2 extends (...args: any) => any = (...args: any) => any>(callback: T_2, deps?: any[]) => T_2;
|
|
178
|
-
useContext: <T_3 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
179
|
-
$$typeof: symbol;
|
|
180
|
-
value: T_3;
|
|
181
|
-
Context: {
|
|
182
|
-
$$typeof: symbol;
|
|
183
|
-
displayName: string;
|
|
184
|
-
};
|
|
185
|
-
}, {
|
|
186
|
-
$$typeof: symbol;
|
|
187
|
-
Context: {
|
|
188
|
-
$$typeof: symbol;
|
|
189
|
-
displayName: string;
|
|
190
|
-
};
|
|
191
|
-
}>) => T_3;
|
|
192
|
-
useDebugValue: (...args: any[]) => unknown;
|
|
193
|
-
useDeferredValue: <T_4 = any>(value: T_4) => T_4;
|
|
194
|
-
useEffect: (action: () => any, deps?: any[]) => void;
|
|
195
|
-
useId: () => string;
|
|
196
|
-
useImperativeHandle: (ref: any, createHandle: import("@my-react/react").Reducer, deps: any[]) => unknown;
|
|
197
|
-
useInsertionEffect: (action: () => any, deps: any[]) => unknown;
|
|
198
|
-
useLayoutEffect: (action: () => any, deps?: any[]) => void;
|
|
199
|
-
useMemo: <T_5 = any>(action: () => T_5, deps?: any[]) => T_5;
|
|
200
|
-
useReducer: (reducer: import("@my-react/react").Reducer, initialArgs: any, init?: (...args: any) => any) => unknown;
|
|
201
|
-
useRef: <T_6 = any>(value: T_6) => {
|
|
202
|
-
current: T_6;
|
|
203
|
-
};
|
|
204
|
-
useState: <T_7 = any>(initial: T_7 | (() => T_7)) => [T_7, (t?: T_7 | ((t: T_7) => T_7)) => void];
|
|
205
|
-
useSignal: <T_8 = any>(initial: T_8 | (() => T_8)) => unknown;
|
|
206
|
-
useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
|
|
207
|
-
useTransition: () => [boolean, (cb: () => void) => void];
|
|
208
|
-
useOptimistic: <S, A>(passthrough: S, reducer?: (p: S, c: A) => S) => [S, (p: A) => void];
|
|
209
|
-
useEffectEvent: <T_9 extends Function>(cb: T_9) => unknown;
|
|
210
|
-
};
|
|
211
|
-
readContext: <T_1_2 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
212
|
-
$$typeof: symbol;
|
|
213
|
-
value: T_1_2;
|
|
214
|
-
Context: {
|
|
215
|
-
$$typeof: symbol;
|
|
216
|
-
displayName: string;
|
|
217
|
-
};
|
|
218
|
-
}, {
|
|
219
|
-
$$typeof: symbol;
|
|
220
|
-
Context: {
|
|
221
|
-
$$typeof: symbol;
|
|
222
|
-
displayName: string;
|
|
223
|
-
};
|
|
224
|
-
}> | Promise<T_1_2>) => T_1_2;
|
|
225
|
-
use: <T_1_3 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
226
|
-
$$typeof: symbol;
|
|
227
|
-
value: T_1_3;
|
|
228
|
-
Context: {
|
|
229
|
-
$$typeof: symbol;
|
|
230
|
-
displayName: string;
|
|
231
|
-
};
|
|
232
|
-
}, {
|
|
233
|
-
$$typeof: symbol;
|
|
234
|
-
Context: {
|
|
235
|
-
$$typeof: symbol;
|
|
236
|
-
displayName: string;
|
|
237
|
-
};
|
|
238
|
-
}> | Promise<T_1_3>) => T_1_3;
|
|
239
|
-
useCallback: <T_2_1 extends (...args: any) => any = (...args: any) => any>(callback: T_2_1, deps?: any[]) => T_2_1;
|
|
240
|
-
useContext: <T_3_1 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
241
|
-
$$typeof: symbol;
|
|
242
|
-
value: T_3_1;
|
|
243
|
-
Context: {
|
|
244
|
-
$$typeof: symbol;
|
|
245
|
-
displayName: string;
|
|
246
|
-
};
|
|
247
|
-
}, {
|
|
248
|
-
$$typeof: symbol;
|
|
249
|
-
Context: {
|
|
250
|
-
$$typeof: symbol;
|
|
251
|
-
displayName: string;
|
|
252
|
-
};
|
|
253
|
-
}>) => T_3_1;
|
|
254
|
-
useDebugValue: (...args: any[]) => unknown;
|
|
255
|
-
useDeferredValue: <T_4_1 = any>(value: T_4_1) => T_4_1;
|
|
256
|
-
useEffect: (action: () => any, deps?: any[]) => void;
|
|
257
|
-
useId: () => string;
|
|
258
|
-
useImperativeHandle: (ref: any, createHandle: import("@my-react/react").Reducer, deps: any[]) => unknown;
|
|
259
|
-
useInsertionEffect: (action: () => any, deps: any[]) => unknown;
|
|
260
|
-
useLayoutEffect: (action: () => any, deps?: any[]) => void;
|
|
261
|
-
useMemo: <T_5_1 = any>(action: () => T_5_1, deps?: any[]) => T_5_1;
|
|
262
|
-
useReducer: (reducer: import("@my-react/react").Reducer, initialArgs: any, init?: (...args: any) => any) => unknown;
|
|
263
|
-
useRef: <T_6_1 = any>(value: T_6_1) => {
|
|
264
|
-
current: T_6_1;
|
|
265
|
-
};
|
|
266
|
-
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];
|
|
267
|
-
useSignal: <T_8_1 = any>(initial: T_8_1 | (() => T_8_1)) => unknown;
|
|
268
|
-
useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
|
|
269
|
-
useTransition: () => [boolean, (cb: () => void) => void];
|
|
270
|
-
useOptimistic: <S_1, A_1>(passthrough: S_1, reducer?: (p: S_1, c: A_1) => S_1) => [S_1, (p: A_1) => void];
|
|
271
|
-
useEffectEvent: <T_9_1 extends Function>(cb: T_9_1) => unknown;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
98
|
+
readContext(_params: ReturnType<typeof import("@my-react/react/type").createContext>): unknown;
|
|
99
|
+
runtimeMap: import("@my-react/react-reconciler").RenderDispatch["runtimeMap"];
|
|
100
|
+
runtimeFiber: import("@my-react/react-reconciler").RenderDispatch["runtimeFiber"];
|
|
101
|
+
dispatcher: import("@my-react/react-reconciler").RenderDispatch["dispatcher"];
|
|
274
102
|
rootElement: MyReactElementNode;
|
|
275
103
|
trigger(_fiber: MyReactFiberNode, _state?: import("@my-react/react-shared").STATE_TYPE, cb?: () => void): void;
|
|
276
104
|
onFiberInitial(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
@@ -318,33 +146,33 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
|
|
|
318
146
|
onAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
319
147
|
onceAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
320
148
|
callOnAfterDispatchRender(renderDispatch: CustomRenderDispatch): void;
|
|
321
|
-
onBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode
|
|
322
|
-
onceBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode
|
|
323
|
-
callOnBeforeDispatchUpdate(renderDispatch: CustomRenderDispatch, list: MyReactFiberNode
|
|
149
|
+
onBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: Array<MyReactFiberNode>) => void): () => boolean;
|
|
150
|
+
onceBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: Array<MyReactFiberNode>) => void): void;
|
|
151
|
+
callOnBeforeDispatchUpdate(renderDispatch: CustomRenderDispatch, list: Array<MyReactFiberNode>): void;
|
|
324
152
|
onAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
325
153
|
onceAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
326
154
|
callOnAfterDispatchUpdate(renderDispatch: CustomRenderDispatch): void;
|
|
327
|
-
onInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
328
|
-
onceInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
329
|
-
callOnInstanceInitial(_instance: import("@my-react/react").MyReactComponent
|
|
330
|
-
onInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
331
|
-
onceInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
332
|
-
callOnInstanceUpdate(_instance: import("@my-react/react").MyReactComponent
|
|
333
|
-
onInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
334
|
-
onceInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
335
|
-
callOnInstanceState(_instance: import("@my-react/react").MyReactComponent
|
|
336
|
-
onInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
337
|
-
onceInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent
|
|
338
|
-
callOnInstanceUnmount(_instance: import("@my-react/react").MyReactComponent
|
|
155
|
+
onInstanceInitial(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
156
|
+
onceInstanceInitial(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
|
|
157
|
+
callOnInstanceInitial(_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode): void;
|
|
158
|
+
onInstanceUpdate(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
159
|
+
onceInstanceUpdate(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
|
|
160
|
+
callOnInstanceUpdate(_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode): void;
|
|
161
|
+
onInstanceState(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): () => boolean;
|
|
162
|
+
onceInstanceState(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): void;
|
|
163
|
+
callOnInstanceState(_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode, _updater: UpdateQueue): void;
|
|
164
|
+
onInstanceUnmount(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
165
|
+
onceInstanceUnmount(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
|
|
166
|
+
callOnInstanceUnmount(_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode): void;
|
|
339
167
|
onHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
340
168
|
onceHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
341
|
-
callOnHookInitial(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber
|
|
169
|
+
callOnHookInitial(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
|
|
342
170
|
onHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
343
171
|
onceHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
344
|
-
callOnHookUpdate(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber
|
|
172
|
+
callOnHookUpdate(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
|
|
345
173
|
onHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
346
174
|
onceHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
347
|
-
callOnHookUnmount(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber
|
|
175
|
+
callOnHookUnmount(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
|
|
348
176
|
onHookState(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): () => boolean;
|
|
349
177
|
onceHookTrigger(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): void;
|
|
350
178
|
callOnHookState(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: UpdateQueue): void;
|
|
@@ -366,8 +194,8 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
|
|
|
366
194
|
onAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
367
195
|
onceAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
368
196
|
callOnAfterCommitUnmount(renderDispatch: CustomRenderDispatch): void;
|
|
369
|
-
|
|
370
|
-
_reactInternals
|
|
197
|
+
get isMyReactInstance(): boolean;
|
|
198
|
+
_reactInternals?: import("@my-react/react/type").RenderFiber;
|
|
371
199
|
};
|
|
372
200
|
export type ReconcilerDispatch = ReturnType<typeof createDispatch>;
|
|
373
201
|
//# sourceMappingURL=dispatch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/dispatch.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,SAAS,EAcV,MAAM,4BAA4B,CAAC;AAQpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/dispatch.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,SAAS,EAcV,MAAM,4BAA4B,CAAC;AAQpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAO,MAAM,4BAA4B,CAAC;AAC1F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAgBvD,eAAO,MAAM,cAAc,GAAI,UAAU,GAAG,EAAE,WAAW,gBAAgB,EAAE,aAAa,kBAAkB,EAAE,QAAQ,GAAG,EAAE,MAAM,MAAM;;;;;;;;0BAa3G,gBAAgB,GAAG,IAAI;yBAIxB,gBAAgB,GAAG,IAAI;yBAIvB,gBAAgB,GAAG,IAAI;yBAIvB,gBAAgB,GAAG,IAAI;2BAIrB,gBAAgB,GAAG,IAAI;yBAIzB,gBAAgB,GAAG,IAAI;2BAIrB,gBAAgB,GAAG,IAAI;wBAI1B,gBAAgB,GAAG,IAAI;4BAInB,gBAAgB,GAAG,IAAI;2BA0BxB,QAAQ,CAAC,gBAAgB,CAAC,SAAS,OAAO,GAAG,IAAI;gCA0B5C,gBAAgB,GAAG,IAAI;gCAIvB,gBAAgB,GAAG,IAAI;2BAI5B,WAAW,GAAG,IAAI;0BAInB,gBAAgB,GAAG,OAAO;6BAIvB;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;KAAE,GAAG,kBAAkB;qCAIrE;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;KAAE,GAAG,kBAAkB;2BAIvF;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBApG1C,CAAA;oBACpB,CAAC;;;oBAOH,CAAA;oBACrB,CAAA;;;oBAOM,CAAC;oBAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2DAsHlC,CAAC;6DAIV,CAAF;;+CAI2D,GAAI;iDAAoF,GAAI;;gDAA6I,GAAI;kDAAqF,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAHhY,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|