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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,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;
@@ -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,6 +12,378 @@ export declare const Reconciler: (_config: any) => {
11
12
  createContainer: (_container: RenderContainer, flag: number) => RenderContainer;
12
13
  updateContainer: (_element: MyReactElementNode, _container: RenderContainer, _ignore: any, _cb: () => void) => void;
13
14
  injectIntoDevTools: (_config: any) => Promise<void>;
15
+ getPublicRootInstance: (_container: RenderContainer) => {
16
+ enableUpdate: boolean;
17
+ enableAsyncLoad: boolean;
18
+ runtimeDom: {
19
+ hostContextMap: WeakMap<MyReactFiberNode, any>;
20
+ elementMap: WeakMap<MyReactFiberNode, MyReactFiberNode>;
21
+ };
22
+ runtimeRef: Record<"typeForRef" | "typeForCreate" | "typeForUpdate" | "typeForAppend" | "typeForNativeNode", import("@my-react/react-reconciler").NODE_TYPE>;
23
+ dispatchFiber(_fiber: MyReactFiberNode): void;
24
+ commitCreate(_fiber: MyReactFiberNode): void;
25
+ commitUpdate(_fiber: MyReactFiberNode): void;
26
+ commitAppend(_fiber: MyReactFiberNode): void;
27
+ commitPosition(_fiber: MyReactFiberNode): void;
28
+ commitSetRef(_fiber: MyReactFiberNode): void;
29
+ commitUnsetRef(_fiber: MyReactFiberNode): void;
30
+ commitClear(_fiber: MyReactFiberNode): void;
31
+ reconcileCommit(_fiber: MyReactFiberNode): void;
32
+ reconcileUpdate(_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>, sync?: boolean): void;
33
+ patchToFiberInitial(_fiber: MyReactFiberNode): void;
34
+ patchToFiberUnmount(_fiber: MyReactFiberNode): void;
35
+ dispatchState(_params: import("@my-react/react").UpdateQueue): void;
36
+ dispatchHook(_params: import("@my-react/react").RenderHookParams): unknown;
37
+ dispatchPromise(_params: {
38
+ fiber?: MyReactFiberNode;
39
+ promise?: Promise<unknown>;
40
+ }): MyReactElementNode;
41
+ dispatchSuspensePromise(_params: {
42
+ fiber?: MyReactFiberNode;
43
+ promise?: Promise<unknown>;
44
+ }): MyReactElementNode;
45
+ dispatchError(_params: {
46
+ fiber?: MyReactFiberNode;
47
+ error?: Error;
48
+ }): MyReactElementNode;
49
+ readonly rootNode: any;
50
+ readonly rootFiber: MyReactFiberNode;
51
+ isAppMounted: boolean;
52
+ isAppCrashed: boolean;
53
+ isAppUnmounted: boolean;
54
+ version: string;
55
+ id: string;
56
+ mode: string;
57
+ enableNewEntry: boolean;
58
+ enableConcurrentMode: boolean;
59
+ renderMode: string;
60
+ renderPackage?: string;
61
+ pendingCommitFiberList: import("@my-react/react-shared").ListTree<MyReactFiberNode>;
62
+ pendingCommitFiberPatch: import("@my-react/react-shared").PATCH_TYPE;
63
+ pendingChangedFiberList: import("@my-react/react-shared").ListTree<MyReactFiberNode>;
64
+ pendingUpdateFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
65
+ pendingSuspenseFiberArray: import("@my-react/react-shared").UniqueArray<MyReactFiberNode>;
66
+ performanceLogTimeLimit: number;
67
+ uniqueIdCount: number;
68
+ beforeCommit?: () => void;
69
+ afterCommit?: () => void;
70
+ beforeUpdate?: () => void;
71
+ afterUpdate?: () => void;
72
+ beforeUnmount?: () => void;
73
+ afterUnmount?: () => void;
74
+ generateCommitList(_fiber: MyReactFiberNode): void;
75
+ generateChangedList(_fiber: MyReactFiberNode, withCheck?: boolean): void;
76
+ pendingCreate(_fiber: MyReactFiberNode): void;
77
+ pendingUpdate(_fiber: MyReactFiberNode): void;
78
+ pendingAppend(_fiber: MyReactFiberNode): void;
79
+ pendingPosition(_fiber: MyReactFiberNode): void;
80
+ pendingRef(_fiber: MyReactFiberNode): void;
81
+ pendingUnmount(_fiber: MyReactFiberNode, _pendingUnmount: MyReactFiberNode): void;
82
+ pendingEffect(_fiber: MyReactFiberNode, _effect: () => void, option?: {
83
+ stickyToHead?: boolean;
84
+ stickyToFoot?: boolean;
85
+ }): void;
86
+ pendingLayoutEffect(_fiber: MyReactFiberNode, _layoutEffect: () => void, option?: {
87
+ stickyToHead?: boolean;
88
+ stickyToFoot?: boolean;
89
+ }): void;
90
+ pendingInsertionEffect(_fiber: MyReactFiberNode, _insertionEffect: () => void, option?: {
91
+ stickyToHead?: boolean;
92
+ stickyToFoot?: boolean;
93
+ }): void;
94
+ patchToFiberUpdate(_fiber: MyReactFiberNode): void;
95
+ processLazy(_elementType: import("@my-react/react").LazyType<Record<string, unknown>>): Promise<void>;
96
+ processPromise(_promise: import("@my-react/react-reconciler").PromiseWithState<unknown>): Promise<void>;
97
+ resolveStrict(_fiber: MyReactFiberNode): boolean;
98
+ resolveScope(_fiber: MyReactFiberNode): MyReactFiberNode;
99
+ resolveSuspenseValue(_fiber: MyReactFiberNode): MyReactElementNode;
100
+ resolveSuspenseFiber(_fiber: MyReactFiberNode): MyReactFiberNode;
101
+ resolveErrorBoundaries(_fiber: MyReactFiberNode): MyReactFiberNode;
102
+ resolveContextFiber(_fiber: MyReactFiberNode, _contextObject: import("@my-react/react").ContextObjectType<{
103
+ $$typeof: symbol;
104
+ value: unknown;
105
+ Context: {
106
+ $$typeof: symbol;
107
+ displayName: string;
108
+ };
109
+ }, {
110
+ $$typeof: symbol;
111
+ Context: {
112
+ $$typeof: symbol;
113
+ displayName: string;
114
+ };
115
+ }>): MyReactFiberNode;
116
+ resolveContextValue(_fiber: MyReactFiberNode, _contextObject: import("@my-react/react").ContextObjectType<{
117
+ $$typeof: symbol;
118
+ value: unknown;
119
+ Context: {
120
+ $$typeof: symbol;
121
+ displayName: string;
122
+ };
123
+ }, {
124
+ $$typeof: symbol;
125
+ Context: {
126
+ $$typeof: symbol;
127
+ displayName: string;
128
+ };
129
+ }>): Record<string, unknown>;
130
+ reconcileUnmount(): void;
131
+ shouldYield(): boolean;
132
+ resetYield(): void;
133
+ resetUpdateFlowRuntimeFiber(): void;
134
+ getFiberTree(_fiber: MyReactFiberNode): string;
135
+ readPromise(_params: Promise<unknown>): unknown;
136
+ readContext(_params: import("@my-react/react").ContextObjectType<{
137
+ $$typeof: symbol;
138
+ value: unknown;
139
+ Context: {
140
+ $$typeof: symbol;
141
+ displayName: string;
142
+ };
143
+ }, {
144
+ $$typeof: symbol;
145
+ Context: {
146
+ $$typeof: symbol;
147
+ displayName: string;
148
+ };
149
+ }>): unknown;
150
+ runtimeMap: {
151
+ effectMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
152
+ layoutEffectMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
153
+ insertionEffectMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
154
+ unmountMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<MyReactFiberNode>>;
155
+ eventMap: WeakMap<MyReactFiberNode, Record<string, ((...args: any[]) => void) & {
156
+ cb?: any;
157
+ }>>;
158
+ triggerCallbackMap: WeakMap<MyReactFiberNode, import("@my-react/react-shared").ListTree<() => void>>;
159
+ };
160
+ runtimeFiber: Record<"scheduledFiber" | "errorCatchFiber" | "nextWorkingFiber" | "retriggerFiber", MyReactFiberNode>;
161
+ dispatcher: {
162
+ current: {
163
+ proxy: {
164
+ readContext: <T_1 = any>(Context: import("@my-react/react").ContextObjectType<{
165
+ $$typeof: symbol;
166
+ value: T_1;
167
+ Context: {
168
+ $$typeof: symbol;
169
+ displayName: string;
170
+ };
171
+ }, {
172
+ $$typeof: symbol;
173
+ Context: {
174
+ $$typeof: symbol;
175
+ displayName: string;
176
+ };
177
+ }> | Promise<T_1>) => T_1;
178
+ use: <T_1_1 = any>(Context: import("@my-react/react").ContextObjectType<{
179
+ $$typeof: symbol;
180
+ value: T_1_1;
181
+ Context: {
182
+ $$typeof: symbol;
183
+ displayName: string;
184
+ };
185
+ }, {
186
+ $$typeof: symbol;
187
+ Context: {
188
+ $$typeof: symbol;
189
+ displayName: string;
190
+ };
191
+ }> | Promise<T_1_1>) => T_1_1;
192
+ useCallback: <T_2 extends (...args: any) => any = (...args: any) => any>(callback: T_2, deps?: any[]) => T_2;
193
+ useContext: <T_3 = any>(Context: import("@my-react/react").ContextObjectType<{
194
+ $$typeof: symbol;
195
+ value: T_3;
196
+ Context: {
197
+ $$typeof: symbol;
198
+ displayName: string;
199
+ };
200
+ }, {
201
+ $$typeof: symbol;
202
+ Context: {
203
+ $$typeof: symbol;
204
+ displayName: string;
205
+ };
206
+ }>) => T_3;
207
+ useDebugValue: (...args: any[]) => unknown;
208
+ useDeferredValue: <T_4 = any>(value: T_4) => T_4;
209
+ useEffect: (action: () => any, deps?: any[]) => void;
210
+ useId: () => string;
211
+ useImperativeHandle: (ref: any, createHandle: import("@my-react/react").Reducer, deps: any[]) => unknown;
212
+ useInsertionEffect: (action: () => any, deps: any[]) => unknown;
213
+ useLayoutEffect: (action: () => any, deps?: any[]) => void;
214
+ useMemo: <T_5 = any>(action: () => T_5, deps?: any[]) => T_5;
215
+ useReducer: (reducer: import("@my-react/react").Reducer, initialArgs: any, init?: (...args: any) => any) => unknown;
216
+ useRef: <T_6 = any>(value: T_6) => {
217
+ current: T_6;
218
+ };
219
+ useState: <T_7 = any>(initial: T_7 | (() => T_7)) => [T_7, (t?: T_7 | ((t: T_7) => T_7)) => void];
220
+ useSignal: <T_8 = any>(initial: T_8 | (() => T_8)) => unknown;
221
+ useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
222
+ useTransition: () => [boolean, (cb: () => void) => void];
223
+ useOptimistic: <S, A>(passthrough: S, reducer?: (p: S, c: A) => S) => [S, (p: A) => void];
224
+ useEffectEvent: <T_9 extends Function>(cb: T_9) => unknown;
225
+ };
226
+ readContext: <T_1_2 = any>(Context: import("@my-react/react").ContextObjectType<{
227
+ $$typeof: symbol;
228
+ value: T_1_2;
229
+ Context: {
230
+ $$typeof: symbol;
231
+ displayName: string;
232
+ };
233
+ }, {
234
+ $$typeof: symbol;
235
+ Context: {
236
+ $$typeof: symbol;
237
+ displayName: string;
238
+ };
239
+ }> | Promise<T_1_2>) => T_1_2;
240
+ use: <T_1_3 = any>(Context: import("@my-react/react").ContextObjectType<{
241
+ $$typeof: symbol;
242
+ value: T_1_3;
243
+ Context: {
244
+ $$typeof: symbol;
245
+ displayName: string;
246
+ };
247
+ }, {
248
+ $$typeof: symbol;
249
+ Context: {
250
+ $$typeof: symbol;
251
+ displayName: string;
252
+ };
253
+ }> | Promise<T_1_3>) => T_1_3;
254
+ useCallback: <T_2_1 extends (...args: any) => any = (...args: any) => any>(callback: T_2_1, deps?: any[]) => T_2_1;
255
+ useContext: <T_3_1 = any>(Context: import("@my-react/react").ContextObjectType<{
256
+ $$typeof: symbol;
257
+ value: T_3_1;
258
+ Context: {
259
+ $$typeof: symbol;
260
+ displayName: string;
261
+ };
262
+ }, {
263
+ $$typeof: symbol;
264
+ Context: {
265
+ $$typeof: symbol;
266
+ displayName: string;
267
+ };
268
+ }>) => T_3_1;
269
+ useDebugValue: (...args: any[]) => unknown;
270
+ useDeferredValue: <T_4_1 = any>(value: T_4_1) => T_4_1;
271
+ useEffect: (action: () => any, deps?: any[]) => void;
272
+ useId: () => string;
273
+ useImperativeHandle: (ref: any, createHandle: import("@my-react/react").Reducer, deps: any[]) => unknown;
274
+ useInsertionEffect: (action: () => any, deps: any[]) => unknown;
275
+ useLayoutEffect: (action: () => any, deps?: any[]) => void;
276
+ useMemo: <T_5_1 = any>(action: () => T_5_1, deps?: any[]) => T_5_1;
277
+ useReducer: (reducer: import("@my-react/react").Reducer, initialArgs: any, init?: (...args: any) => any) => unknown;
278
+ useRef: <T_6_1 = any>(value: T_6_1) => {
279
+ current: T_6_1;
280
+ };
281
+ useState: <T_7_1 = any>(initial: T_7_1 | (() => T_7_1)) => [T_7_1, (t?: T_7_1 | ((t: T_7_1) => T_7_1)) => void];
282
+ useSignal: <T_8_1 = any>(initial: T_8_1 | (() => T_8_1)) => unknown;
283
+ useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
284
+ useTransition: () => [boolean, (cb: () => void) => void];
285
+ useOptimistic: <S_1, A_1>(passthrough: S_1, reducer?: (p: S_1, c: A_1) => S_1) => [S_1, (p: A_1) => void];
286
+ useEffectEvent: <T_9_1 extends Function>(cb: T_9_1) => unknown;
287
+ };
288
+ };
289
+ rootElement: MyReactElementNode;
290
+ trigger(_fiber: MyReactFiberNode, _state?: STATE_TYPE, cb?: () => void): void;
291
+ onFiberInitial(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
292
+ onceFiberInitial(cb: (_fiber: MyReactFiberNode) => void): void;
293
+ callOnFiberInitial(_fiber: MyReactFiberNode): void;
294
+ onFiberUpdate(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
295
+ onceFiberUpdate(cb: (_fiber: MyReactFiberNode) => void): void;
296
+ callOnFiberUpdate(_fiber: MyReactFiberNode): void;
297
+ onFiberChange(cb: (_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>) => void): () => boolean;
298
+ onceFiberChange(cb: (_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>) => void): void;
299
+ callOnFiberChange(_list: import("@my-react/react-shared").ListTree<MyReactFiberNode>): void;
300
+ onFiberUnmount(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
301
+ onceFiberUnmount(cb: (_fiber: MyReactFiberNode) => void): void;
302
+ callOnFiberUnmount(_fiber: MyReactFiberNode): void;
303
+ onFiberState(cb: (_fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
304
+ onceFiberState(cb: (_fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
305
+ callOnFiberState(_fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
306
+ onFiberTrigger(cb: (_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState) => void): () => boolean;
307
+ onceFiberTrigger(cb: (_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState) => void): void;
308
+ callOnFiberTrigger(_fiber: MyReactFiberNode, _state: import("@my-react/react-reconciler").UpdateState): void;
309
+ onFiberHMR(cb: (_fiber: MyReactFiberNode, _forceRefresh?: boolean) => void): () => boolean;
310
+ onceFiberHMR(cb: (_fiber: MyReactFiberNode, _forceRefresh?: boolean) => void): void;
311
+ callOnFiberHMR(_fiber: MyReactFiberNode, _forceRefresh?: boolean): void;
312
+ onFiberWarn(cb: (_fiber: MyReactFiberNode, ...args: any) => void): () => boolean;
313
+ onceFiberWarn(cb: (_fiber: MyReactFiberNode, ...args: any) => void): void;
314
+ callOnFiberWarn(_fiber: MyReactFiberNode, ...args: any): void;
315
+ onFiberError(cb: (_fiber: MyReactFiberNode, ...args: any) => void): () => boolean;
316
+ onceFiberError(cb: (_fiber: MyReactFiberNode, ...args: any) => void): void;
317
+ callOnFiberError(_fiber: MyReactFiberNode, ...args: any): void;
318
+ onPerformanceWarn(cb: (_fiber: MyReactFiberNode, _renderTime: number) => void): () => boolean;
319
+ oncePerformanceWarn(cb: (_fiber: MyReactFiberNode, _renderTime: number) => void): void;
320
+ callOnPerformanceWarn(_fiber: MyReactFiberNode, _renderTime: number): void;
321
+ onBeforeFiberRun(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
322
+ onceBeforeFiberRun(cb: (_fiber: MyReactFiberNode) => void): void;
323
+ callOnBeforeFiberRun(_fiber: MyReactFiberNode): void;
324
+ onAfterFiberRun(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
325
+ onceAfterFiberRun(cb: (_fiber: MyReactFiberNode) => void): void;
326
+ callOnAfterFiberRun(_fiber: MyReactFiberNode): void;
327
+ onAfterFiberDone(cb: (_fiber: MyReactFiberNode) => void): () => boolean;
328
+ onceAfterFiberDone(cb: (_fiber: MyReactFiberNode) => void): void;
329
+ callOnAfterFiberDone(_fiber: MyReactFiberNode): void;
330
+ onBeforeDispatchRender(cb: (renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode) => void): () => boolean;
331
+ onceBeforeDispatchRender(cb: (renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode) => void): void;
332
+ callOnBeforeDispatchRender(renderDispatch: CustomRenderDispatch, fiber: MyReactFiberNode): void;
333
+ onAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
334
+ onceAfterDispatchRender(cb: (renderDispatch: CustomRenderDispatch) => void): void;
335
+ callOnAfterDispatchRender(renderDispatch: CustomRenderDispatch): void;
336
+ onBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]) => void): () => boolean;
337
+ onceBeforeDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]) => void): void;
338
+ callOnBeforeDispatchUpdate(renderDispatch: CustomRenderDispatch, list: MyReactFiberNode[]): void;
339
+ onAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
340
+ onceAfterDispatchUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
341
+ callOnAfterDispatchUpdate(renderDispatch: CustomRenderDispatch): void;
342
+ onInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
343
+ onceInstanceInitial(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
344
+ callOnInstanceInitial(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
345
+ onInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
346
+ onceInstanceUpdate(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
347
+ callOnInstanceUpdate(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
348
+ onInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
349
+ onceInstanceState(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
350
+ callOnInstanceState(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
351
+ onInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): () => boolean;
352
+ onceInstanceUnmount(cb: (_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode) => void): void;
353
+ callOnInstanceUnmount(_instance: import("@my-react/react").MyReactComponent<any, any, any>, _fiber: MyReactFiberNode): void;
354
+ onHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
355
+ onceHookInitial(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
356
+ callOnHookInitial(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
357
+ onHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
358
+ onceHookUpdate(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
359
+ callOnHookUpdate(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
360
+ onHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): () => boolean;
361
+ onceHookUnmount(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode) => void): void;
362
+ callOnHookUnmount(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber?: MyReactFiberNode): void;
363
+ onHookState(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): () => boolean;
364
+ onceHookTrigger(cb: (_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue) => void): void;
365
+ callOnHookState(_hook: import("@my-react/react-reconciler").MyReactHookNode, _fiber: MyReactFiberNode, _updater: import("@my-react/react").UpdateQueue): void;
366
+ onBeforeCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
367
+ onceBeforeCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
368
+ callOnBeforeCommitMount(renderDispatch: CustomRenderDispatch): void;
369
+ onAfterCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
370
+ onceAfterCommitMount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
371
+ callOnAfterCommitMount(renderDispatch: CustomRenderDispatch): void;
372
+ onBeforeCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
373
+ onceBeforeCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
374
+ callOnBeforeCommitUpdate(renderDispatch: CustomRenderDispatch): void;
375
+ onAfterCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
376
+ onceAfterCommitUpdate(cb: (renderDispatch: CustomRenderDispatch) => void): void;
377
+ callOnAfterCommitUpdate(renderDispatch: CustomRenderDispatch): void;
378
+ onBeforeCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
379
+ onceBeforeCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
380
+ callOnBeforeCommitUnmount(renderDispatch: CustomRenderDispatch): void;
381
+ onAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): () => boolean;
382
+ onceAfterCommitUnmount(cb: (renderDispatch: CustomRenderDispatch) => void): void;
383
+ callOnAfterCommitUnmount(renderDispatch: CustomRenderDispatch): void;
384
+ readonly isMyReactInstance: boolean;
385
+ _reactInternals: import("@my-react/react").RenderFiber;
386
+ };
14
387
  injectIntoDevToolsWithSocketIO: (url: string, _config: any) => Promise<void>;
15
388
  flushSync: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
16
389
  batchedUpdates: <T extends any[] = any[], K = any>(action: (...args: T) => K, ...args: T) => K;
@@ -1 +1 @@
1
- {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../src/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACtG,OAAO,EACL,gBAAgB,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,EAQrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAW,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAS7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAOrD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,aAAa,EAAE,kBAAkB,CAAC;CACnC,CAAC;AAGF,eAAO,MAAM,UAAU,YAAa,GAAG;;kCAKA,eAAe,QAAQ,MAAM;gCAoB/B,kBAAkB,cAAc,eAAe,WAAW,GAAG,OAAO,MAAM,IAAI;kCA6DtE,GAAG;wCA0BH,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAbP,MAAM,WAAW,GAAG;;;CA2BxE,CAAC"}
@@ -10,4 +10,5 @@ export interface FiberNode<T = Record<string, any>> extends MyReactFiberNode {
10
10
  sibling: FiberNode | null;
11
11
  alternate?: FiberNode | null;
12
12
  }
13
+ export default createReconciler;
13
14
  //# 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,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.12",
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.21",
78
+ "@my-react/react-shared": "^0.3.21",
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.21"
48
83
  }
49
84
  }
package/type.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/types/index";