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,9 +1,156 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
export declare const ActiveTab: {
|
|
2
|
+
readonly Apis: "apis";
|
|
3
|
+
readonly Analytics: "analytics";
|
|
4
|
+
readonly Logs: "logs";
|
|
5
|
+
readonly Redux: "redux";
|
|
6
|
+
readonly Bundle: "bundle";
|
|
7
|
+
readonly Performance: "performance";
|
|
8
|
+
readonly Crash: "crash";
|
|
9
|
+
};
|
|
10
|
+
export type ActiveTab = (typeof ActiveTab)[keyof typeof ActiveTab];
|
|
11
|
+
export declare const Method: {
|
|
12
|
+
readonly All: "ALL";
|
|
13
|
+
readonly Get: "GET";
|
|
14
|
+
readonly Post: "POST";
|
|
15
|
+
readonly Put: "PUT";
|
|
16
|
+
readonly Patch: "PATCH";
|
|
17
|
+
readonly Delete: "DELETE";
|
|
18
|
+
};
|
|
19
|
+
export type Method = (typeof Method)[keyof typeof Method];
|
|
20
|
+
export declare const StatusFilter: {
|
|
21
|
+
readonly All: "ALL";
|
|
22
|
+
readonly TwoXx: "2xx";
|
|
23
|
+
readonly ThreeXx: "3xx";
|
|
24
|
+
readonly FourXx: "4xx";
|
|
25
|
+
readonly FiveXx: "5xx";
|
|
26
|
+
readonly Failed: "Failed";
|
|
27
|
+
};
|
|
28
|
+
export type StatusFilter = (typeof StatusFilter)[keyof typeof StatusFilter];
|
|
29
|
+
export declare const SortOrder: {
|
|
30
|
+
readonly Newest: "newest";
|
|
31
|
+
readonly Oldest: "oldest";
|
|
32
|
+
};
|
|
33
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
34
|
+
export declare const LocalFilter: {
|
|
35
|
+
readonly Success: "success";
|
|
36
|
+
readonly Failed: "failed";
|
|
37
|
+
readonly Loading: "loading";
|
|
38
|
+
};
|
|
39
|
+
export type LocalFilter = (typeof LocalFilter)[keyof typeof LocalFilter];
|
|
40
|
+
export declare const ModalAnimationType: {
|
|
41
|
+
readonly Slide: "slide";
|
|
42
|
+
readonly Fade: "fade";
|
|
43
|
+
readonly None: "none";
|
|
44
|
+
};
|
|
45
|
+
export type ModalAnimationType = (typeof ModalAnimationType)[keyof typeof ModalAnimationType];
|
|
46
|
+
export declare const SettingsPage: {
|
|
47
|
+
readonly Main: "main";
|
|
48
|
+
readonly Apis: "apis";
|
|
49
|
+
readonly Logs: "logs";
|
|
50
|
+
readonly Analytics: "analytics";
|
|
51
|
+
readonly Redux: "redux";
|
|
52
|
+
readonly Bundle: "bundle";
|
|
53
|
+
readonly Performance: "performance";
|
|
54
|
+
readonly Crash: "crash";
|
|
55
|
+
};
|
|
56
|
+
export type SettingsPage = (typeof SettingsPage)[keyof typeof SettingsPage] | null;
|
|
57
|
+
export declare const SettingsSubTab: {
|
|
58
|
+
readonly Module: "module";
|
|
59
|
+
readonly Ui: "ui";
|
|
60
|
+
};
|
|
61
|
+
export type SettingsSubTab = (typeof SettingsSubTab)[keyof typeof SettingsSubTab];
|
|
62
|
+
export declare const LogFilter: {
|
|
63
|
+
readonly All: "all";
|
|
64
|
+
readonly Info: "info";
|
|
65
|
+
readonly Warn: "warn";
|
|
66
|
+
readonly Error: "error";
|
|
67
|
+
readonly UserLog: "user-log";
|
|
68
|
+
readonly Analytics: "analytics";
|
|
69
|
+
};
|
|
70
|
+
export type LogFilter = (typeof LogFilter)[keyof typeof LogFilter];
|
|
71
|
+
export declare const ConsoleLogType: {
|
|
72
|
+
readonly Info: "info";
|
|
73
|
+
readonly Warn: "warn";
|
|
74
|
+
readonly Error: "error";
|
|
75
|
+
};
|
|
76
|
+
export type ConsoleLogType = (typeof ConsoleLogType)[keyof typeof ConsoleLogType];
|
|
77
|
+
export declare const AnalyticsEventSource: {
|
|
78
|
+
readonly Firebase: "firebase";
|
|
79
|
+
readonly Manual: "manual";
|
|
80
|
+
};
|
|
81
|
+
export type AnalyticsEventSource = (typeof AnalyticsEventSource)[keyof typeof AnalyticsEventSource];
|
|
82
|
+
export declare const GAEventCategory: {
|
|
83
|
+
readonly PageView: "page_view";
|
|
84
|
+
readonly Ecommerce: "ecommerce";
|
|
85
|
+
readonly System: "system";
|
|
86
|
+
readonly Custom: "custom";
|
|
87
|
+
};
|
|
88
|
+
export type GAEventCategory = (typeof GAEventCategory)[keyof typeof GAEventCategory];
|
|
89
|
+
export declare const StackFrameType: {
|
|
90
|
+
readonly App: "app";
|
|
91
|
+
readonly Dependency: "dependency";
|
|
92
|
+
readonly Runtime: "runtime";
|
|
93
|
+
readonly Native: "native";
|
|
94
|
+
};
|
|
95
|
+
export type StackFrameType = (typeof StackFrameType)[keyof typeof StackFrameType];
|
|
96
|
+
export declare const DiffResultType: {
|
|
97
|
+
readonly Added: "added";
|
|
98
|
+
readonly Removed: "removed";
|
|
99
|
+
readonly Changed: "changed";
|
|
100
|
+
};
|
|
101
|
+
export type DiffResultType = (typeof DiffResultType)[keyof typeof DiffResultType];
|
|
102
|
+
export declare const BundleSubTab: {
|
|
103
|
+
readonly Overview: "overview";
|
|
104
|
+
readonly Production: "production";
|
|
105
|
+
readonly Files: "files";
|
|
106
|
+
readonly Packages: "packages";
|
|
107
|
+
readonly Media: "media";
|
|
108
|
+
readonly Optimizer: "optimizer";
|
|
109
|
+
};
|
|
110
|
+
export type BundleSubTab = (typeof BundleSubTab)[keyof typeof BundleSubTab];
|
|
111
|
+
export declare const PerformanceSubTab: {
|
|
112
|
+
readonly Overview: "overview";
|
|
113
|
+
readonly Renders: "renders";
|
|
114
|
+
readonly Interactions: "interactions";
|
|
115
|
+
readonly Memory: "memory";
|
|
116
|
+
};
|
|
117
|
+
export type PerformanceSubTab = (typeof PerformanceSubTab)[keyof typeof PerformanceSubTab];
|
|
118
|
+
export declare const CrashType: {
|
|
119
|
+
readonly Native: "native";
|
|
120
|
+
readonly Js: "js";
|
|
121
|
+
readonly Promise: "promise";
|
|
122
|
+
readonly Render: "render";
|
|
123
|
+
readonly Custom: "custom";
|
|
124
|
+
};
|
|
125
|
+
export type CrashType = (typeof CrashType)[keyof typeof CrashType];
|
|
126
|
+
export declare const CrashExportFormat: {
|
|
127
|
+
readonly Text: "text";
|
|
128
|
+
readonly Markdown: "markdown";
|
|
129
|
+
readonly Json: "json";
|
|
130
|
+
};
|
|
131
|
+
export type CrashExportFormat = (typeof CrashExportFormat)[keyof typeof CrashExportFormat];
|
|
132
|
+
export declare const CrashDetailSubTab: {
|
|
133
|
+
readonly Stack: "stack";
|
|
134
|
+
readonly Diagnostics: "diagnostics";
|
|
135
|
+
readonly Breadcrumbs: "breadcrumbs";
|
|
136
|
+
readonly Raw: "raw";
|
|
137
|
+
};
|
|
138
|
+
export type CrashDetailSubTab = (typeof CrashDetailSubTab)[keyof typeof CrashDetailSubTab];
|
|
139
|
+
export declare const CrashFilterType: {
|
|
140
|
+
readonly All: "all";
|
|
141
|
+
readonly Fatal: "fatal";
|
|
142
|
+
readonly Js: "js";
|
|
143
|
+
readonly Promise: "promise";
|
|
144
|
+
readonly Render: "render";
|
|
145
|
+
readonly Native: "native";
|
|
146
|
+
};
|
|
147
|
+
export type CrashFilterType = (typeof CrashFilterType)[keyof typeof CrashFilterType];
|
|
148
|
+
export declare const BreadcrumbType: {
|
|
149
|
+
readonly Navigation: "navigation";
|
|
150
|
+
readonly Network: "network";
|
|
151
|
+
readonly Redux: "redux";
|
|
152
|
+
readonly Console: "console";
|
|
153
|
+
readonly User: "user";
|
|
154
|
+
readonly System: "system";
|
|
155
|
+
};
|
|
156
|
+
export type BreadcrumbType = (typeof BreadcrumbType)[keyof typeof BreadcrumbType];
|
|
@@ -1,4 +1,141 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// ───
|
|
3
|
-
//
|
|
2
|
+
// ─── Enums & Constants ─────────────────────────────────────────────────────────
|
|
3
|
+
// Universal TypeScript Enum Objects and Type Aliases.
|
|
4
|
+
// Allows both enum-style access (e.g. ActiveTab.Apis) and string literals ('apis').
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BreadcrumbType = exports.CrashFilterType = exports.CrashDetailSubTab = exports.CrashExportFormat = exports.CrashType = exports.PerformanceSubTab = exports.BundleSubTab = exports.DiffResultType = exports.StackFrameType = exports.GAEventCategory = exports.AnalyticsEventSource = exports.ConsoleLogType = exports.LogFilter = exports.SettingsSubTab = exports.SettingsPage = exports.ModalAnimationType = exports.LocalFilter = exports.SortOrder = exports.StatusFilter = exports.Method = exports.ActiveTab = void 0;
|
|
7
|
+
exports.ActiveTab = {
|
|
8
|
+
Apis: 'apis',
|
|
9
|
+
Analytics: 'analytics',
|
|
10
|
+
Logs: 'logs',
|
|
11
|
+
Redux: 'redux',
|
|
12
|
+
Bundle: 'bundle',
|
|
13
|
+
Performance: 'performance',
|
|
14
|
+
Crash: 'crash',
|
|
15
|
+
};
|
|
16
|
+
exports.Method = {
|
|
17
|
+
All: 'ALL',
|
|
18
|
+
Get: 'GET',
|
|
19
|
+
Post: 'POST',
|
|
20
|
+
Put: 'PUT',
|
|
21
|
+
Patch: 'PATCH',
|
|
22
|
+
Delete: 'DELETE',
|
|
23
|
+
};
|
|
24
|
+
exports.StatusFilter = {
|
|
25
|
+
All: 'ALL',
|
|
26
|
+
TwoXx: '2xx',
|
|
27
|
+
ThreeXx: '3xx',
|
|
28
|
+
FourXx: '4xx',
|
|
29
|
+
FiveXx: '5xx',
|
|
30
|
+
Failed: 'Failed',
|
|
31
|
+
};
|
|
32
|
+
exports.SortOrder = {
|
|
33
|
+
Newest: 'newest',
|
|
34
|
+
Oldest: 'oldest',
|
|
35
|
+
};
|
|
36
|
+
exports.LocalFilter = {
|
|
37
|
+
Success: 'success',
|
|
38
|
+
Failed: 'failed',
|
|
39
|
+
Loading: 'loading',
|
|
40
|
+
};
|
|
41
|
+
exports.ModalAnimationType = {
|
|
42
|
+
Slide: 'slide',
|
|
43
|
+
Fade: 'fade',
|
|
44
|
+
None: 'none',
|
|
45
|
+
};
|
|
46
|
+
exports.SettingsPage = {
|
|
47
|
+
Main: 'main',
|
|
48
|
+
Apis: 'apis',
|
|
49
|
+
Logs: 'logs',
|
|
50
|
+
Analytics: 'analytics',
|
|
51
|
+
Redux: 'redux',
|
|
52
|
+
Bundle: 'bundle',
|
|
53
|
+
Performance: 'performance',
|
|
54
|
+
Crash: 'crash',
|
|
55
|
+
};
|
|
56
|
+
exports.SettingsSubTab = {
|
|
57
|
+
Module: 'module',
|
|
58
|
+
Ui: 'ui',
|
|
59
|
+
};
|
|
60
|
+
exports.LogFilter = {
|
|
61
|
+
All: 'all',
|
|
62
|
+
Info: 'info',
|
|
63
|
+
Warn: 'warn',
|
|
64
|
+
Error: 'error',
|
|
65
|
+
UserLog: 'user-log',
|
|
66
|
+
Analytics: 'analytics',
|
|
67
|
+
};
|
|
68
|
+
exports.ConsoleLogType = {
|
|
69
|
+
Info: 'info',
|
|
70
|
+
Warn: 'warn',
|
|
71
|
+
Error: 'error',
|
|
72
|
+
};
|
|
73
|
+
exports.AnalyticsEventSource = {
|
|
74
|
+
Firebase: 'firebase',
|
|
75
|
+
Manual: 'manual',
|
|
76
|
+
};
|
|
77
|
+
exports.GAEventCategory = {
|
|
78
|
+
PageView: 'page_view',
|
|
79
|
+
Ecommerce: 'ecommerce',
|
|
80
|
+
System: 'system',
|
|
81
|
+
Custom: 'custom',
|
|
82
|
+
};
|
|
83
|
+
exports.StackFrameType = {
|
|
84
|
+
App: 'app',
|
|
85
|
+
Dependency: 'dependency',
|
|
86
|
+
Runtime: 'runtime',
|
|
87
|
+
Native: 'native',
|
|
88
|
+
};
|
|
89
|
+
exports.DiffResultType = {
|
|
90
|
+
Added: 'added',
|
|
91
|
+
Removed: 'removed',
|
|
92
|
+
Changed: 'changed',
|
|
93
|
+
};
|
|
94
|
+
exports.BundleSubTab = {
|
|
95
|
+
Overview: 'overview',
|
|
96
|
+
Production: 'production',
|
|
97
|
+
Files: 'files',
|
|
98
|
+
Packages: 'packages',
|
|
99
|
+
Media: 'media',
|
|
100
|
+
Optimizer: 'optimizer',
|
|
101
|
+
};
|
|
102
|
+
exports.PerformanceSubTab = {
|
|
103
|
+
Overview: 'overview',
|
|
104
|
+
Renders: 'renders',
|
|
105
|
+
Interactions: 'interactions',
|
|
106
|
+
Memory: 'memory',
|
|
107
|
+
};
|
|
108
|
+
exports.CrashType = {
|
|
109
|
+
Native: 'native',
|
|
110
|
+
Js: 'js',
|
|
111
|
+
Promise: 'promise',
|
|
112
|
+
Render: 'render',
|
|
113
|
+
Custom: 'custom',
|
|
114
|
+
};
|
|
115
|
+
exports.CrashExportFormat = {
|
|
116
|
+
Text: 'text',
|
|
117
|
+
Markdown: 'markdown',
|
|
118
|
+
Json: 'json',
|
|
119
|
+
};
|
|
120
|
+
exports.CrashDetailSubTab = {
|
|
121
|
+
Stack: 'stack',
|
|
122
|
+
Diagnostics: 'diagnostics',
|
|
123
|
+
Breadcrumbs: 'breadcrumbs',
|
|
124
|
+
Raw: 'raw',
|
|
125
|
+
};
|
|
126
|
+
exports.CrashFilterType = {
|
|
127
|
+
All: 'all',
|
|
128
|
+
Fatal: 'fatal',
|
|
129
|
+
Js: 'js',
|
|
130
|
+
Promise: 'promise',
|
|
131
|
+
Render: 'render',
|
|
132
|
+
Native: 'native',
|
|
133
|
+
};
|
|
134
|
+
exports.BreadcrumbType = {
|
|
135
|
+
Navigation: 'navigation',
|
|
136
|
+
Network: 'network',
|
|
137
|
+
Redux: 'redux',
|
|
138
|
+
Console: 'console',
|
|
139
|
+
User: 'user',
|
|
140
|
+
System: 'system',
|
|
141
|
+
};
|
|
@@ -1,7 +1,49 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ViewStyle } from 'react-native';
|
|
3
3
|
import { Animated, PanResponderInstance } from 'react-native';
|
|
4
|
-
import type { ActiveTab, GroupedListItem, LocalFilter, LogFilter, Method, SettingsPage, SettingsSubTab, SortOrder, StatusFilter } from './index';
|
|
4
|
+
import type { ActiveTab, BreadcrumbType, CrashType, GroupedListItem, LocalFilter, LogFilter, Method, SettingsPage, SettingsSubTab, SortOrder, StatusFilter } from './index';
|
|
5
|
+
export interface ParsedStackFrame {
|
|
6
|
+
method: string;
|
|
7
|
+
file: string;
|
|
8
|
+
lineNumber: number;
|
|
9
|
+
column: number;
|
|
10
|
+
raw?: string;
|
|
11
|
+
isAppCode?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface CrashBreadcrumb {
|
|
14
|
+
type: BreadcrumbType;
|
|
15
|
+
message: string;
|
|
16
|
+
timestamp: number;
|
|
17
|
+
data?: any;
|
|
18
|
+
}
|
|
19
|
+
export interface CrashRecord {
|
|
20
|
+
id: string;
|
|
21
|
+
error?: Error | any;
|
|
22
|
+
isFatal: boolean;
|
|
23
|
+
type: CrashType;
|
|
24
|
+
message: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
stack?: string;
|
|
27
|
+
parsedStack?: ParsedStackFrame[];
|
|
28
|
+
componentStack?: string;
|
|
29
|
+
timestamp: number;
|
|
30
|
+
dateStr: string;
|
|
31
|
+
timeStr: string;
|
|
32
|
+
deviceInfo?: {
|
|
33
|
+
platform: string;
|
|
34
|
+
osVersion?: string;
|
|
35
|
+
rnVersion?: string;
|
|
36
|
+
isHermes?: boolean;
|
|
37
|
+
isFabric?: boolean;
|
|
38
|
+
appState?: string;
|
|
39
|
+
};
|
|
40
|
+
memoryInfo?: {
|
|
41
|
+
usedJSHeapSize?: number;
|
|
42
|
+
totalJSHeapSize?: number;
|
|
43
|
+
};
|
|
44
|
+
breadcrumbs?: CrashBreadcrumb[];
|
|
45
|
+
logId?: number;
|
|
46
|
+
}
|
|
5
47
|
export interface ConsoleLog {
|
|
6
48
|
id: number;
|
|
7
49
|
type: 'info' | 'warn' | 'error';
|
|
@@ -32,6 +74,21 @@ export interface AnalyticsEvent {
|
|
|
32
74
|
pageTitle?: string;
|
|
33
75
|
pageLocation?: string;
|
|
34
76
|
}
|
|
77
|
+
export interface AnalyticsFilters {
|
|
78
|
+
categories: Set<string>;
|
|
79
|
+
screens: Set<string>;
|
|
80
|
+
sources: Set<string>;
|
|
81
|
+
userTypes: Set<string>;
|
|
82
|
+
timeWindow: 'all' | '1m' | '5m' | '15m' | '1h';
|
|
83
|
+
payloadComplexity: 'all' | 'none' | 'simple' | 'heavy';
|
|
84
|
+
hasRevenue: boolean;
|
|
85
|
+
hasItems: boolean;
|
|
86
|
+
hasUserProps: boolean;
|
|
87
|
+
hasParams: boolean;
|
|
88
|
+
onlyDuplicates: boolean;
|
|
89
|
+
onlyConversions: boolean;
|
|
90
|
+
sortBy: 'time_desc' | 'time_asc' | 'revenue_desc' | 'count_desc';
|
|
91
|
+
}
|
|
35
92
|
export interface NetworkLog {
|
|
36
93
|
id: number;
|
|
37
94
|
url: string;
|
|
@@ -192,6 +249,10 @@ export interface InspectorContextValue {
|
|
|
192
249
|
})[];
|
|
193
250
|
analyticsSearch: string;
|
|
194
251
|
setAnalyticsSearch: React.Dispatch<React.SetStateAction<string>>;
|
|
252
|
+
analyticsFilters: AnalyticsFilters;
|
|
253
|
+
setAnalyticsFilters: React.Dispatch<React.SetStateAction<AnalyticsFilters>>;
|
|
254
|
+
isAnalyticsFilterApplied: boolean;
|
|
255
|
+
resetAnalyticsFilters: () => void;
|
|
195
256
|
newEventIds: Set<number>;
|
|
196
257
|
isAnalyticsLayoutReady: boolean;
|
|
197
258
|
setIsAnalyticsLayoutReady: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -210,6 +271,14 @@ export interface InspectorContextValue {
|
|
|
210
271
|
setSelectedReduxAction: React.Dispatch<React.SetStateAction<any | null>>;
|
|
211
272
|
reduxActiveSubTab: 'state' | 'timeline';
|
|
212
273
|
setReduxActiveSubTab: React.Dispatch<React.SetStateAction<'state' | 'timeline'>>;
|
|
274
|
+
crashRecords: CrashRecord[];
|
|
275
|
+
setCrashRecords: React.Dispatch<React.SetStateAction<CrashRecord[]>>;
|
|
276
|
+
selectedCrash: CrashRecord | null;
|
|
277
|
+
setSelectedCrash: React.Dispatch<React.SetStateAction<CrashRecord | null>>;
|
|
278
|
+
lastReadCrashesCount: number;
|
|
279
|
+
maxCrashLogs: number;
|
|
280
|
+
setMaxCrashLogs: React.Dispatch<React.SetStateAction<number>>;
|
|
281
|
+
clearAllCrashes: () => void;
|
|
213
282
|
settingsActiveSubTab: SettingsSubTab;
|
|
214
283
|
setSettingsActiveSubTab: React.Dispatch<React.SetStateAction<SettingsSubTab>>;
|
|
215
284
|
defaultTab: ActiveTab;
|