react-native-inapp-inspector 2.5.12 → 2.5.14
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.md +0 -8
- 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$62$$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 +176 -0
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +236 -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 +337 -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 +19 -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 +1 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_inappinspector_file_paths.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -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 +3 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +28 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +19 -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/packaged_res/debug/packageDebugResources/xml/inappinspector_file_paths.xml +7 -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$62$$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 +2 -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 +35 -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$62$$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/AndroidManifest.xml +11 -0
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +492 -45
- package/android/src/main/res/xml/inappinspector_file_paths.xml +7 -0
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +47 -49
- package/dist/commonjs/components/Inspector/BoxModelVisualizer.d.ts +8 -0
- package/dist/commonjs/components/Inspector/BoxModelVisualizer.js +76 -0
- package/dist/commonjs/components/Inspector/ConsoleExportModal.js +51 -51
- package/dist/commonjs/components/Inspector/ConsoleTab.js +7 -7
- package/dist/commonjs/components/Inspector/CrashTab.js +17 -17
- package/dist/commonjs/components/Inspector/DebuggingTab.js +37 -37
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +2 -2
- package/dist/commonjs/components/Inspector/FabLauncher.js +4 -4
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +2 -2
- package/dist/commonjs/components/Inspector/InspectorHeader.js +36 -36
- package/dist/commonjs/components/Inspector/MainScreen.js +38 -75
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +10 -10
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +1 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +222 -222
- package/dist/commonjs/components/Inspector/NetworkExportModal.d.ts +10 -0
- package/dist/commonjs/components/Inspector/NetworkExportModal.js +333 -0
- package/dist/commonjs/components/Inspector/NetworkTab.js +60 -53
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +11 -12
- package/dist/commonjs/components/Inspector/ReduxDetail.js +17 -19
- package/dist/commonjs/components/Inspector/ReduxTab.js +5 -5
- package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.d.ts +1 -0
- package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.js +17 -16
- package/dist/commonjs/components/Inspector/SettingsPanel.js +43 -47
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.d.ts +3 -0
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +34 -3
- package/dist/commonjs/components/Inspector/SocketCard.js +2 -2
- package/dist/commonjs/components/Inspector/SupportPage.js +5 -5
- package/dist/commonjs/components/Inspector/TabBar.js +9 -15
- package/dist/commonjs/components/Inspector/UiA11yAuditPanel.d.ts +7 -0
- package/dist/commonjs/components/Inspector/UiA11yAuditPanel.js +97 -0
- package/dist/commonjs/components/Inspector/UiInspectorDetail.d.ts +2 -0
- package/dist/commonjs/components/Inspector/UiInspectorDetail.js +485 -0
- package/dist/commonjs/components/Inspector/UiInspectorOverlay.d.ts +2 -0
- package/dist/commonjs/components/Inspector/UiInspectorOverlay.js +199 -0
- package/dist/commonjs/components/Inspector/UiInspectorTab.d.ts +2 -0
- package/dist/commonjs/components/Inspector/UiInspectorTab.js +117 -0
- package/dist/commonjs/components/Inspector/UiLiveStyleTweaker.d.ts +10 -0
- package/dist/commonjs/components/Inspector/UiLiveStyleTweaker.js +148 -0
- package/dist/commonjs/components/Inspector/index.d.ts +28 -0
- package/dist/commonjs/components/Inspector/index.js +1 -0
- package/dist/commonjs/components/LogCard.js +12 -10
- package/dist/commonjs/components/SkeletonPlaceholder.d.ts +3 -0
- package/dist/commonjs/components/SkeletonPlaceholder.js +34 -3
- package/dist/commonjs/constants/index.js +1 -1
- 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/crashHandler.d.ts +1 -1
- package/dist/commonjs/customHooks/crashHandler.js +6 -6
- package/dist/commonjs/customHooks/uiInspectorManager.d.ts +22 -0
- package/dist/commonjs/customHooks/uiInspectorManager.js +1 -0
- package/dist/commonjs/helpers/index.js +1 -3
- package/dist/commonjs/helpers/remoteConfig.js +1 -1
- package/dist/commonjs/helpers/searchQueryParser.d.ts +1 -0
- package/dist/commonjs/helpers/searchQueryParser.js +7 -5
- package/dist/commonjs/helpers/shareFormatter.d.ts +16 -0
- package/dist/commonjs/helpers/shareFormatter.js +16 -9
- package/dist/commonjs/helpers/uiInspectorEngine.d.ts +62 -0
- package/dist/commonjs/helpers/uiInspectorEngine.js +19 -0
- 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.d.ts +4 -2
- package/dist/commonjs/index.js +3 -3
- package/dist/commonjs/native/NativeInspector.d.ts +4 -0
- package/dist/commonjs/native/NativeInspector.js +1 -1
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +4 -0
- package/dist/commonjs/styles/AppFonts.d.ts +4 -0
- package/dist/commonjs/styles/AppFonts.js +1 -1
- package/dist/commonjs/styles/index.d.ts +2 -0
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/editor.d.ts +31 -0
- package/dist/commonjs/types/enums.d.ts +0 -2
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +1 -1
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +73 -75
- package/dist/esm/components/Inspector/BoxModelVisualizer.d.ts +8 -0
- package/dist/esm/components/Inspector/BoxModelVisualizer.js +76 -0
- package/dist/esm/components/Inspector/ConsoleExportModal.js +67 -67
- package/dist/esm/components/Inspector/ConsoleTab.js +48 -48
- package/dist/esm/components/Inspector/CrashTab.js +58 -58
- package/dist/esm/components/Inspector/DebuggingTab.js +105 -105
- package/dist/esm/components/Inspector/DeviceInfoTab.js +2 -2
- package/dist/esm/components/Inspector/FabLauncher.js +50 -50
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +23 -23
- package/dist/esm/components/Inspector/InspectorHeader.js +64 -64
- package/dist/esm/components/Inspector/MainScreen.js +87 -124
- package/dist/esm/components/Inspector/MediaGalleryTab.js +151 -151
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +1 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.js +468 -468
- package/dist/esm/components/Inspector/NetworkExportModal.d.ts +10 -0
- package/dist/esm/components/Inspector/NetworkExportModal.js +333 -0
- package/dist/esm/components/Inspector/NetworkTab.js +143 -136
- package/dist/esm/components/Inspector/NpmStarPrompt.js +32 -33
- package/dist/esm/components/Inspector/ReduxDetail.js +54 -56
- package/dist/esm/components/Inspector/ReduxTab.js +9 -9
- package/dist/esm/components/Inspector/SecondaryTelemetryStrip.d.ts +1 -0
- package/dist/esm/components/Inspector/SecondaryTelemetryStrip.js +23 -22
- package/dist/esm/components/Inspector/SettingsPanel.js +109 -113
- package/dist/esm/components/Inspector/SkeletonPlaceholder.d.ts +3 -0
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +42 -11
- package/dist/esm/components/Inspector/SocketCard.js +13 -13
- package/dist/esm/components/Inspector/SupportPage.js +5 -5
- package/dist/esm/components/Inspector/TabBar.js +35 -41
- package/dist/esm/components/Inspector/UiA11yAuditPanel.d.ts +7 -0
- package/dist/esm/components/Inspector/UiA11yAuditPanel.js +97 -0
- package/dist/esm/components/Inspector/UiInspectorDetail.d.ts +2 -0
- package/dist/esm/components/Inspector/UiInspectorDetail.js +422 -0
- package/dist/esm/components/Inspector/UiInspectorOverlay.d.ts +2 -0
- package/dist/esm/components/Inspector/UiInspectorOverlay.js +138 -0
- package/dist/esm/components/Inspector/UiInspectorTab.d.ts +2 -0
- package/dist/esm/components/Inspector/UiInspectorTab.js +117 -0
- package/dist/esm/components/Inspector/UiLiveStyleTweaker.d.ts +10 -0
- package/dist/esm/components/Inspector/UiLiveStyleTweaker.js +148 -0
- package/dist/esm/components/Inspector/index.d.ts +28 -0
- package/dist/esm/components/Inspector/index.js +1 -0
- package/dist/esm/components/LogCard.js +24 -22
- package/dist/esm/components/SkeletonPlaceholder.d.ts +3 -0
- package/dist/esm/components/SkeletonPlaceholder.js +42 -11
- package/dist/esm/constants/index.js +1 -1
- 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/crashHandler.d.ts +1 -1
- package/dist/esm/customHooks/crashHandler.js +6 -6
- package/dist/esm/customHooks/uiInspectorManager.d.ts +22 -0
- package/dist/esm/customHooks/uiInspectorManager.js +1 -0
- package/dist/esm/helpers/index.js +4 -6
- package/dist/esm/helpers/remoteConfig.js +1 -1
- package/dist/esm/helpers/searchQueryParser.d.ts +1 -0
- package/dist/esm/helpers/searchQueryParser.js +7 -5
- package/dist/esm/helpers/shareFormatter.d.ts +16 -0
- package/dist/esm/helpers/shareFormatter.js +20 -13
- package/dist/esm/helpers/uiInspectorEngine.d.ts +48 -0
- package/dist/esm/helpers/uiInspectorEngine.js +19 -0
- 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.d.ts +4 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/native/NativeInspector.d.ts +4 -0
- package/dist/esm/native/NativeInspector.js +1 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +4 -0
- package/dist/esm/styles/AppFonts.d.ts +4 -0
- package/dist/esm/styles/AppFonts.js +1 -1
- package/dist/esm/styles/index.d.ts +2 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/editor.d.ts +31 -0
- package/dist/esm/types/enums.d.ts +0 -2
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/interfaces.d.ts +1 -1
- package/ios/NetworkInspectorModule.mm +597 -336
- package/package.json +1 -1
- package/src/native/NativeInspector.ts +67 -0
- package/src/native/NativeNetworkInspector.ts +4 -0
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(l,r,
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(l,r,o,a){a===void 0&&(a=o);var i=Object.getOwnPropertyDescriptor(r,o);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[o]}}),Object.defineProperty(l,a,i)}):(function(l,r,o,a){a===void 0&&(a=o),l[a]=r[o]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(l,r){Object.defineProperty(l,"default",{enumerable:!0,value:r})}):function(l,r){l.default=r}),__importStar=this&&this.__importStar||(function(){var l=function(r){return l=Object.getOwnPropertyNames||function(o){var a=[];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(a[a.length]=i);return a},l(r)};return function(r){if(r&&r.__esModule)return r;var o={};if(r!=null)for(var a=l(r),i=0;i<a.length;i++)a[i]!=="default"&&__createBinding(o,r,a[i]);return __setModuleDefault(o,r),o}})(),__importDefault=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),InspectorContext_1=require("./InspectorContext"),TouchableScale_1=__importDefault(require("../TouchableScale")),AnimatedEntrance_1=__importDefault(require("../AnimatedEntrance")),DomainHeader_1=__importDefault(require("../DomainHeader")),LogCard_1=__importDefault(require("../LogCard")),EmptyState_1=__importDefault(require("../EmptyState")),EndOfListFooter_1=__importDefault(require("../EndOfListFooter")),NetworkFilterModal_1=__importDefault(require("./NetworkFilterModal")),NetworkExportModal_1=__importDefault(require("./NetworkExportModal")),styles_1=__importDefault(require("../../styles")),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),constants_1=require("../../constants"),helpers_1=require("../../helpers"),i18n_1=require("../../i18n"),NetworkIcons_1=require("../NetworkIcons"),NetworkTab=react_1.default.memo(()=>{const{groupedData:l,loadMoreSection:r,search:o,setSearch:a,setSearchScope:i,quickFilter:z,setQuickFilter:E,handleDelete:oe,isGroupByPageEnabled:m,setIsGroupByPageEnabled:re,selectedLogs:F,sortOrder:le,setSortOrder:I,statusFilters:d,setStatusFilters:T,methodFilters:u,setMethodFilters:A,latencyFilter:h,setLatencyFilter:k,protocolFilter:y,setProtocolFilter:L,networkSortBy:b,setNetworkSortBy:P,filteredLogs:p,logs:R,hiddenUrlPatterns:B,toggleSectionFilter:$,toggleSectionCollapse:H,minStart:j,totalRange:G,newLogIds:W,toggleSelect:Q,setSelected:U,maxNetworkLogs:D}=(0,InspectorContext_1.useInspector)(),{t:V}=(0,i18n_1.useTranslation)(),K=(0,react_1.useRef)(null),[ae,X]=react_1.default.useState(!1),[ie,J]=react_1.default.useState(!1),[Y,Z]=react_1.default.useState(!1),[M,ee]=react_1.default.useState(D||50),q=!!(o&&o.trim().length>0),f=m&&!q;react_1.default.useEffect(()=>{ee(D||50),q&&K.current?.scrollToOffset({offset:0,animated:!1})},[o,z,D,q]);const se=(0,react_1.useMemo)(()=>f?l:l.slice(0,M),[f,l,M]),ne=(0,react_1.useCallback)(e=>e?.id?String(e.id):"",[]),C=(0,react_1.useMemo)(()=>d.size>0&&!d.has("all")||u.size>0&&!u.has("all")||h!=="all"||y!=="all"||b!=="time_desc",[d,u,h,y,b]),ce=(0,react_1.useMemo)(()=>{let e=0;return d.size>0&&!d.has("all")&&(e+=d.size),u.size>0&&!u.has("all")&&(e+=u.size),h!=="all"&&e++,y!=="all"&&e++,b!=="time_desc"&&e++,e},[d,u,h,y,b]),de=(0,react_1.useMemo)(()=>({statusCodes:d.size>0?new Set(d):new Set(["all"]),methods:u.size>0?new Set(u):new Set(["all"]),latency:h,protocol:y,sortBy:b}),[d,u,h,y,b]),ue=(0,react_1.useCallback)(e=>{e.statusCodes.has("all")||e.statusCodes.size===0?T(new Set):T(new Set(e.statusCodes)),e.methods.has("all")||e.methods.size===0?A(new Set):A(new Set([...e.methods].map(s=>s))),k(e.latency||"all"),L(e.protocol||"all"),P(e.sortBy||"time_desc"),e.sortBy==="time_asc"?I("oldest"):I("newest")},[T,A,k,L,P,I]),v=(0,react_1.useMemo)(()=>!B||B.length===0?R:R.filter(e=>!(0,helpers_1.isUrlHidden)(e.url,B)),[R,B]),g=(0,react_1.useMemo)(()=>{let e=0,s=0,n=0,c=0,x=0,O=0;return v.forEach(t=>{const _=typeof t.status=="number"?t.status:parseInt(String(t.status),10);t.status===0||t.status==null||!isNaN(_)&&_>=400?e++:!isNaN(_)&&_>=200&&_<400&&s++,(t.duration||0)>=500&&n++;const w=(t.method||"").toUpperCase();w==="POST"&&c++,w==="GET"&&x++;const N=(t.url||"").toLowerCase(),S=(t.client||"").toLowerCase();(N.includes("graphql")||S.includes("graphql")||S.includes("apollo"))&&O++}),{all:v.length,errors:e,success:s,slow:n,post:c,get:x,graphql:O}},[v]),pe=(0,react_1.useMemo)(()=>[{id:"all",label:"All",count:g.all,color:AppColors_1.AppColors.purple},{id:"errors",label:"Errors",count:g.errors,color:AppColors_1.AppColors.errorColor},{id:"success",label:"2xx OK",count:g.success,color:AppColors_1.AppColors.greenColor},{id:"slow",label:"Slow >500ms",count:g.slow,color:AppColors_1.AppColors.warningIconGold},{id:"POST",label:"POST",count:g.post,color:constants_1.METHOD_COLORS.POST||AppColors_1.AppColors.blue500},{id:"GET",label:"GET",count:g.get,color:constants_1.METHOD_COLORS.GET||AppColors_1.AppColors.emerald500},{id:"graphql",label:"GraphQL",count:g.graphql,color:AppColors_1.AppColors.graphqlPink}],[g]),te=(0,react_1.useCallback)(e=>{e&&U(e)},[U]),fe=(0,react_1.useCallback)(({item:e,index:s})=>{if(e.type==="header")return<AnimatedEntrance_1.default index={s}distance={8}>
|
|
2
2
|
<DomainHeader_1.default pageName={e.pageName}color={e.color}stats={e.stats}activeFilters={e.activeFilters}onToggleFilter={$}isCollapsed={e.isCollapsed}onToggleCollapse={H}isFirst={e.isFirst}timestamp={e.timestamp}/>
|
|
3
|
-
</AnimatedEntrance_1.default>;if(e.type==="loadMore"){const{pageName:
|
|
3
|
+
</AnimatedEntrance_1.default>;if(e.type==="loadMore"){const{pageName:O,color:t,remainingCount:_,totalCount:w,loadedCount:N,loadMoreStep:S,hasMore:ge}=e;return<react_native_1.View style={[styles_1.default.treeNodeRow,styles_1.default.treeNodeRowLast]}>
|
|
4
4
|
<react_native_1.View style={styles_1.default.treeLines}>
|
|
5
|
-
<react_native_1.View style={[styles_1.default.modernTreeLine,{borderColor:
|
|
5
|
+
<react_native_1.View style={[styles_1.default.modernTreeLine,{borderColor:t},styles_1.default.modernTreeLineLast]}/>
|
|
6
6
|
</react_native_1.View>
|
|
7
7
|
<react_native_1.View style={styles_1.default.treeCardWrapper}>
|
|
8
|
-
{
|
|
8
|
+
{ge?<TouchableScale_1.default onPress={()=>r(O,S||10)}hitSlop={6}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:9,paddingHorizontal:12,marginVertical:3,marginRight:2,borderRadius:10,backgroundColor:`${t}14`,borderWidth:1.5,borderColor:`${t}40`,shadowColor:t,shadowOffset:{width:0,height:1.5},shadowOpacity:.1,shadowRadius:3,elevation:2}}>
|
|
9
9
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
10
|
-
<react_native_1.View style={{width:22,height:22,borderRadius:11,backgroundColor:
|
|
10
|
+
<react_native_1.View style={{width:22,height:22,borderRadius:11,backgroundColor:t,alignItems:"center",justifyContent:"center",shadowColor:t,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:2,elevation:1}}>
|
|
11
11
|
<NetworkIcons_1.ChevronIcon color={AppColors_1.AppColors.white}size={9}direction="down"/>
|
|
12
12
|
</react_native_1.View>
|
|
13
13
|
<react_native_1.View>
|
|
14
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:
|
|
15
|
-
{
|
|
14
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:t}}>
|
|
15
|
+
{V("footer.loadMoreRequests",{count:S,defaultValue:`Load ${S} More Requests`})}
|
|
16
16
|
</react_native_1.Text>
|
|
17
17
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,marginTop:1}}>
|
|
18
|
-
Showing {
|
|
18
|
+
Showing {N} of {w} requests
|
|
19
19
|
</react_native_1.Text>
|
|
20
20
|
</react_native_1.View>
|
|
21
21
|
</react_native_1.View>
|
|
22
22
|
|
|
23
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"center",backgroundColor:`${
|
|
24
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
25
|
-
+{
|
|
23
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",backgroundColor:`${t}25`,paddingHorizontal:8,paddingVertical:4,borderRadius:8,borderWidth:1,borderColor:`${t}40`,gap:3}}>
|
|
24
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:t}}>
|
|
25
|
+
+{_}
|
|
26
26
|
</react_native_1.Text>
|
|
27
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9,color:
|
|
27
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9,color:t}}>
|
|
28
28
|
more
|
|
29
29
|
</react_native_1.Text>
|
|
30
30
|
</react_native_1.View>
|
|
31
|
-
</TouchableScale_1.default>:<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:7,paddingHorizontal:11,marginVertical:3,marginRight:2,borderRadius:9,backgroundColor:`${
|
|
31
|
+
</TouchableScale_1.default>:<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:7,paddingHorizontal:11,marginVertical:3,marginRight:2,borderRadius:9,backgroundColor:`${t}0A`,borderWidth:1,borderColor:`${t}25`}}>
|
|
32
32
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:7}}>
|
|
33
|
-
<react_native_1.View style={{width:17,height:17,borderRadius:8.5,backgroundColor:`${
|
|
34
|
-
<NetworkIcons_1.CheckIcon color={
|
|
33
|
+
<react_native_1.View style={{width:17,height:17,borderRadius:8.5,backgroundColor:`${t}25`,alignItems:"center",justifyContent:"center"}}>
|
|
34
|
+
<NetworkIcons_1.CheckIcon color={t}size={8}/>
|
|
35
35
|
</react_native_1.View>
|
|
36
36
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayTextStrong}}>
|
|
37
|
-
{
|
|
37
|
+
{V("footer.allLoaded",{count:w,defaultValue:`All ${w} requests loaded`})}
|
|
38
38
|
</react_native_1.Text>
|
|
39
39
|
</react_native_1.View>
|
|
40
40
|
|
|
41
|
-
<react_native_1.View style={{backgroundColor:`${
|
|
42
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:
|
|
43
|
-
{
|
|
41
|
+
<react_native_1.View style={{backgroundColor:`${t}18`,paddingHorizontal:7,paddingVertical:2,borderRadius:6}}>
|
|
42
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:t}}>
|
|
43
|
+
{w}/{w}
|
|
44
44
|
</react_native_1.Text>
|
|
45
45
|
</react_native_1.View>
|
|
46
46
|
</react_native_1.View>}
|
|
47
47
|
</react_native_1.View>
|
|
48
|
-
</react_native_1.View>}const{log:
|
|
49
|
-
{
|
|
50
|
-
<react_native_1.View style={[styles_1.default.modernTreeLine,{borderColor:
|
|
51
|
-
{!c&&<react_native_1.View style={[styles_1.default.modernTreeBranch,{borderColor:
|
|
48
|
+
</react_native_1.View>}const{log:n,isLast:c,color:x}=e;return<AnimatedEntrance_1.default index={s}distance={8}style={f?[styles_1.default.treeNodeRow,c&&styles_1.default.treeNodeRowLast]:{marginBottom:5,marginHorizontal:5}}>
|
|
49
|
+
{f&&<react_native_1.View style={styles_1.default.treeLines}>
|
|
50
|
+
<react_native_1.View style={[styles_1.default.modernTreeLine,{borderColor:x},c&&styles_1.default.modernTreeLineLast]}/>
|
|
51
|
+
{!c&&<react_native_1.View style={[styles_1.default.modernTreeBranch,{borderColor:x}]}/>}
|
|
52
52
|
</react_native_1.View>}
|
|
53
|
-
<react_native_1.View style={
|
|
54
|
-
<LogCard_1.default testID={`inspector.network.item.${
|
|
53
|
+
<react_native_1.View style={f?styles_1.default.treeCardWrapper:{flex:1}}>
|
|
54
|
+
<LogCard_1.default testID={`inspector.network.item.${n.id}`}item={n}isSelected={F.has(n.id)}onToggleSelect={Q}onPress={te}timelineMinStart={j}timelineTotalRange={G}isNew={W.has(n.id)}searchStr={o}/>
|
|
55
55
|
</react_native_1.View>
|
|
56
|
-
</AnimatedEntrance_1.default>},[
|
|
56
|
+
</AnimatedEntrance_1.default>},[f,j,G,W,F,Q,te,o,$,H,r,V]);return<react_native_1.View style={{flex:1}}>
|
|
57
57
|
<react_native_1.View style={{marginTop:6}}>
|
|
58
58
|
|
|
59
59
|
<react_native_1.View style={styles_1.default.toolbarRow}>
|
|
60
|
-
<react_native_1.View style={[styles_1.default.searchContainer,
|
|
61
|
-
<NetworkIcons_1.SearchIcon color={
|
|
62
|
-
<react_native_1.TextInput placeholder="Search
|
|
60
|
+
<react_native_1.View style={[styles_1.default.searchContainer,Y&&{borderColor:AppColors_1.AppColors.purple,borderWidth:1.5}]}>
|
|
61
|
+
<NetworkIcons_1.SearchIcon color={Y?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={15}/>
|
|
62
|
+
<react_native_1.TextInput placeholder={V("network.searchPlaceholder","Search APIs...")}placeholderTextColor={AppColors_1.AppColors.grayTextWeak}value={o}onChangeText={a}onFocus={()=>Z(!0)}onBlur={()=>Z(!1)}style={styles_1.default.searchInput}autoCorrect={!1}autoCapitalize="none"/>
|
|
63
63
|
|
|
64
|
-
{
|
|
64
|
+
{o.length>0&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4}}>
|
|
65
65
|
<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.purple}20`,borderRadius:10,paddingHorizontal:6,paddingVertical:1.5}}>
|
|
66
66
|
<react_native_1.Text style={{color:AppColors_1.AppColors.purple,fontSize:9.5,fontFamily:AppFonts_1.AppFonts.interBold}}>
|
|
67
|
-
{
|
|
67
|
+
{p.length}
|
|
68
68
|
</react_native_1.Text>
|
|
69
69
|
</react_native_1.View>
|
|
70
70
|
<react_native_1.Pressable onPress={()=>a("")}hitSlop={10}style={styles_1.default.clearBtn}>
|
|
@@ -74,22 +74,26 @@
|
|
|
74
74
|
</react_native_1.View>
|
|
75
75
|
|
|
76
76
|
<react_native_1.View style={styles_1.default.toolbarRight}>
|
|
77
|
-
<TouchableScale_1.default style={[styles_1.default.toolbarBtn,{borderColor:`${AppColors_1.AppColors.
|
|
77
|
+
<TouchableScale_1.default style={[styles_1.default.toolbarBtn,{borderColor:`${AppColors_1.AppColors.purple}38`,backgroundColor:`${AppColors_1.AppColors.purple}0F`}]}onPress={()=>J(!0)}hitSlop={6}testID="inspector.network.exportBtn">
|
|
78
|
+
<NetworkIcons_1.ExportIcon color={AppColors_1.AppColors.purple}size={15}/>
|
|
79
|
+
</TouchableScale_1.default>
|
|
80
|
+
|
|
81
|
+
<TouchableScale_1.default style={[styles_1.default.toolbarBtn,{borderColor:`${AppColors_1.AppColors.errorColor}38`,backgroundColor:`${AppColors_1.AppColors.errorColor}0F`}]}onPress={oe}hitSlop={6}>
|
|
78
82
|
<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={15}/>
|
|
79
|
-
{
|
|
83
|
+
{F.size>0&&<react_native_1.View style={styles_1.default.trashBadge}>
|
|
80
84
|
<react_native_1.Text style={styles_1.default.trashBadgeText}>
|
|
81
|
-
{
|
|
85
|
+
{F.size}
|
|
82
86
|
</react_native_1.Text>
|
|
83
87
|
</react_native_1.View>}
|
|
84
88
|
</TouchableScale_1.default>
|
|
85
89
|
|
|
86
|
-
<TouchableScale_1.default style={[styles_1.default.toolbarBtn,
|
|
87
|
-
<NetworkIcons_1.LayersIcon color={
|
|
88
|
-
{
|
|
90
|
+
<TouchableScale_1.default style={[styles_1.default.toolbarBtn,m&&{borderColor:AppColors_1.AppColors.purple,backgroundColor:`${AppColors_1.AppColors.purple}15`}]}onPress={()=>re(e=>!e)}hitSlop={6}accessibilityLabel={q?"Page Accordion Grouping Preserved (Temporarily in List View for Search Results)":m?"Page Accordion Grouping Enabled (Tap for Plain List)":"Plain List Enabled (Tap for Page Accordion)"}accessibilityRole="button">
|
|
91
|
+
<NetworkIcons_1.LayersIcon color={m?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextStrong}size={16}/>
|
|
92
|
+
{m&&<react_native_1.View style={styles_1.default.activeFilterDot}/>}
|
|
89
93
|
</TouchableScale_1.default>
|
|
90
94
|
|
|
91
|
-
<TouchableScale_1.default style={styles_1.default.toolbarBtn}onPress={()=>
|
|
92
|
-
<NetworkIcons_1.SortArrowIcon direction={
|
|
95
|
+
<TouchableScale_1.default style={styles_1.default.toolbarBtn}onPress={()=>I(e=>e==="newest"?"oldest":"newest")}hitSlop={10}>
|
|
96
|
+
<NetworkIcons_1.SortArrowIcon direction={le==="newest"?"down":"up"}color={AppColors_1.AppColors.grayTextStrong}size={18}/>
|
|
93
97
|
</TouchableScale_1.default>
|
|
94
98
|
</react_native_1.View>
|
|
95
99
|
</react_native_1.View>
|
|
@@ -97,8 +101,8 @@
|
|
|
97
101
|
|
|
98
102
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",marginBottom:8,paddingHorizontal:8,gap:6}}>
|
|
99
103
|
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!1}style={{flex:1}}contentContainerStyle={{flexDirection:"row",alignItems:"center",gap:6,paddingRight:6}}>
|
|
100
|
-
{
|
|
101
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"center",paddingHorizontal:9,paddingVertical:4.5,borderRadius:8,backgroundColor:n
|
|
104
|
+
{pe.map(e=>{const s=z===e.id,n=e.color||AppColors_1.AppColors.purple,c=s?AppColors_1.AppColors.white:n;return<TouchableScale_1.default testID={`inspector.network.filter.${e.id.toLowerCase()}`}key={e.id}onPress={()=>{E(s?"all":e.id)}}>
|
|
105
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",paddingHorizontal:9,paddingVertical:4.5,borderRadius:8,backgroundColor:s?n:`${n}12`,borderWidth:1,borderColor:s?n:`${n}30`,gap:5}}>
|
|
102
106
|
{e.id==="all"&&<NetworkIcons_1.LayersIcon size={11}color={c}/>}
|
|
103
107
|
{e.id==="errors"&&<NetworkIcons_1.CircleXIcon size={11}color={c}/>}
|
|
104
108
|
{e.id==="success"&&<NetworkIcons_1.CircleCheckIcon size={11}color={c}/>}
|
|
@@ -106,11 +110,11 @@
|
|
|
106
110
|
{e.id==="POST"&&<NetworkIcons_1.RequestIcon size={11}color={c}/>}
|
|
107
111
|
{e.id==="GET"&&<NetworkIcons_1.ResponseIcon size={11}color={c}/>}
|
|
108
112
|
{e.id==="graphql"&&<NetworkIcons_1.AtomIcon size={11}color={c}/>}
|
|
109
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
113
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:s?AppColors_1.AppColors.white:AppColors_1.AppColors.primaryBlack}}>
|
|
110
114
|
{e.label}
|
|
111
115
|
</react_native_1.Text>
|
|
112
|
-
<react_native_1.View style={{backgroundColor:
|
|
113
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:
|
|
116
|
+
<react_native_1.View style={{backgroundColor:s?"rgba(255,255,255,0.25)":`${n}20`,paddingHorizontal:5,paddingVertical:1,borderRadius:8}}>
|
|
117
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:s?AppColors_1.AppColors.white:n}}>
|
|
114
118
|
{e.count}
|
|
115
119
|
</react_native_1.Text>
|
|
116
120
|
</react_native_1.View>
|
|
@@ -118,15 +122,15 @@
|
|
|
118
122
|
</TouchableScale_1.default>})}
|
|
119
123
|
</react_native_1.ScrollView>
|
|
120
124
|
|
|
121
|
-
<TouchableScale_1.default onPress={()=>
|
|
125
|
+
<TouchableScale_1.default onPress={()=>X(!0)}style={{flexShrink:0}}>
|
|
122
126
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",paddingHorizontal:10,paddingVertical:4.5,borderRadius:8,backgroundColor:C?`${AppColors_1.AppColors.purple}20`:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:C?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,gap:5,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.04,shadowRadius:2,shadowOffset:{width:0,height:1},elevation:1}}>
|
|
123
127
|
<NetworkIcons_1.FilterIcon size={11}color={C?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText}/>
|
|
124
128
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:C?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText}}>
|
|
125
|
-
{
|
|
129
|
+
{V("network.moreFilters","More Filters")}
|
|
126
130
|
</react_native_1.Text>
|
|
127
131
|
{C&&<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.purple,paddingHorizontal:4.5,paddingVertical:1,borderRadius:6}}>
|
|
128
132
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.white}}>
|
|
129
|
-
{
|
|
133
|
+
{ce}
|
|
130
134
|
</react_native_1.Text>
|
|
131
135
|
</react_native_1.View>}
|
|
132
136
|
</react_native_1.View>
|
|
@@ -134,11 +138,11 @@
|
|
|
134
138
|
</react_native_1.View>
|
|
135
139
|
|
|
136
140
|
|
|
137
|
-
{(
|
|
141
|
+
{(z!=="all"||o.trim().length>0||C||p.length!==R.length)&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginHorizontal:8,marginBottom:8,paddingHorizontal:8,paddingVertical:5.5,backgroundColor:`${AppColors_1.AppColors.purple}10`,borderRadius:8,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}25`}}>
|
|
138
142
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.purple}}>
|
|
139
|
-
Showing {
|
|
143
|
+
Showing {p.length} of {v.length} requests
|
|
140
144
|
</react_native_1.Text>
|
|
141
|
-
<TouchableScale_1.default onPress={()=>{a(""),
|
|
145
|
+
<TouchableScale_1.default onPress={()=>{a(""),E("all"),T(new Set),A(new Set),k("all"),L("all"),P("time_desc"),i("all")}}>
|
|
142
146
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.errorColor}}>
|
|
143
147
|
Clear All Filters
|
|
144
148
|
</react_native_1.Text>
|
|
@@ -146,10 +150,13 @@
|
|
|
146
150
|
</react_native_1.View>}
|
|
147
151
|
</react_native_1.View>
|
|
148
152
|
|
|
149
|
-
<react_native_1.FlatList ref={
|
|
150
|
-
<EndOfListFooter_1.default count={
|
|
153
|
+
<react_native_1.FlatList ref={K}data={se}keyExtractor={ne}renderItem={fe}initialNumToRender={10}maxToRenderPerBatch={8}windowSize={5}updateCellsBatchingPeriod={40}removeClippedSubviews={!0}renderToHardwareTextureAndroid={!0}showsVerticalScrollIndicator={!1}nestedScrollEnabled={!0}ListEmptyComponent={<EmptyState_1.default isSearch={o.length>0||C||z!=="all"}searchQuery={o}customTitle={o.length>0?"No matching API requests":"No network activity"}onClearSearch={()=>{a(""),T(new Set),A(new Set),k("all"),L("all"),P("time_desc"),E("all"),i("all")}}/>}ListFooterComponent={l.length>0?<react_native_1.View style={{paddingBottom:24}}>
|
|
154
|
+
<EndOfListFooter_1.default count={f?p.length:Math.min(M,p.length)}totalCount={p.length}label="requests"hasMore={!f&&p.length>M}loadMoreStep={30}onLoadMore={()=>ee(e=>e+30)}/>
|
|
151
155
|
</react_native_1.View>:null}style={{flex:1}}contentContainerStyle={[styles_1.default.listContent,{flexGrow:1}]}keyboardShouldPersistTaps="handled"/>
|
|
152
156
|
|
|
153
157
|
|
|
154
|
-
<NetworkFilterModal_1.default visible={
|
|
158
|
+
<NetworkFilterModal_1.default visible={ae}onClose={()=>X(!1)}filters={de}onApply={ue}searchQuery={o}/>
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
<NetworkExportModal_1.default visible={ie}onClose={()=>J(!1)}filteredLogs={p}allLogs={v}/>
|
|
155
162
|
</react_native_1.View>});exports.default=NetworkTab;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,t,a,r){r===void 0&&(r=a);var o=Object.getOwnPropertyDescriptor(t,a);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,o)}):(function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),__importStar=this&&this.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(a){var r=[];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[r.length]=o);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r=e(t),o=0;o<r.length;o++)r[o]!=="default"&&__createBinding(a,t,r[o]);return __setModuleDefault(a,t),a}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NpmStarPrompt=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),TouchableScale_1=__importDefault(require("../TouchableScale")),settingsStore_1=require("../../helpers/settingsStore"),telemetry_1=require("../../helpers/telemetry"),NetworkIcons_1=require("../NetworkIcons"),FIVE_DAYS_MS=7200*60*1e3,GITHUB_REPO_URL="https://github.com/vengatmacuser/react-native-inapp-inspector",NPM_PACKAGE_URL="https://www.npmjs.com/package/react-native-inapp-inspector",NpmStarPrompt=()=>{const[e,t]=(0,react_1.useState)(!1),a=(0,react_1.useRef)(new react_native_1.Animated.Value(200)).current,r=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current,o=(0,react_1.useRef)(new react_native_1.Animated.Value(1)).current;(0,react_1.useEffect)(()=>{let i=!0;async function g(){try{const n=await(0,settingsStore_1.loadSettings)();if(n.starPromptActioned)return;const c=Date.now(),y=n.starPromptFirstSeen||c;n.starPromptFirstSeen||await(0,settingsStore_1.saveSettings)({...n,starPromptFirstSeen:c});const f=n.starPromptLastShown||y;c-f>=FIVE_DAYS_MS&&Math.random()<.65&&i&&setTimeout(()=>{i&&p()},1800)}catch{}}return g(),()=>{i=!1}},[]);const p=async()=>{t(!0);try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptLastShown:Date.now()}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_shown",{trigger:"5_day_interval",platform:react_native_1.Platform.OS})}catch{}react_native_1.Animated.parallel([react_native_1.Animated.spring(a,{toValue:0,friction:8,tension:50,useNativeDriver:!0}),react_native_1.Animated.timing(r,{toValue:1,duration:250,useNativeDriver:!0})]).start(),react_native_1.Animated.loop(react_native_1.Animated.sequence([react_native_1.Animated.timing(o,{toValue:1.15,duration:900,useNativeDriver:!0}),react_native_1.Animated.timing(o,{toValue:1,duration:900,useNativeDriver:!0})])).start()},s=i=>{react_native_1.Animated.parallel([react_native_1.Animated.timing(r,{toValue:0,duration:180,useNativeDriver:!0}),react_native_1.Animated.timing(a,{toValue:200,duration:180,useNativeDriver:!0})]).start(()=>{t(!1),i&&i()})},u=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptActioned:!0}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"starred",platform:react_native_1.Platform.OS})}catch{}s(()=>{react_native_1.Linking.openURL(GITHUB_REPO_URL).catch(()=>{react_native_1.Linking.openURL(NPM_PACKAGE_URL).catch(()=>{})})})},d=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptActioned:!0}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"already_starred",platform:react_native_1.Platform.OS})}catch{}s()},l=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptLastShown:Date.now()}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"remind_later",platform:react_native_1.Platform.OS})}catch{}s()},m=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptActioned:!0}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"dont_ask_again",platform:react_native_1.Platform.OS})}catch{}s()};return e?<react_native_1.Modal transparent visible={e}animationType="none"onRequestClose={l}>
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,t,a,r){r===void 0&&(r=a);var o=Object.getOwnPropertyDescriptor(t,a);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,o)}):(function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),__importStar=this&&this.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(a){var r=[];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[r.length]=o);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r=e(t),o=0;o<r.length;o++)r[o]!=="default"&&__createBinding(a,t,r[o]);return __setModuleDefault(a,t),a}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NpmStarPrompt=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),TouchableScale_1=__importDefault(require("../TouchableScale")),i18n_1=require("../../i18n"),settingsStore_1=require("../../helpers/settingsStore"),telemetry_1=require("../../helpers/telemetry"),NetworkIcons_1=require("../NetworkIcons"),FIVE_DAYS_MS=7200*60*1e3,GITHUB_REPO_URL="https://github.com/vengatmacuser/react-native-inapp-inspector",NPM_PACKAGE_URL="https://www.npmjs.com/package/react-native-inapp-inspector",NpmStarPrompt=()=>{const[e,t]=(0,react_1.useState)(!1),a=(0,react_1.useRef)(new react_native_1.Animated.Value(200)).current,r=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current,o=(0,react_1.useRef)(new react_native_1.Animated.Value(1)).current;(0,react_1.useEffect)(()=>{let i=!0;async function g(){try{const n=await(0,settingsStore_1.loadSettings)();if(n.starPromptActioned)return;const c=Date.now(),y=n.starPromptFirstSeen||c;n.starPromptFirstSeen||await(0,settingsStore_1.saveSettings)({...n,starPromptFirstSeen:c});const f=n.starPromptLastShown||y;c-f>=FIVE_DAYS_MS&&Math.random()<.65&&i&&setTimeout(()=>{i&&p()},1800)}catch{}}return g(),()=>{i=!1}},[]);const p=async()=>{t(!0);try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptLastShown:Date.now()}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_shown",{trigger:"5_day_interval",platform:react_native_1.Platform.OS})}catch{}react_native_1.Animated.parallel([react_native_1.Animated.spring(a,{toValue:0,friction:8,tension:50,useNativeDriver:!0}),react_native_1.Animated.timing(r,{toValue:1,duration:250,useNativeDriver:!0})]).start(),react_native_1.Animated.loop(react_native_1.Animated.sequence([react_native_1.Animated.timing(o,{toValue:1.15,duration:900,useNativeDriver:!0}),react_native_1.Animated.timing(o,{toValue:1,duration:900,useNativeDriver:!0})])).start()},s=i=>{react_native_1.Animated.parallel([react_native_1.Animated.timing(r,{toValue:0,duration:180,useNativeDriver:!0}),react_native_1.Animated.timing(a,{toValue:200,duration:180,useNativeDriver:!0})]).start(()=>{t(!1),i&&i()})},u=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptActioned:!0}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"starred",platform:react_native_1.Platform.OS})}catch{}s(()=>{react_native_1.Linking.openURL(GITHUB_REPO_URL).catch(()=>{react_native_1.Linking.openURL(NPM_PACKAGE_URL).catch(()=>{})})})},d=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptActioned:!0}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"already_starred",platform:react_native_1.Platform.OS})}catch{}s()},l=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptLastShown:Date.now()}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"remind_later",platform:react_native_1.Platform.OS})}catch{}s()},m=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptActioned:!0}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"dont_ask_again",platform:react_native_1.Platform.OS})}catch{}s()};return e?<react_native_1.Modal transparent visible={e}animationType="none"onRequestClose={l}>
|
|
2
2
|
<react_native_1.Animated.View style={[styles.backdrop,{opacity:r}]}>
|
|
3
3
|
<react_native_1.TouchableOpacity style={react_native_1.StyleSheet.absoluteFill}activeOpacity={1}onPress={l}/>
|
|
4
4
|
|
|
@@ -18,30 +18,29 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
<react_native_1.View style={styles.pillBadge}>
|
|
21
|
-
<react_native_1.Text style={styles.pillBadgeText}>SUPPORT OPEN SOURCE</react_native_1.Text>
|
|
21
|
+
<react_native_1.Text style={styles.pillBadgeText}>{(0,i18n_1.t)("support.supportOpenSource","SUPPORT OPEN SOURCE")}</react_native_1.Text>
|
|
22
22
|
</react_native_1.View>
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
<react_native_1.Text style={styles.title}>Enjoying In-App Inspector
|
|
25
|
+
<react_native_1.Text style={styles.title}>{(0,i18n_1.t)("support.enjoyingTitle","Enjoying In-App Inspector?")}</react_native_1.Text>
|
|
26
26
|
<react_native_1.Text style={styles.description}>
|
|
27
|
-
If this debugging tool saves you time, please consider giving us a
|
|
28
|
-
star on GitHub & npm. Your support helps us build more features!
|
|
27
|
+
{(0,i18n_1.t)("support.enjoyingSubtitle","If this debugging tool saves you time, please consider giving us a star on GitHub & npm. Your support helps us build more features!")}
|
|
29
28
|
</react_native_1.Text>
|
|
30
29
|
|
|
31
30
|
|
|
32
31
|
<react_native_1.View style={styles.metricsBar}>
|
|
33
32
|
<react_native_1.View style={styles.metricItem}>
|
|
34
33
|
<NetworkIcons_1.GitHubIcon size={13}color={AppColors_1.AppColors.grayText}/>
|
|
35
|
-
<react_native_1.Text style={styles.metricText}>GitHub Star</react_native_1.Text>
|
|
34
|
+
<react_native_1.Text style={styles.metricText}>{(0,i18n_1.t)("support.githubStar","GitHub Star")}</react_native_1.Text>
|
|
36
35
|
</react_native_1.View>
|
|
37
36
|
<react_native_1.View style={styles.metricDot}/>
|
|
38
37
|
<react_native_1.View style={styles.metricItem}>
|
|
39
38
|
<NetworkIcons_1.NpmIcon size={13}color={AppColors_1.AppColors.npmRed}/>
|
|
40
|
-
<react_native_1.Text style={styles.metricText}>npm Package</react_native_1.Text>
|
|
39
|
+
<react_native_1.Text style={styles.metricText}>{(0,i18n_1.t)("support.npmPackage","npm Package")}</react_native_1.Text>
|
|
41
40
|
</react_native_1.View>
|
|
42
41
|
<react_native_1.View style={styles.metricDot}/>
|
|
43
42
|
<react_native_1.View style={styles.metricItem}>
|
|
44
|
-
<react_native_1.Text style={styles.metricText}>100% Free</react_native_1.Text>
|
|
43
|
+
<react_native_1.Text style={styles.metricText}>{(0,i18n_1.t)("support.free100","100% Free")}</react_native_1.Text>
|
|
45
44
|
</react_native_1.View>
|
|
46
45
|
</react_native_1.View>
|
|
47
46
|
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="Star on GitHub"onPress={u}style={styles.primaryButton}>
|
|
50
49
|
<react_native_1.View style={styles.primaryButtonContent}>
|
|
51
50
|
<NetworkIcons_1.StarIcon size={16}color={AppColors_1.AppColors.white}/>
|
|
52
|
-
<react_native_1.Text style={styles.primaryButtonText}>Star on GitHub & npm</react_native_1.Text>
|
|
51
|
+
<react_native_1.Text style={styles.primaryButtonText}>{(0,i18n_1.t)("support.starOnGithubNpm","Star on GitHub & npm")}</react_native_1.Text>
|
|
53
52
|
</react_native_1.View>
|
|
54
53
|
</TouchableScale_1.default>
|
|
55
54
|
|
|
@@ -57,20 +56,20 @@
|
|
|
57
56
|
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="I already starred"onPress={d}style={styles.secondaryButton}>
|
|
58
57
|
<react_native_1.View style={styles.secondaryButtonContent}>
|
|
59
58
|
<NetworkIcons_1.CheckIcon size={13}color={AppColors_1.AppColors.purple}/>
|
|
60
|
-
<react_native_1.Text style={styles.secondaryButtonText}>I Already Starred</react_native_1.Text>
|
|
59
|
+
<react_native_1.Text style={styles.secondaryButtonText}>{(0,i18n_1.t)("support.alreadyStarred","I Already Starred")}</react_native_1.Text>
|
|
61
60
|
</react_native_1.View>
|
|
62
61
|
</TouchableScale_1.default>
|
|
63
62
|
|
|
64
63
|
|
|
65
64
|
<react_native_1.View style={styles.footerRow}>
|
|
66
65
|
<react_native_1.TouchableOpacity onPress={l}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
67
|
-
<react_native_1.Text style={styles.footerLinkText}>Remind Me Later</react_native_1.Text>
|
|
66
|
+
<react_native_1.Text style={styles.footerLinkText}>{(0,i18n_1.t)("support.remindMeLater","Remind Me Later")}</react_native_1.Text>
|
|
68
67
|
</react_native_1.TouchableOpacity>
|
|
69
68
|
|
|
70
69
|
<react_native_1.View style={styles.footerSeparator}/>
|
|
71
70
|
|
|
72
71
|
<react_native_1.TouchableOpacity onPress={m}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
73
|
-
<react_native_1.Text style={styles.footerLinkTextMuted}>Don't Ask Again</react_native_1.Text>
|
|
72
|
+
<react_native_1.Text style={styles.footerLinkTextMuted}>{(0,i18n_1.t)("support.dontAskAgain","Don't Ask Again")}</react_native_1.Text>
|
|
74
73
|
</react_native_1.TouchableOpacity>
|
|
75
74
|
</react_native_1.View>
|
|
76
75
|
</react_native_1.Animated.View>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,i,l,o){o===void 0&&(o=l);var t=Object.getOwnPropertyDescriptor(i,l);(!t||("get"in t?!i.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return i[l]}}),Object.defineProperty(e,o,t)}):(function(e,i,l,o){o===void 0&&(o=l),e[o]=i[l]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}):function(e,i){e.default=i}),__importStar=this&&this.__importStar||(function(){var e=function(i){return e=Object.getOwnPropertyNames||function(l){var o=[];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(o[o.length]=t);return o},e(i)};return function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var o=e(i),t=0;t<o.length;t++)o[t]!=="default"&&__createBinding(l,i,o[t]);return __setModuleDefault(l,i),l}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),i18n_1=require("../../i18n"),InspectorContext_1=require("./InspectorContext"),SegmentedTabs_1=__importDefault(require("../SegmentedTabs")),JsonViewer_1=__importDefault(require("../JsonViewer")),DiffViewer_1=__importDefault(require("../DiffViewer")),CopyButton_1=__importDefault(require("../CopyButton")),ShareButton_1=__importDefault(require("../ShareButton")),TouchableScale_1=__importDefault(require("../TouchableScale")),HighlightText_1=__importDefault(require("../HighlightText")),AnimatedEntrance_1=__importDefault(require("../AnimatedEntrance")),reduxLogger_1=require("../../customHooks/reduxLogger"),helpers_1=require("../../helpers"),shareFormatter_1=require("../../helpers/shareFormatter"),settingsStore_1=require("../../helpers/settingsStore"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),NetworkIcons_1=require("../NetworkIcons"),getOriginBadge=e=>{switch(e){case"saga":return{label:"SAGA",renderIcon:(i,l=9)=><NetworkIcons_1.AtomIcon color={i}size={l}/>,bg:AppColors_1.AppColors.purple100,text:AppColors_1.AppColors.brandPurple,border:AppColors_1.AppColors.purple200};case"thunk":return{label:"THUNK",renderIcon:(i,l=9)=><NetworkIcons_1.BoltIcon color={i}size={l}/>,bg:AppColors_1.AppColors.amber100,text:AppColors_1.AppColors.amber800Warm,border:AppColors_1.AppColors.amber200};case"epic":return{label:"EPIC",renderIcon:(i,l=9)=><NetworkIcons_1.TerminalIcon color={i}size={l}/>,bg:AppColors_1.AppColors.sky100,text:AppColors_1.AppColors.sky600,border:AppColors_1.AppColors.sky400};case"listener":return{label:"LISTENER",renderIcon:(i,l=9)=><NetworkIcons_1.ListenerIcon color={i}size={l}/>,bg:AppColors_1.AppColors.teal100,text:AppColors_1.AppColors.teal700,border:AppColors_1.AppColors.teal400};case"component":return{label:"UI DISPATCH",renderIcon:(i,l=9)=><NetworkIcons_1.ScreenIcon color={i}size={l}/>,bg:AppColors_1.AppColors.sky100,text:AppColors_1.AppColors.sky600,border:AppColors_1.AppColors.sky400};default:return{label:"DISPATCH",renderIcon:(i,l=9)=><NetworkIcons_1.BoltIcon color={i}size={l}/>,bg:AppColors_1.AppColors.slate100,text:AppColors_1.AppColors.slate700,border:AppColors_1.AppColors.slate200}}},ReduxDetail=react_1.default.memo(()=>{const{t:e}=(0,i18n_1.useTranslation)(),{reduxState:i,reduxLastActionMap:l,selectedReduxSlice:o,selectedReduxAction:t}=(0,InspectorContext_1.useInspector)(),[d,S]=(0,react_1.useState)(""),[y,V]=(0,react_1.useState)("live"),[T,
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,i,l,o){o===void 0&&(o=l);var t=Object.getOwnPropertyDescriptor(i,l);(!t||("get"in t?!i.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return i[l]}}),Object.defineProperty(e,o,t)}):(function(e,i,l,o){o===void 0&&(o=l),e[o]=i[l]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}):function(e,i){e.default=i}),__importStar=this&&this.__importStar||(function(){var e=function(i){return e=Object.getOwnPropertyNames||function(l){var o=[];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(o[o.length]=t);return o},e(i)};return function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var o=e(i),t=0;t<o.length;t++)o[t]!=="default"&&__createBinding(l,i,o[t]);return __setModuleDefault(l,i),l}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),i18n_1=require("../../i18n"),InspectorContext_1=require("./InspectorContext"),SegmentedTabs_1=__importDefault(require("../SegmentedTabs")),JsonViewer_1=__importDefault(require("../JsonViewer")),DiffViewer_1=__importDefault(require("../DiffViewer")),CopyButton_1=__importDefault(require("../CopyButton")),ShareButton_1=__importDefault(require("../ShareButton")),TouchableScale_1=__importDefault(require("../TouchableScale")),HighlightText_1=__importDefault(require("../HighlightText")),AnimatedEntrance_1=__importDefault(require("../AnimatedEntrance")),reduxLogger_1=require("../../customHooks/reduxLogger"),helpers_1=require("../../helpers"),shareFormatter_1=require("../../helpers/shareFormatter"),settingsStore_1=require("../../helpers/settingsStore"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),NetworkIcons_1=require("../NetworkIcons"),getOriginBadge=e=>{switch(e){case"saga":return{label:"SAGA",renderIcon:(i,l=9)=><NetworkIcons_1.AtomIcon color={i}size={l}/>,bg:AppColors_1.AppColors.purple100,text:AppColors_1.AppColors.brandPurple,border:AppColors_1.AppColors.purple200};case"thunk":return{label:"THUNK",renderIcon:(i,l=9)=><NetworkIcons_1.BoltIcon color={i}size={l}/>,bg:AppColors_1.AppColors.amber100,text:AppColors_1.AppColors.amber800Warm,border:AppColors_1.AppColors.amber200};case"epic":return{label:"EPIC",renderIcon:(i,l=9)=><NetworkIcons_1.TerminalIcon color={i}size={l}/>,bg:AppColors_1.AppColors.sky100,text:AppColors_1.AppColors.sky600,border:AppColors_1.AppColors.sky400};case"listener":return{label:"LISTENER",renderIcon:(i,l=9)=><NetworkIcons_1.ListenerIcon color={i}size={l}/>,bg:AppColors_1.AppColors.teal100,text:AppColors_1.AppColors.teal700,border:AppColors_1.AppColors.teal400};case"component":return{label:"UI DISPATCH",renderIcon:(i,l=9)=><NetworkIcons_1.ScreenIcon color={i}size={l}/>,bg:AppColors_1.AppColors.sky100,text:AppColors_1.AppColors.sky600,border:AppColors_1.AppColors.sky400};default:return{label:"DISPATCH",renderIcon:(i,l=9)=><NetworkIcons_1.BoltIcon color={i}size={l}/>,bg:AppColors_1.AppColors.slate100,text:AppColors_1.AppColors.slate700,border:AppColors_1.AppColors.slate200}}},ReduxDetail=react_1.default.memo(()=>{const{t:e}=(0,i18n_1.useTranslation)(),{reduxState:i,reduxLastActionMap:l,selectedReduxSlice:o,selectedReduxAction:t}=(0,InspectorContext_1.useInspector)(),[d,S]=(0,react_1.useState)(""),[y,V]=(0,react_1.useState)("live"),[T,P]=(0,react_1.useState)("payload"),[k,B]=(0,react_1.useState)("raw"),[F,D]=(0,react_1.useState)(null),[_,A]=(0,react_1.useState)(!1),[b,g]=(0,react_1.useState)(null),h=(0,react_1.useMemo)(()=>(0,reduxLogger_1.getActionHistory)(),[l]),m=(0,react_1.useMemo)(()=>o?h.filter(a=>!a.affectedSlices||a.affectedSlices.length===0?!0:a.affectedSlices.includes(o)):h,[h,o]),I=(0,react_1.useMemo)(()=>{if(!d.trim())return m;const a=d.toLowerCase();return m.filter(p=>p.type.toLowerCase().includes(a)||p.callerFile&&p.callerFile.toLowerCase().includes(a)||p.payload&&JSON.stringify(p.payload).toLowerCase().includes(a))},[m,d]);(0,react_1.useEffect)(()=>{if(!o)return;async function a(){try{const p=(0,settingsStore_1.getCustomStorage)();if(!p){A(!1),g(null);return}let c=await p.getItem(`persist:${o}`);if(c){try{g(JSON.parse(c))}catch{g(c)}A(!0);return}let n=await p.getItem("persist:root");if(n){const r=JSON.parse(n);if(r&&r[o]!==void 0){const s=r[o];try{g(typeof s=="string"?JSON.parse(s):s)}catch{g(s)}A(!0);return}}}catch{}A(!1),g(null)}a()},[o]);const z=()=>{o&&react_native_1.Alert.alert(e("redux.clearPersistedTitle","Clear Persisted State"),e("redux.clearPersistedMessage",'Are you sure you want to delete persisted storage for slice "{{slice}}"?').replace("{{slice}}",o||""),[{text:e("common.cancel","Cancel"),style:"cancel"},{text:"Delete",style:"destructive",onPress:async()=>{try{const a=(0,settingsStore_1.getCustomStorage)();if(!a)return;typeof a.removeItem=="function"?await a.removeItem(`persist:${o}`):await a.setItem(`persist:${o}`,""),A(!1),g(null),V("live"),react_native_1.Platform.OS==="android"?react_native_1.ToastAndroid.show("Persisted state cleared",react_native_1.ToastAndroid.SHORT):react_native_1.Alert.alert(e("redux.clearedPersisted","Persisted state has been cleared."))}catch{react_native_1.Alert.alert(e("common.failed","Failed"),e("redux.clearPersistedError","Failed to clear persisted state."))}}}])};if(o!=null){const a=i?.[o],p=a&&typeof a=="object"?Object.keys(a).length:typeof a<"u"?1:0,c=l[o],n=[{key:"live",label:e("redux.liveState","Live State"),icon:r=><NetworkIcons_1.LiveStateIcon color={r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>},{key:"timeline",label:`${e("redux.timeline","Timeline")} (${m.length})`,icon:r=><NetworkIcons_1.TimelineIcon color={r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>},{key:"persisted",label:_?e("redux.persisted","Persisted"):e("redux.storage","Storage"),icon:r=><NetworkIcons_1.StorageIcon color={r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>},{key:"metadata",label:e("redux.metadata","Metadata"),icon:r=><NetworkIcons_1.MetadataIcon color={r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>}];return<react_native_1.View style={{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground}}>
|
|
2
2
|
|
|
3
3
|
<react_native_1.View style={reduxDetailStyles.infoBar}>
|
|
4
4
|
<react_native_1.View style={reduxDetailStyles.infoTopRow}>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
{e("redux.timeline","Timeline")}:
|
|
59
59
|
</react_native_1.Text>
|
|
60
60
|
<react_native_1.Text style={[reduxDetailStyles.statValue,{color:AppColors_1.AppColors.brandPurple}]}>
|
|
61
|
-
{
|
|
61
|
+
{m.length}
|
|
62
62
|
</react_native_1.Text>
|
|
63
63
|
</react_native_1.View>
|
|
64
64
|
{c&&<react_native_1.View style={[reduxDetailStyles.statPill,{backgroundColor:AppColors_1.AppColors.amber100,borderColor:AppColors_1.AppColors.amber200,flexShrink:1,maxWidth:160}]}>
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxText}>
|
|
93
93
|
{d.trim()?"No actions matching your search query.":"No dispatched actions recorded for this slice yet."}
|
|
94
94
|
</react_native_1.Text>
|
|
95
|
-
</react_native_1.View>:I.map((r,s)=>{const C=
|
|
96
|
-
<TouchableScale_1.default onPress={()=>
|
|
95
|
+
</react_native_1.View>:I.map((r,s)=>{const C=F===r.id,f=getOriginBadge(r.originType),W=r.callerFile?r.callerFile.split("/").pop():null;return<AnimatedEntrance_1.default key={r.id}index={s}distance={6}>
|
|
96
|
+
<TouchableScale_1.default onPress={()=>D(C?null:r.id)}style={reduxDetailStyles.timelineCard}>
|
|
97
97
|
<react_native_1.View style={reduxDetailStyles.timelineHeader}>
|
|
98
98
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flex:1,minWidth:0,flexWrap:"wrap"}}>
|
|
99
99
|
<react_native_1.View style={reduxDetailStyles.actionBadge}>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
{e("redux.triggeredFrom","Triggered From:")}
|
|
129
129
|
</react_native_1.Text>
|
|
130
130
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.sky600}}numberOfLines={1}>
|
|
131
|
-
{
|
|
131
|
+
{W}:{r.callerLine||1}
|
|
132
132
|
</react_native_1.Text>
|
|
133
133
|
</react_native_1.View>
|
|
134
134
|
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
</react_native_1.Text>
|
|
150
150
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,padding:8,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,gap:4}}>
|
|
151
151
|
{r.stack.split(`
|
|
152
|
-
`).map(
|
|
152
|
+
`).map(x=>x.trim()).filter(x=>x.length>0&&!x.includes("reduxLogger")&&!x.includes("inspectorReduxMiddleware")).slice(0,8).map((x,v)=>{const u=(0,helpers_1.parseStackLine)(x,v===0),w=u.frameType==="app";return<react_native_1.Pressable key={v}onPress={()=>{u.fileName!=="Unknown"&&(0,helpers_1.openInVSCode)(u.fullPath||u.fileName,u.lineNumber,u.columnNumber)}}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:3,borderBottomWidth:v<7?.5:0,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
153
153
|
<react_native_1.View style={{flex:1,minWidth:0}}>
|
|
154
154
|
<react_native_1.Text style={{fontFamily:w?AppFonts_1.AppFonts.interBold:AppFonts_1.AppFonts.interRegular,fontSize:9.5,color:w?AppColors_1.AppColors.primaryBlack:AppColors_1.AppColors.grayTextWeak}}numberOfLines={1}>
|
|
155
155
|
{u.functionName||"anonymous"}
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
</AnimatedEntrance_1.default>})}
|
|
187
187
|
</react_native_1.ScrollView>:y==="metadata"?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
|
|
188
188
|
<react_native_1.View style={reduxDetailStyles.metadataCard}>
|
|
189
|
-
{[{label:"Slice Name",value:o},{label:"Root Keys Count",value:`${p} keys`},{label:"In-Memory State Size",value:(0,helpers_1.getSize)(a)},{label:"Persistence Status",value:_?`Persisted (${(0,helpers_1.getSize)(b)})`:"Not Persisted (In-Memory)"},{label:"Dispatched Actions History",value:`${
|
|
189
|
+
{[{label:"Slice Name",value:o},{label:"Root Keys Count",value:`${p} keys`},{label:"In-Memory State Size",value:(0,helpers_1.getSize)(a)},{label:"Persistence Status",value:_?`Persisted (${(0,helpers_1.getSize)(b)})`:"Not Persisted (In-Memory)"},{label:"Dispatched Actions History",value:`${m.length} recorded actions`},{label:"Last Dispatched Action",value:c?c.type:"None"},{label:"Last Action Timestamp",value:c?c.timestamp:"Initial"}].map((r,s)=><react_native_1.View key={s}style={[reduxDetailStyles.metaRow,s===6&&{borderBottomWidth:0}]}>
|
|
190
190
|
<react_native_1.Text style={reduxDetailStyles.metaLabel}>{r.label}</react_native_1.Text>
|
|
191
191
|
<react_native_1.Text style={reduxDetailStyles.metaValue}selectable numberOfLines={2}>
|
|
192
192
|
{r.value}
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
{_&&<react_native_1.TouchableOpacity style={reduxDetailStyles.clearPersistBtn}onPress={z}>
|
|
197
197
|
<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={14}/>
|
|
198
198
|
<react_native_1.Text style={reduxDetailStyles.clearPersistText}>
|
|
199
|
-
Clear Persisted Storage For This Slice
|
|
199
|
+
{e("redux.clearPersistedStorageSlice","Clear Persisted Storage For This Slice")}
|
|
200
200
|
</react_native_1.Text>
|
|
201
201
|
</react_native_1.TouchableOpacity>}
|
|
202
202
|
</react_native_1.View>
|
|
@@ -224,11 +224,10 @@
|
|
|
224
224
|
</react_native_1.View>:<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
225
225
|
<NetworkIcons_1.StorageIcon color={AppColors_1.AppColors.grayTextWeak}size={32}/>
|
|
226
226
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxTitle}>
|
|
227
|
-
Not Persisted in Storage
|
|
227
|
+
{e("redux.notPersistedInStorage","Not Persisted in Storage")}
|
|
228
228
|
</react_native_1.Text>
|
|
229
229
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxText}>
|
|
230
|
-
This slice is not stored in AsyncStorage or redux-persist.
|
|
231
|
-
State exists purely in active JavaScript memory.
|
|
230
|
+
{e("redux.notPersistedDesc","This slice is not stored in AsyncStorage or redux-persist. State exists purely in active JavaScript memory.")}
|
|
232
231
|
</react_native_1.Text>
|
|
233
232
|
</react_native_1.View>}
|
|
234
233
|
</react_native_1.View>:<react_native_1.View style={{flex:1,padding:10}}>
|
|
@@ -305,20 +304,20 @@
|
|
|
305
304
|
<react_native_1.Pressable onPress={()=>(0,helpers_1.openInVSCode)(t.callerFile,t.callerLine,t.callerCol)}hitSlop={8}style={{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:AppColors_1.AppColors.sky100,paddingHorizontal:5,paddingVertical:2,borderRadius:4}}>
|
|
306
305
|
<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.sky600}size={9}/>
|
|
307
306
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.sky600}}>
|
|
308
|
-
Open in Editor
|
|
307
|
+
{e("redux.openInEditor","Open in Editor")}
|
|
309
308
|
</react_native_1.Text>
|
|
310
309
|
</react_native_1.Pressable>
|
|
311
310
|
</react_native_1.View>}
|
|
312
311
|
|
|
313
312
|
|
|
314
|
-
<SegmentedTabs_1.default tabs={c}activeKey={T}onChange={n=>
|
|
313
|
+
<SegmentedTabs_1.default tabs={c}activeKey={T}onChange={n=>P(n)}style={{marginTop:10}}/>
|
|
315
314
|
</react_native_1.View>
|
|
316
315
|
|
|
317
316
|
|
|
318
317
|
{T==="payload"?<react_native_1.View style={{flex:1,padding:10}}>
|
|
319
318
|
{t.payload!==void 0?<JsonViewer_1.default data={t.payload}search={d}forceOpen={!0}fullHeight={!0}wrap={!0}/>:<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
320
319
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxText}>
|
|
321
|
-
This action has no payload dispatched.
|
|
320
|
+
{e("redux.actionNoPayload","This action has no payload dispatched.")}
|
|
322
321
|
</react_native_1.Text>
|
|
323
322
|
</react_native_1.View>}
|
|
324
323
|
</react_native_1.View>:T==="diff"?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
|
|
@@ -326,7 +325,7 @@
|
|
|
326
325
|
</react_native_1.ScrollView>:T==="stack"?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
|
|
327
326
|
{t.stack?<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.white,borderRadius:10,padding:10,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor}}>
|
|
328
327
|
<react_native_1.Text style={reduxDetailStyles.expandedSectionTitle}>
|
|
329
|
-
Dispatched from call stack:
|
|
328
|
+
{e("redux.dispatchedFromCallStack","Dispatched from call stack:")}
|
|
330
329
|
</react_native_1.Text>
|
|
331
330
|
{t.stack.split(`
|
|
332
331
|
`).map(n=>n.trim()).filter(n=>n.length>0&&!n.includes("reduxLogger")&&!n.includes("inspectorReduxMiddleware")).map((n,r)=>{const s=(0,helpers_1.parseStackLine)(n,r===0),C=s.frameType==="app";return<react_native_1.Pressable key={r}onPress={()=>{s.fileName!=="Unknown"&&(0,helpers_1.openInVSCode)(s.fullPath||s.fileName,s.lineNumber,s.columnNumber)}}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:5,borderBottomWidth:.5,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
@@ -343,7 +342,7 @@
|
|
|
343
342
|
</react_native_1.Pressable>})}
|
|
344
343
|
</react_native_1.View>:<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
345
344
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxText}>
|
|
346
|
-
No call stack trace captured for this action.
|
|
345
|
+
{e("redux.noCallStackCaptured","No call stack trace captured for this action.")}
|
|
347
346
|
</react_native_1.Text>
|
|
348
347
|
</react_native_1.View>}
|
|
349
348
|
</react_native_1.ScrollView>:<react_native_1.View style={{flex:1,padding:10}}>
|
|
@@ -352,10 +351,9 @@
|
|
|
352
351
|
</react_native_1.View>}return<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
353
352
|
<NetworkIcons_1.TerminalIcon color={AppColors_1.AppColors.purple}size={32}/>
|
|
354
353
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxTitle}>
|
|
355
|
-
No Redux Slice Selected
|
|
354
|
+
{e("redux.noSliceSelected","No Redux Slice Selected")}
|
|
356
355
|
</react_native_1.Text>
|
|
357
356
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxText}>
|
|
358
|
-
Select a slice from the Redux tab to inspect its state and dispatched
|
|
359
|
-
actions.
|
|
357
|
+
{e("redux.selectSlicePrompt","Select a slice from the Redux tab to inspect its state and dispatched actions.")}
|
|
360
358
|
</react_native_1.Text>
|
|
361
359
|
</react_native_1.View>}),reduxDetailStyles=react_native_1.StyleSheet.create({infoBar:{backgroundColor:AppColors_1.AppColors.white,padding:12,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor},infoTopRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:8},methodBadge:{paddingHorizontal:7,paddingVertical:2.5,borderRadius:5},methodBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.white,letterSpacing:.4},sliceNameText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,color:AppColors_1.AppColors.primaryBlack,flexShrink:1},persistedChip:{flexDirection:"row",alignItems:"center",gap:3.5,backgroundColor:AppColors_1.AppColors.mintGreenBg,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:AppColors_1.AppColors.mintGreenBorder},persistedChipText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:AppColors_1.AppColors.mintGreenText},inMemoryChip:{backgroundColor:AppColors_1.AppColors.indigo50,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:AppColors_1.AppColors.blueBorder},inMemoryChipText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:AppColors_1.AppColors.indigo600Alt},subStatsRow:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"},statPill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:AppColors_1.AppColors.grayBackground,paddingHorizontal:6,paddingVertical:2.5,borderRadius:5,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},statPillText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.grayText},statLabel:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.grayTextWeak},statValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.primaryBlack},searchContainer:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.white,borderRadius:8,marginHorizontal:12,marginTop:10,paddingHorizontal:10,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,height:36,gap:8},searchInput:{flex:1,fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,color:AppColors_1.AppColors.primaryBlack,padding:0},timelineCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:10,padding:12,marginBottom:8,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.primaryBlack,shadowOffset:{width:0,height:1},shadowOpacity:.03,shadowRadius:3,elevation:1},timelineHeader:{flexDirection:"row",alignItems:"center",gap:8},actionBadge:{backgroundColor:AppColors_1.AppColors.indigo50,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:AppColors_1.AppColors.blueBorder},actionBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.indigo600Alt},actionTitle:{flex:1,fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.primaryBlack},timePill:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:6,paddingVertical:2,borderRadius:4},timeText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.purple},collapsedPrompt:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:8,paddingTop:6,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor},collapsedPromptText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak},expandedContent:{marginTop:10,paddingTop:10,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor},expandedSectionTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.grayTextStrong,marginBottom:6},metadataCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,padding:12,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.primaryBlack,shadowOffset:{width:0,height:1},shadowOpacity:.03,shadowRadius:3,elevation:1},metaRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingVertical:10,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor},metaLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.grayTextWeak},metaValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.primaryBlack,maxWidth:"60%",textAlign:"right"},persistedInfoCard:{backgroundColor:AppColors_1.AppColors.mintGreenBg,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.mintGreenBorder,padding:10},persistedInfoTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.mintGreenText},clearPersistMiniBtn:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:AppColors_1.AppColors.errorCardBg,paddingHorizontal:6,paddingVertical:2.5,borderRadius:4},clearPersistMiniText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.errorColor},clearPersistBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:AppColors_1.AppColors.errorCardBg,borderWidth:1,borderColor:AppColors_1.AppColors.errorBorder,borderRadius:8,paddingVertical:10,marginTop:14},clearPersistText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.errorColor},emptyBox:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,padding:24,alignItems:"center",justifyContent:"center",borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,margin:12,gap:8},emptyBoxTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,color:AppColors_1.AppColors.primaryBlack},emptyBoxText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.grayTextWeak,textAlign:"center",lineHeight:18},highlight:{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.amber800Warm,fontFamily:AppFonts_1.AppFonts.interBold}});exports.default=ReduxDetail;
|