@my-react/react-reconciler-compact 0.0.10 → 0.0.12
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.d.ts +1 -0
- package/constants.js +15 -0
- package/dist/cjs/constants.development.js +18 -0
- package/dist/cjs/constants.production.js +18 -0
- package/dist/cjs/index.development.js +7642 -7525
- package/dist/cjs/index.production.js +6704 -6903
- package/dist/esm/constants.mjs +10 -0
- package/dist/esm/index.mjs +15852 -0
- package/dist/types/api/append.d.ts +1 -1
- package/dist/types/api/append.d.ts.map +1 -1
- package/dist/types/api/create.d.ts.map +1 -1
- package/dist/types/api/update.d.ts.map +1 -1
- package/dist/types/constants.d.ts +8 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/dispatch.d.ts +60 -24
- package/dist/types/dispatch.d.ts.map +1 -1
- package/dist/types/dispatchUpdate.d.ts +1 -1
- package/dist/types/dispatchUpdate.d.ts.map +1 -1
- package/dist/types/feature.d.ts +374 -1
- package/dist/types/feature.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/polyfill.d.ts +7 -1
- package/dist/types/polyfill.d.ts.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +42 -7
- package/type.d.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { type MyReactFiberNode } from "@my-react/react-reconciler";
|
|
1
2
|
import type { ReconcilerDispatch } from "../dispatch";
|
|
2
|
-
import type { MyReactFiberNode } from "@my-react/react-reconciler";
|
|
3
3
|
export declare const append: (_dispatch: ReconcilerDispatch, _fiber: MyReactFiberNode, _config: any) => void;
|
|
4
4
|
//# sourceMappingURL=append.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"append.d.ts","sourceRoot":"","sources":["../../../src/api/append.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"append.d.ts","sourceRoot":"","sources":["../../../src/api/append.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAyC,MAAM,4BAA4B,CAAC;AAK1G,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,MAAM,cAAe,kBAAkB,UAAU,gBAAgB,WAAW,GAAG,SAmD3F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/api/create.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAyB,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE1F,eAAO,MAAM,MAAM,cAAe,kBAAkB,UAAU,gBAAgB,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/api/create.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAyB,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE1F,eAAO,MAAM,MAAM,cAAe,kBAAkB,UAAU,gBAAgB,WAAW,GAAG,SA0C3F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/api/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,MAAM,cAAe,kBAAkB,UAAU,gBAAgB,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/api/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,MAAM,cAAe,kBAAkB,UAAU,gBAAgB,WAAW,GAAG,SAwC3F,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ConcurrentRoot = 1;
|
|
2
|
+
export declare const LegacyRoot = 0;
|
|
3
|
+
export declare const DefaultEventPriority = 0;
|
|
4
|
+
export declare const DiscreteEventPriority = 0;
|
|
5
|
+
export declare const ContinuousEventPriority = 0;
|
|
6
|
+
export declare const IdleEventPriority = 0;
|
|
7
|
+
export declare const NoEventPriority = 0;
|
|
8
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,IAAI,CAAA;AAC/B,eAAO,MAAM,UAAU,IAAI,CAAA;AAG3B,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,eAAe,IAAI,CAAC"}
|
package/dist/types/dispatch.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
|
|
|
19
19
|
commitUnsetRef(_fiber: MyReactFiberNode): void;
|
|
20
20
|
commitClear(_fiber: MyReactFiberNode): void;
|
|
21
21
|
reconcileCommit(_fiber: MyReactFiberNode): void;
|
|
22
|
-
reconcileUpdate(_list: ListTree<MyReactFiberNode
|
|
22
|
+
reconcileUpdate(_list: ListTree<MyReactFiberNode>, sync?: boolean): void;
|
|
23
23
|
patchToFiberInitial(_fiber: MyReactFiberNode): void;
|
|
24
24
|
patchToFiberUnmount(_fiber: MyReactFiberNode): void;
|
|
25
25
|
dispatchState(_params: UpdateQueue): void;
|
|
@@ -42,6 +42,7 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
|
|
|
42
42
|
isAppCrashed: boolean;
|
|
43
43
|
isAppUnmounted: boolean;
|
|
44
44
|
version: string;
|
|
45
|
+
id: string;
|
|
45
46
|
mode: string;
|
|
46
47
|
enableNewEntry: boolean;
|
|
47
48
|
enableConcurrentMode: boolean;
|
|
@@ -279,62 +280,97 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
|
|
|
279
280
|
trigger(_fiber: MyReactFiberNode, _state?: import("@my-react/react-shared").STATE_TYPE, cb?: () => void): void;
|
|
280
281
|
onFiberInitial(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
281
282
|
onceFiberInitial(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
283
|
+
callOnFiberInitial(_fiber: MyReactFiberNode): void;
|
|
282
284
|
onFiberUpdate(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
285
|
+
onceFiberUpdate(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
286
|
+
callOnFiberUpdate(_fiber: MyReactFiberNode): void;
|
|
283
287
|
onFiberChange(cb: (_list: ListTree<MyReactFiberNode>) => void): () => boolean;
|
|
284
288
|
onceFiberChange(cb: (_list: ListTree<MyReactFiberNode>) => void): void;
|
|
285
|
-
|
|
289
|
+
callOnFiberChange(_list: ListTree<MyReactFiberNode>): void;
|
|
286
290
|
onFiberUnmount(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
287
291
|
onceFiberUnmount(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
292
|
+
callOnFiberUnmount(_fiber: MyReactFiberNode): void;
|
|
288
293
|
onFiberState(cb: (_fiber: MyReactFiberNode, _updater: UpdateQueue) => void): () => boolean;
|
|
289
294
|
onceFiberState(cb: (_fiber: MyReactFiberNode, _updater: UpdateQueue) => void): void;
|
|
295
|
+
callOnFiberState(_fiber: MyReactFiberNode, _updater: UpdateQueue): void;
|
|
290
296
|
onFiberTrigger(cb: (_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState) => void): () => boolean;
|
|
291
297
|
onceFiberTrigger(cb: (_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState) => void): void;
|
|
298
|
+
callOnFiberTrigger(_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState): void;
|
|
292
299
|
onFiberHMR(cb: (_fiber: MyReactFiberNode, _forceRefresh?: boolean) => void): () => boolean;
|
|
293
300
|
onceFiberHMR(cb: (_fiber: MyReactFiberNode, _forceRefresh?: boolean) => void): void;
|
|
301
|
+
callOnFiberHMR(_fiber: MyReactFiberNode, _forceRefresh?: boolean): void;
|
|
294
302
|
onFiberWarn(cb: (_fiber: MyReactFiberNode, ...args: any) => void): () => boolean;
|
|
295
303
|
onceFiberWarn(cb: (_fiber: MyReactFiberNode, ...args: any) => void): void;
|
|
304
|
+
callOnFiberWarn(_fiber: MyReactFiberNode, ...args: any): void;
|
|
296
305
|
onFiberError(cb: (_fiber: MyReactFiberNode, ...args: any) => void): () => boolean;
|
|
297
306
|
onceFiberError(cb: (_fiber: MyReactFiberNode, ...args: any) => void): void;
|
|
298
|
-
|
|
299
|
-
|
|
307
|
+
callOnFiberError(_fiber: MyReactFiberNode, ...args: any): void;
|
|
308
|
+
onPerformanceWarn(cb: (_fiber: MyReactFiberNode, _renderTime: number) => void): () => boolean;
|
|
309
|
+
oncePerformanceWarn(cb: (_fiber: MyReactFiberNode, _renderTime: number) => void): void;
|
|
310
|
+
callOnPerformanceWarn(_fiber: MyReactFiberNode, _renderTime: number): void;
|
|
300
311
|
onBeforeFiberRun(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
301
312
|
onceBeforeFiberRun(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
313
|
+
callOnBeforeFiberRun(_fiber: MyReactFiberNode): void;
|
|
302
314
|
onAfterFiberRun(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
303
315
|
onceAfterFiberRun(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
316
|
+
callOnAfterFiberRun(_fiber: MyReactFiberNode): void;
|
|
304
317
|
onAfterFiberDone(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
305
318
|
onceAfterFiberDone(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
306
|
-
|
|
307
|
-
|
|
319
|
+
callOnAfterFiberDone(_fiber: MyReactFiberNode): void;
|
|
320
|
+
onBeforeDispatchRender(cb: (renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode) => void): () => boolean;
|
|
321
|
+
onceBeforeDispatchRender(cb: (renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode) => void): void;
|
|
322
|
+
callOnBeforeDispatchRender(renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode): void;
|
|
323
|
+
onAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
324
|
+
onceAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
325
|
+
callOnAfterDispatchRender(renderDispatch: CustomRenderDispatch): void;
|
|
308
326
|
onBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]) => void): () => boolean;
|
|
309
327
|
onceBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]) => void): void;
|
|
328
|
+
callOnBeforeDispatchUpdate(renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]): void;
|
|
329
|
+
onAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
330
|
+
onceAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
331
|
+
callOnAfterDispatchUpdate(renderDispatch: CustomRenderDispatch): void;
|
|
310
332
|
onInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
311
333
|
onceInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
|
|
334
|
+
callOnInstanceInitial(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
|
|
312
335
|
onInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
313
336
|
onceInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
|
|
337
|
+
callOnInstanceUpdate(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
|
|
314
338
|
onInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): () => boolean;
|
|
315
339
|
onceInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): void;
|
|
340
|
+
callOnInstanceState(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: UpdateQueue): void;
|
|
316
341
|
onInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
317
342
|
onceInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
343
|
+
callOnInstanceUnmount(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
|
|
344
|
+
onHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
345
|
+
onceHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
346
|
+
callOnHookInitial(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
|
|
347
|
+
onHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
348
|
+
onceHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
349
|
+
callOnHookUpdate(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
|
|
350
|
+
onHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
351
|
+
onceHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
352
|
+
callOnHookUnmount(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
|
|
324
353
|
onHookState(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): () => boolean;
|
|
325
354
|
onceHookTrigger(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): void;
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
355
|
+
callOnHookState(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: UpdateQueue): void;
|
|
356
|
+
onBeforeCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
357
|
+
onceBeforeCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
358
|
+
callOnBeforeCommitMount(renderDispatch: CustomRenderDispatch): void;
|
|
359
|
+
onAfterCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
360
|
+
onceAfterCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
361
|
+
callOnAfterCommitMount(renderDispatch: CustomRenderDispatch): void;
|
|
362
|
+
onBeforeCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
363
|
+
onceBeforeCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
364
|
+
callOnBeforeCommitUpdate(renderDispatch: CustomRenderDispatch): void;
|
|
365
|
+
onAfterCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
366
|
+
onceAfterCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
367
|
+
callOnAfterCommitUpdate(renderDispatch: CustomRenderDispatch): void;
|
|
368
|
+
onBeforeCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
369
|
+
onceBeforeCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
370
|
+
callOnBeforeCommitUnmount(renderDispatch: CustomRenderDispatch): void;
|
|
371
|
+
onAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
372
|
+
onceAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
373
|
+
callOnAfterCommitUnmount(renderDispatch: CustomRenderDispatch): void;
|
|
338
374
|
readonly isMyReactInstance: boolean;
|
|
339
375
|
_reactInternals: import("@my-react/react").RenderFiber;
|
|
340
376
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/dispatch.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,SAAS,
|
|
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,iBAAiB,CAAC;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAO,MAAM,4BAA4B,CAAC;AAC1F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAgBvD,eAAO,MAAM,cAAc,aAAc,GAAG,aAAa,gBAAgB,eAAe,kBAAkB,UAAU,GAAG,QAAQ,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,SAAS,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,QAAQ,OAAO,CAAC,CAAA;KAAE,GAAG,kBAAkB;qCAIrE;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAC;QAAC,OAAO,CAAC,EAAE,QAAQ,OAAO,CAAC,CAAA;KAAE,GAAG,kBAAkB;2BAIvF;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC1F,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReconcilerDispatch } from "./dispatch";
|
|
2
2
|
import type { MyReactFiberNode } from "@my-react/react-reconciler";
|
|
3
3
|
import type { ListTree } from "@my-react/react-shared";
|
|
4
|
-
export declare const ReconcilerDispatchUpdate: (_dispatch: ReconcilerDispatch, _list: ListTree<MyReactFiberNode>, config: any) => void;
|
|
4
|
+
export declare const ReconcilerDispatchUpdate: (_dispatch: ReconcilerDispatch, _list: ListTree<MyReactFiberNode>, config: any, sync?: boolean) => void;
|
|
5
5
|
//# sourceMappingURL=dispatchUpdate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
package/dist/types/feature.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type MyReactElementNode } from "@my-react/react";
|
|
2
|
-
import { MyReactFiberNode } from "@my-react/react-reconciler";
|
|
2
|
+
import { MyReactFiberNode, CustomRenderDispatch } from "@my-react/react-reconciler";
|
|
3
|
+
import { STATE_TYPE } from "@my-react/react-shared";
|
|
3
4
|
import type { ReconcilerDispatch } from "./dispatch";
|
|
4
5
|
export type RenderContainer = Record<string, any> & {
|
|
5
6
|
__flag__: number;
|
|
@@ -11,6 +12,378 @@ export declare const Reconciler: (_config: any) => {
|
|
|
11
12
|
createContainer: (_container: RenderContainer, flag: number) => RenderContainer;
|
|
12
13
|
updateContainer: (_element: MyReactElementNode, _container: RenderContainer, _ignore: any, _cb: () => void) => void;
|
|
13
14
|
injectIntoDevTools: (_config: any) => Promise<void>;
|
|
15
|
+
getPublicRootInstance: (_container: RenderContainer) => {
|
|
16
|
+
enableUpdate: boolean;
|
|
17
|
+
enableAsyncLoad: boolean;
|
|
18
|
+
runtimeDom: {
|
|
19
|
+
hostContextMap: WeakMap<MyReactFiberNode, any>;
|
|
20
|
+
elementMap: WeakMap<MyReactFiberNode, MyReactFiberNode>;
|
|
21
|
+
};
|
|
22
|
+
runtimeRef: Record<"typeForRef" | "typeForCreate" | "typeForUpdate" | "typeForAppend" | "typeForNativeNode", import("@my-react/react-reconciler").NODE_TYPE>;
|
|
23
|
+
dispatchFiber(_fiber: MyReactFiberNode): void;
|
|
24
|
+
commitCreate(_fiber: MyReactFiberNode): void;
|
|
25
|
+
commitUpdate(_fiber: MyReactFiberNode): void;
|
|
26
|
+
commitAppend(_fiber: MyReactFiberNode): void;
|
|
27
|
+
commitPosition(_fiber: MyReactFiberNode): void;
|
|
28
|
+
commitSetRef(_fiber: MyReactFiberNode): void;
|
|
29
|
+
commitUnsetRef(_fiber: MyReactFiberNode): void;
|
|
30
|
+
commitClear(_fiber: MyReactFiberNode): void;
|
|
31
|
+
reconcileCommit(_fiber: MyReactFiberNode): void;
|
|
32
|
+
reconcileUpdate(_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>, sync?: boolean): void;
|
|
33
|
+
patchToFiberInitial(_fiber: MyReactFiberNode): void;
|
|
34
|
+
patchToFiberUnmount(_fiber: MyReactFiberNode): void;
|
|
35
|
+
dispatchState(_params: import("@my-react/react").UpdateQueue): void;
|
|
36
|
+
dispatchHook(_params: import("@my-react/react").RenderHookParams): unknown;
|
|
37
|
+
dispatchPromise(_params: {
|
|
38
|
+
fiber?: MyReactFiberNode;
|
|
39
|
+
promise?: Promise<unknown>;
|
|
40
|
+
}): MyReactElementNode;
|
|
41
|
+
dispatchSuspensePromise(_params: {
|
|
42
|
+
fiber?: MyReactFiberNode;
|
|
43
|
+
promise?: Promise<unknown>;
|
|
44
|
+
}): MyReactElementNode;
|
|
45
|
+
dispatchError(_params: {
|
|
46
|
+
fiber?: MyReactFiberNode;
|
|
47
|
+
error?: Error;
|
|
48
|
+
}): MyReactElementNode;
|
|
49
|
+
readonly rootNode: any;
|
|
50
|
+
readonly rootFiber: MyReactFiberNode;
|
|
51
|
+
isAppMounted: boolean;
|
|
52
|
+
isAppCrashed: boolean;
|
|
53
|
+
isAppUnmounted: boolean;
|
|
54
|
+
version: string;
|
|
55
|
+
id: string;
|
|
56
|
+
mode: string;
|
|
57
|
+
enableNewEntry: boolean;
|
|
58
|
+
enableConcurrentMode: boolean;
|
|
59
|
+
renderMode: string;
|
|
60
|
+
renderPackage?: string;
|
|
61
|
+
pendingCommitFiberList: import("@my-react/react-shared").ListTree<MyReactFiberNode>;
|
|
62
|
+
pendingCommitFiberPatch: import("@my-react/react-shared").PATCH_TYPE;
|
|
63
|
+
pendingChangedFiberList: import("@my-react/react-shared").ListTree<MyReactFiberNode>;
|
|
64
|
+
pendingUpdateFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
|
|
65
|
+
pendingSuspenseFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
|
|
66
|
+
performanceLogTimeLimit: number;
|
|
67
|
+
uniqueIdCount: number;
|
|
68
|
+
beforeCommit?: () => void;
|
|
69
|
+
afterCommit?: () => void;
|
|
70
|
+
beforeUpdate?: () => void;
|
|
71
|
+
afterUpdate?: () => void;
|
|
72
|
+
beforeUnmount?: () => void;
|
|
73
|
+
afterUnmount?: () => void;
|
|
74
|
+
generateCommitList(_fiber: MyReactFiberNode): void;
|
|
75
|
+
generateChangedList(_fiber: MyReactFiberNode, withCheck?: boolean): void;
|
|
76
|
+
pendingCreate(_fiber: MyReactFiberNode): void;
|
|
77
|
+
pendingUpdate(_fiber: MyReactFiberNode): void;
|
|
78
|
+
pendingAppend(_fiber: MyReactFiberNode): void;
|
|
79
|
+
pendingPosition(_fiber: MyReactFiberNode): void;
|
|
80
|
+
pendingRef(_fiber: MyReactFiberNode): void;
|
|
81
|
+
pendingUnmount(_fiber: MyReactFiberNode, _pendingUnmount: MyReactFiberNode): void;
|
|
82
|
+
pendingEffect(_fiber: MyReactFiberNode, _effect: () => void, option?: {
|
|
83
|
+
stickyToHead?: boolean;
|
|
84
|
+
stickyToFoot?: boolean;
|
|
85
|
+
}): void;
|
|
86
|
+
pendingLayoutEffect(_fiber: MyReactFiberNode, _layoutEffect: () => void, option?: {
|
|
87
|
+
stickyToHead?: boolean;
|
|
88
|
+
stickyToFoot?: boolean;
|
|
89
|
+
}): void;
|
|
90
|
+
pendingInsertionEffect(_fiber: MyReactFiberNode, _insertionEffect: () => void, option?: {
|
|
91
|
+
stickyToHead?: boolean;
|
|
92
|
+
stickyToFoot?: boolean;
|
|
93
|
+
}): void;
|
|
94
|
+
patchToFiberUpdate(_fiber: MyReactFiberNode): void;
|
|
95
|
+
processLazy(_elementType: import("@my-react/react").LazyType<Record<string, unknown>>): Promise<void>;
|
|
96
|
+
processPromise(_promise: import("@my-react/react-reconciler").PromiseWithState<unknown>): Promise<void>;
|
|
97
|
+
resolveStrict(_fiber: MyReactFiberNode): boolean;
|
|
98
|
+
resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode;
|
|
99
|
+
resolveSuspenseValue(_fiber: MyReactFiberNode): MyReactElementNode;
|
|
100
|
+
resolveSuspenseFiber(_fiber: MyReactFiberNode): MyReactFiberNode;
|
|
101
|
+
resolveErrorBoundaries(_fiber: MyReactFiberNode): MyReactFiberNode;
|
|
102
|
+
resolveContextFiber(_fiber: MyReactFiberNode, _contextObject: import("@my-react/react").ContextObjectType<{
|
|
103
|
+
$$typeof: symbol;
|
|
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>;
|
|
130
|
+
reconcileUnmount(): void;
|
|
131
|
+
shouldYield(): boolean;
|
|
132
|
+
resetYield(): void;
|
|
133
|
+
resetUpdateFlowRuntimeFiber(): void;
|
|
134
|
+
getFiberTree(_fiber: MyReactFiberNode): string;
|
|
135
|
+
readPromise(_params: Promise<unknown>): unknown;
|
|
136
|
+
readContext(_params: import("@my-react/react").ContextObjectType<{
|
|
137
|
+
$$typeof: symbol;
|
|
138
|
+
value: unknown;
|
|
139
|
+
Context: {
|
|
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
|
+
};
|
|
289
|
+
rootElement: MyReactElementNode;
|
|
290
|
+
trigger(_fiber: MyReactFiberNode, _state?: STATE_TYPE, cb?: () => void): void;
|
|
291
|
+
onFiberInitial(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
292
|
+
onceFiberInitial(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
293
|
+
callOnFiberInitial(_fiber: MyReactFiberNode): void;
|
|
294
|
+
onFiberUpdate(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
295
|
+
onceFiberUpdate(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
296
|
+
callOnFiberUpdate(_fiber: MyReactFiberNode): void;
|
|
297
|
+
onFiberChange(cb: (_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>) => void): () => boolean;
|
|
298
|
+
onceFiberChange(cb: (_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>) => void): void;
|
|
299
|
+
callOnFiberChange(_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>): void;
|
|
300
|
+
onFiberUnmount(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
301
|
+
onceFiberUnmount(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
302
|
+
callOnFiberUnmount(_fiber: MyReactFiberNode): void;
|
|
303
|
+
onFiberState(cb: (_fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
|
|
304
|
+
onceFiberState(cb: (_fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
|
|
305
|
+
callOnFiberState(_fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
|
|
306
|
+
onFiberTrigger(cb: (_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState) => void): () => boolean;
|
|
307
|
+
onceFiberTrigger(cb: (_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState) => void): void;
|
|
308
|
+
callOnFiberTrigger(_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState): void;
|
|
309
|
+
onFiberHMR(cb: (_fiber: MyReactFiberNode, _forceRefresh?: boolean) => void): () => boolean;
|
|
310
|
+
onceFiberHMR(cb: (_fiber: MyReactFiberNode, _forceRefresh?: boolean) => void): void;
|
|
311
|
+
callOnFiberHMR(_fiber: MyReactFiberNode, _forceRefresh?: boolean): void;
|
|
312
|
+
onFiberWarn(cb: (_fiber: MyReactFiberNode, ...args: any) => void): () => boolean;
|
|
313
|
+
onceFiberWarn(cb: (_fiber: MyReactFiberNode, ...args: any) => void): void;
|
|
314
|
+
callOnFiberWarn(_fiber: MyReactFiberNode, ...args: any): void;
|
|
315
|
+
onFiberError(cb: (_fiber: MyReactFiberNode, ...args: any) => void): () => boolean;
|
|
316
|
+
onceFiberError(cb: (_fiber: MyReactFiberNode, ...args: any) => void): void;
|
|
317
|
+
callOnFiberError(_fiber: MyReactFiberNode, ...args: any): void;
|
|
318
|
+
onPerformanceWarn(cb: (_fiber: MyReactFiberNode, _renderTime: number) => void): () => boolean;
|
|
319
|
+
oncePerformanceWarn(cb: (_fiber: MyReactFiberNode, _renderTime: number) => void): void;
|
|
320
|
+
callOnPerformanceWarn(_fiber: MyReactFiberNode, _renderTime: number): void;
|
|
321
|
+
onBeforeFiberRun(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
322
|
+
onceBeforeFiberRun(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
323
|
+
callOnBeforeFiberRun(_fiber: MyReactFiberNode): void;
|
|
324
|
+
onAfterFiberRun(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
325
|
+
onceAfterFiberRun(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
326
|
+
callOnAfterFiberRun(_fiber: MyReactFiberNode): void;
|
|
327
|
+
onAfterFiberDone(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
|
|
328
|
+
onceAfterFiberDone(cb: (_fiber: MyReactFiberNode) => void): void;
|
|
329
|
+
callOnAfterFiberDone(_fiber: MyReactFiberNode): void;
|
|
330
|
+
onBeforeDispatchRender(cb: (renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode) => void): () => boolean;
|
|
331
|
+
onceBeforeDispatchRender(cb: (renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode) => void): void;
|
|
332
|
+
callOnBeforeDispatchRender(renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode): void;
|
|
333
|
+
onAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
334
|
+
onceAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
335
|
+
callOnAfterDispatchRender(renderDispatch: CustomRenderDispatch): void;
|
|
336
|
+
onBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]) => void): () => boolean;
|
|
337
|
+
onceBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]) => void): void;
|
|
338
|
+
callOnBeforeDispatchUpdate(renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]): void;
|
|
339
|
+
onAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
340
|
+
onceAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
341
|
+
callOnAfterDispatchUpdate(renderDispatch: CustomRenderDispatch): void;
|
|
342
|
+
onInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
343
|
+
onceInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
|
|
344
|
+
callOnInstanceInitial(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
|
|
345
|
+
onInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
346
|
+
onceInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
|
|
347
|
+
callOnInstanceUpdate(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
|
|
348
|
+
onInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
|
|
349
|
+
onceInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
|
|
350
|
+
callOnInstanceState(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
|
|
351
|
+
onInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
352
|
+
onceInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
|
|
353
|
+
callOnInstanceUnmount(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
|
|
354
|
+
onHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
355
|
+
onceHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
356
|
+
callOnHookInitial(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
|
|
357
|
+
onHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
358
|
+
onceHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
359
|
+
callOnHookUpdate(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
|
|
360
|
+
onHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
|
|
361
|
+
onceHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
|
|
362
|
+
callOnHookUnmount(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
|
|
363
|
+
onHookState(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
|
|
364
|
+
onceHookTrigger(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
|
|
365
|
+
callOnHookState(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
|
|
366
|
+
onBeforeCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
367
|
+
onceBeforeCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
368
|
+
callOnBeforeCommitMount(renderDispatch: CustomRenderDispatch): void;
|
|
369
|
+
onAfterCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
370
|
+
onceAfterCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
371
|
+
callOnAfterCommitMount(renderDispatch: CustomRenderDispatch): void;
|
|
372
|
+
onBeforeCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
373
|
+
onceBeforeCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
374
|
+
callOnBeforeCommitUpdate(renderDispatch: CustomRenderDispatch): void;
|
|
375
|
+
onAfterCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
376
|
+
onceAfterCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
377
|
+
callOnAfterCommitUpdate(renderDispatch: CustomRenderDispatch): void;
|
|
378
|
+
onBeforeCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
379
|
+
onceBeforeCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
380
|
+
callOnBeforeCommitUnmount(renderDispatch: CustomRenderDispatch): void;
|
|
381
|
+
onAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
|
|
382
|
+
onceAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
|
|
383
|
+
callOnAfterCommitUnmount(renderDispatch: CustomRenderDispatch): void;
|
|
384
|
+
readonly isMyReactInstance: boolean;
|
|
385
|
+
_reactInternals: import("@my-react/react").RenderFiber;
|
|
386
|
+
};
|
|
14
387
|
injectIntoDevToolsWithSocketIO: (url: string, _config: any) => Promise<void>;
|
|
15
388
|
flushSync: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
|
|
16
389
|
batchedUpdates: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
|
|
@@ -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,
|
|
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,EAQrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAW,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAS7D,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,YAAa,GAAG;;kCAKA,eAAe,QAAQ,MAAM;gCAoB/B,kBAAkB,cAAc,eAAe,WAAW,GAAG,OAAO,MAAM,IAAI;kCA6DtE,GAAG;wCA0BH,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAbP,MAAM,WAAW,GAAG;;;CA2BxE,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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":"AAGA,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,6BAAuD,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,eAAe,gBAAgB,CAAC"}
|
package/dist/types/polyfill.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface LoadRemoteScriptOptions {
|
|
2
|
+
timeout?: number;
|
|
3
|
+
context?: Record<string, any>;
|
|
4
|
+
useEval?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function loadRemoteScript(url: string, options?: LoadRemoteScriptOptions): Promise<void>;
|
|
7
|
+
export declare function loadRemoteModule<T = any>(url: string, options?: LoadRemoteScriptOptions): Promise<T>;
|
|
2
8
|
//# sourceMappingURL=polyfill.d.ts.map
|