@buoy-gg/highlight-updates 7.0.38 → 7.0.40
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/lib/commonjs/highlight-updates/HighlightUpdatesOverlay.js +281 -1
- package/lib/commonjs/highlight-updates/components/HighlightFilterView.js +1474 -1
- package/lib/commonjs/highlight-updates/components/HighlightUpdatesModal.js +641 -1
- package/lib/commonjs/highlight-updates/components/IdentifierBadge.js +273 -1
- package/lib/commonjs/highlight-updates/components/IsolatedRenderList.js +188 -1
- package/lib/commonjs/highlight-updates/components/ModalHeaderContent.js +293 -1
- package/lib/commonjs/highlight-updates/components/RenderCauseBadge.js +508 -1
- package/lib/commonjs/highlight-updates/components/RenderDetailView.js +846 -1
- package/lib/commonjs/highlight-updates/components/RenderHistoryViewer.js +915 -1
- package/lib/commonjs/highlight-updates/components/RenderListItem.js +235 -1
- package/lib/commonjs/highlight-updates/components/RendersCopySettingsView.js +469 -1
- package/lib/commonjs/highlight-updates/components/StatsDisplay.js +73 -1
- package/lib/commonjs/highlight-updates/types/copySettings.js +107 -1
- package/lib/commonjs/highlight-updates/utils/CommitProfiler.js +446 -1
- package/lib/commonjs/highlight-updates/utils/HighlightUpdatesController.js +1920 -1
- package/lib/commonjs/highlight-updates/utils/PerformanceLogger.js +359 -1
- package/lib/commonjs/highlight-updates/utils/ProfilerInterceptor.js +371 -1
- package/lib/commonjs/highlight-updates/utils/RenderCauseDetector.js +1840 -1
- package/lib/commonjs/highlight-updates/utils/RenderTracker.js +952 -1
- package/lib/commonjs/highlight-updates/utils/ViewTypeMapper.js +264 -1
- package/lib/commonjs/highlight-updates/utils/copySettingsStorage.js +32 -1
- package/lib/commonjs/highlight-updates/utils/devtoolsComponentNames.js +188 -1
- package/lib/commonjs/highlight-updates/utils/namedComposite.js +41 -1
- package/lib/commonjs/highlight-updates/utils/ownStateChanged.js +103 -1
- package/lib/commonjs/highlight-updates/utils/rawEventEmitter.js +50 -1
- package/lib/commonjs/highlight-updates/utils/renderExportFormatter.js +58 -1
- package/lib/commonjs/highlight-updates/utils/rendersExportFormatter.js +485 -1
- package/lib/commonjs/highlight-updates/utils/screenElements.js +1248 -1
- package/lib/commonjs/highlight-updates/utils/tapMatch.js +83 -1
- package/lib/commonjs/highlight-updates/utils/testIDs.js +68 -1
- package/lib/commonjs/highlight-updates/utils/touchCapture.js +277 -1
- package/lib/commonjs/index.js +429 -1
- package/lib/commonjs/preset.js +278 -1
- package/lib/commonjs/sync/highlightUpdatesSyncAdapter.js +235 -1
- package/lib/module/highlight-updates/HighlightUpdatesOverlay.js +274 -1
- package/lib/module/highlight-updates/components/HighlightFilterView.js +1468 -1
- package/lib/module/highlight-updates/components/HighlightUpdatesModal.js +634 -1
- package/lib/module/highlight-updates/components/IdentifierBadge.js +265 -1
- package/lib/module/highlight-updates/components/IsolatedRenderList.js +183 -1
- package/lib/module/highlight-updates/components/ModalHeaderContent.js +288 -1
- package/lib/module/highlight-updates/components/RenderCauseBadge.js +499 -1
- package/lib/module/highlight-updates/components/RenderDetailView.js +840 -1
- package/lib/module/highlight-updates/components/RenderHistoryViewer.js +908 -1
- package/lib/module/highlight-updates/components/RenderListItem.js +230 -1
- package/lib/module/highlight-updates/components/RendersCopySettingsView.js +465 -1
- package/lib/module/highlight-updates/components/StatsDisplay.js +70 -1
- package/lib/module/highlight-updates/types/copySettings.js +102 -1
- package/lib/module/highlight-updates/utils/CommitProfiler.js +442 -1
- package/lib/module/highlight-updates/utils/HighlightUpdatesController.js +1916 -1
- package/lib/module/highlight-updates/utils/PerformanceLogger.js +353 -1
- package/lib/module/highlight-updates/utils/ProfilerInterceptor.js +358 -1
- package/lib/module/highlight-updates/utils/RenderCauseDetector.js +1830 -1
- package/lib/module/highlight-updates/utils/RenderTracker.js +949 -1
- package/lib/module/highlight-updates/utils/ViewTypeMapper.js +255 -1
- package/lib/module/highlight-updates/utils/copySettingsStorage.js +26 -1
- package/lib/module/highlight-updates/utils/devtoolsComponentNames.js +178 -1
- package/lib/module/highlight-updates/utils/namedComposite.js +36 -1
- package/lib/module/highlight-updates/utils/ownStateChanged.js +98 -1
- package/lib/module/highlight-updates/utils/rawEventEmitter.js +46 -1
- package/lib/module/highlight-updates/utils/renderExportFormatter.js +54 -1
- package/lib/module/highlight-updates/utils/rendersExportFormatter.js +478 -1
- package/lib/module/highlight-updates/utils/screenElements.js +1242 -1
- package/lib/module/highlight-updates/utils/tapMatch.js +76 -1
- package/lib/module/highlight-updates/utils/testIDs.js +60 -1
- package/lib/module/highlight-updates/utils/touchCapture.js +270 -1
- package/lib/module/index.js +130 -1
- package/lib/module/preset.js +272 -1
- package/lib/module/sync/highlightUpdatesSyncAdapter.js +230 -1
- package/lib/typescript/highlight-updates/HighlightUpdatesOverlay.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/HighlightFilterView.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/HighlightUpdatesModal.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/IdentifierBadge.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/IsolatedRenderList.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/ModalHeaderContent.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/RenderCauseBadge.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/RenderDetailView.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/RenderHistoryViewer.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/RenderListItem.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/RendersCopySettingsView.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/components/StatsDisplay.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/types/copySettings.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/CommitProfiler.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/HighlightUpdatesController.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/PerformanceLogger.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/ProfilerInterceptor.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/RenderCauseDetector.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/RenderTracker.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/ViewTypeMapper.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/copySettingsStorage.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/devtoolsComponentNames.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/namedComposite.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/ownStateChanged.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/rawEventEmitter.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/renderExportFormatter.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/rendersExportFormatter.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/screenElements.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/tapMatch.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/testIDs.d.ts.map +1 -0
- package/lib/typescript/highlight-updates/utils/touchCapture.d.ts.map +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/preset.d.ts.map +1 -0
- package/lib/typescript/sync/highlightUpdatesSyncAdapter.d.ts.map +1 -0
- package/package.json +7 -7
package/lib/commonjs/index.js
CHANGED
|
@@ -1 +1,429 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "CAUSE_CONFIG", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _RenderCauseBadge.CAUSE_CONFIG;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "COMPONENT_CAUSE_CONFIG", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _RenderCauseBadge.COMPONENT_CAUSE_CONFIG;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "CommitProfiler", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _CommitProfiler.CommitProfiler;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "HighlightFilterView", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _HighlightFilterView.HighlightFilterView;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "HighlightToolView", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _HighlightUpdatesModal.HighlightToolView;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "HighlightUpdatesController", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _HighlightUpdatesController.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "HighlightUpdatesModal", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _HighlightUpdatesModal.HighlightUpdatesModal;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "HighlightUpdatesOverlay", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _HighlightUpdatesOverlay.HighlightUpdatesOverlay;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "PerformanceLogger", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _PerformanceLogger.PerformanceLogger;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "RenderCauseBadge", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _RenderCauseBadge.RenderCauseBadge;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "RenderDetailView", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _RenderDetailView.RenderDetailView;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "RenderHistoryFooter", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _RenderHistoryViewer.RenderHistoryFooter;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "RenderHistoryViewer", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _RenderHistoryViewer.RenderHistoryViewer;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "RenderListItem", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _RenderListItem.RenderListItem;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "RenderTracker", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _RenderTracker.RenderTracker;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "TwoLevelCauseBadge", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _RenderCauseBadge.TwoLevelCauseBadge;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "VIEW_TYPE_MAP", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _ViewTypeMapper.VIEW_TYPE_MAP;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "capturePropsSnapshot", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _RenderCauseDetector.capturePropsSnapshot;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "captureStateSnapshot", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _RenderCauseDetector.captureStateSnapshot;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "clearRenderCauseState", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _RenderCauseDetector.clearRenderCauseState;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "createHighlightUpdatesModalTool", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _preset.createHighlightUpdatesModalTool;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "createHighlightUpdatesTool", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _preset.createHighlightUpdatesTool;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "detectRenderCause", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _RenderCauseDetector.detectRenderCause;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "detectedItemTestID", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _testIDs.detectedItemTestID;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "disableProfilerLogging", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _ProfilerInterceptor.disableProfilerLogging;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "enableProfilerLogging", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return _ProfilerInterceptor.enableProfilerLogging;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "generateRendersJson", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _renderExportFormatter.generateRendersJson;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "getAllComponentNames", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _ViewTypeMapper.getAllComponentNames;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "getAllNativeViewTypes", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () {
|
|
177
|
+
return _ViewTypeMapper.getAllNativeViewTypes;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "getComponentDisplayName", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () {
|
|
183
|
+
return _ViewTypeMapper.getComponentDisplayName;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "getNativeViewType", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () {
|
|
189
|
+
return _ViewTypeMapper.getNativeViewType;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "getRenderCauseStats", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () {
|
|
195
|
+
return _RenderCauseDetector.getRenderCauseStats;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "highlightUpdatesModalPreset", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () {
|
|
201
|
+
return _preset.highlightUpdatesModalPreset;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "highlightUpdatesPreset", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () {
|
|
207
|
+
return _preset.highlightUpdatesPreset;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "highlightUpdatesSyncAdapter", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () {
|
|
213
|
+
return _highlightUpdatesSyncAdapter.highlightUpdatesSyncAdapter;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
Object.defineProperty(exports, "identifierSlug", {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
get: function () {
|
|
219
|
+
return _testIDs.identifierSlug;
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "installProfilerInterceptor", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () {
|
|
225
|
+
return _ProfilerInterceptor.installProfilerInterceptor;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, "isCapturingBuoyToolRenders", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function () {
|
|
231
|
+
return _devtoolsComponentNames.isCapturingBuoyToolRenders;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "isInterceptorInstalled", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () {
|
|
237
|
+
return _ProfilerInterceptor.isInterceptorInstalled;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "isKnownViewType", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function () {
|
|
243
|
+
return _ViewTypeMapper.isKnownViewType;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "isLoggingEnabled", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function () {
|
|
249
|
+
return _ProfilerInterceptor.isLoggingEnabled;
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
exports.onRenderEvent = void 0;
|
|
253
|
+
Object.defineProperty(exports, "patternChipTestID", {
|
|
254
|
+
enumerable: true,
|
|
255
|
+
get: function () {
|
|
256
|
+
return _testIDs.patternChipTestID;
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
Object.defineProperty(exports, "removeRenderCauseState", {
|
|
260
|
+
enumerable: true,
|
|
261
|
+
get: function () {
|
|
262
|
+
return _RenderCauseDetector.removeRenderCauseState;
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
Object.defineProperty(exports, "renderRowTestID", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
get: function () {
|
|
268
|
+
return _testIDs.renderRowTestID;
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
Object.defineProperty(exports, "safeCloneForHistory", {
|
|
272
|
+
enumerable: true,
|
|
273
|
+
get: function () {
|
|
274
|
+
return _RenderCauseDetector.safeCloneForHistory;
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
Object.defineProperty(exports, "setCaptureBuoyToolRenders", {
|
|
278
|
+
enumerable: true,
|
|
279
|
+
get: function () {
|
|
280
|
+
return _devtoolsComponentNames.setCaptureBuoyToolRenders;
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
Object.defineProperty(exports, "setComparisonCallback", {
|
|
284
|
+
enumerable: true,
|
|
285
|
+
get: function () {
|
|
286
|
+
return _ProfilerInterceptor.setComparisonCallback;
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
Object.defineProperty(exports, "settingTestID", {
|
|
290
|
+
enumerable: true,
|
|
291
|
+
get: function () {
|
|
292
|
+
return _testIDs.settingTestID;
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
Object.defineProperty(exports, "uninstallProfilerInterceptor", {
|
|
296
|
+
enumerable: true,
|
|
297
|
+
get: function () {
|
|
298
|
+
return _ProfilerInterceptor.uninstallProfilerInterceptor;
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
var _preset = require("./preset");
|
|
302
|
+
var _HighlightUpdatesController = _interopRequireDefault(require("./highlight-updates/utils/HighlightUpdatesController"));
|
|
303
|
+
var _highlightUpdatesSyncAdapter = require("./sync/highlightUpdatesSyncAdapter");
|
|
304
|
+
var _HighlightUpdatesOverlay = require("./highlight-updates/HighlightUpdatesOverlay");
|
|
305
|
+
var _ProfilerInterceptor = require("./highlight-updates/utils/ProfilerInterceptor");
|
|
306
|
+
var _CommitProfiler = require("./highlight-updates/utils/CommitProfiler");
|
|
307
|
+
var _devtoolsComponentNames = require("./highlight-updates/utils/devtoolsComponentNames");
|
|
308
|
+
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
309
|
+
var _RenderTracker = require("./highlight-updates/utils/RenderTracker");
|
|
310
|
+
var _RenderCauseDetector = require("./highlight-updates/utils/RenderCauseDetector");
|
|
311
|
+
var _PerformanceLogger = require("./highlight-updates/utils/PerformanceLogger");
|
|
312
|
+
var _ViewTypeMapper = require("./highlight-updates/utils/ViewTypeMapper");
|
|
313
|
+
var _HighlightUpdatesModal = require("./highlight-updates/components/HighlightUpdatesModal");
|
|
314
|
+
var _RenderListItem = require("./highlight-updates/components/RenderListItem");
|
|
315
|
+
var _RenderDetailView = require("./highlight-updates/components/RenderDetailView");
|
|
316
|
+
var _HighlightFilterView = require("./highlight-updates/components/HighlightFilterView");
|
|
317
|
+
var _RenderCauseBadge = require("./highlight-updates/components/RenderCauseBadge");
|
|
318
|
+
var _RenderHistoryViewer = require("./highlight-updates/components/RenderHistoryViewer");
|
|
319
|
+
var _renderExportFormatter = require("./highlight-updates/utils/renderExportFormatter");
|
|
320
|
+
var _testIDs = require("./highlight-updates/utils/testIDs");
|
|
321
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
322
|
+
/**
|
|
323
|
+
* @buoy-gg/highlight-updates
|
|
324
|
+
*
|
|
325
|
+
* Standalone implementation of React DevTools' "Highlight updates when components
|
|
326
|
+
* render" feature. Works without requiring DevTools to be connected.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```tsx
|
|
330
|
+
* // Toggle-only preset - tap to enable/disable highlights
|
|
331
|
+
* import { highlightUpdatesPreset } from '@buoy-gg/highlight-updates';
|
|
332
|
+
*
|
|
333
|
+
* <FloatingDevTools apps={[highlightUpdatesPreset]} />
|
|
334
|
+
*
|
|
335
|
+
* // Modal preset - full interface with filters and render list
|
|
336
|
+
* import { highlightUpdatesModalPreset } from '@buoy-gg/highlight-updates';
|
|
337
|
+
*
|
|
338
|
+
* <FloatingDevTools apps={[highlightUpdatesModalPreset]} />
|
|
339
|
+
*
|
|
340
|
+
* // Or use the standalone controller programmatically
|
|
341
|
+
* import { HighlightUpdatesController } from '@buoy-gg/highlight-updates';
|
|
342
|
+
*
|
|
343
|
+
* HighlightUpdatesController.toggle();
|
|
344
|
+
* HighlightUpdatesController.enable();
|
|
345
|
+
* HighlightUpdatesController.disable();
|
|
346
|
+
* ```
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
// Preset exports for FloatingDevTools integration
|
|
350
|
+
|
|
351
|
+
// Controller export for standalone usage
|
|
352
|
+
|
|
353
|
+
// External sync (adapter for @buoy-gg/external-sync's useExternalSync)
|
|
354
|
+
|
|
355
|
+
// Overlay component - auto-rendered by FloatingDevTools, but exported for manual usage
|
|
356
|
+
|
|
357
|
+
// Profiler interceptor for debugging - captures what DevTools detects
|
|
358
|
+
|
|
359
|
+
// CommitProfiler — per-component render counts/durations over a capture window
|
|
360
|
+
|
|
361
|
+
// Bench "profile our own tools" mode: lets a dedicated benchmark screen
|
|
362
|
+
// include Buoy's tool UI in render capture (normally pruned wholesale).
|
|
363
|
+
// Highlight/events + perf-monitor components stay excluded regardless.
|
|
364
|
+
|
|
365
|
+
// Register the render-capture provider so perf-monitor benchmarks can capture
|
|
366
|
+
// renders without depending on this package. Runs at module scope: whenever
|
|
367
|
+
// this package is installed, FloatingDevTools require()s it (including on the
|
|
368
|
+
// fresh realm after a reload-between-cases batch step), and Metro evaluates
|
|
369
|
+
// module side effects regardless of the package.json "sideEffects" hint.
|
|
370
|
+
|
|
371
|
+
try {
|
|
372
|
+
(0, _sharedUi.setRenderCaptureProvider)({
|
|
373
|
+
isSupported: _CommitProfiler.CommitProfiler.isSupported,
|
|
374
|
+
start: _CommitProfiler.CommitProfiler.startCapture,
|
|
375
|
+
stop: _CommitProfiler.CommitProfiler.stopCapture,
|
|
376
|
+
// Real-time bounding boxes (the Render Highlighter visual) for the span
|
|
377
|
+
// of a recording. Saves the user's prior overlay state and hands back a
|
|
378
|
+
// restore fn: previously ON stays ON, silent tracking (events tool) gets
|
|
379
|
+
// re-suppressed, otherwise fully disabled again.
|
|
380
|
+
startLiveHighlights: () => {
|
|
381
|
+
try {
|
|
382
|
+
const wasEnabled = _HighlightUpdatesController.default.isEnabled();
|
|
383
|
+
const wasSuppressed = _HighlightUpdatesController.default.getHighlightsSuppressed();
|
|
384
|
+
_HighlightUpdatesController.default.enable(); // idempotent; clears suppression
|
|
385
|
+
return () => {
|
|
386
|
+
try {
|
|
387
|
+
if (!wasEnabled) {
|
|
388
|
+
_HighlightUpdatesController.default.disable(); // respects background tracking
|
|
389
|
+
} else if (wasSuppressed) {
|
|
390
|
+
_HighlightUpdatesController.default.setHighlightsSuppressed(true);
|
|
391
|
+
}
|
|
392
|
+
} catch {
|
|
393
|
+
// restoring the overlay must never throw into the recorder
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
} catch {
|
|
397
|
+
return null;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
} catch {
|
|
402
|
+
// shared-ui too old to have the registry — capture is simply unavailable.
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// RenderTracker singleton for tracking render history
|
|
406
|
+
|
|
407
|
+
// Convenience export for unified events integration
|
|
408
|
+
const onRenderEvent = callback => {
|
|
409
|
+
const {
|
|
410
|
+
RenderTracker
|
|
411
|
+
} = require("./highlight-updates/utils/RenderTracker");
|
|
412
|
+
return RenderTracker.onRenderEvent(callback);
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
// RenderCauseDetector for detecting why components rendered
|
|
416
|
+
|
|
417
|
+
// PerformanceLogger for performance measurement and debugging
|
|
418
|
+
|
|
419
|
+
// ViewTypeMapper for translating native view names to component names
|
|
420
|
+
|
|
421
|
+
// Modal components for custom integrations
|
|
422
|
+
// `HighlightToolView` is the same tool rendered inline (header bar + body +
|
|
423
|
+
// footer) instead of inside a JsModal — for hosts that show tools in a panel.
|
|
424
|
+
|
|
425
|
+
// Simple JSON export for renders
|
|
426
|
+
|
|
427
|
+
// e2e handle builders — exported so the example app's fixture can derive the
|
|
428
|
+
// same row handles the tool renders instead of hardcoding a second copy.
|
|
429
|
+
exports.onRenderEvent = onRenderEvent;
|