react-native-inapp-inspector 1.1.28 → 1.1.31
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/android/src/main/java/com/inappinspector/NetworkInspectorModule.java +29 -80
- package/dist/commonjs/components/AnalyticsDetail.js +668 -108
- package/dist/commonjs/components/AppHeaderLogo.js +15 -15
- package/dist/commonjs/components/ConsoleLogCard.js +112 -66
- package/dist/commonjs/components/CopyButton.js +15 -1
- package/dist/commonjs/components/DomainHeader.js +64 -32
- package/dist/commonjs/components/HighlightText.js +7 -1
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +332 -221
- package/dist/commonjs/components/Inspector/ConsoleTab.js +162 -56
- package/dist/commonjs/components/Inspector/InspectorHeader.js +70 -119
- package/dist/commonjs/components/Inspector/LogDetail.js +53 -17
- package/dist/commonjs/components/Inspector/MainScreen.js +4 -0
- package/dist/commonjs/components/Inspector/NetworkDetail.js +24 -24
- package/dist/commonjs/components/Inspector/NetworkTab.js +4 -1
- package/dist/commonjs/components/Inspector/ReduxDetail.js +237 -42
- package/dist/commonjs/components/Inspector/ReduxTab.js +456 -35
- package/dist/commonjs/components/JsonViewer.js +26 -4
- package/dist/commonjs/components/LogCard.js +103 -11
- package/dist/commonjs/components/NetworkIcons.js +19 -10
- package/dist/commonjs/components/Toast.d.ts +3 -0
- package/dist/commonjs/components/Toast.js +152 -0
- package/dist/commonjs/components/TouchableScale.d.ts +1 -0
- package/dist/commonjs/components/TouchableScale.js +3 -3
- package/dist/commonjs/components/TreeNode.js +12 -2
- package/dist/commonjs/constants/index.js +6 -6
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/reduxLogger.js +128 -5
- package/dist/commonjs/helpers/index.d.ts +4 -0
- package/dist/commonjs/helpers/index.js +107 -92
- package/dist/commonjs/helpers/toast.d.ts +4 -0
- package/dist/commonjs/helpers/toast.js +20 -0
- package/dist/commonjs/i18n/locales/en.json +49 -3
- package/dist/commonjs/styles/AppColors.d.ts +6 -0
- package/dist/commonjs/styles/AppColors.js +6 -0
- package/dist/commonjs/styles/index.d.ts +82 -15
- package/dist/commonjs/styles/index.js +92 -26
- package/dist/commonjs/types/interfaces.d.ts +7 -0
- package/dist/esm/components/AnalyticsDetail.js +670 -110
- package/dist/esm/components/AppHeaderLogo.js +15 -15
- package/dist/esm/components/ConsoleLogCard.js +114 -68
- package/dist/esm/components/CopyButton.js +15 -1
- package/dist/esm/components/DomainHeader.js +64 -32
- package/dist/esm/components/HighlightText.js +7 -1
- package/dist/esm/components/Inspector/AnalyticsTab.js +334 -223
- package/dist/esm/components/Inspector/ConsoleTab.js +163 -57
- package/dist/esm/components/Inspector/InspectorHeader.js +71 -120
- package/dist/esm/components/Inspector/LogDetail.js +55 -19
- package/dist/esm/components/Inspector/MainScreen.js +4 -0
- package/dist/esm/components/Inspector/NetworkDetail.js +25 -25
- package/dist/esm/components/Inspector/NetworkTab.js +4 -1
- package/dist/esm/components/Inspector/ReduxDetail.js +239 -44
- package/dist/esm/components/Inspector/ReduxTab.js +458 -37
- package/dist/esm/components/JsonViewer.js +26 -4
- package/dist/esm/components/LogCard.js +105 -13
- package/dist/esm/components/NetworkIcons.js +19 -10
- package/dist/esm/components/Toast.d.ts +3 -0
- package/dist/esm/components/Toast.js +117 -0
- package/dist/esm/components/TouchableScale.d.ts +1 -0
- package/dist/esm/components/TouchableScale.js +3 -3
- package/dist/esm/components/TreeNode.js +12 -2
- package/dist/esm/constants/index.js +6 -6
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/reduxLogger.js +128 -5
- package/dist/esm/helpers/index.d.ts +4 -0
- package/dist/esm/helpers/index.js +102 -92
- package/dist/esm/helpers/toast.d.ts +4 -0
- package/dist/esm/helpers/toast.js +15 -0
- package/dist/esm/i18n/locales/en.json +49 -3
- package/dist/esm/styles/AppColors.d.ts +6 -0
- package/dist/esm/styles/AppColors.js +6 -0
- package/dist/esm/styles/index.d.ts +82 -15
- package/dist/esm/styles/index.js +92 -26
- package/dist/esm/types/interfaces.d.ts +7 -0
- package/ios/NetworkInspectorModule.m +0 -10
- package/package.json +13 -10
package/dist/esm/styles/index.js
CHANGED
|
@@ -10,20 +10,31 @@ export const getRawStyles = (colors) => ({
|
|
|
10
10
|
paddingHorizontal: 12,
|
|
11
11
|
paddingVertical: 10,
|
|
12
12
|
zIndex: 10,
|
|
13
|
-
minHeight:
|
|
13
|
+
minHeight: 56,
|
|
14
14
|
shadowColor: colors.black,
|
|
15
15
|
shadowOffset: { width: 0, height: 2 },
|
|
16
16
|
shadowOpacity: 0.08,
|
|
17
17
|
shadowRadius: 4,
|
|
18
|
-
elevation:
|
|
18
|
+
elevation: 3,
|
|
19
19
|
},
|
|
20
|
-
headerLeft: {
|
|
21
|
-
headerCenter: { flex: 3, alignItems: 'center' },
|
|
22
|
-
headerRight: {
|
|
20
|
+
headerLeft: {
|
|
23
21
|
flex: 1,
|
|
22
|
+
minWidth: 0,
|
|
23
|
+
alignItems: 'flex-start',
|
|
24
|
+
},
|
|
25
|
+
headerCenter: {
|
|
26
|
+
flex: 1,
|
|
27
|
+
minWidth: 0,
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
justifyContent: 'center',
|
|
30
|
+
paddingHorizontal: 4,
|
|
31
|
+
},
|
|
32
|
+
headerRight: {
|
|
33
|
+
flexShrink: 0,
|
|
24
34
|
flexDirection: 'row',
|
|
25
35
|
alignItems: 'center',
|
|
26
36
|
justifyContent: 'flex-end',
|
|
37
|
+
gap: 6,
|
|
27
38
|
},
|
|
28
39
|
headerTitle: {
|
|
29
40
|
fontFamily: AppFonts.interBold,
|
|
@@ -149,11 +160,12 @@ export const getRawStyles = (colors) => ({
|
|
|
149
160
|
width: 32,
|
|
150
161
|
height: 32,
|
|
151
162
|
borderRadius: 8,
|
|
152
|
-
backgroundColor: `${colors.white}
|
|
163
|
+
backgroundColor: `${colors.white}2B`,
|
|
153
164
|
alignItems: 'center',
|
|
154
165
|
justifyContent: 'center',
|
|
155
166
|
borderWidth: 1,
|
|
156
|
-
borderColor: `${colors.white}
|
|
167
|
+
borderColor: `${colors.white}33`,
|
|
168
|
+
overflow: 'hidden',
|
|
157
169
|
},
|
|
158
170
|
fabWrapper: {
|
|
159
171
|
position: 'absolute',
|
|
@@ -230,11 +242,16 @@ export const getRawStyles = (colors) => ({
|
|
|
230
242
|
backgroundColor: colors.primaryLight,
|
|
231
243
|
borderWidth: 1.5,
|
|
232
244
|
borderColor: colors.grayBorderSecondary,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
245
|
+
...(Platform.OS === 'ios'
|
|
246
|
+
? {
|
|
247
|
+
shadowColor: colors.black,
|
|
248
|
+
shadowOffset: { width: 0, height: 1 },
|
|
249
|
+
shadowOpacity: 0.04,
|
|
250
|
+
shadowRadius: 2,
|
|
251
|
+
}
|
|
252
|
+
: {
|
|
253
|
+
elevation: 0,
|
|
254
|
+
}),
|
|
238
255
|
},
|
|
239
256
|
toolbarBtnActive: {
|
|
240
257
|
borderColor: colors.purple,
|
|
@@ -371,6 +388,12 @@ export const getRawStyles = (colors) => ({
|
|
|
371
388
|
borderWidth: 1,
|
|
372
389
|
borderColor: colors.grayBorderSecondary,
|
|
373
390
|
},
|
|
391
|
+
domainHeaderCardExpanded: {
|
|
392
|
+
borderBottomLeftRadius: 0,
|
|
393
|
+
borderBottomRightRadius: 0,
|
|
394
|
+
borderBottomWidth: 0,
|
|
395
|
+
marginBottom: 0,
|
|
396
|
+
},
|
|
374
397
|
domainHeaderTopRow: {
|
|
375
398
|
flexDirection: 'row',
|
|
376
399
|
alignItems: 'center',
|
|
@@ -380,6 +403,8 @@ export const getRawStyles = (colors) => ({
|
|
|
380
403
|
flexDirection: 'row',
|
|
381
404
|
alignItems: 'center',
|
|
382
405
|
flex: 1,
|
|
406
|
+
minWidth: 0,
|
|
407
|
+
marginRight: 6,
|
|
383
408
|
gap: 8,
|
|
384
409
|
},
|
|
385
410
|
domainIconWrap: {
|
|
@@ -411,21 +436,42 @@ export const getRawStyles = (colors) => ({
|
|
|
411
436
|
fontFamily: AppFonts.interBold,
|
|
412
437
|
fontSize: 9.5,
|
|
413
438
|
},
|
|
439
|
+
domainProgressSection: {
|
|
440
|
+
marginTop: 8,
|
|
441
|
+
gap: 4,
|
|
442
|
+
width: '100%',
|
|
443
|
+
},
|
|
414
444
|
domainProgressTrack: {
|
|
415
445
|
flexDirection: 'row',
|
|
416
|
-
height:
|
|
417
|
-
borderRadius:
|
|
446
|
+
height: 4,
|
|
447
|
+
borderRadius: 2,
|
|
418
448
|
overflow: 'hidden',
|
|
419
|
-
backgroundColor: '
|
|
420
|
-
marginTop: 6,
|
|
449
|
+
backgroundColor: '#E2E8F0',
|
|
421
450
|
width: '100%',
|
|
422
451
|
},
|
|
423
452
|
domainProgressSegment: {
|
|
424
453
|
height: '100%',
|
|
425
454
|
},
|
|
455
|
+
domainProgressLabelsRow: {
|
|
456
|
+
flexDirection: 'row',
|
|
457
|
+
alignItems: 'center',
|
|
458
|
+
justifyContent: 'space-between',
|
|
459
|
+
paddingHorizontal: 2,
|
|
460
|
+
},
|
|
461
|
+
domainProgressRateText: {
|
|
462
|
+
fontFamily: AppFonts.interBold,
|
|
463
|
+
fontSize: 9.5,
|
|
464
|
+
color: colors.grayTextStrong,
|
|
465
|
+
},
|
|
466
|
+
domainProgressSummaryText: {
|
|
467
|
+
fontFamily: AppFonts.interMedium,
|
|
468
|
+
fontSize: 9,
|
|
469
|
+
color: colors.grayTextWeak,
|
|
470
|
+
},
|
|
426
471
|
domainStatsGroup: {
|
|
427
472
|
flexDirection: 'row',
|
|
428
473
|
alignItems: 'center',
|
|
474
|
+
flexShrink: 0,
|
|
429
475
|
gap: 4,
|
|
430
476
|
},
|
|
431
477
|
domainStatPill: {
|
|
@@ -446,8 +492,20 @@ export const getRawStyles = (colors) => ({
|
|
|
446
492
|
treeNodeRow: {
|
|
447
493
|
flexDirection: 'row',
|
|
448
494
|
alignItems: 'stretch',
|
|
449
|
-
|
|
450
|
-
paddingRight:
|
|
495
|
+
marginHorizontal: 12,
|
|
496
|
+
paddingRight: 8,
|
|
497
|
+
paddingLeft: 4,
|
|
498
|
+
backgroundColor: colors.grayBackground,
|
|
499
|
+
borderLeftWidth: 1,
|
|
500
|
+
borderRightWidth: 1,
|
|
501
|
+
borderColor: colors.grayBorderSecondary,
|
|
502
|
+
},
|
|
503
|
+
treeNodeRowLast: {
|
|
504
|
+
borderBottomWidth: 1,
|
|
505
|
+
borderBottomLeftRadius: 10,
|
|
506
|
+
borderBottomRightRadius: 10,
|
|
507
|
+
marginBottom: 8,
|
|
508
|
+
paddingBottom: 6,
|
|
451
509
|
},
|
|
452
510
|
treeLines: {
|
|
453
511
|
width: 28,
|
|
@@ -536,21 +594,29 @@ export const getRawStyles = (colors) => ({
|
|
|
536
594
|
fontSize: 10,
|
|
537
595
|
},
|
|
538
596
|
methodBadge: {
|
|
539
|
-
paddingHorizontal: 6,
|
|
597
|
+
paddingHorizontal: 6.5,
|
|
540
598
|
paddingVertical: 2.5,
|
|
541
|
-
borderRadius:
|
|
599
|
+
borderRadius: 5,
|
|
542
600
|
alignItems: 'center',
|
|
543
601
|
justifyContent: 'center',
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
602
|
+
borderWidth: 1,
|
|
603
|
+
borderColor: 'rgba(255, 255, 255, 0.3)',
|
|
604
|
+
...(Platform.OS === 'ios'
|
|
605
|
+
? {
|
|
606
|
+
shadowColor: colors.black,
|
|
607
|
+
shadowOffset: { width: 0, height: 1 },
|
|
608
|
+
shadowOpacity: 0.12,
|
|
609
|
+
shadowRadius: 2,
|
|
610
|
+
}
|
|
611
|
+
: {
|
|
612
|
+
elevation: 1,
|
|
613
|
+
}),
|
|
549
614
|
},
|
|
550
615
|
methodBadgeText: {
|
|
551
616
|
fontFamily: AppFonts.interBold,
|
|
552
617
|
fontSize: 9.5,
|
|
553
|
-
letterSpacing: 0.
|
|
618
|
+
letterSpacing: 0.6,
|
|
619
|
+
color: colors.white,
|
|
554
620
|
},
|
|
555
621
|
cardHostText: {
|
|
556
622
|
fontFamily: AppFonts.interMedium,
|
|
@@ -119,6 +119,13 @@ export interface ReduxHistoryEntry {
|
|
|
119
119
|
affectedSlices: string[];
|
|
120
120
|
prevState?: any;
|
|
121
121
|
nextState?: any;
|
|
122
|
+
stack?: string;
|
|
123
|
+
caller?: string;
|
|
124
|
+
callerFile?: string;
|
|
125
|
+
callerLine?: number;
|
|
126
|
+
callerCol?: number;
|
|
127
|
+
originType?: 'saga' | 'thunk' | 'ui' | 'direct' | 'listener';
|
|
128
|
+
sliceName?: string;
|
|
122
129
|
}
|
|
123
130
|
export interface InspectorStorage {
|
|
124
131
|
getItem: (key: string) => string | null | Promise<string | null>;
|
|
@@ -122,14 +122,4 @@ RCT_EXPORT_METHOD(enableNativeCrashProtection:(RCTPromiseResolveBlock)resolve
|
|
|
122
122
|
resolve(@(YES));
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
RCT_EXPORT_METHOD(copyToClipboard:(NSString *)text
|
|
126
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
127
|
-
rejecter:(RCTPromiseRejectBlock)reject) {
|
|
128
|
-
dispatch_async(dispatch_get_main_queue(), ^{
|
|
129
|
-
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
|
|
130
|
-
pasteboard.string = text ?: @"";
|
|
131
|
-
resolve(@(YES));
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
|
|
135
125
|
@end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-inapp-inspector",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.31",
|
|
4
4
|
"description": "The zero-config, all-in-one in-app debugger for React Native & Expo. Inspect Network (fetch/axios), Console logs, Stack Traces, Redux State, Firebase Analytics, and JS Bundle size directly on device.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -90,16 +90,19 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@react-navigation/native": "
|
|
94
|
-
"@types/react": "
|
|
95
|
-
"@types/react-native": "
|
|
96
|
-
"axios": "
|
|
97
|
-
"prettier": "
|
|
93
|
+
"@react-navigation/native": "6.1.9",
|
|
94
|
+
"@types/react": "19.1.0",
|
|
95
|
+
"@types/react-native": "0.72.0",
|
|
96
|
+
"axios": "1.7.2",
|
|
97
|
+
"prettier": "2.8.8",
|
|
98
98
|
"react": "19.1.0",
|
|
99
99
|
"react-native": "0.81.4",
|
|
100
|
-
"react-native-bundle-visualizer": "
|
|
101
|
-
"react-native-linear-gradient": "
|
|
102
|
-
"react-native-svg": "
|
|
103
|
-
"typescript": "
|
|
100
|
+
"react-native-bundle-visualizer": "4.0.0",
|
|
101
|
+
"react-native-linear-gradient": "2.8.3",
|
|
102
|
+
"react-native-svg": "15.14.0",
|
|
103
|
+
"typescript": "5.8.3"
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"@react-native-clipboard/clipboard": "1.16.3"
|
|
104
107
|
}
|
|
105
108
|
}
|