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
package/src/styles/AppColors.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
const LightColors = {
|
|
2
|
-
// ─── Core (
|
|
2
|
+
// ─── Core (Modern Indigo / Violet Header Gradient Palette) ───
|
|
3
3
|
primaryLight: '#FFFFFF',
|
|
4
|
-
purple: '#
|
|
5
|
-
purpleShade50: '#
|
|
6
|
-
offerPurple: '#
|
|
7
|
-
grayBorderSecondary: '#
|
|
8
|
-
grayBackground: '#
|
|
9
|
-
grayText: '#
|
|
10
|
-
grayTextWeak: '#
|
|
4
|
+
purple: '#4F46E5', // Vibrant Header Indigo
|
|
5
|
+
purpleShade50: '#EEF2FF', // Indigo Silk Tint
|
|
6
|
+
offerPurple: '#7C3AED', // Vibrant Header Violet
|
|
7
|
+
grayBorderSecondary: '#E2E8F0',
|
|
8
|
+
grayBackground: '#F8FAFC', // Clean Pearl Slate Surface
|
|
9
|
+
grayText: '#475569',
|
|
10
|
+
grayTextWeak: '#64748B',
|
|
11
11
|
greenColor: '#10B981',
|
|
12
|
-
graySurface: '#
|
|
12
|
+
graySurface: '#F1F5F9',
|
|
13
13
|
skyBlue: '#2563EB',
|
|
14
|
-
primaryBlack: '#
|
|
15
|
-
grayTextStrong: '#
|
|
16
|
-
dividerColor: '#
|
|
17
|
-
warningIconGold: '#
|
|
18
|
-
shadowColorString: '#
|
|
14
|
+
primaryBlack: '#0F172A', // Slate Midnight Dark
|
|
15
|
+
grayTextStrong: '#0F172A',
|
|
16
|
+
dividerColor: '#E2E8F0',
|
|
17
|
+
warningIconGold: '#D97706', // Warm Amber Gold
|
|
18
|
+
shadowColorString: '#0F172A',
|
|
19
19
|
errorColor: '#E11D48',
|
|
20
|
-
lightOrange: '#
|
|
21
|
-
darkOrange: '#
|
|
20
|
+
lightOrange: '#F59E0B',
|
|
21
|
+
darkOrange: '#D97706',
|
|
22
22
|
successGreen: '#10B981',
|
|
23
|
-
purpleShade700: '#
|
|
23
|
+
purpleShade700: '#3730A3', // Deep Indigo
|
|
24
24
|
greenStatus: '#D1FAE5',
|
|
25
25
|
greenBaggageText: '#059669',
|
|
26
|
-
paleYellow: '#
|
|
26
|
+
paleYellow: '#FEF3C7',
|
|
27
27
|
|
|
28
28
|
// ─── Brand / UI ───
|
|
29
29
|
white: '#FFFFFF',
|
|
30
30
|
black: '#000000',
|
|
31
|
-
brandPurple: '#
|
|
31
|
+
brandPurple: '#4F46E5', // Iconic Indigo 600
|
|
32
32
|
liveGreen: '#10B981',
|
|
33
33
|
firebaseOrange: '#D97706',
|
|
34
34
|
greenA400: '#00E676',
|
|
35
35
|
|
|
36
36
|
// ─── Code / Slate ───
|
|
37
|
-
slate900: '#
|
|
38
|
-
slate700: '#
|
|
39
|
-
slate600: '#
|
|
40
|
-
slate500: '#
|
|
41
|
-
slate400: '#
|
|
42
|
-
slate200: '#
|
|
43
|
-
slate100: '#
|
|
44
|
-
slate50: '#
|
|
45
|
-
gray700: '#
|
|
46
|
-
gray300: '#
|
|
37
|
+
slate900: '#0F172A',
|
|
38
|
+
slate700: '#334155',
|
|
39
|
+
slate600: '#475569',
|
|
40
|
+
slate500: '#64748B',
|
|
41
|
+
slate400: '#94A3B8',
|
|
42
|
+
slate200: '#E2E8F0',
|
|
43
|
+
slate100: '#F1F5F9',
|
|
44
|
+
slate50: '#F8FAFC',
|
|
45
|
+
gray700: '#334155',
|
|
46
|
+
gray300: '#CBD5E1',
|
|
47
47
|
highlightYellow: '#FDE047',
|
|
48
48
|
yellowHighlight: '#FFE44D',
|
|
49
49
|
|
|
@@ -58,28 +58,28 @@ const LightColors = {
|
|
|
58
58
|
indigo600: '#4F46E5',
|
|
59
59
|
violet600: '#7C3AED',
|
|
60
60
|
violet500: '#8B5CF6',
|
|
61
|
-
purpleText: '#
|
|
62
|
-
pink600: '#
|
|
61
|
+
purpleText: '#4F46E5',
|
|
62
|
+
pink600: '#DB2777',
|
|
63
63
|
rose600: '#E11D48',
|
|
64
64
|
orange600: '#EA580C',
|
|
65
|
-
amber500: '#
|
|
66
|
-
amber600: '#
|
|
67
|
-
amber700: '#
|
|
68
|
-
amber800: '#
|
|
65
|
+
amber500: '#F59E0B',
|
|
66
|
+
amber600: '#D97706',
|
|
67
|
+
amber700: '#B45309',
|
|
68
|
+
amber800: '#92400E',
|
|
69
69
|
green500: '#22C55E',
|
|
70
70
|
green600: '#16A34A',
|
|
71
71
|
green700: '#15803D',
|
|
72
72
|
green800: '#166534',
|
|
73
73
|
emerald500: '#10B981',
|
|
74
74
|
emerald600: '#059669',
|
|
75
|
-
grey600: '#
|
|
75
|
+
grey600: '#64748B',
|
|
76
76
|
redErrorText: '#991B1B',
|
|
77
77
|
materialGreen: '#2E7D32',
|
|
78
78
|
googleBlue: '#4285F4',
|
|
79
79
|
googleGreen: '#34A853',
|
|
80
80
|
googleOrange: '#F57C00',
|
|
81
81
|
googleRed: '#E53935',
|
|
82
|
-
googlePurple: '#
|
|
82
|
+
googlePurple: '#4F46E5',
|
|
83
83
|
googleTeal: '#00897B',
|
|
84
84
|
|
|
85
85
|
// ─── NPM / Package / Tailwind Spectrum Helpers ───
|
|
@@ -116,11 +116,11 @@ const LightColors = {
|
|
|
116
116
|
cyan500: '#06B6D4',
|
|
117
117
|
indigo400: '#818CF8',
|
|
118
118
|
indigo600Alt: '#4F46E5',
|
|
119
|
-
purple800: '#
|
|
120
|
-
purple900: '#
|
|
121
|
-
purple50: '#
|
|
122
|
-
purple100: '#
|
|
123
|
-
purple200: '#
|
|
119
|
+
purple800: '#4338CA',
|
|
120
|
+
purple900: '#312E81',
|
|
121
|
+
purple50: '#EEF2FF',
|
|
122
|
+
purple100: '#E0E7FF',
|
|
123
|
+
purple200: '#C7D2FE',
|
|
124
124
|
rose700: '#BE123C',
|
|
125
125
|
red600: '#DC2626',
|
|
126
126
|
red50: '#FFFBFB',
|
|
@@ -137,19 +137,19 @@ const LightColors = {
|
|
|
137
137
|
sky100: '#E0F2FE',
|
|
138
138
|
teal100: '#CCFBF1',
|
|
139
139
|
teal700: '#0F766E',
|
|
140
|
-
purple700: '#
|
|
140
|
+
purple700: '#4338CA',
|
|
141
141
|
indigo50: '#EEF2FF',
|
|
142
|
-
gray100: '#
|
|
143
|
-
gray200: '#
|
|
144
|
-
gray500: '#
|
|
145
|
-
gray600: '#
|
|
142
|
+
gray100: '#F1F5F9',
|
|
143
|
+
gray200: '#E2E8F0',
|
|
144
|
+
gray500: '#64748B',
|
|
145
|
+
gray600: '#475569',
|
|
146
146
|
|
|
147
147
|
// ─── Tint Backgrounds / Borders (Theme-Aware) ───
|
|
148
148
|
errorCardBg: '#FFF1F3',
|
|
149
149
|
warnCardBg: '#FDFBF4',
|
|
150
150
|
blueTintBg: '#EFF6FF',
|
|
151
|
-
purpleTintBg: '#
|
|
152
|
-
purpleTint2: '#
|
|
151
|
+
purpleTintBg: '#EEF2FF',
|
|
152
|
+
purpleTint2: '#E0E7FF',
|
|
153
153
|
roseBg: '#FDF2F8',
|
|
154
154
|
roseBorder: '#FBCFE8',
|
|
155
155
|
errorBorder: '#FECDD3',
|
|
@@ -161,12 +161,12 @@ const LightColors = {
|
|
|
161
161
|
blueBorder: '#BFDBFE',
|
|
162
162
|
greenBg: '#F0FDF4',
|
|
163
163
|
greenBorder: '#BBF7D0',
|
|
164
|
-
purpleBg: '#
|
|
165
|
-
purpleBorder: '#
|
|
166
|
-
greyBg: '#
|
|
167
|
-
greyBorder: '#
|
|
168
|
-
paperBg: '#
|
|
169
|
-
contentBg: '#
|
|
164
|
+
purpleBg: '#EEF2FF',
|
|
165
|
+
purpleBorder: '#C7D2FE',
|
|
166
|
+
greyBg: '#F8FAFC',
|
|
167
|
+
greyBorder: '#E2E8F0',
|
|
168
|
+
paperBg: '#F8FAFC',
|
|
169
|
+
contentBg: '#F8FAFC',
|
|
170
170
|
|
|
171
171
|
// ─── Toast / Glass / Chip Tokens ───
|
|
172
172
|
toastBg: '#0F172AEE',
|
|
@@ -203,50 +203,50 @@ const LightColors = {
|
|
|
203
203
|
whiteAlpha33: 'rgba(255, 255, 255, 0.33)',
|
|
204
204
|
whiteAlpha60: 'rgba(255, 255, 255, 0.6)',
|
|
205
205
|
|
|
206
|
-
// ─── Domain Colors (
|
|
206
|
+
// ─── Domain Colors (Header Gradient Spectrum) ───
|
|
207
207
|
domainColors: [
|
|
208
|
-
'#
|
|
209
|
-
'#
|
|
210
|
-
'#C5A059',
|
|
211
|
-
'#4B1B7D',
|
|
212
|
-
'#0D9488',
|
|
208
|
+
'#4F46E5',
|
|
209
|
+
'#7C3AED',
|
|
213
210
|
'#2563EB',
|
|
214
|
-
'#
|
|
211
|
+
'#0D9488',
|
|
212
|
+
'#EA580C',
|
|
215
213
|
'#059669',
|
|
216
|
-
'#
|
|
217
|
-
'#
|
|
214
|
+
'#6366F1',
|
|
215
|
+
'#8B5CF6',
|
|
216
|
+
'#3B82F6',
|
|
217
|
+
'#D97706',
|
|
218
218
|
],
|
|
219
219
|
};
|
|
220
220
|
|
|
221
221
|
const DarkColors = {
|
|
222
|
-
primaryLight: '#
|
|
223
|
-
purple: '#
|
|
224
|
-
purpleShade50: '#
|
|
225
|
-
offerPurple: '#
|
|
226
|
-
grayBorderSecondary: '#
|
|
227
|
-
grayBackground: '#
|
|
228
|
-
grayText: '#
|
|
229
|
-
grayTextWeak: '#
|
|
222
|
+
primaryLight: '#1E1B4B', // Deep Indigo Dark Card
|
|
223
|
+
purple: '#818CF8', // Luminous Indigo
|
|
224
|
+
purpleShade50: '#1E1B4B',
|
|
225
|
+
offerPurple: '#A78BFA',
|
|
226
|
+
grayBorderSecondary: '#312E81',
|
|
227
|
+
grayBackground: '#0F172A', // Slate Midnight Sky
|
|
228
|
+
grayText: '#94A3B8',
|
|
229
|
+
grayTextWeak: '#64748B',
|
|
230
230
|
greenColor: '#34D399',
|
|
231
|
-
graySurface: '#
|
|
231
|
+
graySurface: '#1E293B',
|
|
232
232
|
skyBlue: '#60A5FA',
|
|
233
|
-
primaryBlack: '#
|
|
234
|
-
grayTextStrong: '#
|
|
235
|
-
dividerColor: '#
|
|
236
|
-
warningIconGold: '#
|
|
233
|
+
primaryBlack: '#F8FAFC',
|
|
234
|
+
grayTextStrong: '#F8FAFC',
|
|
235
|
+
dividerColor: '#1E293B',
|
|
236
|
+
warningIconGold: '#FBBF24',
|
|
237
237
|
shadowColorString: '#000000',
|
|
238
238
|
errorColor: '#F87171',
|
|
239
239
|
lightOrange: '#FDE68A',
|
|
240
|
-
darkOrange: '#
|
|
240
|
+
darkOrange: '#F59E0B',
|
|
241
241
|
successGreen: '#34D399',
|
|
242
|
-
purpleShade700: '#
|
|
242
|
+
purpleShade700: '#4338CA',
|
|
243
243
|
greenStatus: '#064E3B',
|
|
244
244
|
greenBaggageText: '#34D399',
|
|
245
245
|
paleYellow: '#78350F',
|
|
246
246
|
|
|
247
247
|
white: '#FFFFFF',
|
|
248
248
|
black: '#000000',
|
|
249
|
-
brandPurple: '#
|
|
249
|
+
brandPurple: '#6366F1',
|
|
250
250
|
liveGreen: '#34D399',
|
|
251
251
|
firebaseOrange: '#F59E0B',
|
|
252
252
|
greenA400: '#00E676',
|
package/src/types/enums.ts
CHANGED
|
@@ -13,6 +13,7 @@ export const ActiveTab = {
|
|
|
13
13
|
Device: 'device',
|
|
14
14
|
Storage: 'storage',
|
|
15
15
|
Debugging: 'debugging',
|
|
16
|
+
Media: 'media',
|
|
16
17
|
} as const;
|
|
17
18
|
export type ActiveTab = (typeof ActiveTab)[keyof typeof ActiveTab];
|
|
18
19
|
|
|
@@ -73,6 +74,7 @@ export const SettingsPage = {
|
|
|
73
74
|
Device: 'device',
|
|
74
75
|
Storage: 'storage',
|
|
75
76
|
Debugging: 'debugging',
|
|
77
|
+
Media: 'media',
|
|
76
78
|
} as const;
|
|
77
79
|
export type SettingsPage =
|
|
78
80
|
| (typeof SettingsPage)[keyof typeof SettingsPage]
|
package/src/types/interfaces.ts
CHANGED
|
@@ -216,6 +216,9 @@ export interface InspectorContextValue {
|
|
|
216
216
|
visible: boolean;
|
|
217
217
|
setVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
218
218
|
closeModal: () => void;
|
|
219
|
+
isMinimized: boolean;
|
|
220
|
+
setIsMinimized: React.Dispatch<React.SetStateAction<boolean>>;
|
|
221
|
+
minimizeInspector: () => void;
|
|
219
222
|
isReady: boolean;
|
|
220
223
|
enabled: boolean;
|
|
221
224
|
isEnabled: boolean;
|
|
@@ -237,6 +240,8 @@ export interface InspectorContextValue {
|
|
|
237
240
|
toggleTabVisibility: (key: ActiveTab) => void;
|
|
238
241
|
lastReadApisCount: number;
|
|
239
242
|
lastReadLogsCount: number;
|
|
243
|
+
mediaCount: number;
|
|
244
|
+
refreshMediaCount: () => Promise<number>;
|
|
240
245
|
|
|
241
246
|
// ─── Selection / header state ──────────────────────────────────────────────
|
|
242
247
|
selected: NetworkLog | null;
|