bippy 0.6.1-dev.3a24abf → 0.6.1-dev.d7876ea

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,6 +1,15 @@
1
1
  import { ReactNode } from "react";
2
2
  import ReactReconciler from "react-reconciler";
3
3
  //#region src/generated/react-work-tags.d.ts
4
+ declare const ReactSymbols: {
5
+ readonly CONCURRENT_MODE_NUMBER: 60111;
6
+ readonly CONCURRENT_MODE_SYMBOL_DESCRIPTION: "react.concurrent_mode";
7
+ readonly CONCURRENT_MODE_SYMBOL_STRING: "Symbol(react.concurrent_mode)";
8
+ readonly DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION: "react.async_mode";
9
+ readonly DEPRECATED_ASYNC_MODE_SYMBOL_STRING: "Symbol(react.async_mode)";
10
+ readonly ELEMENT_SYMBOL_STRING: "Symbol(react.transitional.element)";
11
+ readonly LEGACY_ELEMENT_SYMBOL_STRING: "Symbol(react.element)";
12
+ };
4
13
  interface ReactWorkTagMap {
5
14
  ActivityComponent: number;
6
15
  CacheComponent: number;
@@ -37,8 +46,116 @@ interface ReactWorkTagMap {
37
46
  ViewTransitionComponent: number;
38
47
  YieldComponent: number;
39
48
  }
40
- declare const ReactWorkTags: {
41
- readonly "17.0.1": {
49
+ declare const reactWorkTagsByVersion: {
50
+ readonly "16.0.0": {
51
+ readonly ActivityComponent: -1;
52
+ readonly CacheComponent: -1;
53
+ readonly ClassComponent: 2;
54
+ readonly ContextConsumer: 12;
55
+ readonly ContextProvider: 13;
56
+ readonly CoroutineComponent: 7;
57
+ readonly CoroutineHandlerPhase: 8;
58
+ readonly DehydratedSuspenseComponent: -1;
59
+ readonly ForwardRef: 14;
60
+ readonly Fragment: 10;
61
+ readonly FunctionComponent: 1;
62
+ readonly HostComponent: 5;
63
+ readonly HostHoistable: -1;
64
+ readonly HostPortal: 4;
65
+ readonly HostRoot: 3;
66
+ readonly HostSingleton: -1;
67
+ readonly HostText: 6;
68
+ readonly IncompleteClassComponent: -1;
69
+ readonly IncompleteFunctionComponent: -1;
70
+ readonly IndeterminateComponent: 0;
71
+ readonly LazyComponent: -1;
72
+ readonly LegacyHiddenComponent: -1;
73
+ readonly MemoComponent: -1;
74
+ readonly Mode: 11;
75
+ readonly OffscreenComponent: -1;
76
+ readonly Profiler: 15;
77
+ readonly ScopeComponent: -1;
78
+ readonly SimpleMemoComponent: -1;
79
+ readonly SuspenseComponent: 16;
80
+ readonly SuspenseListComponent: -1;
81
+ readonly Throw: -1;
82
+ readonly TracingMarkerComponent: -1;
83
+ readonly ViewTransitionComponent: -1;
84
+ readonly YieldComponent: 9;
85
+ };
86
+ readonly "16.4.3-alpha": {
87
+ readonly ActivityComponent: -1;
88
+ readonly CacheComponent: -1;
89
+ readonly ClassComponent: 2;
90
+ readonly ContextConsumer: 11;
91
+ readonly ContextProvider: 12;
92
+ readonly CoroutineComponent: -1;
93
+ readonly CoroutineHandlerPhase: -1;
94
+ readonly DehydratedSuspenseComponent: -1;
95
+ readonly ForwardRef: 13;
96
+ readonly Fragment: 9;
97
+ readonly FunctionComponent: 0;
98
+ readonly HostComponent: 7;
99
+ readonly HostHoistable: -1;
100
+ readonly HostPortal: 6;
101
+ readonly HostRoot: 5;
102
+ readonly HostSingleton: -1;
103
+ readonly HostText: 8;
104
+ readonly IncompleteClassComponent: -1;
105
+ readonly IncompleteFunctionComponent: -1;
106
+ readonly IndeterminateComponent: 4;
107
+ readonly LazyComponent: -1;
108
+ readonly LegacyHiddenComponent: -1;
109
+ readonly MemoComponent: -1;
110
+ readonly Mode: 10;
111
+ readonly OffscreenComponent: -1;
112
+ readonly Profiler: 15;
113
+ readonly ScopeComponent: -1;
114
+ readonly SimpleMemoComponent: -1;
115
+ readonly SuspenseComponent: 16;
116
+ readonly SuspenseListComponent: -1;
117
+ readonly Throw: -1;
118
+ readonly TracingMarkerComponent: -1;
119
+ readonly ViewTransitionComponent: -1;
120
+ readonly YieldComponent: -1;
121
+ };
122
+ readonly "16.6.0-beta.0": {
123
+ readonly ActivityComponent: -1;
124
+ readonly CacheComponent: -1;
125
+ readonly ClassComponent: 1;
126
+ readonly ContextConsumer: 9;
127
+ readonly ContextProvider: 10;
128
+ readonly CoroutineComponent: -1;
129
+ readonly CoroutineHandlerPhase: -1;
130
+ readonly DehydratedSuspenseComponent: 18;
131
+ readonly ForwardRef: 11;
132
+ readonly Fragment: 7;
133
+ readonly FunctionComponent: 0;
134
+ readonly HostComponent: 5;
135
+ readonly HostHoistable: -1;
136
+ readonly HostPortal: 4;
137
+ readonly HostRoot: 3;
138
+ readonly HostSingleton: -1;
139
+ readonly HostText: 6;
140
+ readonly IncompleteClassComponent: 17;
141
+ readonly IncompleteFunctionComponent: -1;
142
+ readonly IndeterminateComponent: 2;
143
+ readonly LazyComponent: 16;
144
+ readonly LegacyHiddenComponent: -1;
145
+ readonly MemoComponent: 14;
146
+ readonly Mode: 8;
147
+ readonly OffscreenComponent: -1;
148
+ readonly Profiler: 12;
149
+ readonly ScopeComponent: -1;
150
+ readonly SimpleMemoComponent: 15;
151
+ readonly SuspenseComponent: 13;
152
+ readonly SuspenseListComponent: 19;
153
+ readonly Throw: -1;
154
+ readonly TracingMarkerComponent: -1;
155
+ readonly ViewTransitionComponent: -1;
156
+ readonly YieldComponent: -1;
157
+ };
158
+ readonly "17.0.0-alpha": {
42
159
  readonly ActivityComponent: -1;
43
160
  readonly CacheComponent: -1;
44
161
  readonly ClassComponent: 1;
@@ -111,30 +228,14 @@ declare const ReactWorkTags: {
111
228
  readonly YieldComponent: -1;
112
229
  };
113
230
  };
114
- type ReactWorkTagVersion = keyof typeof ReactWorkTags;
115
- declare const ActivityComponentTag: 31;
116
- declare const ClassComponentTag: 1;
117
- declare const ContextConsumerTag: 9;
118
- declare const DehydratedSuspenseComponentTag: 18;
119
- declare const ForwardRefTag: 11;
120
- declare const FragmentTag: 7;
121
- declare const FunctionComponentTag: 0;
122
- declare const HostComponentTag: 5;
123
- declare const HostHoistableTag: 26;
124
- declare const HostPortalTag: 4;
125
- declare const HostRootTag: 3;
126
- declare const HostSingletonTag: 27;
127
- declare const HostTextTag: 6;
128
- declare const LazyComponentTag: 16;
129
- declare const LegacyHiddenComponentTag: 23;
130
- declare const MemoComponentTag: 14;
131
- declare const OffscreenComponentTag: 22;
132
- declare const SimpleMemoComponentTag: 15;
133
- declare const SuspenseComponentTag: 13;
134
- declare const SuspenseListComponentTag: 19;
135
- declare const ViewTransitionComponentTag: 30;
136
- type ReactWorkTag = Exclude<(typeof ReactWorkTags)[ReactWorkTagVersion][keyof ReactWorkTagMap], -1>;
137
- type HostWorkTag = typeof HostComponentTag | typeof HostHoistableTag | typeof HostSingletonTag | typeof HostTextTag;
231
+ type ReactWorkTagVersion = keyof typeof reactWorkTagsByVersion;
232
+ interface GetReactWorkTags {
233
+ <Version extends ReactWorkTagVersion>(reactVersion: Version): Readonly<(typeof reactWorkTagsByVersion)[Version]>;
234
+ (reactVersion: string): Readonly<ReactWorkTagMap>;
235
+ }
236
+ type ReactWorkTag = Exclude<(typeof reactWorkTagsByVersion)[ReactWorkTagVersion][keyof ReactWorkTagMap], -1>;
237
+ type HostWorkTag = Exclude<(typeof reactWorkTagsByVersion)[ReactWorkTagVersion]["HostComponent"] | (typeof reactWorkTagsByVersion)[ReactWorkTagVersion]["HostHoistable"] | (typeof reactWorkTagsByVersion)[ReactWorkTagVersion]["HostSingleton"] | (typeof reactWorkTagsByVersion)[ReactWorkTagVersion]["HostText"], -1>;
238
+ declare const getReactWorkTags: GetReactWorkTags;
138
239
  //#endregion
139
240
  //#region src/types.d.ts
140
241
  type BundleType = ReactReconciler.BundleType;
@@ -171,7 +272,11 @@ interface ContextDependency<T> extends Omit<ReactReconciler.ContextDependency<T>
171
272
  memoizedValue?: T;
172
273
  observedBits?: number;
173
274
  }
275
+ interface DebugThenableState {
276
+ thenables?: unknown[];
277
+ }
174
278
  interface Dependencies extends Omit<ReactReconciler.Dependencies, "firstContext"> {
279
+ _debugThenableState?: DebugThenableState | unknown[];
175
280
  firstContext: ContextDependency<unknown> | null;
176
281
  }
177
282
  interface Effect {
@@ -193,6 +298,10 @@ interface ReactDebugInfo {
193
298
  env?: string;
194
299
  name?: string;
195
300
  }
301
+ interface ReactMemoCache {
302
+ data: unknown[][];
303
+ index: number;
304
+ }
196
305
  interface FiberDebugSource extends Source {
197
306
  columnNumber?: number;
198
307
  }
@@ -200,7 +309,7 @@ interface FiberUpdateQueue {
200
309
  [key: string]: unknown;
201
310
  dispatch?: unknown;
202
311
  lastEffect: Effect | null;
203
- memoCache?: unknown;
312
+ memoCache?: ReactMemoCache;
204
313
  }
205
314
  interface Fiber<T = unknown> extends Omit<ReactReconciler.Fiber, "alternate" | "_debugOwner" | "_debugSource" | "child" | "deletions" | "dependencies" | "memoizedProps" | "memoizedState" | "pendingProps" | "return" | "sibling" | "stateNode" | "tag" | "updateQueue"> {
206
315
  _debugInfo?: ReactDebugInfo[];
@@ -221,7 +330,7 @@ interface Fiber<T = unknown> extends Omit<ReactReconciler.Fiber, "alternate" | "
221
330
  sibling: Fiber | null;
222
331
  stateNode: T;
223
332
  tag: WorkTag;
224
- updateQueue: FiberUpdateQueue;
333
+ updateQueue: FiberUpdateQueue | null;
225
334
  }
226
335
  interface HostFiber<T = unknown> extends Fiber<T> {
227
336
  tag: HostWorkTag;
@@ -288,4 +397,40 @@ declare global {
288
397
  var __REACT_DEVTOOLS_GLOBAL_HOOK__: ReactDevToolsGlobalHook | undefined;
289
398
  }
290
399
  //#endregion
291
- export { ForwardRefTag as $, ReactDevToolsGlobalHook as A, ServerComponentInfo as B, OpaqueRoot as C, ReactContext as D, ReactConsumer as E, RefObject as F, Thenable as G, SuspenseHydrationCallbacks as H, RendererDispatcherRef as I, WorkTag as J, TransitionTracingCallbacks as K, RoleSelector as L, ReactProvider as M, ReactProviderType as N, ReactDebugInfo as O, ReactRenderer as P, DehydratedSuspenseComponentTag as Q, RootTag as R, OpaqueHandle as S, React$AbstractComponent as T, TestNameSelector as U, Source as V, TextSelector as W, ClassComponentTag as X, ActivityComponentTag as Y, ContextConsumerTag as Z, LanePriority as _, Dependencies as a, HostRootTag as at, MemoizedState as b, Fiber as c, LazyComponentTag as ct, FiberUpdateQueue as d, OffscreenComponentTag as dt, FragmentTag as et, Flags as f, SimpleMemoComponentTag as ft, HostFiber as g, HostConfig as h, ViewTransitionComponentTag as ht, CurrentDispatcherRef as i, HostPortalTag as it, ReactPortal as j, ReactDevToolsEventHandler as k, FiberDebugSource as l, LegacyHiddenComponentTag as lt, HookType as m, SuspenseListComponentTag as mt, ComponentSelector as n, HostComponentTag as nt, DevToolsConfig as o, HostSingletonTag as ot, HasPseudoClassSelector as p, SuspenseComponentTag as pt, TypeOfMode as q, ContextDependency as r, HostHoistableTag as rt, Effect as s, HostTextTag as st, BundleType as t, FunctionComponentTag as tt, FiberRoot as u, MemoComponentTag as ut, Lanes as v, Props as w, MutableSource as x, LegacyDispatcherRef as y, Selector as z };
400
+ //#region src/errors.d.ts
401
+ declare class BippyError extends Error {
402
+ constructor(message: string, cause?: unknown);
403
+ }
404
+ declare class BippyInstrumentationError extends BippyError {
405
+ readonly callbackName: string;
406
+ readonly instrumentationName: string;
407
+ constructor(instrumentationName: string, callbackName: string, cause: unknown);
408
+ }
409
+ declare class BippyReactDevToolsError extends BippyError {
410
+ readonly callbackName: string;
411
+ constructor(callbackName: string, cause: unknown);
412
+ }
413
+ declare class BippyHookListenerError extends BippyError {
414
+ readonly listenerName: string;
415
+ constructor(listenerName: string, cause: unknown);
416
+ }
417
+ declare class BippyHookInstallationError extends BippyError {
418
+ constructor(cause: unknown);
419
+ }
420
+ declare class BippyReactBuildError extends BippyError {
421
+ constructor(message: string, cause?: unknown);
422
+ }
423
+ declare class BippyHookInspectionError extends BippyError {
424
+ constructor(message: string, cause?: unknown);
425
+ }
426
+ declare class BippyUnsupportedHookError extends BippyHookInspectionError {
427
+ constructor(message: string, cause?: unknown);
428
+ }
429
+ declare class BippyHookRenderError extends BippyHookInspectionError {
430
+ constructor(message: string, cause?: unknown);
431
+ }
432
+ declare class BippySourceMapError extends BippyError {
433
+ constructor(message: string, cause?: unknown);
434
+ }
435
+ //#endregion
436
+ export { Source as $, LegacyDispatcherRef as A, ReactDevToolsEventHandler as B, Flags as C, HostFiber as D, HostConfig as E, Props as F, ReactProviderType as G, ReactMemoCache as H, React$AbstractComponent as I, RendererDispatcherRef as J, ReactRenderer as K, ReactConsumer as L, MutableSource as M, OpaqueHandle as N, LanePriority as O, OpaqueRoot as P, ServerComponentInfo as Q, ReactContext as R, FiberUpdateQueue as S, HookType as T, ReactPortal as U, ReactDevToolsGlobalHook as V, ReactProvider as W, RootTag as X, RoleSelector as Y, Selector as Z, DevToolsConfig as _, BippyHookRenderError as a, TypeOfMode as at, FiberDebugSource as b, BippyReactDevToolsError as c, ReactWorkTagMap as ct, BundleType as d, SuspenseHydrationCallbacks as et, ComponentSelector as f, Dependencies as g, DebugThenableState as h, BippyHookListenerError as i, TransitionTracingCallbacks as it, MemoizedState as j, Lanes as k, BippySourceMapError as l, ReactWorkTagVersion as lt, CurrentDispatcherRef as m, BippyHookInspectionError as n, TextSelector as nt, BippyInstrumentationError as o, WorkTag as ot, ContextDependency as p, RefObject as q, BippyHookInstallationError as r, Thenable as rt, BippyReactBuildError as s, ReactSymbols as st, BippyError as t, TestNameSelector as tt, BippyUnsupportedHookError as u, getReactWorkTags as ut, Effect as v, HasPseudoClassSelector as w, FiberRoot as x, Fiber as y, ReactDebugInfo as z };
@@ -1,6 +1,15 @@
1
1
  import { ReactNode } from "react";
2
2
  import ReactReconciler from "react-reconciler";
3
3
  //#region src/generated/react-work-tags.d.ts
4
+ declare const ReactSymbols: {
5
+ readonly CONCURRENT_MODE_NUMBER: 60111;
6
+ readonly CONCURRENT_MODE_SYMBOL_DESCRIPTION: "react.concurrent_mode";
7
+ readonly CONCURRENT_MODE_SYMBOL_STRING: "Symbol(react.concurrent_mode)";
8
+ readonly DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION: "react.async_mode";
9
+ readonly DEPRECATED_ASYNC_MODE_SYMBOL_STRING: "Symbol(react.async_mode)";
10
+ readonly ELEMENT_SYMBOL_STRING: "Symbol(react.transitional.element)";
11
+ readonly LEGACY_ELEMENT_SYMBOL_STRING: "Symbol(react.element)";
12
+ };
4
13
  interface ReactWorkTagMap {
5
14
  ActivityComponent: number;
6
15
  CacheComponent: number;
@@ -37,8 +46,116 @@ interface ReactWorkTagMap {
37
46
  ViewTransitionComponent: number;
38
47
  YieldComponent: number;
39
48
  }
40
- declare const ReactWorkTags: {
41
- readonly "17.0.1": {
49
+ declare const reactWorkTagsByVersion: {
50
+ readonly "16.0.0": {
51
+ readonly ActivityComponent: -1;
52
+ readonly CacheComponent: -1;
53
+ readonly ClassComponent: 2;
54
+ readonly ContextConsumer: 12;
55
+ readonly ContextProvider: 13;
56
+ readonly CoroutineComponent: 7;
57
+ readonly CoroutineHandlerPhase: 8;
58
+ readonly DehydratedSuspenseComponent: -1;
59
+ readonly ForwardRef: 14;
60
+ readonly Fragment: 10;
61
+ readonly FunctionComponent: 1;
62
+ readonly HostComponent: 5;
63
+ readonly HostHoistable: -1;
64
+ readonly HostPortal: 4;
65
+ readonly HostRoot: 3;
66
+ readonly HostSingleton: -1;
67
+ readonly HostText: 6;
68
+ readonly IncompleteClassComponent: -1;
69
+ readonly IncompleteFunctionComponent: -1;
70
+ readonly IndeterminateComponent: 0;
71
+ readonly LazyComponent: -1;
72
+ readonly LegacyHiddenComponent: -1;
73
+ readonly MemoComponent: -1;
74
+ readonly Mode: 11;
75
+ readonly OffscreenComponent: -1;
76
+ readonly Profiler: 15;
77
+ readonly ScopeComponent: -1;
78
+ readonly SimpleMemoComponent: -1;
79
+ readonly SuspenseComponent: 16;
80
+ readonly SuspenseListComponent: -1;
81
+ readonly Throw: -1;
82
+ readonly TracingMarkerComponent: -1;
83
+ readonly ViewTransitionComponent: -1;
84
+ readonly YieldComponent: 9;
85
+ };
86
+ readonly "16.4.3-alpha": {
87
+ readonly ActivityComponent: -1;
88
+ readonly CacheComponent: -1;
89
+ readonly ClassComponent: 2;
90
+ readonly ContextConsumer: 11;
91
+ readonly ContextProvider: 12;
92
+ readonly CoroutineComponent: -1;
93
+ readonly CoroutineHandlerPhase: -1;
94
+ readonly DehydratedSuspenseComponent: -1;
95
+ readonly ForwardRef: 13;
96
+ readonly Fragment: 9;
97
+ readonly FunctionComponent: 0;
98
+ readonly HostComponent: 7;
99
+ readonly HostHoistable: -1;
100
+ readonly HostPortal: 6;
101
+ readonly HostRoot: 5;
102
+ readonly HostSingleton: -1;
103
+ readonly HostText: 8;
104
+ readonly IncompleteClassComponent: -1;
105
+ readonly IncompleteFunctionComponent: -1;
106
+ readonly IndeterminateComponent: 4;
107
+ readonly LazyComponent: -1;
108
+ readonly LegacyHiddenComponent: -1;
109
+ readonly MemoComponent: -1;
110
+ readonly Mode: 10;
111
+ readonly OffscreenComponent: -1;
112
+ readonly Profiler: 15;
113
+ readonly ScopeComponent: -1;
114
+ readonly SimpleMemoComponent: -1;
115
+ readonly SuspenseComponent: 16;
116
+ readonly SuspenseListComponent: -1;
117
+ readonly Throw: -1;
118
+ readonly TracingMarkerComponent: -1;
119
+ readonly ViewTransitionComponent: -1;
120
+ readonly YieldComponent: -1;
121
+ };
122
+ readonly "16.6.0-beta.0": {
123
+ readonly ActivityComponent: -1;
124
+ readonly CacheComponent: -1;
125
+ readonly ClassComponent: 1;
126
+ readonly ContextConsumer: 9;
127
+ readonly ContextProvider: 10;
128
+ readonly CoroutineComponent: -1;
129
+ readonly CoroutineHandlerPhase: -1;
130
+ readonly DehydratedSuspenseComponent: 18;
131
+ readonly ForwardRef: 11;
132
+ readonly Fragment: 7;
133
+ readonly FunctionComponent: 0;
134
+ readonly HostComponent: 5;
135
+ readonly HostHoistable: -1;
136
+ readonly HostPortal: 4;
137
+ readonly HostRoot: 3;
138
+ readonly HostSingleton: -1;
139
+ readonly HostText: 6;
140
+ readonly IncompleteClassComponent: 17;
141
+ readonly IncompleteFunctionComponent: -1;
142
+ readonly IndeterminateComponent: 2;
143
+ readonly LazyComponent: 16;
144
+ readonly LegacyHiddenComponent: -1;
145
+ readonly MemoComponent: 14;
146
+ readonly Mode: 8;
147
+ readonly OffscreenComponent: -1;
148
+ readonly Profiler: 12;
149
+ readonly ScopeComponent: -1;
150
+ readonly SimpleMemoComponent: 15;
151
+ readonly SuspenseComponent: 13;
152
+ readonly SuspenseListComponent: 19;
153
+ readonly Throw: -1;
154
+ readonly TracingMarkerComponent: -1;
155
+ readonly ViewTransitionComponent: -1;
156
+ readonly YieldComponent: -1;
157
+ };
158
+ readonly "17.0.0-alpha": {
42
159
  readonly ActivityComponent: -1;
43
160
  readonly CacheComponent: -1;
44
161
  readonly ClassComponent: 1;
@@ -111,30 +228,14 @@ declare const ReactWorkTags: {
111
228
  readonly YieldComponent: -1;
112
229
  };
113
230
  };
114
- type ReactWorkTagVersion = keyof typeof ReactWorkTags;
115
- declare const ActivityComponentTag: 31;
116
- declare const ClassComponentTag: 1;
117
- declare const ContextConsumerTag: 9;
118
- declare const DehydratedSuspenseComponentTag: 18;
119
- declare const ForwardRefTag: 11;
120
- declare const FragmentTag: 7;
121
- declare const FunctionComponentTag: 0;
122
- declare const HostComponentTag: 5;
123
- declare const HostHoistableTag: 26;
124
- declare const HostPortalTag: 4;
125
- declare const HostRootTag: 3;
126
- declare const HostSingletonTag: 27;
127
- declare const HostTextTag: 6;
128
- declare const LazyComponentTag: 16;
129
- declare const LegacyHiddenComponentTag: 23;
130
- declare const MemoComponentTag: 14;
131
- declare const OffscreenComponentTag: 22;
132
- declare const SimpleMemoComponentTag: 15;
133
- declare const SuspenseComponentTag: 13;
134
- declare const SuspenseListComponentTag: 19;
135
- declare const ViewTransitionComponentTag: 30;
136
- type ReactWorkTag = Exclude<(typeof ReactWorkTags)[ReactWorkTagVersion][keyof ReactWorkTagMap], -1>;
137
- type HostWorkTag = typeof HostComponentTag | typeof HostHoistableTag | typeof HostSingletonTag | typeof HostTextTag;
231
+ type ReactWorkTagVersion = keyof typeof reactWorkTagsByVersion;
232
+ interface GetReactWorkTags {
233
+ <Version extends ReactWorkTagVersion>(reactVersion: Version): Readonly<(typeof reactWorkTagsByVersion)[Version]>;
234
+ (reactVersion: string): Readonly<ReactWorkTagMap>;
235
+ }
236
+ type ReactWorkTag = Exclude<(typeof reactWorkTagsByVersion)[ReactWorkTagVersion][keyof ReactWorkTagMap], -1>;
237
+ type HostWorkTag = Exclude<(typeof reactWorkTagsByVersion)[ReactWorkTagVersion]["HostComponent"] | (typeof reactWorkTagsByVersion)[ReactWorkTagVersion]["HostHoistable"] | (typeof reactWorkTagsByVersion)[ReactWorkTagVersion]["HostSingleton"] | (typeof reactWorkTagsByVersion)[ReactWorkTagVersion]["HostText"], -1>;
238
+ declare const getReactWorkTags: GetReactWorkTags;
138
239
  //#endregion
139
240
  //#region src/types.d.ts
140
241
  type BundleType = ReactReconciler.BundleType;
@@ -171,7 +272,11 @@ interface ContextDependency<T> extends Omit<ReactReconciler.ContextDependency<T>
171
272
  memoizedValue?: T;
172
273
  observedBits?: number;
173
274
  }
275
+ interface DebugThenableState {
276
+ thenables?: unknown[];
277
+ }
174
278
  interface Dependencies extends Omit<ReactReconciler.Dependencies, "firstContext"> {
279
+ _debugThenableState?: DebugThenableState | unknown[];
175
280
  firstContext: ContextDependency<unknown> | null;
176
281
  }
177
282
  interface Effect {
@@ -193,6 +298,10 @@ interface ReactDebugInfo {
193
298
  env?: string;
194
299
  name?: string;
195
300
  }
301
+ interface ReactMemoCache {
302
+ data: unknown[][];
303
+ index: number;
304
+ }
196
305
  interface FiberDebugSource extends Source {
197
306
  columnNumber?: number;
198
307
  }
@@ -200,7 +309,7 @@ interface FiberUpdateQueue {
200
309
  [key: string]: unknown;
201
310
  dispatch?: unknown;
202
311
  lastEffect: Effect | null;
203
- memoCache?: unknown;
312
+ memoCache?: ReactMemoCache;
204
313
  }
205
314
  interface Fiber<T = unknown> extends Omit<ReactReconciler.Fiber, "alternate" | "_debugOwner" | "_debugSource" | "child" | "deletions" | "dependencies" | "memoizedProps" | "memoizedState" | "pendingProps" | "return" | "sibling" | "stateNode" | "tag" | "updateQueue"> {
206
315
  _debugInfo?: ReactDebugInfo[];
@@ -221,7 +330,7 @@ interface Fiber<T = unknown> extends Omit<ReactReconciler.Fiber, "alternate" | "
221
330
  sibling: Fiber | null;
222
331
  stateNode: T;
223
332
  tag: WorkTag;
224
- updateQueue: FiberUpdateQueue;
333
+ updateQueue: FiberUpdateQueue | null;
225
334
  }
226
335
  interface HostFiber<T = unknown> extends Fiber<T> {
227
336
  tag: HostWorkTag;
@@ -288,4 +397,40 @@ declare global {
288
397
  var __REACT_DEVTOOLS_GLOBAL_HOOK__: ReactDevToolsGlobalHook | undefined;
289
398
  }
290
399
  //#endregion
291
- export { ForwardRefTag as $, ReactDevToolsGlobalHook as A, ServerComponentInfo as B, OpaqueRoot as C, ReactContext as D, ReactConsumer as E, RefObject as F, Thenable as G, SuspenseHydrationCallbacks as H, RendererDispatcherRef as I, WorkTag as J, TransitionTracingCallbacks as K, RoleSelector as L, ReactProvider as M, ReactProviderType as N, ReactDebugInfo as O, ReactRenderer as P, DehydratedSuspenseComponentTag as Q, RootTag as R, OpaqueHandle as S, React$AbstractComponent as T, TestNameSelector as U, Source as V, TextSelector as W, ClassComponentTag as X, ActivityComponentTag as Y, ContextConsumerTag as Z, LanePriority as _, Dependencies as a, HostRootTag as at, MemoizedState as b, Fiber as c, LazyComponentTag as ct, FiberUpdateQueue as d, OffscreenComponentTag as dt, FragmentTag as et, Flags as f, SimpleMemoComponentTag as ft, HostFiber as g, HostConfig as h, ViewTransitionComponentTag as ht, CurrentDispatcherRef as i, HostPortalTag as it, ReactPortal as j, ReactDevToolsEventHandler as k, FiberDebugSource as l, LegacyHiddenComponentTag as lt, HookType as m, SuspenseListComponentTag as mt, ComponentSelector as n, HostComponentTag as nt, DevToolsConfig as o, HostSingletonTag as ot, HasPseudoClassSelector as p, SuspenseComponentTag as pt, TypeOfMode as q, ContextDependency as r, HostHoistableTag as rt, Effect as s, HostTextTag as st, BundleType as t, FunctionComponentTag as tt, FiberRoot as u, MemoComponentTag as ut, Lanes as v, Props as w, MutableSource as x, LegacyDispatcherRef as y, Selector as z };
400
+ //#region src/errors.d.ts
401
+ declare class BippyError extends Error {
402
+ constructor(message: string, cause?: unknown);
403
+ }
404
+ declare class BippyInstrumentationError extends BippyError {
405
+ readonly callbackName: string;
406
+ readonly instrumentationName: string;
407
+ constructor(instrumentationName: string, callbackName: string, cause: unknown);
408
+ }
409
+ declare class BippyReactDevToolsError extends BippyError {
410
+ readonly callbackName: string;
411
+ constructor(callbackName: string, cause: unknown);
412
+ }
413
+ declare class BippyHookListenerError extends BippyError {
414
+ readonly listenerName: string;
415
+ constructor(listenerName: string, cause: unknown);
416
+ }
417
+ declare class BippyHookInstallationError extends BippyError {
418
+ constructor(cause: unknown);
419
+ }
420
+ declare class BippyReactBuildError extends BippyError {
421
+ constructor(message: string, cause?: unknown);
422
+ }
423
+ declare class BippyHookInspectionError extends BippyError {
424
+ constructor(message: string, cause?: unknown);
425
+ }
426
+ declare class BippyUnsupportedHookError extends BippyHookInspectionError {
427
+ constructor(message: string, cause?: unknown);
428
+ }
429
+ declare class BippyHookRenderError extends BippyHookInspectionError {
430
+ constructor(message: string, cause?: unknown);
431
+ }
432
+ declare class BippySourceMapError extends BippyError {
433
+ constructor(message: string, cause?: unknown);
434
+ }
435
+ //#endregion
436
+ export { Source as $, LegacyDispatcherRef as A, ReactDevToolsEventHandler as B, Flags as C, HostFiber as D, HostConfig as E, Props as F, ReactProviderType as G, ReactMemoCache as H, React$AbstractComponent as I, RendererDispatcherRef as J, ReactRenderer as K, ReactConsumer as L, MutableSource as M, OpaqueHandle as N, LanePriority as O, OpaqueRoot as P, ServerComponentInfo as Q, ReactContext as R, FiberUpdateQueue as S, HookType as T, ReactPortal as U, ReactDevToolsGlobalHook as V, ReactProvider as W, RootTag as X, RoleSelector as Y, Selector as Z, DevToolsConfig as _, BippyHookRenderError as a, TypeOfMode as at, FiberDebugSource as b, BippyReactDevToolsError as c, ReactWorkTagMap as ct, BundleType as d, SuspenseHydrationCallbacks as et, ComponentSelector as f, Dependencies as g, DebugThenableState as h, BippyHookListenerError as i, TransitionTracingCallbacks as it, MemoizedState as j, Lanes as k, BippySourceMapError as l, ReactWorkTagVersion as lt, CurrentDispatcherRef as m, BippyHookInspectionError as n, TextSelector as nt, BippyInstrumentationError as o, WorkTag as ot, ContextDependency as p, RefObject as q, BippyHookInstallationError as r, Thenable as rt, BippyReactBuildError as s, ReactSymbols as st, BippyError as t, TestNameSelector as tt, BippyUnsupportedHookError as u, getReactWorkTags as ut, Effect as v, HasPseudoClassSelector as w, FiberRoot as x, Fiber as y, ReactDebugInfo as z };
package/dist/index.cjs CHANGED
@@ -6,4 +6,4 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rdt-hook.cjs");require("./install-hook-only.cjs");const t=require("./core2.cjs");exports.ActivityComponentTag=t.z,exports.BIPPY_INSTRUMENTATION_STRING=e.t,exports.CONCURRENT_MODE_NUMBER=t.M,exports.CONCURRENT_MODE_SYMBOL_DESCRIPTION=t.N,exports.CONCURRENT_MODE_SYMBOL_STRING=t.P,exports.ClassComponentTag=t.B,exports.ContextConsumerTag=t.V,exports.DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION=t.F,exports.DEPRECATED_ASYNC_MODE_SYMBOL_STRING=t.I,exports.DehydratedSuspenseComponentTag=t.H,exports.ELEMENT_TYPE_SYMBOL_STRING=t.L,exports.ForwardRefTag=t.U,exports.FragmentTag=t.W,exports.FunctionComponentTag=t.G,exports.HostComponentTag=t.K,exports.HostHoistableTag=t.q,exports.HostPortalTag=t.J,exports.HostRootTag=t.Y,exports.HostSingletonTag=t.X,exports.HostTextTag=t.Z,exports.LazyComponentTag=t.Q,exports.LegacyHiddenComponentTag=t.$,exports.MemoComponentTag=t.et,exports.OffscreenComponentTag=t.tt,exports.SimpleMemoComponentTag=t.nt,exports.SuspenseComponentTag=t.rt,exports.SuspenseListComponentTag=t.it,exports.TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING=t.R,exports.ViewTransitionComponentTag=t.at,exports._fiberRoots=t.t,exports._onActiveListeners=e.n,exports._renderers=e.r,exports.detectReactBuildType=t.n,exports.didFiberCommit=t.r,exports.didFiberRender=t.i,exports.getDisplayName=t.a,exports.getFiberFromHostInstance=t.o,exports.getFiberId=t.s,exports.getFiberStack=t.c,exports.getLatestFiber=t.l,exports.getMutatedHostFibers=t.u,exports.getNearestHostFiber=t.d,exports.getNearestHostFibers=t.f,exports.getRDTHook=e.i,exports.getTimings=t.p,exports.getType=t.m,exports.hasMemoCache=t.h,exports.hasRDTHook=e.a,exports.installRDTHook=e.o,exports.instrument=t.g,exports.isClientEnvironment=e.s,exports.isCompositeFiber=t._,exports.isFiber=t.v,exports.isHostFiber=t.y,exports.isInstrumentationActive=t.b,exports.isRealReactDevtools=e.c,exports.isValidElement=t.x,exports.isValidFiber=t.S,exports.onRendererInject=e.l,exports.overrideContext=t.C,exports.overrideHookState=t.w,exports.overrideProps=t.T,exports.patchRDTHook=e.u,exports.safelyInstallRDTHook=e.d,exports.setFiberId=t.E,exports.toUnsubscribe=e.p,exports.traverseContexts=t.D,exports.traverseFiber=t.O,exports.traverseProps=t.k,exports.traverseRenderedFibers=t.A,exports.traverseState=t.j,exports.version=e.f;
9
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rdt-hook.cjs");require("./install-hook-only.cjs");const t=require("./core2.cjs");exports.BIPPY_INSTRUMENTATION_STRING=e.t,exports.BippyError=e.m,exports.BippyHookInspectionError=e.h,exports.BippyHookInstallationError=e.g,exports.BippyHookListenerError=e._,exports.BippyHookRenderError=e.v,exports.BippyInstrumentationError=e.y,exports.BippyReactBuildError=e.b,exports.BippyReactDevToolsError=e.x,exports.BippySourceMapError=e.S,exports.BippyUnsupportedHookError=e.C,exports.ReactSymbols=t.N,exports._fiberRoots=t.t,exports._onActiveListeners=e.n,exports._renderers=e.r,exports.detectReactBuildType=t.n,exports.didFiberCommit=t.r,exports.didFiberRender=t.i,exports.getDisplayName=t.a,exports.getFiberFromHostInstance=t.o,exports.getFiberId=t.s,exports.getFiberStack=t.c,exports.getLatestFiber=t.l,exports.getMutatedHostFibers=t.u,exports.getNearestHostFiber=t.d,exports.getNearestHostFibers=t.f,exports.getRDTHook=e.i,exports.getReactWorkTags=t.P,exports.getTimings=t.p,exports.getType=t.m,exports.hasMemoCache=t.h,exports.hasRDTHook=e.a,exports.installRDTHook=e.o,exports.instrument=t.g,exports.isCompositeFiber=t._,exports.isFiber=t.v,exports.isHostFiber=t.y,exports.isInstrumentationActive=t.b,exports.isRealReactDevtools=e.s,exports.isValidElement=t.x,exports.isValidFiber=t.S,exports.onRendererInject=e.l,exports.overrideContext=t.C,exports.overrideHookState=t.w,exports.overrideProps=t.T,exports.patchRDTHook=e.u,exports.safelyInstallRDTHook=e.d,exports.setFiberId=t.E,exports.toUnsubscribe=e.p,exports.traverseContexts=t.D,exports.traverseFiber=t.O,exports.traverseProps=t.k,exports.traverseRenderedFibers=t.A,exports.traverseState=t.j,exports.version=e.f;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as ForwardRefTag, A as ReactDevToolsGlobalHook, B as ServerComponentInfo, C as OpaqueRoot, D as ReactContext, E as ReactConsumer, F as RefObject, G as Thenable, H as SuspenseHydrationCallbacks, I as RendererDispatcherRef, J as WorkTag, K as TransitionTracingCallbacks, L as RoleSelector, M as ReactProvider, N as ReactProviderType, O as ReactDebugInfo, P as ReactRenderer, Q as DehydratedSuspenseComponentTag, R as RootTag, S as OpaqueHandle, T as React$AbstractComponent, U as TestNameSelector, V as Source, W as TextSelector, X as ClassComponentTag, Y as ActivityComponentTag, Z as ContextConsumerTag, _ as LanePriority, a as Dependencies, at as HostRootTag, b as MemoizedState, c as Fiber, ct as LazyComponentTag, d as FiberUpdateQueue, dt as OffscreenComponentTag, et as FragmentTag, f as Flags, ft as SimpleMemoComponentTag, g as HostFiber, h as HostConfig, ht as ViewTransitionComponentTag, i as CurrentDispatcherRef, it as HostPortalTag, j as ReactPortal, k as ReactDevToolsEventHandler, l as FiberDebugSource, lt as LegacyHiddenComponentTag, m as HookType, mt as SuspenseListComponentTag, n as ComponentSelector, nt as HostComponentTag, o as DevToolsConfig, ot as HostSingletonTag, p as HasPseudoClassSelector, pt as SuspenseComponentTag, q as TypeOfMode, r as ContextDependency, rt as HostHoistableTag, s as Effect, st as HostTextTag, t as BundleType, tt as FunctionComponentTag, u as FiberRoot, ut as MemoComponentTag, v as Lanes, w as Props, x as MutableSource, y as LegacyDispatcherRef, z as Selector } from "./types.cjs";
2
- import { $ as DEPRECATED_ASYNC_MODE_SYMBOL_STRING, A as traverseContexts, B as installRDTHook, C as isInstrumentationActive, D as overrideHookState, E as overrideContext, F as BIPPY_INSTRUMENTATION_STRING, G as safelyInstallRDTHook, H as isRealReactDevtools, I as _onActiveListeners, J as toUnsubscribe, K as version, L as _renderers, M as traverseProps, N as traverseRenderedFibers, O as overrideProps, P as traverseState, Q as DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION, R as getRDTHook, S as isHostFiber, T as isValidFiber, U as onRendererInject, V as isClientEnvironment, W as patchRDTHook, X as CONCURRENT_MODE_SYMBOL_DESCRIPTION, Y as CONCURRENT_MODE_NUMBER, Z as CONCURRENT_MODE_SYMBOL_STRING, _ as getType, a as detectReactBuildType, b as isCompositeFiber, c as getDisplayName, d as getFiberStack, et as ELEMENT_TYPE_SYMBOL_STRING, f as getLatestFiber, g as getTimings, h as getNearestHostFibers, i as _fiberRoots, j as traverseFiber, k as setFiberId, l as getFiberFromHostInstance, m as getNearestHostFiber, n as RenderHandler, o as didFiberCommit, p as getMutatedHostFibers, q as Unsubscribe, r as RenderPhase, s as didFiberRender, t as InstrumentationOptions, tt as TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING, u as getFiberId, v as hasMemoCache, w as isValidElement, x as isFiber, y as instrument, z as hasRDTHook } from "./core.cjs";
3
- export { ActivityComponentTag, BIPPY_INSTRUMENTATION_STRING, type BundleType, CONCURRENT_MODE_NUMBER, CONCURRENT_MODE_SYMBOL_DESCRIPTION, CONCURRENT_MODE_SYMBOL_STRING, ClassComponentTag, type ComponentSelector, ContextConsumerTag, type ContextDependency, type CurrentDispatcherRef, DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION, DEPRECATED_ASYNC_MODE_SYMBOL_STRING, DehydratedSuspenseComponentTag, type Dependencies, type DevToolsConfig, ELEMENT_TYPE_SYMBOL_STRING, type Effect, type Fiber, type FiberDebugSource, type FiberRoot, type FiberUpdateQueue, type Flags, ForwardRefTag, FragmentTag, FunctionComponentTag, type HasPseudoClassSelector, type HookType, HostComponentTag, type HostConfig, type HostFiber, HostHoistableTag, HostPortalTag, HostRootTag, HostSingletonTag, HostTextTag, InstrumentationOptions, type LanePriority, type Lanes, LazyComponentTag, type LegacyDispatcherRef, LegacyHiddenComponentTag, MemoComponentTag, type MemoizedState, type MutableSource, OffscreenComponentTag, type OpaqueHandle, type OpaqueRoot, type Props, type React$AbstractComponent, type ReactConsumer, type ReactContext, type ReactDebugInfo, type ReactDevToolsEventHandler, type ReactDevToolsGlobalHook, type ReactPortal, type ReactProvider, type ReactProviderType, type ReactRenderer, type RefObject, RenderHandler, RenderPhase, type RendererDispatcherRef, type RoleSelector, type RootTag, type Selector, type ServerComponentInfo, SimpleMemoComponentTag, type Source, SuspenseComponentTag, type SuspenseHydrationCallbacks, SuspenseListComponentTag, TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING, type TestNameSelector, type TextSelector, type Thenable, type TransitionTracingCallbacks, type TypeOfMode, Unsubscribe, ViewTransitionComponentTag, type WorkTag, _fiberRoots, _onActiveListeners, _renderers, detectReactBuildType, didFiberCommit, didFiberRender, getDisplayName, getFiberFromHostInstance, getFiberId, getFiberStack, getLatestFiber, getMutatedHostFibers, getNearestHostFiber, getNearestHostFibers, getRDTHook, getTimings, getType, hasMemoCache, hasRDTHook, installRDTHook, instrument, isClientEnvironment, isCompositeFiber, isFiber, isHostFiber, isInstrumentationActive, isRealReactDevtools, isValidElement, isValidFiber, onRendererInject, overrideContext, overrideHookState, overrideProps, patchRDTHook, safelyInstallRDTHook, setFiberId, toUnsubscribe, traverseContexts, traverseFiber, traverseProps, traverseRenderedFibers, traverseState, version };
1
+ import { $ as Source, A as LegacyDispatcherRef, B as ReactDevToolsEventHandler, C as Flags, D as HostFiber, E as HostConfig, F as Props, G as ReactProviderType, H as ReactMemoCache, I as React$AbstractComponent, J as RendererDispatcherRef, K as ReactRenderer, L as ReactConsumer, M as MutableSource, N as OpaqueHandle, O as LanePriority, P as OpaqueRoot, Q as ServerComponentInfo, R as ReactContext, S as FiberUpdateQueue, T as HookType, U as ReactPortal, V as ReactDevToolsGlobalHook, W as ReactProvider, X as RootTag, Y as RoleSelector, Z as Selector, _ as DevToolsConfig, a as BippyHookRenderError, at as TypeOfMode, b as FiberDebugSource, c as BippyReactDevToolsError, ct as ReactWorkTagMap, d as BundleType, et as SuspenseHydrationCallbacks, f as ComponentSelector, g as Dependencies, h as DebugThenableState, i as BippyHookListenerError, it as TransitionTracingCallbacks, j as MemoizedState, k as Lanes, l as BippySourceMapError, lt as ReactWorkTagVersion, m as CurrentDispatcherRef, n as BippyHookInspectionError, nt as TextSelector, o as BippyInstrumentationError, ot as WorkTag, p as ContextDependency, q as RefObject, r as BippyHookInstallationError, rt as Thenable, s as BippyReactBuildError, st as ReactSymbols, t as BippyError, tt as TestNameSelector, u as BippyUnsupportedHookError, ut as getReactWorkTags, v as Effect, w as HasPseudoClassSelector, x as FiberRoot, y as Fiber, z as ReactDebugInfo } from "./errors.cjs";
2
+ import { A as setFiberId, B as hasRDTHook, C as isHostFiber, D as overrideContext, E as isValidFiber, F as traverseState, G as safelyInstallRDTHook, H as isRealReactDevtools, I as BIPPY_INSTRUMENTATION_STRING, J as toUnsubscribe, K as version, L as _onActiveListeners, M as traverseFiber, N as traverseProps, O as overrideHookState, P as traverseRenderedFibers, R as _renderers, S as isFiber, T as isValidElement, U as onRendererInject, V as installRDTHook, W as patchRDTHook, _ as getTimings, a as _fiberRoots, b as instrument, c as didFiberRender, d as getFiberId, f as getFiberStack, g as getNearestHostFibers, h as getNearestHostFiber, i as RenderPhase, j as traverseContexts, k as overrideProps, l as getDisplayName, m as getMutatedHostFibers, n as InstrumentationOptions, o as detectReactBuildType, p as getLatestFiber, q as Unsubscribe, r as RenderHandler, s as didFiberCommit, t as FiberTimings, u as getFiberFromHostInstance, v as getType, w as isInstrumentationActive, x as isCompositeFiber, y as hasMemoCache, z as getRDTHook } from "./core.cjs";
3
+ export { BIPPY_INSTRUMENTATION_STRING, BippyError, BippyHookInspectionError, BippyHookInstallationError, BippyHookListenerError, BippyHookRenderError, BippyInstrumentationError, BippyReactBuildError, BippyReactDevToolsError, BippySourceMapError, BippyUnsupportedHookError, type BundleType, type ComponentSelector, type ContextDependency, type CurrentDispatcherRef, type DebugThenableState, type Dependencies, type DevToolsConfig, type Effect, type Fiber, type FiberDebugSource, type FiberRoot, FiberTimings, type FiberUpdateQueue, type Flags, type HasPseudoClassSelector, type HookType, type HostConfig, type HostFiber, InstrumentationOptions, type LanePriority, type Lanes, type LegacyDispatcherRef, type MemoizedState, type MutableSource, type OpaqueHandle, type OpaqueRoot, type Props, type React$AbstractComponent, type ReactConsumer, type ReactContext, type ReactDebugInfo, type ReactDevToolsEventHandler, type ReactDevToolsGlobalHook, type ReactMemoCache, type ReactPortal, type ReactProvider, type ReactProviderType, type ReactRenderer, ReactSymbols, type ReactWorkTagMap, type ReactWorkTagVersion, type RefObject, RenderHandler, RenderPhase, type RendererDispatcherRef, type RoleSelector, type RootTag, type Selector, type ServerComponentInfo, type Source, type SuspenseHydrationCallbacks, type TestNameSelector, type TextSelector, type Thenable, type TransitionTracingCallbacks, type TypeOfMode, Unsubscribe, type WorkTag, _fiberRoots, _onActiveListeners, _renderers, detectReactBuildType, didFiberCommit, didFiberRender, getDisplayName, getFiberFromHostInstance, getFiberId, getFiberStack, getLatestFiber, getMutatedHostFibers, getNearestHostFiber, getNearestHostFibers, getRDTHook, getReactWorkTags, getTimings, getType, hasMemoCache, hasRDTHook, installRDTHook, instrument, isCompositeFiber, isFiber, isHostFiber, isInstrumentationActive, isRealReactDevtools, isValidElement, isValidFiber, onRendererInject, overrideContext, overrideHookState, overrideProps, patchRDTHook, safelyInstallRDTHook, setFiberId, toUnsubscribe, traverseContexts, traverseFiber, traverseProps, traverseRenderedFibers, traverseState, version };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as ForwardRefTag, A as ReactDevToolsGlobalHook, B as ServerComponentInfo, C as OpaqueRoot, D as ReactContext, E as ReactConsumer, F as RefObject, G as Thenable, H as SuspenseHydrationCallbacks, I as RendererDispatcherRef, J as WorkTag, K as TransitionTracingCallbacks, L as RoleSelector, M as ReactProvider, N as ReactProviderType, O as ReactDebugInfo, P as ReactRenderer, Q as DehydratedSuspenseComponentTag, R as RootTag, S as OpaqueHandle, T as React$AbstractComponent, U as TestNameSelector, V as Source, W as TextSelector, X as ClassComponentTag, Y as ActivityComponentTag, Z as ContextConsumerTag, _ as LanePriority, a as Dependencies, at as HostRootTag, b as MemoizedState, c as Fiber, ct as LazyComponentTag, d as FiberUpdateQueue, dt as OffscreenComponentTag, et as FragmentTag, f as Flags, ft as SimpleMemoComponentTag, g as HostFiber, h as HostConfig, ht as ViewTransitionComponentTag, i as CurrentDispatcherRef, it as HostPortalTag, j as ReactPortal, k as ReactDevToolsEventHandler, l as FiberDebugSource, lt as LegacyHiddenComponentTag, m as HookType, mt as SuspenseListComponentTag, n as ComponentSelector, nt as HostComponentTag, o as DevToolsConfig, ot as HostSingletonTag, p as HasPseudoClassSelector, pt as SuspenseComponentTag, q as TypeOfMode, r as ContextDependency, rt as HostHoistableTag, s as Effect, st as HostTextTag, t as BundleType, tt as FunctionComponentTag, u as FiberRoot, ut as MemoComponentTag, v as Lanes, w as Props, x as MutableSource, y as LegacyDispatcherRef, z as Selector } from "./types.js";
2
- import { $ as DEPRECATED_ASYNC_MODE_SYMBOL_STRING, A as traverseContexts, B as installRDTHook, C as isInstrumentationActive, D as overrideHookState, E as overrideContext, F as BIPPY_INSTRUMENTATION_STRING, G as safelyInstallRDTHook, H as isRealReactDevtools, I as _onActiveListeners, J as toUnsubscribe, K as version, L as _renderers, M as traverseProps, N as traverseRenderedFibers, O as overrideProps, P as traverseState, Q as DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION, R as getRDTHook, S as isHostFiber, T as isValidFiber, U as onRendererInject, V as isClientEnvironment, W as patchRDTHook, X as CONCURRENT_MODE_SYMBOL_DESCRIPTION, Y as CONCURRENT_MODE_NUMBER, Z as CONCURRENT_MODE_SYMBOL_STRING, _ as getType, a as detectReactBuildType, b as isCompositeFiber, c as getDisplayName, d as getFiberStack, et as ELEMENT_TYPE_SYMBOL_STRING, f as getLatestFiber, g as getTimings, h as getNearestHostFibers, i as _fiberRoots, j as traverseFiber, k as setFiberId, l as getFiberFromHostInstance, m as getNearestHostFiber, n as RenderHandler, o as didFiberCommit, p as getMutatedHostFibers, q as Unsubscribe, r as RenderPhase, s as didFiberRender, t as InstrumentationOptions, tt as TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING, u as getFiberId, v as hasMemoCache, w as isValidElement, x as isFiber, y as instrument, z as hasRDTHook } from "./core.js";
3
- export { ActivityComponentTag, BIPPY_INSTRUMENTATION_STRING, type BundleType, CONCURRENT_MODE_NUMBER, CONCURRENT_MODE_SYMBOL_DESCRIPTION, CONCURRENT_MODE_SYMBOL_STRING, ClassComponentTag, type ComponentSelector, ContextConsumerTag, type ContextDependency, type CurrentDispatcherRef, DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION, DEPRECATED_ASYNC_MODE_SYMBOL_STRING, DehydratedSuspenseComponentTag, type Dependencies, type DevToolsConfig, ELEMENT_TYPE_SYMBOL_STRING, type Effect, type Fiber, type FiberDebugSource, type FiberRoot, type FiberUpdateQueue, type Flags, ForwardRefTag, FragmentTag, FunctionComponentTag, type HasPseudoClassSelector, type HookType, HostComponentTag, type HostConfig, type HostFiber, HostHoistableTag, HostPortalTag, HostRootTag, HostSingletonTag, HostTextTag, InstrumentationOptions, type LanePriority, type Lanes, LazyComponentTag, type LegacyDispatcherRef, LegacyHiddenComponentTag, MemoComponentTag, type MemoizedState, type MutableSource, OffscreenComponentTag, type OpaqueHandle, type OpaqueRoot, type Props, type React$AbstractComponent, type ReactConsumer, type ReactContext, type ReactDebugInfo, type ReactDevToolsEventHandler, type ReactDevToolsGlobalHook, type ReactPortal, type ReactProvider, type ReactProviderType, type ReactRenderer, type RefObject, RenderHandler, RenderPhase, type RendererDispatcherRef, type RoleSelector, type RootTag, type Selector, type ServerComponentInfo, SimpleMemoComponentTag, type Source, SuspenseComponentTag, type SuspenseHydrationCallbacks, SuspenseListComponentTag, TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING, type TestNameSelector, type TextSelector, type Thenable, type TransitionTracingCallbacks, type TypeOfMode, Unsubscribe, ViewTransitionComponentTag, type WorkTag, _fiberRoots, _onActiveListeners, _renderers, detectReactBuildType, didFiberCommit, didFiberRender, getDisplayName, getFiberFromHostInstance, getFiberId, getFiberStack, getLatestFiber, getMutatedHostFibers, getNearestHostFiber, getNearestHostFibers, getRDTHook, getTimings, getType, hasMemoCache, hasRDTHook, installRDTHook, instrument, isClientEnvironment, isCompositeFiber, isFiber, isHostFiber, isInstrumentationActive, isRealReactDevtools, isValidElement, isValidFiber, onRendererInject, overrideContext, overrideHookState, overrideProps, patchRDTHook, safelyInstallRDTHook, setFiberId, toUnsubscribe, traverseContexts, traverseFiber, traverseProps, traverseRenderedFibers, traverseState, version };
1
+ import { $ as Source, A as LegacyDispatcherRef, B as ReactDevToolsEventHandler, C as Flags, D as HostFiber, E as HostConfig, F as Props, G as ReactProviderType, H as ReactMemoCache, I as React$AbstractComponent, J as RendererDispatcherRef, K as ReactRenderer, L as ReactConsumer, M as MutableSource, N as OpaqueHandle, O as LanePriority, P as OpaqueRoot, Q as ServerComponentInfo, R as ReactContext, S as FiberUpdateQueue, T as HookType, U as ReactPortal, V as ReactDevToolsGlobalHook, W as ReactProvider, X as RootTag, Y as RoleSelector, Z as Selector, _ as DevToolsConfig, a as BippyHookRenderError, at as TypeOfMode, b as FiberDebugSource, c as BippyReactDevToolsError, ct as ReactWorkTagMap, d as BundleType, et as SuspenseHydrationCallbacks, f as ComponentSelector, g as Dependencies, h as DebugThenableState, i as BippyHookListenerError, it as TransitionTracingCallbacks, j as MemoizedState, k as Lanes, l as BippySourceMapError, lt as ReactWorkTagVersion, m as CurrentDispatcherRef, n as BippyHookInspectionError, nt as TextSelector, o as BippyInstrumentationError, ot as WorkTag, p as ContextDependency, q as RefObject, r as BippyHookInstallationError, rt as Thenable, s as BippyReactBuildError, st as ReactSymbols, t as BippyError, tt as TestNameSelector, u as BippyUnsupportedHookError, ut as getReactWorkTags, v as Effect, w as HasPseudoClassSelector, x as FiberRoot, y as Fiber, z as ReactDebugInfo } from "./errors.js";
2
+ import { A as setFiberId, B as hasRDTHook, C as isHostFiber, D as overrideContext, E as isValidFiber, F as traverseState, G as safelyInstallRDTHook, H as isRealReactDevtools, I as BIPPY_INSTRUMENTATION_STRING, J as toUnsubscribe, K as version, L as _onActiveListeners, M as traverseFiber, N as traverseProps, O as overrideHookState, P as traverseRenderedFibers, R as _renderers, S as isFiber, T as isValidElement, U as onRendererInject, V as installRDTHook, W as patchRDTHook, _ as getTimings, a as _fiberRoots, b as instrument, c as didFiberRender, d as getFiberId, f as getFiberStack, g as getNearestHostFibers, h as getNearestHostFiber, i as RenderPhase, j as traverseContexts, k as overrideProps, l as getDisplayName, m as getMutatedHostFibers, n as InstrumentationOptions, o as detectReactBuildType, p as getLatestFiber, q as Unsubscribe, r as RenderHandler, s as didFiberCommit, t as FiberTimings, u as getFiberFromHostInstance, v as getType, w as isInstrumentationActive, x as isCompositeFiber, y as hasMemoCache, z as getRDTHook } from "./core.js";
3
+ export { BIPPY_INSTRUMENTATION_STRING, BippyError, BippyHookInspectionError, BippyHookInstallationError, BippyHookListenerError, BippyHookRenderError, BippyInstrumentationError, BippyReactBuildError, BippyReactDevToolsError, BippySourceMapError, BippyUnsupportedHookError, type BundleType, type ComponentSelector, type ContextDependency, type CurrentDispatcherRef, type DebugThenableState, type Dependencies, type DevToolsConfig, type Effect, type Fiber, type FiberDebugSource, type FiberRoot, FiberTimings, type FiberUpdateQueue, type Flags, type HasPseudoClassSelector, type HookType, type HostConfig, type HostFiber, InstrumentationOptions, type LanePriority, type Lanes, type LegacyDispatcherRef, type MemoizedState, type MutableSource, type OpaqueHandle, type OpaqueRoot, type Props, type React$AbstractComponent, type ReactConsumer, type ReactContext, type ReactDebugInfo, type ReactDevToolsEventHandler, type ReactDevToolsGlobalHook, type ReactMemoCache, type ReactPortal, type ReactProvider, type ReactProviderType, type ReactRenderer, ReactSymbols, type ReactWorkTagMap, type ReactWorkTagVersion, type RefObject, RenderHandler, RenderPhase, type RendererDispatcherRef, type RoleSelector, type RootTag, type Selector, type ServerComponentInfo, type Source, type SuspenseHydrationCallbacks, type TestNameSelector, type TextSelector, type Thenable, type TransitionTracingCallbacks, type TypeOfMode, Unsubscribe, type WorkTag, _fiberRoots, _onActiveListeners, _renderers, detectReactBuildType, didFiberCommit, didFiberRender, getDisplayName, getFiberFromHostInstance, getFiberId, getFiberStack, getLatestFiber, getMutatedHostFibers, getNearestHostFiber, getNearestHostFibers, getRDTHook, getReactWorkTags, getTimings, getType, hasMemoCache, hasRDTHook, installRDTHook, instrument, isCompositeFiber, isFiber, isHostFiber, isInstrumentationActive, isRealReactDevtools, isValidElement, isValidFiber, onRendererInject, overrideContext, overrideHookState, overrideProps, patchRDTHook, safelyInstallRDTHook, setFiberId, toUnsubscribe, traverseContexts, traverseFiber, traverseProps, traverseRenderedFibers, traverseState, version };