bippy 0.3.11 → 0.3.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.
- package/dist/{chunk-PFIUJLPR.js → chunk-3IP2OB7N.js} +1 -1
- package/dist/{chunk-XBPP76LT.js → chunk-DIRPAAVW.js} +11 -10
- package/dist/{chunk-OFBKJCW4.cjs → chunk-HUPJOARH.cjs} +2 -2
- package/dist/{chunk-AZAQFAVC.cjs → chunk-IHWCFWLG.cjs} +19 -18
- package/dist/{chunk-VP3VZH6N.js → chunk-LQCLSVM3.js} +1 -1
- package/dist/{chunk-G7KC776P.cjs → chunk-ZIMPO55S.cjs} +1 -1
- package/dist/core.cjs +71 -71
- package/dist/core.js +1 -1
- package/dist/experiments/inspect.cjs +10 -10
- package/dist/experiments/inspect.js +3 -3
- package/dist/index.cjs +72 -72
- package/dist/index.global.js +1 -1
- package/dist/index.js +2 -2
- package/dist/jsx-runtime.cjs +2 -2
- package/dist/jsx-runtime.js +2 -2
- package/dist/source.cjs +76 -76
- package/dist/source.global.js +1 -1
- package/dist/source.js +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _renderers, isHostFiber, getType, traverseFiber, isCompositeFiber, ClassComponentTag, getDisplayName } from './chunk-
|
|
1
|
+
import { getRDTHook, _renderers, isHostFiber, getType, traverseFiber, isCompositeFiber, ClassComponentTag, getDisplayName } from './chunk-LQCLSVM3.js';
|
|
2
2
|
import { __commonJS, __toESM } from './chunk-EPG3GO3H.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -2039,13 +2039,10 @@ var parseStackFrame = async (frame) => {
|
|
|
2039
2039
|
if (!source.length) {
|
|
2040
2040
|
return null;
|
|
2041
2041
|
}
|
|
2042
|
-
const { file, line, col } = source[0];
|
|
2043
|
-
if (!
|
|
2042
|
+
const { file: fileName, line: lineNumber, col: columnNumber = 0 } = source[0];
|
|
2043
|
+
if (!fileName || !lineNumber) {
|
|
2044
2044
|
return null;
|
|
2045
2045
|
}
|
|
2046
|
-
const fileName = file || "";
|
|
2047
|
-
const lineNumber = line || 0;
|
|
2048
|
-
const columnNumber = col || 0;
|
|
2049
2046
|
const response = await fetch(getActualFileSource(fileName));
|
|
2050
2047
|
if (response.ok) {
|
|
2051
2048
|
const content = await response.text();
|
|
@@ -2056,9 +2053,9 @@ var parseStackFrame = async (frame) => {
|
|
|
2056
2053
|
column: columnNumber
|
|
2057
2054
|
});
|
|
2058
2055
|
return {
|
|
2059
|
-
fileName: sourcemap.file ||
|
|
2060
|
-
lineNumber: result.line
|
|
2061
|
-
columnNumber: result.column
|
|
2056
|
+
fileName: sourcemap.file || result.source,
|
|
2057
|
+
lineNumber: result.line,
|
|
2058
|
+
columnNumber: result.column
|
|
2062
2059
|
};
|
|
2063
2060
|
}
|
|
2064
2061
|
}
|
|
@@ -2194,7 +2191,11 @@ ${sampleLines[s].replace(" at new ", " at ")}`;
|
|
|
2194
2191
|
return syntheticFrame;
|
|
2195
2192
|
};
|
|
2196
2193
|
var getCurrentDispatcher = () => {
|
|
2197
|
-
|
|
2194
|
+
const rdtHook = getRDTHook();
|
|
2195
|
+
for (const renderer of [
|
|
2196
|
+
...Array.from(_renderers),
|
|
2197
|
+
...Array.from(rdtHook.renderers.values())
|
|
2198
|
+
]) {
|
|
2198
2199
|
const currentDispatcherRef = renderer.currentDispatcherRef;
|
|
2199
2200
|
if (currentDispatcherRef) {
|
|
2200
2201
|
return currentDispatcherRef.H || currentDispatcherRef.current;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZIMPO55S_cjs = require('./chunk-ZIMPO55S.cjs');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @license bippy
|
|
@@ -12,4 +12,4 @@ var chunkG7KC776P_cjs = require('./chunk-G7KC776P.cjs');
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
// src/index.ts
|
|
15
|
-
|
|
15
|
+
chunkZIMPO55S_cjs.safelyInstallRDTHook();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZIMPO55S_cjs = require('./chunk-ZIMPO55S.cjs');
|
|
4
4
|
var chunkAQ674A4M_cjs = require('./chunk-AQ674A4M.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -2041,13 +2041,10 @@ var parseStackFrame = async (frame) => {
|
|
|
2041
2041
|
if (!source.length) {
|
|
2042
2042
|
return null;
|
|
2043
2043
|
}
|
|
2044
|
-
const { file, line, col } = source[0];
|
|
2045
|
-
if (!
|
|
2044
|
+
const { file: fileName, line: lineNumber, col: columnNumber = 0 } = source[0];
|
|
2045
|
+
if (!fileName || !lineNumber) {
|
|
2046
2046
|
return null;
|
|
2047
2047
|
}
|
|
2048
|
-
const fileName = file || "";
|
|
2049
|
-
const lineNumber = line || 0;
|
|
2050
|
-
const columnNumber = col || 0;
|
|
2051
2048
|
const response = await fetch(getActualFileSource(fileName));
|
|
2052
2049
|
if (response.ok) {
|
|
2053
2050
|
const content = await response.text();
|
|
@@ -2058,9 +2055,9 @@ var parseStackFrame = async (frame) => {
|
|
|
2058
2055
|
column: columnNumber
|
|
2059
2056
|
});
|
|
2060
2057
|
return {
|
|
2061
|
-
fileName: sourcemap.file ||
|
|
2062
|
-
lineNumber: result.line
|
|
2063
|
-
columnNumber: result.column
|
|
2058
|
+
fileName: sourcemap.file || result.source,
|
|
2059
|
+
lineNumber: result.line,
|
|
2060
|
+
columnNumber: result.column
|
|
2064
2061
|
};
|
|
2065
2062
|
}
|
|
2066
2063
|
}
|
|
@@ -2173,7 +2170,7 @@ var describeNativeComponentFrame = (fn, construct) => {
|
|
|
2173
2170
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
2174
2171
|
let frame = `
|
|
2175
2172
|
${sampleLines[s].replace(" at new ", " at ")}`;
|
|
2176
|
-
const displayName =
|
|
2173
|
+
const displayName = chunkZIMPO55S_cjs.getDisplayName(fn);
|
|
2177
2174
|
if (displayName && frame.includes("<anonymous>")) {
|
|
2178
2175
|
frame = frame.replace("<anonymous>", displayName);
|
|
2179
2176
|
}
|
|
@@ -2191,12 +2188,16 @@ ${sampleLines[s].replace(" at new ", " at ")}`;
|
|
|
2191
2188
|
setCurrentDispatcher(previousDispatcher);
|
|
2192
2189
|
reenableLogs(prevLogs);
|
|
2193
2190
|
}
|
|
2194
|
-
const name = fn ?
|
|
2191
|
+
const name = fn ? chunkZIMPO55S_cjs.getDisplayName(fn) : "";
|
|
2195
2192
|
const syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
2196
2193
|
return syntheticFrame;
|
|
2197
2194
|
};
|
|
2198
2195
|
var getCurrentDispatcher = () => {
|
|
2199
|
-
|
|
2196
|
+
const rdtHook = chunkZIMPO55S_cjs.getRDTHook();
|
|
2197
|
+
for (const renderer of [
|
|
2198
|
+
...Array.from(chunkZIMPO55S_cjs._renderers),
|
|
2199
|
+
...Array.from(rdtHook.renderers.values())
|
|
2200
|
+
]) {
|
|
2200
2201
|
const currentDispatcherRef = renderer.currentDispatcherRef;
|
|
2201
2202
|
if (currentDispatcherRef) {
|
|
2202
2203
|
return currentDispatcherRef.H || currentDispatcherRef.current;
|
|
@@ -2205,7 +2206,7 @@ var getCurrentDispatcher = () => {
|
|
|
2205
2206
|
return null;
|
|
2206
2207
|
};
|
|
2207
2208
|
var setCurrentDispatcher = (value) => {
|
|
2208
|
-
for (const renderer of
|
|
2209
|
+
for (const renderer of chunkZIMPO55S_cjs._renderers) {
|
|
2209
2210
|
const currentDispatcherRef = renderer.currentDispatcherRef;
|
|
2210
2211
|
if (currentDispatcherRef) {
|
|
2211
2212
|
if ("H" in currentDispatcherRef) {
|
|
@@ -2233,21 +2234,21 @@ var getFiberSource = async (fiber) => {
|
|
|
2233
2234
|
if (!currentDispatcherRef) {
|
|
2234
2235
|
return null;
|
|
2235
2236
|
}
|
|
2236
|
-
const componentFunction =
|
|
2237
|
-
|
|
2237
|
+
const componentFunction = chunkZIMPO55S_cjs.isHostFiber(fiber) ? chunkZIMPO55S_cjs.getType(
|
|
2238
|
+
chunkZIMPO55S_cjs.traverseFiber(
|
|
2238
2239
|
fiber,
|
|
2239
2240
|
(f) => {
|
|
2240
|
-
if (
|
|
2241
|
+
if (chunkZIMPO55S_cjs.isCompositeFiber(f)) return true;
|
|
2241
2242
|
},
|
|
2242
2243
|
true
|
|
2243
2244
|
)?.type
|
|
2244
|
-
) :
|
|
2245
|
+
) : chunkZIMPO55S_cjs.getType(fiber.type);
|
|
2245
2246
|
if (!componentFunction || reentry) {
|
|
2246
2247
|
return null;
|
|
2247
2248
|
}
|
|
2248
2249
|
const frame = describeNativeComponentFrame(
|
|
2249
2250
|
componentFunction,
|
|
2250
|
-
fiber.tag ===
|
|
2251
|
+
fiber.tag === chunkZIMPO55S_cjs.ClassComponentTag
|
|
2251
2252
|
);
|
|
2252
2253
|
return parseStackFrame(frame);
|
|
2253
2254
|
};
|
package/dist/core.cjs
CHANGED
|
@@ -1,287 +1,287 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZIMPO55S_cjs = require('./chunk-ZIMPO55S.cjs');
|
|
4
4
|
require('./chunk-AQ674A4M.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "BIPPY_INSTRUMENTATION_STRING", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkZIMPO55S_cjs.BIPPY_INSTRUMENTATION_STRING; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "CONCURRENT_MODE_NUMBER", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkZIMPO55S_cjs.CONCURRENT_MODE_NUMBER; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "CONCURRENT_MODE_SYMBOL_STRING", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkZIMPO55S_cjs.CONCURRENT_MODE_SYMBOL_STRING; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ClassComponentTag", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkZIMPO55S_cjs.ClassComponentTag; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ContextConsumerTag", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkZIMPO55S_cjs.ContextConsumerTag; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "DEPRECATED_ASYNC_MODE_SYMBOL_STRING", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkZIMPO55S_cjs.DEPRECATED_ASYNC_MODE_SYMBOL_STRING; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "DehydratedSuspenseComponentTag", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkZIMPO55S_cjs.DehydratedSuspenseComponentTag; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "ELEMENT_TYPE_SYMBOL_STRING", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkZIMPO55S_cjs.ELEMENT_TYPE_SYMBOL_STRING; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "ForwardRefTag", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkZIMPO55S_cjs.ForwardRefTag; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "FragmentTag", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkZIMPO55S_cjs.FragmentTag; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "FunctionComponentTag", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkZIMPO55S_cjs.FunctionComponentTag; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "HostComponentTag", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkZIMPO55S_cjs.HostComponentTag; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "HostHoistableTag", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkZIMPO55S_cjs.HostHoistableTag; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "HostRootTag", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkZIMPO55S_cjs.HostRootTag; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "HostSingletonTag", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkZIMPO55S_cjs.HostSingletonTag; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "HostTextTag", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkZIMPO55S_cjs.HostTextTag; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "INSTALL_ERROR", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkZIMPO55S_cjs.INSTALL_ERROR; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "INSTALL_HOOK_SCRIPT_STRING", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkZIMPO55S_cjs.INSTALL_HOOK_SCRIPT_STRING; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "LegacyHiddenComponentTag", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkZIMPO55S_cjs.LegacyHiddenComponentTag; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "MemoComponentTag", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkZIMPO55S_cjs.MemoComponentTag; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "OffscreenComponentTag", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkZIMPO55S_cjs.OffscreenComponentTag; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "SimpleMemoComponentTag", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkZIMPO55S_cjs.SimpleMemoComponentTag; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "SuspenseComponentTag", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkZIMPO55S_cjs.SuspenseComponentTag; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkZIMPO55S_cjs.TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "_fiberRoots", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkZIMPO55S_cjs._fiberRoots; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "_renderers", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkZIMPO55S_cjs._renderers; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "createFiberVisitor", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkZIMPO55S_cjs.createFiberVisitor; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "detectReactBuildType", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkZIMPO55S_cjs.detectReactBuildType; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "didFiberCommit", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkZIMPO55S_cjs.didFiberCommit; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "didFiberRender", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkZIMPO55S_cjs.didFiberRender; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "fiberIdMap", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkZIMPO55S_cjs.fiberIdMap; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "getDisplayName", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkZIMPO55S_cjs.getDisplayName; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "getFiberFromHostInstance", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkZIMPO55S_cjs.getFiberFromHostInstance; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "getFiberId", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkZIMPO55S_cjs.getFiberId; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "getFiberStack", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkZIMPO55S_cjs.getFiberStack; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "getLatestFiber", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkZIMPO55S_cjs.getLatestFiber; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "getMutatedHostFibers", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkZIMPO55S_cjs.getMutatedHostFibers; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "getNearestHostFiber", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkZIMPO55S_cjs.getNearestHostFiber; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "getNearestHostFibers", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkZIMPO55S_cjs.getNearestHostFibers; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "getRDTHook", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkZIMPO55S_cjs.getRDTHook; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "getTimings", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkZIMPO55S_cjs.getTimings; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "getType", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkZIMPO55S_cjs.getType; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "hasMemoCache", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkZIMPO55S_cjs.hasMemoCache; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "hasRDTHook", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkZIMPO55S_cjs.hasRDTHook; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "installRDTHook", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkZIMPO55S_cjs.installRDTHook; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "instrument", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkZIMPO55S_cjs.instrument; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "isClientEnvironment", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkZIMPO55S_cjs.isClientEnvironment; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "isCompositeFiber", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkZIMPO55S_cjs.isCompositeFiber; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "isHostFiber", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkZIMPO55S_cjs.isHostFiber; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "isInstrumentationActive", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkZIMPO55S_cjs.isInstrumentationActive; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "isReactRefresh", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkZIMPO55S_cjs.isReactRefresh; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "isRealReactDevtools", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkZIMPO55S_cjs.isRealReactDevtools; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "isValidElement", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkZIMPO55S_cjs.isValidElement; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "isValidFiber", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkZIMPO55S_cjs.isValidFiber; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "mountFiberRecursively", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkZIMPO55S_cjs.mountFiberRecursively; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "onCommitFiberRoot", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkZIMPO55S_cjs.onCommitFiberRoot; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "patchRDTHook", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkZIMPO55S_cjs.patchRDTHook; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "safelyInstallRDTHook", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkZIMPO55S_cjs.safelyInstallRDTHook; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "secure", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkZIMPO55S_cjs.secure; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "setFiberId", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkZIMPO55S_cjs.setFiberId; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "shouldFilterFiber", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkZIMPO55S_cjs.shouldFilterFiber; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "traverseContexts", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkZIMPO55S_cjs.traverseContexts; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "traverseFiber", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkZIMPO55S_cjs.traverseFiber; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "traverseProps", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkZIMPO55S_cjs.traverseProps; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "traverseRenderedFibers", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkZIMPO55S_cjs.traverseRenderedFibers; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "traverseState", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkZIMPO55S_cjs.traverseState; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "unmountFiber", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkZIMPO55S_cjs.unmountFiber; }
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(exports, "unmountFiberChildrenRecursively", {
|
|
277
277
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkZIMPO55S_cjs.unmountFiberChildrenRecursively; }
|
|
279
279
|
});
|
|
280
280
|
Object.defineProperty(exports, "updateFiberRecursively", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkZIMPO55S_cjs.updateFiberRecursively; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "version", {
|
|
285
285
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkZIMPO55S_cjs.version; }
|
|
287
287
|
});
|
package/dist/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BIPPY_INSTRUMENTATION_STRING, CONCURRENT_MODE_NUMBER, CONCURRENT_MODE_SYMBOL_STRING, ClassComponentTag, ContextConsumerTag, DEPRECATED_ASYNC_MODE_SYMBOL_STRING, DehydratedSuspenseComponentTag, ELEMENT_TYPE_SYMBOL_STRING, ForwardRefTag, FragmentTag, FunctionComponentTag, HostComponentTag, HostHoistableTag, HostRootTag, HostSingletonTag, HostTextTag, INSTALL_ERROR, INSTALL_HOOK_SCRIPT_STRING, LegacyHiddenComponentTag, MemoComponentTag, OffscreenComponentTag, SimpleMemoComponentTag, SuspenseComponentTag, TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING, _fiberRoots, _renderers, createFiberVisitor, detectReactBuildType, didFiberCommit, didFiberRender, fiberIdMap, getDisplayName, getFiberFromHostInstance, getFiberId, getFiberStack, getLatestFiber, getMutatedHostFibers, getNearestHostFiber, getNearestHostFibers, getRDTHook, getTimings, getType, hasMemoCache, hasRDTHook, installRDTHook, instrument, isClientEnvironment, isCompositeFiber, isHostFiber, isInstrumentationActive, isReactRefresh, isRealReactDevtools, isValidElement, isValidFiber, mountFiberRecursively, onCommitFiberRoot, patchRDTHook, safelyInstallRDTHook, secure, setFiberId, shouldFilterFiber, traverseContexts, traverseFiber, traverseProps, traverseRenderedFibers, traverseState, unmountFiber, unmountFiberChildrenRecursively, updateFiberRecursively, version } from './chunk-
|
|
1
|
+
export { BIPPY_INSTRUMENTATION_STRING, CONCURRENT_MODE_NUMBER, CONCURRENT_MODE_SYMBOL_STRING, ClassComponentTag, ContextConsumerTag, DEPRECATED_ASYNC_MODE_SYMBOL_STRING, DehydratedSuspenseComponentTag, ELEMENT_TYPE_SYMBOL_STRING, ForwardRefTag, FragmentTag, FunctionComponentTag, HostComponentTag, HostHoistableTag, HostRootTag, HostSingletonTag, HostTextTag, INSTALL_ERROR, INSTALL_HOOK_SCRIPT_STRING, LegacyHiddenComponentTag, MemoComponentTag, OffscreenComponentTag, SimpleMemoComponentTag, SuspenseComponentTag, TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING, _fiberRoots, _renderers, createFiberVisitor, detectReactBuildType, didFiberCommit, didFiberRender, fiberIdMap, getDisplayName, getFiberFromHostInstance, getFiberId, getFiberStack, getLatestFiber, getMutatedHostFibers, getNearestHostFiber, getNearestHostFibers, getRDTHook, getTimings, getType, hasMemoCache, hasRDTHook, installRDTHook, instrument, isClientEnvironment, isCompositeFiber, isHostFiber, isInstrumentationActive, isReactRefresh, isRealReactDevtools, isValidElement, isValidFiber, mountFiberRecursively, onCommitFiberRoot, patchRDTHook, safelyInstallRDTHook, secure, setFiberId, shouldFilterFiber, traverseContexts, traverseFiber, traverseProps, traverseRenderedFibers, traverseState, unmountFiber, unmountFiberChildrenRecursively, updateFiberRecursively, version } from './chunk-LQCLSVM3.js';
|
|
2
2
|
import './chunk-EPG3GO3H.js';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
7
|
-
var
|
|
5
|
+
var chunkIHWCFWLG_cjs = require('../chunk-IHWCFWLG.cjs');
|
|
6
|
+
require('../chunk-HUPJOARH.cjs');
|
|
7
|
+
var chunkZIMPO55S_cjs = require('../chunk-ZIMPO55S.cjs');
|
|
8
8
|
require('../chunk-AQ674A4M.cjs');
|
|
9
9
|
var React14 = require('react');
|
|
10
10
|
var ReactDOM = require('react-dom');
|
|
@@ -1304,10 +1304,10 @@ var RawInspector = React14.forwardRef(
|
|
|
1304
1304
|
React14.useEffect(() => {
|
|
1305
1305
|
(async () => {
|
|
1306
1306
|
if (!element) return;
|
|
1307
|
-
const fiber =
|
|
1307
|
+
const fiber = chunkZIMPO55S_cjs.getFiberFromHostInstance(element);
|
|
1308
1308
|
if (!fiber) return;
|
|
1309
|
-
const latestFiber =
|
|
1310
|
-
const source = await
|
|
1309
|
+
const latestFiber = chunkZIMPO55S_cjs.getLatestFiber(fiber);
|
|
1310
|
+
const source = await chunkIHWCFWLG_cjs.getFiberSource(latestFiber);
|
|
1311
1311
|
setCurrentFiber(latestFiber);
|
|
1312
1312
|
if (source) {
|
|
1313
1313
|
setCurrentFiberSource(source);
|
|
@@ -1316,15 +1316,15 @@ var RawInspector = React14.forwardRef(
|
|
|
1316
1316
|
}, [element]);
|
|
1317
1317
|
React14.useEffect(() => {
|
|
1318
1318
|
const handleMouseMove = (event) => {
|
|
1319
|
-
const isActive2 =
|
|
1319
|
+
const isActive2 = chunkZIMPO55S_cjs.isInstrumentationActive() || chunkZIMPO55S_cjs.hasRDTHook();
|
|
1320
1320
|
if (!isActive2) {
|
|
1321
1321
|
setIsActive(false);
|
|
1322
1322
|
return;
|
|
1323
1323
|
}
|
|
1324
1324
|
if (!dangerouslyRunInProduction) {
|
|
1325
|
-
const rdtHook =
|
|
1325
|
+
const rdtHook = chunkZIMPO55S_cjs.getRDTHook();
|
|
1326
1326
|
for (const renderer of rdtHook.renderers.values()) {
|
|
1327
|
-
const buildType =
|
|
1327
|
+
const buildType = chunkZIMPO55S_cjs.detectReactBuildType(renderer);
|
|
1328
1328
|
if (buildType === "production") {
|
|
1329
1329
|
setIsActive(false);
|
|
1330
1330
|
return;
|
|
@@ -1439,7 +1439,7 @@ var RawInspector = React14.forwardRef(
|
|
|
1439
1439
|
backgroundColor: "#3a3a3a"
|
|
1440
1440
|
}
|
|
1441
1441
|
},
|
|
1442
|
-
`<${
|
|
1442
|
+
`<${chunkZIMPO55S_cjs.getDisplayName(currentFiber.type) || "unknown"}>`
|
|
1443
1443
|
),
|
|
1444
1444
|
/* @__PURE__ */ React14__default.default.createElement(
|
|
1445
1445
|
"div",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getFiberSource } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import { getFiberFromHostInstance, getLatestFiber, getDisplayName, isInstrumentationActive, hasRDTHook, getRDTHook, detectReactBuildType } from '../chunk-
|
|
1
|
+
import { getFiberSource } from '../chunk-DIRPAAVW.js';
|
|
2
|
+
import '../chunk-3IP2OB7N.js';
|
|
3
|
+
import { getFiberFromHostInstance, getLatestFiber, getDisplayName, isInstrumentationActive, hasRDTHook, getRDTHook, detectReactBuildType } from '../chunk-LQCLSVM3.js';
|
|
4
4
|
import '../chunk-EPG3GO3H.js';
|
|
5
5
|
import React14, { createContext, memo, Children, useContext, useCallback, useState, useLayoutEffect, forwardRef, useMemo, useEffect, useImperativeHandle as useImperativeHandle$1 } from 'react';
|
|
6
6
|
import ReactDOM from 'react-dom';
|