react-native-inapp-inspector 1.1.24 → 1.1.26
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/build.gradle +36 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.java +114 -0
- package/android/src/main/java/com/inappinspector/NetworkInspectorPackage.java +28 -0
- package/dist/commonjs/components/AnalyticsEventCard.js +94 -88
- package/dist/commonjs/components/ConsoleLogCard.js +49 -25
- package/dist/commonjs/components/ErrorBoundary.d.ts +1 -1
- package/dist/commonjs/components/ErrorBoundary.js +9 -145
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.d.ts +7 -0
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +1002 -0
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +637 -10
- package/dist/commonjs/components/Inspector/BundleTab.d.ts +1 -1
- package/dist/commonjs/components/Inspector/BundleTab.js +826 -406
- package/dist/commonjs/components/Inspector/CrashDetail.d.ts +3 -0
- package/dist/commonjs/components/Inspector/CrashDetail.js +796 -0
- package/dist/commonjs/components/Inspector/CrashFilterModal.d.ts +20 -0
- package/dist/commonjs/components/Inspector/CrashFilterModal.js +597 -0
- package/dist/commonjs/components/Inspector/CrashTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/CrashTab.js +727 -0
- package/dist/commonjs/components/Inspector/InspectorContext.js +6 -1
- package/dist/commonjs/components/Inspector/InspectorHeader.js +65 -28
- package/dist/commonjs/components/Inspector/LogDetail.js +227 -114
- package/dist/commonjs/components/Inspector/MainScreen.js +13 -4
- package/dist/commonjs/components/Inspector/NetworkDetail.js +131 -81
- package/dist/commonjs/components/Inspector/PerformanceTab.js +20 -10
- package/dist/commonjs/components/Inspector/SettingsPanel.js +90 -1
- package/dist/commonjs/components/Inspector/TabBar.js +15 -3
- package/dist/commonjs/components/NetworkIcons.d.ts +25 -0
- package/dist/commonjs/components/NetworkIcons.js +188 -1
- package/dist/commonjs/components/SegmentedTabs.js +33 -23
- package/dist/commonjs/components/TreeNode.js +13 -12
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/analyticsLogger.js +70 -44
- package/dist/commonjs/customHooks/bundleAnalyzer.d.ts +5 -1
- package/dist/commonjs/customHooks/bundleAnalyzer.js +497 -126
- package/dist/commonjs/customHooks/consoleLogger.d.ts +1 -0
- package/dist/commonjs/customHooks/consoleLogger.js +153 -51
- package/dist/commonjs/customHooks/crashHandler.d.ts +64 -0
- package/dist/commonjs/customHooks/crashHandler.js +681 -0
- package/dist/commonjs/customHooks/networkLogger.js +74 -49
- package/dist/commonjs/customHooks/performanceTracker.d.ts +8 -0
- package/dist/commonjs/customHooks/performanceTracker.js +44 -3
- package/dist/commonjs/decorators/index.d.ts +49 -0
- package/dist/commonjs/decorators/index.js +142 -0
- package/dist/commonjs/helpers/gaAnalyticsRegistry.d.ts +18 -0
- package/dist/commonjs/helpers/gaAnalyticsRegistry.js +174 -0
- package/dist/commonjs/helpers/index.d.ts +7 -4
- package/dist/commonjs/helpers/index.js +102 -64
- package/dist/commonjs/i18n/locales/en.json +182 -4
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.js +310 -8
- package/dist/commonjs/styles/index.d.ts +4 -1
- package/dist/commonjs/styles/index.js +22 -19
- package/dist/commonjs/types/enums.d.ts +156 -9
- package/dist/commonjs/types/enums.js +139 -2
- package/dist/commonjs/types/interfaces.d.ts +70 -1
- package/dist/esm/components/AnalyticsEventCard.js +95 -89
- package/dist/esm/components/ConsoleLogCard.js +49 -25
- package/dist/esm/components/ErrorBoundary.d.ts +1 -1
- package/dist/esm/components/ErrorBoundary.js +10 -113
- package/dist/esm/components/Inspector/AnalyticsFilterModal.d.ts +7 -0
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +964 -0
- package/dist/esm/components/Inspector/AnalyticsTab.js +639 -12
- package/dist/esm/components/Inspector/BundleTab.d.ts +1 -1
- package/dist/esm/components/Inspector/BundleTab.js +827 -407
- package/dist/esm/components/Inspector/CrashDetail.d.ts +3 -0
- package/dist/esm/components/Inspector/CrashDetail.js +758 -0
- package/dist/esm/components/Inspector/CrashFilterModal.d.ts +20 -0
- package/dist/esm/components/Inspector/CrashFilterModal.js +557 -0
- package/dist/esm/components/Inspector/CrashTab.d.ts +3 -0
- package/dist/esm/components/Inspector/CrashTab.js +689 -0
- package/dist/esm/components/Inspector/InspectorContext.js +1 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +66 -29
- package/dist/esm/components/Inspector/LogDetail.js +227 -114
- package/dist/esm/components/Inspector/MainScreen.js +14 -5
- package/dist/esm/components/Inspector/NetworkDetail.js +132 -49
- package/dist/esm/components/Inspector/PerformanceTab.js +20 -10
- package/dist/esm/components/Inspector/SettingsPanel.js +91 -2
- package/dist/esm/components/Inspector/TabBar.js +16 -4
- package/dist/esm/components/NetworkIcons.d.ts +25 -0
- package/dist/esm/components/NetworkIcons.js +161 -0
- package/dist/esm/components/SegmentedTabs.js +33 -23
- package/dist/esm/components/TreeNode.js +13 -12
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/analyticsLogger.js +70 -44
- package/dist/esm/customHooks/bundleAnalyzer.d.ts +5 -1
- package/dist/esm/customHooks/bundleAnalyzer.js +493 -125
- package/dist/esm/customHooks/consoleLogger.d.ts +1 -0
- package/dist/esm/customHooks/consoleLogger.js +151 -50
- package/dist/esm/customHooks/crashHandler.d.ts +64 -0
- package/dist/esm/customHooks/crashHandler.js +659 -0
- package/dist/esm/customHooks/networkLogger.js +74 -49
- package/dist/esm/customHooks/performanceTracker.d.ts +8 -0
- package/dist/esm/customHooks/performanceTracker.js +38 -1
- package/dist/esm/decorators/index.d.ts +49 -0
- package/dist/esm/decorators/index.js +137 -0
- package/dist/esm/helpers/gaAnalyticsRegistry.d.ts +18 -0
- package/dist/esm/helpers/gaAnalyticsRegistry.js +169 -0
- package/dist/esm/helpers/index.d.ts +7 -4
- package/dist/esm/helpers/index.js +100 -63
- package/dist/esm/i18n/locales/en.json +182 -4
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +262 -8
- package/dist/esm/styles/index.d.ts +4 -1
- package/dist/esm/styles/index.js +22 -19
- package/dist/esm/types/enums.d.ts +156 -9
- package/dist/esm/types/enums.js +138 -3
- package/dist/esm/types/interfaces.d.ts +70 -1
- package/ios/NetworkInspectorModule.h +6 -0
- package/ios/NetworkInspectorModule.m +125 -0
- package/package.json +5 -2
- package/react-native-inapp-inspector.podspec +18 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRuntimeDiagnostics = exports.getCategoryColors = exports.getEventCategory = exports.getEventColor = exports.ANALYTICS_EVENT_PALETTE = exports.parseStackLine = exports.getJsonPreviewText = exports.getJsonContent = exports.formatGap = exports.formatTime = exports.formatTimeShort = exports.handleOpenExternalLink = exports.getAppName = exports.getBundleIdentifier = exports.formatDateTimeToAnalytics = exports.isAllValuesEmpty = exports.getLocalizedFilePathWithSlash = exports.getLocalizedFilePath = exports.formatDisplayUrl = exports.getDiff = exports.flattenObject = exports.getNavigationInfo = exports.escapeRegex = exports.deduplicateLogs = exports.getFetchCommand = exports.getCurlCommand = exports.getBaseUrl = exports.getPath = exports.copyToClipboard = exports.getSize = exports.getDurationColor = exports.getStatusColor = exports.formatDateTime = exports.getDomainColor = void 0;
|
|
3
|
+
exports.getRuntimeDiagnostics = exports.getCategoryColors = exports.registerGAPlugin = exports.getEventCategory = exports.getEventColor = exports.ANALYTICS_EVENT_PALETTE = exports.parseStackLine = exports.getJsonPreviewText = exports.getJsonContent = exports.formatGap = exports.formatTime = exports.formatTimeShort = exports.handleOpenExternalLink = exports.getAppName = exports.getBundleIdentifier = exports.formatDateTimeToAnalytics = exports.isAllValuesEmpty = exports.getLocalizedFilePathWithSlash = exports.getLocalizedFilePath = exports.formatDisplayUrl = exports.getDiff = exports.flattenObject = exports.getNavigationInfo = exports.escapeRegex = exports.deduplicateLogs = exports.getFetchCommand = exports.getCurlCommand = exports.getBaseUrl = exports.getPath = exports.copyToClipboard = exports.getSize = exports.getDurationColor = exports.getStatusColor = exports.formatDateTime = exports.getDomainColor = void 0;
|
|
4
4
|
const react_native_1 = require("react-native");
|
|
5
5
|
// Stylesheet
|
|
6
6
|
const AppColors_1 = require("../styles/AppColors");
|
|
@@ -60,58 +60,83 @@ const getSize = (data) => {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
exports.getSize = getSize;
|
|
63
|
-
//
|
|
63
|
+
// Safely detect and load clipboard natively without static require() calls that Metro fails on
|
|
64
64
|
const getClipboardModule = () => {
|
|
65
|
+
// 1. Check TurboModuleRegistry (TurboModules / New Architecture)
|
|
65
66
|
try {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
const tmReg = react_native_1.TurboModuleRegistry || globalThis.__turboModuleProxy;
|
|
68
|
+
if (tmReg?.get) {
|
|
69
|
+
const tm = tmReg.get('RNCClipboard') ||
|
|
70
|
+
tmReg.get('NativeClipboard') ||
|
|
71
|
+
tmReg.get('ExpoClipboard');
|
|
72
|
+
if (tm &&
|
|
73
|
+
(typeof tm.setString === 'function' ||
|
|
74
|
+
typeof tm.setStringAsync === 'function')) {
|
|
75
|
+
return tm;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
72
78
|
}
|
|
73
79
|
catch { }
|
|
80
|
+
// 2. Check legacy NativeModules table (Bridge / Old Architecture)
|
|
74
81
|
try {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (
|
|
80
|
-
|
|
82
|
+
if (react_native_1.NativeModules?.RNCClipboard &&
|
|
83
|
+
typeof react_native_1.NativeModules.RNCClipboard.setString === 'function') {
|
|
84
|
+
return react_native_1.NativeModules.RNCClipboard;
|
|
85
|
+
}
|
|
86
|
+
if (react_native_1.NativeModules?.ExpoClipboard &&
|
|
87
|
+
typeof react_native_1.NativeModules.ExpoClipboard.setStringAsync === 'function') {
|
|
88
|
+
return react_native_1.NativeModules.ExpoClipboard;
|
|
89
|
+
}
|
|
90
|
+
if (react_native_1.NativeModules?.Clipboard &&
|
|
91
|
+
typeof react_native_1.NativeModules.Clipboard.setString === 'function') {
|
|
92
|
+
return react_native_1.NativeModules.Clipboard;
|
|
93
|
+
}
|
|
81
94
|
}
|
|
82
95
|
catch { }
|
|
96
|
+
// 3. Check legacy React Native core Clipboard
|
|
83
97
|
try {
|
|
84
|
-
if (react_native_1.
|
|
85
|
-
return react_native_1.
|
|
98
|
+
if (react_native_1.Clipboard && typeof react_native_1.Clipboard.setString === 'function') {
|
|
99
|
+
return react_native_1.Clipboard;
|
|
100
|
+
}
|
|
86
101
|
}
|
|
87
102
|
catch { }
|
|
88
|
-
return
|
|
103
|
+
return null;
|
|
89
104
|
};
|
|
90
105
|
const copyToClipboard = (value, label) => {
|
|
91
106
|
const resolved = typeof value === 'function' ? value() : value;
|
|
92
107
|
const text = typeof resolved === 'string' ? resolved : JSON.stringify(resolved, null, 2);
|
|
93
108
|
const textToCopy = text ?? '';
|
|
109
|
+
let copied = false;
|
|
94
110
|
try {
|
|
95
111
|
const cb = getClipboardModule();
|
|
96
|
-
if (cb
|
|
97
|
-
cb.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
112
|
+
if (cb) {
|
|
113
|
+
if (typeof cb.setStringAsync === 'function') {
|
|
114
|
+
cb.setStringAsync(textToCopy);
|
|
115
|
+
copied = true;
|
|
116
|
+
}
|
|
117
|
+
else if (typeof cb.setString === 'function') {
|
|
118
|
+
cb.setString(textToCopy);
|
|
119
|
+
copied = true;
|
|
120
|
+
}
|
|
101
121
|
}
|
|
102
122
|
}
|
|
103
|
-
catch {
|
|
123
|
+
catch { }
|
|
124
|
+
if (!copied) {
|
|
104
125
|
try {
|
|
105
|
-
|
|
126
|
+
if (typeof navigator !== 'undefined' && navigator?.clipboard?.writeText) {
|
|
127
|
+
navigator.clipboard.writeText(textToCopy);
|
|
128
|
+
copied = true;
|
|
129
|
+
}
|
|
106
130
|
}
|
|
107
131
|
catch { }
|
|
108
132
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
133
|
+
// Visual toast feedback on Android if ToastAndroid exists
|
|
134
|
+
try {
|
|
135
|
+
if (react_native_1.Platform.OS === 'android' && react_native_1.ToastAndroid?.show) {
|
|
136
|
+
react_native_1.ToastAndroid.show(`${label} copied`, react_native_1.ToastAndroid.SHORT);
|
|
137
|
+
}
|
|
114
138
|
}
|
|
139
|
+
catch { }
|
|
115
140
|
};
|
|
116
141
|
exports.copyToClipboard = copyToClipboard;
|
|
117
142
|
const getPath = (url) => {
|
|
@@ -476,6 +501,10 @@ const parseStackLine = (rawLine, isOrigin = false) => {
|
|
|
476
501
|
functionName = parenMatch[1].trim() || '<anonymous>';
|
|
477
502
|
locationPart = parenMatch[2].trim();
|
|
478
503
|
}
|
|
504
|
+
// Clean Babel/Hermes artifacts in function names like ?anon_0_, _callee$, etc.
|
|
505
|
+
if (functionName.startsWith('?anon_') || functionName === '?') {
|
|
506
|
+
functionName = 'anonymous';
|
|
507
|
+
}
|
|
479
508
|
// Remove "address at " prefix if present in Hermes
|
|
480
509
|
locationPart = locationPart.replace(/^address at /, '');
|
|
481
510
|
// Extract file, line, and col from locationPart (e.g. "path/to/file.tsx:42:15" or "http://...:42:15")
|
|
@@ -503,20 +532,56 @@ const parseStackLine = (rawLine, isOrigin = false) => {
|
|
|
503
532
|
const fileExt = ext === 'tsx' || ext === 'jsx' || ext === 'ts' || ext === 'js'
|
|
504
533
|
? ext
|
|
505
534
|
: 'other';
|
|
506
|
-
const
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
(
|
|
535
|
+
const isNative = locationPart === 'native' || cleanPath === 'native';
|
|
536
|
+
const isInternalBytecode = cleanPath.includes('InternalBytecode') ||
|
|
537
|
+
cleanPath.includes('metro-runtime') ||
|
|
538
|
+
cleanPath.includes('regenerator-runtime') ||
|
|
539
|
+
functionName === 'tryCallOne' ||
|
|
540
|
+
functionName === 'asyncGeneratorStep' ||
|
|
541
|
+
functionName === '_next' ||
|
|
542
|
+
(functionName === 'next' && isNative);
|
|
543
|
+
const isDependency = cleanPath.includes('node_modules') ||
|
|
544
|
+
cleanPath.includes('react-native/Libraries') ||
|
|
545
|
+
(cleanPath.includes('react-native-inapp-inspector') && !cleanPath.includes('/example/'));
|
|
546
|
+
const isUserCode = !isNative &&
|
|
547
|
+
!isInternalBytecode &&
|
|
548
|
+
!isDependency &&
|
|
549
|
+
(fileExt === 'tsx' || fileExt === 'jsx' || fileExt === 'ts' || fileExt === 'js' || !fileName.includes('.bundle'));
|
|
550
|
+
const frameType = isUserCode
|
|
551
|
+
? 'app'
|
|
552
|
+
: isDependency
|
|
553
|
+
? 'dependency'
|
|
554
|
+
: isNative
|
|
555
|
+
? 'native'
|
|
556
|
+
: 'runtime';
|
|
557
|
+
const isRuntimeNoise = isInternalBytecode || isNative || functionName === 'asyncGeneratorStep' || functionName === '_next';
|
|
558
|
+
// Format clean relative project path
|
|
559
|
+
let relativePath = cleanPath;
|
|
560
|
+
if (relativePath.includes('/example/')) {
|
|
561
|
+
relativePath = relativePath.substring(relativePath.indexOf('/example/') + 9);
|
|
562
|
+
}
|
|
563
|
+
else if (relativePath.includes('/src/')) {
|
|
564
|
+
relativePath = relativePath.substring(relativePath.indexOf('/src/') + 1);
|
|
565
|
+
}
|
|
566
|
+
else if (relativePath.includes('/node_modules/')) {
|
|
567
|
+
relativePath = relativePath.substring(relativePath.indexOf('/node_modules/') + 14);
|
|
568
|
+
}
|
|
569
|
+
const copyableLocation = lineNumber
|
|
570
|
+
? `${fileName}:${lineNumber}${columnNumber ? `:${columnNumber}` : ''}`
|
|
571
|
+
: fileName;
|
|
510
572
|
return {
|
|
511
573
|
raw: rawLine,
|
|
512
574
|
functionName,
|
|
513
575
|
fileName,
|
|
514
|
-
fullPath:
|
|
576
|
+
fullPath: relativePath,
|
|
515
577
|
fileExt,
|
|
578
|
+
frameType,
|
|
516
579
|
isUserCode,
|
|
580
|
+
isRuntimeNoise,
|
|
517
581
|
lineNumber,
|
|
518
582
|
columnNumber,
|
|
519
583
|
isOrigin,
|
|
584
|
+
copyableLocation,
|
|
520
585
|
};
|
|
521
586
|
};
|
|
522
587
|
exports.parseStackLine = parseStackLine;
|
|
@@ -540,36 +605,9 @@ const getEventColor = (name) => {
|
|
|
540
605
|
return exports.ANALYTICS_EVENT_PALETTE[Math.abs(hash) % exports.ANALYTICS_EVENT_PALETTE.length];
|
|
541
606
|
};
|
|
542
607
|
exports.getEventColor = getEventColor;
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
const lowercaseName = name.toLowerCase();
|
|
547
|
-
if (lowercaseName === 'screen_view' || lowercaseName === 'page_view') {
|
|
548
|
-
return 'page_view';
|
|
549
|
-
}
|
|
550
|
-
// Ecommerce events
|
|
551
|
-
const ecommerceEvents = [
|
|
552
|
-
'purchase', 'add_to_cart', 'begin_checkout', 'view_item',
|
|
553
|
-
'select_item', 'remove_from_cart', 'view_cart',
|
|
554
|
-
'add_shipping_info', 'add_payment_info', 'refund',
|
|
555
|
-
'view_item_list', 'select_promotion', 'view_promotion'
|
|
556
|
-
];
|
|
557
|
-
if (ecommerceEvents.includes(lowercaseName)) {
|
|
558
|
-
return 'ecommerce';
|
|
559
|
-
}
|
|
560
|
-
// Firebase System Auto-events
|
|
561
|
-
const systemEvents = [
|
|
562
|
-
'first_open', 'session_start', 'user_engagement',
|
|
563
|
-
'app_clear_data', 'app_exception', 'app_update', 'os_update',
|
|
564
|
-
'notification_receive', 'notification_open', 'notification_dismiss',
|
|
565
|
-
'screen_active', 'screen_inactive'
|
|
566
|
-
];
|
|
567
|
-
if (systemEvents.includes(lowercaseName) || lowercaseName.startsWith('firebase_') || lowercaseName.startsWith('_')) {
|
|
568
|
-
return 'system';
|
|
569
|
-
}
|
|
570
|
-
return 'custom';
|
|
571
|
-
};
|
|
572
|
-
exports.getEventCategory = getEventCategory;
|
|
608
|
+
var gaAnalyticsRegistry_1 = require("./gaAnalyticsRegistry");
|
|
609
|
+
Object.defineProperty(exports, "getEventCategory", { enumerable: true, get: function () { return gaAnalyticsRegistry_1.getEventCategory; } });
|
|
610
|
+
Object.defineProperty(exports, "registerGAPlugin", { enumerable: true, get: function () { return gaAnalyticsRegistry_1.registerGAPlugin; } });
|
|
573
611
|
const getCategoryColors = (category) => {
|
|
574
612
|
switch (category) {
|
|
575
613
|
case 'page_view':
|
|
@@ -211,7 +211,29 @@
|
|
|
211
211
|
"filterWarn": "Warn",
|
|
212
212
|
"filterError": "Error",
|
|
213
213
|
"filterUserLog": "User Log",
|
|
214
|
-
"filterAnalytics": "Analytics"
|
|
214
|
+
"filterAnalytics": "Analytics",
|
|
215
|
+
"tabOutput": "Output",
|
|
216
|
+
"tabArgs": "Args ({{count}})",
|
|
217
|
+
"tabStack": "Stack Trace",
|
|
218
|
+
"tabMetadata": "Metadata",
|
|
219
|
+
"callStack": "Call Stack ({{count}} frames)",
|
|
220
|
+
"errorStack": "Error Exception Stack ({{count}} frames)",
|
|
221
|
+
"callOriginStack": "Call Origin Stack",
|
|
222
|
+
"errorThrownStack": "Error Thrown Stack",
|
|
223
|
+
"appCodeScope": "🎯 App Code ({{count}})",
|
|
224
|
+
"allFramesScope": "📜 All Frames ({{count}})",
|
|
225
|
+
"cardsView": "Cards",
|
|
226
|
+
"rawTraceView": "Raw",
|
|
227
|
+
"noStackAvailable": "No call stack frames found matching the active filter.",
|
|
228
|
+
"originBadge": "#1 ORIGIN",
|
|
229
|
+
"appCodeBadge": "App Code",
|
|
230
|
+
"dependencyBadge": "Dependency",
|
|
231
|
+
"nativeBadge": "Native",
|
|
232
|
+
"hermesVmBadge": "Hermes VM",
|
|
233
|
+
"fullStackTrace": "Full Stack Trace",
|
|
234
|
+
"lineCol": "Line {{line}}, Col {{col}}",
|
|
235
|
+
"lineColShort": "L{{line}}:C{{col}}",
|
|
236
|
+
"searchInLogDetails": "Search in log details..."
|
|
215
237
|
},
|
|
216
238
|
"analytics": {
|
|
217
239
|
"title": "Analytics",
|
|
@@ -398,11 +420,36 @@
|
|
|
398
420
|
"catTsDesc": "App screen components, hooks, and business logic",
|
|
399
421
|
"catJsonTitle": "JSON Data & Localizations",
|
|
400
422
|
"catJsonDesc": "i18n translation dictionaries and static configs",
|
|
401
|
-
"
|
|
402
|
-
"totalBundleAssets": "TOTAL BUNDLE ASSETS",
|
|
423
|
+
"totalBundleAssets": "TOTAL HOST PROJECT FILES",
|
|
403
424
|
"totalBundleValue": "{{kb}} KB (~{{mb}} MB)",
|
|
404
|
-
"totalFormula": "Sum: {{images}} KB + {{js}} KB + {{fonts}} KB + {{ts}} KB + {{json}} KB = {{total}} KB ({{count}} items
|
|
425
|
+
"totalFormula": "Sum of host source files: {{images}} KB + {{js}} KB + {{fonts}} KB + {{ts}} KB + {{json}} KB = {{total}} KB ({{count}} items)",
|
|
426
|
+
"prodIosApp": "iOS App (.ipa)",
|
|
427
|
+
"prodAndroidAab": "Android AAB (.aab)",
|
|
428
|
+
"prodAndroidApk": "Universal APK (.apk)",
|
|
429
|
+
"prodHeroTitleIos": "iOS Production Binary Footprint",
|
|
430
|
+
"prodHeroTitleAab": "Google Play App Bundle (.aab)",
|
|
431
|
+
"prodHeroTitleApk": "Universal Standalone APK (.apk)",
|
|
432
|
+
"prodHeroSubIos": "App Store install & over-the-air cellular download estimates",
|
|
433
|
+
"prodHeroSubAab": "Optimized per-device dynamic delivery split APK architecture",
|
|
434
|
+
"prodHeroSubApk": "Multi-ABI universal install archive for sideloading & direct distribution",
|
|
435
|
+
"prodInstallSize": "INSTALL SIZE",
|
|
436
|
+
"prodInstallHint": "On-device uncompressed footprint",
|
|
437
|
+
"prodDownloadSize": "DOWNLOAD SIZE",
|
|
438
|
+
"prodDownloadHint": "Store network transfer payload",
|
|
439
|
+
"prodCompression": "COMPRESSION",
|
|
440
|
+
"prodCompressionHint": "Bytecode & asset ratio",
|
|
441
|
+
"prodFormatArch": "FORMAT ARCHITECTURE",
|
|
442
|
+
"prodFormatHintIos": "Apple ARM64 runtime",
|
|
443
|
+
"prodFormatHintAab": "Dynamic Google Play delivery",
|
|
444
|
+
"prodFormatHintApk": "Sideload universal package",
|
|
445
|
+
"prodArchTitle": "Binary Component Architecture",
|
|
446
|
+
"prodArchSub": "Compiled native libraries, runtime bytecodes, assets, and signature blocks",
|
|
447
|
+
"prodTotalIos": "TOTAL IOS APP BINARY",
|
|
448
|
+
"prodTotalAab": "TOTAL ANDROID AAB BUNDLE",
|
|
449
|
+
"prodTotalApk": "TOTAL UNIVERSAL APK",
|
|
450
|
+
"prodTotalFormula": "From {{devKb}} KB (~{{devMb}} MB • {{count}} total assets) dev source bundle → {{installMb}} MB optimized native binary ({{pct}}% bytecode/asset compression).",
|
|
405
451
|
"tabOverview": "Overview",
|
|
452
|
+
"tabProduction": "Production ({{count}})",
|
|
406
453
|
"tabFiles": "Files ({{count}})",
|
|
407
454
|
"tabPackages": "Packages ({{count}})",
|
|
408
455
|
"tabMedia": "Media ({{count}})",
|
|
@@ -535,5 +582,136 @@
|
|
|
535
582
|
"retry": "Try Again",
|
|
536
583
|
"reset": "Reset",
|
|
537
584
|
"close": "Close"
|
|
585
|
+
},
|
|
586
|
+
"crash": {
|
|
587
|
+
"title": "Crash",
|
|
588
|
+
"searchPlaceholder": "Search error, message, stack...",
|
|
589
|
+
"searchDetailPlaceholder": "Search in trace or JSON...",
|
|
590
|
+
"statCrashes": "Crashes",
|
|
591
|
+
"statFatal": "Fatal",
|
|
592
|
+
"statJsErrors": "JS Errors",
|
|
593
|
+
"statPromises": "Promises",
|
|
594
|
+
"statRender": "Render",
|
|
595
|
+
"statNative": "Native",
|
|
596
|
+
"filterAll": "All",
|
|
597
|
+
"filterFatal": "Fatal",
|
|
598
|
+
"filterJsError": "JS Error",
|
|
599
|
+
"filterPromise": "Promise",
|
|
600
|
+
"filterRender": "Render",
|
|
601
|
+
"filterNative": "Native",
|
|
602
|
+
"fatalBadge": "FATAL",
|
|
603
|
+
"handledBadge": "HANDLED",
|
|
604
|
+
"fatalCrash": "FATAL CRASH",
|
|
605
|
+
"handledException": "HANDLED EXCEPTION",
|
|
606
|
+
"unknownException": "Unknown Exception",
|
|
607
|
+
"report": "Report",
|
|
608
|
+
"inspect": "Inspect",
|
|
609
|
+
"copyReport": "Copy Report",
|
|
610
|
+
"copied": "Copied",
|
|
611
|
+
"clearTitle": "Clear Crash History",
|
|
612
|
+
"clearMessage": "Are you sure you want to clear all intercepted crash records?",
|
|
613
|
+
"clearCancel": "Cancel",
|
|
614
|
+
"clearConfirm": "Clear All",
|
|
615
|
+
"emptyTitle": "Zero Crashes Detected",
|
|
616
|
+
"emptySubtitle": "Global crash guard is active. All native and JavaScript exceptions are intercepted and protected.",
|
|
617
|
+
"emptySearchSubtitle": "No crash entries matched your search query.",
|
|
618
|
+
"tabStack": "Stack ({{count}})",
|
|
619
|
+
"tabDiagnostics": "Diagnostics",
|
|
620
|
+
"tabTrail": "Trail ({{count}})",
|
|
621
|
+
"tabRawJson": "Raw JSON",
|
|
622
|
+
"appFrames": "App Frames ({{count}})",
|
|
623
|
+
"allFrames": "All Frames ({{count}})",
|
|
624
|
+
"frameApp": "APP",
|
|
625
|
+
"frameLib": "LIB",
|
|
626
|
+
"anonymous": "<anonymous>",
|
|
627
|
+
"noStackTrace": "No stack trace captured for this event.",
|
|
628
|
+
"deviceEnvironment": "Device & Environment",
|
|
629
|
+
"platform": "Platform",
|
|
630
|
+
"osVersion": "OS Version",
|
|
631
|
+
"reactNative": "React Native",
|
|
632
|
+
"jsEngine": "JS Engine",
|
|
633
|
+
"hermesEngine": "Hermes Engine",
|
|
634
|
+
"jsc": "JSC",
|
|
635
|
+
"architecture": "Architecture",
|
|
636
|
+
"fabricNewArch": "Fabric (New Arch)",
|
|
637
|
+
"paperLegacy": "Paper (Legacy)",
|
|
638
|
+
"appState": "App State",
|
|
639
|
+
"jsHeapMemory": "JS Heap Memory",
|
|
640
|
+
"usedHeap": "Used Heap",
|
|
641
|
+
"totalHeap": "Total Heap",
|
|
642
|
+
"noBreadcrumbs": "No breadcrumb events recorded prior to this crash.",
|
|
643
|
+
"simNativeMessage": "Simulated native fatal exception",
|
|
644
|
+
"simPromiseMessage": "Simulated unhandled promise rejection",
|
|
645
|
+
"simRenderMessage": "Simulated React component render error",
|
|
646
|
+
"simJsMessage": "Simulated JavaScript exception",
|
|
647
|
+
"reportTitle": "CRASH DIAGNOSTIC REPORT",
|
|
648
|
+
"reportErrorName": "Error Name:",
|
|
649
|
+
"reportMessage": "Message:",
|
|
650
|
+
"reportType": "Type:",
|
|
651
|
+
"reportFatalYes": "YES (Fatal)",
|
|
652
|
+
"reportFatalNo": "NO (Caught/Handled)",
|
|
653
|
+
"reportFatal": "Fatal:",
|
|
654
|
+
"reportTimestamp": "Timestamp:",
|
|
655
|
+
"reportUptime": "App Uptime:",
|
|
656
|
+
"reportUptimeValue": "{{seconds}} seconds",
|
|
657
|
+
"reportPlatform": "Platform:",
|
|
658
|
+
"reportReactNative": "React Native:",
|
|
659
|
+
"reportHermes": "Hermes:",
|
|
660
|
+
"reportEnabled": "Enabled",
|
|
661
|
+
"reportDisabled": "Disabled",
|
|
662
|
+
"reportArchitecture": "Architecture:",
|
|
663
|
+
"reportFabricNew": "Fabric (New)",
|
|
664
|
+
"reportPaperLegacy": "Paper (Legacy)",
|
|
665
|
+
"reportScreenSize": "Screen Size:",
|
|
666
|
+
"reportAppState": "App State:",
|
|
667
|
+
"reportJsMemory": "JS Memory:",
|
|
668
|
+
"reportStackTrace": "STACK TRACE:",
|
|
669
|
+
"reportNoStackTrace": "No stack trace available",
|
|
670
|
+
"reportComponentHierarchy": "COMPONENT HIERARCHY:",
|
|
671
|
+
"reportRecentBreadcrumbs": "RECENT BREADCRUMBS:",
|
|
672
|
+
"mdReportTitle": "🚨 Crash Report: {{name}}",
|
|
673
|
+
"mdStackTrace": "📦 Stack Trace",
|
|
674
|
+
"mdComponentHierarchy": "🌲 Component Hierarchy",
|
|
675
|
+
"mdRecentBreadcrumbs": "👣 Recent Breadcrumbs",
|
|
676
|
+
"mdSeverityFatal": "FATAL",
|
|
677
|
+
"mdSeverityHandled": "HANDLED",
|
|
678
|
+
"breadcrumbNavigation": "Navigated from \"{{from}}\" to \"{{to}}\"",
|
|
679
|
+
"breadcrumbAction": "Action: {{actionType}}",
|
|
680
|
+
"unknown": "Unknown",
|
|
681
|
+
"runtimeException": "Runtime Exception",
|
|
682
|
+
"logFatalCrash": "Fatal Crash",
|
|
683
|
+
"logUnhandledError": "Unhandled Error",
|
|
684
|
+
"errorNameFatal": "FatalError",
|
|
685
|
+
"errorNameUnhandled": "UnhandledException",
|
|
686
|
+
"nativeCrashTitle": "Native Crash",
|
|
687
|
+
"nativeUncaughtException": "Native Uncaught Exception",
|
|
688
|
+
"nativeException": "Native Exception",
|
|
689
|
+
"unhandledPromiseRejection": "Unhandled Promise Rejection",
|
|
690
|
+
"filterTitle": "Crash Filters",
|
|
691
|
+
"filterSubtitle": "Diagnostics & Reports",
|
|
692
|
+
"filterReset": "Reset All",
|
|
693
|
+
"filterTypeSection": "CRASH TYPE",
|
|
694
|
+
"filterTypeAll": "All Types",
|
|
695
|
+
"filterTimeSection": "TIME HORIZON",
|
|
696
|
+
"filterTimeAll": "All Time",
|
|
697
|
+
"filterTime15m": "Last 15 mins",
|
|
698
|
+
"filterTime1h": "Last 1 hour",
|
|
699
|
+
"filterTime24h": "Last 24 hours",
|
|
700
|
+
"filterTime7d": "Last 7 days",
|
|
701
|
+
"filterPlatformSection": "PLATFORM",
|
|
702
|
+
"filterPlatformAll": "All Platforms",
|
|
703
|
+
"filterPlatformIos": "iOS",
|
|
704
|
+
"filterPlatformAndroid": "Android",
|
|
705
|
+
"filterEngineSection": "JS ENGINE",
|
|
706
|
+
"filterEngineAll": "All Engines",
|
|
707
|
+
"filterEngineHermes": "Hermes",
|
|
708
|
+
"filterSortSection": "SORT ORDER",
|
|
709
|
+
"filterSortNewest": "Newest First (Default)",
|
|
710
|
+
"filterSortOldest": "Oldest First",
|
|
711
|
+
"filterDiscard": "Discard",
|
|
712
|
+
"filterApply": "Apply ({{count}} Crashes)",
|
|
713
|
+
"frameCopy": "Copy",
|
|
714
|
+
"frameCopied": "Copied",
|
|
715
|
+
"componentHierarchy": "Component Hierarchy"
|
|
538
716
|
}
|
|
539
717
|
}
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -5,5 +5,11 @@ export default NetworkInspectorWrapper;
|
|
|
5
5
|
export { setupNetworkLogger, clearNetworkLogs, subscribeNetworkLogs, addAxiosInterceptors, } from './customHooks/networkLogger';
|
|
6
6
|
export { setupConsoleLogger, clearConsoleLogs, subscribeConsoleLogs, } from './customHooks/consoleLogger';
|
|
7
7
|
export { setupAnalyticsLogger, logAnalyticsEvent, subscribeAnalyticsEvents, clearAnalyticsEvents, getCurrentUserProperties, getCurrentUserId, getDefaultEventParameters, getCollectionEnabled, } from './customHooks/analyticsLogger';
|
|
8
|
+
export { setupGlobalCrashHandler, subscribeCrashEvents, emitCrashEvent, getCrashRecords, clearCrashRecords, simulateTestCrash, exportCrashReport, parseCrashStackTrace, recordCustomCrash, addCrashBreadcrumb, recordNavigationBreadcrumb, recordNetworkBreadcrumb, recordReduxBreadcrumb, recordUserActionBreadcrumb, computeCrashFingerprint, type CrashEventPayload, } from './customHooks/crashHandler';
|
|
9
|
+
export { default as CrashTab } from './components/Inspector/CrashTab';
|
|
8
10
|
export { default as ErrorBoundary } from './components/ErrorBoundary';
|
|
9
11
|
export { connectReduxStore, inspectorReduxMiddleware, getReduxState, subscribeReduxState, getActionHistory, clearActionHistory, getLastActionForReducer, } from './customHooks/reduxLogger';
|
|
12
|
+
export { getEventCategory, registerGAPlugin, type GAPlugin, } from './helpers/gaAnalyticsRegistry';
|
|
13
|
+
export { usePerformanceTracker, logPerformanceEvent, clearPerformanceEvents, subscribePerformanceEvents, getPerformanceEvents, } from './customHooks/performanceTracker';
|
|
14
|
+
export { InspectLog, InspectTrackTime, InspectCatch, type InspectLogOptions, } from './decorators';
|
|
15
|
+
export { ActiveTab, Method, StatusFilter, SortOrder, LocalFilter, ModalAnimationType, SettingsPage, SettingsSubTab, LogFilter, ConsoleLogType, AnalyticsEventSource, GAEventCategory, StackFrameType, DiffResultType, BundleSubTab, PerformanceSubTab, CrashType, CrashExportFormat, CrashDetailSubTab, CrashFilterType, BreadcrumbType, } from './types';
|