react-native-inapp-inspector 1.1.13 → 1.1.15
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 +9 -34
- package/dist/commonjs/assets/svgAssets.d.ts +3 -0
- package/dist/commonjs/assets/svgAssets.js +17 -0
- package/dist/commonjs/components/AnalyticsEventCard.d.ts +1 -14
- package/dist/commonjs/components/AnalyticsEventCard.js +120 -50
- package/dist/commonjs/components/AnalyticsGraph.d.ts +2 -6
- package/dist/commonjs/components/AnalyticsGraph.js +8 -8
- package/dist/commonjs/components/AnalyticsTabView.d.ts +15 -0
- package/dist/commonjs/components/AnalyticsTabView.js +157 -0
- package/dist/commonjs/components/AnimatedEntrance.d.ts +1 -1
- package/dist/commonjs/components/AnimatedEntrance.js +2 -2
- package/dist/commonjs/components/ApiDetailView.d.ts +22 -0
- package/dist/commonjs/components/ApiDetailView.js +304 -0
- package/dist/commonjs/components/ApisTabView.d.ts +33 -0
- package/dist/commonjs/components/ApisTabView.js +235 -0
- package/dist/commonjs/components/CodeSnippet.d.ts +1 -5
- package/dist/commonjs/components/CodeSnippet.js +34 -34
- package/dist/commonjs/components/ConsoleLogCard.d.ts +1 -8
- package/dist/commonjs/components/ConsoleLogCard.js +262 -442
- package/dist/commonjs/components/ConsoleLogDetailView.d.ts +9 -0
- package/dist/commonjs/components/ConsoleLogDetailView.js +278 -0
- package/dist/commonjs/components/ConsoleLogsTabView.d.ts +24 -0
- package/dist/commonjs/components/ConsoleLogsTabView.js +354 -0
- package/dist/commonjs/components/DiffViewer.js +4 -2
- package/dist/commonjs/components/DomainHeader.js +66 -41
- package/dist/commonjs/components/EmptyState.d.ts +2 -2
- package/dist/commonjs/components/EmptyState.js +2 -2
- package/dist/commonjs/components/EndOfListFooter.d.ts +8 -0
- package/dist/commonjs/components/EndOfListFooter.js +90 -0
- package/dist/commonjs/components/ErrorBoundary.d.ts +5 -14
- package/dist/commonjs/components/ErrorBoundary.js +28 -28
- package/dist/commonjs/components/FloatingBubble.d.ts +14 -0
- package/dist/commonjs/components/FloatingBubble.js +75 -0
- package/dist/commonjs/components/HeadersSection.js +5 -3
- package/dist/commonjs/components/HighlightText.d.ts +1 -1
- package/dist/commonjs/components/HighlightText.js +5 -7
- package/dist/commonjs/components/Inspector/AnalyticsTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +232 -0
- package/dist/commonjs/components/Inspector/ConsoleTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/ConsoleTab.js +410 -0
- package/dist/commonjs/components/Inspector/FabLauncher.d.ts +3 -0
- package/dist/commonjs/components/Inspector/FabLauncher.js +54 -0
- package/dist/commonjs/components/Inspector/InsightsDashboard.d.ts +3 -0
- package/dist/commonjs/components/Inspector/InsightsDashboard.js +619 -0
- package/dist/commonjs/components/Inspector/InspectorContext.d.ts +5 -0
- package/dist/commonjs/components/Inspector/InspectorContext.js +18 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.d.ts +3 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.js +452 -0
- package/dist/commonjs/components/Inspector/LogDetail.d.ts +3 -0
- package/dist/commonjs/components/Inspector/LogDetail.js +963 -0
- package/dist/commonjs/components/Inspector/MainScreen.d.ts +3 -0
- package/dist/commonjs/components/Inspector/MainScreen.js +68 -0
- package/dist/commonjs/components/Inspector/NavigationTracker.d.ts +3 -0
- package/dist/commonjs/components/Inspector/NavigationTracker.js +12 -0
- package/dist/commonjs/components/Inspector/NetworkDetail.d.ts +3 -0
- package/dist/commonjs/components/Inspector/NetworkDetail.js +405 -0
- package/dist/commonjs/components/Inspector/NetworkTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/NetworkTab.js +281 -0
- package/dist/commonjs/components/Inspector/ReduxTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/ReduxTab.js +75 -0
- package/dist/commonjs/components/Inspector/SettingsPanel.d.ts +3 -0
- package/dist/commonjs/components/Inspector/SettingsPanel.js +1476 -0
- package/dist/commonjs/components/Inspector/TabBar.d.ts +3 -0
- package/dist/commonjs/components/Inspector/TabBar.js +95 -0
- package/dist/commonjs/components/Inspector/WebViewTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/WebViewTab.js +757 -0
- package/dist/commonjs/components/InspectorHeader.d.ts +19 -0
- package/dist/commonjs/components/InspectorHeader.js +329 -0
- package/dist/commonjs/components/InspectorTabBar.d.ts +16 -0
- package/dist/commonjs/components/InspectorTabBar.js +90 -0
- package/dist/commonjs/components/JsonViewer.d.ts +4 -1
- package/dist/commonjs/components/JsonViewer.js +110 -171
- package/dist/commonjs/components/LogCard.js +109 -86
- package/dist/commonjs/components/MetaAccordion.d.ts +1 -10
- package/dist/commonjs/components/MetaAccordion.js +23 -21
- package/dist/commonjs/components/NavigationTracker.d.ts +7 -0
- package/dist/commonjs/components/NavigationTracker.js +76 -0
- package/dist/commonjs/components/NetworkIcons.d.ts +6 -0
- package/dist/commonjs/components/NetworkIcons.js +54 -8
- package/dist/commonjs/components/ReduxTabView.d.ts +9 -0
- package/dist/commonjs/components/ReduxTabView.js +56 -0
- package/dist/commonjs/components/ReduxTreeView.js +241 -200
- package/dist/commonjs/components/SegmentedTabs.d.ts +15 -0
- package/dist/commonjs/components/SegmentedTabs.js +52 -0
- package/dist/commonjs/components/SettingsView.d.ts +13 -0
- package/dist/commonjs/components/SettingsView.js +328 -0
- package/dist/commonjs/components/TouchableScale.d.ts +2 -2
- package/dist/commonjs/components/TouchableScale.js +2 -2
- package/dist/commonjs/components/TreeNode.js +2 -2
- package/dist/commonjs/constants/index.js +1 -12
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/analyticsLogger.d.ts +8 -0
- package/dist/commonjs/customHooks/analyticsLogger.js +42 -1
- package/dist/commonjs/customHooks/consoleLogger.js +137 -13
- package/dist/commonjs/customHooks/networkLogger.d.ts +0 -1
- package/dist/commonjs/customHooks/networkLogger.js +0 -1
- package/dist/commonjs/customHooks/reduxLogger.d.ts +2 -9
- package/dist/commonjs/enums/index.d.ts +39 -0
- package/dist/commonjs/enums/index.js +50 -0
- package/dist/commonjs/helpers/index.d.ts +27 -1
- package/dist/commonjs/helpers/index.js +187 -12
- package/dist/commonjs/helpers/settingsStore.d.ts +2 -24
- package/dist/commonjs/i18n/en.json +144 -0
- package/dist/commonjs/i18n/index.d.ts +2 -0
- package/dist/commonjs/i18n/index.js +27 -0
- package/dist/commonjs/i18n/locales/en.json +314 -0
- package/dist/commonjs/index.d.ts +2 -3
- package/dist/commonjs/index.js +207 -4927
- package/dist/commonjs/styles/AppColors.d.ts +148 -0
- package/dist/commonjs/styles/AppColors.js +176 -0
- package/dist/commonjs/styles/common.d.ts +3 -0
- package/dist/commonjs/styles/common.js +201 -0
- package/dist/commonjs/styles/index.d.ts +219 -435
- package/dist/commonjs/styles/index.js +312 -488
- package/dist/commonjs/types/enums.d.ts +9 -0
- package/dist/commonjs/types/enums.js +4 -0
- package/dist/commonjs/types/index.d.ts +4 -111
- package/dist/commonjs/types/index.js +16 -0
- package/dist/commonjs/types/interfaces.d.ts +337 -0
- package/dist/commonjs/types/interfaces.js +2 -0
- package/dist/esm/assets/svgAssets.d.ts +3 -0
- package/dist/esm/assets/svgAssets.js +14 -0
- package/dist/esm/components/AnalyticsEventCard.d.ts +1 -14
- package/dist/esm/components/AnalyticsEventCard.js +118 -48
- package/dist/esm/components/AnalyticsGraph.d.ts +2 -6
- package/dist/esm/components/AnalyticsGraph.js +8 -8
- package/dist/esm/components/AnalyticsTabView.d.ts +15 -0
- package/dist/esm/components/AnalyticsTabView.js +151 -0
- package/dist/esm/components/AnimatedEntrance.d.ts +1 -1
- package/dist/esm/components/AnimatedEntrance.js +2 -2
- package/dist/esm/components/ApiDetailView.d.ts +22 -0
- package/dist/esm/components/ApiDetailView.js +264 -0
- package/dist/esm/components/ApisTabView.d.ts +33 -0
- package/dist/esm/components/ApisTabView.js +196 -0
- package/dist/esm/components/CodeSnippet.d.ts +1 -5
- package/dist/esm/components/CodeSnippet.js +34 -34
- package/dist/esm/components/ConsoleLogCard.d.ts +1 -8
- package/dist/esm/components/ConsoleLogCard.js +262 -409
- package/dist/esm/components/ConsoleLogDetailView.d.ts +9 -0
- package/dist/esm/components/ConsoleLogDetailView.js +271 -0
- package/dist/esm/components/ConsoleLogsTabView.d.ts +24 -0
- package/dist/esm/components/ConsoleLogsTabView.js +348 -0
- package/dist/esm/components/DiffViewer.js +4 -2
- package/dist/esm/components/DomainHeader.js +66 -41
- package/dist/esm/components/EmptyState.d.ts +2 -2
- package/dist/esm/components/EmptyState.js +2 -2
- package/dist/esm/components/EndOfListFooter.d.ts +8 -0
- package/dist/esm/components/EndOfListFooter.js +83 -0
- package/dist/esm/components/ErrorBoundary.d.ts +5 -14
- package/dist/esm/components/ErrorBoundary.js +29 -29
- package/dist/esm/components/FloatingBubble.d.ts +14 -0
- package/dist/esm/components/FloatingBubble.js +68 -0
- package/dist/esm/components/HeadersSection.js +5 -3
- package/dist/esm/components/HighlightText.d.ts +1 -1
- package/dist/esm/components/HighlightText.js +5 -7
- package/dist/esm/components/Inspector/AnalyticsTab.d.ts +3 -0
- package/dist/esm/components/Inspector/AnalyticsTab.js +194 -0
- package/dist/esm/components/Inspector/ConsoleTab.d.ts +3 -0
- package/dist/esm/components/Inspector/ConsoleTab.js +372 -0
- package/dist/esm/components/Inspector/FabLauncher.d.ts +3 -0
- package/dist/esm/components/Inspector/FabLauncher.js +49 -0
- package/dist/esm/components/Inspector/InsightsDashboard.d.ts +3 -0
- package/dist/esm/components/Inspector/InsightsDashboard.js +614 -0
- package/dist/esm/components/Inspector/InspectorContext.d.ts +5 -0
- package/dist/esm/components/Inspector/InspectorContext.js +13 -0
- package/dist/esm/components/Inspector/InspectorHeader.d.ts +3 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +447 -0
- package/dist/esm/components/Inspector/LogDetail.d.ts +3 -0
- package/dist/esm/components/Inspector/LogDetail.js +925 -0
- package/dist/esm/components/Inspector/MainScreen.d.ts +3 -0
- package/dist/esm/components/Inspector/MainScreen.js +63 -0
- package/dist/esm/components/Inspector/NavigationTracker.d.ts +3 -0
- package/dist/esm/components/Inspector/NavigationTracker.js +10 -0
- package/dist/esm/components/Inspector/NetworkDetail.d.ts +3 -0
- package/dist/esm/components/Inspector/NetworkDetail.js +367 -0
- package/dist/esm/components/Inspector/NetworkTab.d.ts +3 -0
- package/dist/esm/components/Inspector/NetworkTab.js +243 -0
- package/dist/esm/components/Inspector/ReduxTab.d.ts +3 -0
- package/dist/esm/components/Inspector/ReduxTab.js +70 -0
- package/dist/esm/components/Inspector/SettingsPanel.d.ts +3 -0
- package/dist/esm/components/Inspector/SettingsPanel.js +1438 -0
- package/dist/esm/components/Inspector/TabBar.d.ts +3 -0
- package/dist/esm/components/Inspector/TabBar.js +90 -0
- package/dist/esm/components/Inspector/WebViewTab.d.ts +3 -0
- package/dist/esm/components/Inspector/WebViewTab.js +752 -0
- package/dist/esm/components/InspectorHeader.d.ts +19 -0
- package/dist/esm/components/InspectorHeader.js +323 -0
- package/dist/esm/components/InspectorTabBar.d.ts +16 -0
- package/dist/esm/components/InspectorTabBar.js +84 -0
- package/dist/esm/components/JsonViewer.d.ts +4 -1
- package/dist/esm/components/JsonViewer.js +111 -172
- package/dist/esm/components/LogCard.js +111 -88
- package/dist/esm/components/MetaAccordion.d.ts +1 -10
- package/dist/esm/components/MetaAccordion.js +23 -21
- package/dist/esm/components/NavigationTracker.d.ts +7 -0
- package/dist/esm/components/NavigationTracker.js +39 -0
- package/dist/esm/components/NetworkIcons.d.ts +6 -0
- package/dist/esm/components/NetworkIcons.js +46 -6
- package/dist/esm/components/ReduxTabView.d.ts +9 -0
- package/dist/esm/components/ReduxTabView.js +50 -0
- package/dist/esm/components/ReduxTreeView.js +243 -202
- package/dist/esm/components/SegmentedTabs.d.ts +15 -0
- package/dist/esm/components/SegmentedTabs.js +47 -0
- package/dist/esm/components/SettingsView.d.ts +13 -0
- package/dist/esm/components/SettingsView.js +321 -0
- package/dist/esm/components/TouchableScale.d.ts +2 -2
- package/dist/esm/components/TouchableScale.js +2 -2
- package/dist/esm/components/TreeNode.js +2 -2
- package/dist/esm/constants/index.js +1 -12
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/analyticsLogger.d.ts +8 -0
- package/dist/esm/customHooks/analyticsLogger.js +37 -0
- package/dist/esm/customHooks/consoleLogger.js +137 -13
- package/dist/esm/customHooks/networkLogger.d.ts +0 -1
- package/dist/esm/customHooks/networkLogger.js +0 -1
- package/dist/esm/customHooks/reduxLogger.d.ts +2 -9
- package/dist/esm/enums/index.d.ts +39 -0
- package/dist/esm/enums/index.js +47 -0
- package/dist/esm/helpers/index.d.ts +27 -1
- package/dist/esm/helpers/index.js +180 -11
- package/dist/esm/helpers/settingsStore.d.ts +2 -24
- package/dist/esm/i18n/en.json +144 -0
- package/dist/esm/i18n/index.d.ts +2 -0
- package/dist/esm/i18n/index.js +22 -0
- package/dist/esm/i18n/locales/en.json +314 -0
- package/dist/esm/index.d.ts +2 -3
- package/dist/esm/index.js +207 -4923
- package/dist/esm/styles/AppColors.d.ts +148 -0
- package/dist/esm/styles/AppColors.js +176 -0
- package/dist/esm/styles/common.d.ts +3 -0
- package/dist/esm/styles/common.js +197 -0
- package/dist/esm/styles/index.d.ts +219 -435
- package/dist/esm/styles/index.js +312 -488
- package/dist/esm/types/enums.d.ts +9 -0
- package/dist/esm/types/enums.js +3 -0
- package/dist/esm/types/index.d.ts +4 -111
- package/dist/esm/types/index.js +2 -1
- package/dist/esm/types/interfaces.d.ts +337 -0
- package/dist/esm/types/interfaces.js +1 -0
- package/example/App.tsx +88 -1
- package/example/android/app/build.gradle +29 -1
- package/example/android/app/src/main/java/com/example/MainApplication.kt +25 -0
- package/example/android/build.gradle +31 -4
- package/example/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/example/android/gradle.properties +1 -0
- package/example/android/settings.gradle +20 -1
- package/example/package-lock.json +1 -1
- package/package.json +3 -1
|
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.addAxiosInterceptors = exports.setupNetworkLogger = exports.getNetworkLogs = exports.clearNetworkLogs = exports.subscribeNetworkLogs = void 0;
|
|
7
|
-
require("./webViewLogger");
|
|
8
7
|
const axios_1 = __importDefault(require("axios"));
|
|
9
8
|
let logs = [];
|
|
10
9
|
let listeners = [];
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: string;
|
|
4
|
-
payload: any;
|
|
5
|
-
timestamp: string;
|
|
6
|
-
affectedSlices: string[];
|
|
7
|
-
prevState?: any;
|
|
8
|
-
nextState?: any;
|
|
9
|
-
}
|
|
1
|
+
import { ReduxHistoryEntry } from '../types';
|
|
2
|
+
export { ReduxHistoryEntry };
|
|
10
3
|
export declare const getReduxState: () => any;
|
|
11
4
|
export declare const setReduxAutoRefresh: (val: boolean) => void;
|
|
12
5
|
export declare const getReduxAutoRefresh: () => boolean;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare enum InspectorTab {
|
|
2
|
+
APIs = "apis",
|
|
3
|
+
Logs = "logs",
|
|
4
|
+
Analytics = "analytics",
|
|
5
|
+
Redux = "redux"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ApiDetailTab {
|
|
8
|
+
Response = "response",
|
|
9
|
+
Request = "request",
|
|
10
|
+
Headers = "headers",
|
|
11
|
+
Metadata = "metadata"
|
|
12
|
+
}
|
|
13
|
+
export declare enum JsonViewerMode {
|
|
14
|
+
Pretty = "pretty",
|
|
15
|
+
Raw = "raw",
|
|
16
|
+
Table = "table"
|
|
17
|
+
}
|
|
18
|
+
export declare enum ReduxSubTab {
|
|
19
|
+
State = "state",
|
|
20
|
+
Timeline = "timeline"
|
|
21
|
+
}
|
|
22
|
+
export declare enum ReduxActionSubTab {
|
|
23
|
+
Payload = "payload",
|
|
24
|
+
Diff = "diff",
|
|
25
|
+
State = "state"
|
|
26
|
+
}
|
|
27
|
+
export declare enum ConsoleLogLevel {
|
|
28
|
+
Info = "info",
|
|
29
|
+
Warn = "warn",
|
|
30
|
+
Error = "error"
|
|
31
|
+
}
|
|
32
|
+
export declare enum SortOrderEnum {
|
|
33
|
+
Newest = "newest",
|
|
34
|
+
Oldest = "oldest"
|
|
35
|
+
}
|
|
36
|
+
export declare enum AnalyticsSource {
|
|
37
|
+
Firebase = "firebase",
|
|
38
|
+
Manual = "manual"
|
|
39
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnalyticsSource = exports.SortOrderEnum = exports.ConsoleLogLevel = exports.ReduxActionSubTab = exports.ReduxSubTab = exports.JsonViewerMode = exports.ApiDetailTab = exports.InspectorTab = void 0;
|
|
4
|
+
var InspectorTab;
|
|
5
|
+
(function (InspectorTab) {
|
|
6
|
+
InspectorTab["APIs"] = "apis";
|
|
7
|
+
InspectorTab["Logs"] = "logs";
|
|
8
|
+
InspectorTab["Analytics"] = "analytics";
|
|
9
|
+
InspectorTab["Redux"] = "redux";
|
|
10
|
+
})(InspectorTab || (exports.InspectorTab = InspectorTab = {}));
|
|
11
|
+
var ApiDetailTab;
|
|
12
|
+
(function (ApiDetailTab) {
|
|
13
|
+
ApiDetailTab["Response"] = "response";
|
|
14
|
+
ApiDetailTab["Request"] = "request";
|
|
15
|
+
ApiDetailTab["Headers"] = "headers";
|
|
16
|
+
ApiDetailTab["Metadata"] = "metadata";
|
|
17
|
+
})(ApiDetailTab || (exports.ApiDetailTab = ApiDetailTab = {}));
|
|
18
|
+
var JsonViewerMode;
|
|
19
|
+
(function (JsonViewerMode) {
|
|
20
|
+
JsonViewerMode["Pretty"] = "pretty";
|
|
21
|
+
JsonViewerMode["Raw"] = "raw";
|
|
22
|
+
JsonViewerMode["Table"] = "table";
|
|
23
|
+
})(JsonViewerMode || (exports.JsonViewerMode = JsonViewerMode = {}));
|
|
24
|
+
var ReduxSubTab;
|
|
25
|
+
(function (ReduxSubTab) {
|
|
26
|
+
ReduxSubTab["State"] = "state";
|
|
27
|
+
ReduxSubTab["Timeline"] = "timeline";
|
|
28
|
+
})(ReduxSubTab || (exports.ReduxSubTab = ReduxSubTab = {}));
|
|
29
|
+
var ReduxActionSubTab;
|
|
30
|
+
(function (ReduxActionSubTab) {
|
|
31
|
+
ReduxActionSubTab["Payload"] = "payload";
|
|
32
|
+
ReduxActionSubTab["Diff"] = "diff";
|
|
33
|
+
ReduxActionSubTab["State"] = "state";
|
|
34
|
+
})(ReduxActionSubTab || (exports.ReduxActionSubTab = ReduxActionSubTab = {}));
|
|
35
|
+
var ConsoleLogLevel;
|
|
36
|
+
(function (ConsoleLogLevel) {
|
|
37
|
+
ConsoleLogLevel["Info"] = "info";
|
|
38
|
+
ConsoleLogLevel["Warn"] = "warn";
|
|
39
|
+
ConsoleLogLevel["Error"] = "error";
|
|
40
|
+
})(ConsoleLogLevel || (exports.ConsoleLogLevel = ConsoleLogLevel = {}));
|
|
41
|
+
var SortOrderEnum;
|
|
42
|
+
(function (SortOrderEnum) {
|
|
43
|
+
SortOrderEnum["Newest"] = "newest";
|
|
44
|
+
SortOrderEnum["Oldest"] = "oldest";
|
|
45
|
+
})(SortOrderEnum || (exports.SortOrderEnum = SortOrderEnum = {}));
|
|
46
|
+
var AnalyticsSource;
|
|
47
|
+
(function (AnalyticsSource) {
|
|
48
|
+
AnalyticsSource["Firebase"] = "firebase";
|
|
49
|
+
AnalyticsSource["Manual"] = "manual";
|
|
50
|
+
})(AnalyticsSource || (exports.AnalyticsSource = AnalyticsSource = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NetworkLog, RouteInfo, DiffResult } from '../types';
|
|
1
|
+
import { NetworkLog, RouteInfo, DiffResult, JsonContent } from '../types';
|
|
2
2
|
export declare const getDomainColor: (domain: string) => string;
|
|
3
3
|
export declare const formatDateTime: (timestamp: number) => string;
|
|
4
4
|
export declare const getStatusColor: (status: number | null) => string;
|
|
@@ -22,3 +22,29 @@ export declare const formatDateTimeToAnalytics: (ts: number) => string;
|
|
|
22
22
|
export declare const getBundleIdentifier: () => string;
|
|
23
23
|
export declare const getAppName: () => string;
|
|
24
24
|
export declare const handleOpenExternalLink: (url: string) => void;
|
|
25
|
+
/** Formats a timestamp as HH:MM:SS (no milliseconds). */
|
|
26
|
+
export declare const formatTimeShort: (ts: number) => string;
|
|
27
|
+
/** Formats a timestamp as HH:MM:SS.mmm (with milliseconds). */
|
|
28
|
+
export declare const formatTime: (ts: number) => string;
|
|
29
|
+
/** Formats a relative gap like "+2s" / "+1m 5s" / "+350ms". */
|
|
30
|
+
export declare const formatGap: (ms: number) => string;
|
|
31
|
+
/** Finds the first JSON object/array embedded anywhere in a log message. */
|
|
32
|
+
export declare const getJsonContent: (message: string) => JsonContent | null;
|
|
33
|
+
/** Pretty-prints JSON data showing 3-4 lines with trailing "..." */
|
|
34
|
+
export declare const getJsonPreviewText: (data: any, maxLines?: number) => {
|
|
35
|
+
text: string;
|
|
36
|
+
hasMore: boolean;
|
|
37
|
+
};
|
|
38
|
+
export interface ParsedStackFrame {
|
|
39
|
+
raw: string;
|
|
40
|
+
functionName: string;
|
|
41
|
+
fileName: string;
|
|
42
|
+
fullPath: string;
|
|
43
|
+
fileExt?: 'tsx' | 'jsx' | 'ts' | 'js' | 'other';
|
|
44
|
+
isUserCode?: boolean;
|
|
45
|
+
lineNumber?: string;
|
|
46
|
+
columnNumber?: string;
|
|
47
|
+
isOrigin?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** Parses a stack trace line to extract function name, file name, extension (.tsx/.jsx/.ts), line, and column numbers */
|
|
50
|
+
export declare const parseStackLine: (rawLine: string, isOrigin?: boolean) => ParsedStackFrame;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.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,10 +60,52 @@ const getSize = (data) => {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
exports.getSize = getSize;
|
|
63
|
+
// Try loading community clipboard or native clipboard modules with graceful fallbacks
|
|
64
|
+
const getClipboardModule = () => {
|
|
65
|
+
try {
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
const community = require('@react-native-clipboard/clipboard');
|
|
68
|
+
if (community?.default?.setString)
|
|
69
|
+
return community.default;
|
|
70
|
+
if (community?.setString)
|
|
71
|
+
return community;
|
|
72
|
+
}
|
|
73
|
+
catch { }
|
|
74
|
+
try {
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
const oldCommunity = require('@react-native-community/clipboard');
|
|
77
|
+
if (oldCommunity?.default?.setString)
|
|
78
|
+
return oldCommunity.default;
|
|
79
|
+
if (oldCommunity?.setString)
|
|
80
|
+
return oldCommunity;
|
|
81
|
+
}
|
|
82
|
+
catch { }
|
|
83
|
+
try {
|
|
84
|
+
if (react_native_1.NativeModules?.RNCClipboard?.setString)
|
|
85
|
+
return react_native_1.NativeModules.RNCClipboard;
|
|
86
|
+
}
|
|
87
|
+
catch { }
|
|
88
|
+
return react_native_1.Clipboard;
|
|
89
|
+
};
|
|
63
90
|
const copyToClipboard = (value, label) => {
|
|
64
91
|
const resolved = typeof value === 'function' ? value() : value;
|
|
65
92
|
const text = typeof resolved === 'string' ? resolved : JSON.stringify(resolved, null, 2);
|
|
66
|
-
|
|
93
|
+
const textToCopy = text ?? '';
|
|
94
|
+
try {
|
|
95
|
+
const cb = getClipboardModule();
|
|
96
|
+
if (cb && typeof cb.setString === 'function') {
|
|
97
|
+
cb.setString(textToCopy);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
react_native_1.Clipboard.setString(textToCopy);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
catch {
|
|
104
|
+
try {
|
|
105
|
+
react_native_1.Clipboard.setString(textToCopy);
|
|
106
|
+
}
|
|
107
|
+
catch { }
|
|
108
|
+
}
|
|
67
109
|
if (react_native_1.Platform.OS === 'android') {
|
|
68
110
|
react_native_1.ToastAndroid.show(`${label} copied`, react_native_1.ToastAndroid.SHORT);
|
|
69
111
|
}
|
|
@@ -286,14 +328,7 @@ const getAppName = () => {
|
|
|
286
328
|
// Try iOS via PlatformConstants
|
|
287
329
|
const constants = react_native_1.NativeModules.PlatformConstants;
|
|
288
330
|
if (constants && typeof constants.interfaceIdiom === 'string') {
|
|
289
|
-
//
|
|
290
|
-
const SettingsManager = react_native_1.NativeModules.SettingsManager;
|
|
291
|
-
if (SettingsManager && SettingsManager.settings) {
|
|
292
|
-
const appName = SettingsManager.settings.AppleLocale
|
|
293
|
-
? undefined
|
|
294
|
-
: undefined;
|
|
295
|
-
// Fallback: try to parse from SourceCode
|
|
296
|
-
}
|
|
331
|
+
// Fallback: try to parse from SourceCode
|
|
297
332
|
}
|
|
298
333
|
// Try react-native-device-info
|
|
299
334
|
const RNDeviceInfo = react_native_1.NativeModules.RNDeviceInfo;
|
|
@@ -330,14 +365,154 @@ exports.getAppName = getAppName;
|
|
|
330
365
|
const handleOpenExternalLink = (url) => {
|
|
331
366
|
if (!url)
|
|
332
367
|
return;
|
|
333
|
-
|
|
368
|
+
const openUrl = (0, exports.formatDisplayUrl)(url);
|
|
369
|
+
react_native_1.Alert.alert('Open Link', `Do you want to open this link in your web browser?\n\n${openUrl}`, [
|
|
334
370
|
{ text: 'Cancel', style: 'cancel' },
|
|
335
371
|
{
|
|
336
372
|
text: 'Open',
|
|
337
373
|
onPress: () => {
|
|
338
|
-
react_native_1.Linking.openURL(
|
|
374
|
+
react_native_1.Linking.openURL(openUrl).catch(() => { });
|
|
339
375
|
},
|
|
340
376
|
},
|
|
341
377
|
]);
|
|
342
378
|
};
|
|
343
379
|
exports.handleOpenExternalLink = handleOpenExternalLink;
|
|
380
|
+
/** Formats a timestamp as HH:MM:SS (no milliseconds). */
|
|
381
|
+
const formatTimeShort = (ts) => {
|
|
382
|
+
const d = new Date(ts);
|
|
383
|
+
const hh = String(d.getHours()).padStart(2, '0');
|
|
384
|
+
const mm = String(d.getMinutes()).padStart(2, '0');
|
|
385
|
+
const ss = String(d.getSeconds()).padStart(2, '0');
|
|
386
|
+
return `${hh}:${mm}:${ss}`;
|
|
387
|
+
};
|
|
388
|
+
exports.formatTimeShort = formatTimeShort;
|
|
389
|
+
/** Formats a timestamp as HH:MM:SS.mmm (with milliseconds). */
|
|
390
|
+
const formatTime = (ts) => {
|
|
391
|
+
const d = new Date(ts);
|
|
392
|
+
const hh = String(d.getHours()).padStart(2, '0');
|
|
393
|
+
const mm = String(d.getMinutes()).padStart(2, '0');
|
|
394
|
+
const ss = String(d.getSeconds()).padStart(2, '0');
|
|
395
|
+
const ms = String(d.getMilliseconds()).padStart(3, '0');
|
|
396
|
+
return `${hh}:${mm}:${ss}.${ms}`;
|
|
397
|
+
};
|
|
398
|
+
exports.formatTime = formatTime;
|
|
399
|
+
/** Formats a relative gap like "+2s" / "+1m 5s" / "+350ms". */
|
|
400
|
+
const formatGap = (ms) => {
|
|
401
|
+
if (ms < 1000)
|
|
402
|
+
return `+${ms}ms`;
|
|
403
|
+
const s = Math.round(ms / 1000);
|
|
404
|
+
if (s < 60)
|
|
405
|
+
return `+${s}s`;
|
|
406
|
+
const m = Math.floor(s / 60);
|
|
407
|
+
const rem = s % 60;
|
|
408
|
+
return rem > 0 ? `+${m}m ${rem}s` : `+${m}m`;
|
|
409
|
+
};
|
|
410
|
+
exports.formatGap = formatGap;
|
|
411
|
+
/** Finds the first JSON object/array embedded anywhere in a log message. */
|
|
412
|
+
const getJsonContent = (message) => {
|
|
413
|
+
if (!message)
|
|
414
|
+
return null;
|
|
415
|
+
const indices = [];
|
|
416
|
+
for (let i = 0; i < message.length; i++) {
|
|
417
|
+
if (message[i] === '{' || message[i] === '[') {
|
|
418
|
+
indices.push(i);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
for (const index of indices) {
|
|
422
|
+
const candidate = message.substring(index).trim();
|
|
423
|
+
try {
|
|
424
|
+
const parsed = JSON.parse(candidate);
|
|
425
|
+
if (parsed !== null && typeof parsed === 'object') {
|
|
426
|
+
const header = message.substring(0, index).trim();
|
|
427
|
+
return { header, data: parsed };
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
catch (e) {
|
|
431
|
+
// Ignore
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
return null;
|
|
435
|
+
};
|
|
436
|
+
exports.getJsonContent = getJsonContent;
|
|
437
|
+
/** Pretty-prints JSON data showing 3-4 lines with trailing "..." */
|
|
438
|
+
const getJsonPreviewText = (data, maxLines = 4) => {
|
|
439
|
+
try {
|
|
440
|
+
const formatted = JSON.stringify(data, null, 2);
|
|
441
|
+
const lines = formatted.split('\n');
|
|
442
|
+
if (lines.length > maxLines) {
|
|
443
|
+
return {
|
|
444
|
+
text: lines.slice(0, maxLines).join('\n') + '\n...',
|
|
445
|
+
hasMore: true,
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
return {
|
|
449
|
+
text: formatted,
|
|
450
|
+
hasMore: false,
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
catch (e) {
|
|
454
|
+
return {
|
|
455
|
+
text: String(data),
|
|
456
|
+
hasMore: false,
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
exports.getJsonPreviewText = getJsonPreviewText;
|
|
461
|
+
/** Parses a stack trace line to extract function name, file name, extension (.tsx/.jsx/.ts), line, and column numbers */
|
|
462
|
+
const parseStackLine = (rawLine, isOrigin = false) => {
|
|
463
|
+
let line = rawLine.trim().replace(/^at /, '');
|
|
464
|
+
// Format: func@file:line:col (JSC / Hermes format)
|
|
465
|
+
if (line.includes('@')) {
|
|
466
|
+
const atIndex = line.indexOf('@');
|
|
467
|
+
const funcPart = line.substring(0, atIndex).trim();
|
|
468
|
+
const pathPart = line.substring(atIndex + 1).trim();
|
|
469
|
+
line = funcPart ? `${funcPart} (${pathPart})` : pathPart;
|
|
470
|
+
}
|
|
471
|
+
// Check for "func (path:line:col)" or "path:line:col"
|
|
472
|
+
const parenMatch = line.match(/^(.*?)\s*\((.*?)\)$/);
|
|
473
|
+
let functionName = '<anonymous>';
|
|
474
|
+
let locationPart = line;
|
|
475
|
+
if (parenMatch) {
|
|
476
|
+
functionName = parenMatch[1].trim() || '<anonymous>';
|
|
477
|
+
locationPart = parenMatch[2].trim();
|
|
478
|
+
}
|
|
479
|
+
// Remove "address at " prefix if present in Hermes
|
|
480
|
+
locationPart = locationPart.replace(/^address at /, '');
|
|
481
|
+
// Extract file, line, and col from locationPart (e.g. "path/to/file.tsx:42:15" or "http://...:42:15")
|
|
482
|
+
const locMatch = locationPart.match(/^(.*?):(\d+):(\d+)$/);
|
|
483
|
+
let fullPath = locationPart;
|
|
484
|
+
let lineNumber;
|
|
485
|
+
let columnNumber;
|
|
486
|
+
if (locMatch) {
|
|
487
|
+
fullPath = locMatch[1];
|
|
488
|
+
lineNumber = locMatch[2];
|
|
489
|
+
columnNumber = locMatch[3];
|
|
490
|
+
}
|
|
491
|
+
// Clean file name (remove query strings, packager urls, and parent paths)
|
|
492
|
+
let cleanPath = fullPath.split('?')[0].split('&')[0].replace(/[)]+$/, '');
|
|
493
|
+
// Remove protocol prefixes
|
|
494
|
+
cleanPath = cleanPath.replace(/^(?:https?:\/\/[^\/]+\/|file:\/\/\/|webpack:\/\/\/?)/, '');
|
|
495
|
+
const fileName = cleanPath.split('/').pop() || cleanPath;
|
|
496
|
+
// Determine file extension (.tsx, .jsx, .ts, .js)
|
|
497
|
+
const extMatch = fileName.match(/\.([a-z0-9]+)$/i);
|
|
498
|
+
const ext = extMatch ? extMatch[1].toLowerCase() : '';
|
|
499
|
+
const fileExt = ext === 'tsx' || ext === 'jsx' || ext === 'ts' || ext === 'js'
|
|
500
|
+
? ext
|
|
501
|
+
: 'other';
|
|
502
|
+
const isUserCode = !cleanPath.includes('node_modules') &&
|
|
503
|
+
!cleanPath.includes('react-native/') &&
|
|
504
|
+
!cleanPath.includes('react-native-inapp-inspector') &&
|
|
505
|
+
(fileExt === 'tsx' || fileExt === 'jsx' || fileExt === 'ts' || fileExt === 'js');
|
|
506
|
+
return {
|
|
507
|
+
raw: rawLine,
|
|
508
|
+
functionName,
|
|
509
|
+
fileName,
|
|
510
|
+
fullPath: cleanPath,
|
|
511
|
+
fileExt,
|
|
512
|
+
isUserCode,
|
|
513
|
+
lineNumber,
|
|
514
|
+
columnNumber,
|
|
515
|
+
isOrigin,
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
exports.parseStackLine = parseStackLine;
|
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
setItem: (key: string, value: string) => void | Promise<void>;
|
|
4
|
-
}
|
|
1
|
+
import { InspectorStorage, PersistedSettings } from '../types';
|
|
2
|
+
export { InspectorStorage, PersistedSettings };
|
|
5
3
|
export declare function setCustomStorage(storage: InspectorStorage | null): void;
|
|
6
|
-
export interface PersistedSettings {
|
|
7
|
-
isDark?: boolean;
|
|
8
|
-
modalHeightPercent?: number;
|
|
9
|
-
modalAnimationType?: string;
|
|
10
|
-
tabVisibility?: Record<string, boolean>;
|
|
11
|
-
defaultTab?: string;
|
|
12
|
-
maxNetworkLogs?: number;
|
|
13
|
-
maxConsoleLogs?: number;
|
|
14
|
-
showConsoleLevels?: {
|
|
15
|
-
info: boolean;
|
|
16
|
-
warn: boolean;
|
|
17
|
-
error: boolean;
|
|
18
|
-
};
|
|
19
|
-
webViewCaptureCssJs?: boolean;
|
|
20
|
-
reduxAutoRefresh?: boolean;
|
|
21
|
-
reduxExpandDepth?: number;
|
|
22
|
-
slowRequestThreshold?: number;
|
|
23
|
-
insightsShowConsoleAlerts?: boolean;
|
|
24
|
-
showDuplicateLogs?: boolean;
|
|
25
|
-
}
|
|
26
4
|
export declare function loadSettings(): Promise<PersistedSettings>;
|
|
27
5
|
export declare function saveSettings(settings: PersistedSettings): void;
|
|
28
6
|
export declare function clearPersistedSettings(): Promise<void>;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"header": {
|
|
3
|
+
"title": "InApp Inspector",
|
|
4
|
+
"clear_all": "Clear Everything",
|
|
5
|
+
"clear_all_confirm": "This clears all tabs — APIs, Logs, Analytics, WebView and Redux timeline. Continue?",
|
|
6
|
+
"cancel": "Cancel",
|
|
7
|
+
"clear": "Clear All",
|
|
8
|
+
"engine": "Engine: React Native"
|
|
9
|
+
},
|
|
10
|
+
"tabs": {
|
|
11
|
+
"apis": "APIs",
|
|
12
|
+
"logs": "Logs",
|
|
13
|
+
"analytics": "Analytics",
|
|
14
|
+
"redux": "Redux"
|
|
15
|
+
},
|
|
16
|
+
"search": {
|
|
17
|
+
"apis_placeholder": "Search by URL, method, or status...",
|
|
18
|
+
"logs_placeholder": "Search logs...",
|
|
19
|
+
"log_details_placeholder": "Search in log details...",
|
|
20
|
+
"analytics_placeholder": "Search events...",
|
|
21
|
+
"redux_placeholder": "Search Redux keys or values...",
|
|
22
|
+
"request_placeholder": "Search request...",
|
|
23
|
+
"response_placeholder": "Search response..."
|
|
24
|
+
},
|
|
25
|
+
"filters": {
|
|
26
|
+
"group_by_domain": "Group by Domain",
|
|
27
|
+
"all": "All",
|
|
28
|
+
"user_log": "User Log",
|
|
29
|
+
"info": "Info",
|
|
30
|
+
"warn": "Warn",
|
|
31
|
+
"error": "Error",
|
|
32
|
+
"analytics": "Analytics",
|
|
33
|
+
"showing_requests": "Showing ({{filtered}}/{{total}}) requests",
|
|
34
|
+
"showing_logs": "Showing ({{filtered}}/{{total}}) logs showing",
|
|
35
|
+
"filtering_logs": "Filtering with {{filters}} ({{filtered}}/{{total}}) logs is showing",
|
|
36
|
+
"showing_analytics": "Showing ({{filtered}}/{{total}}) analytics events"
|
|
37
|
+
},
|
|
38
|
+
"details": {
|
|
39
|
+
"console_log": "Console Log",
|
|
40
|
+
"caller_location": "CALLER LOCATION",
|
|
41
|
+
"log_payload": "LOG PAYLOAD",
|
|
42
|
+
"captured_at": "Captured at: ",
|
|
43
|
+
"chars": "chars",
|
|
44
|
+
"query_params": "Query Params",
|
|
45
|
+
"duration": "Duration",
|
|
46
|
+
"timestamp": "Timestamp",
|
|
47
|
+
"request_size": "Request Size",
|
|
48
|
+
"response_size": "Response Size",
|
|
49
|
+
"caller_stack": "Caller Stack",
|
|
50
|
+
"response_headers": "Response Headers",
|
|
51
|
+
"request_headers": "Request Headers",
|
|
52
|
+
"request_payload": "Request Payload",
|
|
53
|
+
"response": "Response",
|
|
54
|
+
"tab_response": "Response",
|
|
55
|
+
"tab_request": "Request",
|
|
56
|
+
"tab_headers": "Headers",
|
|
57
|
+
"tab_metadata": "Metadata",
|
|
58
|
+
"network_request": "Network Request",
|
|
59
|
+
"copy_all": "COPY ALL",
|
|
60
|
+
"general_info": "General Info",
|
|
61
|
+
"no_headers": "No Headers",
|
|
62
|
+
"no_payload": "No Payload",
|
|
63
|
+
"no_response": "No Response"
|
|
64
|
+
},
|
|
65
|
+
"analytics": {
|
|
66
|
+
"title": "Analytics Events",
|
|
67
|
+
"empty": "No analytics events recorded yet.",
|
|
68
|
+
"user_context": "User Context",
|
|
69
|
+
"id": "ID",
|
|
70
|
+
"show_props": "Show Props",
|
|
71
|
+
"hide_props": "Hide Props",
|
|
72
|
+
"event_details": "Event Details",
|
|
73
|
+
"event_name": "Event Name",
|
|
74
|
+
"timestamp": "Timestamp",
|
|
75
|
+
"parameters": "Parameters",
|
|
76
|
+
"no_parameters": "No Parameters"
|
|
77
|
+
},
|
|
78
|
+
"redux": {
|
|
79
|
+
"title": "Redux Store & History",
|
|
80
|
+
"search_label": "SEARCH REDUX STATE / ACTIONS",
|
|
81
|
+
"no_actions": "NO ACTIONS DISPATCHED YET",
|
|
82
|
+
"no_store_title": "No Redux Store",
|
|
83
|
+
"no_store_sub": "To inspect Redux store, call connectReduxStore(store) at app start.",
|
|
84
|
+
"empty_store_title": "Empty Store",
|
|
85
|
+
"empty_store_sub": "Connected store state is empty.",
|
|
86
|
+
"root_reducers": "Root State Reducers",
|
|
87
|
+
"slices": "slice(s)"
|
|
88
|
+
},
|
|
89
|
+
"settings": {
|
|
90
|
+
"title": "Inspector Settings",
|
|
91
|
+
"appearance": "APPEARANCE",
|
|
92
|
+
"dark_mode": "Dark Mode Theme",
|
|
93
|
+
"dark_mode_desc": "Switch between dark and light inspector theme",
|
|
94
|
+
"module_visibility": "MODULE VISIBILITY & TABS",
|
|
95
|
+
"apis_tab": "Network APIs Tab",
|
|
96
|
+
"apis_tab_desc": "Show or hide Network APIs monitoring tab",
|
|
97
|
+
"logs_tab": "Console Logs Tab",
|
|
98
|
+
"logs_tab_desc": "Show or hide Console Logs tab",
|
|
99
|
+
"analytics_tab": "Analytics Events Tab",
|
|
100
|
+
"analytics_tab_desc": "Show or hide Analytics Events tab",
|
|
101
|
+
"redux_tab": "Redux Timeline Tab",
|
|
102
|
+
"redux_tab_desc": "Show or hide Redux store state inspector tab",
|
|
103
|
+
"default_landing_tab": "DEFAULT LANDING TAB",
|
|
104
|
+
"storage_persistence": "STORAGE & PERSISTENCE",
|
|
105
|
+
"custom_storage": "Custom Storage Adapter",
|
|
106
|
+
"custom_storage_active": "Active (AsyncStorage / Custom Storage attached)",
|
|
107
|
+
"custom_storage_memory": "In-Memory only (No persistent storage attached)",
|
|
108
|
+
"reset_settings": "Reset Persisted Settings",
|
|
109
|
+
"reset_settings_desc": "Clear saved theme, tab visibility & preferences",
|
|
110
|
+
"reset_confirm_title": "Reset Settings",
|
|
111
|
+
"reset_confirm_msg": "Are you sure you want to reset all persisted preferences to default?",
|
|
112
|
+
"reset": "Reset",
|
|
113
|
+
"reset_done": "Settings reset to default."
|
|
114
|
+
},
|
|
115
|
+
"empty": {
|
|
116
|
+
"loading": "Loading logs...",
|
|
117
|
+
"no_matching_apis": "No matching APIs",
|
|
118
|
+
"no_network_activity": "No network activity",
|
|
119
|
+
"try_adjusting_filters": "Try adjusting your filters or search.",
|
|
120
|
+
"listening_api_calls": "Listening for incoming API calls...",
|
|
121
|
+
"reload_app": "Reload App",
|
|
122
|
+
"reload": "Reload",
|
|
123
|
+
"reload_dev_only": "App reload is typically only available in development mode."
|
|
124
|
+
},
|
|
125
|
+
"error": {
|
|
126
|
+
"native_crash": "🔴 NATIVE CRASH",
|
|
127
|
+
"js_crash": "🟡 JAVASCRIPT CRASH",
|
|
128
|
+
"crash_desc": "The In-App Inspector or active view encountered an error. Traceback details are parsed below:",
|
|
129
|
+
"method": "Method:",
|
|
130
|
+
"file": "File:",
|
|
131
|
+
"line": "Line:",
|
|
132
|
+
"col": "Col:",
|
|
133
|
+
"copy_traceback": "📋 Copy Crash Traceback",
|
|
134
|
+
"retry_reload": "Retry / Reload",
|
|
135
|
+
"close_inspector": "Close Inspector"
|
|
136
|
+
},
|
|
137
|
+
"json": {
|
|
138
|
+
"pretty_print": "Pretty Print",
|
|
139
|
+
"pretty": "Pretty",
|
|
140
|
+
"raw": "Raw",
|
|
141
|
+
"table": "Table",
|
|
142
|
+
"empty_object": "Empty Object"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const i18next_1 = __importDefault(require("i18next"));
|
|
7
|
+
const react_i18next_1 = require("react-i18next");
|
|
8
|
+
const en_json_1 = __importDefault(require("./locales/en.json"));
|
|
9
|
+
// Dedicated instance so the inspector never collides with the host app's own
|
|
10
|
+
// i18next setup (or with i18next instances created by other libraries).
|
|
11
|
+
const i18n = i18next_1.default.createInstance();
|
|
12
|
+
i18n.use(react_i18next_1.initReactI18next).init({
|
|
13
|
+
lng: 'en',
|
|
14
|
+
fallbackLng: 'en',
|
|
15
|
+
resources: {
|
|
16
|
+
en: {
|
|
17
|
+
translation: en_json_1.default,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
interpolation: {
|
|
21
|
+
escapeValue: false,
|
|
22
|
+
},
|
|
23
|
+
react: {
|
|
24
|
+
useSuspense: false,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
exports.default = i18n;
|