react-native-inapp-inspector 2.5.1 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ar.md +151 -53
- package/README.de.md +150 -52
- package/README.es.md +139 -42
- package/README.fr.md +151 -53
- package/README.hi.md +141 -43
- package/README.ja.md +150 -69
- package/README.ko.md +153 -55
- package/README.md +73 -14
- package/README.pt-BR.md +152 -54
- package/README.ru.md +153 -55
- package/README.zh-CN.md +95 -219
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/results.bin +1 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$activityEventListener$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$getCapturedMedia$lambda$57$$inlined$sortedByDescending$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$startVideoRecording$2$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/.transforms/c93e459e24d856bde563ebb048265732/results.bin +1 -0
- package/android/build/.transforms/c93e459e24d856bde563ebb048265732/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +10 -0
- package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +160 -0
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +212 -0
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +31 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +22 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +24 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +19 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +18 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +300 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +23 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +20 -0
- package/android/build/generated/source/codegen/schema.json +1 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +7 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -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 +1 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- 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 +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +7 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +7 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- 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$activityEventListener$1.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$getCapturedMedia$lambda$57$$inlined$sortedByDescending$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$startVideoRecording$2$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 +1 -0
- 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 +2 -0
- 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/logs/manifest-merger-debug-report.txt +17 -0
- package/android/build/reports/problems/problems-report.html +659 -0
- 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$activityEventListener$1.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$getCapturedMedia$lambda$57$$inlined$sortedByDescending$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$startVideoRecording$2$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
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +154 -9
- package/dist/commonjs/capture.d.ts +5 -2
- package/dist/commonjs/capture.js +1 -1
- package/dist/commonjs/components/CountryFlag.d.ts +10 -0
- package/dist/commonjs/components/CountryFlag.js +140 -0
- package/dist/commonjs/components/EmptyState.js +6 -6
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +36 -36
- package/dist/commonjs/components/Inspector/FabLauncher.js +12 -12
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +23 -23
- package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.js +24 -24
- package/dist/commonjs/components/Inspector/InspectorHeader.js +40 -42
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +23 -18
- package/dist/commonjs/components/Inspector/MainScreen.js +17 -17
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +52 -34
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +20 -18
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +742 -304
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +21 -21
- package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.js +6 -6
- package/dist/commonjs/components/Inspector/SocketFilterModal.js +12 -12
- package/dist/commonjs/components/Inspector/TabBar.js +3 -3
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +2 -2
- package/dist/commonjs/components/MetaAccordion.js +17 -17
- package/dist/commonjs/components/ModuleErrorBoundary.js +4 -4
- package/dist/commonjs/components/NetworkIcons.d.ts +19 -0
- package/dist/commonjs/components/NetworkIcons.js +87 -3
- package/dist/commonjs/components/SourcePageCard.js +9 -9
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -1
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -1
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -1
- package/dist/commonjs/i18n/locales/it.json +1 -1
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -1
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -1
- package/dist/commonjs/i18n/locales/mr.json +1 -1
- package/dist/commonjs/i18n/locales/nl.json +1 -1
- package/dist/commonjs/i18n/locales/pa.json +1 -1
- package/dist/commonjs/i18n/locales/pl.json +1 -1
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -1
- package/dist/commonjs/i18n/locales/te.json +1 -1
- package/dist/commonjs/i18n/locales/tr.json +1 -1
- package/dist/commonjs/i18n/locales/vi.json +1 -1
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.js +1 -1
- package/dist/commonjs/native/NativeInspector.d.ts +4 -0
- package/dist/commonjs/native/NativeInspector.js +1 -1
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/commonjs/styles/AppColors.d.ts +76 -0
- package/dist/commonjs/styles/AppColors.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +2 -0
- package/dist/esm/capture.d.ts +5 -2
- package/dist/esm/capture.js +1 -1
- package/dist/esm/components/CountryFlag.d.ts +10 -0
- package/dist/esm/components/CountryFlag.js +140 -0
- package/dist/esm/components/EmptyState.js +13 -13
- package/dist/esm/components/Inspector/DeviceInfoTab.js +176 -176
- package/dist/esm/components/Inspector/FabLauncher.js +37 -37
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +27 -27
- package/dist/esm/components/Inspector/GlobalCrashScreenModal.js +9 -9
- package/dist/esm/components/Inspector/InspectorHeader.js +43 -45
- package/dist/esm/components/Inspector/LanguageSelectorModal.js +107 -102
- package/dist/esm/components/Inspector/MainScreen.js +52 -52
- package/dist/esm/components/Inspector/MediaGalleryTab.js +100 -82
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +20 -18
- package/dist/esm/components/Inspector/MediaPreviewModal.js +764 -326
- package/dist/esm/components/Inspector/NetworkFilterModal.js +37 -37
- package/dist/esm/components/Inspector/SecondaryTelemetryStrip.js +20 -20
- package/dist/esm/components/Inspector/SocketFilterModal.js +32 -32
- package/dist/esm/components/Inspector/TabBar.js +12 -12
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +11 -11
- package/dist/esm/components/MetaAccordion.js +24 -24
- package/dist/esm/components/ModuleErrorBoundary.js +20 -20
- package/dist/esm/components/NetworkIcons.d.ts +19 -0
- package/dist/esm/components/NetworkIcons.js +89 -5
- package/dist/esm/components/SourcePageCard.js +21 -21
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -1
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -1
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -1
- package/dist/esm/i18n/locales/it.json +1 -1
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -1
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -1
- package/dist/esm/i18n/locales/mr.json +1 -1
- package/dist/esm/i18n/locales/nl.json +1 -1
- package/dist/esm/i18n/locales/pa.json +1 -1
- package/dist/esm/i18n/locales/pl.json +1 -1
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -1
- package/dist/esm/i18n/locales/te.json +1 -1
- package/dist/esm/i18n/locales/tr.json +1 -1
- package/dist/esm/i18n/locales/vi.json +1 -1
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/native/NativeInspector.d.ts +4 -0
- package/dist/esm/native/NativeInspector.js +1 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/esm/styles/AppColors.d.ts +76 -0
- package/dist/esm/styles/AppColors.js +1 -1
- package/dist/esm/types/interfaces.d.ts +2 -0
- package/ios/NetworkInspectorModule.mm +487 -224
- package/package.json +1 -1
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +22 -0
- package/src/native/NativeNetworkInspector.ts +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
{(
|
|
3
|
-
<Se visible={
|
|
4
|
-
<Me onClose={
|
|
5
|
-
<B style={[
|
|
6
|
-
<Be style={
|
|
7
|
-
<B style={[
|
|
1
|
+
import se,{useEffect as P,useRef as L}from"react";import{Animated as o,Modal as Se,Platform as q,Pressable as Be,StatusBar as Ce,StyleSheet as T,View as B}from"react-native";import{useInspector as Ve}from"./InspectorContext";import Me from"../ErrorBoundary";import S from"../ModuleErrorBoundary";import Ne from"./FabLauncher";import Re from"./InspectorHeader";import{SecondaryTelemetryStrip as De}from"./SecondaryTelemetryStrip";import Te from"./TabBar";import Ee from"./NetworkTab";import Ae from"./NetworkDetail";import Pe from"./LogDetail";import Le from"./ConsoleTab";import Ie from"./AnalyticsTab";import Oe from"../AnalyticsDetail";import We from"./ReduxTab";import Fe from"./ReduxDetail";import Ge from"./CrashTab";import He from"./CrashDetail";import Ye from"./PushTab";import Ue from"./PushDetail";import _e from"./SocketTab";import $e from"./SocketDetail";import Je from"./DeviceInfoTab";import Ke from"./StorageTab";import Qe from"./DebuggingTab";import{MediaGalleryTab as Xe}from"./MediaGalleryTab";import Ze from"./SettingsPanel";import So from"./AboutModal";import{SupportPage as Bo}from"./SupportPage";import{ConfirmationModal as Co}from"./ConfirmationModal";import{FloatingCaptureWidget as Vo}from"./FloatingCaptureWidget";import Mo from"./NpmUpdateToast";import No from"./NpmStarPrompt";import Ro from"../Toast";import H from"../../styles";import{AppColors as C}from"../../styles/AppColors";import Do from"./NavigationTracker";import{isLocalDebugEnvironment as To}from"../../helpers";const xo=()=>{const{visible:I,modalAnimationType:V,closeModal:M,modalHeightPercent:O,selected:Y,selectedEvent:W,selectedLog:U,selectedReduxSlice:j,selectedReduxAction:J,selectedCrash:_,selectedPush:F,setSelectedPush:K,selectedSocket:z,setSelectedSocket:Q,settingsPage:N,isAboutOpen:R,setIsAboutOpen:X,isSupportOpen:D,setIsSupportOpen:Z,activeTab:e,isReady:ee,enabled:oe,isDismissed:te,hasNavigationContext:re,setNavState:ae,confirmModal:v,setConfirmModal:ie,peekMode:le,peekOpacity:$}=Ve(),G=e==="apis"&&Y!=null||e==="analytics"&&W!=null||e==="logs"&&U!=null||e==="redux"&&(j!=null||J!=null)||e==="crash"&&_!=null||e==="push"&&F!=null||e==="socket"&&z!=null,x=L(new o.Value(0)).current;P(()=>{N!==null&&(x.setValue(0),o.spring(x,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[N!==null]);const E=L(new o.Value(0)).current;P(()=>{R&&(E.setValue(0),o.spring(E,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[R]);const A=L(new o.Value(0)).current;return P(()=>{D&&(A.setValue(0),o.spring(A,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[D]),<>
|
|
2
|
+
{(q.OS==="ios"||q.OS==="android")&&oe&&!te&&!I&&<Ne/>}
|
|
3
|
+
<Se visible={I}animationType={V}transparent statusBarTranslucent={!0}onRequestClose={M}>
|
|
4
|
+
<Me onClose={M}>
|
|
5
|
+
<B style={[H.modalBackdrop,{zIndex:999999,elevation:999999}]}>
|
|
6
|
+
<Be style={H.modalBackdropPressable}onPress={M}/>
|
|
7
|
+
<B style={[H.modalContentCard,{height:`${O}%`,borderTopLeftRadius:O>=100?0:20,borderTopRightRadius:O>=100?0:20,opacity:le?Math.max(.05,Math.min(1,typeof $=="number"?$:.1)):1,zIndex:9999999,elevation:999999}]}>
|
|
8
8
|
<Ce translucent backgroundColor="transparent"barStyle="light-content"/>
|
|
9
9
|
|
|
10
10
|
<Re/>
|
|
11
|
-
|
|
11
|
+
{!G&&N===null&&!R&&!D&&<De/>}
|
|
12
12
|
|
|
13
|
-
<B style={{flex:1,overflow:"hidden",backgroundColor:
|
|
13
|
+
<B style={{flex:1,overflow:"hidden",backgroundColor:C.grayBackground}}>
|
|
14
14
|
|
|
15
|
-
<B style={{flex:1}}pointerEvents={
|
|
15
|
+
<B style={{flex:1}}pointerEvents={G||N!==null||R||D?"none":"auto"}>
|
|
16
16
|
<Te/>
|
|
17
|
-
{
|
|
17
|
+
{ee?<B style={{flex:1}}>
|
|
18
18
|
{e==="apis"&&<S moduleName="Network API Monitor">
|
|
19
19
|
<Ee/>
|
|
20
20
|
</S>}
|
|
@@ -45,55 +45,55 @@ import ne,{useEffect as A,useRef as P}from"react";import{Animated as o,Modal as
|
|
|
45
45
|
{e==="media"&&<S moduleName="Media Gallery">
|
|
46
46
|
<Xe/>
|
|
47
47
|
</S>}
|
|
48
|
-
{
|
|
48
|
+
{q.OS==="android"&&To()&&e==="debugging"&&<S moduleName="Debugging Utilities">
|
|
49
49
|
<Qe/>
|
|
50
50
|
</S>}
|
|
51
51
|
</B>:<Eo/>}
|
|
52
52
|
</B>
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
{
|
|
56
|
-
{e==="apis"&&
|
|
55
|
+
{G&&<B style={[T.absoluteFill,{backgroundColor:C.contentBg,zIndex:10}]}>
|
|
56
|
+
{e==="apis"&&Y!=null&&<S moduleName="Network Request Details">
|
|
57
57
|
<Ae/>
|
|
58
58
|
</S>}
|
|
59
|
-
{e==="analytics"&&
|
|
60
|
-
<Oe event={
|
|
59
|
+
{e==="analytics"&&W!=null&&<S moduleName="Analytics Event Details">
|
|
60
|
+
<Oe event={W}/>
|
|
61
61
|
</S>}
|
|
62
|
-
{e==="logs"&&
|
|
62
|
+
{e==="logs"&&U!=null&&<S moduleName="Console Log Details">
|
|
63
63
|
<Pe/>
|
|
64
64
|
</S>}
|
|
65
65
|
{e==="redux"&&<S moduleName="Redux Action & State Details">
|
|
66
66
|
<Fe/>
|
|
67
67
|
</S>}
|
|
68
|
-
{e==="crash"&&
|
|
68
|
+
{e==="crash"&&_!=null&&<S moduleName="Crash Log Details">
|
|
69
69
|
<He/>
|
|
70
70
|
</S>}
|
|
71
|
-
{e==="push"&&
|
|
72
|
-
<Ue item={
|
|
71
|
+
{e==="push"&&F!=null&&<S moduleName="Push Notification Details">
|
|
72
|
+
<Ue item={F}onClose={()=>K(null)}/>
|
|
73
73
|
</S>}
|
|
74
|
-
{e==="socket"&&
|
|
75
|
-
<$e item={
|
|
74
|
+
{e==="socket"&&z!=null&&<S moduleName="WebSocket & Socket.IO Details">
|
|
75
|
+
<$e item={z}onClose={()=>Q(null)}/>
|
|
76
76
|
</S>}
|
|
77
77
|
</B>}
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
{N!==null&&<o.View style={[
|
|
80
|
+
{N!==null&&<o.View style={[T.absoluteFill,{backgroundColor:C.grayBackground,opacity:x,transform:[{translateY:x.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
81
81
|
<S moduleName="Settings Panel">
|
|
82
82
|
<Ze/>
|
|
83
83
|
</S>
|
|
84
84
|
</o.View>}
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
{R&&<o.View style={[
|
|
87
|
+
{R&&<o.View style={[T.absoluteFill,{backgroundColor:C.primaryLight,opacity:E,transform:[{translateY:E.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
88
88
|
<S moduleName="About & Diagnostics">
|
|
89
|
-
<So onClose={()=>
|
|
89
|
+
<So onClose={()=>X(!1)}/>
|
|
90
90
|
</S>
|
|
91
91
|
</o.View>}
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
{D&&<o.View style={[
|
|
94
|
+
{D&&<o.View style={[T.absoluteFill,{backgroundColor:C.primaryLight,opacity:A,transform:[{translateY:A.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
95
95
|
<S moduleName="Support & Community">
|
|
96
|
-
<Bo onClose={()=>
|
|
96
|
+
<Bo onClose={()=>Z(!1)}/>
|
|
97
97
|
</S>
|
|
98
98
|
</o.View>}
|
|
99
99
|
</B>
|
|
@@ -111,44 +111,44 @@ import ne,{useEffect as A,useRef as P}from"react";import{Animated as o,Modal as
|
|
|
111
111
|
<Vo/>
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
<Co visible={
|
|
114
|
+
<Co visible={v.visible}title={v.title}message={v.message}confirmText={v.confirmText}cancelText={v.cancelText}isDestructive={!0}icon="trash"onConfirm={v.onConfirm}onCancel={()=>ie(ne=>({...ne,visible:!1}))}/>
|
|
115
115
|
</B>
|
|
116
116
|
</B>
|
|
117
117
|
</Me>
|
|
118
|
-
{
|
|
118
|
+
{re&&<Do onStateChange={ae}/>}
|
|
119
119
|
</Se>
|
|
120
|
-
</>},Eo=
|
|
120
|
+
</>},Eo=se.memo(function(){const V=L(new o.Value(.35)).current;return P(()=>{const M=o.loop(o.sequence([o.timing(V,{toValue:.85,duration:750,useNativeDriver:!1}),o.timing(V,{toValue:.35,duration:750,useNativeDriver:!1})]));return M.start(),()=>M.stop()},[V]),<B style={t.container}>
|
|
121
121
|
|
|
122
|
-
<B style={
|
|
123
|
-
<o.View style={[
|
|
124
|
-
<B style={
|
|
125
|
-
<o.View style={[
|
|
126
|
-
<o.View style={[
|
|
122
|
+
<B style={t.toolbarSkeleton}>
|
|
123
|
+
<o.View style={[t.searchBarSkeleton,{opacity:V}]}/>
|
|
124
|
+
<B style={t.actionButtonsRow}>
|
|
125
|
+
<o.View style={[t.iconButtonSkeleton,{opacity:V}]}/>
|
|
126
|
+
<o.View style={[t.iconButtonSkeleton,{opacity:V}]}/>
|
|
127
127
|
</B>
|
|
128
128
|
</B>
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
<B style={
|
|
132
|
-
<o.View style={[
|
|
133
|
-
<o.View style={[
|
|
134
|
-
<o.View style={[
|
|
135
|
-
<o.View style={[
|
|
131
|
+
<B style={t.chipStripSkeleton}>
|
|
132
|
+
<o.View style={[t.chipSkeleton,{width:48,opacity:V}]}/>
|
|
133
|
+
<o.View style={[t.chipSkeleton,{width:68,opacity:V}]}/>
|
|
134
|
+
<o.View style={[t.chipSkeleton,{width:76,opacity:V}]}/>
|
|
135
|
+
<o.View style={[t.chipSkeleton,{width:58,opacity:V}]}/>
|
|
136
136
|
</B>
|
|
137
137
|
|
|
138
138
|
|
|
139
|
-
{[0,1,2,3].map(
|
|
140
|
-
<B style={
|
|
141
|
-
<B style={
|
|
142
|
-
<B style={
|
|
143
|
-
<B style={
|
|
139
|
+
{[0,1,2,3].map(M=><o.View key={`skeleton_card_${M}`}style={[t.cardSkeleton,{opacity:V}]}>
|
|
140
|
+
<B style={t.cardTopRow}>
|
|
141
|
+
<B style={t.badgeGroup}>
|
|
142
|
+
<B style={t.statusBadgeSkeleton}/>
|
|
143
|
+
<B style={t.methodBadgeSkeleton}/>
|
|
144
144
|
</B>
|
|
145
|
-
<B style={
|
|
145
|
+
<B style={t.timeSkeleton}/>
|
|
146
146
|
</B>
|
|
147
|
-
<B style={
|
|
148
|
-
<B style={
|
|
149
|
-
<B style={
|
|
150
|
-
<B style={
|
|
151
|
-
<B style={
|
|
147
|
+
<B style={t.urlLineLong}/>
|
|
148
|
+
<B style={t.urlLineShort}/>
|
|
149
|
+
<B style={t.cardBottomRow}>
|
|
150
|
+
<B style={t.metaPillSkeleton}/>
|
|
151
|
+
<B style={t.metaPillSkeleton}/>
|
|
152
152
|
</B>
|
|
153
153
|
</o.View>)}
|
|
154
|
-
</B>}),
|
|
154
|
+
</B>}),t=T.create({container:{flex:1,paddingHorizontal:12,paddingTop:8},toolbarSkeleton:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},searchBarSkeleton:{flex:1,height:36,borderRadius:8,backgroundColor:C.graySurface,borderWidth:1,borderColor:C.dividerColor},actionButtonsRow:{flexDirection:"row",gap:6},iconButtonSkeleton:{width:36,height:36,borderRadius:8,backgroundColor:C.graySurface,borderWidth:1,borderColor:C.dividerColor},chipStripSkeleton:{flexDirection:"row",gap:6,marginBottom:10},chipSkeleton:{height:24,borderRadius:6,backgroundColor:C.graySurface,borderWidth:1,borderColor:C.dividerColor},cardSkeleton:{backgroundColor:C.primaryLight,borderRadius:10,padding:12,marginBottom:8,borderWidth:1,borderColor:C.dividerColor},cardTopRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},badgeGroup:{flexDirection:"row",alignItems:"center",gap:6},statusBadgeSkeleton:{width:38,height:18,borderRadius:4,backgroundColor:C.graySurface},methodBadgeSkeleton:{width:44,height:18,borderRadius:4,backgroundColor:C.graySurface},timeSkeleton:{width:48,height:12,borderRadius:4,backgroundColor:C.graySurface},urlLineLong:{height:13,borderRadius:4,backgroundColor:C.graySurface,marginBottom:5,width:"90%"},urlLineShort:{height:11,borderRadius:4,backgroundColor:C.graySurface,marginBottom:8,width:"55%"},cardBottomRow:{flexDirection:"row",gap:8,marginTop:2},metaPillSkeleton:{width:52,height:14,borderRadius:4,backgroundColor:C.graySurface}});export default xo;
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import{useState as
|
|
2
|
-
`);et(i,`${e.length} Media URIs`)
|
|
1
|
+
import{useState as $,useEffect as je,useMemo as ae,useCallback as ne}from"react";import{Dimensions as Ee,FlatList as Ne,Image as Ce,RefreshControl as _e,Share as Te,StyleSheet as qe,Text as S,TouchableOpacity as I,View as C}from"react-native";import{AppColors as t}from"../../styles/AppColors";import{AppFonts as z}from"../../styles/AppFonts";import Se from"../TouchableScale";import Je from"../EmptyState";import{CameraRollIcon as Ie,CheckIcon as Be,CopyIcon as Q,FilmIcon as L,GifIcon as X,GridIcon as Qe,ImageIcon as U,ListIcon as Xe,PlayIcon as Re,ScreencastIcon as Ye,ShareIcon as Ge,TrashIcon as Y}from"../NetworkIcons";import{MediaPreviewModal as Ze}from"./MediaPreviewModal";import{ScreenCapture as A}from"../../capture";import{copyImageOrMediaToClipboard as Ke,copyToClipboard as et,formatBytes as H}from"../../helpers";import{showToast as M}from"../../helpers/toast";import{useTranslation as tt}from"../../i18n";import{useInspector as ot}from"./InspectorContext";import{ConfirmationModal as Ct}from"./ConfirmationModal";export const MediaGalleryTab=()=>{const{t:r}=tt(),{refreshMediaCount:D,switchActiveTab:N,previewMediaItem:Z,setPreviewMediaItem:j}=ot(),[x,K]=$([]),[Ve,ee]=$(!1),[v,Me]=$("all"),[B,E]=$(new Set),[R,te]=$("grid"),[P,F]=$({visible:!1,title:"",message:"",onConfirm:()=>{}}),oe=async()=>{try{const e=v==="image"?"image":v==="video"?"video":"any",i=await A.pickMedia({mediaType:e});i&&(await G(),D?.().catch(()=>{}),M(i.type==="video"?r("mediaGallery.importedVideo","Video imported from Camera Roll"):r("mediaGallery.importedPhoto","Photo imported from Camera Roll")),j(i))}catch{M(r("mediaGallery.importFailed","Failed to import media"))}},G=ne(async()=>{try{const e=await A.getMediaList();K(e),D?.().catch(()=>{})}catch{K([])}},[D]);je(()=>{G()},[G]);const De=async()=>{ee(!0),await G(),ee(!1)},V=ae(()=>v==="all"?x:x.filter(e=>e.type===v),[x,v]),_=ae(()=>x.reduce((e,i)=>e+(i.sizeBytes||0),0),[x]),ie=ne(e=>{E(i=>{const l=new Set(i);return l.has(e)?l.delete(e):l.add(e),l})},[]),re=async e=>{await A.deleteMedia(e.uri),E(l=>{const T=new Set(l);return T.delete(e.id),T}),await G(),await D?.()===0&&N("apis"),M(r("mediaGallery.deleted"))},le=e=>{e?.uri&&Ke(e.uri,e.type==="image"?"Image":"Media")},We=()=>{const e=x.filter(l=>B.has(l.id));if(e.length===0)return;const i=e.map(l=>l.uri).join(`
|
|
2
|
+
`);et(i,`${e.length} Media URIs`),M(`${e.length} file URIs copied to clipboard`)},Pe=async e=>{try{const i=e.uri.startsWith("file://")||e.uri.startsWith("content://")||e.uri.startsWith("http")?e.uri:`file://${e.uri}`;await Te.share({url:i,title:e.filename,message:e.filename})}catch{M(r("mediaGallery.shareUnavailable","Sharing not available on this device"))}},$e=async()=>{const e=x.filter(i=>B.has(i.id));if(e.length!==0)try{const i=e[0],l=i.uri.startsWith("file://")||i.uri.startsWith("content://")||i.uri.startsWith("http")?i.uri:`file://${i.uri}`;await Te.share({url:l,title:i.filename,message:e.length===1?i.filename:`${e.length} items: ${e.map(T=>T.filename).join(", ")}`})}catch{M(r("mediaGallery.shareUnavailable","Sharing not available on this device"))}},Ae=()=>{const e=B.size;e!==0&&F({visible:!0,title:r("mediaGallery.deleteSelectedTitle","Delete Selected Media"),message:r("mediaGallery.deleteSelectedMessage",{count:e,defaultValue:`Are you sure you want to permanently delete ${e} media items?`}),confirmText:r("mediaGallery.delete","Delete"),cancelText:r("common.cancel","Cancel"),onConfirm:async()=>{F(T=>({...T,visible:!1}));const i=x.filter(T=>B.has(T.id));for(const T of i)await A.deleteMedia(T.uri);E(new Set),await G(),await D?.()===0&&N("apis"),M(r("mediaGallery.deletedCount",{count:i.length}))}})},Fe=()=>{F({visible:!0,title:r("mediaGallery.purgeTitle","Purge Gallery"),message:r("mediaGallery.purgeMessage",{count:x.length,size:H(_),defaultValue:`Are you sure you want to delete all ${x.length} media files (${H(_)})? This cannot be undone.`}),confirmText:r("common.clearAll","Clear All"),cancelText:r("common.cancel","Cancel"),onConfirm:async()=>{F(e=>({...e,visible:!1})),await A.clearAllMedia(),E(new Set),await G(),await D?.(),N("apis"),M(r("mediaGallery.allPurged"))}})},Oe=async e=>{await A.convertToGif(e.uri,{fps:12,width:480})&&(await G(),D?.().catch(()=>{}))},Le=(e,i)=>{const l=i?t.sky400:t.slate400,T=12;switch(e){case"all":return<Ye size={T}color={l}/>;case"image":return<U size={T}color={l}/>;case"video":return<L size={T}color={l}/>;case"gif":return<X size={T}color={l}/>}},Ue=({item:e})=>{if(!e)return null;const i=e.type==="video",l=e.type==="gif",T=i&&e.thumbnailUri||e.uri,W=!!(e.id&&B.has(e.id)),q=(e.format||(i?"mp4":l?"gif":"png")).toUpperCase(),J=e.filename||(e.uri?e.uri.split("/").pop():"")||"Capture",O=e.timestamp?new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"";return<Se onPress={()=>j(e)}style={[o.card,W&&o.cardSelected]}>
|
|
3
3
|
<C style={o.thumbnailContainer}>
|
|
4
|
-
{
|
|
5
|
-
{i?<
|
|
4
|
+
{T?<Ce source={{uri:T}}style={o.thumbnail}resizeMode="cover"/>:<C style={o.thumbnailFallback}>
|
|
5
|
+
{i?<L size={26}color={t.sky400}/>:<U size={26}color={t.slate400}/>}
|
|
6
6
|
</C>}
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
<I onPress={()=>e.id&&ie(e.id)}style={[o.checkbox,
|
|
10
|
-
{
|
|
9
|
+
<I onPress={()=>e.id&&ie(e.id)}style={[o.checkbox,W&&o.checkboxSelected]}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
10
|
+
{W&&<Be size={12}color={t.white}/>}
|
|
11
11
|
</I>
|
|
12
12
|
|
|
13
13
|
{i&&<C style={o.miniPlayCircle}>
|
|
14
|
-
<
|
|
14
|
+
<Re size={14}color={t.white}/>
|
|
15
15
|
</C>}
|
|
16
16
|
<C style={o.typeBadge}>
|
|
17
|
-
{i?<
|
|
18
|
-
<
|
|
19
|
-
{
|
|
20
|
-
</
|
|
17
|
+
{i?<L size={11}color={t.sky400}/>:l?<X size={11}color={t.warningAmber}/>:<U size={11}color={t.emerald500}/>}
|
|
18
|
+
<S style={o.typeBadgeText}>
|
|
19
|
+
{q}
|
|
20
|
+
</S>
|
|
21
21
|
</C>
|
|
22
22
|
</C>
|
|
23
23
|
|
|
24
24
|
<C style={o.cardInfo}>
|
|
25
|
-
<
|
|
26
|
-
{
|
|
27
|
-
</
|
|
25
|
+
<S style={o.cardTitle}numberOfLines={1}>
|
|
26
|
+
{J}
|
|
27
|
+
</S>
|
|
28
28
|
<C style={o.cardMetaRow}>
|
|
29
29
|
<C style={{flexDirection:"row",alignItems:"center",gap:4,flex:1,minWidth:0}}>
|
|
30
|
-
<
|
|
30
|
+
<S style={o.cardMeta}numberOfLines={1}>
|
|
31
31
|
{H(e.sizeBytes||0)}
|
|
32
|
-
</
|
|
33
|
-
{
|
|
34
|
-
<
|
|
35
|
-
<
|
|
36
|
-
{
|
|
37
|
-
</
|
|
32
|
+
</S>
|
|
33
|
+
{O?<>
|
|
34
|
+
<S style={o.cardMetaDot}>•</S>
|
|
35
|
+
<S style={o.cardMeta}numberOfLines={1}>
|
|
36
|
+
{O}
|
|
37
|
+
</S>
|
|
38
38
|
</>:null}
|
|
39
39
|
</C>
|
|
40
40
|
<I onPress={()=>le(e)}style={o.gridCopyBtn}hitSlop={{top:6,bottom:6,left:6,right:6}}>
|
|
41
|
-
<
|
|
41
|
+
<Q size={11}color={t.slate400}/>
|
|
42
42
|
</I>
|
|
43
43
|
</C>
|
|
44
44
|
</C>
|
|
45
|
-
</Se>},
|
|
45
|
+
</Se>},He=({item:e})=>{if(!e)return null;const i=e.type==="video",l=e.type==="gif",T=i&&e.thumbnailUri||e.uri,W=!!(e.id&&B.has(e.id)),q=(e.format||(i?"mp4":l?"gif":"png")).toUpperCase(),J=e.filename||(e.uri?e.uri.split("/").pop():"")||"Capture",O=e.timestamp?`${new Date(e.timestamp).toLocaleDateString([],{month:"short",day:"numeric"})} ${new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}`:"";return<Se onPress={()=>j(e)}style={[o.listRow,W&&o.listRowSelected]}>
|
|
46
46
|
|
|
47
|
-
<I onPress={()=>e.id&&ie(e.id)}style={[o.listCheckbox,
|
|
48
|
-
{
|
|
47
|
+
<I onPress={()=>e.id&&ie(e.id)}style={[o.listCheckbox,W&&o.checkboxSelected]}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
48
|
+
{W&&<Be size={12}color={t.white}/>}
|
|
49
49
|
</I>
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
<C style={o.listThumbContainer}>
|
|
53
|
-
{
|
|
54
|
-
{i?<
|
|
53
|
+
{T?<Ce source={{uri:T}}style={o.listThumb}resizeMode="cover"/>:<C style={o.listThumbFallback}>
|
|
54
|
+
{i?<L size={18}color={t.sky400}/>:<U size={18}color={t.slate400}/>}
|
|
55
55
|
</C>}
|
|
56
56
|
{i&&<C style={o.listMiniPlay}>
|
|
57
|
-
<
|
|
57
|
+
<Re size={10}color={t.white}/>
|
|
58
58
|
</C>}
|
|
59
59
|
</C>
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
<C style={o.listInfo}>
|
|
63
|
-
<
|
|
64
|
-
{
|
|
65
|
-
</
|
|
63
|
+
<S style={o.listTitle}numberOfLines={1}>
|
|
64
|
+
{J}
|
|
65
|
+
</S>
|
|
66
66
|
<C style={o.listMetaRow}>
|
|
67
67
|
<C style={o.listBadge}>
|
|
68
|
-
{i?<
|
|
69
|
-
<
|
|
70
|
-
{
|
|
71
|
-
</
|
|
68
|
+
{i?<L size={10}color={t.sky400}/>:l?<X size={10}color={t.warningAmber}/>:<U size={10}color={t.emerald500}/>}
|
|
69
|
+
<S style={o.listBadgeText}>
|
|
70
|
+
{q}
|
|
71
|
+
</S>
|
|
72
72
|
</C>
|
|
73
|
-
<
|
|
73
|
+
<S style={o.cardMeta}>
|
|
74
74
|
{H(e.sizeBytes||0)}
|
|
75
|
-
</
|
|
76
|
-
{
|
|
77
|
-
<
|
|
78
|
-
<
|
|
79
|
-
{
|
|
80
|
-
</
|
|
75
|
+
</S>
|
|
76
|
+
{O?<>
|
|
77
|
+
<S style={o.cardMetaDot}>•</S>
|
|
78
|
+
<S style={o.cardMeta}>
|
|
79
|
+
{O}
|
|
80
|
+
</S>
|
|
81
81
|
</>:null}
|
|
82
82
|
</C>
|
|
83
83
|
</C>
|
|
@@ -85,86 +85,104 @@ import{useState as V,useEffect as He,useMemo as ae,useCallback as ne}from"react"
|
|
|
85
85
|
|
|
86
86
|
<C style={o.listActionsRow}>
|
|
87
87
|
<I onPress={()=>le(e)}style={o.listCopyBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
88
|
-
<
|
|
88
|
+
<Q size={13}color={t.slate200}/>
|
|
89
89
|
</I>
|
|
90
90
|
|
|
91
|
-
<I onPress={()=>
|
|
92
|
-
<
|
|
91
|
+
<I onPress={()=>Pe(e)}style={o.listShareBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
92
|
+
<Ge size={13}color={t.sky400}/>
|
|
93
93
|
</I>
|
|
94
94
|
|
|
95
95
|
<I onPress={()=>re(e)}style={o.listDeleteBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
96
|
-
<
|
|
96
|
+
<Y size={13}color={t.red500}/>
|
|
97
97
|
</I>
|
|
98
98
|
</C>
|
|
99
99
|
</Se>};return<C style={o.container}>
|
|
100
100
|
|
|
101
101
|
<C style={o.filterBar}>
|
|
102
102
|
<C style={o.chipGroup}>
|
|
103
|
-
{["all","image","video","gif"].map(e=>{const i=
|
|
104
|
-
{
|
|
105
|
-
<
|
|
103
|
+
{["all","image","video","gif"].map(e=>{const i=v===e,l=e==="all"?r("mediaGallery.all",{count:x.length}):r(e==="image"?"mediaGallery.photos":e==="video"?"mediaGallery.videos":"mediaGallery.gifs");return<I key={e}onPress={()=>Me(e)}style={[o.chip,i&&o.chipActive]}>
|
|
104
|
+
{Le(e,i)}
|
|
105
|
+
<S style={[o.chipText,i&&o.chipTextActive]}>
|
|
106
106
|
{l}
|
|
107
|
-
</
|
|
107
|
+
</S>
|
|
108
108
|
</I>})}
|
|
109
109
|
</C>
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
<C style={o.
|
|
113
|
-
<I onPress={
|
|
114
|
-
<
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
<C style={o.rightControls}>
|
|
113
|
+
<I onPress={oe}style={o.importBtn}accessibilityLabel="Open Camera Roll"hitSlop={{top:6,bottom:6,left:6,right:6}}>
|
|
114
|
+
<Ie size={12}color={t.sky400}/>
|
|
115
|
+
<S style={o.importBtnText}>
|
|
116
|
+
{v==="image"?"Photos":v==="video"?"Videos":"Import"}
|
|
117
|
+
</S>
|
|
118
118
|
</I>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<C style={o.viewToggleContainer}>
|
|
122
|
+
<I onPress={()=>te("grid")}style={[o.viewToggleBtn,R==="grid"&&o.viewToggleBtnActive]}>
|
|
123
|
+
<Qe size={13}color={R==="grid"?t.white:t.slate400}/>
|
|
124
|
+
</I>
|
|
125
|
+
<I onPress={()=>te("list")}style={[o.viewToggleBtn,R==="list"&&o.viewToggleBtnActive]}>
|
|
126
|
+
<Xe size={13}color={R==="list"?t.white:t.slate400}/>
|
|
127
|
+
</I>
|
|
128
|
+
</C>
|
|
119
129
|
</C>
|
|
120
130
|
</C>
|
|
121
131
|
|
|
122
132
|
|
|
123
|
-
{
|
|
133
|
+
{x.length>0&&<C style={o.subBar}>
|
|
124
134
|
<C style={o.resultCountWrapper}>
|
|
125
|
-
<
|
|
126
|
-
{
|
|
127
|
-
</
|
|
135
|
+
<S style={[o.resultCountText,B.size>0&&o.resultCountTextSelected]}>
|
|
136
|
+
{B.size>0?r("mediaGallery.selectedOfResults",{selected:B.size,total:V.length,defaultValue:`Selected ${B.size} of ${V.length} results`}):V.length!==x.length?r("mediaGallery.showingFilteredResults",{count:V.length,total:x.length,defaultValue:`Showing ${V.length} of ${x.length} results`}):r("mediaGallery.showingResults",{count:V.length,defaultValue:`Showing ${V.length} results`})}
|
|
137
|
+
</S>
|
|
128
138
|
</C>
|
|
129
139
|
|
|
130
140
|
<C style={o.actionsGroup}>
|
|
131
|
-
{
|
|
132
|
-
<I onPress={
|
|
133
|
-
<
|
|
134
|
-
<
|
|
141
|
+
{B.size>0&&<>
|
|
142
|
+
<I onPress={We}style={o.copySelectedBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
143
|
+
<Q size={12}color={t.slate200}/>
|
|
144
|
+
<S style={o.copySelectedBtnText}>
|
|
135
145
|
{r("mediaGallery.copyUri","Copy URI")}
|
|
136
|
-
</
|
|
146
|
+
</S>
|
|
137
147
|
</I>
|
|
138
148
|
|
|
139
|
-
<I onPress={
|
|
140
|
-
<
|
|
141
|
-
<
|
|
149
|
+
<I onPress={$e}style={o.shareSelectedBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
150
|
+
<Ge size={12}color={t.sky400}/>
|
|
151
|
+
<S style={o.shareSelectedBtnText}>
|
|
142
152
|
{r("mediaGallery.share","Share")}
|
|
143
|
-
</
|
|
153
|
+
</S>
|
|
144
154
|
</I>
|
|
145
155
|
|
|
146
|
-
<I onPress={
|
|
147
|
-
<
|
|
148
|
-
<
|
|
149
|
-
{r("mediaGallery.deleteSelected",{count:
|
|
150
|
-
</
|
|
156
|
+
<I onPress={Ae}style={o.deleteBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
157
|
+
<Y size={13}color={t.red500}/>
|
|
158
|
+
<S style={o.deleteBtnText}>
|
|
159
|
+
{r("mediaGallery.deleteSelected",{count:B.size})}
|
|
160
|
+
</S>
|
|
151
161
|
</I>
|
|
152
162
|
</>}
|
|
153
163
|
|
|
154
164
|
<I onPress={Fe}style={o.clearBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
155
|
-
<
|
|
156
|
-
<
|
|
157
|
-
{r("mediaGallery.purge",{size:H(
|
|
158
|
-
</
|
|
165
|
+
<Y size={13}color={t.red500}/>
|
|
166
|
+
<S style={o.clearBtnText}>
|
|
167
|
+
{r("mediaGallery.purge",{size:H(_)})}
|
|
168
|
+
</S>
|
|
159
169
|
</I>
|
|
160
170
|
</C>
|
|
161
171
|
</C>}
|
|
162
172
|
|
|
163
173
|
|
|
164
|
-
<
|
|
174
|
+
<Ne key={R}data={V}keyExtractor={e=>e.id}renderItem={R==="grid"?Ue:He}numColumns={R==="grid"?2:1}columnWrapperStyle={R==="grid"?o.columnWrapper:void 0}style={{flex:1}}contentContainerStyle={[o.listContent,{flexGrow:1}]}nestedScrollEnabled={!0}keyboardShouldPersistTaps="handled"refreshControl={<_e refreshing={Ve}onRefresh={De}tintColor={t.sky400}/>}ListEmptyComponent={<C style={o.emptyContainer}>
|
|
175
|
+
<Je customTitle={v==="image"?"No Photos Found":v==="video"?"No Videos Found":r("mediaGallery.noMediaTitle")}customSub={v==="image"?"Take a screenshot or import photos from Camera Roll.":v==="video"?"Record a video or import videos from Camera Roll.":r("mediaGallery.noMediaDesc")}showReload={!1}/>
|
|
176
|
+
<I onPress={oe}style={o.emptyImportBtn}activeOpacity={.8}>
|
|
177
|
+
<Ie size={14}color={t.white}/>
|
|
178
|
+
<S style={o.emptyImportBtnText}>
|
|
179
|
+
{v==="image"?r("mediaGallery.importPhotos","Import Photos from Camera Roll"):v==="video"?r("mediaGallery.importVideos","Import Videos from Camera Roll"):r("mediaGallery.openCameraRoll","Open Camera Roll")}
|
|
180
|
+
</S>
|
|
181
|
+
</I>
|
|
182
|
+
</C>}/>
|
|
165
183
|
|
|
166
184
|
|
|
167
|
-
<Ze item={
|
|
185
|
+
<Ze item={Z}visible={!!Z}onClose={()=>j(null)}onDelete={re}onConvertToGif={Oe}/>
|
|
168
186
|
|
|
169
|
-
<Ct visible={
|
|
170
|
-
</C>};const{width:Tt}=
|
|
187
|
+
<Ct visible={P.visible}title={P.title}message={P.message}confirmText={P.confirmText}cancelText={P.cancelText}isDestructive={!0}icon="trash"onConfirm={P.onConfirm}onCancel={()=>F(e=>({...e,visible:!1}))}/>
|
|
188
|
+
</C>};const{width:Tt}=Ee.get("window"),St=(Tt-36)/2,o=qe.create({container:{flex:1,backgroundColor:t.slate850},filterBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:9,borderBottomWidth:1,borderBottomColor:t.borderGlassLight,gap:8},chipGroup:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:1},chip:{flexDirection:"row",alignItems:"center",gap:4.5,paddingHorizontal:8,paddingVertical:4.5,borderRadius:6,backgroundColor:t.whiteAlpha06,borderWidth:1,borderColor:t.whiteAlpha10},chipActive:{backgroundColor:`${t.sky400}2E`,borderColor:t.sky400},chipText:{fontFamily:z.interMedium,fontSize:11,color:t.slate400},chipTextActive:{fontFamily:z.interBold,color:t.sky400},subBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:7,backgroundColor:`${t.slate900}99`,borderBottomWidth:1,borderBottomColor:t.borderGlassLight,gap:8},resultCountWrapper:{flexDirection:"row",alignItems:"center",flexShrink:1},resultCountText:{fontFamily:z.interMedium,fontSize:11,color:t.slate400},resultCountTextSelected:{fontFamily:z.interSemiBold,color:t.sky400},actionsGroup:{flexDirection:"row",alignItems:"center",gap:6},rightControls:{flexDirection:"row",alignItems:"center",gap:6},importBtn:{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:`${t.sky500}1F`,borderColor:`${t.sky400}44`,borderWidth:1,paddingHorizontal:8,paddingVertical:4.5,borderRadius:6},importBtnText:{fontFamily:z.interSemiBold,fontSize:11,color:t.sky400},emptyContainer:{alignItems:"center",justifyContent:"center",paddingVertical:36},emptyImportBtn:{flexDirection:"row",alignItems:"center",gap:7,backgroundColor:t.sky500,paddingHorizontal:16,paddingVertical:10,borderRadius:8,marginTop:18,shadowColor:t.sky500,shadowOffset:{width:0,height:2},shadowOpacity:.35,shadowRadius:6,elevation:3},emptyImportBtnText:{fontFamily:z.interSemiBold,fontSize:13,color:t.white},viewToggleContainer:{flexDirection:"row",alignItems:"center",backgroundColor:t.whiteAlpha06,borderRadius:6,padding:2,borderWidth:1,borderColor:t.whiteAlpha10},viewToggleBtn:{paddingHorizontal:7,paddingVertical:4,borderRadius:4,alignItems:"center",justifyContent:"center"},viewToggleBtnActive:{backgroundColor:`${t.violet600}80`},deleteBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${t.red500}26`,borderWidth:1,borderColor:`${t.red500}80`},deleteBtnText:{fontFamily:z.interBold,fontSize:10.5,color:t.red500},clearBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${t.red500}1F`,borderWidth:1,borderColor:`${t.red500}4D`},clearBtnText:{fontFamily:z.interMedium,fontSize:10.5,color:t.red500},listContent:{padding:12,gap:10},columnWrapper:{gap:12},card:{width:St,backgroundColor:t.slate800,borderRadius:8,borderWidth:1,borderColor:t.borderGlassLight,overflow:"hidden"},cardSelected:{borderColor:t.violet600,borderWidth:1.5},thumbnailContainer:{width:"100%",height:110,backgroundColor:t.slate850,position:"relative"},thumbnail:{width:"100%",height:"100%"},thumbnailFallback:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:t.slate900},checkbox:{position:"absolute",top:6,left:6,width:22,height:22,borderRadius:5,borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.65)",backgroundColor:"rgba(15, 23, 42, 0.65)",alignItems:"center",justifyContent:"center",zIndex:10},checkboxSelected:{backgroundColor:t.violet600,borderColor:t.violet600},miniPlayCircle:{position:"absolute",top:"50%",left:"50%",width:32,height:32,marginTop:-16,marginLeft:-16,borderRadius:16,backgroundColor:`${t.sky400}D9`,alignItems:"center",justifyContent:"center",paddingLeft:2,shadowColor:t.black,shadowOffset:{width:0,height:2},shadowOpacity:.4,shadowRadius:4,elevation:4},typeBadge:{position:"absolute",top:6,right:6,flexDirection:"row",alignItems:"center",gap:3,backgroundColor:t.badgeGlassDark,paddingHorizontal:5,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:t.borderGlassMedium},typeBadgeText:{fontFamily:z.interBold,fontSize:9,color:t.slate200},cardInfo:{padding:8,gap:3},cardTitle:{fontFamily:z.interMedium,fontSize:11.5,color:t.white},cardMetaRow:{flexDirection:"row",alignItems:"center",gap:4},cardMeta:{fontFamily:z.interRegular,fontSize:10,color:t.slate400},cardMetaDot:{fontSize:10,color:t.whiteAlpha30},listRow:{flexDirection:"row",alignItems:"center",backgroundColor:t.slate800,borderRadius:8,borderWidth:1,borderColor:t.borderGlassLight,padding:8,gap:10},listRowSelected:{borderColor:t.violet600,borderWidth:1.5,backgroundColor:`${t.violet600}14`},listCheckbox:{width:20,height:20,borderRadius:4,borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.65)",backgroundColor:"rgba(15, 23, 42, 0.65)",alignItems:"center",justifyContent:"center"},listThumbContainer:{width:46,height:46,borderRadius:6,backgroundColor:t.slate850,overflow:"hidden",position:"relative"},listThumb:{width:"100%",height:"100%"},listThumbFallback:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:t.slate900},listMiniPlay:{position:"absolute",top:"50%",left:"50%",width:20,height:20,marginTop:-10,marginLeft:-10,borderRadius:10,backgroundColor:`${t.sky400}D9`,alignItems:"center",justifyContent:"center",paddingLeft:1},listInfo:{flex:1,gap:4,minWidth:0},listTitle:{fontFamily:z.interMedium,fontSize:12,color:t.white},listMetaRow:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"},listBadge:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:t.badgeGlassDark,paddingHorizontal:4,paddingVertical:1.5,borderRadius:4,borderWidth:1,borderColor:t.borderGlassMedium},listBadgeText:{fontFamily:z.interBold,fontSize:8.5,color:t.slate200},gridCopyBtn:{padding:3,borderRadius:4,backgroundColor:t.whiteAlpha08},listActionsRow:{flexDirection:"row",alignItems:"center",gap:6},listCopyBtn:{padding:6,borderRadius:6,backgroundColor:t.whiteAlpha10,borderWidth:1,borderColor:t.whiteAlpha15},listShareBtn:{padding:6,borderRadius:6,backgroundColor:`${t.sky400}18`,borderWidth:1,borderColor:`${t.sky400}40`},listDeleteBtn:{padding:6,borderRadius:6,backgroundColor:`${t.red500}14`,borderWidth:1,borderColor:`${t.red500}33`},copySelectedBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:t.whiteAlpha10,borderWidth:1,borderColor:t.whiteAlpha20},copySelectedBtnText:{fontFamily:z.interSemiBold,fontSize:10.5,color:t.slate200},shareSelectedBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${t.sky400}20`,borderWidth:1,borderColor:`${t.sky400}60`},shareSelectedBtnText:{fontFamily:z.interBold,fontSize:10.5,color:t.sky400}});
|
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CapturedMediaItem } from '../../capture';
|
|
3
|
-
export type EditorTool = 'none' | 'crop' | '
|
|
4
|
-
export type
|
|
3
|
+
export type EditorTool = 'none' | 'crop' | 'adjust' | 'draw' | 'text' | 'resize' | 'preview' | 'trim' | 'audio' | 'speed' | 'gif' | 'snapshot';
|
|
4
|
+
export type DrawModeOption = 'brush' | 'highlighter' | 'arrow' | 'rect' | 'circle' | 'spotlight' | 'step' | 'redact' | 'pixelate';
|
|
5
|
+
export type AdjustModeOption = 'brightness' | 'contrast' | 'saturation' | 'warmth' | 'exposure' | 'vignette';
|
|
6
|
+
export type PhotoFilterPreset = 'none' | 'vibrant' | 'mono' | 'sepia' | 'vintage' | 'noir' | 'cool' | 'warm' | 'fade';
|
|
7
|
+
export interface ImageAdjustments {
|
|
8
|
+
brightness: number;
|
|
9
|
+
contrast: number;
|
|
10
|
+
saturation: number;
|
|
11
|
+
warmth: number;
|
|
12
|
+
exposure: number;
|
|
13
|
+
vignette: number;
|
|
14
|
+
}
|
|
5
15
|
export type AspectRatioOption = 'free' | '1:1' | '4:3' | '16:9' | '9:16' | '3:2';
|
|
6
16
|
export interface InkStroke {
|
|
7
17
|
id: string;
|
|
18
|
+
type: DrawModeOption;
|
|
8
19
|
points: Array<{
|
|
9
20
|
x: number;
|
|
10
21
|
y: number;
|
|
11
22
|
}>;
|
|
12
23
|
color: string;
|
|
13
24
|
strokeWidth: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
height: number;
|
|
22
|
-
color: string;
|
|
25
|
+
rect?: {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
};
|
|
31
|
+
stepNumber?: number;
|
|
23
32
|
}
|
|
24
33
|
export interface TextItem {
|
|
25
34
|
id: string;
|
|
@@ -29,13 +38,6 @@ export interface TextItem {
|
|
|
29
38
|
color: string;
|
|
30
39
|
bgColor: string;
|
|
31
40
|
}
|
|
32
|
-
export interface BlurBox {
|
|
33
|
-
id: string;
|
|
34
|
-
x: number;
|
|
35
|
-
y: number;
|
|
36
|
-
width: number;
|
|
37
|
-
height: number;
|
|
38
|
-
}
|
|
39
41
|
interface MediaPreviewModalProps {
|
|
40
42
|
item: CapturedMediaItem | null;
|
|
41
43
|
visible: boolean;
|