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
@@ -20,17 +20,22 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
20
20
  };
21
21
  headerLeft: {
22
22
  flex: number;
23
+ minWidth: number;
23
24
  alignItems: string;
24
25
  };
25
26
  headerCenter: {
26
27
  flex: number;
28
+ minWidth: number;
27
29
  alignItems: string;
30
+ justifyContent: string;
31
+ paddingHorizontal: number;
28
32
  };
29
33
  headerRight: {
30
- flex: number;
34
+ flexShrink: number;
31
35
  flexDirection: string;
32
36
  alignItems: string;
33
37
  justifyContent: string;
38
+ gap: number;
34
39
  };
35
40
  headerTitle: {
36
41
  fontFamily: string;
@@ -176,6 +181,7 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
176
181
  justifyContent: string;
177
182
  borderWidth: number;
178
183
  borderColor: string;
184
+ overflow: string;
179
185
  };
180
186
  fabWrapper: {
181
187
  position: string;
@@ -250,6 +256,13 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
250
256
  gap: number;
251
257
  };
252
258
  toolbarBtn: {
259
+ shadowColor: string;
260
+ shadowOffset: {
261
+ width: number;
262
+ height: number;
263
+ };
264
+ shadowOpacity: number;
265
+ shadowRadius: number;
253
266
  width: number;
254
267
  height: number;
255
268
  borderRadius: number;
@@ -258,14 +271,16 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
258
271
  backgroundColor: string;
259
272
  borderWidth: number;
260
273
  borderColor: string;
261
- shadowColor: string;
262
- shadowOffset: {
263
- width: number;
264
- height: number;
265
- };
266
- shadowOpacity: number;
267
- shadowRadius: number;
274
+ } | {
268
275
  elevation: number;
276
+ width: number;
277
+ height: number;
278
+ borderRadius: number;
279
+ alignItems: string;
280
+ justifyContent: string;
281
+ backgroundColor: string;
282
+ borderWidth: number;
283
+ borderColor: string;
269
284
  };
270
285
  toolbarBtnActive: {
271
286
  borderColor: string;
@@ -412,6 +427,12 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
412
427
  borderWidth: number;
413
428
  borderColor: string;
414
429
  };
430
+ domainHeaderCardExpanded: {
431
+ borderBottomLeftRadius: number;
432
+ borderBottomRightRadius: number;
433
+ borderBottomWidth: number;
434
+ marginBottom: number;
435
+ };
415
436
  domainHeaderTopRow: {
416
437
  flexDirection: string;
417
438
  alignItems: string;
@@ -421,6 +442,8 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
421
442
  flexDirection: string;
422
443
  alignItems: string;
423
444
  flex: number;
445
+ minWidth: number;
446
+ marginRight: number;
424
447
  gap: number;
425
448
  };
426
449
  domainIconWrap: {
@@ -452,21 +475,42 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
452
475
  fontFamily: string;
453
476
  fontSize: number;
454
477
  };
478
+ domainProgressSection: {
479
+ marginTop: number;
480
+ gap: number;
481
+ width: string;
482
+ };
455
483
  domainProgressTrack: {
456
484
  flexDirection: string;
457
485
  height: number;
458
486
  borderRadius: number;
459
487
  overflow: string;
460
488
  backgroundColor: string;
461
- marginTop: number;
462
489
  width: string;
463
490
  };
464
491
  domainProgressSegment: {
465
492
  height: string;
466
493
  };
494
+ domainProgressLabelsRow: {
495
+ flexDirection: string;
496
+ alignItems: string;
497
+ justifyContent: string;
498
+ paddingHorizontal: number;
499
+ };
500
+ domainProgressRateText: {
501
+ fontFamily: string;
502
+ fontSize: number;
503
+ color: string;
504
+ };
505
+ domainProgressSummaryText: {
506
+ fontFamily: string;
507
+ fontSize: number;
508
+ color: string;
509
+ };
467
510
  domainStatsGroup: {
468
511
  flexDirection: string;
469
512
  alignItems: string;
513
+ flexShrink: number;
470
514
  gap: number;
471
515
  };
472
516
  domainStatPill: {
@@ -487,8 +531,20 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
487
531
  treeNodeRow: {
488
532
  flexDirection: string;
489
533
  alignItems: string;
490
- paddingLeft: number;
534
+ marginHorizontal: number;
491
535
  paddingRight: number;
536
+ paddingLeft: number;
537
+ backgroundColor: string;
538
+ borderLeftWidth: number;
539
+ borderRightWidth: number;
540
+ borderColor: string;
541
+ };
542
+ treeNodeRowLast: {
543
+ borderBottomWidth: number;
544
+ borderBottomLeftRadius: number;
545
+ borderBottomRightRadius: number;
546
+ marginBottom: number;
547
+ paddingBottom: number;
492
548
  };
493
549
  treeLines: {
494
550
  width: number;
@@ -580,11 +636,6 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
580
636
  fontSize: number;
581
637
  };
582
638
  methodBadge: {
583
- paddingHorizontal: number;
584
- paddingVertical: number;
585
- borderRadius: number;
586
- alignItems: string;
587
- justifyContent: string;
588
639
  shadowColor: string;
589
640
  shadowOffset: {
590
641
  width: number;
@@ -592,12 +643,28 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
592
643
  };
593
644
  shadowOpacity: number;
594
645
  shadowRadius: number;
646
+ paddingHorizontal: number;
647
+ paddingVertical: number;
648
+ borderRadius: number;
649
+ alignItems: string;
650
+ justifyContent: string;
651
+ borderWidth: number;
652
+ borderColor: string;
653
+ } | {
595
654
  elevation: number;
655
+ paddingHorizontal: number;
656
+ paddingVertical: number;
657
+ borderRadius: number;
658
+ alignItems: string;
659
+ justifyContent: string;
660
+ borderWidth: number;
661
+ borderColor: string;
596
662
  };
597
663
  methodBadgeText: {
598
664
  fontFamily: string;
599
665
  fontSize: number;
600
666
  letterSpacing: number;
667
+ color: string;
601
668
  };
602
669
  cardHostText: {
603
670
  fontFamily: string;
@@ -46,20 +46,31 @@ const getRawStyles = (colors) => ({
46
46
  paddingHorizontal: 12,
47
47
  paddingVertical: 10,
48
48
  zIndex: 10,
49
- minHeight: 64,
49
+ minHeight: 56,
50
50
  shadowColor: colors.black,
51
51
  shadowOffset: { width: 0, height: 2 },
52
52
  shadowOpacity: 0.08,
53
53
  shadowRadius: 4,
54
- elevation: 4,
54
+ elevation: 3,
55
55
  },
56
- headerLeft: { flex: 2, alignItems: 'flex-start' },
57
- headerCenter: { flex: 3, alignItems: 'center' },
58
- headerRight: {
56
+ headerLeft: {
59
57
  flex: 1,
58
+ minWidth: 0,
59
+ alignItems: 'flex-start',
60
+ },
61
+ headerCenter: {
62
+ flex: 1,
63
+ minWidth: 0,
64
+ alignItems: 'center',
65
+ justifyContent: 'center',
66
+ paddingHorizontal: 4,
67
+ },
68
+ headerRight: {
69
+ flexShrink: 0,
60
70
  flexDirection: 'row',
61
71
  alignItems: 'center',
62
72
  justifyContent: 'flex-end',
73
+ gap: 6,
63
74
  },
64
75
  headerTitle: {
65
76
  fontFamily: AppFonts_1.AppFonts.interBold,
@@ -185,11 +196,12 @@ const getRawStyles = (colors) => ({
185
196
  width: 32,
186
197
  height: 32,
187
198
  borderRadius: 8,
188
- backgroundColor: `${colors.white}26`,
199
+ backgroundColor: `${colors.white}2B`,
189
200
  alignItems: 'center',
190
201
  justifyContent: 'center',
191
202
  borderWidth: 1,
192
- borderColor: `${colors.white}14`,
203
+ borderColor: `${colors.white}33`,
204
+ overflow: 'hidden',
193
205
  },
194
206
  fabWrapper: {
195
207
  position: 'absolute',
@@ -266,11 +278,16 @@ const getRawStyles = (colors) => ({
266
278
  backgroundColor: colors.primaryLight,
267
279
  borderWidth: 1.5,
268
280
  borderColor: colors.grayBorderSecondary,
269
- shadowColor: colors.black,
270
- shadowOffset: { width: 0, height: 1 },
271
- shadowOpacity: 0.04,
272
- shadowRadius: 2,
273
- elevation: 1,
281
+ ...(react_native_1.Platform.OS === 'ios'
282
+ ? {
283
+ shadowColor: colors.black,
284
+ shadowOffset: { width: 0, height: 1 },
285
+ shadowOpacity: 0.04,
286
+ shadowRadius: 2,
287
+ }
288
+ : {
289
+ elevation: 0,
290
+ }),
274
291
  },
275
292
  toolbarBtnActive: {
276
293
  borderColor: colors.purple,
@@ -407,6 +424,12 @@ const getRawStyles = (colors) => ({
407
424
  borderWidth: 1,
408
425
  borderColor: colors.grayBorderSecondary,
409
426
  },
427
+ domainHeaderCardExpanded: {
428
+ borderBottomLeftRadius: 0,
429
+ borderBottomRightRadius: 0,
430
+ borderBottomWidth: 0,
431
+ marginBottom: 0,
432
+ },
410
433
  domainHeaderTopRow: {
411
434
  flexDirection: 'row',
412
435
  alignItems: 'center',
@@ -416,6 +439,8 @@ const getRawStyles = (colors) => ({
416
439
  flexDirection: 'row',
417
440
  alignItems: 'center',
418
441
  flex: 1,
442
+ minWidth: 0,
443
+ marginRight: 6,
419
444
  gap: 8,
420
445
  },
421
446
  domainIconWrap: {
@@ -447,21 +472,42 @@ const getRawStyles = (colors) => ({
447
472
  fontFamily: AppFonts_1.AppFonts.interBold,
448
473
  fontSize: 9.5,
449
474
  },
475
+ domainProgressSection: {
476
+ marginTop: 8,
477
+ gap: 4,
478
+ width: '100%',
479
+ },
450
480
  domainProgressTrack: {
451
481
  flexDirection: 'row',
452
- height: 2.5,
453
- borderRadius: 1.25,
482
+ height: 4,
483
+ borderRadius: 2,
454
484
  overflow: 'hidden',
455
- backgroundColor: 'rgba(148, 163, 184, 0.2)',
456
- marginTop: 6,
485
+ backgroundColor: '#E2E8F0',
457
486
  width: '100%',
458
487
  },
459
488
  domainProgressSegment: {
460
489
  height: '100%',
461
490
  },
491
+ domainProgressLabelsRow: {
492
+ flexDirection: 'row',
493
+ alignItems: 'center',
494
+ justifyContent: 'space-between',
495
+ paddingHorizontal: 2,
496
+ },
497
+ domainProgressRateText: {
498
+ fontFamily: AppFonts_1.AppFonts.interBold,
499
+ fontSize: 9.5,
500
+ color: colors.grayTextStrong,
501
+ },
502
+ domainProgressSummaryText: {
503
+ fontFamily: AppFonts_1.AppFonts.interMedium,
504
+ fontSize: 9,
505
+ color: colors.grayTextWeak,
506
+ },
462
507
  domainStatsGroup: {
463
508
  flexDirection: 'row',
464
509
  alignItems: 'center',
510
+ flexShrink: 0,
465
511
  gap: 4,
466
512
  },
467
513
  domainStatPill: {
@@ -482,8 +528,20 @@ const getRawStyles = (colors) => ({
482
528
  treeNodeRow: {
483
529
  flexDirection: 'row',
484
530
  alignItems: 'stretch',
485
- paddingLeft: 12,
486
- paddingRight: 12,
531
+ marginHorizontal: 12,
532
+ paddingRight: 8,
533
+ paddingLeft: 4,
534
+ backgroundColor: colors.grayBackground,
535
+ borderLeftWidth: 1,
536
+ borderRightWidth: 1,
537
+ borderColor: colors.grayBorderSecondary,
538
+ },
539
+ treeNodeRowLast: {
540
+ borderBottomWidth: 1,
541
+ borderBottomLeftRadius: 10,
542
+ borderBottomRightRadius: 10,
543
+ marginBottom: 8,
544
+ paddingBottom: 6,
487
545
  },
488
546
  treeLines: {
489
547
  width: 28,
@@ -572,21 +630,29 @@ const getRawStyles = (colors) => ({
572
630
  fontSize: 10,
573
631
  },
574
632
  methodBadge: {
575
- paddingHorizontal: 6,
633
+ paddingHorizontal: 6.5,
576
634
  paddingVertical: 2.5,
577
- borderRadius: 6,
635
+ borderRadius: 5,
578
636
  alignItems: 'center',
579
637
  justifyContent: 'center',
580
- shadowColor: colors.black,
581
- shadowOffset: { width: 0, height: 1 },
582
- shadowOpacity: 0.08,
583
- shadowRadius: 2,
584
- elevation: 1,
638
+ borderWidth: 1,
639
+ borderColor: 'rgba(255, 255, 255, 0.3)',
640
+ ...(react_native_1.Platform.OS === 'ios'
641
+ ? {
642
+ shadowColor: colors.black,
643
+ shadowOffset: { width: 0, height: 1 },
644
+ shadowOpacity: 0.12,
645
+ shadowRadius: 2,
646
+ }
647
+ : {
648
+ elevation: 1,
649
+ }),
585
650
  },
586
651
  methodBadgeText: {
587
652
  fontFamily: AppFonts_1.AppFonts.interBold,
588
653
  fontSize: 9.5,
589
- letterSpacing: 0.4,
654
+ letterSpacing: 0.6,
655
+ color: colors.white,
590
656
  },
591
657
  cardHostText: {
592
658
  fontFamily: AppFonts_1.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>;