react-native-inapp-inspector 1.1.18 → 1.1.19
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/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/package.json +2 -4
- package/assets/banner_dark.svg +0 -186
- package/assets/banner_light.svg +0 -186
- package/assets/icon_circle.svg +0 -148
- package/assets/icon_square.svg +0 -148
- package/assets/social_preview.png +0 -0
- package/assets/walkthrough.gif +0 -0
- package/dist/commonjs/assets/svgAssets.d.ts +0 -3
- package/dist/commonjs/assets/svgAssets.js +0 -17
- package/dist/commonjs/components/AnalyticsTabView.d.ts +0 -15
- package/dist/commonjs/components/AnalyticsTabView.js +0 -157
- package/dist/commonjs/components/ApiDetailView.d.ts +0 -22
- package/dist/commonjs/components/ApiDetailView.js +0 -304
- package/dist/commonjs/components/ApisTabView.d.ts +0 -33
- package/dist/commonjs/components/ApisTabView.js +0 -235
- package/dist/commonjs/components/ConsoleLogDetailView.d.ts +0 -9
- package/dist/commonjs/components/ConsoleLogDetailView.js +0 -278
- package/dist/commonjs/components/ConsoleLogsTabView.d.ts +0 -24
- package/dist/commonjs/components/ConsoleLogsTabView.js +0 -354
- package/dist/commonjs/components/FloatingBubble.d.ts +0 -14
- package/dist/commonjs/components/FloatingBubble.js +0 -75
- package/dist/commonjs/components/Inspector/InsightsDashboard.d.ts +0 -3
- package/dist/commonjs/components/Inspector/InsightsDashboard.js +0 -619
- package/dist/commonjs/components/Inspector/WebViewTab.d.ts +0 -3
- package/dist/commonjs/components/Inspector/WebViewTab.js +0 -757
- package/dist/commonjs/components/InspectorHeader.d.ts +0 -19
- package/dist/commonjs/components/InspectorHeader.js +0 -329
- package/dist/commonjs/components/InspectorTabBar.d.ts +0 -16
- package/dist/commonjs/components/InspectorTabBar.js +0 -90
- package/dist/commonjs/components/NavigationTracker.d.ts +0 -7
- package/dist/commonjs/components/NavigationTracker.js +0 -76
- package/dist/commonjs/components/ReduxTabView.d.ts +0 -9
- package/dist/commonjs/components/ReduxTabView.js +0 -56
- package/dist/commonjs/components/ReduxTreeView.d.ts +0 -16
- package/dist/commonjs/components/ReduxTreeView.js +0 -1257
- package/dist/commonjs/components/SettingsView.d.ts +0 -13
- package/dist/commonjs/components/SettingsView.js +0 -328
- package/dist/commonjs/customHooks/webViewLogger.d.ts +0 -24
- package/dist/commonjs/customHooks/webViewLogger.js +0 -452
- package/dist/commonjs/enums/index.d.ts +0 -39
- package/dist/commonjs/enums/index.js +0 -50
- package/dist/commonjs/i18n/en.json +0 -144
- package/dist/esm/assets/svgAssets.d.ts +0 -3
- package/dist/esm/assets/svgAssets.js +0 -14
- package/dist/esm/components/AnalyticsTabView.d.ts +0 -15
- package/dist/esm/components/AnalyticsTabView.js +0 -151
- package/dist/esm/components/ApiDetailView.d.ts +0 -22
- package/dist/esm/components/ApiDetailView.js +0 -264
- package/dist/esm/components/ApisTabView.d.ts +0 -33
- package/dist/esm/components/ApisTabView.js +0 -196
- package/dist/esm/components/ConsoleLogDetailView.d.ts +0 -9
- package/dist/esm/components/ConsoleLogDetailView.js +0 -271
- package/dist/esm/components/ConsoleLogsTabView.d.ts +0 -24
- package/dist/esm/components/ConsoleLogsTabView.js +0 -348
- package/dist/esm/components/FloatingBubble.d.ts +0 -14
- package/dist/esm/components/FloatingBubble.js +0 -68
- package/dist/esm/components/Inspector/InsightsDashboard.d.ts +0 -3
- package/dist/esm/components/Inspector/InsightsDashboard.js +0 -614
- package/dist/esm/components/Inspector/WebViewTab.d.ts +0 -3
- package/dist/esm/components/Inspector/WebViewTab.js +0 -752
- package/dist/esm/components/InspectorHeader.d.ts +0 -19
- package/dist/esm/components/InspectorHeader.js +0 -323
- package/dist/esm/components/InspectorTabBar.d.ts +0 -16
- package/dist/esm/components/InspectorTabBar.js +0 -84
- package/dist/esm/components/NavigationTracker.d.ts +0 -7
- package/dist/esm/components/NavigationTracker.js +0 -39
- package/dist/esm/components/ReduxTabView.d.ts +0 -9
- package/dist/esm/components/ReduxTabView.js +0 -50
- package/dist/esm/components/ReduxTreeView.d.ts +0 -16
- package/dist/esm/components/ReduxTreeView.js +0 -1218
- package/dist/esm/components/SettingsView.d.ts +0 -13
- package/dist/esm/components/SettingsView.js +0 -321
- package/dist/esm/customHooks/webViewLogger.d.ts +0 -24
- package/dist/esm/customHooks/webViewLogger.js +0 -405
- package/dist/esm/enums/index.d.ts +0 -39
- package/dist/esm/enums/index.js +0 -47
- package/dist/esm/i18n/en.json +0 -144
- package/example/.bundle/config +0 -2
- package/example/.eslintrc.js +0 -4
- package/example/.prettierrc.js +0 -5
- package/example/.watchmanconfig +0 -1
- package/example/App.tsx +0 -879
- package/example/Gemfile +0 -17
- package/example/README.md +0 -53
- package/example/__tests__/App.test.tsx +0 -13
- package/example/android/app/build.gradle +0 -147
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/proguard-rules.pro +0 -10
- package/example/android/app/src/main/AndroidManifest.xml +0 -27
- package/example/android/app/src/main/java/com/example/MainActivity.kt +0 -22
- package/example/android/app/src/main/java/com/example/MainApplication.kt +0 -52
- package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/values/strings.xml +0 -3
- package/example/android/app/src/main/res/values/styles.xml +0 -9
- package/example/android/build.gradle +0 -48
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/example/android/gradle.properties +0 -45
- package/example/android/gradlew +0 -248
- package/example/android/gradlew.bat +0 -98
- package/example/android/settings.gradle +0 -25
- package/example/app.json +0 -4
- package/example/assets/app_icon.png +0 -0
- package/example/babel.config.js +0 -3
- package/example/guidance/Video-WalkThrough.mp4 +0 -0
- package/example/index.js +0 -9
- package/example/ios/.xcode.env +0 -11
- package/example/ios/Podfile +0 -34
- package/example/ios/Podfile.lock +0 -2303
- package/example/ios/example/AppDelegate.swift +0 -48
- package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +0 -62
- package/example/ios/example/Images.xcassets/AppIcon.appiconset/app_icon_1024.png +0 -0
- package/example/ios/example/Images.xcassets/Contents.json +0 -6
- package/example/ios/example/Info.plist +0 -60
- package/example/ios/example/LaunchScreen.storyboard +0 -47
- package/example/ios/example/PrivacyInfo.xcprivacy +0 -37
- package/example/ios/example.xcodeproj/project.pbxproj +0 -498
- package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +0 -88
- package/example/ios/example.xcworkspace/contents.xcworkspacedata +0 -10
- package/example/jest.config.js +0 -3
- package/example/metro.config.js +0 -45
- package/example/package-lock.json +0 -13508
- package/example/package.json +0 -54
- package/example/polyfill.js +0 -13
- package/example/tsconfig.json +0 -8
- package/fonts/Inter/Inter.ttc +0 -0
- package/fonts/Inter/InterVariable-Italic.ttf +0 -0
- package/fonts/Inter/InterVariable.ttf +0 -0
- package/fonts/Inter/LICENSE.txt +0 -92
- package/fonts/Inter/extras/otf/Inter-Black.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-BlackItalic.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-Bold.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-BoldItalic.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-ExtraBold.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-ExtraBoldItalic.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-ExtraLight.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-ExtraLightItalic.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-Italic.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-Light.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-LightItalic.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-Medium.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-MediumItalic.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-Regular.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-SemiBold.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-SemiBoldItalic.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-Thin.otf +0 -0
- package/fonts/Inter/extras/otf/Inter-ThinItalic.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-Black.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-BlackItalic.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-Bold.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-BoldItalic.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-ExtraBold.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-ExtraBoldItalic.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-ExtraLight.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-ExtraLightItalic.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-Italic.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-Light.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-LightItalic.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-Medium.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-MediumItalic.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-Regular.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-SemiBold.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-SemiBoldItalic.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-Thin.otf +0 -0
- package/fonts/Inter/extras/otf/InterDisplay-ThinItalic.otf +0 -0
- package/fonts/Inter/extras/ttf/Inter-Black.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-BlackItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-Bold.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-BoldItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-ExtraBold.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-ExtraBoldItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-ExtraLight.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-ExtraLightItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-Italic.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-Light.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-LightItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-Medium.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-MediumItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-Regular.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-SemiBold.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-SemiBoldItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-Thin.ttf +0 -0
- package/fonts/Inter/extras/ttf/Inter-ThinItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-Black.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-BlackItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-Bold.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-BoldItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-ExtraBold.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-ExtraBoldItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-ExtraLight.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-ExtraLightItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-Italic.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-Light.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-LightItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-Medium.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-MediumItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-Regular.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-SemiBold.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-SemiBoldItalic.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-Thin.ttf +0 -0
- package/fonts/Inter/extras/ttf/InterDisplay-ThinItalic.ttf +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-Black.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-BlackItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-Bold.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-BoldItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-ExtraBold.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-ExtraBoldItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-ExtraLight.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-ExtraLightItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-Italic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-Light.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-LightItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-Medium.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-MediumItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-Regular.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-SemiBold.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-SemiBoldItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-Thin.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/Inter-ThinItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-Black.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-BlackItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-Bold.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-BoldItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraBold.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraBoldItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraLight.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraLightItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-Italic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-Light.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-LightItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-Medium.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-MediumItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-Regular.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-SemiBold.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-SemiBoldItalic.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-Thin.woff2 +0 -0
- package/fonts/Inter/extras/woff-hinted/InterDisplay-ThinItalic.woff2 +0 -0
- package/fonts/Inter/help.txt +0 -165
- package/fonts/Inter/web/Inter-Black.woff2 +0 -0
- package/fonts/Inter/web/Inter-BlackItalic.woff2 +0 -0
- package/fonts/Inter/web/Inter-Bold.woff2 +0 -0
- package/fonts/Inter/web/Inter-BoldItalic.woff2 +0 -0
- package/fonts/Inter/web/Inter-ExtraBold.woff2 +0 -0
- package/fonts/Inter/web/Inter-ExtraBoldItalic.woff2 +0 -0
- package/fonts/Inter/web/Inter-ExtraLight.woff2 +0 -0
- package/fonts/Inter/web/Inter-ExtraLightItalic.woff2 +0 -0
- package/fonts/Inter/web/Inter-Italic.woff2 +0 -0
- package/fonts/Inter/web/Inter-Light.woff2 +0 -0
- package/fonts/Inter/web/Inter-LightItalic.woff2 +0 -0
- package/fonts/Inter/web/Inter-Medium.woff2 +0 -0
- package/fonts/Inter/web/Inter-MediumItalic.woff2 +0 -0
- package/fonts/Inter/web/Inter-Regular.woff2 +0 -0
- package/fonts/Inter/web/Inter-SemiBold.woff2 +0 -0
- package/fonts/Inter/web/Inter-SemiBoldItalic.woff2 +0 -0
- package/fonts/Inter/web/Inter-Thin.woff2 +0 -0
- package/fonts/Inter/web/Inter-ThinItalic.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-Black.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-BlackItalic.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-Bold.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-BoldItalic.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-ExtraBold.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-ExtraBoldItalic.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-ExtraLight.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-ExtraLightItalic.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-Italic.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-Light.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-LightItalic.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-Medium.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-MediumItalic.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-Regular.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-SemiBold.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-SemiBoldItalic.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-Thin.woff2 +0 -0
- package/fonts/Inter/web/InterDisplay-ThinItalic.woff2 +0 -0
- package/fonts/Inter/web/InterVariable-Italic.woff2 +0 -0
- package/fonts/Inter/web/InterVariable.woff2 +0 -0
- package/fonts/Inter/web/inter.css +0 -148
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ApiDetailView = void 0;
|
|
40
|
-
const react_1 = __importDefault(require("react"));
|
|
41
|
-
const react_native_1 = require("react-native");
|
|
42
|
-
const react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
43
|
-
const react_i18next_1 = require("react-i18next");
|
|
44
|
-
const TouchableScale_1 = __importDefault(require("./TouchableScale"));
|
|
45
|
-
const CopyButton_1 = __importDefault(require("./CopyButton"));
|
|
46
|
-
const SectionHeader_1 = __importDefault(require("./SectionHeader"));
|
|
47
|
-
const JsonViewer_1 = __importDefault(require("./JsonViewer"));
|
|
48
|
-
const DiffViewer_1 = __importDefault(require("./DiffViewer"));
|
|
49
|
-
const HeadersSection_1 = __importDefault(require("./HeadersSection"));
|
|
50
|
-
const NetworkIcons_1 = require("./NetworkIcons");
|
|
51
|
-
const constants_1 = require("../constants");
|
|
52
|
-
const AppColors_1 = require("../styles/AppColors");
|
|
53
|
-
const AppFonts_1 = require("../styles/AppFonts");
|
|
54
|
-
const styles_1 = __importDefault(require("../styles"));
|
|
55
|
-
const helpers_1 = require("../helpers");
|
|
56
|
-
const ApiDetailView = ({ selected, apiDetailActiveTab, onSetApiDetailActiveTab, detailSearch, onSetDetailSearch, reqExpanded, onToggleReqExpanded, resExpanded, onToggleResExpanded, showReqDiff, onToggleShowReqDiff, showResDiff, onToggleShowResDiff, prevRequestData, prevResponseData, }) => {
|
|
57
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
58
|
-
const detailDisplayUrl = (0, helpers_1.formatDisplayUrl)(selected.url);
|
|
59
|
-
let hostStr = '';
|
|
60
|
-
let pathStr = detailDisplayUrl;
|
|
61
|
-
let queryStr = '';
|
|
62
|
-
try {
|
|
63
|
-
const qIndex = detailDisplayUrl.indexOf('?');
|
|
64
|
-
let cleanUrlForParsing = detailDisplayUrl;
|
|
65
|
-
if (qIndex !== -1) {
|
|
66
|
-
pathStr = detailDisplayUrl.substring(0, qIndex);
|
|
67
|
-
queryStr = detailDisplayUrl.substring(qIndex);
|
|
68
|
-
cleanUrlForParsing = pathStr;
|
|
69
|
-
}
|
|
70
|
-
const schemeIndex = cleanUrlForParsing.indexOf('://');
|
|
71
|
-
if (schemeIndex !== -1) {
|
|
72
|
-
const withoutScheme = cleanUrlForParsing.substring(schemeIndex + 3);
|
|
73
|
-
const firstSlash = withoutScheme.indexOf('/');
|
|
74
|
-
if (firstSlash !== -1) {
|
|
75
|
-
hostStr = withoutScheme.substring(0, firstSlash);
|
|
76
|
-
pathStr = withoutScheme.substring(firstSlash);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
hostStr = withoutScheme;
|
|
80
|
-
pathStr = '/';
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
catch (e) { }
|
|
85
|
-
return (<react_native_1.View style={{ flex: 1 }}>
|
|
86
|
-
{/* Non-scrollable details header */}
|
|
87
|
-
<react_native_1.View style={{ paddingHorizontal: 6, paddingTop: 4 }}>
|
|
88
|
-
<react_native_1.View style={styles_1.default.detailInfoBar}>
|
|
89
|
-
<react_native_1.View style={styles_1.default.detailInfoTop}>
|
|
90
|
-
<react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
|
|
91
|
-
<react_native_1.View style={[
|
|
92
|
-
styles_1.default.methodBadge,
|
|
93
|
-
{
|
|
94
|
-
backgroundColor: constants_1.METHOD_COLORS[selected.method] ??
|
|
95
|
-
AppColors_1.AppColors.grayText,
|
|
96
|
-
},
|
|
97
|
-
]}>
|
|
98
|
-
<react_native_1.Text style={styles_1.default.methodBadgeText}>{selected.method}</react_native_1.Text>
|
|
99
|
-
</react_native_1.View>
|
|
100
|
-
{selected.status != null && (<react_native_1.View style={[
|
|
101
|
-
styles_1.default.chip,
|
|
102
|
-
{
|
|
103
|
-
backgroundColor: `${(0, helpers_1.getStatusColor)(selected.status)}15`,
|
|
104
|
-
borderColor: `${(0, helpers_1.getStatusColor)(selected.status)}30`,
|
|
105
|
-
},
|
|
106
|
-
]}>
|
|
107
|
-
{selected.status !== 0 && (<react_native_svg_1.default width="10" height="10" viewBox="0 0 10 10">
|
|
108
|
-
<react_native_svg_1.Circle cx="5" cy="5" r="5" fill={(0, helpers_1.getStatusColor)(selected.status)}/>
|
|
109
|
-
</react_native_svg_1.default>)}
|
|
110
|
-
<react_native_1.Text style={[
|
|
111
|
-
styles_1.default.chipText,
|
|
112
|
-
{
|
|
113
|
-
color: selected.status === 0
|
|
114
|
-
? AppColors_1.AppColors.errorColor
|
|
115
|
-
: (0, helpers_1.getStatusColor)(selected.status),
|
|
116
|
-
},
|
|
117
|
-
]}>
|
|
118
|
-
{selected.status === 0
|
|
119
|
-
? 'Failed'
|
|
120
|
-
: String(selected.status)}
|
|
121
|
-
</react_native_1.Text>
|
|
122
|
-
</react_native_1.View>)}
|
|
123
|
-
|
|
124
|
-
{selected.duration != null && (<react_native_1.View style={[
|
|
125
|
-
styles_1.default.chip,
|
|
126
|
-
{
|
|
127
|
-
backgroundColor: 'rgba(104,75,155,0.08)',
|
|
128
|
-
borderColor: 'rgba(104,75,155,0.18)',
|
|
129
|
-
},
|
|
130
|
-
]}>
|
|
131
|
-
<react_native_1.Text style={[
|
|
132
|
-
styles_1.default.chipText,
|
|
133
|
-
{ color: AppColors_1.AppColors.purple },
|
|
134
|
-
]}>
|
|
135
|
-
{selected.duration}ms
|
|
136
|
-
</react_native_1.Text>
|
|
137
|
-
</react_native_1.View>)}
|
|
138
|
-
</react_native_1.View>
|
|
139
|
-
<react_native_1.View style={styles_1.default.detailInfoRight}>
|
|
140
|
-
<TouchableScale_1.default style={styles_1.default.iconSquareBtn} onPress={() => react_native_1.Linking.openURL(detailDisplayUrl)} hitSlop={12}>
|
|
141
|
-
<NetworkIcons_1.GlobeIcon color={AppColors_1.AppColors.grayTextWeak} size={14}/>
|
|
142
|
-
</TouchableScale_1.default>
|
|
143
|
-
<CopyButton_1.default value={(0, helpers_1.getFetchCommand)(selected)} label="fetch()" iconType="fetch"/>
|
|
144
|
-
<CopyButton_1.default value={(0, helpers_1.getCurlCommand)(selected)} label="cURL" iconType="terminal"/>
|
|
145
|
-
<CopyButton_1.default value={detailDisplayUrl} label="URL"/>
|
|
146
|
-
</react_native_1.View>
|
|
147
|
-
</react_native_1.View>
|
|
148
|
-
|
|
149
|
-
<react_native_1.Pressable style={{
|
|
150
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
151
|
-
borderRadius: 10,
|
|
152
|
-
borderWidth: 1,
|
|
153
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
154
|
-
padding: 10,
|
|
155
|
-
marginTop: 6,
|
|
156
|
-
}} onPress={() => react_native_1.Linking.openURL(detailDisplayUrl)}>
|
|
157
|
-
<react_native_1.View style={{
|
|
158
|
-
flexDirection: 'row',
|
|
159
|
-
alignItems: 'center',
|
|
160
|
-
justifyContent: 'space-between',
|
|
161
|
-
marginBottom: 2,
|
|
162
|
-
}}>
|
|
163
|
-
<react_native_1.Text style={{
|
|
164
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
165
|
-
fontSize: 10,
|
|
166
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
167
|
-
flex: 1,
|
|
168
|
-
}} numberOfLines={1}>
|
|
169
|
-
{hostStr || 'API Endpoint'}
|
|
170
|
-
</react_native_1.Text>
|
|
171
|
-
{queryStr ? (<react_native_1.View style={{
|
|
172
|
-
backgroundColor: 'rgba(104,75,155,0.08)',
|
|
173
|
-
paddingHorizontal: 5,
|
|
174
|
-
paddingVertical: 1,
|
|
175
|
-
borderRadius: 4,
|
|
176
|
-
}}>
|
|
177
|
-
<react_native_1.Text style={{
|
|
178
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
179
|
-
fontSize: 8.5,
|
|
180
|
-
color: AppColors_1.AppColors.purple,
|
|
181
|
-
}}>
|
|
182
|
-
Query Params
|
|
183
|
-
</react_native_1.Text>
|
|
184
|
-
</react_native_1.View>) : null}
|
|
185
|
-
</react_native_1.View>
|
|
186
|
-
<react_native_1.Text selectable={true} style={{
|
|
187
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
188
|
-
fontSize: 12,
|
|
189
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
190
|
-
marginTop: 2,
|
|
191
|
-
}} numberOfLines={2}>
|
|
192
|
-
{pathStr}
|
|
193
|
-
</react_native_1.Text>
|
|
194
|
-
{queryStr ? (<react_native_1.Text selectable={true} style={{
|
|
195
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
196
|
-
fontSize: 10,
|
|
197
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
198
|
-
marginTop: 4,
|
|
199
|
-
}} numberOfLines={1}>
|
|
200
|
-
{queryStr}
|
|
201
|
-
</react_native_1.Text>) : null}
|
|
202
|
-
</react_native_1.Pressable>
|
|
203
|
-
</react_native_1.View>
|
|
204
|
-
|
|
205
|
-
{/* Tab Selection */}
|
|
206
|
-
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={false} style={styles_1.default.detailTabBar}>
|
|
207
|
-
{['response', 'request', 'headers', 'metadata'].map(tab => (<TouchableScale_1.default key={tab} style={[
|
|
208
|
-
styles_1.default.detailTab,
|
|
209
|
-
apiDetailActiveTab === tab && styles_1.default.detailTabActive,
|
|
210
|
-
]} onPress={() => onSetApiDetailActiveTab(tab)}>
|
|
211
|
-
<react_native_1.Text style={[
|
|
212
|
-
styles_1.default.detailTabText,
|
|
213
|
-
apiDetailActiveTab === tab && styles_1.default.detailTabTextActive,
|
|
214
|
-
]}>
|
|
215
|
-
{t(`details.tab_${tab}`)}
|
|
216
|
-
</react_native_1.Text>
|
|
217
|
-
</TouchableScale_1.default>))}
|
|
218
|
-
</react_native_1.ScrollView>
|
|
219
|
-
</react_native_1.View>
|
|
220
|
-
|
|
221
|
-
{/* Scrollable details content */}
|
|
222
|
-
<react_native_1.ScrollView style={{ flex: 1 }} contentContainerStyle={{ padding: 6, gap: 4 }} keyboardShouldPersistTaps="handled" nestedScrollEnabled={true}>
|
|
223
|
-
{apiDetailActiveTab === 'metadata' && (<react_native_1.View style={styles_1.default.sectionContainer}>
|
|
224
|
-
<react_native_1.View style={styles_1.default.metadataCard}>
|
|
225
|
-
<react_native_1.View style={styles_1.default.metadataRow}>
|
|
226
|
-
<react_native_1.Text style={styles_1.default.metadataLabel}>{t('details.duration')}</react_native_1.Text>
|
|
227
|
-
<react_native_1.Text style={styles_1.default.metadataValue}>
|
|
228
|
-
{selected.duration != null
|
|
229
|
-
? `${selected.duration} ms`
|
|
230
|
-
: '—'}
|
|
231
|
-
</react_native_1.Text>
|
|
232
|
-
</react_native_1.View>
|
|
233
|
-
<react_native_1.View style={styles_1.default.metadataRow}>
|
|
234
|
-
<react_native_1.Text style={styles_1.default.metadataLabel}>{t('details.timestamp')}</react_native_1.Text>
|
|
235
|
-
<react_native_1.Text style={styles_1.default.metadataValue}>
|
|
236
|
-
{new Date(selected.startTime).toLocaleString()}
|
|
237
|
-
</react_native_1.Text>
|
|
238
|
-
</react_native_1.View>
|
|
239
|
-
<react_native_1.View style={styles_1.default.metadataRow}>
|
|
240
|
-
<react_native_1.Text style={styles_1.default.metadataLabel}>{t('details.request_size')}</react_native_1.Text>
|
|
241
|
-
<react_native_1.Text style={styles_1.default.metadataValue}>
|
|
242
|
-
{(0, helpers_1.getSize)(selected.request)}
|
|
243
|
-
</react_native_1.Text>
|
|
244
|
-
</react_native_1.View>
|
|
245
|
-
<react_native_1.View style={styles_1.default.metadataRow}>
|
|
246
|
-
<react_native_1.Text style={styles_1.default.metadataLabel}>{t('details.response_size')}</react_native_1.Text>
|
|
247
|
-
<react_native_1.Text style={styles_1.default.metadataValue}>
|
|
248
|
-
{(0, helpers_1.getSize)(selected.response)}
|
|
249
|
-
</react_native_1.Text>
|
|
250
|
-
</react_native_1.View>
|
|
251
|
-
|
|
252
|
-
{selected.caller && (<react_native_1.View style={[
|
|
253
|
-
styles_1.default.metadataRow,
|
|
254
|
-
{ flexDirection: 'column', alignItems: 'flex-start', gap: 4 },
|
|
255
|
-
]}>
|
|
256
|
-
<react_native_1.Text style={styles_1.default.metadataLabel}>Caller Stack</react_native_1.Text>
|
|
257
|
-
<react_native_1.Text style={[styles_1.default.metadataValue, { fontSize: 11 }]} selectable>
|
|
258
|
-
{selected.caller}
|
|
259
|
-
</react_native_1.Text>
|
|
260
|
-
</react_native_1.View>)}
|
|
261
|
-
</react_native_1.View>
|
|
262
|
-
</react_native_1.View>)}
|
|
263
|
-
|
|
264
|
-
{apiDetailActiveTab === 'headers' && (<>
|
|
265
|
-
<HeadersSection_1.default title="Response Headers" headers={selected.responseHeaders} search={detailSearch}/>
|
|
266
|
-
<HeadersSection_1.default title="Request Headers" headers={selected.requestHeaders} search={detailSearch}/>
|
|
267
|
-
</>)}
|
|
268
|
-
|
|
269
|
-
{apiDetailActiveTab === 'request' && (<>
|
|
270
|
-
<react_native_1.View style={styles_1.default.detailSearchRow}>
|
|
271
|
-
<react_native_1.View style={styles_1.default.detailSearchBox}>
|
|
272
|
-
<react_native_1.TextInput placeholder="Search request..." placeholderTextColor={AppColors_1.AppColors.grayTextWeak} value={detailSearch} onChangeText={onSetDetailSearch} style={styles_1.default.detailSearchInput} autoCorrect={false} autoCapitalize="none"/>
|
|
273
|
-
{detailSearch.length > 0 && (<react_native_1.Pressable onPress={() => onSetDetailSearch('')} hitSlop={10} style={{ padding: 8 }}>
|
|
274
|
-
<NetworkIcons_1.ClearIcon color={AppColors_1.AppColors.grayTextWeak} size={14}/>
|
|
275
|
-
</react_native_1.Pressable>)}
|
|
276
|
-
</react_native_1.View>
|
|
277
|
-
</react_native_1.View>
|
|
278
|
-
|
|
279
|
-
<react_native_1.View style={styles_1.default.sectionContainer}>
|
|
280
|
-
<SectionHeader_1.default title="Request Payload" value={selected.request} expanded={reqExpanded} onToggleExpand={onToggleReqExpanded} showDiff={prevRequestData != null} isDiffing={showReqDiff} onToggleDiff={onToggleShowReqDiff}/>
|
|
281
|
-
{showReqDiff ? (<DiffViewer_1.default oldData={prevRequestData} newData={selected.request} forceOpen={reqExpanded}/>) : (<JsonViewer_1.default data={selected.request} search={detailSearch} forceOpen={reqExpanded} wrap/>)}
|
|
282
|
-
</react_native_1.View>
|
|
283
|
-
</>)}
|
|
284
|
-
|
|
285
|
-
{apiDetailActiveTab === 'response' && (<>
|
|
286
|
-
<react_native_1.View style={styles_1.default.detailSearchRow}>
|
|
287
|
-
<react_native_1.View style={styles_1.default.detailSearchBox}>
|
|
288
|
-
<react_native_1.TextInput placeholder="Search response..." placeholderTextColor={AppColors_1.AppColors.grayTextWeak} value={detailSearch} onChangeText={onSetDetailSearch} style={styles_1.default.detailSearchInput} autoCorrect={false} autoCapitalize="none"/>
|
|
289
|
-
{detailSearch.length > 0 && (<react_native_1.Pressable onPress={() => onSetDetailSearch('')} hitSlop={10} style={{ padding: 8 }}>
|
|
290
|
-
<NetworkIcons_1.ClearIcon color={AppColors_1.AppColors.grayTextWeak} size={14}/>
|
|
291
|
-
</react_native_1.Pressable>)}
|
|
292
|
-
</react_native_1.View>
|
|
293
|
-
</react_native_1.View>
|
|
294
|
-
|
|
295
|
-
<react_native_1.View style={styles_1.default.sectionContainer}>
|
|
296
|
-
<SectionHeader_1.default title="Response" value={selected.response} expanded={resExpanded} onToggleExpand={onToggleResExpanded} showDiff={prevResponseData != null} isDiffing={showResDiff} onToggleDiff={onToggleShowResDiff}/>
|
|
297
|
-
{showResDiff ? (<DiffViewer_1.default oldData={prevResponseData} newData={selected.response} forceOpen={resExpanded}/>) : (<JsonViewer_1.default data={selected.response} search={detailSearch} forceOpen={resExpanded} wrap/>)}
|
|
298
|
-
</react_native_1.View>
|
|
299
|
-
</>)}
|
|
300
|
-
</react_native_1.ScrollView>
|
|
301
|
-
</react_native_1.View>);
|
|
302
|
-
};
|
|
303
|
-
exports.ApiDetailView = ApiDetailView;
|
|
304
|
-
exports.default = exports.ApiDetailView;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FlatList } from 'react-native';
|
|
3
|
-
import { NetworkLog, StatusFilter, Method, SortOrder, GroupedListItem, LocalFilter } from '../types';
|
|
4
|
-
interface ApisTabViewProps {
|
|
5
|
-
search: string;
|
|
6
|
-
onSetSearch: (val: string) => void;
|
|
7
|
-
sortOrder: SortOrder;
|
|
8
|
-
onToggleSortOrder: () => void;
|
|
9
|
-
statusFilters: Set<StatusFilter>;
|
|
10
|
-
onToggleStatusFilter: (filter: StatusFilter) => void;
|
|
11
|
-
methodFilters: Set<Method>;
|
|
12
|
-
onToggleMethodFilter: (method: Method) => void;
|
|
13
|
-
availableMethods: Method[];
|
|
14
|
-
sectionFilters: Record<string, Set<LocalFilter>>;
|
|
15
|
-
onToggleSectionFilter: (section: string, filter: LocalFilter) => void;
|
|
16
|
-
groupByDomain: boolean;
|
|
17
|
-
onToggleGroupByDomain: () => void;
|
|
18
|
-
collapsedDomains: Set<string>;
|
|
19
|
-
onToggleCollapseDomain: (domain: string) => void;
|
|
20
|
-
onDeleteLogs: () => void;
|
|
21
|
-
selectedLogs: Set<number>;
|
|
22
|
-
onToggleSelectLog: (id: number) => void;
|
|
23
|
-
filteredLogs: NetworkLog[];
|
|
24
|
-
groupedListItems: GroupedListItem[];
|
|
25
|
-
onSelectLog: (log: NetworkLog) => void;
|
|
26
|
-
apisListRef: React.RefObject<FlatList<any> | null>;
|
|
27
|
-
logCounts: {
|
|
28
|
-
total: number;
|
|
29
|
-
filtered: number;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export declare const ApisTabView: React.FC<ApisTabViewProps>;
|
|
33
|
-
export default ApisTabView;
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ApisTabView = void 0;
|
|
40
|
-
const react_1 = __importDefault(require("react"));
|
|
41
|
-
const react_native_1 = require("react-native");
|
|
42
|
-
const react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
43
|
-
const react_i18next_1 = require("react-i18next");
|
|
44
|
-
const TouchableScale_1 = __importDefault(require("./TouchableScale"));
|
|
45
|
-
const LogCard_1 = __importDefault(require("./LogCard"));
|
|
46
|
-
const DomainHeader_1 = __importDefault(require("./DomainHeader"));
|
|
47
|
-
const EmptyState_1 = __importDefault(require("./EmptyState"));
|
|
48
|
-
const AnimatedEntrance_1 = __importDefault(require("./AnimatedEntrance"));
|
|
49
|
-
const NetworkIcons_1 = require("./NetworkIcons");
|
|
50
|
-
const constants_1 = require("../constants");
|
|
51
|
-
const helpers_1 = require("../helpers");
|
|
52
|
-
const AppColors_1 = require("../styles/AppColors");
|
|
53
|
-
const AppFonts_1 = require("../styles/AppFonts");
|
|
54
|
-
const styles_1 = __importDefault(require("../styles"));
|
|
55
|
-
exports.ApisTabView = react_1.default.memo(({ search, onSetSearch, sortOrder, onToggleSortOrder, statusFilters, onToggleStatusFilter, methodFilters, onToggleMethodFilter, availableMethods, sectionFilters, onToggleSectionFilter, groupByDomain, onToggleGroupByDomain, collapsedDomains, onToggleCollapseDomain, onDeleteLogs, selectedLogs, onToggleSelectLog, filteredLogs, groupedListItems, onSelectLog, apisListRef, logCounts, }) => {
|
|
56
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
57
|
-
const isSearchOrFilter = search.length > 0 || statusFilters.size > 0 || methodFilters.size > 0;
|
|
58
|
-
const renderItem = react_1.default.useCallback(({ item, index }) => {
|
|
59
|
-
if ('type' in item && item.type === 'header') {
|
|
60
|
-
const isCollapsed = collapsedDomains.has(item.domain);
|
|
61
|
-
const secFilter = sectionFilters[item.domain] ?? new Set();
|
|
62
|
-
return (<DomainHeader_1.default domain={item.domain} count={item.count} color={(0, helpers_1.getDomainColor)(item.domain)} isCollapsed={isCollapsed} onToggle={() => onToggleCollapseDomain(item.domain)} activeFilters={secFilter} onToggleFilter={f => onToggleSectionFilter(item.domain, f)} has2xx={item.has2xx} has4xx={item.has4xx} has5xx={item.has5xx}/>);
|
|
63
|
-
}
|
|
64
|
-
const log = item;
|
|
65
|
-
return (<AnimatedEntrance_1.default index={index} distance={8}>
|
|
66
|
-
<LogCard_1.default item={log} onPress={() => onSelectLog(log)} isSelected={selectedLogs.has(log.id)} onSelect={() => onToggleSelectLog(log.id)} searchStr={search}/>
|
|
67
|
-
</AnimatedEntrance_1.default>);
|
|
68
|
-
}, [
|
|
69
|
-
collapsedDomains,
|
|
70
|
-
onToggleCollapseDomain,
|
|
71
|
-
sectionFilters,
|
|
72
|
-
onToggleSectionFilter,
|
|
73
|
-
onSelectLog,
|
|
74
|
-
selectedLogs,
|
|
75
|
-
onToggleSelectLog,
|
|
76
|
-
search,
|
|
77
|
-
]);
|
|
78
|
-
return (<react_native_1.View style={{ flex: 1 }}>
|
|
79
|
-
{/* Search and Filters Toolbar */}
|
|
80
|
-
<react_native_1.View style={{
|
|
81
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
82
|
-
borderBottomWidth: 1,
|
|
83
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
84
|
-
paddingBottom: 6,
|
|
85
|
-
}}>
|
|
86
|
-
<react_native_1.View style={[styles_1.default.toolbarRow, { marginTop: 12, marginBottom: 8 }]}>
|
|
87
|
-
<react_native_1.View style={styles_1.default.searchContainer}>
|
|
88
|
-
<NetworkIcons_1.SearchIcon color={AppColors_1.AppColors.grayTextWeak} size={16}/>
|
|
89
|
-
<react_native_1.TextInput placeholder={t('search.apis_placeholder')} placeholderTextColor={AppColors_1.AppColors.grayTextWeak} value={search} onChangeText={onSetSearch} style={styles_1.default.searchInput} autoCorrect={false} autoCapitalize="none"/>
|
|
90
|
-
{search.length > 0 && (<react_native_1.Pressable onPress={() => onSetSearch('')} hitSlop={10} style={styles_1.default.clearBtn}>
|
|
91
|
-
<NetworkIcons_1.ClearIcon color={AppColors_1.AppColors.grayTextWeak} size={14}/>
|
|
92
|
-
</react_native_1.Pressable>)}
|
|
93
|
-
</react_native_1.View>
|
|
94
|
-
|
|
95
|
-
<react_native_1.View style={styles_1.default.toolbarRight}>
|
|
96
|
-
<TouchableScale_1.default style={styles_1.default.toolbarBtn} onPress={onToggleSortOrder} hitSlop={10}>
|
|
97
|
-
<NetworkIcons_1.SortArrowIcon color={AppColors_1.AppColors.grayTextStrong} size={18} direction={sortOrder === 'newest' ? 'down' : 'up'}/>
|
|
98
|
-
</TouchableScale_1.default>
|
|
99
|
-
<TouchableScale_1.default style={[
|
|
100
|
-
styles_1.default.toolbarBtn,
|
|
101
|
-
{
|
|
102
|
-
borderColor: 'rgba(255,46,87,0.22)',
|
|
103
|
-
backgroundColor: 'rgba(255,46,87,0.06)',
|
|
104
|
-
},
|
|
105
|
-
]} onPress={onDeleteLogs} hitSlop={6}>
|
|
106
|
-
<NetworkIcons_1.WipeIcon color={AppColors_1.AppColors.errorColor} size={15}/>
|
|
107
|
-
</TouchableScale_1.default>
|
|
108
|
-
</react_native_1.View>
|
|
109
|
-
</react_native_1.View>
|
|
110
|
-
|
|
111
|
-
{/* Filter Chips Scroll View */}
|
|
112
|
-
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={false} style={{ marginVertical: 4, maxHeight: 46 }} contentContainerStyle={{
|
|
113
|
-
paddingHorizontal: 16,
|
|
114
|
-
paddingBottom: 4,
|
|
115
|
-
flexDirection: 'row',
|
|
116
|
-
alignItems: 'center',
|
|
117
|
-
gap: 8,
|
|
118
|
-
}}>
|
|
119
|
-
<TouchableScale_1.default onPress={onToggleGroupByDomain}>
|
|
120
|
-
<react_native_1.View style={[
|
|
121
|
-
styles_1.default.statusFilterChip,
|
|
122
|
-
groupByDomain && {
|
|
123
|
-
borderColor: AppColors_1.AppColors.purple,
|
|
124
|
-
backgroundColor: 'rgba(107, 78, 255, 0.08)',
|
|
125
|
-
},
|
|
126
|
-
]}>
|
|
127
|
-
<react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 5 }}>
|
|
128
|
-
<NetworkIcons_1.FilterIcon size={12} color={groupByDomain ? AppColors_1.AppColors.purple : AppColors_1.AppColors.grayTextStrong}/>
|
|
129
|
-
<react_native_1.Text style={[
|
|
130
|
-
styles_1.default.statusFilterText,
|
|
131
|
-
groupByDomain && {
|
|
132
|
-
color: AppColors_1.AppColors.purple,
|
|
133
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
134
|
-
},
|
|
135
|
-
]}>
|
|
136
|
-
{t('filters.group_by_domain')}
|
|
137
|
-
</react_native_1.Text>
|
|
138
|
-
</react_native_1.View>
|
|
139
|
-
</react_native_1.View>
|
|
140
|
-
</TouchableScale_1.default>
|
|
141
|
-
|
|
142
|
-
{/* Status Filter Chips */}
|
|
143
|
-
{constants_1.STATUS_FILTERS.map(f => {
|
|
144
|
-
const active = statusFilters.has(f);
|
|
145
|
-
const badgeColor = f === '2xx'
|
|
146
|
-
? AppColors_1.AppColors.greenColor
|
|
147
|
-
: f === '3xx'
|
|
148
|
-
? AppColors_1.AppColors.skyBlue
|
|
149
|
-
: f === '4xx'
|
|
150
|
-
? AppColors_1.AppColors.lightOrange
|
|
151
|
-
: f === '5xx'
|
|
152
|
-
? AppColors_1.AppColors.errorColor
|
|
153
|
-
: AppColors_1.AppColors.grayText;
|
|
154
|
-
return (<TouchableScale_1.default key={f} onPress={() => onToggleStatusFilter(f)}>
|
|
155
|
-
<react_native_1.View style={[
|
|
156
|
-
styles_1.default.statusFilterChip,
|
|
157
|
-
active && {
|
|
158
|
-
borderColor: badgeColor,
|
|
159
|
-
backgroundColor: `${badgeColor}15`,
|
|
160
|
-
},
|
|
161
|
-
]}>
|
|
162
|
-
<react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 5 }}>
|
|
163
|
-
<react_native_svg_1.default width="8" height="8" viewBox="0 0 8 8">
|
|
164
|
-
<react_native_svg_1.Circle cx="4" cy="4" r="4" fill={active ? badgeColor : AppColors_1.AppColors.grayTextWeak}/>
|
|
165
|
-
</react_native_svg_1.default>
|
|
166
|
-
<react_native_1.Text style={[
|
|
167
|
-
styles_1.default.statusFilterText,
|
|
168
|
-
active && {
|
|
169
|
-
color: badgeColor,
|
|
170
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
171
|
-
},
|
|
172
|
-
]}>
|
|
173
|
-
{f}
|
|
174
|
-
</react_native_1.Text>
|
|
175
|
-
</react_native_1.View>
|
|
176
|
-
</react_native_1.View>
|
|
177
|
-
</TouchableScale_1.default>);
|
|
178
|
-
})}
|
|
179
|
-
|
|
180
|
-
{/* Method Filter Chips */}
|
|
181
|
-
{availableMethods.map(method => {
|
|
182
|
-
const active = methodFilters.has(method);
|
|
183
|
-
const mColor = constants_1.METHOD_COLORS[method] ?? AppColors_1.AppColors.purple;
|
|
184
|
-
return (<TouchableScale_1.default key={method} onPress={() => onToggleMethodFilter(method)}>
|
|
185
|
-
<react_native_1.View style={[
|
|
186
|
-
styles_1.default.statusFilterChip,
|
|
187
|
-
active && {
|
|
188
|
-
borderColor: mColor,
|
|
189
|
-
backgroundColor: `${mColor}15`,
|
|
190
|
-
},
|
|
191
|
-
]}>
|
|
192
|
-
<react_native_1.Text style={[
|
|
193
|
-
styles_1.default.statusFilterText,
|
|
194
|
-
active && {
|
|
195
|
-
color: mColor,
|
|
196
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
197
|
-
},
|
|
198
|
-
]}>
|
|
199
|
-
{method}
|
|
200
|
-
</react_native_1.Text>
|
|
201
|
-
</react_native_1.View>
|
|
202
|
-
</TouchableScale_1.default>);
|
|
203
|
-
})}
|
|
204
|
-
</react_native_1.ScrollView>
|
|
205
|
-
</react_native_1.View>
|
|
206
|
-
|
|
207
|
-
{/* Main List */}
|
|
208
|
-
<react_native_1.FlatList ref={apisListRef} data={groupByDomain ? groupedListItems : filteredLogs} keyExtractor={(item, index) => 'id' in item && item.id != null
|
|
209
|
-
? item.id.toString()
|
|
210
|
-
: 'domain' in item
|
|
211
|
-
? `domain-${item.domain}`
|
|
212
|
-
: index.toString()} ListHeaderComponent={<react_native_1.Text style={[styles_1.default.resultCount, { marginBottom: 4, marginTop: 12 }]}>
|
|
213
|
-
{t('filters.showing_requests', {
|
|
214
|
-
filtered: logCounts.filtered,
|
|
215
|
-
total: logCounts.total,
|
|
216
|
-
})}
|
|
217
|
-
</react_native_1.Text>} renderItem={renderItem} initialNumToRender={15} maxToRenderPerBatch={15} windowSize={7} removeClippedSubviews={true} ListEmptyComponent={<EmptyState_1.default isSearch={isSearchOrFilter}/>} contentContainerStyle={[
|
|
218
|
-
styles_1.default.listContent,
|
|
219
|
-
filteredLogs.length === 0 && { flexGrow: 1 },
|
|
220
|
-
]} keyboardShouldPersistTaps="handled"/>
|
|
221
|
-
|
|
222
|
-
{/* Scroll to Top Button */}
|
|
223
|
-
<TouchableScale_1.default onPress={() => {
|
|
224
|
-
apisListRef.current?.scrollToOffset({
|
|
225
|
-
offset: 0,
|
|
226
|
-
animated: true,
|
|
227
|
-
});
|
|
228
|
-
}} hitSlop={10} style={styles_1.default.scrollTopBtn}>
|
|
229
|
-
<react_native_1.View style={{ transform: [{ rotate: '180deg' }] }}>
|
|
230
|
-
<NetworkIcons_1.ChevronIcon color={AppColors_1.AppColors.white} size={18}/>
|
|
231
|
-
</react_native_1.View>
|
|
232
|
-
</TouchableScale_1.default>
|
|
233
|
-
</react_native_1.View>);
|
|
234
|
-
});
|
|
235
|
-
exports.default = exports.ApisTabView;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ConsoleLog } from '../types';
|
|
3
|
-
interface ConsoleLogDetailViewProps {
|
|
4
|
-
selectedConsoleLog: ConsoleLog;
|
|
5
|
-
detailSearch: string;
|
|
6
|
-
onSetDetailSearch: (search: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const ConsoleLogDetailView: React.FC<ConsoleLogDetailViewProps>;
|
|
9
|
-
export default ConsoleLogDetailView;
|