react-native-inapp-inspector 2.3.16 → 2.3.17
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,393 @@
|
|
|
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.MediaPreviewModal = void 0;
|
|
40
|
+
const react_1 = __importStar(require("react"));
|
|
41
|
+
const react_native_1 = require("react-native");
|
|
42
|
+
const AppColors_1 = require("../../styles/AppColors");
|
|
43
|
+
const AppFonts_1 = require("../../styles/AppFonts");
|
|
44
|
+
const TouchableScale_1 = __importDefault(require("../TouchableScale"));
|
|
45
|
+
const NetworkIcons_1 = require("../NetworkIcons");
|
|
46
|
+
const helpers_1 = require("../../helpers");
|
|
47
|
+
const toast_1 = require("../../helpers/toast");
|
|
48
|
+
const i18n_1 = require("../../i18n");
|
|
49
|
+
const MediaPreviewModal = ({ item, visible, onClose, onDelete, onConvertToGif, }) => {
|
|
50
|
+
const { t } = (0, i18n_1.useTranslation)();
|
|
51
|
+
const [isConverting, setIsConverting] = (0, react_1.useState)(false);
|
|
52
|
+
const [imageError, setImageError] = (0, react_1.useState)(false);
|
|
53
|
+
if (!item)
|
|
54
|
+
return null;
|
|
55
|
+
const handleShare = async () => {
|
|
56
|
+
try {
|
|
57
|
+
await react_native_1.Share.share(react_native_1.Platform.OS === 'ios'
|
|
58
|
+
? { url: item.uri, title: item.filename }
|
|
59
|
+
: { message: `Captured media: ${item.filename}`, url: item.uri });
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
(0, toast_1.showToast)(t('mediaGallery.shareUnavailable'));
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const handleCopyUri = () => {
|
|
66
|
+
(0, helpers_1.copyToClipboard)(item.uri);
|
|
67
|
+
(0, toast_1.showToast)(t('mediaGallery.uriCopied'));
|
|
68
|
+
};
|
|
69
|
+
const handleDelete = () => {
|
|
70
|
+
react_native_1.Alert.alert(t('mediaGallery.deleteTitle'), t('mediaGallery.deleteMessage', { filename: item.filename }), [
|
|
71
|
+
{ text: t('common.cancel'), style: 'cancel' },
|
|
72
|
+
{
|
|
73
|
+
text: t('mediaGallery.delete'),
|
|
74
|
+
style: 'destructive',
|
|
75
|
+
onPress: () => {
|
|
76
|
+
onDelete(item);
|
|
77
|
+
onClose();
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
]);
|
|
81
|
+
};
|
|
82
|
+
const handleConvert = async () => {
|
|
83
|
+
if (!onConvertToGif)
|
|
84
|
+
return;
|
|
85
|
+
setIsConverting(true);
|
|
86
|
+
try {
|
|
87
|
+
await onConvertToGif(item);
|
|
88
|
+
(0, toast_1.showToast)(t('mediaGallery.convertedSuccess'));
|
|
89
|
+
}
|
|
90
|
+
catch {
|
|
91
|
+
(0, toast_1.showToast)(t('mediaGallery.convertFailed'));
|
|
92
|
+
}
|
|
93
|
+
finally {
|
|
94
|
+
setIsConverting(false);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const isVideo = item.type === 'video';
|
|
98
|
+
const isGif = item.type === 'gif';
|
|
99
|
+
const durationSec = item.durationMs ? (item.durationMs / 1000).toFixed(1) : null;
|
|
100
|
+
return (<react_native_1.Modal visible={visible} transparent={true} animationType="fade" onRequestClose={onClose}>
|
|
101
|
+
<react_native_1.View style={previewStyles.overlay}>
|
|
102
|
+
|
|
103
|
+
<react_native_1.View style={previewStyles.header}>
|
|
104
|
+
<react_native_1.View style={previewStyles.headerLeft}>
|
|
105
|
+
<react_native_1.View style={[
|
|
106
|
+
previewStyles.badge,
|
|
107
|
+
{
|
|
108
|
+
borderColor: isVideo
|
|
109
|
+
? `${AppColors_1.AppColors.sky400}80`
|
|
110
|
+
: isGif
|
|
111
|
+
? `${AppColors_1.AppColors.warningAmber}80`
|
|
112
|
+
: `${AppColors_1.AppColors.emerald500}80`,
|
|
113
|
+
backgroundColor: isVideo
|
|
114
|
+
? `${AppColors_1.AppColors.sky400}20`
|
|
115
|
+
: isGif
|
|
116
|
+
? `${AppColors_1.AppColors.warningAmber}20`
|
|
117
|
+
: `${AppColors_1.AppColors.emerald500}20`,
|
|
118
|
+
},
|
|
119
|
+
]}>
|
|
120
|
+
{isVideo ? (<NetworkIcons_1.FilmIcon size={13} color={AppColors_1.AppColors.sky400}/>) : isGif ? (<NetworkIcons_1.GifIcon size={13} color={AppColors_1.AppColors.warningAmber}/>) : (<NetworkIcons_1.ImageIcon size={13} color={AppColors_1.AppColors.emerald500}/>)}
|
|
121
|
+
<react_native_1.Text style={[
|
|
122
|
+
previewStyles.badgeText,
|
|
123
|
+
{
|
|
124
|
+
color: isVideo
|
|
125
|
+
? AppColors_1.AppColors.sky400
|
|
126
|
+
: isGif
|
|
127
|
+
? AppColors_1.AppColors.warningAmber
|
|
128
|
+
: AppColors_1.AppColors.emerald500,
|
|
129
|
+
},
|
|
130
|
+
]}>
|
|
131
|
+
{item.format.toUpperCase()}
|
|
132
|
+
</react_native_1.Text>
|
|
133
|
+
</react_native_1.View>
|
|
134
|
+
<react_native_1.View style={{ flex: 1, minWidth: 0 }}>
|
|
135
|
+
<react_native_1.Text style={previewStyles.title} numberOfLines={1}>
|
|
136
|
+
{item.filename}
|
|
137
|
+
</react_native_1.Text>
|
|
138
|
+
<react_native_1.Text style={previewStyles.subtitle}>
|
|
139
|
+
{(0, helpers_1.formatBytes)(item.sizeBytes)} • {new Date(item.timestamp).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' })}
|
|
140
|
+
</react_native_1.Text>
|
|
141
|
+
</react_native_1.View>
|
|
142
|
+
</react_native_1.View>
|
|
143
|
+
<react_native_1.TouchableOpacity onPress={onClose} style={previewStyles.closeBtn} hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}>
|
|
144
|
+
<NetworkIcons_1.CloseWhite size={14} color={AppColors_1.AppColors.white}/>
|
|
145
|
+
</react_native_1.TouchableOpacity>
|
|
146
|
+
</react_native_1.View>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
<react_native_1.View style={previewStyles.stage}>
|
|
150
|
+
<react_native_1.View style={previewStyles.previewCard}>
|
|
151
|
+
<react_native_1.Image source={{ uri: item.uri }} style={previewStyles.image} resizeMode="contain" onError={() => setImageError(true)}/>
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
{isVideo && (<react_native_1.View style={previewStyles.videoBadgeOverlay}>
|
|
155
|
+
<react_native_1.View style={previewStyles.playPill}>
|
|
156
|
+
<NetworkIcons_1.FilmIcon size={13} color={AppColors_1.AppColors.white}/>
|
|
157
|
+
<react_native_1.Text style={previewStyles.playPillText}>
|
|
158
|
+
{durationSec ? `${durationSec}s` : 'VIDEO'}
|
|
159
|
+
</react_native_1.Text>
|
|
160
|
+
</react_native_1.View>
|
|
161
|
+
</react_native_1.View>)}
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
{isGif && (<react_native_1.View style={previewStyles.videoBadgeOverlay}>
|
|
165
|
+
<react_native_1.View style={[previewStyles.playPill, { backgroundColor: `${AppColors_1.AppColors.warningAmber}CC` }]}>
|
|
166
|
+
<NetworkIcons_1.GifIcon size={13} color={AppColors_1.AppColors.white}/>
|
|
167
|
+
<react_native_1.Text style={previewStyles.playPillText}>ANIMATED GIF</react_native_1.Text>
|
|
168
|
+
</react_native_1.View>
|
|
169
|
+
</react_native_1.View>)}
|
|
170
|
+
</react_native_1.View>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<react_native_1.View style={previewStyles.metaPillRow}>
|
|
174
|
+
{item.width && item.height ? (<react_native_1.View style={previewStyles.metaPill}>
|
|
175
|
+
<react_native_1.Text style={previewStyles.metaPillLabel}>DIMENSIONS</react_native_1.Text>
|
|
176
|
+
<react_native_1.Text style={previewStyles.metaPillValue}>{`${item.width} × ${item.height}`}</react_native_1.Text>
|
|
177
|
+
</react_native_1.View>) : null}
|
|
178
|
+
<react_native_1.View style={previewStyles.metaPill}>
|
|
179
|
+
<react_native_1.Text style={previewStyles.metaPillLabel}>SIZE</react_native_1.Text>
|
|
180
|
+
<react_native_1.Text style={previewStyles.metaPillValue}>{(0, helpers_1.formatBytes)(item.sizeBytes)}</react_native_1.Text>
|
|
181
|
+
</react_native_1.View>
|
|
182
|
+
{durationSec ? (<react_native_1.View style={previewStyles.metaPill}>
|
|
183
|
+
<react_native_1.Text style={previewStyles.metaPillLabel}>DURATION</react_native_1.Text>
|
|
184
|
+
<react_native_1.Text style={previewStyles.metaPillValue}>{`${durationSec}s`}</react_native_1.Text>
|
|
185
|
+
</react_native_1.View>) : null}
|
|
186
|
+
</react_native_1.View>
|
|
187
|
+
</react_native_1.View>
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
<react_native_1.View style={previewStyles.footer}>
|
|
191
|
+
{isVideo && onConvertToGif && (<TouchableScale_1.default onPress={handleConvert} disabled={isConverting} style={[
|
|
192
|
+
previewStyles.actionBtn,
|
|
193
|
+
{
|
|
194
|
+
backgroundColor: `${AppColors_1.AppColors.warningAmber}25`,
|
|
195
|
+
borderColor: `${AppColors_1.AppColors.warningAmber}70`,
|
|
196
|
+
},
|
|
197
|
+
]}>
|
|
198
|
+
<NetworkIcons_1.GifIcon size={15} color={AppColors_1.AppColors.warningAmber}/>
|
|
199
|
+
<react_native_1.Text style={[previewStyles.actionText, { color: AppColors_1.AppColors.warningAmber }]}>
|
|
200
|
+
{isConverting ? t('mediaGallery.converting') : t('mediaGallery.convertToGif')}
|
|
201
|
+
</react_native_1.Text>
|
|
202
|
+
</TouchableScale_1.default>)}
|
|
203
|
+
|
|
204
|
+
<TouchableScale_1.default onPress={handleShare} style={previewStyles.actionBtn}>
|
|
205
|
+
<NetworkIcons_1.SendIcon size={15} color={AppColors_1.AppColors.sky400}/>
|
|
206
|
+
<react_native_1.Text style={previewStyles.actionText}>{t('mediaGallery.share')}</react_native_1.Text>
|
|
207
|
+
</TouchableScale_1.default>
|
|
208
|
+
|
|
209
|
+
<TouchableScale_1.default onPress={handleCopyUri} style={previewStyles.actionBtn}>
|
|
210
|
+
<NetworkIcons_1.CopyIcon size={15} color={AppColors_1.AppColors.white}/>
|
|
211
|
+
<react_native_1.Text style={previewStyles.actionText}>{t('mediaGallery.copyUri')}</react_native_1.Text>
|
|
212
|
+
</TouchableScale_1.default>
|
|
213
|
+
|
|
214
|
+
<TouchableScale_1.default onPress={handleDelete} style={[
|
|
215
|
+
previewStyles.actionBtn,
|
|
216
|
+
{
|
|
217
|
+
backgroundColor: `${AppColors_1.AppColors.red500}25`,
|
|
218
|
+
borderColor: `${AppColors_1.AppColors.red500}70`,
|
|
219
|
+
},
|
|
220
|
+
]}>
|
|
221
|
+
<NetworkIcons_1.TrashIcon size={15} color={AppColors_1.AppColors.red500}/>
|
|
222
|
+
<react_native_1.Text style={[previewStyles.actionText, { color: AppColors_1.AppColors.red500 }]}>
|
|
223
|
+
{t('mediaGallery.delete')}
|
|
224
|
+
</react_native_1.Text>
|
|
225
|
+
</TouchableScale_1.default>
|
|
226
|
+
</react_native_1.View>
|
|
227
|
+
</react_native_1.View>
|
|
228
|
+
</react_native_1.Modal>);
|
|
229
|
+
};
|
|
230
|
+
exports.MediaPreviewModal = MediaPreviewModal;
|
|
231
|
+
const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = react_native_1.Dimensions.get('window');
|
|
232
|
+
const previewStyles = react_native_1.StyleSheet.create({
|
|
233
|
+
overlay: {
|
|
234
|
+
flex: 1,
|
|
235
|
+
backgroundColor: '#090D16FA',
|
|
236
|
+
justifyContent: 'space-between',
|
|
237
|
+
},
|
|
238
|
+
header: {
|
|
239
|
+
flexDirection: 'row',
|
|
240
|
+
alignItems: 'center',
|
|
241
|
+
justifyContent: 'space-between',
|
|
242
|
+
paddingHorizontal: 16,
|
|
243
|
+
paddingTop: react_native_1.Platform.OS === 'ios' ? 52 : 20,
|
|
244
|
+
paddingBottom: 14,
|
|
245
|
+
borderBottomWidth: 1,
|
|
246
|
+
borderBottomColor: AppColors_1.AppColors.borderGlassLight,
|
|
247
|
+
backgroundColor: AppColors_1.AppColors.headerGlassDark,
|
|
248
|
+
},
|
|
249
|
+
headerLeft: {
|
|
250
|
+
flexDirection: 'row',
|
|
251
|
+
alignItems: 'center',
|
|
252
|
+
gap: 10,
|
|
253
|
+
flex: 1,
|
|
254
|
+
minWidth: 0,
|
|
255
|
+
marginRight: 10,
|
|
256
|
+
},
|
|
257
|
+
badge: {
|
|
258
|
+
flexDirection: 'row',
|
|
259
|
+
alignItems: 'center',
|
|
260
|
+
gap: 4,
|
|
261
|
+
paddingHorizontal: 8,
|
|
262
|
+
paddingVertical: 4,
|
|
263
|
+
borderRadius: 6,
|
|
264
|
+
borderWidth: 1,
|
|
265
|
+
},
|
|
266
|
+
badgeText: {
|
|
267
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
268
|
+
fontSize: 10.5,
|
|
269
|
+
letterSpacing: 0.4,
|
|
270
|
+
},
|
|
271
|
+
title: {
|
|
272
|
+
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
273
|
+
fontSize: 13.5,
|
|
274
|
+
color: AppColors_1.AppColors.white,
|
|
275
|
+
},
|
|
276
|
+
subtitle: {
|
|
277
|
+
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
278
|
+
fontSize: 11,
|
|
279
|
+
color: AppColors_1.AppColors.whiteAlpha60,
|
|
280
|
+
marginTop: 1,
|
|
281
|
+
},
|
|
282
|
+
closeBtn: {
|
|
283
|
+
width: 32,
|
|
284
|
+
height: 32,
|
|
285
|
+
borderRadius: 16,
|
|
286
|
+
backgroundColor: AppColors_1.AppColors.whiteAlpha12,
|
|
287
|
+
alignItems: 'center',
|
|
288
|
+
justifyContent: 'center',
|
|
289
|
+
},
|
|
290
|
+
stage: {
|
|
291
|
+
flex: 1,
|
|
292
|
+
alignItems: 'center',
|
|
293
|
+
justifyContent: 'center',
|
|
294
|
+
paddingHorizontal: 16,
|
|
295
|
+
paddingVertical: 12,
|
|
296
|
+
},
|
|
297
|
+
previewCard: {
|
|
298
|
+
width: SCREEN_WIDTH - 32,
|
|
299
|
+
height: SCREEN_HEIGHT * 0.60,
|
|
300
|
+
borderRadius: 12,
|
|
301
|
+
overflow: 'hidden',
|
|
302
|
+
backgroundColor: '#05070D',
|
|
303
|
+
borderWidth: 1,
|
|
304
|
+
borderColor: AppColors_1.AppColors.borderGlassLight,
|
|
305
|
+
alignItems: 'center',
|
|
306
|
+
justifyContent: 'center',
|
|
307
|
+
position: 'relative',
|
|
308
|
+
},
|
|
309
|
+
image: {
|
|
310
|
+
width: '100%',
|
|
311
|
+
height: '100%',
|
|
312
|
+
},
|
|
313
|
+
videoBadgeOverlay: {
|
|
314
|
+
position: 'absolute',
|
|
315
|
+
bottom: 12,
|
|
316
|
+
left: 12,
|
|
317
|
+
},
|
|
318
|
+
playPill: {
|
|
319
|
+
flexDirection: 'row',
|
|
320
|
+
alignItems: 'center',
|
|
321
|
+
gap: 6,
|
|
322
|
+
backgroundColor: `${AppColors_1.AppColors.slate900}D9`,
|
|
323
|
+
paddingHorizontal: 10,
|
|
324
|
+
paddingVertical: 5,
|
|
325
|
+
borderRadius: 16,
|
|
326
|
+
borderWidth: 1,
|
|
327
|
+
borderColor: AppColors_1.AppColors.whiteAlpha20,
|
|
328
|
+
},
|
|
329
|
+
playPillText: {
|
|
330
|
+
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
331
|
+
fontSize: 11,
|
|
332
|
+
color: AppColors_1.AppColors.white,
|
|
333
|
+
letterSpacing: 0.3,
|
|
334
|
+
},
|
|
335
|
+
metaPillRow: {
|
|
336
|
+
flexDirection: 'row',
|
|
337
|
+
alignItems: 'center',
|
|
338
|
+
justifyContent: 'center',
|
|
339
|
+
gap: 8,
|
|
340
|
+
marginTop: 14,
|
|
341
|
+
flexWrap: 'wrap',
|
|
342
|
+
},
|
|
343
|
+
metaPill: {
|
|
344
|
+
backgroundColor: AppColors_1.AppColors.whiteAlpha08,
|
|
345
|
+
paddingHorizontal: 10,
|
|
346
|
+
paddingVertical: 5,
|
|
347
|
+
borderRadius: 8,
|
|
348
|
+
borderWidth: 1,
|
|
349
|
+
borderColor: AppColors_1.AppColors.whiteAlpha12,
|
|
350
|
+
alignItems: 'center',
|
|
351
|
+
},
|
|
352
|
+
metaPillLabel: {
|
|
353
|
+
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
354
|
+
fontSize: 9,
|
|
355
|
+
color: AppColors_1.AppColors.slate400,
|
|
356
|
+
letterSpacing: 0.4,
|
|
357
|
+
},
|
|
358
|
+
metaPillValue: {
|
|
359
|
+
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
360
|
+
fontSize: 11.5,
|
|
361
|
+
color: AppColors_1.AppColors.white,
|
|
362
|
+
marginTop: 1,
|
|
363
|
+
},
|
|
364
|
+
footer: {
|
|
365
|
+
flexDirection: 'row',
|
|
366
|
+
alignItems: 'center',
|
|
367
|
+
justifyContent: 'center',
|
|
368
|
+
flexWrap: 'wrap',
|
|
369
|
+
gap: 8,
|
|
370
|
+
paddingHorizontal: 16,
|
|
371
|
+
paddingTop: 12,
|
|
372
|
+
paddingBottom: react_native_1.Platform.OS === 'ios' ? 36 : 20,
|
|
373
|
+
borderTopWidth: 1,
|
|
374
|
+
borderTopColor: AppColors_1.AppColors.borderGlassLight,
|
|
375
|
+
backgroundColor: AppColors_1.AppColors.headerGlassDark,
|
|
376
|
+
},
|
|
377
|
+
actionBtn: {
|
|
378
|
+
flexDirection: 'row',
|
|
379
|
+
alignItems: 'center',
|
|
380
|
+
gap: 6,
|
|
381
|
+
paddingHorizontal: 14,
|
|
382
|
+
paddingVertical: 9,
|
|
383
|
+
borderRadius: 8,
|
|
384
|
+
backgroundColor: AppColors_1.AppColors.whiteAlpha08,
|
|
385
|
+
borderWidth: 1,
|
|
386
|
+
borderColor: AppColors_1.AppColors.whiteAlpha15,
|
|
387
|
+
},
|
|
388
|
+
actionText: {
|
|
389
|
+
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
390
|
+
fontSize: 12,
|
|
391
|
+
color: AppColors_1.AppColors.white,
|
|
392
|
+
},
|
|
393
|
+
});
|