react-native-inapp-inspector 1.1.28 → 1.1.29
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/AppHeaderLogo.js +12 -15
- package/dist/commonjs/components/ConsoleLogCard.js +31 -7
- package/dist/commonjs/components/CopyButton.js +15 -1
- package/dist/commonjs/components/DomainHeader.js +56 -28
- package/dist/commonjs/components/HighlightText.js +7 -1
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +35 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +17 -3
- package/dist/commonjs/components/Inspector/LogDetail.js +8 -5
- package/dist/commonjs/components/Inspector/MainScreen.js +4 -0
- package/dist/commonjs/components/Inspector/NetworkDetail.js +24 -24
- package/dist/commonjs/components/JsonViewer.js +25 -3
- package/dist/commonjs/components/LogCard.js +103 -11
- 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 +1 -1
- 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/helpers/index.d.ts +4 -0
- package/dist/commonjs/helpers/index.js +91 -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 +4 -1
- package/dist/commonjs/styles/index.d.ts +60 -14
- package/dist/commonjs/styles/index.js +71 -26
- package/dist/esm/components/AppHeaderLogo.js +12 -15
- package/dist/esm/components/ConsoleLogCard.js +33 -9
- package/dist/esm/components/CopyButton.js +15 -1
- package/dist/esm/components/DomainHeader.js +56 -28
- package/dist/esm/components/HighlightText.js +7 -1
- package/dist/esm/components/Inspector/AnalyticsTab.js +36 -22
- package/dist/esm/components/Inspector/InspectorHeader.js +18 -4
- package/dist/esm/components/Inspector/LogDetail.js +10 -7
- package/dist/esm/components/Inspector/MainScreen.js +4 -0
- package/dist/esm/components/Inspector/NetworkDetail.js +25 -25
- package/dist/esm/components/JsonViewer.js +25 -3
- package/dist/esm/components/LogCard.js +105 -13
- 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 +1 -1
- 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/helpers/index.d.ts +4 -0
- package/dist/esm/helpers/index.js +86 -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 +4 -1
- package/dist/esm/styles/index.d.ts +60 -14
- package/dist/esm/styles/index.js +71 -26
- package/ios/NetworkInspectorModule.m +0 -10
- package/package.json +4 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -452,18 +467,38 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
|
|
|
452
467
|
fontFamily: string;
|
|
453
468
|
fontSize: number;
|
|
454
469
|
};
|
|
470
|
+
domainProgressSection: {
|
|
471
|
+
marginTop: number;
|
|
472
|
+
gap: number;
|
|
473
|
+
width: string;
|
|
474
|
+
};
|
|
455
475
|
domainProgressTrack: {
|
|
456
476
|
flexDirection: string;
|
|
457
477
|
height: number;
|
|
458
478
|
borderRadius: number;
|
|
459
479
|
overflow: string;
|
|
460
480
|
backgroundColor: string;
|
|
461
|
-
marginTop: number;
|
|
462
481
|
width: string;
|
|
463
482
|
};
|
|
464
483
|
domainProgressSegment: {
|
|
465
484
|
height: string;
|
|
466
485
|
};
|
|
486
|
+
domainProgressLabelsRow: {
|
|
487
|
+
flexDirection: string;
|
|
488
|
+
alignItems: string;
|
|
489
|
+
justifyContent: string;
|
|
490
|
+
paddingHorizontal: number;
|
|
491
|
+
};
|
|
492
|
+
domainProgressRateText: {
|
|
493
|
+
fontFamily: string;
|
|
494
|
+
fontSize: number;
|
|
495
|
+
color: string;
|
|
496
|
+
};
|
|
497
|
+
domainProgressSummaryText: {
|
|
498
|
+
fontFamily: string;
|
|
499
|
+
fontSize: number;
|
|
500
|
+
color: string;
|
|
501
|
+
};
|
|
467
502
|
domainStatsGroup: {
|
|
468
503
|
flexDirection: string;
|
|
469
504
|
alignItems: string;
|
|
@@ -580,11 +615,6 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
|
|
|
580
615
|
fontSize: number;
|
|
581
616
|
};
|
|
582
617
|
methodBadge: {
|
|
583
|
-
paddingHorizontal: number;
|
|
584
|
-
paddingVertical: number;
|
|
585
|
-
borderRadius: number;
|
|
586
|
-
alignItems: string;
|
|
587
|
-
justifyContent: string;
|
|
588
618
|
shadowColor: string;
|
|
589
619
|
shadowOffset: {
|
|
590
620
|
width: number;
|
|
@@ -592,12 +622,28 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
|
|
|
592
622
|
};
|
|
593
623
|
shadowOpacity: number;
|
|
594
624
|
shadowRadius: number;
|
|
625
|
+
paddingHorizontal: number;
|
|
626
|
+
paddingVertical: number;
|
|
627
|
+
borderRadius: number;
|
|
628
|
+
alignItems: string;
|
|
629
|
+
justifyContent: string;
|
|
630
|
+
borderWidth: number;
|
|
631
|
+
borderColor: string;
|
|
632
|
+
} | {
|
|
595
633
|
elevation: number;
|
|
634
|
+
paddingHorizontal: number;
|
|
635
|
+
paddingVertical: number;
|
|
636
|
+
borderRadius: number;
|
|
637
|
+
alignItems: string;
|
|
638
|
+
justifyContent: string;
|
|
639
|
+
borderWidth: number;
|
|
640
|
+
borderColor: string;
|
|
596
641
|
};
|
|
597
642
|
methodBadgeText: {
|
|
598
643
|
fontFamily: string;
|
|
599
644
|
fontSize: number;
|
|
600
645
|
letterSpacing: number;
|
|
646
|
+
color: string;
|
|
601
647
|
};
|
|
602
648
|
cardHostText: {
|
|
603
649
|
fontFamily: string;
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -7,23 +7,34 @@ export const getRawStyles = (colors) => ({
|
|
|
7
7
|
header: {
|
|
8
8
|
flexDirection: 'row',
|
|
9
9
|
alignItems: 'center',
|
|
10
|
-
paddingHorizontal:
|
|
11
|
-
paddingVertical:
|
|
10
|
+
paddingHorizontal: 10,
|
|
11
|
+
paddingVertical: 8,
|
|
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,
|
|
@@ -411,18 +428,38 @@ export const getRawStyles = (colors) => ({
|
|
|
411
428
|
fontFamily: AppFonts.interBold,
|
|
412
429
|
fontSize: 9.5,
|
|
413
430
|
},
|
|
431
|
+
domainProgressSection: {
|
|
432
|
+
marginTop: 8,
|
|
433
|
+
gap: 4,
|
|
434
|
+
width: '100%',
|
|
435
|
+
},
|
|
414
436
|
domainProgressTrack: {
|
|
415
437
|
flexDirection: 'row',
|
|
416
|
-
height:
|
|
417
|
-
borderRadius:
|
|
438
|
+
height: 4,
|
|
439
|
+
borderRadius: 2,
|
|
418
440
|
overflow: 'hidden',
|
|
419
|
-
backgroundColor: '
|
|
420
|
-
marginTop: 6,
|
|
441
|
+
backgroundColor: '#E2E8F0',
|
|
421
442
|
width: '100%',
|
|
422
443
|
},
|
|
423
444
|
domainProgressSegment: {
|
|
424
445
|
height: '100%',
|
|
425
446
|
},
|
|
447
|
+
domainProgressLabelsRow: {
|
|
448
|
+
flexDirection: 'row',
|
|
449
|
+
alignItems: 'center',
|
|
450
|
+
justifyContent: 'space-between',
|
|
451
|
+
paddingHorizontal: 2,
|
|
452
|
+
},
|
|
453
|
+
domainProgressRateText: {
|
|
454
|
+
fontFamily: AppFonts.interBold,
|
|
455
|
+
fontSize: 9.5,
|
|
456
|
+
color: colors.grayTextStrong,
|
|
457
|
+
},
|
|
458
|
+
domainProgressSummaryText: {
|
|
459
|
+
fontFamily: AppFonts.interMedium,
|
|
460
|
+
fontSize: 9,
|
|
461
|
+
color: colors.grayTextWeak,
|
|
462
|
+
},
|
|
426
463
|
domainStatsGroup: {
|
|
427
464
|
flexDirection: 'row',
|
|
428
465
|
alignItems: 'center',
|
|
@@ -536,21 +573,29 @@ export const getRawStyles = (colors) => ({
|
|
|
536
573
|
fontSize: 10,
|
|
537
574
|
},
|
|
538
575
|
methodBadge: {
|
|
539
|
-
paddingHorizontal: 6,
|
|
576
|
+
paddingHorizontal: 6.5,
|
|
540
577
|
paddingVertical: 2.5,
|
|
541
|
-
borderRadius:
|
|
578
|
+
borderRadius: 5,
|
|
542
579
|
alignItems: 'center',
|
|
543
580
|
justifyContent: 'center',
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
581
|
+
borderWidth: 1,
|
|
582
|
+
borderColor: 'rgba(255, 255, 255, 0.3)',
|
|
583
|
+
...(Platform.OS === 'ios'
|
|
584
|
+
? {
|
|
585
|
+
shadowColor: colors.black,
|
|
586
|
+
shadowOffset: { width: 0, height: 1 },
|
|
587
|
+
shadowOpacity: 0.12,
|
|
588
|
+
shadowRadius: 2,
|
|
589
|
+
}
|
|
590
|
+
: {
|
|
591
|
+
elevation: 1,
|
|
592
|
+
}),
|
|
549
593
|
},
|
|
550
594
|
methodBadgeText: {
|
|
551
595
|
fontFamily: AppFonts.interBold,
|
|
552
596
|
fontSize: 9.5,
|
|
553
|
-
letterSpacing: 0.
|
|
597
|
+
letterSpacing: 0.6,
|
|
598
|
+
color: colors.white,
|
|
554
599
|
},
|
|
555
600
|
cardHostText: {
|
|
556
601
|
fontFamily: AppFonts.interMedium,
|
|
@@ -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.29",
|
|
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",
|
|
@@ -101,5 +101,8 @@
|
|
|
101
101
|
"react-native-linear-gradient": "^2.8.3",
|
|
102
102
|
"react-native-svg": "^15.14.0",
|
|
103
103
|
"typescript": "^5.8.3"
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"@react-native-clipboard/clipboard": "^1.16.3"
|
|
104
107
|
}
|
|
105
108
|
}
|