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.
Files changed (77) hide show
  1. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.java +29 -80
  2. package/dist/commonjs/components/AnalyticsDetail.js +668 -108
  3. package/dist/commonjs/components/AppHeaderLogo.js +15 -15
  4. package/dist/commonjs/components/ConsoleLogCard.js +112 -66
  5. package/dist/commonjs/components/CopyButton.js +15 -1
  6. package/dist/commonjs/components/DomainHeader.js +64 -32
  7. package/dist/commonjs/components/HighlightText.js +7 -1
  8. package/dist/commonjs/components/Inspector/AnalyticsTab.js +332 -221
  9. package/dist/commonjs/components/Inspector/ConsoleTab.js +162 -56
  10. package/dist/commonjs/components/Inspector/InspectorHeader.js +70 -119
  11. package/dist/commonjs/components/Inspector/LogDetail.js +53 -17
  12. package/dist/commonjs/components/Inspector/MainScreen.js +4 -0
  13. package/dist/commonjs/components/Inspector/NetworkDetail.js +24 -24
  14. package/dist/commonjs/components/Inspector/NetworkTab.js +4 -1
  15. package/dist/commonjs/components/Inspector/ReduxDetail.js +237 -42
  16. package/dist/commonjs/components/Inspector/ReduxTab.js +456 -35
  17. package/dist/commonjs/components/JsonViewer.js +26 -4
  18. package/dist/commonjs/components/LogCard.js +103 -11
  19. package/dist/commonjs/components/NetworkIcons.js +19 -10
  20. package/dist/commonjs/components/Toast.d.ts +3 -0
  21. package/dist/commonjs/components/Toast.js +152 -0
  22. package/dist/commonjs/components/TouchableScale.d.ts +1 -0
  23. package/dist/commonjs/components/TouchableScale.js +3 -3
  24. package/dist/commonjs/components/TreeNode.js +12 -2
  25. package/dist/commonjs/constants/index.js +6 -6
  26. package/dist/commonjs/constants/version.d.ts +1 -1
  27. package/dist/commonjs/constants/version.js +1 -1
  28. package/dist/commonjs/customHooks/reduxLogger.js +128 -5
  29. package/dist/commonjs/helpers/index.d.ts +4 -0
  30. package/dist/commonjs/helpers/index.js +107 -92
  31. package/dist/commonjs/helpers/toast.d.ts +4 -0
  32. package/dist/commonjs/helpers/toast.js +20 -0
  33. package/dist/commonjs/i18n/locales/en.json +49 -3
  34. package/dist/commonjs/styles/AppColors.d.ts +6 -0
  35. package/dist/commonjs/styles/AppColors.js +6 -0
  36. package/dist/commonjs/styles/index.d.ts +82 -15
  37. package/dist/commonjs/styles/index.js +92 -26
  38. package/dist/commonjs/types/interfaces.d.ts +7 -0
  39. package/dist/esm/components/AnalyticsDetail.js +670 -110
  40. package/dist/esm/components/AppHeaderLogo.js +15 -15
  41. package/dist/esm/components/ConsoleLogCard.js +114 -68
  42. package/dist/esm/components/CopyButton.js +15 -1
  43. package/dist/esm/components/DomainHeader.js +64 -32
  44. package/dist/esm/components/HighlightText.js +7 -1
  45. package/dist/esm/components/Inspector/AnalyticsTab.js +334 -223
  46. package/dist/esm/components/Inspector/ConsoleTab.js +163 -57
  47. package/dist/esm/components/Inspector/InspectorHeader.js +71 -120
  48. package/dist/esm/components/Inspector/LogDetail.js +55 -19
  49. package/dist/esm/components/Inspector/MainScreen.js +4 -0
  50. package/dist/esm/components/Inspector/NetworkDetail.js +25 -25
  51. package/dist/esm/components/Inspector/NetworkTab.js +4 -1
  52. package/dist/esm/components/Inspector/ReduxDetail.js +239 -44
  53. package/dist/esm/components/Inspector/ReduxTab.js +458 -37
  54. package/dist/esm/components/JsonViewer.js +26 -4
  55. package/dist/esm/components/LogCard.js +105 -13
  56. package/dist/esm/components/NetworkIcons.js +19 -10
  57. package/dist/esm/components/Toast.d.ts +3 -0
  58. package/dist/esm/components/Toast.js +117 -0
  59. package/dist/esm/components/TouchableScale.d.ts +1 -0
  60. package/dist/esm/components/TouchableScale.js +3 -3
  61. package/dist/esm/components/TreeNode.js +12 -2
  62. package/dist/esm/constants/index.js +6 -6
  63. package/dist/esm/constants/version.d.ts +1 -1
  64. package/dist/esm/constants/version.js +1 -1
  65. package/dist/esm/customHooks/reduxLogger.js +128 -5
  66. package/dist/esm/helpers/index.d.ts +4 -0
  67. package/dist/esm/helpers/index.js +102 -92
  68. package/dist/esm/helpers/toast.d.ts +4 -0
  69. package/dist/esm/helpers/toast.js +15 -0
  70. package/dist/esm/i18n/locales/en.json +49 -3
  71. package/dist/esm/styles/AppColors.d.ts +6 -0
  72. package/dist/esm/styles/AppColors.js +6 -0
  73. package/dist/esm/styles/index.d.ts +82 -15
  74. package/dist/esm/styles/index.js +92 -26
  75. package/dist/esm/types/interfaces.d.ts +7 -0
  76. package/ios/NetworkInspectorModule.m +0 -10
  77. package/package.json +13 -10
@@ -10,20 +10,31 @@ export const getRawStyles = (colors) => ({
10
10
  paddingHorizontal: 12,
11
11
  paddingVertical: 10,
12
12
  zIndex: 10,
13
- minHeight: 64,
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: 4,
18
+ elevation: 3,
19
19
  },
20
- headerLeft: { flex: 2, alignItems: 'flex-start' },
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}26`,
163
+ backgroundColor: `${colors.white}2B`,
153
164
  alignItems: 'center',
154
165
  justifyContent: 'center',
155
166
  borderWidth: 1,
156
- borderColor: `${colors.white}14`,
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
- shadowColor: colors.black,
234
- shadowOffset: { width: 0, height: 1 },
235
- shadowOpacity: 0.04,
236
- shadowRadius: 2,
237
- elevation: 1,
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: 2.5,
417
- borderRadius: 1.25,
446
+ height: 4,
447
+ borderRadius: 2,
418
448
  overflow: 'hidden',
419
- backgroundColor: 'rgba(148, 163, 184, 0.2)',
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
- paddingLeft: 12,
450
- paddingRight: 12,
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: 6,
599
+ borderRadius: 5,
542
600
  alignItems: 'center',
543
601
  justifyContent: 'center',
544
- shadowColor: colors.black,
545
- shadowOffset: { width: 0, height: 1 },
546
- shadowOpacity: 0.08,
547
- shadowRadius: 2,
548
- elevation: 1,
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.4,
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.28",
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": "^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",
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": "^4.0.0",
101
- "react-native-linear-gradient": "^2.8.3",
102
- "react-native-svg": "^15.14.0",
103
- "typescript": "^5.8.3"
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
  }