react-native-inapp-inspector 2.3.8 → 2.3.10
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/AnalyticsTab.js +27 -2
- package/dist/commonjs/components/Inspector/BundleTab.js +3 -0
- package/dist/commonjs/components/Inspector/ConsoleTab.js +24 -1
- package/dist/commonjs/components/Inspector/CrashTab.js +30 -1
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.d.ts +7 -0
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +111 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.js +225 -108
- package/dist/commonjs/components/Inspector/NetworkDetail.js +2 -1
- package/dist/commonjs/components/Inspector/NetworkFilterModal.d.ts +19 -0
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +648 -0
- package/dist/commonjs/components/Inspector/NetworkTab.js +89 -147
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/commonjs/components/Inspector/PerformanceTab.js +3 -0
- package/dist/commonjs/components/Inspector/ReduxTab.js +24 -1
- package/dist/commonjs/components/Inspector/SettingsPanel.js +73 -88
- package/dist/commonjs/components/Inspector/StorageTab.js +37 -11
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +2 -0
- package/dist/commonjs/components/LogCard.js +35 -26
- package/dist/commonjs/components/NetworkIcons.d.ts +1 -0
- package/dist/commonjs/components/NetworkIcons.js +6 -1
- package/dist/commonjs/constants/index.js +3 -0
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/helpers/telemetry.js +34 -0
- package/dist/commonjs/index.js +3 -0
- package/dist/commonjs/styles/index.d.ts +11 -0
- package/dist/commonjs/styles/index.js +20 -5
- package/dist/commonjs/types/enums.d.ts +3 -0
- package/dist/commonjs/types/enums.js +3 -0
- package/dist/esm/components/Inspector/AnalyticsTab.js +29 -4
- package/dist/esm/components/Inspector/BundleTab.js +3 -0
- package/dist/esm/components/Inspector/ConsoleTab.js +26 -3
- package/dist/esm/components/Inspector/CrashTab.js +32 -3
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.d.ts +7 -0
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +74 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +226 -109
- package/dist/esm/components/Inspector/NetworkDetail.js +2 -1
- package/dist/esm/components/Inspector/NetworkFilterModal.d.ts +19 -0
- package/dist/esm/components/Inspector/NetworkFilterModal.js +607 -0
- package/dist/esm/components/Inspector/NetworkTab.js +91 -149
- package/dist/esm/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/esm/components/Inspector/PerformanceTab.js +3 -0
- package/dist/esm/components/Inspector/ReduxTab.js +26 -3
- package/dist/esm/components/Inspector/SettingsPanel.js +73 -88
- package/dist/esm/components/Inspector/StorageTab.js +39 -13
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +2 -0
- package/dist/esm/components/LogCard.js +36 -27
- package/dist/esm/components/NetworkIcons.d.ts +1 -0
- package/dist/esm/components/NetworkIcons.js +4 -0
- package/dist/esm/constants/index.js +3 -0
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/helpers/telemetry.js +34 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/styles/index.d.ts +11 -0
- package/dist/esm/styles/index.js +20 -5
- package/dist/esm/types/enums.d.ts +3 -0
- package/dist/esm/types/enums.js +3 -0
- package/package.json +2 -2
- package/src/components/Inspector/AnalyticsTab.tsx +71 -43
- package/src/components/Inspector/BundleTab.tsx +3 -0
- package/src/components/Inspector/ConsoleTab.tsx +28 -1
- package/src/components/Inspector/CrashTab.tsx +45 -14
- package/src/components/Inspector/FeatureUnderDevNotice.tsx +94 -0
- package/src/components/Inspector/InspectorHeader.tsx +257 -115
- package/src/components/Inspector/NetworkDetail.tsx +2 -1
- package/src/components/Inspector/NetworkFilterModal.tsx +710 -0
- package/src/components/Inspector/NetworkTab.tsx +127 -204
- package/src/components/Inspector/NpmUpdateToast.tsx +1 -1
- package/src/components/Inspector/PerformanceTab.tsx +3 -0
- package/src/components/Inspector/ReduxTab.tsx +28 -1
- package/src/components/Inspector/SettingsPanel.tsx +93 -132
- package/src/components/Inspector/StorageTab.tsx +56 -27
- package/src/components/Inspector/UpdateAvailableModal.tsx +2 -0
- package/src/components/LogCard.tsx +43 -31
- package/src/components/NetworkIcons.tsx +27 -0
- package/src/constants/index.ts +3 -0
- package/src/constants/version.ts +1 -1
- package/src/helpers/telemetry.ts +36 -0
- package/src/index.tsx +5 -0
- package/src/styles/index.ts +20 -5
- package/src/types/enums.ts +3 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { StyleSheet, Text, View, Pressable } from 'react-native';
|
|
3
|
+
import { AppColors } from '../../styles/AppColors';
|
|
4
|
+
import { AppFonts } from '../../styles/AppFonts';
|
|
5
|
+
import { WarningTriangleIcon, ClearIcon } from '../NetworkIcons';
|
|
6
|
+
export const FeatureUnderDevNotice = ({ featureName, compact = false, }) => {
|
|
7
|
+
const [isDismissed, setIsDismissed] = useState(false);
|
|
8
|
+
if (isDismissed)
|
|
9
|
+
return null;
|
|
10
|
+
return (<View style={[styles.container, compact && styles.containerCompact]}>
|
|
11
|
+
<View style={styles.contentRow}>
|
|
12
|
+
<View style={styles.badgeWrap}>
|
|
13
|
+
<WarningTriangleIcon color={AppColors.warningIconGold} size={12}/>
|
|
14
|
+
<Text style={styles.badgeText}>IN ACTIVE DEVELOPMENT</Text>
|
|
15
|
+
</View>
|
|
16
|
+
|
|
17
|
+
<Pressable onPress={() => setIsDismissed(true)} hitSlop={8} style={styles.dismissBtn} accessible={true} accessibilityRole="button" accessibilityLabel="Dismiss notice">
|
|
18
|
+
<ClearIcon color={AppColors.grayTextWeak} size={11}/>
|
|
19
|
+
</Pressable>
|
|
20
|
+
</View>
|
|
21
|
+
|
|
22
|
+
<Text style={styles.messageText}>
|
|
23
|
+
{featureName ? `${featureName} is` : 'This module is'} currently in active
|
|
24
|
+
development. Results and metrics may vary in accuracy. We are continuously
|
|
25
|
+
improving this feature for upcoming releases.
|
|
26
|
+
</Text>
|
|
27
|
+
</View>);
|
|
28
|
+
};
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
container: {
|
|
31
|
+
marginHorizontal: 12,
|
|
32
|
+
marginTop: 8,
|
|
33
|
+
marginBottom: 6,
|
|
34
|
+
paddingHorizontal: 12,
|
|
35
|
+
paddingVertical: 9,
|
|
36
|
+
borderRadius: 8,
|
|
37
|
+
backgroundColor: `${AppColors.warningIconGold}12`,
|
|
38
|
+
borderWidth: 1,
|
|
39
|
+
borderColor: `${AppColors.warningIconGold}30`,
|
|
40
|
+
},
|
|
41
|
+
containerCompact: {
|
|
42
|
+
marginTop: 4,
|
|
43
|
+
marginBottom: 4,
|
|
44
|
+
paddingVertical: 7,
|
|
45
|
+
paddingHorizontal: 10,
|
|
46
|
+
},
|
|
47
|
+
contentRow: {
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
justifyContent: 'space-between',
|
|
51
|
+
marginBottom: 4,
|
|
52
|
+
},
|
|
53
|
+
badgeWrap: {
|
|
54
|
+
flexDirection: 'row',
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
gap: 4.5,
|
|
57
|
+
},
|
|
58
|
+
badgeText: {
|
|
59
|
+
fontFamily: AppFonts.interBold,
|
|
60
|
+
fontSize: 9.5,
|
|
61
|
+
color: AppColors.warningIconGold,
|
|
62
|
+
letterSpacing: 0.4,
|
|
63
|
+
},
|
|
64
|
+
dismissBtn: {
|
|
65
|
+
padding: 2,
|
|
66
|
+
},
|
|
67
|
+
messageText: {
|
|
68
|
+
fontFamily: AppFonts.interRegular,
|
|
69
|
+
fontSize: 10.5,
|
|
70
|
+
color: AppColors.grayText,
|
|
71
|
+
lineHeight: 15,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
export default FeatureUnderDevNotice;
|