@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.
Files changed (34) hide show
  1. package/dist/cjs/index.development.js +922 -730
  2. package/dist/cjs/index.production.js +755 -660
  3. package/dist/esm/index.mjs +1676 -1394
  4. package/dist/types/api/append.d.ts.map +1 -1
  5. package/dist/types/api/create.d.ts.map +1 -1
  6. package/dist/types/api/position.d.ts.map +1 -1
  7. package/dist/types/api/ref.d.ts.map +1 -1
  8. package/dist/types/api/remove.d.ts.map +1 -1
  9. package/dist/types/api/update.d.ts.map +1 -1
  10. package/dist/types/config.d.ts +5 -0
  11. package/dist/types/config.d.ts.map +1 -0
  12. package/dist/types/constants.d.ts.map +1 -1
  13. package/dist/types/devtool.d.ts.map +1 -1
  14. package/dist/types/{dispatchFiber.d.ts → dispatch-fiber.d.ts} +1 -1
  15. package/dist/types/dispatch-fiber.d.ts.map +1 -0
  16. package/dist/types/{dispatchMap.d.ts → dispatch-map.d.ts} +1 -1
  17. package/dist/types/dispatch-map.d.ts.map +1 -0
  18. package/dist/types/{dispatchMount.d.ts → dispatch-mount.d.ts} +1 -1
  19. package/dist/types/dispatch-mount.d.ts.map +1 -0
  20. package/dist/types/{dispatchUpdate.d.ts → dispatch-update.d.ts} +1 -1
  21. package/dist/types/dispatch-update.d.ts.map +1 -0
  22. package/dist/types/dispatch.d.ts +34 -211
  23. package/dist/types/dispatch.d.ts.map +1 -1
  24. package/dist/types/feature.d.ts +35 -211
  25. package/dist/types/feature.d.ts.map +1 -1
  26. package/dist/types/hmr.d.ts.map +1 -1
  27. package/dist/types/index.d.ts +1 -0
  28. package/dist/types/index.d.ts.map +1 -1
  29. package/dist/types/portal.d.ts.map +1 -1
  30. package/package.json +5 -5
  31. package/dist/types/dispatchFiber.d.ts.map +0 -1
  32. package/dist/types/dispatchMap.d.ts.map +0 -1
  33. package/dist/types/dispatchMount.d.ts.map +0 -1
  34. package/dist/types/dispatchUpdate.d.ts.map +0 -1
@@ -1 +1 @@
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
+ {"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,GAAI,WAAW,kBAAkB,EAAE,QAAQ,gBAAgB,EAAE,SAAS,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,SA0C3F,CAAC"}
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,GAAI,WAAW,kBAAkB,EAAE,QAAQ,gBAAgB,EAAE,SAAS,GAAG,SA0C3F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../src/api/position.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AA6G1F,eAAO,MAAM,QAAQ,cAAe,kBAAkB,UAAU,gBAAgB,WAAW,GAAG,SAgB7F,CAAC"}
1
+ {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../src/api/position.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AA6G1F,eAAO,MAAM,QAAQ,GAAI,WAAW,kBAAkB,EAAE,QAAQ,gBAAgB,EAAE,SAAS,GAAG,SAgB7F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ref.d.ts","sourceRoot":"","sources":["../../../src/api/ref.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,MAAM,WAAY,gBAAgB,UAAU,GAAG,SAwE3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,WAAY,gBAAgB,SAoBhD,CAAC"}
1
+ {"version":3,"file":"ref.d.ts","sourceRoot":"","sources":["../../../src/api/ref.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,QAAQ,gBAAgB,EAAE,QAAQ,GAAG,SAwE3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,QAAQ,gBAAgB,SAoBhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../src/api/remove.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AAE1F,eAAO,MAAM,MAAM,cAAe,kBAAkB,UAAU,gBAAgB,WAAW,GAAG,SAyB3F,CAAC"}
1
+ {"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../src/api/remove.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AAE1F,eAAO,MAAM,MAAM,GAAI,WAAW,kBAAkB,EAAE,QAAQ,gBAAgB,EAAE,SAAS,GAAG,SAyB3F,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,SAwC3F,CAAC"}
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,GAAI,WAAW,kBAAkB,EAAE,QAAQ,gBAAgB,EAAE,SAAS,GAAG,SAwC3F,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const enableKnownConfigLog: {
2
+ current: boolean;
3
+ };
4
+ export declare const knownConfig: (config: any) => void;
5
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;CAAmB,CAAC;AA0BrD,eAAO,MAAM,WAAW,GAAI,QAAQ,GAAG,SAMtC,CAAC"}
@@ -1 +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"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,UAAU,IAAI,CAAC;AAG5B,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"devtool.d.ts","sourceRoot":"","sources":["../../src/devtool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,eAAO,MAAM,cAAc,2BAA2B,CAAC;AAEvD,eAAO,MAAM,cAAc,uCAAuC,CAAC;AAEnE,eAAO,MAAM,iBAAiB,aAAc,oBAAoB,SAU/D,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,oBAAoB,SAY7D,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAAc,oBAAoB,SAM/D,CAAC"}
1
+ {"version":3,"file":"devtool.d.ts","sourceRoot":"","sources":["../../src/devtool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,eAAO,MAAM,cAAc,2BAA2B,CAAC;AAEvD,eAAO,MAAM,cAAc,uCAAuC,CAAC;AAEnE,eAAO,MAAM,iBAAiB,GAAI,UAAU,oBAAoB,SAU/D,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,oBAAoB,SAY7D,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,UAAU,oBAAoB,SAM/D,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { ReconcilerDispatch } from "./dispatch";
2
2
  import type { MyReactFiberNode } from "@my-react/react-reconciler";
3
3
  export declare const ReconcilerDispatchFiber: (renderDispatch: ReconcilerDispatch, fiber: MyReactFiberNode) => void;
4
- //# sourceMappingURL=dispatchFiber.d.ts.map
4
+ //# sourceMappingURL=dispatch-fiber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispatch-fiber.d.ts","sourceRoot":"","sources":["../../src/dispatch-fiber.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,GAAI,gBAAgB,kBAAkB,EAAE,OAAO,gBAAgB,SAqBlG,CAAC"}
@@ -5,4 +5,4 @@ export declare const unmountMap: (dispatch: ReconcilerDispatch, fiber: MyReactFi
5
5
  export declare const getFiberWithNativeNode: (fiber: MyReactFiberNode | null, transform: (f: MyReactFiberNode) => MyReactFiberNode | null) => MyReactFiberNode | null;
6
6
  export declare const getValidParentFiberWithNode: (_dispatch: ReconcilerDispatch, _fiber: MyReactFiberNode) => MyReactFiberNode;
7
7
  export declare const getInsertBeforeNodeFromSiblingAndParent: (fiber: MyReactFiberNode | null, parentFiber: MyReactFiberNode | null) => MyReactFiberNode | null;
8
- //# sourceMappingURL=dispatchMap.d.ts.map
8
+ //# sourceMappingURL=dispatch-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispatch-map.d.ts","sourceRoot":"","sources":["../../src/dispatch-map.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,GAAI,UAAU,kBAAkB,EAAE,OAAO,gBAAgB,EAAE,QAAQ,GAAG,SAkC5F,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,UAAU,kBAAkB,EAAE,OAAO,gBAAgB,SAI/E,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,OAAO,gBAAgB,GAAG,IAAI,EAC9B,WAAW,CAAC,CAAC,EAAE,gBAAgB,KAAK,gBAAgB,GAAG,IAAI,KAC1D,gBAAgB,GAAG,IAYrB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,WAAW,kBAAkB,EAAE,QAAQ,gBAAgB,qBAUlG,CAAC;AA4BF,eAAO,MAAM,uCAAuC,GAAI,OAAO,gBAAgB,GAAG,IAAI,EAAE,aAAa,gBAAgB,GAAG,IAAI,KAAG,gBAAgB,GAAG,IAUjJ,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { ReconcilerDispatch } from "./dispatch";
2
2
  import type { MyReactFiberNode } from "@my-react/react-reconciler";
3
3
  export declare const ReconcilerDispatchMount: (_dispatch: ReconcilerDispatch, _fiber: MyReactFiberNode, config: any) => void;
4
- //# sourceMappingURL=dispatchMount.d.ts.map
4
+ //# sourceMappingURL=dispatch-mount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispatch-mount.d.ts","sourceRoot":"","sources":["../../src/dispatch-mount.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,GAAI,WAAW,kBAAkB,EAAE,QAAQ,gBAAgB,EAAE,QAAQ,GAAG,SAgG3G,CAAC"}
@@ -2,4 +2,4 @@ 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
4
  export declare const ReconcilerDispatchUpdate: (_dispatch: ReconcilerDispatch, _list: ListTree<MyReactFiberNode>, config: any, sync?: boolean) => void;
5
- //# sourceMappingURL=dispatchUpdate.d.ts.map
5
+ //# sourceMappingURL=dispatch-update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispatch-update.d.ts","sourceRoot":"","sources":["../../src/dispatch-update.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,GAAI,WAAW,kBAAkB,EAAE,OAAO,QAAQ,CAAC,gBAAgB,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO,OAAO,SAgJrI,CAAC"}
@@ -44,16 +44,15 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
44
44
  version: string;
45
45
  id: string;
46
46
  mode: string;
47
- enableNewEntry: boolean;
48
- enableConcurrentMode: boolean;
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
- pendingChangedFiberList: ListTree<MyReactFiberNode>;
54
53
  pendingUpdateFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
55
54
  pendingSuspenseFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
56
- performanceLogTimeLimit: number;
55
+ performanceLogTimeLimit?: number;
57
56
  uniqueIdCount: number;
58
57
  beforeCommit?: () => void;
59
58
  afterCommit?: () => void;
@@ -62,7 +61,6 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
62
61
  beforeUnmount?: () => void;
63
62
  afterUnmount?: () => void;
64
63
  generateCommitList(_fiber: MyReactFiberNode): void;
65
- generateChangedList(_fiber: MyReactFiberNode, withCheck?: boolean): void;
66
64
  pendingCreate(_fiber: MyReactFiberNode): void;
67
65
  pendingUpdate(_fiber: MyReactFiberNode): void;
68
66
  pendingAppend(_fiber: MyReactFiberNode): void;
@@ -82,200 +80,25 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
82
80
  stickyToFoot?: boolean;
83
81
  }): void;
84
82
  patchToFiberUpdate(_fiber: MyReactFiberNode): void;
85
- processLazy(_elementType: import("@my-react/react").LazyType<Record<string, unknown>>): Promise<void>;
83
+ processLazy(_elementType: ReturnType<typeof import("@my-react/react").lazy>): Promise<void>;
86
84
  processPromise(_promise: import("@my-react/react-reconciler").PromiseWithState<unknown>): Promise<void>;
87
85
  resolveStrict(_fiber: MyReactFiberNode): boolean;
88
- resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode;
86
+ resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode | null;
89
87
  resolveSuspenseValue(_fiber: MyReactFiberNode): MyReactElementNode;
90
- resolveSuspenseFiber(_fiber: MyReactFiberNode): MyReactFiberNode;
91
- resolveErrorBoundaries(_fiber: MyReactFiberNode): MyReactFiberNode;
92
- resolveContextFiber(_fiber: MyReactFiberNode, _contextObject: import("@my-react/react").ContextObjectType<{
93
- $$typeof: symbol;
94
- value: unknown;
95
- Context: {
96
- $$typeof: symbol;
97
- displayName: string;
98
- };
99
- }, {
100
- $$typeof: symbol;
101
- Context: {
102
- $$typeof: symbol;
103
- displayName: string;
104
- };
105
- }>): MyReactFiberNode;
106
- resolveContextValue(_fiber: MyReactFiberNode, _contextObject: import("@my-react/react").ContextObjectType<{
107
- $$typeof: symbol;
108
- value: unknown;
109
- Context: {
110
- $$typeof: symbol;
111
- displayName: string;
112
- };
113
- }, {
114
- $$typeof: symbol;
115
- Context: {
116
- $$typeof: symbol;
117
- displayName: string;
118
- };
119
- }>): 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").createContext> | null): MyReactFiberNode | null;
91
+ resolveContextValue(_fiber: MyReactFiberNode | null, _contextObject?: ReturnType<typeof import("@my-react/react").createContext> | null): Record<string, unknown> | null;
120
92
  reconcileUnmount(): void;
121
93
  shouldYield(): boolean;
122
94
  resetYield(): void;
123
95
  resetUpdateFlowRuntimeFiber(): void;
124
96
  getFiberTree(_fiber: MyReactFiberNode): string;
125
97
  readPromise(_params: Promise<unknown>): unknown;
126
- readContext(_params: import("@my-react/react").ContextObjectType<{
127
- $$typeof: symbol;
128
- value: unknown;
129
- Context: {
130
- $$typeof: symbol;
131
- displayName: string;
132
- };
133
- }, {
134
- $$typeof: symbol;
135
- Context: {
136
- $$typeof: symbol;
137
- displayName: string;
138
- };
139
- }>): unknown;
140
- runtimeMap: {
141
- effectMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
142
- layoutEffectMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
143
- insertionEffectMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
144
- unmountMap: WeakMap<MyReactFiberNode, ListTree<MyReactFiberNode>>;
145
- eventMap: WeakMap<MyReactFiberNode, Record<string, ((...args: any[]) => void) & {
146
- cb?: any;
147
- }>>;
148
- triggerCallbackMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
149
- };
150
- runtimeFiber: Record<"scheduledFiber" | "errorCatchFiber" | "nextWorkingFiber" | "retriggerFiber", MyReactFiberNode>;
151
- dispatcher: {
152
- current: {
153
- proxy: {
154
- readContext: <T_1 = any>(Context: import("@my-react/react").ContextObjectType<{
155
- $$typeof: symbol;
156
- value: T_1;
157
- Context: {
158
- $$typeof: symbol;
159
- displayName: string;
160
- };
161
- }, {
162
- $$typeof: symbol;
163
- Context: {
164
- $$typeof: symbol;
165
- displayName: string;
166
- };
167
- }> | Promise<T_1>) => T_1;
168
- use: <T_1_1 = any>(Context: import("@my-react/react").ContextObjectType<{
169
- $$typeof: symbol;
170
- value: T_1_1;
171
- Context: {
172
- $$typeof: symbol;
173
- displayName: string;
174
- };
175
- }, {
176
- $$typeof: symbol;
177
- Context: {
178
- $$typeof: symbol;
179
- displayName: string;
180
- };
181
- }> | Promise<T_1_1>) => T_1_1;
182
- useCallback: <T_2 extends (...args: any) => any = (...args: any) => any>(callback: T_2, deps?: any[]) => T_2;
183
- useContext: <T_3 = any>(Context: import("@my-react/react").ContextObjectType<{
184
- $$typeof: symbol;
185
- value: T_3;
186
- Context: {
187
- $$typeof: symbol;
188
- displayName: string;
189
- };
190
- }, {
191
- $$typeof: symbol;
192
- Context: {
193
- $$typeof: symbol;
194
- displayName: string;
195
- };
196
- }>) => T_3;
197
- useDebugValue: (...args: any[]) => unknown;
198
- useDeferredValue: <T_4 = any>(value: T_4) => T_4;
199
- useEffect: (action: () => any, deps?: any[]) => void;
200
- useId: () => string;
201
- useImperativeHandle: (ref: any, createHandle: import("@my-react/react").Reducer, deps: any[]) => unknown;
202
- useInsertionEffect: (action: () => any, deps: any[]) => unknown;
203
- useLayoutEffect: (action: () => any, deps?: any[]) => void;
204
- useMemo: <T_5 = any>(action: () => T_5, deps?: any[]) => T_5;
205
- useReducer: (reducer: import("@my-react/react").Reducer, initialArgs: any, init?: (...args: any) => any) => unknown;
206
- useRef: <T_6 = any>(value: T_6) => {
207
- current: T_6;
208
- };
209
- useState: <T_7 = any>(initial: T_7 | (() => T_7)) => [T_7, (t?: T_7 | ((t: T_7) => T_7)) => void];
210
- useSignal: <T_8 = any>(initial: T_8 | (() => T_8)) => unknown;
211
- useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
212
- useTransition: () => [boolean, (cb: () => void) => void];
213
- useOptimistic: <S, A>(passthrough: S, reducer?: (p: S, c: A) => S) => [S, (p: A) => void];
214
- useEffectEvent: <T_9 extends Function>(cb: T_9) => unknown;
215
- };
216
- readContext: <T_1_2 = any>(Context: import("@my-react/react").ContextObjectType<{
217
- $$typeof: symbol;
218
- value: T_1_2;
219
- Context: {
220
- $$typeof: symbol;
221
- displayName: string;
222
- };
223
- }, {
224
- $$typeof: symbol;
225
- Context: {
226
- $$typeof: symbol;
227
- displayName: string;
228
- };
229
- }> | Promise<T_1_2>) => T_1_2;
230
- use: <T_1_3 = any>(Context: import("@my-react/react").ContextObjectType<{
231
- $$typeof: symbol;
232
- value: T_1_3;
233
- Context: {
234
- $$typeof: symbol;
235
- displayName: string;
236
- };
237
- }, {
238
- $$typeof: symbol;
239
- Context: {
240
- $$typeof: symbol;
241
- displayName: string;
242
- };
243
- }> | Promise<T_1_3>) => T_1_3;
244
- useCallback: <T_2_1 extends (...args: any) => any = (...args: any) => any>(callback: T_2_1, deps?: any[]) => T_2_1;
245
- useContext: <T_3_1 = any>(Context: import("@my-react/react").ContextObjectType<{
246
- $$typeof: symbol;
247
- value: T_3_1;
248
- Context: {
249
- $$typeof: symbol;
250
- displayName: string;
251
- };
252
- }, {
253
- $$typeof: symbol;
254
- Context: {
255
- $$typeof: symbol;
256
- displayName: string;
257
- };
258
- }>) => T_3_1;
259
- useDebugValue: (...args: any[]) => unknown;
260
- useDeferredValue: <T_4_1 = any>(value: T_4_1) => T_4_1;
261
- useEffect: (action: () => any, deps?: any[]) => void;
262
- useId: () => string;
263
- useImperativeHandle: (ref: any, createHandle: import("@my-react/react").Reducer, deps: any[]) => unknown;
264
- useInsertionEffect: (action: () => any, deps: any[]) => unknown;
265
- useLayoutEffect: (action: () => any, deps?: any[]) => void;
266
- useMemo: <T_5_1 = any>(action: () => T_5_1, deps?: any[]) => T_5_1;
267
- useReducer: (reducer: import("@my-react/react").Reducer, initialArgs: any, init?: (...args: any) => any) => unknown;
268
- useRef: <T_6_1 = any>(value: T_6_1) => {
269
- current: T_6_1;
270
- };
271
- 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];
272
- useSignal: <T_8_1 = any>(initial: T_8_1 | (() => T_8_1)) => unknown;
273
- useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
274
- useTransition: () => [boolean, (cb: () => void) => void];
275
- useOptimistic: <S_1, A_1>(passthrough: S_1, reducer?: (p: S_1, c: A_1) => S_1) => [S_1, (p: A_1) => void];
276
- useEffectEvent: <T_9_1 extends Function>(cb: T_9_1) => unknown;
277
- };
278
- };
98
+ readContext(_params: ReturnType<typeof import("@my-react/react").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"];
279
102
  rootElement: MyReactElementNode;
280
103
  trigger(_fiber: MyReactFiberNode, _state?: import("@my-react/react-shared").STATE_TYPE, cb?: () => void): void;
281
104
  onFiberInitial(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
@@ -323,33 +146,33 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
323
146
  onAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
324
147
  onceAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): void;
325
148
  callOnAfterDispatchRender(renderDispatch: CustomRenderDispatch): void;
326
- onBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]) => void): () => boolean;
327
- onceBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]) => void): void;
328
- callOnBeforeDispatchUpdate(renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]): void;
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;
329
152
  onAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
330
153
  onceAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
331
154
  callOnAfterDispatchUpdate(renderDispatch: CustomRenderDispatch): void;
332
- onInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
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;
335
- onInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
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;
338
- onInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): () => boolean;
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;
341
- onInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
342
- onceInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
343
- callOnInstanceUnmount(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
155
+ onInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
156
+ onceInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
157
+ callOnInstanceInitial(_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode): void;
158
+ onInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
159
+ onceInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
160
+ callOnInstanceUpdate(_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode): void;
161
+ onInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): () => boolean;
162
+ onceInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): void;
163
+ callOnInstanceState(_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode, _updater: UpdateQueue): void;
164
+ onInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
165
+ onceInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
166
+ callOnInstanceUnmount(_instance: import("@my-react/react").MyReactComponent, _fiber: MyReactFiberNode): void;
344
167
  onHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
345
168
  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;
169
+ callOnHookInitial(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
347
170
  onHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
348
171
  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;
172
+ callOnHookUpdate(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
350
173
  onHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
351
174
  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;
175
+ callOnHookUnmount(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
353
176
  onHookState(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): () => boolean;
354
177
  onceHookTrigger(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: UpdateQueue) => void): void;
355
178
  callOnHookState(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: UpdateQueue): void;
@@ -371,8 +194,8 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
371
194
  onAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
372
195
  onceAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
373
196
  callOnAfterCommitUnmount(renderDispatch: CustomRenderDispatch): void;
374
- readonly isMyReactInstance: boolean;
375
- _reactInternals: import("@my-react/react").RenderFiber;
197
+ get isMyReactInstance(): boolean;
198
+ _reactInternals?: import("@my-react/react").RenderFiber;
376
199
  };
377
200
  export type ReconcilerDispatch = ReturnType<typeof createDispatch>;
378
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,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,gB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