react-native-inapp-inspector 2.3.14 → 2.3.16
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/README.md +1 -0
- package/dist/commonjs/components/AnimatedEntrance.js +3 -3
- package/dist/commonjs/components/ConsoleLogCard.js +174 -100
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +0 -22
- package/dist/commonjs/components/Inspector/ConsoleTab.js +25 -38
- package/dist/commonjs/components/Inspector/CrashTab.js +19 -28
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +198 -98
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +7 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.js +552 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.js +58 -6
- package/dist/commonjs/components/Inspector/MainScreen.js +100 -58
- package/dist/commonjs/components/Inspector/NetworkTab.js +26 -371
- package/dist/commonjs/components/Inspector/NpmStarPrompt.d.ts +3 -0
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +494 -0
- package/dist/commonjs/components/Inspector/PerformanceTab.js +40 -7
- package/dist/commonjs/components/Inspector/ReduxTab.js +3 -23
- package/dist/commonjs/components/Inspector/SettingsPanel.js +1035 -173
- package/dist/commonjs/components/Inspector/StorageTab.js +23 -28
- package/dist/commonjs/components/Inspector/TabBar.js +50 -15
- package/dist/commonjs/components/JsonViewer.js +14 -2
- package/dist/commonjs/components/LogCard.js +428 -227
- package/dist/commonjs/components/NetworkIcons.d.ts +5 -0
- package/dist/commonjs/components/NetworkIcons.js +33 -2
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/analyticsLogger.js +1 -1
- package/dist/commonjs/customHooks/consoleLogger.js +34 -2
- package/dist/commonjs/customHooks/crashHandler.js +1 -1
- package/dist/commonjs/customHooks/networkLogger.js +184 -26
- package/dist/commonjs/helpers/index.d.ts +1 -0
- package/dist/commonjs/helpers/index.js +1 -0
- package/dist/commonjs/helpers/remoteConfig.d.ts +4 -0
- package/dist/commonjs/helpers/remoteConfig.js +165 -0
- package/dist/commonjs/helpers/searchQueryParser.d.ts +1 -1
- package/dist/commonjs/helpers/searchQueryParser.js +39 -291
- package/dist/commonjs/helpers/telemetry.d.ts +5 -0
- package/dist/commonjs/helpers/telemetry.js +339 -8
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.js +173 -29
- package/dist/commonjs/styles/AppFonts.d.ts +2 -0
- package/dist/commonjs/styles/AppFonts.js +1 -0
- package/dist/commonjs/styles/index.d.ts +22 -0
- package/dist/commonjs/styles/index.js +19 -0
- package/dist/commonjs/types/enums.d.ts +1 -0
- package/dist/commonjs/types/enums.js +1 -0
- package/dist/commonjs/types/interfaces.d.ts +12 -0
- package/dist/esm/components/AnimatedEntrance.js +3 -3
- package/dist/esm/components/ConsoleLogCard.js +141 -100
- package/dist/esm/components/Inspector/AnalyticsTab.js +1 -23
- package/dist/esm/components/Inspector/ConsoleTab.js +26 -39
- package/dist/esm/components/Inspector/CrashTab.js +20 -29
- package/dist/esm/components/Inspector/DeviceInfoTab.js +198 -98
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +7 -0
- package/dist/esm/components/Inspector/FeedbackModal.js +515 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +60 -8
- package/dist/esm/components/Inspector/MainScreen.js +101 -59
- package/dist/esm/components/Inspector/NetworkTab.js +27 -372
- package/dist/esm/components/Inspector/NpmStarPrompt.d.ts +3 -0
- package/dist/esm/components/Inspector/NpmStarPrompt.js +454 -0
- package/dist/esm/components/Inspector/PerformanceTab.js +40 -7
- package/dist/esm/components/Inspector/ReduxTab.js +4 -24
- package/dist/esm/components/Inspector/SettingsPanel.js +1038 -176
- package/dist/esm/components/Inspector/StorageTab.js +23 -28
- package/dist/esm/components/Inspector/TabBar.js +50 -15
- package/dist/esm/components/JsonViewer.js +14 -2
- package/dist/esm/components/LogCard.js +422 -221
- package/dist/esm/components/NetworkIcons.d.ts +5 -0
- package/dist/esm/components/NetworkIcons.js +26 -0
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/analyticsLogger.js +1 -1
- package/dist/esm/customHooks/consoleLogger.js +34 -2
- package/dist/esm/customHooks/crashHandler.js +1 -1
- package/dist/esm/customHooks/networkLogger.js +184 -26
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +1 -0
- package/dist/esm/helpers/remoteConfig.d.ts +4 -0
- package/dist/esm/helpers/remoteConfig.js +160 -0
- package/dist/esm/helpers/searchQueryParser.d.ts +1 -1
- package/dist/esm/helpers/searchQueryParser.js +39 -291
- package/dist/esm/helpers/telemetry.d.ts +5 -0
- package/dist/esm/helpers/telemetry.js +332 -9
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +171 -29
- package/dist/esm/styles/AppFonts.d.ts +2 -0
- package/dist/esm/styles/AppFonts.js +1 -0
- package/dist/esm/styles/index.d.ts +22 -0
- package/dist/esm/styles/index.js +19 -0
- package/dist/esm/types/enums.d.ts +1 -0
- package/dist/esm/types/enums.js +1 -0
- package/dist/esm/types/interfaces.d.ts +12 -0
- package/package.json +1 -1
- package/src/components/AnimatedEntrance.tsx +3 -3
- package/src/components/ConsoleLogCard.tsx +154 -103
- package/src/components/Inspector/AnalyticsTab.tsx +0 -23
- package/src/components/Inspector/ConsoleTab.tsx +27 -41
- package/src/components/Inspector/CrashTab.tsx +19 -28
- package/src/components/Inspector/DeviceInfoTab.tsx +224 -102
- package/src/components/Inspector/FeedbackModal.tsx +626 -0
- package/src/components/Inspector/InspectorHeader.tsx +83 -5
- package/src/components/Inspector/MainScreen.tsx +61 -6
- package/src/components/Inspector/NetworkTab.tsx +70 -480
- package/src/components/Inspector/NpmStarPrompt.tsx +532 -0
- package/src/components/Inspector/PerformanceTab.tsx +44 -8
- package/src/components/Inspector/ReduxTab.tsx +9 -24
- package/src/components/Inspector/SettingsPanel.tsx +1162 -197
- package/src/components/Inspector/StorageTab.tsx +27 -30
- package/src/components/Inspector/TabBar.tsx +57 -20
- package/src/components/JsonViewer.tsx +15 -2
- package/src/components/LogCard.tsx +528 -339
- package/src/components/NetworkIcons.tsx +92 -0
- package/src/constants/version.ts +1 -1
- package/src/customHooks/analyticsLogger.ts +1 -1
- package/src/customHooks/consoleLogger.ts +36 -3
- package/src/customHooks/crashHandler.ts +1 -1
- package/src/customHooks/networkLogger.ts +214 -26
- package/src/helpers/index.ts +1 -0
- package/src/helpers/remoteConfig.ts +212 -0
- package/src/helpers/searchQueryParser.ts +42 -284
- package/src/helpers/telemetry.ts +381 -10
- package/src/index.tsx +374 -211
- package/src/styles/AppFonts.ts +2 -0
- package/src/styles/index.ts +20 -1
- package/src/types/enums.ts +1 -0
- package/src/types/interfaces.ts +12 -0
package/src/styles/AppFonts.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface AppFontConfig {
|
|
2
2
|
interRegular?: string;
|
|
3
3
|
interMedium?: string;
|
|
4
|
+
interSemiBold?: string;
|
|
4
5
|
interBold?: string;
|
|
5
6
|
Sfprotext?: string;
|
|
6
7
|
}
|
|
@@ -8,6 +9,7 @@ export interface AppFontConfig {
|
|
|
8
9
|
export const AppFonts = {
|
|
9
10
|
interRegular: 'Inter-Regular',
|
|
10
11
|
interMedium: 'Inter-Medium',
|
|
12
|
+
interSemiBold: 'Inter-SemiBold',
|
|
11
13
|
interBold: 'Inter-Bold',
|
|
12
14
|
Sfprotext: 'Inter-Regular',
|
|
13
15
|
};
|
package/src/styles/index.ts
CHANGED
|
@@ -140,7 +140,26 @@ export const getRawStyles = (colors: typeof AppColors) => ({
|
|
|
140
140
|
},
|
|
141
141
|
|
|
142
142
|
listContent: {paddingBottom: Platform.OS === 'ios' ? 44 : 32},
|
|
143
|
-
//
|
|
143
|
+
// Floating Support & Feedback FAB, in place of scroll-to-top button
|
|
144
|
+
supportFab: {
|
|
145
|
+
position: 'absolute',
|
|
146
|
+
bottom: 22,
|
|
147
|
+
right: 16,
|
|
148
|
+
width: 42,
|
|
149
|
+
height: 42,
|
|
150
|
+
borderRadius: 21,
|
|
151
|
+
backgroundColor: colors.purple,
|
|
152
|
+
alignItems: 'center',
|
|
153
|
+
justifyContent: 'center',
|
|
154
|
+
shadowColor: colors.purple,
|
|
155
|
+
shadowOffset: {width: 0, height: 4},
|
|
156
|
+
shadowOpacity: 0.45,
|
|
157
|
+
shadowRadius: 8,
|
|
158
|
+
elevation: 14,
|
|
159
|
+
zIndex: 999,
|
|
160
|
+
borderWidth: 1.5,
|
|
161
|
+
borderColor: 'rgba(255, 255, 255, 0.25)',
|
|
162
|
+
},
|
|
144
163
|
scrollTopBtn: {
|
|
145
164
|
position: 'absolute',
|
|
146
165
|
bottom: 22,
|
package/src/types/enums.ts
CHANGED
package/src/types/interfaces.ts
CHANGED
|
@@ -180,8 +180,17 @@ export interface PersistedSettings {
|
|
|
180
180
|
reduxExpandDepth?: number;
|
|
181
181
|
showDuplicateLogs?: boolean;
|
|
182
182
|
showUpdateToast?: boolean;
|
|
183
|
+
useNativeFab?: boolean;
|
|
184
|
+
shakeToOpen?: boolean;
|
|
183
185
|
telemetryClientId?: string;
|
|
186
|
+
telemetryDeviceId?: string;
|
|
187
|
+
deviceRegistered?: boolean;
|
|
188
|
+
deviceFirstSeen?: number;
|
|
184
189
|
telemetryLastPing?: number;
|
|
190
|
+
telemetryLastActive?: number;
|
|
191
|
+
starPromptActioned?: boolean;
|
|
192
|
+
starPromptLastShown?: number;
|
|
193
|
+
starPromptFirstSeen?: number;
|
|
185
194
|
}
|
|
186
195
|
|
|
187
196
|
// ─── Inspector component props / context ──────────────────────────────────────
|
|
@@ -195,6 +204,7 @@ export interface NetworkInspectorProps {
|
|
|
195
204
|
environment?: 'DEV' | 'UAT' | 'PrePROD' | 'PROD' | 'QA' | 'Staging' | string;
|
|
196
205
|
initialVisible?: boolean;
|
|
197
206
|
visible?: boolean;
|
|
207
|
+
remoteConfig?: boolean | any;
|
|
198
208
|
}
|
|
199
209
|
|
|
200
210
|
export interface NavigationTrackerProps {
|
|
@@ -239,6 +249,8 @@ export interface InspectorContextValue {
|
|
|
239
249
|
setShowHeaderInfo: React.Dispatch<React.SetStateAction<boolean>>;
|
|
240
250
|
settingsPage: SettingsPage;
|
|
241
251
|
setSettingsPage: React.Dispatch<React.SetStateAction<SettingsPage>>;
|
|
252
|
+
isFeedbackOpen: boolean;
|
|
253
|
+
setIsFeedbackOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
242
254
|
updateAvailable: boolean;
|
|
243
255
|
latestNpmVersion: string | null;
|
|
244
256
|
clearAnim: Animated.Value;
|