react-native-inapp-inspector 2.5.10 → 2.5.11
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/.gradle/8.9/checksums/checksums.lock +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 +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
- 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/dist/commonjs/a11y.d.ts +2 -0
- package/dist/commonjs/a11y.js +1 -0
- package/dist/commonjs/components/ErrorBoundary.js +1 -1
- package/dist/commonjs/components/Inspector/A11yTab.d.ts +2 -0
- package/dist/commonjs/components/Inspector/A11yTab.js +268 -0
- package/dist/commonjs/components/Inspector/AboutModal.js +4 -1
- package/dist/commonjs/components/Inspector/DeveloperSponsorCard.d.ts +9 -0
- package/dist/commonjs/components/Inspector/DeveloperSponsorCard.js +52 -0
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +4 -4
- package/dist/commonjs/components/Inspector/InspectorHeader.js +74 -66
- package/dist/commonjs/components/Inspector/NetworkTab.js +10 -7
- package/dist/commonjs/components/Inspector/SettingsPanel.js +242 -148
- package/dist/commonjs/components/ModuleErrorBoundary.js +1 -1
- package/dist/commonjs/components/NetworkIcons.d.ts +3 -0
- package/dist/commonjs/components/NetworkIcons.js +18 -5
- package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
- package/dist/commonjs/constants/telemetryConfig.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/a11yAdapter.d.ts +11 -0
- package/dist/commonjs/customHooks/a11yAdapter.js +1 -0
- package/dist/commonjs/customHooks/crashHandler.d.ts +9 -1
- package/dist/commonjs/customHooks/crashHandler.js +4 -4
- package/dist/commonjs/helpers/remoteConfig.d.ts +8 -0
- package/dist/commonjs/helpers/remoteConfig.js +1 -1
- package/dist/commonjs/helpers/sponsorService.d.ts +20 -0
- package/dist/commonjs/helpers/sponsorService.js +1 -0
- package/dist/commonjs/helpers/telemetry.js +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/index.d.ts +3 -1
- package/dist/commonjs/index.js +3 -3
- package/dist/commonjs/types/interfaces.d.ts +20 -0
- package/dist/esm/a11y.d.ts +2 -0
- package/dist/esm/a11y.js +1 -0
- package/dist/esm/components/ErrorBoundary.js +10 -10
- package/dist/esm/components/Inspector/A11yTab.d.ts +2 -0
- package/dist/esm/components/Inspector/A11yTab.js +268 -0
- package/dist/esm/components/Inspector/AboutModal.js +17 -14
- package/dist/esm/components/Inspector/DeveloperSponsorCard.d.ts +9 -0
- package/dist/esm/components/Inspector/DeveloperSponsorCard.js +52 -0
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +22 -22
- package/dist/esm/components/Inspector/InspectorHeader.js +195 -187
- package/dist/esm/components/Inspector/NetworkTab.js +86 -83
- package/dist/esm/components/Inspector/SettingsPanel.js +329 -235
- package/dist/esm/components/ModuleErrorBoundary.js +1 -1
- package/dist/esm/components/NetworkIcons.d.ts +3 -0
- package/dist/esm/components/NetworkIcons.js +16 -3
- package/dist/esm/constants/telemetryConfig.d.ts +3 -3
- package/dist/esm/constants/telemetryConfig.js +1 -1
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/a11yAdapter.d.ts +11 -0
- package/dist/esm/customHooks/a11yAdapter.js +1 -0
- package/dist/esm/customHooks/crashHandler.d.ts +9 -1
- package/dist/esm/customHooks/crashHandler.js +6 -6
- package/dist/esm/helpers/remoteConfig.d.ts +8 -0
- package/dist/esm/helpers/remoteConfig.js +1 -1
- package/dist/esm/helpers/sponsorService.d.ts +20 -0
- package/dist/esm/helpers/sponsorService.js +1 -0
- package/dist/esm/helpers/telemetry.js +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/types/interfaces.d.ts +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import{useCallback as O,useEffect as ce,useMemo as G,useState as v}from"react";import{Platform as de,ScrollView as _,StyleSheet as N,Text as T,TextInput as F,TouchableOpacity as R,View as C}from"react-native";import{announceA11y as ge,calculateContrastRatio as ue,evaluateTouchTarget as ye,getA11yState as be,getA11ySuiteInstance as me,subscribeA11yState as Te,syncA11yTelemetry as J,WCAG_RULES as pe}from"../../customHooks/a11yAdapter";import{copyToClipboard as Ce}from"../../helpers";import{showToast as L}from"../../helpers/toast";import{useTranslation as xe}from"../../i18n";import{AppColors as t}from"../../styles/AppColors";import{AppFonts as f}from"../../styles/AppFonts";import{AccessibilityIcon as P,ChevronIcon as Se,CopyIcon as Be,SearchIcon as Ae,SignalIcon as U,TerminalIcon as Fe}from"../NetworkIcons";import K from"../TouchableScale";export const A11yTab=()=>{const{t:Re}=xe(),[h,D]=v("status"),[S,j]=v(be()),[k,Q]=v("Accessibility announcement test"),[V,X]=v("#FFFFFF"),[H,Y]=v("#4F46E5"),[E,Z]=v("44"),[M,ee]=v("44"),[I,te]=v(""),[w,re]=v("ALL"),[$,ke]=v("ALL"),[oe,ae]=v({});ce(()=>(J(),Te(x=>{j(x)})),[]);const le=O(async()=>{const x=await J();j(x),L(`A11y Telemetry Updated (VoiceOver/TalkBack: ${x.isScreenReaderEnabled?"Active":"Inactive"})`)},[]),ie=O(()=>{if(!k.trim()){L("Please enter text to announce");return}ge(k)?L(`Announced: "${k}"`):L("Dispatched via AccessibilityInfo fallback")},[k]),B=G(()=>ue(V,H),[V,H]),W=G(()=>{const x=parseFloat(E)||0,A=parseFloat(M)||0;return ye(x,A)},[E,M]),ne=G(()=>pe.filter(x=>{if(w!=="ALL"&&x.level!==w||$!=="ALL"&&x.principle!==$)return!1;if(I.trim()){const A=I.toLowerCase();return x.id.toLowerCase().includes(A)||x.title.toLowerCase().includes(A)||x.description.toLowerCase().includes(A)||x.mobileRecommendation.toLowerCase().includes(A)}return!0}),[I,w,$]),se=O(x=>{ae(A=>({...A,[x]:!A[x]}))},[]),z=!!me();return<C style={e.container}>
|
|
2
|
+
|
|
3
|
+
<C style={e.subTabBar}>
|
|
4
|
+
<R style={[e.subTabItem,h==="status"&&e.subTabItemActive]}onPress={()=>D("status")}activeOpacity={.7}>
|
|
5
|
+
<U size={14}color={h==="status"?t.brandPurple:t.grayTextWeak}/>
|
|
6
|
+
<T style={[e.subTabText,h==="status"&&e.subTabTextActive]}>
|
|
7
|
+
Status & Telemetry
|
|
8
|
+
</T>
|
|
9
|
+
</R>
|
|
10
|
+
|
|
11
|
+
<R style={[e.subTabItem,h==="tools"&&e.subTabItemActive]}onPress={()=>D("tools")}activeOpacity={.7}>
|
|
12
|
+
<Fe size={14}color={h==="tools"?t.brandPurple:t.grayTextWeak}/>
|
|
13
|
+
<T style={[e.subTabText,h==="tools"&&e.subTabTextActive]}>
|
|
14
|
+
A11y Tools
|
|
15
|
+
</T>
|
|
16
|
+
</R>
|
|
17
|
+
|
|
18
|
+
<R style={[e.subTabItem,h==="wcag"&&e.subTabItemActive]}onPress={()=>D("wcag")}activeOpacity={.7}>
|
|
19
|
+
<P size={14}color={h==="wcag"?t.brandPurple:t.grayTextWeak}/>
|
|
20
|
+
<T style={[e.subTabText,h==="wcag"&&e.subTabTextActive]}>
|
|
21
|
+
WCAG 2.2 Standards
|
|
22
|
+
</T>
|
|
23
|
+
</R>
|
|
24
|
+
</C>
|
|
25
|
+
|
|
26
|
+
<_ style={e.scrollContent}contentContainerStyle={e.scrollContainer}showsVerticalScrollIndicator={!1}>
|
|
27
|
+
|
|
28
|
+
{h==="status"&&<C>
|
|
29
|
+
|
|
30
|
+
<C style={[e.bannerCard,{backgroundColor:z?`${t.greenColor}14`:`${t.brandPurple}14`,borderColor:z?`${t.greenColor}33`:`${t.brandPurple}33`}]}>
|
|
31
|
+
<C style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
32
|
+
<P size={20}color={z?t.greenColor:t.brandPurple}/>
|
|
33
|
+
<C style={{flex:1}}>
|
|
34
|
+
<T style={e.bannerTitle}>
|
|
35
|
+
{z?"react-native-a11y-suite Active":"react-native-inapp-inspector A11y Engine"}
|
|
36
|
+
</T>
|
|
37
|
+
<T style={e.bannerSubtitle}>
|
|
38
|
+
{z?"Connected to native TurboModules for enhanced assistive telemetry.":"Running in zero-config mode with native AccessibilityInfo bridge."}
|
|
39
|
+
</T>
|
|
40
|
+
</C>
|
|
41
|
+
</C>
|
|
42
|
+
</C>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
<C style={e.metricsGrid}>
|
|
46
|
+
<C style={e.metricCard}>
|
|
47
|
+
<T style={e.metricLabel}>Screen Reader</T>
|
|
48
|
+
<C style={e.badgeRow}>
|
|
49
|
+
<C style={[e.statusDot,{backgroundColor:S.isScreenReaderEnabled?t.greenColor:t.grayTextWeak}]}/>
|
|
50
|
+
<T style={[e.metricValue,{color:S.isScreenReaderEnabled?t.greenColor:t.grayTextStrong}]}>
|
|
51
|
+
{S.isScreenReaderEnabled?de.OS==="ios"?"VoiceOver ON":"TalkBack ON":"Inactive"}
|
|
52
|
+
</T>
|
|
53
|
+
</C>
|
|
54
|
+
</C>
|
|
55
|
+
|
|
56
|
+
<C style={e.metricCard}>
|
|
57
|
+
<T style={e.metricLabel}>Font Scale Multiplier</T>
|
|
58
|
+
<T style={[e.metricValue,{color:t.brandPurple}]}>
|
|
59
|
+
{S.fontScale}x
|
|
60
|
+
</T>
|
|
61
|
+
<T style={e.metricSub}>
|
|
62
|
+
{S.fontScale>=1.5?"Accessibility Size":S.fontScale>1?"Large Scale":"Default (1.0x)"}
|
|
63
|
+
</T>
|
|
64
|
+
</C>
|
|
65
|
+
|
|
66
|
+
<C style={e.metricCard}>
|
|
67
|
+
<T style={e.metricLabel}>Reduced Motion</T>
|
|
68
|
+
<T style={[e.metricValue,{color:S.isReduceMotionEnabled?t.lightOrange:t.grayTextStrong}]}>
|
|
69
|
+
{S.isReduceMotionEnabled?"Enabled (No Anim)":"Disabled"}
|
|
70
|
+
</T>
|
|
71
|
+
</C>
|
|
72
|
+
|
|
73
|
+
<C style={e.metricCard}>
|
|
74
|
+
<T style={e.metricLabel}>Bold Text</T>
|
|
75
|
+
<T style={[e.metricValue,{color:S.isBoldTextEnabled?t.skyBlue:t.grayTextStrong}]}>
|
|
76
|
+
{S.isBoldTextEnabled?"Enabled":"Default"}
|
|
77
|
+
</T>
|
|
78
|
+
</C>
|
|
79
|
+
|
|
80
|
+
<C style={e.metricCard}>
|
|
81
|
+
<T style={e.metricLabel}>High Contrast</T>
|
|
82
|
+
<T style={[e.metricValue,{color:S.isHighContrastEnabled?t.brandPurple:t.grayTextStrong}]}>
|
|
83
|
+
{S.isHighContrastEnabled?"Enabled":"Default"}
|
|
84
|
+
</T>
|
|
85
|
+
</C>
|
|
86
|
+
|
|
87
|
+
<C style={e.metricCard}>
|
|
88
|
+
<T style={e.metricLabel}>Invert Colors</T>
|
|
89
|
+
<T style={[e.metricValue,{color:S.isInvertColorsEnabled?t.lightOrange:t.grayTextStrong}]}>
|
|
90
|
+
{S.isInvertColorsEnabled?"Enabled":"Default"}
|
|
91
|
+
</T>
|
|
92
|
+
</C>
|
|
93
|
+
</C>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
<K style={e.actionButton}onPress={le}>
|
|
97
|
+
<U size={16}color={t.white}/>
|
|
98
|
+
<T style={e.actionButtonText}>Sync Accessibility Telemetry</T>
|
|
99
|
+
</K>
|
|
100
|
+
</C>}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
{h==="tools"&&<C>
|
|
104
|
+
|
|
105
|
+
<C style={e.toolCard}>
|
|
106
|
+
<C style={e.toolHeader}>
|
|
107
|
+
<P size={18}color={t.brandPurple}/>
|
|
108
|
+
<T style={e.toolTitle}>Live Speech & Announcement Tester</T>
|
|
109
|
+
</C>
|
|
110
|
+
<T style={e.toolDesc}>
|
|
111
|
+
Dispatches announcements directly to active assistive technologies
|
|
112
|
+
(VoiceOver on iOS, TalkBack on Android).
|
|
113
|
+
</T>
|
|
114
|
+
|
|
115
|
+
<F style={e.input}value={k}onChangeText={Q}placeholder="Enter message to announce..."placeholderTextColor={t.grayTextWeak}/>
|
|
116
|
+
|
|
117
|
+
<K style={[e.actionButton,{marginTop:10}]}onPress={ie}>
|
|
118
|
+
<T style={e.actionButtonText}>📢 Dispatch Announcement</T>
|
|
119
|
+
</K>
|
|
120
|
+
</C>
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
<C style={e.toolCard}>
|
|
124
|
+
<C style={e.toolHeader}>
|
|
125
|
+
<P size={18}color={t.skyBlue}/>
|
|
126
|
+
<T style={e.toolTitle}>WCAG 2.2 Color Contrast Checker</T>
|
|
127
|
+
</C>
|
|
128
|
+
<T style={e.toolDesc}>
|
|
129
|
+
Calculates relative luminance and contrast ratio between foreground text
|
|
130
|
+
and background surfaces.
|
|
131
|
+
</T>
|
|
132
|
+
|
|
133
|
+
<C style={{flexDirection:"row",gap:10,marginTop:10}}>
|
|
134
|
+
<C style={{flex:1}}>
|
|
135
|
+
<T style={e.inputLabel}>Text Hex</T>
|
|
136
|
+
<F style={e.input}value={V}onChangeText={X}placeholder="#FFFFFF"placeholderTextColor={t.grayTextWeak}autoCapitalize="characters"/>
|
|
137
|
+
</C>
|
|
138
|
+
<C style={{flex:1}}>
|
|
139
|
+
<T style={e.inputLabel}>Background Hex</T>
|
|
140
|
+
<F style={e.input}value={H}onChangeText={Y}placeholder="#4F46E5"placeholderTextColor={t.grayTextWeak}autoCapitalize="characters"/>
|
|
141
|
+
</C>
|
|
142
|
+
</C>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
<C style={[e.contrastPreviewBox,{backgroundColor:B.bgHex||"#4F46E5"}]}>
|
|
146
|
+
<T style={[e.contrastPreviewText,{color:B.fgHex||"#FFFFFF"}]}>
|
|
147
|
+
Sample Text Preview
|
|
148
|
+
</T>
|
|
149
|
+
</C>
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
<C style={e.ratioRow}>
|
|
153
|
+
<T style={e.ratioValue}>{B.ratio}:1</T>
|
|
154
|
+
<C style={e.badgeContainer}>
|
|
155
|
+
<C style={[e.complianceBadge,B.aaNormal?e.badgePass:e.badgeFail]}>
|
|
156
|
+
<T style={[e.badgeText,B.aaNormal?e.textPass:e.textFail]}>
|
|
157
|
+
AA (4.5:1) {B.aaNormal?"\u2713":"\u2717"}
|
|
158
|
+
</T>
|
|
159
|
+
</C>
|
|
160
|
+
<C style={[e.complianceBadge,B.aaLarge?e.badgePass:e.badgeFail]}>
|
|
161
|
+
<T style={[e.badgeText,B.aaLarge?e.textPass:e.textFail]}>
|
|
162
|
+
AA Large (3:1) {B.aaLarge?"\u2713":"\u2717"}
|
|
163
|
+
</T>
|
|
164
|
+
</C>
|
|
165
|
+
<C style={[e.complianceBadge,B.aaaNormal?e.badgePass:e.badgeFail]}>
|
|
166
|
+
<T style={[e.badgeText,B.aaaNormal?e.textPass:e.textFail]}>
|
|
167
|
+
AAA (7:1) {B.aaaNormal?"\u2713":"\u2717"}
|
|
168
|
+
</T>
|
|
169
|
+
</C>
|
|
170
|
+
</C>
|
|
171
|
+
</C>
|
|
172
|
+
</C>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
<C style={e.toolCard}>
|
|
176
|
+
<C style={e.toolHeader}>
|
|
177
|
+
<P size={18}color={t.greenColor}/>
|
|
178
|
+
<T style={e.toolTitle}>Touch Target Evaluator (WCAG 2.5.5/2.5.8)</T>
|
|
179
|
+
</C>
|
|
180
|
+
<T style={e.toolDesc}>
|
|
181
|
+
Validates interactive component dimensions against Apple HIG (44pt) and
|
|
182
|
+
Android Material (48dp) minimums.
|
|
183
|
+
</T>
|
|
184
|
+
|
|
185
|
+
<C style={{flexDirection:"row",gap:10,marginTop:10}}>
|
|
186
|
+
<C style={{flex:1}}>
|
|
187
|
+
<T style={e.inputLabel}>Width (dp/pt)</T>
|
|
188
|
+
<F style={e.input}value={E}onChangeText={Z}keyboardType="numeric"/>
|
|
189
|
+
</C>
|
|
190
|
+
<C style={{flex:1}}>
|
|
191
|
+
<T style={e.inputLabel}>Height (dp/pt)</T>
|
|
192
|
+
<F style={e.input}value={M}onChangeText={ee}keyboardType="numeric"/>
|
|
193
|
+
</C>
|
|
194
|
+
</C>
|
|
195
|
+
|
|
196
|
+
<C style={e.targetResultsRow}>
|
|
197
|
+
<C style={e.targetStatusBox}>
|
|
198
|
+
<T style={e.targetPlatformLabel}>iOS HIG (44x44pt)</T>
|
|
199
|
+
<T style={[e.targetStatusValue,{color:W.iosMinMet?t.greenColor:t.errorColor}]}>
|
|
200
|
+
{W.iosMinMet?"\u2713 Compliant":"\u2717 Too Small"}
|
|
201
|
+
</T>
|
|
202
|
+
</C>
|
|
203
|
+
<C style={e.targetStatusBox}>
|
|
204
|
+
<T style={e.targetPlatformLabel}>Android Material (48x48dp)</T>
|
|
205
|
+
<T style={[e.targetStatusValue,{color:W.androidMinMet?t.greenColor:t.errorColor}]}>
|
|
206
|
+
{W.androidMinMet?"\u2713 Compliant":"\u2717 Too Small"}
|
|
207
|
+
</T>
|
|
208
|
+
</C>
|
|
209
|
+
</C>
|
|
210
|
+
</C>
|
|
211
|
+
</C>}
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
{h==="wcag"&&<C>
|
|
215
|
+
|
|
216
|
+
<C style={e.searchBar}>
|
|
217
|
+
<Ae size={16}color={t.grayTextWeak}/>
|
|
218
|
+
<F style={e.searchInput}value={I}onChangeText={te}placeholder="Search WCAG 2.2 rules..."placeholderTextColor={t.grayTextWeak}/>
|
|
219
|
+
</C>
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
<_ horizontal showsHorizontalScrollIndicator={!1}style={{marginBottom:12}}>
|
|
223
|
+
{["ALL","A","AA","AAA"].map(x=><R key={x}style={[e.filterChip,w===x&&e.filterChipActive]}onPress={()=>re(x)}>
|
|
224
|
+
<T style={[e.filterChipText,w===x&&e.filterChipTextActive]}>
|
|
225
|
+
Level {x}
|
|
226
|
+
</T>
|
|
227
|
+
</R>)}
|
|
228
|
+
</_>
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
{ne.map(x=>{const A=!!oe[x.id];return<C key={x.id}style={e.ruleCard}>
|
|
232
|
+
<R style={e.ruleCardHeader}onPress={()=>se(x.id)}activeOpacity={.7}>
|
|
233
|
+
<C style={{flex:1}}>
|
|
234
|
+
<C style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
235
|
+
<T style={e.ruleId}>{x.id}</T>
|
|
236
|
+
<C style={[e.levelBadge,{backgroundColor:x.level==="AAA"?`${t.brandPurple}22`:x.level==="AA"?`${t.skyBlue}22`:`${t.greenColor}22`}]}>
|
|
237
|
+
<T style={[e.levelBadgeText,{color:x.level==="AAA"?t.brandPurple:x.level==="AA"?t.skyBlue:t.greenColor}]}>
|
|
238
|
+
Level {x.level}
|
|
239
|
+
</T>
|
|
240
|
+
</C>
|
|
241
|
+
<T style={e.principleTag}>{x.principle}</T>
|
|
242
|
+
</C>
|
|
243
|
+
<T style={e.ruleTitle}>{x.title}</T>
|
|
244
|
+
</C>
|
|
245
|
+
<Se direction={A?"up":"down"}size={16}color={t.grayTextWeak}/>
|
|
246
|
+
</R>
|
|
247
|
+
|
|
248
|
+
{A&&<C style={e.ruleBody}>
|
|
249
|
+
<T style={e.ruleDescLabel}>Criterion Definition:</T>
|
|
250
|
+
<T style={e.ruleDesc}>{x.description}</T>
|
|
251
|
+
|
|
252
|
+
<T style={[e.ruleDescLabel,{marginTop:8}]}>
|
|
253
|
+
Mobile / React Native Recommendation:
|
|
254
|
+
</T>
|
|
255
|
+
<T style={e.ruleRec}>{x.mobileRecommendation}</T>
|
|
256
|
+
|
|
257
|
+
<R style={e.copyRuleBtn}onPress={()=>{Ce(`WCAG ${x.id} ${x.title} (Level ${x.level}):
|
|
258
|
+
${x.description}
|
|
259
|
+
|
|
260
|
+
Mobile: ${x.mobileRecommendation}`),L(`Copied WCAG ${x.id} rule guidance`)}}>
|
|
261
|
+
<Be size={14}color={t.brandPurple}/>
|
|
262
|
+
<T style={e.copyRuleBtnText}>Copy Rule Guidance</T>
|
|
263
|
+
</R>
|
|
264
|
+
</C>}
|
|
265
|
+
</C>})}
|
|
266
|
+
</C>}
|
|
267
|
+
</_>
|
|
268
|
+
</C>};const e=N.create({container:{flex:1,backgroundColor:t.grayBackground},subTabBar:{flexDirection:"row",backgroundColor:t.graySurface,borderBottomWidth:N.hairlineWidth,borderBottomColor:t.grayBorderSecondary,paddingHorizontal:8,paddingVertical:4,gap:4},subTabItem:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",paddingVertical:8,borderRadius:8,gap:6},subTabItemActive:{backgroundColor:`${t.brandPurple}1F`},subTabText:{fontFamily:f.interMedium,fontSize:12,color:t.grayTextWeak},subTabTextActive:{color:t.brandPurple,fontFamily:f.interBold},scrollContent:{flex:1},scrollContainer:{padding:14,paddingBottom:40},bannerCard:{borderRadius:10,borderWidth:1,padding:12,marginBottom:14},bannerTitle:{fontFamily:f.interBold,fontSize:13,color:t.grayTextStrong},bannerSubtitle:{fontFamily:f.interRegular,fontSize:11,color:t.grayTextWeak,marginTop:2},metricsGrid:{flexDirection:"row",flexWrap:"wrap",gap:10,marginBottom:14},metricCard:{flexBasis:"48%",flexGrow:1,backgroundColor:t.primaryLight,borderRadius:10,borderWidth:1,borderColor:t.grayBorderSecondary,padding:12},metricLabel:{fontFamily:f.interMedium,fontSize:11,color:t.grayTextWeak,marginBottom:4},metricValue:{fontFamily:f.interBold,fontSize:14,color:t.grayTextStrong},metricSub:{fontFamily:f.interRegular,fontSize:10,color:t.grayTextWeak,marginTop:2},badgeRow:{flexDirection:"row",alignItems:"center",gap:6},statusDot:{width:8,height:8,borderRadius:4},actionButton:{flexDirection:"row",alignItems:"center",justifyContent:"center",backgroundColor:t.brandPurple,paddingVertical:12,borderRadius:8,gap:8},actionButtonText:{fontFamily:f.interBold,fontSize:13,color:t.white},toolCard:{backgroundColor:t.primaryLight,borderRadius:10,borderWidth:1,borderColor:t.grayBorderSecondary,padding:14,marginBottom:14},toolHeader:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:4},toolTitle:{fontFamily:f.interBold,fontSize:13,color:t.grayTextStrong},toolDesc:{fontFamily:f.interRegular,fontSize:11,color:t.grayTextWeak,marginBottom:8},inputLabel:{fontFamily:f.interMedium,fontSize:11,color:t.grayTextWeak,marginBottom:4},input:{backgroundColor:t.graySurface,borderWidth:1,borderColor:t.grayBorderSecondary,borderRadius:8,paddingHorizontal:12,paddingVertical:8,fontFamily:f.interRegular,fontSize:13,color:t.grayTextStrong},contrastPreviewBox:{marginTop:12,borderRadius:8,padding:16,alignItems:"center",justifyContent:"center"},contrastPreviewText:{fontFamily:f.interBold,fontSize:15},ratioRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:12},ratioValue:{fontFamily:f.interBold,fontSize:18,color:t.grayTextStrong},badgeContainer:{flexDirection:"row",gap:6},complianceBadge:{paddingHorizontal:8,paddingVertical:4,borderRadius:6,borderWidth:1},badgePass:{backgroundColor:`${t.greenColor}1A`,borderColor:`${t.greenColor}33`},badgeFail:{backgroundColor:`${t.errorColor}1A`,borderColor:`${t.errorColor}33`},badgeText:{fontFamily:f.interBold,fontSize:10},textPass:{color:t.greenColor},textFail:{color:t.errorColor},targetResultsRow:{flexDirection:"row",gap:10,marginTop:12},targetStatusBox:{flex:1,backgroundColor:t.graySurface,padding:10,borderRadius:8,borderWidth:1,borderColor:t.grayBorderSecondary,alignItems:"center"},targetPlatformLabel:{fontFamily:f.interMedium,fontSize:10,color:t.grayTextWeak},targetStatusValue:{fontFamily:f.interBold,fontSize:12,marginTop:4},searchBar:{flexDirection:"row",alignItems:"center",backgroundColor:t.primaryLight,borderRadius:8,borderWidth:1,borderColor:t.grayBorderSecondary,paddingHorizontal:10,paddingVertical:6,gap:6,marginBottom:10},searchInput:{flex:1,fontFamily:f.interRegular,fontSize:12,color:t.grayTextStrong,padding:0},filterChip:{paddingHorizontal:10,paddingVertical:5,borderRadius:6,backgroundColor:t.graySurface,borderWidth:1,borderColor:t.grayBorderSecondary,marginRight:6},filterChipActive:{backgroundColor:t.brandPurple,borderColor:t.brandPurple},filterChipText:{fontFamily:f.interMedium,fontSize:11,color:t.grayTextWeak},filterChipTextActive:{color:t.white,fontFamily:f.interBold},ruleCard:{backgroundColor:t.primaryLight,borderRadius:10,borderWidth:1,borderColor:t.grayBorderSecondary,padding:12,marginBottom:10},ruleCardHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},ruleId:{fontFamily:f.interBold,fontSize:11,color:t.brandPurple},levelBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},levelBadgeText:{fontFamily:f.interBold,fontSize:9},principleTag:{fontFamily:f.interRegular,fontSize:10,color:t.grayTextWeak},ruleTitle:{fontFamily:f.interBold,fontSize:13,color:t.grayTextStrong,marginTop:4},ruleBody:{marginTop:10,paddingTop:10,borderTopWidth:N.hairlineWidth,borderTopColor:t.grayBorderSecondary},ruleDescLabel:{fontFamily:f.interBold,fontSize:10,color:t.grayTextWeak,textTransform:"uppercase"},ruleDesc:{fontFamily:f.interRegular,fontSize:12,color:t.grayTextStrong,marginTop:2,lineHeight:16},ruleRec:{fontFamily:f.interMedium,fontSize:12,color:t.brandPurple,marginTop:2,lineHeight:16},copyRuleBtn:{flexDirection:"row",alignItems:"center",gap:6,marginTop:10,alignSelf:"flex-start",paddingVertical:4,paddingHorizontal:8,borderRadius:6,backgroundColor:`${t.brandPurple}14`},copyRuleBtnText:{fontFamily:f.interBold,fontSize:11,color:t.brandPurple}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,Text as C,View as T}from"react-native";import{AppColors as t}from"../../styles/AppColors";import{AppFonts as I}from"../../styles/AppFonts";import S from"../TouchableScale";import{useInspector as N}from"./InspectorContext";import{t as V}from"../../i18n";import{LIB_VERSION as $}from"../../constants/version";import _ from"../AppHeaderLogo";import{getAppName as O,getBundleIdentifier as E,getAppVersionAndBuild as M,copyToClipboard as H,showToast as A}from"../../helpers";import{GitHubIcon as
|
|
1
|
+
import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,Text as C,View as T}from"react-native";import{AppColors as t}from"../../styles/AppColors";import{AppFonts as I}from"../../styles/AppFonts";import S from"../TouchableScale";import{useInspector as N}from"./InspectorContext";import{t as V}from"../../i18n";import{LIB_VERSION as $}from"../../constants/version";import _ from"../AppHeaderLogo";import{getAppName as O,getBundleIdentifier as E,getAppVersionAndBuild as M,copyToClipboard as H,showToast as A}from"../../helpers";import{DeveloperSponsorCard as U}from"./DeveloperSponsorCard";import{GitHubIcon as G,NpmIcon as Q,BoltIcon as W,StarIcon as Z,BookOpenIcon as J,BugIcon as K,TagIcon as X,WifiIcon as Y,TerminalIcon as Te,AnalyticsIcon as Ce,DatabaseIcon as Ve,CameraIcon as Ie,CrashIcon as Se,ExternalLinkIcon as R,CopyIcon as Be}from"../NetworkIcons";export const AboutModal=({onClose:ve})=>{const{updateAvailable:z,latestNpmVersion:D}=N();return<T style={e.container}>
|
|
2
2
|
<L style={e.scrollView}contentContainerStyle={e.scrollContent}showsVerticalScrollIndicator={!1}>
|
|
3
3
|
|
|
4
4
|
<T style={e.heroCard}>
|
|
@@ -40,6 +40,9 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
40
40
|
</T>
|
|
41
41
|
|
|
42
42
|
|
|
43
|
+
<U/>
|
|
44
|
+
|
|
45
|
+
|
|
43
46
|
<T style={e.sectionCard}>
|
|
44
47
|
<C style={e.sectionHeader}>{V("about.appInformation","APP INFORMATION")}</C>
|
|
45
48
|
|
|
@@ -87,7 +90,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
87
90
|
<T style={e.featuresList}>
|
|
88
91
|
<T style={e.featureItem}>
|
|
89
92
|
<T style={[e.featureIconBox,{backgroundColor:`${t.brandPurple}15`}]}>
|
|
90
|
-
<
|
|
93
|
+
<Y color={t.brandPurple}size={18}/>
|
|
91
94
|
</T>
|
|
92
95
|
<T style={e.featureTextBox}>
|
|
93
96
|
<C style={e.featureTitle}>{V("about.featureNetwork","Network Traffic Monitor")}</C>
|
|
@@ -99,7 +102,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
99
102
|
|
|
100
103
|
<T style={e.featureItem}>
|
|
101
104
|
<T style={[e.featureIconBox,{backgroundColor:`${t.blue500}15`}]}>
|
|
102
|
-
<
|
|
105
|
+
<Te color={t.blue500}size={18}/>
|
|
103
106
|
</T>
|
|
104
107
|
<T style={e.featureTextBox}>
|
|
105
108
|
<C style={e.featureTitle}>{V("about.featureConsole","Console Logger")}</C>
|
|
@@ -111,7 +114,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
111
114
|
|
|
112
115
|
<T style={e.featureItem}>
|
|
113
116
|
<T style={[e.featureIconBox,{backgroundColor:`${t.firebaseOrange}15`}]}>
|
|
114
|
-
<
|
|
117
|
+
<Ce color={t.firebaseOrange}size={18}/>
|
|
115
118
|
</T>
|
|
116
119
|
<T style={e.featureTextBox}>
|
|
117
120
|
<C style={e.featureTitle}>{V("about.featureAnalytics","Analytics Telemetry")}</C>
|
|
@@ -123,7 +126,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
123
126
|
|
|
124
127
|
<T style={e.featureItem}>
|
|
125
128
|
<T style={[e.featureIconBox,{backgroundColor:`${t.violet600}15`}]}>
|
|
126
|
-
<
|
|
129
|
+
<Ve color={t.violet600}size={18}/>
|
|
127
130
|
</T>
|
|
128
131
|
<T style={e.featureTextBox}>
|
|
129
132
|
<C style={e.featureTitle}>{V("about.featureRedux","Redux State & Actions")}</C>
|
|
@@ -135,7 +138,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
135
138
|
|
|
136
139
|
<T style={e.featureItem}>
|
|
137
140
|
<T style={[e.featureIconBox,{backgroundColor:`${t.teal600}15`}]}>
|
|
138
|
-
<
|
|
141
|
+
<Ie color={t.teal600}size={18}/>
|
|
139
142
|
</T>
|
|
140
143
|
<T style={e.featureTextBox}>
|
|
141
144
|
<C style={e.featureTitle}>{V("about.featureCapture","Screen & Video Capture")}</C>
|
|
@@ -147,7 +150,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
147
150
|
|
|
148
151
|
<T style={e.featureItem}>
|
|
149
152
|
<T style={[e.featureIconBox,{backgroundColor:`${t.emerald600}15`}]}>
|
|
150
|
-
<
|
|
153
|
+
<Se color={t.emerald600}size={18}/>
|
|
151
154
|
</T>
|
|
152
155
|
<T style={e.featureTextBox}>
|
|
153
156
|
<C style={e.featureTitle}>
|
|
@@ -164,10 +167,10 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
164
167
|
|
|
165
168
|
<T style={e.gridContainer}>
|
|
166
169
|
<S onPress={()=>{B.openURL("https://github.com/vengatmacuser/react-native-inapp-inspector").catch(()=>{})}}style={[e.gridCard,{backgroundColor:`${t.brandPurple}0F`,borderColor:`${t.brandPurple}30`}]}>
|
|
167
|
-
<
|
|
170
|
+
<G color={t.brandPurple}size={18}/>
|
|
168
171
|
<T style={{flex:1}}>
|
|
169
172
|
<T style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
170
|
-
<
|
|
173
|
+
<Z color={t.amber500}size={13}/>
|
|
171
174
|
<C style={e.gridCardTitle}>{V("about.github","GitHub")}</C>
|
|
172
175
|
</T>
|
|
173
176
|
<C style={e.gridCardSub}>{V("about.githubSub","Star & source code")}</C>
|
|
@@ -176,7 +179,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
176
179
|
</S>
|
|
177
180
|
|
|
178
181
|
<S onPress={()=>{B.openURL("https://www.npmjs.com/package/react-native-inapp-inspector").catch(()=>{})}}style={e.gridCard}>
|
|
179
|
-
<
|
|
182
|
+
<Q color={t.npmRed}size={18}/>
|
|
180
183
|
<T style={{flex:1}}>
|
|
181
184
|
<C style={e.gridCardTitle}>{V("about.npmRegistry","NPM Registry")}</C>
|
|
182
185
|
<C style={e.gridCardSub}>{V("about.npmRegistrySub","Package updates")}</C>
|
|
@@ -185,7 +188,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
185
188
|
</S>
|
|
186
189
|
|
|
187
190
|
<S onPress={()=>{B.openURL("https://github.com/vengatmacuser/react-native-inapp-inspector#readme").catch(()=>{})}}style={e.gridCard}>
|
|
188
|
-
<
|
|
191
|
+
<J color={t.brandPurple}size={18}/>
|
|
189
192
|
<T style={{flex:1}}>
|
|
190
193
|
<C style={e.gridCardTitle}>{V("about.documentation","Documentation")}</C>
|
|
191
194
|
<C style={e.gridCardSub}>{V("about.documentationSub","Integration guide")}</C>
|
|
@@ -194,7 +197,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
194
197
|
</S>
|
|
195
198
|
|
|
196
199
|
<S onPress={()=>{B.openURL("https://github.com/vengatmacuser/react-native-inapp-inspector/issues").catch(()=>{})}}style={e.gridCard}>
|
|
197
|
-
<
|
|
200
|
+
<K color={t.errorColor}size={18}/>
|
|
198
201
|
<T style={{flex:1}}>
|
|
199
202
|
<C style={e.gridCardTitle}>{V("about.reportIssue","Report Issue")}</C>
|
|
200
203
|
<C style={e.gridCardSub}>{V("about.reportIssueSub","Help & support")}</C>
|
|
@@ -203,7 +206,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
203
206
|
</S>
|
|
204
207
|
|
|
205
208
|
<S onPress={()=>{B.openURL("https://github.com/vengatmacuser/react-native-inapp-inspector/releases").catch(()=>{})}}style={e.gridCard}>
|
|
206
|
-
<
|
|
209
|
+
<X color={t.successGreen}size={18}/>
|
|
207
210
|
<T style={{flex:1}}>
|
|
208
211
|
<C style={e.gridCardTitle}>{V("about.releaseNotes","Release Notes")}</C>
|
|
209
212
|
<C style={e.gridCardSub}>{V("about.releaseNotesSub","What's new")}</C>
|
|
@@ -212,7 +215,7 @@ import"react";import{Platform as P,Linking as B,ScrollView as L,StyleSheet as F,
|
|
|
212
215
|
</S>
|
|
213
216
|
|
|
214
217
|
<S onPress={()=>{H("npm install react-native-inapp-inspector","NPM Command"),A(V("about.copiedInstallCommand","Copied package install command!"))}}style={e.gridCard}>
|
|
215
|
-
<
|
|
218
|
+
<Be color={t.brandPurple}size={16}/>
|
|
216
219
|
<T style={{flex:1}}>
|
|
217
220
|
<C style={e.gridCardTitle}>{V("about.copyInstall","Copy Install")}</C>
|
|
218
221
|
<C style={e.gridCardSub}>{V("about.copyInstallSub","npm / yarn command")}</C>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DeveloperSponsorCardProps {
|
|
3
|
+
publisherId?: string;
|
|
4
|
+
customEndpoint?: string;
|
|
5
|
+
containerStyle?: object;
|
|
6
|
+
compact?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const DeveloperSponsorCard: React.FC<DeveloperSponsorCardProps>;
|
|
9
|
+
export default DeveloperSponsorCard;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import{useEffect as O,useState as H}from"react";import{Image as L,Linking as P,Pressable as W,StyleSheet as N,Text as S,View as T}from"react-native";import $ from"../TouchableScale";import{AppColors as t}from"../../styles/AppColors";import{AppFonts as C}from"../../styles/AppFonts";import{fetchDeveloperSponsor as j,trackSponsorImpression as A,handleSponsorClick as M}from"../../helpers/sponsorService";import{SparklesIcon as E,ExternalLinkIcon as I,GlobeIcon as U,ShieldCheckIcon as G}from"../NetworkIcons";export const DeveloperSponsorCard=({publisherId:B,customEndpoint:v,containerStyle:D,compact:R=!1})=>{const[o,F]=H(null);if(O(()=>{let V=!0;return j(B,v).then(k=>{V&&k&&(F(k),A(k))}),()=>{V=!1}},[B,v]),!o)return null;const r=o.accentColor||t.indigo600;return<$ onPress={()=>M(o)}style={[e.cardContainer,{borderColor:`${r}40`},D]}>
|
|
2
|
+
|
|
3
|
+
<T style={[e.glowBackground,{backgroundColor:`${r}0A`}]}/>
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<T style={e.headerRow}>
|
|
7
|
+
<T style={e.badgeRow}>
|
|
8
|
+
<T style={[e.sponsorBadge,{backgroundColor:`${r}1F`,borderColor:`${r}44`}]}>
|
|
9
|
+
<E size={10}color={r}/>
|
|
10
|
+
<S style={[e.sponsorBadgeText,{color:r}]}>
|
|
11
|
+
{o.badgeText||"SPONSORED"}
|
|
12
|
+
</S>
|
|
13
|
+
</T>
|
|
14
|
+
{o.sponsorName?<S style={e.sponsorNameText}>· {o.sponsorName}</S>:null}
|
|
15
|
+
</T>
|
|
16
|
+
|
|
17
|
+
<T style={e.verifiedRow}>
|
|
18
|
+
{o.type==="ethicalads"?<W hitSlop={8}onPress={()=>P.openURL("https://www.ethicalads.io/?ref=react-native-inapp-inspector").catch(()=>{})}style={{flexDirection:"row",alignItems:"center",gap:3.5}}>
|
|
19
|
+
<S style={e.verifiedText}>Ad by EthicalAds</S>
|
|
20
|
+
<I size={10}color={t.grayTextWeak}/>
|
|
21
|
+
</W>:<>
|
|
22
|
+
<G size={11}color={t.emerald500}/>
|
|
23
|
+
<S style={e.verifiedText}>Verified Dev Tool</S>
|
|
24
|
+
<I size={11}color={t.grayTextWeak}/>
|
|
25
|
+
</>}
|
|
26
|
+
</T>
|
|
27
|
+
</T>
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
<T style={e.contentRow}>
|
|
31
|
+
{o.logoUrl?<L source={{uri:o.logoUrl}}style={e.logoImage}resizeMode="contain"/>:<T style={[e.iconPlaceholder,{backgroundColor:`${r}18`}]}>
|
|
32
|
+
<U size={18}color={r}/>
|
|
33
|
+
</T>}
|
|
34
|
+
|
|
35
|
+
<T style={e.textColumn}>
|
|
36
|
+
<S style={[e.headlineText,R&&{fontSize:12.5,lineHeight:16}]}numberOfLines={R?1:2}>
|
|
37
|
+
{o.title}
|
|
38
|
+
</S>
|
|
39
|
+
{o.description&&!R?<S style={e.descText}numberOfLines={2}>
|
|
40
|
+
{o.description}
|
|
41
|
+
</S>:null}
|
|
42
|
+
</T>
|
|
43
|
+
</T>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<T style={e.footerRow}>
|
|
47
|
+
<T style={[e.ctaButton,{backgroundColor:r,shadowColor:r}]}>
|
|
48
|
+
<S style={e.ctaButtonText}>{o.ctaText||"Learn More"}</S>
|
|
49
|
+
<I size={11}color={t.white}/>
|
|
50
|
+
</T>
|
|
51
|
+
</T>
|
|
52
|
+
</$>};const e=N.create({cardContainer:{backgroundColor:t.primaryLight,borderRadius:14,padding:13,borderWidth:1.2,position:"relative",overflow:"hidden",shadowColor:t.shadowColorString,shadowOffset:{width:0,height:2},shadowOpacity:.06,shadowRadius:8,elevation:2,gap:10},glowBackground:{position:"absolute",top:0,left:0,right:0,bottom:0},headerRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},badgeRow:{flexDirection:"row",alignItems:"center",gap:6},sponsorBadge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:7,paddingVertical:2.5,borderRadius:6,borderWidth:1},sponsorBadgeText:{fontFamily:C.interBold,fontSize:9,lineHeight:12,letterSpacing:.6},sponsorNameText:{fontFamily:C.interSemiBold,fontSize:11,color:t.grayTextWeak},verifiedRow:{flexDirection:"row",alignItems:"center",gap:3.5},verifiedText:{fontFamily:C.interMedium,fontSize:9.5,color:t.grayTextWeak},contentRow:{flexDirection:"row",alignItems:"center",gap:10},logoImage:{width:38,height:38,borderRadius:8},iconPlaceholder:{width:38,height:38,borderRadius:8,alignItems:"center",justifyContent:"center"},textColumn:{flex:1,gap:2},headlineText:{fontFamily:C.interBold,fontSize:13.5,lineHeight:18,color:t.primaryBlack,letterSpacing:-.2},descText:{fontFamily:C.interRegular,fontSize:11,lineHeight:15,color:t.grayTextWeak},footerRow:{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",marginTop:2},ctaButton:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:5,paddingHorizontal:12,paddingVertical:6.5,borderRadius:8,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:2},ctaButtonText:{fontFamily:C.interBold,fontSize:11.5,lineHeight:15,color:t.white}});export default DeveloperSponsorCard;
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import{useCallback as
|
|
1
|
+
import{useCallback as te,useEffect as W,useRef as v,useState as j}from"react";import{Animated as n,Dimensions as Be,PanResponder as ze,Platform as N,StyleSheet as re,Text as $,View as S}from"react-native";import Se from"react-native-linear-gradient";import{useInspector as Le}from"./InspectorContext";import X from"../TouchableScale";import{GripVerticalIcon as Ae,ScreenshotCaptureIcon as Ee,ScreenRecordIcon as Oe}from"../NetworkIcons";import{ScreenCapture as T,generateCaptureId as Y}from"../../capture";import{triggerNativeHaptic as F}from"../../native/NativeInspector";import{showToast as x}from"../../helpers/toast";import{AppColors as i}from"../../styles/AppColors";import{AppFonts as ve}from"../../styles/AppFonts";import{useTranslation as Ge}from"../../i18n";import{MediaPreviewModal as We}from"./MediaPreviewModal";export const FloatingCaptureWidget=()=>{const{refreshMediaCount:I,captureFps:H,captureScale:U,captureBitrate:z,captureMaxDurationSeconds:_,captureAudioMode:J,captureWidgetEnabled:xe,activeTab:Ie,settingsPage:Re,peekMode:je,previewMediaItem:L,setPreviewMediaItem:M,isUpdatePopupVisible:Ce}=Le(),{t:s}=Ge(),[V,k]=j(!1),[Te,A]=j(!1),[Me,E]=j(0),R=v(null),P=v(new n.Value(1)).current,B=v(new n.Value(0)).current,a=v(new n.ValueXY({x:0,y:0})).current,C=v({x:0,y:0});W(()=>{const e=a.x.addListener(o=>C.current.x=o.value),t=a.y.addListener(o=>C.current.y=o.value);return()=>{a.x.removeListener(e),a.y.removeListener(t)}},[a]);const D=v(!1),Ve=v(ze.create({onStartShouldSetPanResponder:()=>!0,onStartShouldSetPanResponderCapture:()=>!1,onMoveShouldSetPanResponder:(e,t)=>Math.abs(t.dx)>2||Math.abs(t.dy)>2,onMoveShouldSetPanResponderCapture:(e,t)=>Math.abs(t.dx)>4||Math.abs(t.dy)>4,onPanResponderGrant:()=>{D.current=!0,a.setOffset({x:C.current.x,y:C.current.y}),a.setValue({x:0,y:0})},onPanResponderMove:n.event([null,{dx:a.x,dy:a.y}],{useNativeDriver:!1}),onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderRelease:()=>{a.flattenOffset(),setTimeout(()=>{D.current=!1},100);const{width:e,height:t}=Be.get("window"),o=e/2-20,Q=-o,Z=20,ee=-(t-140),O=C.current.x,G=C.current.y;if(O<Q||O>o||G<ee||G>Z){const De=Math.min(Math.max(O,Q),o),Fe=Math.min(Math.max(G,ee),Z);n.spring(a,{toValue:{x:De,y:Fe},friction:7,tension:50,useNativeDriver:!1}).start()}},onPanResponderTerminate:()=>{a.flattenOffset(),D.current=!1}})).current;W(()=>{T.isRecording().then(e=>{k(e)}).catch(()=>{})},[]),W(()=>{let e=null;return V?(E(0),R.current=setInterval(()=>{E(t=>t+1)},1e3),e=n.loop(n.sequence([n.timing(P,{toValue:1.15,duration:500,useNativeDriver:!0}),n.timing(P,{toValue:1,duration:500,useNativeDriver:!0})])),e.start()):(R.current&&(clearInterval(R.current),R.current=null),E(0),P.setValue(1)),()=>{R.current&&clearInterval(R.current),e&&e.stop()}},[V,P]);const ke=te(async()=>{if(!D.current)try{F("light"),A(!0),await new Promise(t=>setTimeout(t,60));const e=await T.takeScreenshot({format:"png",quality:.9,hideInspector:!1});if(A(!1),n.sequence([n.timing(B,{toValue:.65,duration:70,useNativeDriver:!0}),n.timing(B,{toValue:0,duration:200,useNativeDriver:!0})]).start(),e){F("success");const t=Y("screenshot",e.format||"png"),o={id:t,type:"image",format:e.format,uri:e.uri,filename:e.uri.split("/").pop()||t,sizeBytes:e.sizeBytes,timestamp:e.timestamp,width:e.width,height:e.height};M(o),I?.().catch(()=>{}),x(s("header.screenshotCaptured","Screenshot captured"))}else x(s("header.screenshotFailed","Failed to capture screenshot"))}catch{A(!1),x(s("header.screenshotError","Error capturing screenshot"))}},[I,B,s]),K=te(async()=>{if(!D.current)try{if(V){F("medium");const e=await T.stopRecording();if(k(!1),e){F("success");const t=Y("video",e.format),o={id:t,type:e.format==="gif"?"gif":"video",format:e.format,uri:e.uri,filename:e.uri.split("/").pop()||t,sizeBytes:e.sizeBytes,timestamp:e.timestamp,durationMs:e.durationMs,width:e.width,height:e.height,hasAudio:e.hasAudio,thumbnailUri:e.thumbnailUri};M(o),I?.().catch(()=>{}),x(s("header.recordingSaved",{duration:(e.durationMs/1e3).toFixed(1),defaultValue:`Recording saved (${(e.durationMs/1e3).toFixed(1)}s)`}))}}else F("medium"),k(!0),await T.startRecording({fps:H,scale:U,audioSource:J,bitrate:z>0?z:void 0,maxDurationSeconds:_})?x(s("header.recordingStarted","Recording started")):(k(!1),x(s("header.recordingStartFailed","Failed to start recording")))}catch{x(s("header.recordingError","Error during screen recording")),k(!1)}},[V,H,U,z,_,J,I,s]),Pe=e=>{const t=Math.floor(e/60),o=e%60;return`${t<10?"0":""}${t}:${o<10?"0":""}${o}`};return!xe||Ie==="media"||Re==="media"||Ce?null:<>
|
|
2
2
|
|
|
3
|
-
<n.View pointerEvents="none"style={[r.flashOverlay,{opacity:
|
|
3
|
+
<n.View pointerEvents="none"style={[r.flashOverlay,{opacity:B}]}/>
|
|
4
4
|
|
|
5
|
-
{!
|
|
5
|
+
{!Te&&!L&&<n.View{...Ve.panHandlers}style={[r.container,{transform:a.getTranslateTransform()}]}>
|
|
6
6
|
|
|
7
|
-
{
|
|
8
|
-
|
|
7
|
+
{V?<S style={r.recordingShadowWrapper}>
|
|
8
|
+
<X onPress={K}style={r.recordingPillWrapper}>
|
|
9
9
|
<Se colors={[i.rose600,i.rose700]}start={{x:0,y:0}}end={{x:1,y:0}}style={r.recordingPill}>
|
|
10
|
-
<n.View style={[r.recordingDot,{transform:[{scale:
|
|
11
|
-
|
|
12
|
-
REC {
|
|
13
|
-
|
|
10
|
+
<n.View style={[r.recordingDot,{transform:[{scale:P}]}]}/>
|
|
11
|
+
<$ style={r.recordingText}>
|
|
12
|
+
REC {Pe(Me)}
|
|
13
|
+
</$>
|
|
14
14
|
<S style={r.stopIconBadge}>
|
|
15
15
|
<S style={r.stopIconSquare}/>
|
|
16
16
|
</S>
|
|
17
17
|
</Se>
|
|
18
|
-
|
|
18
|
+
</X>
|
|
19
19
|
</S>:<S style={r.dockShadowWrapper}>
|
|
20
20
|
<Se colors={[i.navy900,i.navy800,i.navy900]}start={{x:0,y:0}}end={{x:1,y:0}}style={r.dockBar}>
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
<X onPress={ke}style={r.menuItemBtn}accessible={!0}accessibilityLabel="Take Screenshot">
|
|
23
23
|
<S style={[r.menuItemIconCircle,{backgroundColor:`${i.sky400}38`}]}>
|
|
24
|
-
<
|
|
24
|
+
<Ee size={14}color={i.sky400}/>
|
|
25
25
|
</S>
|
|
26
|
-
|
|
26
|
+
<$ style={r.menuItemText}>
|
|
27
27
|
{s("header.screenshot","Screenshot")}
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
</$>
|
|
29
|
+
</X>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<S style={r.dockDivider}/>
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
<X onPress={K}style={r.menuItemBtn}accessible={!0}accessibilityLabel={s("header.recordScreen","Record Screen")}>
|
|
36
36
|
<S style={[r.menuItemIconCircle,{backgroundColor:`${i.rose500}3D`}]}>
|
|
37
37
|
<Oe size={14}color={i.rose400}/>
|
|
38
38
|
</S>
|
|
39
|
-
|
|
39
|
+
<$ style={r.menuItemText}>
|
|
40
40
|
{s("header.record","Record")}
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
</$>
|
|
42
|
+
</X>
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
<S style={r.dragGripArea}>
|
|
46
|
-
<
|
|
46
|
+
<Ae size={14}color="rgba(255, 255, 255, 0.55)"/>
|
|
47
47
|
</S>
|
|
48
48
|
</Se>
|
|
49
49
|
</S>}
|
|
50
50
|
</n.View>}
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
<
|
|
54
|
-
</>};const r=
|
|
53
|
+
<We item={L}visible={!!L}onClose={()=>M(null)}onDelete={async e=>{await T.deleteMedia(e.uri),I?.().catch(()=>{}),M(null)}}onConvertToGif={async e=>{const t=await T.convertToGif(e.uri,{fps:12,width:480});if(t){I?.().catch(()=>{});const o=Y("anim","gif");M({id:o,type:"gif",format:"gif",uri:t.uri,filename:t.uri.split("/").pop()||o,sizeBytes:t.sizeBytes,timestamp:t.timestamp,durationMs:t.durationMs})}}}/>
|
|
54
|
+
</>};const r=re.create({flashOverlay:{...re.absoluteFillObject,backgroundColor:i.white,zIndex:999999},container:{position:"absolute",bottom:N.OS==="ios"?22:16,alignSelf:"center",alignItems:"center",justifyContent:"center",zIndex:999999,elevation:999999},dockShadowWrapper:{borderRadius:24,backgroundColor:"#0D1120",...N.select({ios:{shadowColor:i.black,shadowOffset:{width:0,height:6},shadowOpacity:.45,shadowRadius:14},android:{elevation:16}})},dockBar:{flexDirection:"row",alignItems:"center",borderRadius:24,overflow:"hidden"},dragGripArea:{paddingLeft:6,paddingRight:12,paddingVertical:10,alignItems:"center",justifyContent:"center"},dockDivider:{width:1,height:18,backgroundColor:"rgba(255, 255, 255, 0.14)"},menuItemBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:7,paddingVertical:8.5,paddingHorizontal:12},menuItemIconCircle:{width:24,height:24,borderRadius:12,alignItems:"center",justifyContent:"center"},menuItemText:{fontFamily:ve.interSemiBold,fontSize:12,color:i.white,letterSpacing:.1},recordingShadowWrapper:{borderRadius:22,alignItems:"center",justifyContent:"center",...N.select({ios:{shadowColor:"#E11D48",shadowOffset:{width:0,height:4},shadowOpacity:.5,shadowRadius:12},android:{elevation:14}})},recordingPillWrapper:{borderRadius:22,overflow:"hidden"},recordingPill:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,height:38,paddingHorizontal:14,borderRadius:22,borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.45)"},recordingDot:{width:8,height:8,borderRadius:4,backgroundColor:"#FFFFFF"},recordingText:{fontFamily:ve.interBold,fontSize:12,color:i.white,letterSpacing:.4},stopIconBadge:{width:18,height:18,borderRadius:9,backgroundColor:"rgba(255, 255, 255, 0.28)",alignItems:"center",justifyContent:"center",marginLeft:3},stopIconSquare:{width:6,height:6,borderRadius:1.5,backgroundColor:i.white}});export default FloatingCaptureWidget;
|