react-native-inapp-inspector 2.3.18 → 2.3.19
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.kt +47 -0
- package/dist/commonjs/capture.d.ts +2 -0
- package/dist/commonjs/capture.js +3 -0
- package/dist/commonjs/components/EmptyState.d.ts +1 -0
- package/dist/commonjs/components/EmptyState.js +2 -2
- package/dist/commonjs/components/Inspector/FabLauncher.js +494 -39
- package/dist/commonjs/components/Inspector/InspectorHeader.js +45 -26
- package/dist/commonjs/components/Inspector/MainScreen.js +4 -3
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +418 -13
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +376 -88
- package/dist/commonjs/components/Inspector/NetworkDetail.js +49 -63
- package/dist/commonjs/components/Inspector/SettingsPanel.js +499 -119
- package/dist/commonjs/components/Inspector/TabBar.js +166 -4
- package/dist/commonjs/components/JsonViewer.js +4 -3
- package/dist/commonjs/components/NetworkIcons.d.ts +4 -0
- package/dist/commonjs/components/NetworkIcons.js +26 -1
- package/dist/commonjs/components/SegmentedTabs.js +1 -0
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/i18n/locales/en.json +20 -2
- package/dist/commonjs/index.js +45 -30
- package/dist/commonjs/native/NativeInspector.d.ts +3 -0
- package/dist/commonjs/native/NativeInspector.js +14 -1
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/commonjs/styles/AppColors.js +78 -78
- package/dist/commonjs/types/enums.d.ts +2 -0
- package/dist/commonjs/types/enums.js +2 -0
- package/dist/commonjs/types/interfaces.d.ts +5 -0
- package/dist/esm/capture.d.ts +2 -0
- package/dist/esm/capture.js +4 -1
- package/dist/esm/components/EmptyState.d.ts +1 -0
- package/dist/esm/components/EmptyState.js +2 -2
- package/dist/esm/components/Inspector/FabLauncher.js +462 -40
- package/dist/esm/components/Inspector/InspectorHeader.js +46 -27
- package/dist/esm/components/Inspector/MainScreen.js +4 -3
- package/dist/esm/components/Inspector/MediaGalleryTab.js +419 -14
- package/dist/esm/components/Inspector/MediaPreviewModal.js +379 -91
- package/dist/esm/components/Inspector/NetworkDetail.js +49 -63
- package/dist/esm/components/Inspector/SettingsPanel.js +500 -120
- package/dist/esm/components/Inspector/TabBar.js +135 -6
- package/dist/esm/components/JsonViewer.js +4 -3
- package/dist/esm/components/NetworkIcons.d.ts +4 -0
- package/dist/esm/components/NetworkIcons.js +21 -0
- package/dist/esm/components/SegmentedTabs.js +1 -0
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/i18n/locales/en.json +20 -2
- package/dist/esm/index.js +44 -29
- package/dist/esm/native/NativeInspector.d.ts +3 -0
- package/dist/esm/native/NativeInspector.js +12 -0
- package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/esm/styles/AppColors.js +78 -78
- package/dist/esm/types/enums.d.ts +2 -0
- package/dist/esm/types/enums.js +2 -0
- package/dist/esm/types/interfaces.d.ts +5 -0
- package/ios/NetworkInspectorModule.mm +241 -136
- package/package.json +1 -1
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/capture.ts +8 -0
- package/src/components/EmptyState.tsx +3 -1
- package/src/components/Inspector/FabLauncher.tsx +562 -52
- package/src/components/Inspector/InspectorHeader.tsx +60 -22
- package/src/components/Inspector/MainScreen.tsx +3 -2
- package/src/components/Inspector/MediaGalleryTab.tsx +502 -28
- package/src/components/Inspector/MediaPreviewModal.tsx +465 -117
- package/src/components/Inspector/NetworkDetail.tsx +80 -97
- package/src/components/Inspector/SettingsPanel.tsx +708 -152
- package/src/components/Inspector/TabBar.tsx +174 -6
- package/src/components/JsonViewer.tsx +4 -2
- package/src/components/NetworkIcons.tsx +56 -0
- package/src/components/SegmentedTabs.tsx +1 -0
- package/src/constants/version.ts +1 -1
- package/src/i18n/locales/en.json +20 -4
- package/src/index.tsx +46 -31
- package/src/native/NativeInspector.ts +17 -0
- package/src/native/NativeNetworkInspector.ts +1 -0
- package/src/styles/AppColors.ts +80 -80
- package/src/types/enums.ts +2 -0
- package/src/types/interfaces.ts +5 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
const LightColors = {
|
|
2
2
|
primaryLight: '#FFFFFF',
|
|
3
|
-
purple: '#
|
|
4
|
-
purpleShade50: '#
|
|
5
|
-
offerPurple: '#
|
|
6
|
-
grayBorderSecondary: '#
|
|
7
|
-
grayBackground: '#
|
|
8
|
-
grayText: '#
|
|
9
|
-
grayTextWeak: '#
|
|
3
|
+
purple: '#4F46E5',
|
|
4
|
+
purpleShade50: '#EEF2FF',
|
|
5
|
+
offerPurple: '#7C3AED',
|
|
6
|
+
grayBorderSecondary: '#E2E8F0',
|
|
7
|
+
grayBackground: '#F8FAFC',
|
|
8
|
+
grayText: '#475569',
|
|
9
|
+
grayTextWeak: '#64748B',
|
|
10
10
|
greenColor: '#10B981',
|
|
11
|
-
graySurface: '#
|
|
11
|
+
graySurface: '#F1F5F9',
|
|
12
12
|
skyBlue: '#2563EB',
|
|
13
|
-
primaryBlack: '#
|
|
14
|
-
grayTextStrong: '#
|
|
15
|
-
dividerColor: '#
|
|
16
|
-
warningIconGold: '#
|
|
17
|
-
shadowColorString: '#
|
|
13
|
+
primaryBlack: '#0F172A',
|
|
14
|
+
grayTextStrong: '#0F172A',
|
|
15
|
+
dividerColor: '#E2E8F0',
|
|
16
|
+
warningIconGold: '#D97706',
|
|
17
|
+
shadowColorString: '#0F172A',
|
|
18
18
|
errorColor: '#E11D48',
|
|
19
|
-
lightOrange: '#
|
|
20
|
-
darkOrange: '#
|
|
19
|
+
lightOrange: '#F59E0B',
|
|
20
|
+
darkOrange: '#D97706',
|
|
21
21
|
successGreen: '#10B981',
|
|
22
|
-
purpleShade700: '#
|
|
22
|
+
purpleShade700: '#3730A3',
|
|
23
23
|
greenStatus: '#D1FAE5',
|
|
24
24
|
greenBaggageText: '#059669',
|
|
25
|
-
paleYellow: '#
|
|
25
|
+
paleYellow: '#FEF3C7',
|
|
26
26
|
white: '#FFFFFF',
|
|
27
27
|
black: '#000000',
|
|
28
|
-
brandPurple: '#
|
|
28
|
+
brandPurple: '#4F46E5',
|
|
29
29
|
liveGreen: '#10B981',
|
|
30
30
|
firebaseOrange: '#D97706',
|
|
31
31
|
greenA400: '#00E676',
|
|
32
|
-
slate900: '#
|
|
33
|
-
slate700: '#
|
|
34
|
-
slate600: '#
|
|
35
|
-
slate500: '#
|
|
36
|
-
slate400: '#
|
|
37
|
-
slate200: '#
|
|
38
|
-
slate100: '#
|
|
39
|
-
slate50: '#
|
|
40
|
-
gray700: '#
|
|
41
|
-
gray300: '#
|
|
32
|
+
slate900: '#0F172A',
|
|
33
|
+
slate700: '#334155',
|
|
34
|
+
slate600: '#475569',
|
|
35
|
+
slate500: '#64748B',
|
|
36
|
+
slate400: '#94A3B8',
|
|
37
|
+
slate200: '#E2E8F0',
|
|
38
|
+
slate100: '#F1F5F9',
|
|
39
|
+
slate50: '#F8FAFC',
|
|
40
|
+
gray700: '#334155',
|
|
41
|
+
gray300: '#CBD5E1',
|
|
42
42
|
highlightYellow: '#FDE047',
|
|
43
43
|
yellowHighlight: '#FFE44D',
|
|
44
44
|
teal600: '#0D9488',
|
|
@@ -51,28 +51,28 @@ const LightColors = {
|
|
|
51
51
|
indigo600: '#4F46E5',
|
|
52
52
|
violet600: '#7C3AED',
|
|
53
53
|
violet500: '#8B5CF6',
|
|
54
|
-
purpleText: '#
|
|
55
|
-
pink600: '#
|
|
54
|
+
purpleText: '#4F46E5',
|
|
55
|
+
pink600: '#DB2777',
|
|
56
56
|
rose600: '#E11D48',
|
|
57
57
|
orange600: '#EA580C',
|
|
58
|
-
amber500: '#
|
|
59
|
-
amber600: '#
|
|
60
|
-
amber700: '#
|
|
61
|
-
amber800: '#
|
|
58
|
+
amber500: '#F59E0B',
|
|
59
|
+
amber600: '#D97706',
|
|
60
|
+
amber700: '#B45309',
|
|
61
|
+
amber800: '#92400E',
|
|
62
62
|
green500: '#22C55E',
|
|
63
63
|
green600: '#16A34A',
|
|
64
64
|
green700: '#15803D',
|
|
65
65
|
green800: '#166534',
|
|
66
66
|
emerald500: '#10B981',
|
|
67
67
|
emerald600: '#059669',
|
|
68
|
-
grey600: '#
|
|
68
|
+
grey600: '#64748B',
|
|
69
69
|
redErrorText: '#991B1B',
|
|
70
70
|
materialGreen: '#2E7D32',
|
|
71
71
|
googleBlue: '#4285F4',
|
|
72
72
|
googleGreen: '#34A853',
|
|
73
73
|
googleOrange: '#F57C00',
|
|
74
74
|
googleRed: '#E53935',
|
|
75
|
-
googlePurple: '#
|
|
75
|
+
googlePurple: '#4F46E5',
|
|
76
76
|
googleTeal: '#00897B',
|
|
77
77
|
npmRed: '#CB3837',
|
|
78
78
|
npmRedTint: '#CB383714',
|
|
@@ -105,11 +105,11 @@ const LightColors = {
|
|
|
105
105
|
cyan500: '#06B6D4',
|
|
106
106
|
indigo400: '#818CF8',
|
|
107
107
|
indigo600Alt: '#4F46E5',
|
|
108
|
-
purple800: '#
|
|
109
|
-
purple900: '#
|
|
110
|
-
purple50: '#
|
|
111
|
-
purple100: '#
|
|
112
|
-
purple200: '#
|
|
108
|
+
purple800: '#4338CA',
|
|
109
|
+
purple900: '#312E81',
|
|
110
|
+
purple50: '#EEF2FF',
|
|
111
|
+
purple100: '#E0E7FF',
|
|
112
|
+
purple200: '#C7D2FE',
|
|
113
113
|
rose700: '#BE123C',
|
|
114
114
|
red600: '#DC2626',
|
|
115
115
|
red50: '#FFFBFB',
|
|
@@ -126,17 +126,17 @@ const LightColors = {
|
|
|
126
126
|
sky100: '#E0F2FE',
|
|
127
127
|
teal100: '#CCFBF1',
|
|
128
128
|
teal700: '#0F766E',
|
|
129
|
-
purple700: '#
|
|
129
|
+
purple700: '#4338CA',
|
|
130
130
|
indigo50: '#EEF2FF',
|
|
131
|
-
gray100: '#
|
|
132
|
-
gray200: '#
|
|
133
|
-
gray500: '#
|
|
134
|
-
gray600: '#
|
|
131
|
+
gray100: '#F1F5F9',
|
|
132
|
+
gray200: '#E2E8F0',
|
|
133
|
+
gray500: '#64748B',
|
|
134
|
+
gray600: '#475569',
|
|
135
135
|
errorCardBg: '#FFF1F3',
|
|
136
136
|
warnCardBg: '#FDFBF4',
|
|
137
137
|
blueTintBg: '#EFF6FF',
|
|
138
|
-
purpleTintBg: '#
|
|
139
|
-
purpleTint2: '#
|
|
138
|
+
purpleTintBg: '#EEF2FF',
|
|
139
|
+
purpleTint2: '#E0E7FF',
|
|
140
140
|
roseBg: '#FDF2F8',
|
|
141
141
|
roseBorder: '#FBCFE8',
|
|
142
142
|
errorBorder: '#FECDD3',
|
|
@@ -148,12 +148,12 @@ const LightColors = {
|
|
|
148
148
|
blueBorder: '#BFDBFE',
|
|
149
149
|
greenBg: '#F0FDF4',
|
|
150
150
|
greenBorder: '#BBF7D0',
|
|
151
|
-
purpleBg: '#
|
|
152
|
-
purpleBorder: '#
|
|
153
|
-
greyBg: '#
|
|
154
|
-
greyBorder: '#
|
|
155
|
-
paperBg: '#
|
|
156
|
-
contentBg: '#
|
|
151
|
+
purpleBg: '#EEF2FF',
|
|
152
|
+
purpleBorder: '#C7D2FE',
|
|
153
|
+
greyBg: '#F8FAFC',
|
|
154
|
+
greyBorder: '#E2E8F0',
|
|
155
|
+
paperBg: '#F8FAFC',
|
|
156
|
+
contentBg: '#F8FAFC',
|
|
157
157
|
toastBg: '#0F172AEE',
|
|
158
158
|
toastBorder: '#33415588',
|
|
159
159
|
mintGreenBg: '#ECFDF5',
|
|
@@ -187,46 +187,46 @@ const LightColors = {
|
|
|
187
187
|
whiteAlpha33: 'rgba(255, 255, 255, 0.33)',
|
|
188
188
|
whiteAlpha60: 'rgba(255, 255, 255, 0.6)',
|
|
189
189
|
domainColors: [
|
|
190
|
-
'#
|
|
191
|
-
'#
|
|
192
|
-
'#C5A059',
|
|
193
|
-
'#4B1B7D',
|
|
194
|
-
'#0D9488',
|
|
190
|
+
'#4F46E5',
|
|
191
|
+
'#7C3AED',
|
|
195
192
|
'#2563EB',
|
|
196
|
-
'#
|
|
193
|
+
'#0D9488',
|
|
194
|
+
'#EA580C',
|
|
197
195
|
'#059669',
|
|
198
|
-
'#
|
|
199
|
-
'#
|
|
196
|
+
'#6366F1',
|
|
197
|
+
'#8B5CF6',
|
|
198
|
+
'#3B82F6',
|
|
199
|
+
'#D97706',
|
|
200
200
|
],
|
|
201
201
|
};
|
|
202
202
|
const DarkColors = {
|
|
203
|
-
primaryLight: '#
|
|
204
|
-
purple: '#
|
|
205
|
-
purpleShade50: '#
|
|
206
|
-
offerPurple: '#
|
|
207
|
-
grayBorderSecondary: '#
|
|
208
|
-
grayBackground: '#
|
|
209
|
-
grayText: '#
|
|
210
|
-
grayTextWeak: '#
|
|
203
|
+
primaryLight: '#1E1B4B',
|
|
204
|
+
purple: '#818CF8',
|
|
205
|
+
purpleShade50: '#1E1B4B',
|
|
206
|
+
offerPurple: '#A78BFA',
|
|
207
|
+
grayBorderSecondary: '#312E81',
|
|
208
|
+
grayBackground: '#0F172A',
|
|
209
|
+
grayText: '#94A3B8',
|
|
210
|
+
grayTextWeak: '#64748B',
|
|
211
211
|
greenColor: '#34D399',
|
|
212
|
-
graySurface: '#
|
|
212
|
+
graySurface: '#1E293B',
|
|
213
213
|
skyBlue: '#60A5FA',
|
|
214
|
-
primaryBlack: '#
|
|
215
|
-
grayTextStrong: '#
|
|
216
|
-
dividerColor: '#
|
|
217
|
-
warningIconGold: '#
|
|
214
|
+
primaryBlack: '#F8FAFC',
|
|
215
|
+
grayTextStrong: '#F8FAFC',
|
|
216
|
+
dividerColor: '#1E293B',
|
|
217
|
+
warningIconGold: '#FBBF24',
|
|
218
218
|
shadowColorString: '#000000',
|
|
219
219
|
errorColor: '#F87171',
|
|
220
220
|
lightOrange: '#FDE68A',
|
|
221
|
-
darkOrange: '#
|
|
221
|
+
darkOrange: '#F59E0B',
|
|
222
222
|
successGreen: '#34D399',
|
|
223
|
-
purpleShade700: '#
|
|
223
|
+
purpleShade700: '#4338CA',
|
|
224
224
|
greenStatus: '#064E3B',
|
|
225
225
|
greenBaggageText: '#34D399',
|
|
226
226
|
paleYellow: '#78350F',
|
|
227
227
|
white: '#FFFFFF',
|
|
228
228
|
black: '#000000',
|
|
229
|
-
brandPurple: '#
|
|
229
|
+
brandPurple: '#6366F1',
|
|
230
230
|
liveGreen: '#34D399',
|
|
231
231
|
firebaseOrange: '#F59E0B',
|
|
232
232
|
greenA400: '#00E676',
|
|
@@ -9,6 +9,7 @@ export declare const ActiveTab: {
|
|
|
9
9
|
readonly Device: "device";
|
|
10
10
|
readonly Storage: "storage";
|
|
11
11
|
readonly Debugging: "debugging";
|
|
12
|
+
readonly Media: "media";
|
|
12
13
|
};
|
|
13
14
|
export type ActiveTab = (typeof ActiveTab)[keyof typeof ActiveTab];
|
|
14
15
|
export declare const Method: {
|
|
@@ -61,6 +62,7 @@ export declare const SettingsPage: {
|
|
|
61
62
|
readonly Device: "device";
|
|
62
63
|
readonly Storage: "storage";
|
|
63
64
|
readonly Debugging: "debugging";
|
|
65
|
+
readonly Media: "media";
|
|
64
66
|
};
|
|
65
67
|
export type SettingsPage = (typeof SettingsPage)[keyof typeof SettingsPage] | null;
|
|
66
68
|
export declare const SettingsSubTab: {
|
package/dist/esm/types/enums.js
CHANGED
|
@@ -9,6 +9,7 @@ export const ActiveTab = {
|
|
|
9
9
|
Device: 'device',
|
|
10
10
|
Storage: 'storage',
|
|
11
11
|
Debugging: 'debugging',
|
|
12
|
+
Media: 'media',
|
|
12
13
|
};
|
|
13
14
|
export const Method = {
|
|
14
15
|
All: 'ALL',
|
|
@@ -55,6 +56,7 @@ export const SettingsPage = {
|
|
|
55
56
|
Device: 'device',
|
|
56
57
|
Storage: 'storage',
|
|
57
58
|
Debugging: 'debugging',
|
|
59
|
+
Media: 'media',
|
|
58
60
|
};
|
|
59
61
|
export const SettingsSubTab = {
|
|
60
62
|
Module: 'module',
|
|
@@ -181,6 +181,9 @@ export interface InspectorContextValue {
|
|
|
181
181
|
visible: boolean;
|
|
182
182
|
setVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
183
183
|
closeModal: () => void;
|
|
184
|
+
isMinimized: boolean;
|
|
185
|
+
setIsMinimized: React.Dispatch<React.SetStateAction<boolean>>;
|
|
186
|
+
minimizeInspector: () => void;
|
|
184
187
|
isReady: boolean;
|
|
185
188
|
enabled: boolean;
|
|
186
189
|
isEnabled: boolean;
|
|
@@ -198,6 +201,8 @@ export interface InspectorContextValue {
|
|
|
198
201
|
toggleTabVisibility: (key: ActiveTab) => void;
|
|
199
202
|
lastReadApisCount: number;
|
|
200
203
|
lastReadLogsCount: number;
|
|
204
|
+
mediaCount: number;
|
|
205
|
+
refreshMediaCount: () => Promise<number>;
|
|
201
206
|
selected: NetworkLog | null;
|
|
202
207
|
setSelected: React.Dispatch<React.SetStateAction<NetworkLog | null>>;
|
|
203
208
|
selectedEvent: AnalyticsEvent | null;
|