@my-react/react-reconciler-compact 0.0.11 → 0.0.13

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.
@@ -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":"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,SA6C3F,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,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,SAoC3F,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,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,SAkC3F,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,cAAe,kBAAkB,UAAU,gBAAgB,WAAW,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,WAAY,GAAG,SAMtC,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"}
@@ -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;
@@ -49,7 +50,6 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
49
50
  renderPackage?: string;
50
51
  pendingCommitFiberList: ListTree<MyReactFiberNode>;
51
52
  pendingCommitFiberPatch: import("@my-react/react-shared").PATCH_TYPE;
52
- pendingChangedFiberList: ListTree<MyReactFiberNode>;
53
53
  pendingUpdateFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
54
54
  pendingSuspenseFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
55
55
  performanceLogTimeLimit: number;
@@ -61,7 +61,6 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
61
61
  beforeUnmount?: () => void;
62
62
  afterUnmount?: () => void;
63
63
  generateCommitList(_fiber: MyReactFiberNode): void;
64
- generateChangedList(_fiber: MyReactFiberNode, withCheck?: boolean): void;
65
64
  pendingCreate(_fiber: MyReactFiberNode): void;
66
65
  pendingUpdate(_fiber: MyReactFiberNode): void;
67
66
  pendingAppend(_fiber: MyReactFiberNode): void;
@@ -141,9 +140,6 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
141
140
  layoutEffectMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
142
141
  insertionEffectMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
143
142
  unmountMap: WeakMap<MyReactFiberNode, ListTree<MyReactFiberNode>>;
144
- eventMap: WeakMap<MyReactFiberNode, Record<string, ((...args: any[]) => void) & {
145
- cb?: any;
146
- }>>;
147
143
  triggerCallbackMap: WeakMap<MyReactFiberNode, ListTree<() => void>>;
148
144
  };
149
145
  runtimeFiber: Record<"scheduledFiber" | "errorCatchFiber" | "nextWorkingFiber" | "retriggerFiber", MyReactFiberNode>;
@@ -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,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
+ {"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,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,8 +12,376 @@ 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
+ pendingUpdateFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
64
+ pendingSuspenseFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
65
+ performanceLogTimeLimit: number;
66
+ uniqueIdCount: number;
67
+ beforeCommit?: () => void;
68
+ afterCommit?: () => void;
69
+ beforeUpdate?: () => void;
70
+ afterUpdate?: () => void;
71
+ beforeUnmount?: () => void;
72
+ afterUnmount?: () => void;
73
+ generateCommitList(_fiber: MyReactFiberNode): void;
74
+ pendingCreate(_fiber: MyReactFiberNode): void;
75
+ pendingUpdate(_fiber: MyReactFiberNode): void;
76
+ pendingAppend(_fiber: MyReactFiberNode): void;
77
+ pendingPosition(_fiber: MyReactFiberNode): void;
78
+ pendingRef(_fiber: MyReactFiberNode): void;
79
+ pendingUnmount(_fiber: MyReactFiberNode, _pendingUnmount: MyReactFiberNode): void;
80
+ pendingEffect(_fiber: MyReactFiberNode, _effect: () => void, option?: {
81
+ stickyToHead?: boolean;
82
+ stickyToFoot?: boolean;
83
+ }): void;
84
+ pendingLayoutEffect(_fiber: MyReactFiberNode, _layoutEffect: () => void, option?: {
85
+ stickyToHead?: boolean;
86
+ stickyToFoot?: boolean;
87
+ }): void;
88
+ pendingInsertionEffect(_fiber: MyReactFiberNode, _insertionEffect: () => void, option?: {
89
+ stickyToHead?: boolean;
90
+ stickyToFoot?: boolean;
91
+ }): void;
92
+ patchToFiberUpdate(_fiber: MyReactFiberNode): void;
93
+ processLazy(_elementType: import("@my-react/react").LazyType<Record<string, unknown>>): Promise<void>;
94
+ processPromise(_promise: import("@my-react/react-reconciler").PromiseWithState<unknown>): Promise<void>;
95
+ resolveStrict(_fiber: MyReactFiberNode): boolean;
96
+ resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode;
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>;
128
+ reconcileUnmount(): void;
129
+ shouldYield(): boolean;
130
+ resetYield(): void;
131
+ resetUpdateFlowRuntimeFiber(): void;
132
+ getFiberTree(_fiber: MyReactFiberNode): string;
133
+ 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
+ };
284
+ rootElement: MyReactElementNode;
285
+ trigger(_fiber: MyReactFiberNode, _state?: STATE_TYPE, cb?: () => void): void;
286
+ onFiberInitial(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
287
+ onceFiberInitial(cb: (_fiber: MyReactFiberNode) => void): void;
288
+ callOnFiberInitial(_fiber: MyReactFiberNode): void;
289
+ onFiberUpdate(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
290
+ onceFiberUpdate(cb: (_fiber: MyReactFiberNode) => void): void;
291
+ callOnFiberUpdate(_fiber: MyReactFiberNode): void;
292
+ onFiberChange(cb: (_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>) => void): () => boolean;
293
+ onceFiberChange(cb: (_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>) => void): void;
294
+ callOnFiberChange(_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>): void;
295
+ onFiberUnmount(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
296
+ onceFiberUnmount(cb: (_fiber: MyReactFiberNode) => void): void;
297
+ 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;
301
+ onFiberTrigger(cb: (_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState) => void): () => boolean;
302
+ onceFiberTrigger(cb: (_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState) => void): void;
303
+ callOnFiberTrigger(_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState): void;
304
+ onFiberHMR(cb: (_fiber: MyReactFiberNode, _forceRefresh?: boolean) => void): () => boolean;
305
+ onceFiberHMR(cb: (_fiber: MyReactFiberNode, _forceRefresh?: boolean) => void): void;
306
+ callOnFiberHMR(_fiber: MyReactFiberNode, _forceRefresh?: boolean): void;
307
+ onFiberWarn(cb: (_fiber: MyReactFiberNode, ...args: any) => void): () => boolean;
308
+ onceFiberWarn(cb: (_fiber: MyReactFiberNode, ...args: any) => void): void;
309
+ callOnFiberWarn(_fiber: MyReactFiberNode, ...args: any): void;
310
+ onFiberError(cb: (_fiber: MyReactFiberNode, ...args: any) => void): () => boolean;
311
+ onceFiberError(cb: (_fiber: MyReactFiberNode, ...args: any) => void): void;
312
+ callOnFiberError(_fiber: MyReactFiberNode, ...args: any): void;
313
+ onPerformanceWarn(cb: (_fiber: MyReactFiberNode, _renderTime: number) => void): () => boolean;
314
+ oncePerformanceWarn(cb: (_fiber: MyReactFiberNode, _renderTime: number) => void): void;
315
+ callOnPerformanceWarn(_fiber: MyReactFiberNode, _renderTime: number): void;
316
+ onBeforeFiberRun(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
317
+ onceBeforeFiberRun(cb: (_fiber: MyReactFiberNode) => void): void;
318
+ callOnBeforeFiberRun(_fiber: MyReactFiberNode): void;
319
+ onAfterFiberRun(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
320
+ onceAfterFiberRun(cb: (_fiber: MyReactFiberNode) => void): void;
321
+ callOnAfterFiberRun(_fiber: MyReactFiberNode): void;
322
+ onAfterFiberDone(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
323
+ onceAfterFiberDone(cb: (_fiber: MyReactFiberNode) => void): void;
324
+ callOnAfterFiberDone(_fiber: MyReactFiberNode): void;
325
+ onBeforeDispatchRender(cb: (renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode) => void): () => boolean;
326
+ onceBeforeDispatchRender(cb: (renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode) => void): void;
327
+ callOnBeforeDispatchRender(renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode): void;
328
+ onAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
329
+ onceAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): void;
330
+ 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;
334
+ onAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
335
+ onceAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
336
+ 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;
349
+ onHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
350
+ 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;
352
+ onHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
353
+ 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;
355
+ onHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
356
+ 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;
361
+ onBeforeCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
362
+ onceBeforeCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
363
+ callOnBeforeCommitMount(renderDispatch: CustomRenderDispatch): void;
364
+ onAfterCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
365
+ onceAfterCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
366
+ callOnAfterCommitMount(renderDispatch: CustomRenderDispatch): void;
367
+ onBeforeCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
368
+ onceBeforeCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
369
+ callOnBeforeCommitUpdate(renderDispatch: CustomRenderDispatch): void;
370
+ onAfterCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
371
+ onceAfterCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
372
+ callOnAfterCommitUpdate(renderDispatch: CustomRenderDispatch): void;
373
+ onBeforeCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
374
+ onceBeforeCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
375
+ callOnBeforeCommitUnmount(renderDispatch: CustomRenderDispatch): void;
376
+ onAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
377
+ onceAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
378
+ callOnAfterCommitUnmount(renderDispatch: CustomRenderDispatch): void;
379
+ readonly isMyReactInstance: boolean;
380
+ _reactInternals: import("@my-react/react").RenderFiber;
381
+ };
14
382
  injectIntoDevToolsWithSocketIO: (url: string, _config: any) => Promise<void>;
15
383
  flushSync: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
384
+ flushSyncWork: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
16
385
  batchedUpdates: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
17
386
  };
18
387
  //# sourceMappingURL=feature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../src/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACtG,OAAO,EACL,gBAAgB,EASjB,MAAM,4BAA4B,CAAC;AAUpC,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;0CAaK,MAAM,WAAW,GAAG;;;CAsBxE,CAAC"}
1
+ {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../src/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACtG,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EASrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAW,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAU7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAOrD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,aAAa,EAAE,kBAAkB,CAAC;CACnC,CAAC;AAGF,eAAO,MAAM,UAAU,YAAa,GAAG;;kCASA,eAAe,QAAQ,MAAM;gCAsB/B,kBAAkB,cAAc,eAAe,WAAW,GAAG,OAAO,MAAM,IAAI;kCA6DtE,GAAG;wCA0BH,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAbP,MAAM,WAAW,GAAG;;;;CA4BxE,CAAC"}
@@ -10,4 +10,6 @@ export interface FiberNode<T = Record<string, any>> extends MyReactFiberNode {
10
10
  sibling: FiberNode | null;
11
11
  alternate?: FiberNode | null;
12
12
  }
13
+ export { enableKnownConfigLog } from "./config";
14
+ export default createReconciler;
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,oBAAoB,MAAM,kBAAkB,CAAC;AAEzD,cAAc,4BAA4B,CAAC;AAE3C,eAAO,MAAM,OAAO,QAAc,CAAC;AAEnC,eAAO,MAAM,gBAAgB,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"}
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,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAe,gBAAgB,CAAC"}
@@ -1,2 +1,8 @@
1
- export declare const loadScript: (url: string) => Promise<void>;
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
@@ -1 +1 @@
1
- {"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../../src/polyfill.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,QAAS,MAAM,kBAmDrC,CAAC"}
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"}
package/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./dist/types";
1
+ export { default, HostConfig } from "react-reconciler";
package/package.json CHANGED
@@ -3,13 +3,16 @@
3
3
  "description": "@my-react/react-reconciler-compact",
4
4
  "author": "MrWangJustToDo",
5
5
  "license": "MIT",
6
- "version": "0.0.11",
6
+ "version": "0.0.13",
7
7
  "main": "index.js",
8
8
  "types": "index.d.ts",
9
9
  "files": [
10
10
  "dist",
11
+ "type.d.ts",
11
12
  "index.js",
12
- "index.d.ts"
13
+ "index.d.ts",
14
+ "constants.js",
15
+ "constants.d.ts"
13
16
  ],
14
17
  "repository": {
15
18
  "type": "git",
@@ -19,9 +22,19 @@
19
22
  "homepage": "https://mrwangjusttodo.github.io/MyReact",
20
23
  "exports": {
21
24
  ".": {
22
- "default": "./index.js",
25
+ "require": "./index.js",
26
+ "import": "./dist/esm/index.mjs",
23
27
  "types": "./index.d.ts"
24
28
  },
29
+ "./constants": {
30
+ "require": "./constants.js",
31
+ "import": "./dist/esm/constants.mjs",
32
+ "types": "./constants.d.ts"
33
+ },
34
+ "./type": {
35
+ "require": "./type.js",
36
+ "types": "./type.d.ts"
37
+ },
25
38
  "./package.json": "./package.json"
26
39
  },
27
40
  "buildOptions": [
@@ -34,16 +47,38 @@
34
47
  "format": "cjs",
35
48
  "type": true,
36
49
  "multiple": true
50
+ },
51
+ {
52
+ "dir": "./dist",
53
+ "entryFileNames": "esm/index.mjs",
54
+ "format": "esm"
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "input": "./src/constants.ts",
60
+ "output": [
61
+ {
62
+ "dir": "./dist",
63
+ "entryFileNames": "cjs/constants.js",
64
+ "format": "cjs",
65
+ "type": true,
66
+ "multiple": true
67
+ },
68
+ {
69
+ "dir": "./dist",
70
+ "entryFileNames": "esm/constants.mjs",
71
+ "format": "esm"
37
72
  }
38
73
  ]
39
74
  }
40
75
  ],
41
76
  "devDependencies": {
42
- "@my-react/react-reconciler": "^0.3.20",
43
- "@my-react/react-shared": "^0.3.20",
44
- "@types/react-reconciler": "^0.31.0"
77
+ "@my-react/react-reconciler": "^0.3.22",
78
+ "@my-react/react-shared": "^0.3.22",
79
+ "@types/react-reconciler": "^0.32.0"
45
80
  },
46
81
  "peerDependencies": {
47
- "@my-react/react": ">=0.3.20"
82
+ "@my-react/react": ">=0.3.22"
48
83
  }
49
84
  }
package/type.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/types/index";