@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.
Files changed (41) hide show
  1. package/constants.js +1 -1
  2. package/dist/cjs/index.development.js +884 -1171
  3. package/dist/cjs/index.production.js +824 -1122
  4. package/dist/cjs/preload.development.js +548 -0
  5. package/dist/cjs/preload.production.js +548 -0
  6. package/dist/esm/index.mjs +1651 -1844
  7. package/dist/esm/preload.mjs +544 -0
  8. package/dist/types/api/append.d.ts.map +1 -1
  9. package/dist/types/api/create.d.ts.map +1 -1
  10. package/dist/types/api/position.d.ts.map +1 -1
  11. package/dist/types/api/ref.d.ts.map +1 -1
  12. package/dist/types/api/remove.d.ts.map +1 -1
  13. package/dist/types/api/update.d.ts.map +1 -1
  14. package/dist/types/config.d.ts.map +1 -1
  15. package/dist/types/constants.d.ts.map +1 -1
  16. package/dist/types/devtool.d.ts.map +1 -1
  17. package/dist/types/{dispatchFiber.d.ts → dispatch-fiber.d.ts} +1 -1
  18. package/dist/types/dispatch-fiber.d.ts.map +1 -0
  19. package/dist/types/{dispatchMap.d.ts → dispatch-map.d.ts} +1 -1
  20. package/dist/types/dispatch-map.d.ts.map +1 -0
  21. package/dist/types/{dispatchMount.d.ts → dispatch-mount.d.ts} +1 -1
  22. package/dist/types/dispatch-mount.d.ts.map +1 -0
  23. package/dist/types/{dispatchUpdate.d.ts → dispatch-update.d.ts} +1 -1
  24. package/dist/types/dispatch-update.d.ts.map +1 -0
  25. package/dist/types/dispatch.d.ts +35 -207
  26. package/dist/types/dispatch.d.ts.map +1 -1
  27. package/dist/types/feature.d.ts +46 -218
  28. package/dist/types/feature.d.ts.map +1 -1
  29. package/dist/types/hmr.d.ts.map +1 -1
  30. package/dist/types/index.d.ts.map +1 -1
  31. package/dist/types/polyfill.d.ts.map +1 -1
  32. package/dist/types/portal.d.ts +2 -2
  33. package/dist/types/portal.d.ts.map +1 -1
  34. package/dist/types/preload.d.ts +4 -0
  35. package/dist/types/preload.d.ts.map +1 -0
  36. package/index.d.ts +1 -1
  37. package/package.json +29 -5
  38. package/dist/types/dispatchFiber.d.ts.map +0 -1
  39. package/dist/types/dispatchMap.d.ts.map +0 -1
  40. package/dist/types/dispatchMount.d.ts.map +0 -1
  41. package/dist/types/dispatchUpdate.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { type MyReactElementNode } from "@my-react/react";
1
+ import { type MyReactElementNode } from "@my-react/react/type";
2
2
  import { MyReactFiberNode, CustomRenderDispatch } from "@my-react/react-reconciler";
3
3
  import { STATE_TYPE } from "@my-react/react-shared";
4
4
  import type { ReconcilerDispatch } from "./dispatch";
@@ -8,10 +8,10 @@ export type RenderContainer = Record<string, any> & {
8
8
  __container__: ReconcilerDispatch;
9
9
  };
10
10
  export declare const Reconciler: (_config: any) => {
11
- createPortal: (_element: MyReactElementNode, _container: RenderContainer) => import("@my-react/react").MyReactElement;
11
+ createPortal: (_element: MyReactElementNode, _container: RenderContainer) => import("@my-react/react/type").MyReactElement;
12
12
  createContainer: (_container: RenderContainer, flag: number) => RenderContainer;
13
13
  updateContainer: (_element: MyReactElementNode, _container: RenderContainer, _ignore: any, _cb: () => void) => void;
14
- injectIntoDevTools: (_config: any) => Promise<void>;
14
+ injectIntoDevTools: (_config: any) => void;
15
15
  getPublicRootInstance: (_container: RenderContainer) => {
16
16
  enableUpdate: boolean;
17
17
  enableAsyncLoad: boolean;
@@ -32,8 +32,8 @@ export declare const Reconciler: (_config: any) => {
32
32
  reconcileUpdate(_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>, sync?: boolean): void;
33
33
  patchToFiberInitial(_fiber: MyReactFiberNode): void;
34
34
  patchToFiberUnmount(_fiber: MyReactFiberNode): void;
35
- dispatchState(_params: import("@my-react/react").UpdateQueue): void;
36
- dispatchHook(_params: import("@my-react/react").RenderHookParams): unknown;
35
+ dispatchState(_params: import("@my-react/react/type").UpdateQueue): void;
36
+ dispatchHook(_params: import("@my-react/react/type").RenderHookParams): unknown;
37
37
  dispatchPromise(_params: {
38
38
  fiber?: MyReactFiberNode;
39
39
  promise?: Promise<unknown>;
@@ -54,15 +54,15 @@ export declare const Reconciler: (_config: any) => {
54
54
  version: string;
55
55
  id: string;
56
56
  mode: string;
57
- enableNewEntry: boolean;
58
- enableConcurrentMode: boolean;
57
+ enableNewEntry?: boolean;
58
+ enableConcurrentMode?: boolean;
59
59
  renderMode: string;
60
60
  renderPackage?: string;
61
- pendingCommitFiberList: import("@my-react/react-shared").ListTree<MyReactFiberNode>;
61
+ pendingCommitFiberList: import("@my-react/react-shared").ListTree<MyReactFiberNode> | null;
62
62
  pendingCommitFiberPatch: import("@my-react/react-shared").PATCH_TYPE;
63
63
  pendingUpdateFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
64
64
  pendingSuspenseFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
65
- performanceLogTimeLimit: number;
65
+ performanceLogTimeLimit?: number;
66
66
  uniqueIdCount: number;
67
67
  beforeCommit?: () => void;
68
68
  afterCommit?: () => void;
@@ -90,197 +90,25 @@ export declare const Reconciler: (_config: any) => {
90
90
  stickyToFoot?: boolean;
91
91
  }): void;
92
92
  patchToFiberUpdate(_fiber: MyReactFiberNode): void;
93
- processLazy(_elementType: import("@my-react/react").LazyType<Record<string, unknown>>): Promise<void>;
93
+ processLazy(_elementType: ReturnType<typeof import("@my-react/react/type").lazy>): Promise<void>;
94
94
  processPromise(_promise: import("@my-react/react-reconciler").PromiseWithState<unknown>): Promise<void>;
95
95
  resolveStrict(_fiber: MyReactFiberNode): boolean;
96
- resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode;
96
+ resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode | null;
97
97
  resolveSuspenseValue(_fiber: MyReactFiberNode): MyReactElementNode;
98
- resolveSuspenseFiber(_fiber: MyReactFiberNode): MyReactFiberNode;
99
- resolveErrorBoundaries(_fiber: MyReactFiberNode): MyReactFiberNode;
100
- resolveContextFiber(_fiber: MyReactFiberNode, _contextObject: import("@my-react/react").ContextObjectType<{
101
- $$typeof: symbol;
102
- value: unknown;
103
- Context: {
104
- $$typeof: symbol;
105
- displayName: string;
106
- };
107
- }, {
108
- $$typeof: symbol;
109
- Context: {
110
- $$typeof: symbol;
111
- displayName: string;
112
- };
113
- }>): MyReactFiberNode;
114
- resolveContextValue(_fiber: MyReactFiberNode, _contextObject: import("@my-react/react").ContextObjectType<{
115
- $$typeof: symbol;
116
- value: unknown;
117
- Context: {
118
- $$typeof: symbol;
119
- displayName: string;
120
- };
121
- }, {
122
- $$typeof: symbol;
123
- Context: {
124
- $$typeof: symbol;
125
- displayName: string;
126
- };
127
- }>): Record<string, unknown>;
98
+ resolveSuspenseFiber(_fiber: MyReactFiberNode): MyReactFiberNode | null;
99
+ resolveErrorBoundaries(_fiber: MyReactFiberNode): MyReactFiberNode | null;
100
+ resolveContextFiber(_fiber: MyReactFiberNode, _contextObject?: ReturnType<typeof import("@my-react/react/type").createContext> | null): MyReactFiberNode | null;
101
+ resolveContextValue(_fiber: MyReactFiberNode | null, _contextObject?: ReturnType<typeof import("@my-react/react/type").createContext> | null): Record<string, unknown> | null;
128
102
  reconcileUnmount(): void;
129
103
  shouldYield(): boolean;
130
104
  resetYield(): void;
131
105
  resetUpdateFlowRuntimeFiber(): void;
132
106
  getFiberTree(_fiber: MyReactFiberNode): string;
133
107
  readPromise(_params: Promise<unknown>): unknown;
134
- readContext(_params: import("@my-react/react").ContextObjectType<{
135
- $$typeof: symbol;
136
- value: unknown;
137
- Context: {
138
- $$typeof: symbol;
139
- displayName: string;
140
- };
141
- }, {
142
- $$typeof: symbol;
143
- Context: {
144
- $$typeof: symbol;
145
- displayName: string;
146
- };
147
- }>): unknown;
148
- runtimeMap: {
149
- effectMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
150
- layoutEffectMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
151
- insertionEffectMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
152
- unmountMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<MyReactFiberNode>>;
153
- triggerCallbackMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
154
- };
155
- runtimeFiber: Record<"scheduledFiber" | "errorCatchFiber" | "nextWorkingFiber" | "retriggerFiber", MyReactFiberNode>;
156
- dispatcher: {
157
- current: {
158
- proxy: {
159
- readContext: <T_1 = any>(Context: import("@my-react/react").ContextObjectType<{
160
- $$typeof: symbol;
161
- value: T_1;
162
- Context: {
163
- $$typeof: symbol;
164
- displayName: string;
165
- };
166
- }, {
167
- $$typeof: symbol;
168
- Context: {
169
- $$typeof: symbol;
170
- displayName: string;
171
- };
172
- }> | Promise<T_1>) => T_1;
173
- use: <T_1_1 = any>(Context: import("@my-react/react").ContextObjectType<{
174
- $$typeof: symbol;
175
- value: T_1_1;
176
- Context: {
177
- $$typeof: symbol;
178
- displayName: string;
179
- };
180
- }, {
181
- $$typeof: symbol;
182
- Context: {
183
- $$typeof: symbol;
184
- displayName: string;
185
- };
186
- }> | Promise<T_1_1>) => T_1_1;
187
- useCallback: <T_2 extends (...args: any) => any = (...args: any) => any>(callback: T_2, deps?: any[]) => T_2;
188
- useContext: <T_3 = any>(Context: import("@my-react/react").ContextObjectType<{
189
- $$typeof: symbol;
190
- value: T_3;
191
- Context: {
192
- $$typeof: symbol;
193
- displayName: string;
194
- };
195
- }, {
196
- $$typeof: symbol;
197
- Context: {
198
- $$typeof: symbol;
199
- displayName: string;
200
- };
201
- }>) => T_3;
202
- useDebugValue: (...args: any[]) => unknown;
203
- useDeferredValue: <T_4 = any>(value: T_4) => T_4;
204
- useEffect: (action: () => any, deps?: any[]) => void;
205
- useId: () => string;
206
- useImperativeHandle: (ref: any, createHandle: import("@my-react/react").Reducer, deps: any[]) => unknown;
207
- useInsertionEffect: (action: () => any, deps: any[]) => unknown;
208
- useLayoutEffect: (action: () => any, deps?: any[]) => void;
209
- useMemo: <T_5 = any>(action: () => T_5, deps?: any[]) => T_5;
210
- useReducer: (reducer: import("@my-react/react").Reducer, initialArgs: any, init?: (...args: any) => any) => unknown;
211
- useRef: <T_6 = any>(value: T_6) => {
212
- current: T_6;
213
- };
214
- useState: <T_7 = any>(initial: T_7 | (() => T_7)) => [T_7, (t?: T_7 | ((t: T_7) => T_7)) => void];
215
- useSignal: <T_8 = any>(initial: T_8 | (() => T_8)) => unknown;
216
- useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
217
- useTransition: () => [boolean, (cb: () => void) => void];
218
- useOptimistic: <S, A>(passthrough: S, reducer?: (p: S, c: A) => S) => [S, (p: A) => void];
219
- useEffectEvent: <T_9 extends Function>(cb: T_9) => unknown;
220
- };
221
- readContext: <T_1_2 = any>(Context: import("@my-react/react").ContextObjectType<{
222
- $$typeof: symbol;
223
- value: T_1_2;
224
- Context: {
225
- $$typeof: symbol;
226
- displayName: string;
227
- };
228
- }, {
229
- $$typeof: symbol;
230
- Context: {
231
- $$typeof: symbol;
232
- displayName: string;
233
- };
234
- }> | Promise<T_1_2>) => T_1_2;
235
- use: <T_1_3 = any>(Context: import("@my-react/react").ContextObjectType<{
236
- $$typeof: symbol;
237
- value: T_1_3;
238
- Context: {
239
- $$typeof: symbol;
240
- displayName: string;
241
- };
242
- }, {
243
- $$typeof: symbol;
244
- Context: {
245
- $$typeof: symbol;
246
- displayName: string;
247
- };
248
- }> | Promise<T_1_3>) => T_1_3;
249
- useCallback: <T_2_1 extends (...args: any) => any = (...args: any) => any>(callback: T_2_1, deps?: any[]) => T_2_1;
250
- useContext: <T_3_1 = any>(Context: import("@my-react/react").ContextObjectType<{
251
- $$typeof: symbol;
252
- value: T_3_1;
253
- Context: {
254
- $$typeof: symbol;
255
- displayName: string;
256
- };
257
- }, {
258
- $$typeof: symbol;
259
- Context: {
260
- $$typeof: symbol;
261
- displayName: string;
262
- };
263
- }>) => T_3_1;
264
- useDebugValue: (...args: any[]) => unknown;
265
- useDeferredValue: <T_4_1 = any>(value: T_4_1) => T_4_1;
266
- useEffect: (action: () => any, deps?: any[]) => void;
267
- useId: () => string;
268
- useImperativeHandle: (ref: any, createHandle: import("@my-react/react").Reducer, deps: any[]) => unknown;
269
- useInsertionEffect: (action: () => any, deps: any[]) => unknown;
270
- useLayoutEffect: (action: () => any, deps?: any[]) => void;
271
- useMemo: <T_5_1 = any>(action: () => T_5_1, deps?: any[]) => T_5_1;
272
- useReducer: (reducer: import("@my-react/react").Reducer, initialArgs: any, init?: (...args: any) => any) => unknown;
273
- useRef: <T_6_1 = any>(value: T_6_1) => {
274
- current: T_6_1;
275
- };
276
- 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];
277
- useSignal: <T_8_1 = any>(initial: T_8_1 | (() => T_8_1)) => unknown;
278
- useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
279
- useTransition: () => [boolean, (cb: () => void) => void];
280
- useOptimistic: <S_1, A_1>(passthrough: S_1, reducer?: (p: S_1, c: A_1) => S_1) => [S_1, (p: A_1) => void];
281
- useEffectEvent: <T_9_1 extends Function>(cb: T_9_1) => unknown;
282
- };
283
- };
108
+ readContext(_params: ReturnType<typeof import("@my-react/react/type").createContext>): unknown;
109
+ runtimeMap: import("@my-react/react-reconciler").RenderDispatch["runtimeMap"];
110
+ runtimeFiber: import("@my-react/react-reconciler").RenderDispatch["runtimeFiber"];
111
+ dispatcher: import("@my-react/react-reconciler").RenderDispatch["dispatcher"];
284
112
  rootElement: MyReactElementNode;
285
113
  trigger(_fiber: MyReactFiberNode, _state?: STATE_TYPE, cb?: () => void): void;
286
114
  onFiberInitial(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
@@ -295,9 +123,9 @@ export declare const Reconciler: (_config: any) => {
295
123
  onFiberUnmount(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
296
124
  onceFiberUnmount(cb: (_fiber: MyReactFiberNode) => void): void;
297
125
  callOnFiberUnmount(_fiber: MyReactFiberNode): void;
298
- onFiberState(cb: (_fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
299
- onceFiberState(cb: (_fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
300
- callOnFiberState(_fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
126
+ onFiberState(cb: (_fiber: MyReactFiberNode, _updater: import("@my-react/react/type").UpdateQueue) => void): () => boolean;
127
+ onceFiberState(cb: (_fiber: MyReactFiberNode, _updater: import("@my-react/react/type").UpdateQueue) => void): void;
128
+ callOnFiberState(_fiber: MyReactFiberNode, _updater: import("@my-react/react/type").UpdateQueue): void;
301
129
  onFiberTrigger(cb: (_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState) => void): () => boolean;
302
130
  onceFiberTrigger(cb: (_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState) => void): void;
303
131
  callOnFiberTrigger(_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState): void;
@@ -328,36 +156,36 @@ export declare const Reconciler: (_config: any) => {
328
156
  onAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
329
157
  onceAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): void;
330
158
  callOnAfterDispatchRender(renderDispatch: CustomRenderDispatch): void;
331
- onBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]) => void): () => boolean;
332
- onceBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]) => void): void;
333
- callOnBeforeDispatchUpdate(renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]): void;
159
+ onBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: Array<MyReactFiberNode>) => void): () => boolean;
160
+ onceBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: Array<MyReactFiberNode>) => void): void;
161
+ callOnBeforeDispatchUpdate(renderDispatch: CustomRenderDispatch, list: Array<MyReactFiberNode>): void;
334
162
  onAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
335
163
  onceAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
336
164
  callOnAfterDispatchUpdate(renderDispatch: CustomRenderDispatch): void;
337
- onInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
338
- onceInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
339
- callOnInstanceInitial(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
340
- onInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
341
- onceInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
342
- callOnInstanceUpdate(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
343
- onInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
344
- onceInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
345
- callOnInstanceState(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
346
- onInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
347
- onceInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
348
- callOnInstanceUnmount(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
165
+ onInstanceInitial(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
166
+ onceInstanceInitial(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
167
+ callOnInstanceInitial(_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode): void;
168
+ onInstanceUpdate(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
169
+ onceInstanceUpdate(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
170
+ callOnInstanceUpdate(_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode): void;
171
+ onInstanceState(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode, _updater: import("@my-react/react/type").UpdateQueue) => void): () => boolean;
172
+ onceInstanceState(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode, _updater: import("@my-react/react/type").UpdateQueue) => void): void;
173
+ callOnInstanceState(_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode, _updater: import("@my-react/react/type").UpdateQueue): void;
174
+ onInstanceUnmount(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): () => boolean;
175
+ onceInstanceUnmount(cb: (_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode) => void): void;
176
+ callOnInstanceUnmount(_instance: import("@my-react/react/type").MyReactComponent, _fiber: MyReactFiberNode): void;
349
177
  onHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
350
178
  onceHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
351
- callOnHookInitial(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
179
+ callOnHookInitial(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
352
180
  onHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
353
181
  onceHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
354
- callOnHookUpdate(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
182
+ callOnHookUpdate(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
355
183
  onHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
356
184
  onceHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
357
- callOnHookUnmount(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
358
- onHookState(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
359
- onceHookTrigger(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
360
- callOnHookState(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
185
+ callOnHookUnmount(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode): void;
186
+ onHookState(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react/type").UpdateQueue) => void): () => boolean;
187
+ onceHookTrigger(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react/type").UpdateQueue) => void): void;
188
+ callOnHookState(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react/type").UpdateQueue): void;
361
189
  onBeforeCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
362
190
  onceBeforeCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
363
191
  callOnBeforeCommitMount(renderDispatch: CustomRenderDispatch): void;
@@ -376,10 +204,10 @@ export declare const Reconciler: (_config: any) => {
376
204
  onAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
377
205
  onceAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
378
206
  callOnAfterCommitUnmount(renderDispatch: CustomRenderDispatch): void;
379
- readonly isMyReactInstance: boolean;
380
- _reactInternals: import("@my-react/react").RenderFiber;
207
+ get isMyReactInstance(): boolean;
208
+ _reactInternals?: import("@my-react/react/type").RenderFiber;
381
209
  };
382
- injectIntoDevToolsWithSocketIO: (url: string, _config: any) => Promise<void>;
210
+ injectIntoDevToolsAuto: (url: string, _config: any) => Promise<void>;
383
211
  flushSync: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
384
212
  flushSyncWork: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
385
213
  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,EAChB,oBAAoB,EASrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAW,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAU7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAOrD,MAAM,MAAM,eAAe,GA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AC;IAC5B,aAAa,EAAE,kBAAkB,CAAC;CACnC,CAAC;AAGF,eAAO,MAAM,UAAU,GAAI,SAAS,GAAG;;kCASA,eAAe,QAAQ,MAAM;gCAsB/B,kBAAkB,cAAc,eAAe,WAAW,GAAG,OAAO,MAAM,IAAI;kCA+D5E,GAAG;wCAsBG,eAAe;;;;;;;;;;;;;;;;;;;;;;;iBAJ/C,CAAC;mBAIN,CAAA;;;iBAOE,CAAC;mBACM,CAAC;;;iBAKW,CAAC;iBAGrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA7FE,CAAC;wBAA+B,CAAC;;;wBAE/B,CAAC;wBAEP,CAAC;;;wBAMW,CAAC;wBACb,CAAF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAkFg3B,CAAC;iEAAiG,CAAC;;mDAAsJ,GAAI;qDAAoF,GAAI;;oDAA6I,GAAI;sDAAqF,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA9Bx4C,MAAM,WAAW,GAAG;2DAvHxD,GAAE;+DAAF,GAAE;gEAAF,GAAE;CAoJV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hmr.d.ts","sourceRoot":"","sources":["../../src/hmr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAOrD,eAAO,MAAM,aAAa,aAAc,kBAAkB,SAYzD,CAAC"}
1
+ {"version":3,"file":"hmr.d.ts","sourceRoot":"","sources":["../../src/hmr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAOrD,eAAO,MAAM,aAAa,GAAI,UAAU,kBAAkB,SAYzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,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AE,MAAM,UAAU,CAAC;AAEhD,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../../src/polyfill.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CA4BxG;AA0TD,wBAAsB,gBAAgB,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,CAAC,CAAC,CAkB9G"}
1
+ {"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../../src/polyfill.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CA4BxG;AA4VD,wBAAsB,gBAAgB,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,CAAC,CAAC,CAkB9G"}
@@ -1,6 +1,6 @@
1
- import { type MyReactElementNode } from "@my-react/react";
1
+ import { type MyReactElementNode } from "@my-react/react/type";
2
2
  import type { RenderContainer } from "./feature";
3
3
  import type { MyReactFiberNode, CustomRenderDispatch } from "@my-react/react-reconciler";
4
- export declare const createPortal: (_element: MyReactElementNode, _container: RenderContainer) => import("@my-react/react").MyReactElement;
4
+ export declare const createPortal: (_element: MyReactElementNode, _container: RenderContainer) => import("@my-react/react/type").MyReactElement;
5
5
  export declare const nextWorkPortal: (renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode) => void;
6
6
  //# sourceMappingURL=portal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,iBAAiB,CAAC;AAIzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAyB,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEhH,eAAO,MAAM,YAAY,aAAc,kBAAkB,cAAc,eAAe,6CAIrF,CAAC;AAEF,eAAO,MAAM,cAAc,mBAAoB,oBAAoB,SAAS,gBAAgB,SAgB3F,CAAC"}
1
+ {"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,sBAAsB,CAAC;AAI9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAyB,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEhH,eAAO,MAAM,YAAY,GAAI,UAAU,kBAAkB,EAAE,YAAY,eAAe,kDAIrF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,gBAAgB,oBAAoB,EAAE,OAAO,gBAAgB,SAgB3F,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const preloadDevToolRuntimeAuto: () => Promise<void>;
2
+ export declare const preloadDevToolRuntimeSocketIO: () => Promise<void>;
3
+ export declare const preloadDevToolRuntimeWebsocket: () => Promise<void>;
4
+ //# sourceMappingURL=preload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preload.d.ts","sourceRoot":"","sources":["../../src/preload.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,qBAMrC,CAAC;AAEF,eAAO,MAAM,6BAA6B,qBAMzC,CAAC;AAEF,eAAO,MAAM,8BAA8B,qBAK1C,CAAC"}
package/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { default, HostConfig } from "react-reconciler";
1
+ export { default, HostConfig } from "react-reconciler";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "@my-react/react-reconciler-compact",
4
4
  "author": "MrWangJustToDo",
5
5
  "license": "MIT",
6
- "version": "0.0.13",
6
+ "version": "0.0.15",
7
7
  "main": "index.js",
8
8
  "types": "index.d.ts",
9
9
  "files": [
@@ -35,6 +35,11 @@
35
35
  "require": "./type.js",
36
36
  "types": "./type.d.ts"
37
37
  },
38
+ "./preload": {
39
+ "types": "./preload.d.ts",
40
+ "require": "./preload.js",
41
+ "import": "./dist/esm/preload.mjs"
42
+ },
38
43
  "./package.json": "./package.json"
39
44
  },
40
45
  "buildOptions": [
@@ -57,6 +62,7 @@
57
62
  },
58
63
  {
59
64
  "input": "./src/constants.ts",
65
+ "pkgName": "constants",
60
66
  "output": [
61
67
  {
62
68
  "dir": "./dist",
@@ -71,14 +77,32 @@
71
77
  "format": "esm"
72
78
  }
73
79
  ]
80
+ },
81
+ {
82
+ "input": "./src/preload.ts",
83
+ "pkgName": "preload",
84
+ "output": [
85
+ {
86
+ "dir": "./dist",
87
+ "entryFileNames": "cjs/preload.js",
88
+ "format": "cjs",
89
+ "type": true,
90
+ "multiple": true
91
+ },
92
+ {
93
+ "dir": "./dist",
94
+ "entryFileNames": "esm/preload.mjs",
95
+ "format": "esm"
96
+ }
97
+ ]
74
98
  }
75
99
  ],
76
100
  "devDependencies": {
77
- "@my-react/react-reconciler": "^0.3.22",
78
- "@my-react/react-shared": "^0.3.22",
79
- "@types/react-reconciler": "^0.32.0"
101
+ "@my-react/react-reconciler": "^0.3.24",
102
+ "@my-react/react-shared": "^0.3.24",
103
+ "@types/react-reconciler": "^0.32.3"
80
104
  },
81
105
  "peerDependencies": {
82
- "@my-react/react": ">=0.3.22"
106
+ "@my-react/react": ">=0.3.24"
83
107
  }
84
108
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"dispatchFiber.d.ts","sourceRoot":"","sources":["../../src/dispatchFiber.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,eAAO,MAAM,uBAAuB,mBAAoB,kBAAkB,SAAS,gBAAgB,SAqBlG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dispatchMap.d.ts","sourceRoot":"","sources":["../../src/dispatchMap.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAA2C,MAAM,4BAA4B,CAAC;AAE5G,eAAO,MAAM,UAAU,aAAc,kBAAkB,SAAS,gBAAgB,UAAU,GAAG,SAkC5F,CAAC;AAEF,eAAO,MAAM,UAAU,aAAc,kBAAkB,SAAS,gBAAgB,SAI/E,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAC1B,gBAAgB,GAAG,IAAI,iBACf,gBAAgB,KAAK,gBAAgB,GAAG,IAAI,KAC1D,gBAAgB,GAAG,IAYrB,CAAC;AAEF,eAAO,MAAM,2BAA2B,cAAe,kBAAkB,UAAU,gBAAgB,qBAUlG,CAAC;AA4BF,eAAO,MAAM,uCAAuC,UAAW,gBAAgB,GAAG,IAAI,eAAe,gBAAgB,GAAG,IAAI,KAAG,gBAAgB,GAAG,IAUjJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dispatchMount.d.ts","sourceRoot":"","sources":["../../src/dispatchMount.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMnE,eAAO,MAAM,uBAAuB,cAAe,kBAAkB,UAAU,gBAAgB,UAAU,GAAG,SAgG3G,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dispatchUpdate.d.ts","sourceRoot":"","sources":["../../src/dispatchUpdate.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAMvD,eAAO,MAAM,wBAAwB,cAAe,kBAAkB,SAAS,SAAS,gBAAgB,CAAC,UAAU,GAAG,SAAS,OAAO,SAgJrI,CAAC"}