react-native-inapp-inspector 1.1.32 → 1.1.34
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/commonjs/components/Inspector/BundleTab.js +282 -39
- package/dist/commonjs/components/Inspector/ReduxDetail.js +574 -75
- package/dist/commonjs/components/Inspector/ReduxTab.js +59 -180
- package/dist/commonjs/components/NetworkIcons.d.ts +2 -0
- package/dist/commonjs/components/NetworkIcons.js +14 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/bundleAnalyzer.d.ts +5 -2
- package/dist/commonjs/customHooks/bundleAnalyzer.js +229 -216
- package/dist/commonjs/customHooks/consoleLogger.js +7 -2
- package/dist/commonjs/helpers/index.js +19 -2
- package/dist/esm/components/Inspector/BundleTab.js +283 -40
- package/dist/esm/components/Inspector/ReduxDetail.js +575 -76
- package/dist/esm/components/Inspector/ReduxTab.js +60 -181
- package/dist/esm/components/NetworkIcons.d.ts +2 -0
- package/dist/esm/components/NetworkIcons.js +11 -0
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/bundleAnalyzer.d.ts +5 -2
- package/dist/esm/customHooks/bundleAnalyzer.js +227 -215
- package/dist/esm/customHooks/consoleLogger.js +7 -2
- package/dist/esm/helpers/index.js +19 -2
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ const getOriginBadge = (originType) => {
|
|
|
56
56
|
case 'saga':
|
|
57
57
|
return {
|
|
58
58
|
label: 'SAGA',
|
|
59
|
-
|
|
59
|
+
renderIcon: (color, size = 9) => <NetworkIcons_1.BoltIcon color={color} size={size}/>,
|
|
60
60
|
bg: AppColors_1.AppColors.purple100,
|
|
61
61
|
text: AppColors_1.AppColors.brandPurple,
|
|
62
62
|
border: AppColors_1.AppColors.purple200,
|
|
@@ -64,7 +64,7 @@ const getOriginBadge = (originType) => {
|
|
|
64
64
|
case 'thunk':
|
|
65
65
|
return {
|
|
66
66
|
label: 'THUNK',
|
|
67
|
-
|
|
67
|
+
renderIcon: (color, size = 9) => <NetworkIcons_1.AtomIcon color={color} size={size}/>,
|
|
68
68
|
bg: AppColors_1.AppColors.amber100,
|
|
69
69
|
text: AppColors_1.AppColors.amber800Warm,
|
|
70
70
|
border: AppColors_1.AppColors.amber200,
|
|
@@ -72,7 +72,7 @@ const getOriginBadge = (originType) => {
|
|
|
72
72
|
case 'ui':
|
|
73
73
|
return {
|
|
74
74
|
label: 'UI',
|
|
75
|
-
|
|
75
|
+
renderIcon: (color, size = 9) => <NetworkIcons_1.ScreenIcon color={color} size={size}/>,
|
|
76
76
|
bg: AppColors_1.AppColors.sky100,
|
|
77
77
|
text: AppColors_1.AppColors.sky600,
|
|
78
78
|
border: AppColors_1.AppColors.sky400,
|
|
@@ -80,7 +80,7 @@ const getOriginBadge = (originType) => {
|
|
|
80
80
|
case 'listener':
|
|
81
81
|
return {
|
|
82
82
|
label: 'LISTENER',
|
|
83
|
-
|
|
83
|
+
renderIcon: (color, size = 9) => <NetworkIcons_1.ListenerIcon color={color} size={size}/>,
|
|
84
84
|
bg: AppColors_1.AppColors.teal100,
|
|
85
85
|
text: AppColors_1.AppColors.teal700,
|
|
86
86
|
border: AppColors_1.AppColors.teal400,
|
|
@@ -88,54 +88,13 @@ const getOriginBadge = (originType) => {
|
|
|
88
88
|
default:
|
|
89
89
|
return {
|
|
90
90
|
label: 'DIRECT',
|
|
91
|
-
|
|
91
|
+
renderIcon: (color, size = 9) => <NetworkIcons_1.BoltIcon color={color} size={size}/>,
|
|
92
92
|
bg: AppColors_1.AppColors.slate100,
|
|
93
93
|
text: AppColors_1.AppColors.slate700,
|
|
94
94
|
border: AppColors_1.AppColors.slate200,
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
const getKeyChipStyle = (key) => {
|
|
99
|
-
const k = key.toLowerCase();
|
|
100
|
-
if (k.includes('load') || k.includes('pend') || k.includes('status')) {
|
|
101
|
-
return {
|
|
102
|
-
bg: AppColors_1.AppColors.amber100,
|
|
103
|
-
border: AppColors_1.AppColors.amber200,
|
|
104
|
-
text: AppColors_1.AppColors.amber800Warm,
|
|
105
|
-
dot: AppColors_1.AppColors.darkOrange,
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
if (k.includes('err') || k.includes('fail') || k.includes('reject')) {
|
|
109
|
-
return {
|
|
110
|
-
bg: AppColors_1.AppColors.red100,
|
|
111
|
-
border: AppColors_1.AppColors.errorBorder,
|
|
112
|
-
text: AppColors_1.AppColors.red600,
|
|
113
|
-
dot: AppColors_1.AppColors.errorColor,
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
if (k.includes('user') || k.includes('auth') || k.includes('token') || k.includes('profile')) {
|
|
117
|
-
return {
|
|
118
|
-
bg: AppColors_1.AppColors.indigo50,
|
|
119
|
-
border: AppColors_1.AppColors.indigo400,
|
|
120
|
-
text: AppColors_1.AppColors.indigo600Alt,
|
|
121
|
-
dot: AppColors_1.AppColors.indigo500,
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
if (k.includes('item') || k.includes('data') || k.includes('list') || k.includes('entit') || k.includes('count')) {
|
|
125
|
-
return {
|
|
126
|
-
bg: AppColors_1.AppColors.emeraldBg,
|
|
127
|
-
border: AppColors_1.AppColors.emeraldBorder,
|
|
128
|
-
text: AppColors_1.AppColors.emerald700,
|
|
129
|
-
dot: AppColors_1.AppColors.emerald500,
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
return {
|
|
133
|
-
bg: AppColors_1.AppColors.slate100,
|
|
134
|
-
border: AppColors_1.AppColors.slate200,
|
|
135
|
-
text: AppColors_1.AppColors.slate700,
|
|
136
|
-
dot: AppColors_1.AppColors.slate400,
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
98
|
const ReduxTab = react_1.default.memo(() => {
|
|
140
99
|
const { t } = (0, i18n_1.useTranslation)();
|
|
141
100
|
const { reduxState, reduxLastActionMap, reduxSearch, setReduxSearch, setSelectedReduxSlice, } = (0, InspectorContext_1.useInspector)();
|
|
@@ -169,17 +128,12 @@ const ReduxTab = react_1.default.memo(() => {
|
|
|
169
128
|
const isObject = sliceVal && typeof sliceVal === 'object';
|
|
170
129
|
let typeLabel = 'Primitive';
|
|
171
130
|
let keysCount = 0;
|
|
172
|
-
let topKeys = [];
|
|
173
|
-
let totalKeysCount = 0;
|
|
174
131
|
if (isArray) {
|
|
175
132
|
keysCount = sliceVal.length;
|
|
176
133
|
typeLabel = `Array [${keysCount}]`;
|
|
177
134
|
}
|
|
178
135
|
else if (isObject) {
|
|
179
|
-
|
|
180
|
-
totalKeysCount = objKeys.length;
|
|
181
|
-
keysCount = totalKeysCount;
|
|
182
|
-
topKeys = objKeys.slice(0, 4);
|
|
136
|
+
keysCount = Object.keys(sliceVal).length;
|
|
183
137
|
typeLabel = `Object {${keysCount}}`;
|
|
184
138
|
}
|
|
185
139
|
else if (typeof sliceVal !== 'undefined') {
|
|
@@ -249,8 +203,6 @@ const ReduxTab = react_1.default.memo(() => {
|
|
|
249
203
|
keysCount,
|
|
250
204
|
sizeStr: (0, helpers_1.getSize)(sliceVal),
|
|
251
205
|
typeLabel,
|
|
252
|
-
topKeys,
|
|
253
|
-
totalKeysCount,
|
|
254
206
|
status,
|
|
255
207
|
statusMessage,
|
|
256
208
|
timelineCount,
|
|
@@ -265,8 +217,7 @@ const ReduxTab = react_1.default.memo(() => {
|
|
|
265
217
|
if (reduxSearch.trim().length > 0) {
|
|
266
218
|
const q = reduxSearch.toLowerCase();
|
|
267
219
|
list = list.filter(item => item.name.toLowerCase().includes(q) ||
|
|
268
|
-
(item.lastAction && item.lastAction.type.toLowerCase().includes(q))
|
|
269
|
-
item.topKeys.some(k => k.toLowerCase().includes(q)));
|
|
220
|
+
(item.lastAction && item.lastAction.type.toLowerCase().includes(q)));
|
|
270
221
|
}
|
|
271
222
|
return [...list].sort((a, b) => {
|
|
272
223
|
if (sortMode === 'latest') {
|
|
@@ -309,9 +260,11 @@ const ReduxTab = react_1.default.memo(() => {
|
|
|
309
260
|
|
|
310
261
|
{/* Status Badge */}
|
|
311
262
|
{item.status === 'loading' ? (<react_native_1.View style={reduxTabStyles.loadingPill}>
|
|
312
|
-
<
|
|
263
|
+
<NetworkIcons_1.LoadingSpinnerIcon color={AppColors_1.AppColors.amber800Warm} size={10}/>
|
|
264
|
+
<react_native_1.Text style={reduxTabStyles.loadingPillText}>Loading</react_native_1.Text>
|
|
313
265
|
</react_native_1.View>) : item.status === 'error' ? (<react_native_1.View style={reduxTabStyles.errorPill}>
|
|
314
|
-
<
|
|
266
|
+
<NetworkIcons_1.CircleAlertIcon color={AppColors_1.AppColors.red600} size={10}/>
|
|
267
|
+
<react_native_1.Text style={reduxTabStyles.errorPillText}>Error</react_native_1.Text>
|
|
315
268
|
</react_native_1.View>) : item.status === 'empty' ? (<react_native_1.View style={reduxTabStyles.emptyPill}>
|
|
316
269
|
<react_native_1.Text style={reduxTabStyles.emptyPillText}>Empty</react_native_1.Text>
|
|
317
270
|
</react_native_1.View>) : (<react_native_1.View style={reduxTabStyles.livePill}>
|
|
@@ -345,41 +298,6 @@ const ReduxTab = react_1.default.memo(() => {
|
|
|
345
298
|
</react_native_1.View>)}
|
|
346
299
|
</react_native_1.View>
|
|
347
300
|
|
|
348
|
-
{/* Keys Preview Chips (if object has keys) */}
|
|
349
|
-
{item.topKeys.length > 0 && (<react_native_1.View style={reduxTabStyles.keysContainer}>
|
|
350
|
-
<react_native_1.Text style={reduxTabStyles.keysHeading}>Keys:</react_native_1.Text>
|
|
351
|
-
<react_native_1.View style={reduxTabStyles.keysWrap}>
|
|
352
|
-
{item.topKeys.map((k, kIdx) => {
|
|
353
|
-
const chipStyle = getKeyChipStyle(k);
|
|
354
|
-
return (<react_native_1.View key={kIdx} style={[
|
|
355
|
-
reduxTabStyles.keyChip,
|
|
356
|
-
{
|
|
357
|
-
backgroundColor: chipStyle.bg,
|
|
358
|
-
borderColor: chipStyle.border,
|
|
359
|
-
},
|
|
360
|
-
]}>
|
|
361
|
-
<react_native_1.View style={{
|
|
362
|
-
width: 5,
|
|
363
|
-
height: 5,
|
|
364
|
-
borderRadius: 2.5,
|
|
365
|
-
backgroundColor: chipStyle.dot,
|
|
366
|
-
}}/>
|
|
367
|
-
<react_native_1.Text style={[
|
|
368
|
-
reduxTabStyles.keyChipText,
|
|
369
|
-
{ color: chipStyle.text },
|
|
370
|
-
]} numberOfLines={1}>
|
|
371
|
-
{k}
|
|
372
|
-
</react_native_1.Text>
|
|
373
|
-
</react_native_1.View>);
|
|
374
|
-
})}
|
|
375
|
-
{item.totalKeysCount > item.topKeys.length && (<react_native_1.View style={reduxTabStyles.keyMoreChip}>
|
|
376
|
-
<react_native_1.Text style={reduxTabStyles.keyMoreChipText}>
|
|
377
|
-
+{item.totalKeysCount - item.topKeys.length}
|
|
378
|
-
</react_native_1.Text>
|
|
379
|
-
</react_native_1.View>)}
|
|
380
|
-
</react_native_1.View>
|
|
381
|
-
</react_native_1.View>)}
|
|
382
|
-
|
|
383
301
|
{/* Bottom row: Last Dispatched Action with Origin & Trigger Line */}
|
|
384
302
|
{item.lastAction && (<react_native_1.View style={reduxTabStyles.lastActionRow}>
|
|
385
303
|
<react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 5, flex: 1, minWidth: 0, flexWrap: 'wrap' }}>
|
|
@@ -387,29 +305,30 @@ const ReduxTab = react_1.default.memo(() => {
|
|
|
387
305
|
<react_native_1.Text style={reduxTabStyles.lastActionLabel}>{t('redux.last', 'Last')}:</react_native_1.Text>
|
|
388
306
|
|
|
389
307
|
{/* Origin Badge */}
|
|
390
|
-
{item.lastAction.originType && (
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
308
|
+
{item.lastAction.originType && (() => {
|
|
309
|
+
const origin = getOriginBadge(item.lastAction.originType);
|
|
310
|
+
return (<react_native_1.View style={{
|
|
311
|
+
flexDirection: 'row',
|
|
312
|
+
alignItems: 'center',
|
|
313
|
+
gap: 2.5,
|
|
314
|
+
backgroundColor: origin.bg,
|
|
315
|
+
paddingHorizontal: 4.5,
|
|
316
|
+
paddingVertical: 1.5,
|
|
317
|
+
borderRadius: 3.5,
|
|
318
|
+
borderWidth: 1,
|
|
319
|
+
borderColor: origin.border,
|
|
320
|
+
}}>
|
|
321
|
+
{origin.renderIcon(origin.text, 8.5)}
|
|
322
|
+
<react_native_1.Text style={{
|
|
323
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
324
|
+
fontSize: 8,
|
|
325
|
+
color: origin.text,
|
|
326
|
+
letterSpacing: 0.3,
|
|
327
|
+
}}>
|
|
328
|
+
{origin.label}
|
|
329
|
+
</react_native_1.Text>
|
|
330
|
+
</react_native_1.View>);
|
|
331
|
+
})()}
|
|
413
332
|
|
|
414
333
|
<HighlightText_1.default text={item.lastAction.type} search={reduxSearch} style={reduxTabStyles.lastActionValue} highlightStyle={reduxTabStyles.highlight} numberOfLines={1}/>
|
|
415
334
|
|
|
@@ -417,7 +336,7 @@ const ReduxTab = react_1.default.memo(() => {
|
|
|
417
336
|
{item.lastAction.callerFile && (<react_native_1.Pressable onPress={() => (0, helpers_1.openInVSCode)(item.lastAction.callerFile, item.lastAction.callerLine, item.lastAction.callerCol)} hitSlop={6} style={{
|
|
418
337
|
flexDirection: 'row',
|
|
419
338
|
alignItems: 'center',
|
|
420
|
-
gap: 2,
|
|
339
|
+
gap: 2.5,
|
|
421
340
|
backgroundColor: AppColors_1.AppColors.sky100,
|
|
422
341
|
paddingHorizontal: 4.5,
|
|
423
342
|
paddingVertical: 1.5,
|
|
@@ -425,12 +344,13 @@ const ReduxTab = react_1.default.memo(() => {
|
|
|
425
344
|
borderWidth: 0.5,
|
|
426
345
|
borderColor: AppColors_1.AppColors.sky400,
|
|
427
346
|
}}>
|
|
347
|
+
<NetworkIcons_1.DocIcon color={AppColors_1.AppColors.sky600} size={9}/>
|
|
428
348
|
<react_native_1.Text style={{
|
|
429
349
|
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
430
350
|
fontSize: 8.5,
|
|
431
351
|
color: AppColors_1.AppColors.sky600,
|
|
432
352
|
}}>
|
|
433
|
-
|
|
353
|
+
{item.lastAction.callerFile.split('/').pop()}:{item.lastAction.callerLine || 1}
|
|
434
354
|
</react_native_1.Text>
|
|
435
355
|
</react_native_1.Pressable>)}
|
|
436
356
|
|
|
@@ -469,20 +389,27 @@ const ReduxTab = react_1.default.memo(() => {
|
|
|
469
389
|
<react_native_1.View style={[reduxTabStyles.statCol, { flex: 1.6 }]}>
|
|
470
390
|
<react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 4 }}>
|
|
471
391
|
<react_native_1.Text style={reduxTabStyles.statHeading}>LAST ACTION</react_native_1.Text>
|
|
472
|
-
{lastGlobalAction?.originType && (
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
{
|
|
484
|
-
|
|
485
|
-
|
|
392
|
+
{lastGlobalAction?.originType && (() => {
|
|
393
|
+
const origin = getOriginBadge(lastGlobalAction.originType);
|
|
394
|
+
return (<react_native_1.View style={{
|
|
395
|
+
flexDirection: 'row',
|
|
396
|
+
alignItems: 'center',
|
|
397
|
+
gap: 2,
|
|
398
|
+
backgroundColor: origin.bg,
|
|
399
|
+
paddingHorizontal: 4,
|
|
400
|
+
paddingVertical: 1,
|
|
401
|
+
borderRadius: 3,
|
|
402
|
+
}}>
|
|
403
|
+
{origin.renderIcon(origin.text, 8)}
|
|
404
|
+
<react_native_1.Text style={{
|
|
405
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
406
|
+
fontSize: 7.5,
|
|
407
|
+
color: origin.text,
|
|
408
|
+
}}>
|
|
409
|
+
{origin.label}
|
|
410
|
+
</react_native_1.Text>
|
|
411
|
+
</react_native_1.View>);
|
|
412
|
+
})()}
|
|
486
413
|
</react_native_1.View>
|
|
487
414
|
<react_native_1.Text style={reduxTabStyles.statLastAction} numberOfLines={1}>
|
|
488
415
|
{lastGlobalAction ? lastGlobalAction.type : 'Initial'}
|
|
@@ -783,54 +710,6 @@ const reduxTabStyles = react_native_1.StyleSheet.create({
|
|
|
783
710
|
fontSize: 9.5,
|
|
784
711
|
color: AppColors_1.AppColors.grayTextWeak,
|
|
785
712
|
},
|
|
786
|
-
keysContainer: {
|
|
787
|
-
flexDirection: 'row',
|
|
788
|
-
alignItems: 'center',
|
|
789
|
-
gap: 6,
|
|
790
|
-
marginTop: 4,
|
|
791
|
-
marginBottom: 4,
|
|
792
|
-
},
|
|
793
|
-
keysHeading: {
|
|
794
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
795
|
-
fontSize: 10,
|
|
796
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
797
|
-
},
|
|
798
|
-
keysWrap: {
|
|
799
|
-
flexDirection: 'row',
|
|
800
|
-
flexWrap: 'wrap',
|
|
801
|
-
gap: 4,
|
|
802
|
-
flex: 1,
|
|
803
|
-
},
|
|
804
|
-
keyChip: {
|
|
805
|
-
flexDirection: 'row',
|
|
806
|
-
alignItems: 'center',
|
|
807
|
-
gap: 4,
|
|
808
|
-
backgroundColor: AppColors_1.AppColors.slate100,
|
|
809
|
-
paddingHorizontal: 6,
|
|
810
|
-
paddingVertical: 2.5,
|
|
811
|
-
borderRadius: 5,
|
|
812
|
-
borderWidth: 1,
|
|
813
|
-
borderColor: AppColors_1.AppColors.slate200,
|
|
814
|
-
maxWidth: 120,
|
|
815
|
-
},
|
|
816
|
-
keyChipText: {
|
|
817
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
818
|
-
fontSize: 9.5,
|
|
819
|
-
color: AppColors_1.AppColors.slate700,
|
|
820
|
-
},
|
|
821
|
-
keyMoreChip: {
|
|
822
|
-
backgroundColor: AppColors_1.AppColors.purple100,
|
|
823
|
-
paddingHorizontal: 5,
|
|
824
|
-
paddingVertical: 2,
|
|
825
|
-
borderRadius: 4,
|
|
826
|
-
borderWidth: 1,
|
|
827
|
-
borderColor: AppColors_1.AppColors.purple200,
|
|
828
|
-
},
|
|
829
|
-
keyMoreChipText: {
|
|
830
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
831
|
-
fontSize: 9,
|
|
832
|
-
color: AppColors_1.AppColors.brandPurple,
|
|
833
|
-
},
|
|
834
713
|
lastActionRow: {
|
|
835
714
|
flexDirection: 'row',
|
|
836
715
|
alignItems: 'center',
|
|
@@ -113,3 +113,5 @@ export declare const TrailIcon: ({ color, size, }: IconProps) => React.JSX.Eleme
|
|
|
113
113
|
export declare const RawJsonIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
114
114
|
export declare const AppFramesIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
115
115
|
export declare const AllFramesIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
116
|
+
export declare const ListenerIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
117
|
+
export declare const LoadingSpinnerIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
@@ -38,7 +38,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.InfoCircleIcon = exports.UserIcon = exports.LayersIcon = exports.WipeIcon = exports.FolderIcon = exports.SettingsIcon = exports.EyeIcon = exports.JsIcon = exports.CssIcon = exports.HtmlIcon = exports.BrandSquareIcon = exports.BrandCircleIcon = exports.MoonIcon = exports.SunIcon = exports.DebugIcon = exports.InsightsIcon = exports.AnalyticsIcon = exports.WhiteBackNavigation = exports.CloseWhite = exports.DownloadIcon = exports.FilterIcon = exports.ChevronIcon = exports.SortArrowIcon = exports.GlobeIcon = exports.DiffIcon = exports.SignalIcon = exports.ExportIcon = exports.HeaderPauseIcon = exports.TrashIcon = exports.FailIcon = exports.CircleAlertIcon = exports.CircleXIcon = exports.CircleCheckIcon = exports.CheckIcon = exports.TerminalIcon = exports.FetchIcon = exports.CopyIcon = exports.HeadersIcon = exports.ResponseIcon = exports.RequestIcon = exports.SizeIcon = exports.StatusIcon = exports.CalendarIcon = exports.ClockIcon = exports.ClearIcon = exports.SearchIcon = exports.ExpandCollapseIcon = exports.ScreenIcon = exports.MapPinIcon = exports.EmptyRadarIcon = void 0;
|
|
40
40
|
exports.DiagnosticsIcon = exports.StackTraceIcon = exports.LayoutIcon = exports.ChipIcon = exports.SkullIcon = exports.ShieldAlertIcon = exports.CrashIcon = exports.UserCheckIcon = exports.TargetGoalIcon = exports.RepeatIcon = exports.PinIcon = exports.HourglassIcon = exports.FlameIcon = exports.CodeBracketsIcon = exports.AndroidIcon = exports.AppleIcon = exports.LinkChainIcon = exports.GitHubIcon = exports.PackageBoxIcon = exports.ExternalLinkIcon = exports.MoneyIcon = exports.CartIcon = exports.TextAaIcon = exports.BrainIcon = exports.AtomIcon = exports.MapIcon = exports.SparkleIcon = exports.LightbulbIcon = exports.DocIcon = exports.FolderOpenIcon = exports.BanIcon = exports.BoltIcon = exports.PerformanceIcon = exports.ReduxIcon = exports.MetadataIcon = exports.StorageIcon = exports.RefreshCcwIcon = exports.TimelineIcon = exports.LiveStateIcon = exports.BundleIcon = exports.ForwardChevronIcon = exports.PackageIcon = exports.TableIcon = exports.RawIcon = exports.PrettyIcon = exports.SortIcon = exports.MotionIcon = exports.TrendingUpIcon = exports.ErrorCircleIcon = exports.WarningTriangleIcon = void 0;
|
|
41
|
-
exports.AllFramesIcon = exports.AppFramesIcon = exports.RawJsonIcon = exports.TrailIcon = void 0;
|
|
41
|
+
exports.LoadingSpinnerIcon = exports.ListenerIcon = exports.AllFramesIcon = exports.AppFramesIcon = exports.RawJsonIcon = exports.TrailIcon = void 0;
|
|
42
42
|
const react_1 = __importDefault(require("react"));
|
|
43
43
|
const react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
44
44
|
// Stylesheet
|
|
@@ -795,3 +795,16 @@ const AllFramesIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14,
|
|
|
795
795
|
</react_native_svg_1.default>);
|
|
796
796
|
};
|
|
797
797
|
exports.AllFramesIcon = AllFramesIcon;
|
|
798
|
+
const ListenerIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14, }) => {
|
|
799
|
+
return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
800
|
+
<react_native_svg_1.Path d="M3 18v-6a9 9 0 0 1 18 0v6" stroke={color} strokeWidth="2" strokeLinecap="round"/>
|
|
801
|
+
<react_native_svg_1.Path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3v5zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3v5z" stroke={color} strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"/>
|
|
802
|
+
</react_native_svg_1.default>);
|
|
803
|
+
};
|
|
804
|
+
exports.ListenerIcon = ListenerIcon;
|
|
805
|
+
const LoadingSpinnerIcon = ({ color = AppColors_1.AppColors.amber800Warm, size = 12, }) => {
|
|
806
|
+
return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
807
|
+
<react_native_svg_1.Path d="M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83" stroke={color} strokeWidth="2.2" strokeLinecap="round"/>
|
|
808
|
+
</react_native_svg_1.default>);
|
|
809
|
+
};
|
|
810
|
+
exports.LoadingSpinnerIcon = LoadingSpinnerIcon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "1.1.
|
|
1
|
+
export declare const LIB_VERSION = "1.1.34";
|
|
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LIB_VERSION = void 0;
|
|
4
4
|
// AUTO-GENERATED FILE — do not edit by hand.
|
|
5
5
|
// Regenerated from package.json on every build by scripts/gen-version.js.
|
|
6
|
-
exports.LIB_VERSION = '1.1.
|
|
6
|
+
exports.LIB_VERSION = '1.1.34';
|
|
@@ -111,8 +111,11 @@ export declare const trackRuntimeDefine: () => void;
|
|
|
111
111
|
*/
|
|
112
112
|
export declare const parseBundleSource: (bundleText: string, totalBytes: number, scriptURL: string, isLive?: boolean) => HostBundleAnalysisResult;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
115
|
-
|
|
114
|
+
* Returns an instant baseline bundle analysis synchronously (never blocks UI).
|
|
115
|
+
*/
|
|
116
|
+
export declare const getInitialBundleAnalysis: () => HostBundleAnalysisResult;
|
|
117
|
+
/**
|
|
118
|
+
* Asynchronously fetch and analyze the running Metro bundle in the background.
|
|
116
119
|
*/
|
|
117
120
|
export declare const analyzeHostAppBundle: (forceRefresh?: boolean) => Promise<HostBundleAnalysisResult>;
|
|
118
121
|
export declare const clearCachedBundleAnalysis: () => void;
|