react-native-inapp-inspector 2.3.16 → 2.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +438 -7
- package/bin/cli.js +0 -0
- package/dist/commonjs/capture.d.ts +26 -0
- package/dist/commonjs/capture.js +32 -0
- package/dist/commonjs/components/AnalyticsEventCard.js +11 -11
- package/dist/commonjs/components/AnimatedEntrance.js +6 -70
- package/dist/commonjs/components/DomainHeader.js +3 -48
- package/dist/commonjs/components/EmptyState.js +2 -2
- package/dist/commonjs/components/HeadersSection.js +14 -34
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +1 -2
- package/dist/commonjs/components/Inspector/ConsoleTab.js +1 -1
- package/dist/commonjs/components/Inspector/CrashTab.js +4 -2
- package/dist/commonjs/components/Inspector/DebuggingTab.js +2 -2
- package/dist/commonjs/components/Inspector/InspectorHeader.js +651 -313
- package/dist/commonjs/components/Inspector/MainScreen.js +25 -70
- package/dist/commonjs/components/Inspector/MediaGalleryTab.d.ts +2 -0
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +307 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +11 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +393 -0
- package/dist/commonjs/components/Inspector/NetworkTab.js +183 -182
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +4 -9
- package/dist/commonjs/components/Inspector/ReduxTab.js +4 -2
- package/dist/commonjs/components/Inspector/SettingsPanel.js +245 -0
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +2 -2
- package/dist/commonjs/components/Inspector/StorageTab.js +3 -3
- package/dist/commonjs/components/Inspector/TabBar.js +5 -10
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +5 -10
- package/dist/commonjs/components/JsonViewer.js +43 -20
- package/dist/commonjs/components/LogCard.js +5 -5
- package/dist/commonjs/components/MetaAccordion.js +78 -80
- package/dist/commonjs/components/NetworkIcons.d.ts +8 -0
- package/dist/commonjs/components/NetworkIcons.js +51 -1
- package/dist/commonjs/components/SectionHeader.js +3 -48
- package/dist/commonjs/components/SkeletonPlaceholder.js +2 -2
- package/dist/commonjs/components/SourcePageCard.js +43 -45
- package/dist/commonjs/components/Toast.js +4 -4
- package/dist/commonjs/components/TouchableScale.js +9 -65
- package/dist/commonjs/components/TreeNode.js +2 -14
- package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
- package/dist/commonjs/constants/telemetryConfig.js +3 -3
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/useAccordion.d.ts +3 -8
- package/dist/commonjs/customHooks/useAccordion.js +6 -36
- package/dist/commonjs/helpers/index.d.ts +2 -1
- package/dist/commonjs/helpers/index.js +10 -1
- package/dist/commonjs/i18n/locales/en.json +66 -2
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.js +39 -22
- package/dist/commonjs/native/NativeInspector.d.ts +60 -0
- package/dist/commonjs/native/NativeInspector.js +109 -2
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +8 -0
- package/dist/commonjs/styles/AppColors.d.ts +36 -0
- package/dist/commonjs/styles/AppColors.js +36 -0
- package/dist/commonjs/styles/index.d.ts +3 -1
- package/dist/commonjs/styles/index.js +3 -1
- package/dist/commonjs/types/enums.d.ts +1 -0
- package/dist/commonjs/types/enums.js +1 -0
- package/dist/commonjs/types/index.d.ts +2 -2
- package/dist/esm/capture.d.ts +26 -0
- package/dist/esm/capture.js +29 -0
- package/dist/esm/components/AnalyticsEventCard.js +11 -11
- package/dist/esm/components/AnimatedEntrance.js +4 -38
- package/dist/esm/components/DomainHeader.js +4 -16
- package/dist/esm/components/EmptyState.js +2 -2
- package/dist/esm/components/HeadersSection.js +16 -36
- package/dist/esm/components/Inspector/AnalyticsTab.js +2 -3
- package/dist/esm/components/Inspector/ConsoleTab.js +2 -2
- package/dist/esm/components/Inspector/CrashTab.js +5 -3
- package/dist/esm/components/Inspector/DebuggingTab.js +3 -3
- package/dist/esm/components/Inspector/InspectorHeader.js +654 -316
- package/dist/esm/components/Inspector/MainScreen.js +25 -70
- package/dist/esm/components/Inspector/MediaGalleryTab.d.ts +2 -0
- package/dist/esm/components/Inspector/MediaGalleryTab.js +267 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +11 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.js +353 -0
- package/dist/esm/components/Inspector/NetworkTab.js +185 -184
- package/dist/esm/components/Inspector/NpmUpdateToast.js +5 -10
- package/dist/esm/components/Inspector/ReduxTab.js +5 -3
- package/dist/esm/components/Inspector/SettingsPanel.js +246 -1
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +2 -2
- package/dist/esm/components/Inspector/StorageTab.js +3 -3
- package/dist/esm/components/Inspector/TabBar.js +6 -11
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +6 -11
- package/dist/esm/components/JsonViewer.js +43 -20
- package/dist/esm/components/LogCard.js +5 -5
- package/dist/esm/components/MetaAccordion.js +79 -81
- package/dist/esm/components/NetworkIcons.d.ts +8 -0
- package/dist/esm/components/NetworkIcons.js +42 -0
- package/dist/esm/components/SectionHeader.js +4 -16
- package/dist/esm/components/SkeletonPlaceholder.js +2 -2
- package/dist/esm/components/SourcePageCard.js +44 -46
- package/dist/esm/components/Toast.js +4 -4
- package/dist/esm/components/TouchableScale.js +7 -33
- package/dist/esm/components/TreeNode.js +4 -16
- package/dist/esm/constants/telemetryConfig.d.ts +3 -3
- package/dist/esm/constants/telemetryConfig.js +3 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/useAccordion.d.ts +3 -8
- package/dist/esm/customHooks/useAccordion.js +7 -37
- package/dist/esm/helpers/index.d.ts +2 -1
- package/dist/esm/helpers/index.js +8 -0
- package/dist/esm/i18n/locales/en.json +66 -2
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +36 -21
- package/dist/esm/native/NativeInspector.d.ts +60 -0
- package/dist/esm/native/NativeInspector.js +100 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +8 -0
- package/dist/esm/styles/AppColors.d.ts +36 -0
- package/dist/esm/styles/AppColors.js +36 -0
- package/dist/esm/styles/index.d.ts +3 -1
- package/dist/esm/styles/index.js +3 -1
- package/dist/esm/types/enums.d.ts +1 -0
- package/dist/esm/types/enums.js +1 -0
- package/dist/esm/types/index.d.ts +2 -2
- package/ios/NetworkInspectorModule.h +1 -0
- package/ios/NetworkInspectorModule.mm +736 -7
- package/package.json +10 -2
- package/react-native-inapp-inspector.podspec +1 -0
- package/src/capture.ts +101 -0
- package/src/components/AnalyticsEventCard.tsx +15 -13
- package/src/components/AnimatedEntrance.tsx +3 -47
- package/src/components/DomainHeader.tsx +4 -17
- package/src/components/EmptyState.tsx +2 -2
- package/src/components/HeadersSection.tsx +31 -56
- package/src/components/Inspector/AnalyticsTab.tsx +2 -2
- package/src/components/Inspector/ConsoleTab.tsx +2 -1
- package/src/components/Inspector/CrashTab.tsx +4 -2
- package/src/components/Inspector/DebuggingTab.tsx +2 -2
- package/src/components/Inspector/InspectorHeader.tsx +1215 -789
- package/src/components/Inspector/MainScreen.tsx +44 -85
- package/src/components/Inspector/MediaGalleryTab.tsx +355 -0
- package/src/components/Inspector/MediaPreviewModal.tsx +435 -0
- package/src/components/Inspector/NetworkTab.tsx +14 -15
- package/src/components/Inspector/NpmUpdateToast.tsx +4 -9
- package/src/components/Inspector/ReduxTab.tsx +5 -2
- package/src/components/Inspector/SettingsPanel.tsx +303 -0
- package/src/components/Inspector/SkeletonPlaceholder.tsx +2 -2
- package/src/components/Inspector/StorageTab.tsx +3 -3
- package/src/components/Inspector/TabBar.tsx +6 -12
- package/src/components/Inspector/UpdateAvailableModal.tsx +6 -10
- package/src/components/JsonViewer.tsx +101 -60
- package/src/components/LogCard.tsx +10 -8
- package/src/components/MetaAccordion.tsx +6 -6
- package/src/components/NetworkIcons.tsx +150 -0
- package/src/components/SectionHeader.tsx +4 -16
- package/src/components/SkeletonPlaceholder.tsx +2 -2
- package/src/components/SourcePageCard.tsx +57 -55
- package/src/components/Toast.tsx +4 -4
- package/src/components/TouchableScale.tsx +8 -38
- package/src/components/TreeNode.tsx +5 -20
- package/src/constants/telemetryConfig.ts +3 -5
- package/src/constants/version.ts +1 -1
- package/src/customHooks/useAccordion.tsx +10 -43
- package/src/helpers/index.ts +10 -1
- package/src/i18n/locales/en.json +69 -2
- package/src/index.tsx +51 -23
- package/src/native/NativeInspector.ts +186 -1
- package/src/native/NativeNetworkInspector.ts +9 -0
- package/src/styles/AppColors.ts +38 -0
- package/src/styles/index.ts +3 -1
- package/src/types/enums.ts +3 -0
- package/src/types/index.ts +2 -2
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.2.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/results.bin +0 -1
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/results.bin +0 -1
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +0 -10
- package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +0 -104
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +0 -128
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +0 -31
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +0 -22
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +0 -24
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +0 -19
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +0 -18
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +0 -177
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +0 -23
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +0 -20
- package/android/build/generated/source/codegen/schema.json +0 -1
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
- package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-inapp-inspector.jar +0 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/aar/react-native-inapp-inspector-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
- package/android/build/reports/problems/problems-report.html +0 -659
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import React, {useState} from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Alert,
|
|
4
|
+
Dimensions,
|
|
5
|
+
Image,
|
|
6
|
+
Modal,
|
|
7
|
+
Platform,
|
|
8
|
+
Share,
|
|
9
|
+
StyleSheet,
|
|
10
|
+
Text,
|
|
11
|
+
TouchableOpacity,
|
|
12
|
+
View,
|
|
13
|
+
} from 'react-native';
|
|
14
|
+
import {AppColors} from '../../styles/AppColors';
|
|
15
|
+
import {AppFonts} from '../../styles/AppFonts';
|
|
16
|
+
import TouchableScale from '../TouchableScale';
|
|
17
|
+
import {
|
|
18
|
+
CloseWhite,
|
|
19
|
+
CopyIcon,
|
|
20
|
+
FilmIcon,
|
|
21
|
+
GifIcon,
|
|
22
|
+
ImageIcon,
|
|
23
|
+
SendIcon,
|
|
24
|
+
TrashIcon,
|
|
25
|
+
} from '../NetworkIcons';
|
|
26
|
+
import {CapturedMediaItem, ScreenCapture} from '../../capture';
|
|
27
|
+
import {copyToClipboard, formatBytes} from '../../helpers';
|
|
28
|
+
import {showToast} from '../../helpers/toast';
|
|
29
|
+
import {useTranslation} from '../../i18n';
|
|
30
|
+
|
|
31
|
+
interface MediaPreviewModalProps {
|
|
32
|
+
item: CapturedMediaItem | null;
|
|
33
|
+
visible: boolean;
|
|
34
|
+
onClose: () => void;
|
|
35
|
+
onDelete: (item: CapturedMediaItem) => void;
|
|
36
|
+
onConvertToGif?: (item: CapturedMediaItem) => void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const MediaPreviewModal: React.FC<MediaPreviewModalProps> = ({
|
|
40
|
+
item,
|
|
41
|
+
visible,
|
|
42
|
+
onClose,
|
|
43
|
+
onDelete,
|
|
44
|
+
onConvertToGif,
|
|
45
|
+
}) => {
|
|
46
|
+
const {t} = useTranslation();
|
|
47
|
+
const [isConverting, setIsConverting] = useState(false);
|
|
48
|
+
const [imageError, setImageError] = useState(false);
|
|
49
|
+
|
|
50
|
+
if (!item) return null;
|
|
51
|
+
|
|
52
|
+
const handleShare = async () => {
|
|
53
|
+
try {
|
|
54
|
+
await Share.share(
|
|
55
|
+
Platform.OS === 'ios'
|
|
56
|
+
? {url: item.uri, title: item.filename}
|
|
57
|
+
: {message: `Captured media: ${item.filename}`, url: item.uri},
|
|
58
|
+
);
|
|
59
|
+
} catch {
|
|
60
|
+
showToast(t('mediaGallery.shareUnavailable'));
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const handleCopyUri = () => {
|
|
65
|
+
copyToClipboard(item.uri);
|
|
66
|
+
showToast(t('mediaGallery.uriCopied'));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const handleDelete = () => {
|
|
70
|
+
Alert.alert(
|
|
71
|
+
t('mediaGallery.deleteTitle'),
|
|
72
|
+
t('mediaGallery.deleteMessage', {filename: item.filename}),
|
|
73
|
+
[
|
|
74
|
+
{text: t('common.cancel'), style: 'cancel'},
|
|
75
|
+
{
|
|
76
|
+
text: t('mediaGallery.delete'),
|
|
77
|
+
style: 'destructive',
|
|
78
|
+
onPress: () => {
|
|
79
|
+
onDelete(item);
|
|
80
|
+
onClose();
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const handleConvert = async () => {
|
|
88
|
+
if (!onConvertToGif) return;
|
|
89
|
+
setIsConverting(true);
|
|
90
|
+
try {
|
|
91
|
+
await onConvertToGif(item);
|
|
92
|
+
showToast(t('mediaGallery.convertedSuccess'));
|
|
93
|
+
} catch {
|
|
94
|
+
showToast(t('mediaGallery.convertFailed'));
|
|
95
|
+
} finally {
|
|
96
|
+
setIsConverting(false);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const isVideo = item.type === 'video';
|
|
101
|
+
const isGif = item.type === 'gif';
|
|
102
|
+
const durationSec = item.durationMs ? (item.durationMs / 1000).toFixed(1) : null;
|
|
103
|
+
|
|
104
|
+
return (
|
|
105
|
+
<Modal
|
|
106
|
+
visible={visible}
|
|
107
|
+
transparent={true}
|
|
108
|
+
animationType="fade"
|
|
109
|
+
onRequestClose={onClose}>
|
|
110
|
+
<View style={previewStyles.overlay}>
|
|
111
|
+
{/* Header Bar */}
|
|
112
|
+
<View style={previewStyles.header}>
|
|
113
|
+
<View style={previewStyles.headerLeft}>
|
|
114
|
+
<View
|
|
115
|
+
style={[
|
|
116
|
+
previewStyles.badge,
|
|
117
|
+
{
|
|
118
|
+
borderColor: isVideo
|
|
119
|
+
? `${AppColors.sky400}80`
|
|
120
|
+
: isGif
|
|
121
|
+
? `${AppColors.warningAmber}80`
|
|
122
|
+
: `${AppColors.emerald500}80`,
|
|
123
|
+
backgroundColor: isVideo
|
|
124
|
+
? `${AppColors.sky400}20`
|
|
125
|
+
: isGif
|
|
126
|
+
? `${AppColors.warningAmber}20`
|
|
127
|
+
: `${AppColors.emerald500}20`,
|
|
128
|
+
},
|
|
129
|
+
]}>
|
|
130
|
+
{isVideo ? (
|
|
131
|
+
<FilmIcon size={13} color={AppColors.sky400} />
|
|
132
|
+
) : isGif ? (
|
|
133
|
+
<GifIcon size={13} color={AppColors.warningAmber} />
|
|
134
|
+
) : (
|
|
135
|
+
<ImageIcon size={13} color={AppColors.emerald500} />
|
|
136
|
+
)}
|
|
137
|
+
<Text
|
|
138
|
+
style={[
|
|
139
|
+
previewStyles.badgeText,
|
|
140
|
+
{
|
|
141
|
+
color: isVideo
|
|
142
|
+
? AppColors.sky400
|
|
143
|
+
: isGif
|
|
144
|
+
? AppColors.warningAmber
|
|
145
|
+
: AppColors.emerald500,
|
|
146
|
+
},
|
|
147
|
+
]}>
|
|
148
|
+
{item.format.toUpperCase()}
|
|
149
|
+
</Text>
|
|
150
|
+
</View>
|
|
151
|
+
<View style={{flex: 1, minWidth: 0}}>
|
|
152
|
+
<Text style={previewStyles.title} numberOfLines={1}>
|
|
153
|
+
{item.filename}
|
|
154
|
+
</Text>
|
|
155
|
+
<Text style={previewStyles.subtitle}>
|
|
156
|
+
{formatBytes(item.sizeBytes)} • {new Date(item.timestamp).toLocaleTimeString([], {hour: '2-digit', minute: '2-digit', second: '2-digit'})}
|
|
157
|
+
</Text>
|
|
158
|
+
</View>
|
|
159
|
+
</View>
|
|
160
|
+
<TouchableOpacity
|
|
161
|
+
onPress={onClose}
|
|
162
|
+
style={previewStyles.closeBtn}
|
|
163
|
+
hitSlop={{top: 10, bottom: 10, left: 10, right: 10}}>
|
|
164
|
+
<CloseWhite size={14} color={AppColors.white} />
|
|
165
|
+
</TouchableOpacity>
|
|
166
|
+
</View>
|
|
167
|
+
|
|
168
|
+
{/* Media Preview Stage */}
|
|
169
|
+
<View style={previewStyles.stage}>
|
|
170
|
+
<View style={previewStyles.previewCard}>
|
|
171
|
+
<Image
|
|
172
|
+
source={{uri: item.uri}}
|
|
173
|
+
style={previewStyles.image}
|
|
174
|
+
resizeMode="contain"
|
|
175
|
+
onError={() => setImageError(true)}
|
|
176
|
+
/>
|
|
177
|
+
|
|
178
|
+
{/* Video overlay badge with playback duration */}
|
|
179
|
+
{isVideo && (
|
|
180
|
+
<View style={previewStyles.videoBadgeOverlay}>
|
|
181
|
+
<View style={previewStyles.playPill}>
|
|
182
|
+
<FilmIcon size={13} color={AppColors.white} />
|
|
183
|
+
<Text style={previewStyles.playPillText}>
|
|
184
|
+
{durationSec ? `${durationSec}s` : 'VIDEO'}
|
|
185
|
+
</Text>
|
|
186
|
+
</View>
|
|
187
|
+
</View>
|
|
188
|
+
)}
|
|
189
|
+
|
|
190
|
+
{/* GIF loop badge */}
|
|
191
|
+
{isGif && (
|
|
192
|
+
<View style={previewStyles.videoBadgeOverlay}>
|
|
193
|
+
<View style={[previewStyles.playPill, {backgroundColor: `${AppColors.warningAmber}CC`}]}>
|
|
194
|
+
<GifIcon size={13} color={AppColors.white} />
|
|
195
|
+
<Text style={previewStyles.playPillText}>ANIMATED GIF</Text>
|
|
196
|
+
</View>
|
|
197
|
+
</View>
|
|
198
|
+
)}
|
|
199
|
+
</View>
|
|
200
|
+
|
|
201
|
+
{/* Quick Details Card */}
|
|
202
|
+
<View style={previewStyles.metaPillRow}>
|
|
203
|
+
{item.width && item.height ? (
|
|
204
|
+
<View style={previewStyles.metaPill}>
|
|
205
|
+
<Text style={previewStyles.metaPillLabel}>DIMENSIONS</Text>
|
|
206
|
+
<Text style={previewStyles.metaPillValue}>{`${item.width} × ${item.height}`}</Text>
|
|
207
|
+
</View>
|
|
208
|
+
) : null}
|
|
209
|
+
<View style={previewStyles.metaPill}>
|
|
210
|
+
<Text style={previewStyles.metaPillLabel}>SIZE</Text>
|
|
211
|
+
<Text style={previewStyles.metaPillValue}>{formatBytes(item.sizeBytes)}</Text>
|
|
212
|
+
</View>
|
|
213
|
+
{durationSec ? (
|
|
214
|
+
<View style={previewStyles.metaPill}>
|
|
215
|
+
<Text style={previewStyles.metaPillLabel}>DURATION</Text>
|
|
216
|
+
<Text style={previewStyles.metaPillValue}>{`${durationSec}s`}</Text>
|
|
217
|
+
</View>
|
|
218
|
+
) : null}
|
|
219
|
+
</View>
|
|
220
|
+
</View>
|
|
221
|
+
|
|
222
|
+
{/* Bottom Toolbar */}
|
|
223
|
+
<View style={previewStyles.footer}>
|
|
224
|
+
{isVideo && onConvertToGif && (
|
|
225
|
+
<TouchableScale
|
|
226
|
+
onPress={handleConvert}
|
|
227
|
+
disabled={isConverting}
|
|
228
|
+
style={[
|
|
229
|
+
previewStyles.actionBtn,
|
|
230
|
+
{
|
|
231
|
+
backgroundColor: `${AppColors.warningAmber}25`,
|
|
232
|
+
borderColor: `${AppColors.warningAmber}70`,
|
|
233
|
+
},
|
|
234
|
+
]}>
|
|
235
|
+
<GifIcon size={15} color={AppColors.warningAmber} />
|
|
236
|
+
<Text style={[previewStyles.actionText, {color: AppColors.warningAmber}]}>
|
|
237
|
+
{isConverting ? t('mediaGallery.converting') : t('mediaGallery.convertToGif')}
|
|
238
|
+
</Text>
|
|
239
|
+
</TouchableScale>
|
|
240
|
+
)}
|
|
241
|
+
|
|
242
|
+
<TouchableScale onPress={handleShare} style={previewStyles.actionBtn}>
|
|
243
|
+
<SendIcon size={15} color={AppColors.sky400} />
|
|
244
|
+
<Text style={previewStyles.actionText}>{t('mediaGallery.share')}</Text>
|
|
245
|
+
</TouchableScale>
|
|
246
|
+
|
|
247
|
+
<TouchableScale onPress={handleCopyUri} style={previewStyles.actionBtn}>
|
|
248
|
+
<CopyIcon size={15} color={AppColors.white} />
|
|
249
|
+
<Text style={previewStyles.actionText}>{t('mediaGallery.copyUri')}</Text>
|
|
250
|
+
</TouchableScale>
|
|
251
|
+
|
|
252
|
+
<TouchableScale
|
|
253
|
+
onPress={handleDelete}
|
|
254
|
+
style={[
|
|
255
|
+
previewStyles.actionBtn,
|
|
256
|
+
{
|
|
257
|
+
backgroundColor: `${AppColors.red500}25`,
|
|
258
|
+
borderColor: `${AppColors.red500}70`,
|
|
259
|
+
},
|
|
260
|
+
]}>
|
|
261
|
+
<TrashIcon size={15} color={AppColors.red500} />
|
|
262
|
+
<Text style={[previewStyles.actionText, {color: AppColors.red500}]}>
|
|
263
|
+
{t('mediaGallery.delete')}
|
|
264
|
+
</Text>
|
|
265
|
+
</TouchableScale>
|
|
266
|
+
</View>
|
|
267
|
+
</View>
|
|
268
|
+
</Modal>
|
|
269
|
+
);
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
const {width: SCREEN_WIDTH, height: SCREEN_HEIGHT} = Dimensions.get('window');
|
|
273
|
+
|
|
274
|
+
const previewStyles = StyleSheet.create({
|
|
275
|
+
overlay: {
|
|
276
|
+
flex: 1,
|
|
277
|
+
backgroundColor: '#090D16FA',
|
|
278
|
+
justifyContent: 'space-between',
|
|
279
|
+
},
|
|
280
|
+
header: {
|
|
281
|
+
flexDirection: 'row',
|
|
282
|
+
alignItems: 'center',
|
|
283
|
+
justifyContent: 'space-between',
|
|
284
|
+
paddingHorizontal: 16,
|
|
285
|
+
paddingTop: Platform.OS === 'ios' ? 52 : 20,
|
|
286
|
+
paddingBottom: 14,
|
|
287
|
+
borderBottomWidth: 1,
|
|
288
|
+
borderBottomColor: AppColors.borderGlassLight,
|
|
289
|
+
backgroundColor: AppColors.headerGlassDark,
|
|
290
|
+
},
|
|
291
|
+
headerLeft: {
|
|
292
|
+
flexDirection: 'row',
|
|
293
|
+
alignItems: 'center',
|
|
294
|
+
gap: 10,
|
|
295
|
+
flex: 1,
|
|
296
|
+
minWidth: 0,
|
|
297
|
+
marginRight: 10,
|
|
298
|
+
},
|
|
299
|
+
badge: {
|
|
300
|
+
flexDirection: 'row',
|
|
301
|
+
alignItems: 'center',
|
|
302
|
+
gap: 4,
|
|
303
|
+
paddingHorizontal: 8,
|
|
304
|
+
paddingVertical: 4,
|
|
305
|
+
borderRadius: 6,
|
|
306
|
+
borderWidth: 1,
|
|
307
|
+
},
|
|
308
|
+
badgeText: {
|
|
309
|
+
fontFamily: AppFonts.interBold,
|
|
310
|
+
fontSize: 10.5,
|
|
311
|
+
letterSpacing: 0.4,
|
|
312
|
+
},
|
|
313
|
+
title: {
|
|
314
|
+
fontFamily: AppFonts.interSemiBold,
|
|
315
|
+
fontSize: 13.5,
|
|
316
|
+
color: AppColors.white,
|
|
317
|
+
},
|
|
318
|
+
subtitle: {
|
|
319
|
+
fontFamily: AppFonts.interRegular,
|
|
320
|
+
fontSize: 11,
|
|
321
|
+
color: AppColors.whiteAlpha60,
|
|
322
|
+
marginTop: 1,
|
|
323
|
+
},
|
|
324
|
+
closeBtn: {
|
|
325
|
+
width: 32,
|
|
326
|
+
height: 32,
|
|
327
|
+
borderRadius: 16,
|
|
328
|
+
backgroundColor: AppColors.whiteAlpha12,
|
|
329
|
+
alignItems: 'center',
|
|
330
|
+
justifyContent: 'center',
|
|
331
|
+
},
|
|
332
|
+
stage: {
|
|
333
|
+
flex: 1,
|
|
334
|
+
alignItems: 'center',
|
|
335
|
+
justifyContent: 'center',
|
|
336
|
+
paddingHorizontal: 16,
|
|
337
|
+
paddingVertical: 12,
|
|
338
|
+
},
|
|
339
|
+
previewCard: {
|
|
340
|
+
width: SCREEN_WIDTH - 32,
|
|
341
|
+
height: SCREEN_HEIGHT * 0.60,
|
|
342
|
+
borderRadius: 12,
|
|
343
|
+
overflow: 'hidden',
|
|
344
|
+
backgroundColor: '#05070D',
|
|
345
|
+
borderWidth: 1,
|
|
346
|
+
borderColor: AppColors.borderGlassLight,
|
|
347
|
+
alignItems: 'center',
|
|
348
|
+
justifyContent: 'center',
|
|
349
|
+
position: 'relative',
|
|
350
|
+
},
|
|
351
|
+
image: {
|
|
352
|
+
width: '100%',
|
|
353
|
+
height: '100%',
|
|
354
|
+
},
|
|
355
|
+
videoBadgeOverlay: {
|
|
356
|
+
position: 'absolute',
|
|
357
|
+
bottom: 12,
|
|
358
|
+
left: 12,
|
|
359
|
+
},
|
|
360
|
+
playPill: {
|
|
361
|
+
flexDirection: 'row',
|
|
362
|
+
alignItems: 'center',
|
|
363
|
+
gap: 6,
|
|
364
|
+
backgroundColor: `${AppColors.slate900}D9`,
|
|
365
|
+
paddingHorizontal: 10,
|
|
366
|
+
paddingVertical: 5,
|
|
367
|
+
borderRadius: 16,
|
|
368
|
+
borderWidth: 1,
|
|
369
|
+
borderColor: AppColors.whiteAlpha20,
|
|
370
|
+
},
|
|
371
|
+
playPillText: {
|
|
372
|
+
fontFamily: AppFonts.interSemiBold,
|
|
373
|
+
fontSize: 11,
|
|
374
|
+
color: AppColors.white,
|
|
375
|
+
letterSpacing: 0.3,
|
|
376
|
+
},
|
|
377
|
+
metaPillRow: {
|
|
378
|
+
flexDirection: 'row',
|
|
379
|
+
alignItems: 'center',
|
|
380
|
+
justifyContent: 'center',
|
|
381
|
+
gap: 8,
|
|
382
|
+
marginTop: 14,
|
|
383
|
+
flexWrap: 'wrap',
|
|
384
|
+
},
|
|
385
|
+
metaPill: {
|
|
386
|
+
backgroundColor: AppColors.whiteAlpha08,
|
|
387
|
+
paddingHorizontal: 10,
|
|
388
|
+
paddingVertical: 5,
|
|
389
|
+
borderRadius: 8,
|
|
390
|
+
borderWidth: 1,
|
|
391
|
+
borderColor: AppColors.whiteAlpha12,
|
|
392
|
+
alignItems: 'center',
|
|
393
|
+
},
|
|
394
|
+
metaPillLabel: {
|
|
395
|
+
fontFamily: AppFonts.interMedium,
|
|
396
|
+
fontSize: 9,
|
|
397
|
+
color: AppColors.slate400,
|
|
398
|
+
letterSpacing: 0.4,
|
|
399
|
+
},
|
|
400
|
+
metaPillValue: {
|
|
401
|
+
fontFamily: AppFonts.interSemiBold,
|
|
402
|
+
fontSize: 11.5,
|
|
403
|
+
color: AppColors.white,
|
|
404
|
+
marginTop: 1,
|
|
405
|
+
},
|
|
406
|
+
footer: {
|
|
407
|
+
flexDirection: 'row',
|
|
408
|
+
alignItems: 'center',
|
|
409
|
+
justifyContent: 'center',
|
|
410
|
+
flexWrap: 'wrap',
|
|
411
|
+
gap: 8,
|
|
412
|
+
paddingHorizontal: 16,
|
|
413
|
+
paddingTop: 12,
|
|
414
|
+
paddingBottom: Platform.OS === 'ios' ? 36 : 20,
|
|
415
|
+
borderTopWidth: 1,
|
|
416
|
+
borderTopColor: AppColors.borderGlassLight,
|
|
417
|
+
backgroundColor: AppColors.headerGlassDark,
|
|
418
|
+
},
|
|
419
|
+
actionBtn: {
|
|
420
|
+
flexDirection: 'row',
|
|
421
|
+
alignItems: 'center',
|
|
422
|
+
gap: 6,
|
|
423
|
+
paddingHorizontal: 14,
|
|
424
|
+
paddingVertical: 9,
|
|
425
|
+
borderRadius: 8,
|
|
426
|
+
backgroundColor: AppColors.whiteAlpha08,
|
|
427
|
+
borderWidth: 1,
|
|
428
|
+
borderColor: AppColors.whiteAlpha15,
|
|
429
|
+
},
|
|
430
|
+
actionText: {
|
|
431
|
+
fontFamily: AppFonts.interMedium,
|
|
432
|
+
fontSize: 12,
|
|
433
|
+
color: AppColors.white,
|
|
434
|
+
},
|
|
435
|
+
});
|
|
@@ -2,6 +2,7 @@ import React, {useCallback, useMemo, useRef} from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Animated,
|
|
4
4
|
FlatList,
|
|
5
|
+
Platform,
|
|
5
6
|
Pressable,
|
|
6
7
|
ScrollView,
|
|
7
8
|
Text,
|
|
@@ -311,7 +312,6 @@ const NetworkTab = React.memo(() => {
|
|
|
311
312
|
isSelected={selectedLogs.has(log.id)}
|
|
312
313
|
onToggleSelect={toggleSelect}
|
|
313
314
|
onPress={() => {
|
|
314
|
-
animateNextLayout();
|
|
315
315
|
setSelected(log);
|
|
316
316
|
}}
|
|
317
317
|
timelineMinStart={minStart}
|
|
@@ -338,18 +338,7 @@ const NetworkTab = React.memo(() => {
|
|
|
338
338
|
|
|
339
339
|
return (
|
|
340
340
|
<View style={{flex: 1}}>
|
|
341
|
-
<
|
|
342
|
-
ref={apisListRef}
|
|
343
|
-
data={groupedData}
|
|
344
|
-
keyExtractor={item => item?.id?.toString()}
|
|
345
|
-
renderItem={renderItem}
|
|
346
|
-
initialNumToRender={12}
|
|
347
|
-
maxToRenderPerBatch={8}
|
|
348
|
-
windowSize={5}
|
|
349
|
-
removeClippedSubviews={true}
|
|
350
|
-
renderToHardwareTextureAndroid={true}
|
|
351
|
-
ListHeaderComponent={
|
|
352
|
-
<View style={{marginTop: 6}}>
|
|
341
|
+
<View style={{marginTop: 6}}>
|
|
353
342
|
{/* Network Health & Telemetry Strip */}
|
|
354
343
|
{networkMetrics != null && networkMetrics.totalCount > 0 && (
|
|
355
344
|
<View
|
|
@@ -770,8 +759,18 @@ const NetworkTab = React.memo(() => {
|
|
|
770
759
|
</View>
|
|
771
760
|
)}
|
|
772
761
|
</View>
|
|
773
|
-
|
|
774
|
-
|
|
762
|
+
|
|
763
|
+
<FlatList
|
|
764
|
+
ref={apisListRef}
|
|
765
|
+
data={groupedData}
|
|
766
|
+
keyExtractor={item => item?.id?.toString()}
|
|
767
|
+
renderItem={renderItem}
|
|
768
|
+
initialNumToRender={12}
|
|
769
|
+
maxToRenderPerBatch={8}
|
|
770
|
+
windowSize={5}
|
|
771
|
+
removeClippedSubviews={Platform.OS === 'android'}
|
|
772
|
+
renderToHardwareTextureAndroid={true}
|
|
773
|
+
ListEmptyComponent={
|
|
775
774
|
<EmptyState
|
|
776
775
|
isSearch={
|
|
777
776
|
search.length > 0 ||
|
|
@@ -14,6 +14,7 @@ import {LIB_VERSION} from '../../constants';
|
|
|
14
14
|
import {NpmIcon} from '../NetworkIcons';
|
|
15
15
|
import {copyToClipboard} from '../../helpers';
|
|
16
16
|
import {showToast} from '../../helpers/toast';
|
|
17
|
+
import {AppFonts} from '../../styles/AppFonts';
|
|
17
18
|
|
|
18
19
|
const CloseSvg = ({size = 13, color = '#94A3B8'}: {size?: number; color?: string}) => (
|
|
19
20
|
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
@@ -243,15 +244,9 @@ export const NpmUpdateToast = () => {
|
|
|
243
244
|
);
|
|
244
245
|
};
|
|
245
246
|
|
|
246
|
-
const fontStack =
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
},
|
|
250
|
-
android: {
|
|
251
|
-
fontFamily: 'sans-serif',
|
|
252
|
-
},
|
|
253
|
-
default: {},
|
|
254
|
-
});
|
|
247
|
+
const fontStack = {
|
|
248
|
+
fontFamily: AppFonts.interRegular,
|
|
249
|
+
};
|
|
255
250
|
|
|
256
251
|
const styles = StyleSheet.create({
|
|
257
252
|
container: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, {useCallback, useMemo, useRef, useState} from 'react';
|
|
2
2
|
import {
|
|
3
3
|
FlatList,
|
|
4
|
+
Platform,
|
|
4
5
|
Pressable,
|
|
5
6
|
StyleSheet,
|
|
6
7
|
Text,
|
|
@@ -300,7 +301,9 @@ const ReduxTab = React.memo(() => {
|
|
|
300
301
|
return (
|
|
301
302
|
<AnimatedEntrance index={index} distance={8}>
|
|
302
303
|
<TouchableScale
|
|
303
|
-
onPress={() =>
|
|
304
|
+
onPress={() => {
|
|
305
|
+
setSelectedReduxSlice(item.name);
|
|
306
|
+
}}
|
|
304
307
|
style={[
|
|
305
308
|
reduxTabStyles.card,
|
|
306
309
|
isRecentlyUpdated && reduxTabStyles.cardRecentlyUpdated,
|
|
@@ -666,7 +669,7 @@ const ReduxTab = React.memo(() => {
|
|
|
666
669
|
initialNumToRender={12}
|
|
667
670
|
maxToRenderPerBatch={8}
|
|
668
671
|
windowSize={5}
|
|
669
|
-
removeClippedSubviews={
|
|
672
|
+
removeClippedSubviews={Platform.OS === 'android'}
|
|
670
673
|
renderToHardwareTextureAndroid={true}
|
|
671
674
|
ListEmptyComponent={
|
|
672
675
|
<EmptyState
|