react-native-inapp-inspector 1.1.17 → 1.1.18

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.
@@ -12,7 +12,7 @@ import { isPersistentStorageAvailable } from '../../helpers/settingsStore';
12
12
  import { clearNetworkLogs } from '../../customHooks/networkLogger';
13
13
  import { clearConsoleLogs } from '../../customHooks/consoleLogger';
14
14
  import { clearAnalyticsEvents } from '../../customHooks/analyticsLogger';
15
- import { SignalIcon, TerminalIcon, AnalyticsIcon, SettingsIcon, SunIcon, MoonIcon, ScreenIcon, MotionIcon, LayersIcon, EyeIcon, CheckIcon, TrashIcon, WhiteBackNavigation, PackageIcon, ReduxIcon, } from '../NetworkIcons';
15
+ import { SignalIcon, TerminalIcon, AnalyticsIcon, SettingsIcon, SunIcon, MoonIcon, ScreenIcon, MotionIcon, LayersIcon, EyeIcon, CheckIcon, TrashIcon, WhiteBackNavigation, PackageIcon, ReduxIcon, PerformanceIcon, } from '../NetworkIcons';
16
16
  const SettingsPanel = () => {
17
17
  const { settingsPage, setSettingsPage, settingsActiveSubTab, setSettingsActiveSubTab, tabVisibility, toggleTabVisibility, defaultTab, setDefaultTab, isDark, setIsDark, modalHeightPercent, setModalHeightPercent, modalAnimationType, setModalAnimationType, showDuplicateLogs, setShowDuplicateLogs, showConsoleLevels, setShowConsoleLevels, resetToDefaults, storage, logs, consoleLogs, analyticsEvents, reduxState, maxNetworkLogs, setMaxNetworkLogs, maxConsoleLogs, setMaxConsoleLogs, reduxAutoRefresh, setReduxAutoRefreshState, reduxExpandDepth, setReduxExpandDepth, switchActiveTab, setSelected, setSelectedEvent, setReduxState, } = useInspector();
18
18
  const isPersistent = isPersistentStorageAvailable();
@@ -24,6 +24,7 @@ const SettingsPanel = () => {
24
24
  { key: 'analytics', label: 'Analytics', icon: 'analytics' },
25
25
  { key: 'redux', label: 'Redux', icon: 'redux' },
26
26
  { key: 'bundle', label: 'Bundle', icon: 'bundle' },
27
+ { key: 'performance', label: 'Performance', icon: 'performance' },
27
28
  ];
28
29
  return (<View style={{ flex: 1, backgroundColor: AppColors.grayBackground }}>
29
30
  {/* Settings Header with back button */}
@@ -231,6 +232,9 @@ const SettingsPanel = () => {
231
232
  {tab.icon === 'bundle' && (<PackageIcon color={isLocked
232
233
  ? AppColors.grayTextWeak
233
234
  : AppColors.purple} size={11}/>)}
235
+ {tab.icon === 'performance' && (<PerformanceIcon color={isLocked
236
+ ? AppColors.grayTextWeak
237
+ : AppColors.purple} size={11}/>)}
234
238
  </View>
235
239
  {/* Label + Required badge */}
236
240
  <Text style={{
@@ -669,6 +673,7 @@ const SettingsPanel = () => {
669
673
  {tab.icon === 'analytics' && (<AnalyticsIcon color={isActive ? AppColors.white : AppColors.purple} size={11}/>)}
670
674
  {tab.icon === 'redux' && (<ReduxIcon color={isActive ? AppColors.white : AppColors.purple} size={11}/>)}
671
675
  {tab.icon === 'bundle' && (<PackageIcon color={isActive ? AppColors.white : AppColors.purple} size={11}/>)}
676
+ {tab.icon === 'performance' && (<PerformanceIcon color={isActive ? AppColors.white : AppColors.purple} size={11}/>)}
672
677
  </View>
673
678
  <Text style={{
674
679
  fontFamily: AppFonts.interBold,
@@ -4,7 +4,7 @@ import { useInspector } from './InspectorContext';
4
4
  import TouchableScale from '../TouchableScale';
5
5
  import styles from '../../styles';
6
6
  import { AppColors } from '../../styles/AppColors';
7
- import { SignalIcon, TerminalIcon, AnalyticsIcon, PackageIcon, ReduxIcon, } from '../NetworkIcons';
7
+ import { SignalIcon, TerminalIcon, AnalyticsIcon, PackageIcon, ReduxIcon, PerformanceIcon, } from '../NetworkIcons';
8
8
  const TabBar = React.memo(() => {
9
9
  const { activeTab, switchActiveTab, tabVisibility, logs, consoleLogs, analyticsEvents, lastReadApisCount, lastReadLogsCount, unreadPulseAnim, } = useInspector();
10
10
  return (<View style={styles.tabBarContainer}>
@@ -40,6 +40,12 @@ const TabBar = React.memo(() => {
40
40
  count: 0,
41
41
  icon: 'bundle',
42
42
  },
43
+ {
44
+ key: 'performance',
45
+ label: 'Performance',
46
+ count: 0,
47
+ icon: 'performance',
48
+ },
43
49
  ]
44
50
  .filter(tab => tabVisibility?.[tab.key])
45
51
  .map(tab => {
@@ -66,6 +72,7 @@ const TabBar = React.memo(() => {
66
72
  {tab.icon === 'analytics' && (<AnalyticsIcon color={iconColor} size={14}/>)}
67
73
  {tab.icon === 'redux' && (<ReduxIcon color={iconColor} size={14}/>)}
68
74
  {tab.icon === 'bundle' && (<PackageIcon color={iconColor} size={14}/>)}
75
+ {tab.icon === 'performance' && (<PerformanceIcon color={iconColor} size={14}/>)}
69
76
  <Text numberOfLines={1} ellipsizeMode="tail" style={[
70
77
  styles.contentTabButtonText,
71
78
  isActive &&
@@ -65,3 +65,4 @@ export declare const TimelineIcon: ({ color, size, }: any) => React.JSX.Element;
65
65
  export declare const StorageIcon: ({ color, size, }: any) => React.JSX.Element;
66
66
  export declare const MetadataIcon: ({ color, size, }: any) => React.JSX.Element;
67
67
  export declare const ReduxIcon: ({ color, size, }: any) => React.JSX.Element;
68
+ export declare const PerformanceIcon: ({ color, size, }: any) => React.JSX.Element;
@@ -394,3 +394,11 @@ export const ReduxIcon = ({ color = AppColors.purple, size = 14, }) => {
394
394
  <Circle cx="3" cy="12" r="1.5" fill={color}/>
395
395
  </Svg>);
396
396
  };
397
+ export const PerformanceIcon = ({ color = AppColors.purple, size = 14, }) => {
398
+ return (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
399
+ <Path d="M12 3v2M5.636 5.636l1.414 1.414M18.364 5.636l-1.414 1.414M3 12h2M19 12h2" stroke={color} strokeWidth="1.8" strokeLinecap="round"/>
400
+ <Path d="M12 19a7 7 0 1 0-7-7c0 1.93.784 3.68 2.05 4.95" stroke={color} strokeWidth="1.8" strokeLinecap="round"/>
401
+ <Path d="M12 12l3.5-3.5" stroke={color} strokeWidth="2" strokeLinecap="round"/>
402
+ <Circle cx="12" cy="12" r="1.5" fill={color}/>
403
+ </Svg>);
404
+ };
@@ -1 +1 @@
1
- export declare const LIB_VERSION = "1.1.17";
1
+ export declare const LIB_VERSION = "1.1.18";
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED FILE — do not edit by hand.
2
2
  // Regenerated from package.json on every build by scripts/gen-version.js.
3
- export const LIB_VERSION = '1.1.17';
3
+ export const LIB_VERSION = '1.1.18';
package/dist/esm/index.js CHANGED
@@ -150,7 +150,8 @@ const NetworkInspector = ({ enabled = true, isEnabled = true, storage, navigatio
150
150
  logs: true,
151
151
  analytics: true,
152
152
  redux: false,
153
- bundle: true,
153
+ bundle: false,
154
+ performance: false,
154
155
  });
155
156
  const [maxNetworkLogs, setMaxNetworkLogs] = useState(100);
156
157
  const [reduxAutoRefresh, setReduxAutoRefreshState] = useState(true);
@@ -169,7 +170,8 @@ const NetworkInspector = ({ enabled = true, isEnabled = true, storage, navigatio
169
170
  logs: true,
170
171
  analytics: true,
171
172
  redux: false,
172
- bundle: true,
173
+ bundle: false,
174
+ performance: false,
173
175
  });
174
176
  setDefaultTab('apis');
175
177
  setMaxNetworkLogs(100);
@@ -227,7 +229,8 @@ const NetworkInspector = ({ enabled = true, isEnabled = true, storage, navigatio
227
229
  logs: true,
228
230
  analytics: true,
229
231
  redux: false,
230
- bundle: true,
232
+ bundle: false,
233
+ performance: false,
231
234
  },
232
235
  ...(saved.tabVisibility || {}),
233
236
  apis: true,
@@ -1,9 +1,9 @@
1
- export type ActiveTab = 'apis' | 'analytics' | 'logs' | 'redux' | 'bundle';
1
+ export type ActiveTab = 'apis' | 'analytics' | 'logs' | 'redux' | 'bundle' | 'performance';
2
2
  export type Method = 'ALL' | 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
3
3
  export type StatusFilter = 'ALL' | '2xx' | '3xx' | '4xx' | '5xx' | 'Failed';
4
4
  export type SortOrder = 'newest' | 'oldest';
5
5
  export type LocalFilter = 'success' | 'failed' | 'loading';
6
6
  export type ModalAnimationType = 'slide' | 'fade' | 'none';
7
- export type SettingsPage = 'main' | 'apis' | 'logs' | 'analytics' | 'redux' | 'bundle' | null;
7
+ export type SettingsPage = 'main' | 'apis' | 'logs' | 'analytics' | 'redux' | 'bundle' | 'performance' | null;
8
8
  export type SettingsSubTab = 'module' | 'ui';
9
9
  export type LogFilter = 'all' | 'info' | 'warn' | 'error' | 'user-log' | 'analytics';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-inapp-inspector",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "description": "A self-contained network, console, analytics, and webview inspector for React Native applications.",
5
5
  "repository": {
6
6
  "type": "git",