react-native-inapp-inspector 2.3.16 → 2.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +438 -7
- package/bin/cli.js +0 -0
- package/dist/commonjs/capture.d.ts +26 -0
- package/dist/commonjs/capture.js +32 -0
- package/dist/commonjs/components/AnalyticsEventCard.js +11 -11
- package/dist/commonjs/components/AnimatedEntrance.js +6 -70
- package/dist/commonjs/components/DomainHeader.js +3 -48
- package/dist/commonjs/components/EmptyState.js +2 -2
- package/dist/commonjs/components/HeadersSection.js +14 -34
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +1 -2
- package/dist/commonjs/components/Inspector/ConsoleTab.js +1 -1
- package/dist/commonjs/components/Inspector/CrashTab.js +4 -2
- package/dist/commonjs/components/Inspector/DebuggingTab.js +2 -2
- package/dist/commonjs/components/Inspector/InspectorHeader.js +651 -313
- package/dist/commonjs/components/Inspector/MainScreen.js +25 -70
- package/dist/commonjs/components/Inspector/MediaGalleryTab.d.ts +2 -0
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +307 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +11 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +393 -0
- package/dist/commonjs/components/Inspector/NetworkTab.js +183 -182
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +4 -9
- package/dist/commonjs/components/Inspector/ReduxTab.js +4 -2
- package/dist/commonjs/components/Inspector/SettingsPanel.js +245 -0
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +2 -2
- package/dist/commonjs/components/Inspector/StorageTab.js +3 -3
- package/dist/commonjs/components/Inspector/TabBar.js +5 -10
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +5 -10
- package/dist/commonjs/components/JsonViewer.js +43 -20
- package/dist/commonjs/components/LogCard.js +5 -5
- package/dist/commonjs/components/MetaAccordion.js +78 -80
- package/dist/commonjs/components/NetworkIcons.d.ts +8 -0
- package/dist/commonjs/components/NetworkIcons.js +51 -1
- package/dist/commonjs/components/SectionHeader.js +3 -48
- package/dist/commonjs/components/SkeletonPlaceholder.js +2 -2
- package/dist/commonjs/components/SourcePageCard.js +43 -45
- package/dist/commonjs/components/Toast.js +4 -4
- package/dist/commonjs/components/TouchableScale.js +9 -65
- package/dist/commonjs/components/TreeNode.js +2 -14
- package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
- package/dist/commonjs/constants/telemetryConfig.js +3 -3
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/useAccordion.d.ts +3 -8
- package/dist/commonjs/customHooks/useAccordion.js +6 -36
- package/dist/commonjs/helpers/index.d.ts +2 -1
- package/dist/commonjs/helpers/index.js +10 -1
- package/dist/commonjs/i18n/locales/en.json +66 -2
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.js +39 -22
- package/dist/commonjs/native/NativeInspector.d.ts +60 -0
- package/dist/commonjs/native/NativeInspector.js +109 -2
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +8 -0
- package/dist/commonjs/styles/AppColors.d.ts +36 -0
- package/dist/commonjs/styles/AppColors.js +36 -0
- package/dist/commonjs/styles/index.d.ts +3 -1
- package/dist/commonjs/styles/index.js +3 -1
- package/dist/commonjs/types/enums.d.ts +1 -0
- package/dist/commonjs/types/enums.js +1 -0
- package/dist/commonjs/types/index.d.ts +2 -2
- package/dist/esm/capture.d.ts +26 -0
- package/dist/esm/capture.js +29 -0
- package/dist/esm/components/AnalyticsEventCard.js +11 -11
- package/dist/esm/components/AnimatedEntrance.js +4 -38
- package/dist/esm/components/DomainHeader.js +4 -16
- package/dist/esm/components/EmptyState.js +2 -2
- package/dist/esm/components/HeadersSection.js +16 -36
- package/dist/esm/components/Inspector/AnalyticsTab.js +2 -3
- package/dist/esm/components/Inspector/ConsoleTab.js +2 -2
- package/dist/esm/components/Inspector/CrashTab.js +5 -3
- package/dist/esm/components/Inspector/DebuggingTab.js +3 -3
- package/dist/esm/components/Inspector/InspectorHeader.js +654 -316
- package/dist/esm/components/Inspector/MainScreen.js +25 -70
- package/dist/esm/components/Inspector/MediaGalleryTab.d.ts +2 -0
- package/dist/esm/components/Inspector/MediaGalleryTab.js +267 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +11 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.js +353 -0
- package/dist/esm/components/Inspector/NetworkTab.js +185 -184
- package/dist/esm/components/Inspector/NpmUpdateToast.js +5 -10
- package/dist/esm/components/Inspector/ReduxTab.js +5 -3
- package/dist/esm/components/Inspector/SettingsPanel.js +246 -1
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +2 -2
- package/dist/esm/components/Inspector/StorageTab.js +3 -3
- package/dist/esm/components/Inspector/TabBar.js +6 -11
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +6 -11
- package/dist/esm/components/JsonViewer.js +43 -20
- package/dist/esm/components/LogCard.js +5 -5
- package/dist/esm/components/MetaAccordion.js +79 -81
- package/dist/esm/components/NetworkIcons.d.ts +8 -0
- package/dist/esm/components/NetworkIcons.js +42 -0
- package/dist/esm/components/SectionHeader.js +4 -16
- package/dist/esm/components/SkeletonPlaceholder.js +2 -2
- package/dist/esm/components/SourcePageCard.js +44 -46
- package/dist/esm/components/Toast.js +4 -4
- package/dist/esm/components/TouchableScale.js +7 -33
- package/dist/esm/components/TreeNode.js +4 -16
- package/dist/esm/constants/telemetryConfig.d.ts +3 -3
- package/dist/esm/constants/telemetryConfig.js +3 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/useAccordion.d.ts +3 -8
- package/dist/esm/customHooks/useAccordion.js +7 -37
- package/dist/esm/helpers/index.d.ts +2 -1
- package/dist/esm/helpers/index.js +8 -0
- package/dist/esm/i18n/locales/en.json +66 -2
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +36 -21
- package/dist/esm/native/NativeInspector.d.ts +60 -0
- package/dist/esm/native/NativeInspector.js +100 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +8 -0
- package/dist/esm/styles/AppColors.d.ts +36 -0
- package/dist/esm/styles/AppColors.js +36 -0
- package/dist/esm/styles/index.d.ts +3 -1
- package/dist/esm/styles/index.js +3 -1
- package/dist/esm/types/enums.d.ts +1 -0
- package/dist/esm/types/enums.js +1 -0
- package/dist/esm/types/index.d.ts +2 -2
- package/ios/NetworkInspectorModule.h +1 -0
- package/ios/NetworkInspectorModule.mm +736 -7
- package/package.json +10 -2
- package/react-native-inapp-inspector.podspec +1 -0
- package/src/capture.ts +101 -0
- package/src/components/AnalyticsEventCard.tsx +15 -13
- package/src/components/AnimatedEntrance.tsx +3 -47
- package/src/components/DomainHeader.tsx +4 -17
- package/src/components/EmptyState.tsx +2 -2
- package/src/components/HeadersSection.tsx +31 -56
- package/src/components/Inspector/AnalyticsTab.tsx +2 -2
- package/src/components/Inspector/ConsoleTab.tsx +2 -1
- package/src/components/Inspector/CrashTab.tsx +4 -2
- package/src/components/Inspector/DebuggingTab.tsx +2 -2
- package/src/components/Inspector/InspectorHeader.tsx +1215 -789
- package/src/components/Inspector/MainScreen.tsx +44 -85
- package/src/components/Inspector/MediaGalleryTab.tsx +355 -0
- package/src/components/Inspector/MediaPreviewModal.tsx +435 -0
- package/src/components/Inspector/NetworkTab.tsx +14 -15
- package/src/components/Inspector/NpmUpdateToast.tsx +4 -9
- package/src/components/Inspector/ReduxTab.tsx +5 -2
- package/src/components/Inspector/SettingsPanel.tsx +303 -0
- package/src/components/Inspector/SkeletonPlaceholder.tsx +2 -2
- package/src/components/Inspector/StorageTab.tsx +3 -3
- package/src/components/Inspector/TabBar.tsx +6 -12
- package/src/components/Inspector/UpdateAvailableModal.tsx +6 -10
- package/src/components/JsonViewer.tsx +101 -60
- package/src/components/LogCard.tsx +10 -8
- package/src/components/MetaAccordion.tsx +6 -6
- package/src/components/NetworkIcons.tsx +150 -0
- package/src/components/SectionHeader.tsx +4 -16
- package/src/components/SkeletonPlaceholder.tsx +2 -2
- package/src/components/SourcePageCard.tsx +57 -55
- package/src/components/Toast.tsx +4 -4
- package/src/components/TouchableScale.tsx +8 -38
- package/src/components/TreeNode.tsx +5 -20
- package/src/constants/telemetryConfig.ts +3 -5
- package/src/constants/version.ts +1 -1
- package/src/customHooks/useAccordion.tsx +10 -43
- package/src/helpers/index.ts +10 -1
- package/src/i18n/locales/en.json +69 -2
- package/src/index.tsx +51 -23
- package/src/native/NativeInspector.ts +186 -1
- package/src/native/NativeNetworkInspector.ts +9 -0
- package/src/styles/AppColors.ts +38 -0
- package/src/styles/index.ts +3 -1
- package/src/types/enums.ts +3 -0
- package/src/types/index.ts +2 -2
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.2.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/results.bin +0 -1
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/results.bin +0 -1
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +0 -10
- package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +0 -104
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +0 -128
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +0 -31
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +0 -22
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +0 -24
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +0 -19
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +0 -18
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +0 -177
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +0 -23
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +0 -20
- package/android/build/generated/source/codegen/schema.json +0 -1
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
- package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-inapp-inspector.jar +0 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/aar/react-native-inapp-inspector-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
- package/android/build/reports/problems/problems-report.html +0 -659
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { useTranslation } from '../i18n';
|
|
3
|
-
import { View, Pressable, Text
|
|
3
|
+
import { View, Pressable, Text } from 'react-native';
|
|
4
4
|
import { DURATION_FAST_MS, DURATION_SLOW_MS } from '../constants';
|
|
5
5
|
import useAccordion from '../customHooks/useAccordion';
|
|
6
6
|
import { getDurationColor, handleOpenExternalLink } from '../helpers';
|
|
@@ -13,7 +13,7 @@ import styles from '../styles';
|
|
|
13
13
|
const MetaAccordion = ({ status, statusColor, duration, size, triggeredAt, method, contentType, url, }) => {
|
|
14
14
|
const { t } = useTranslation();
|
|
15
15
|
const [urlExpanded, setUrlExpanded] = useState(false);
|
|
16
|
-
const { toggleOpen, chevronStyle
|
|
16
|
+
const { isOpen, toggleOpen, chevronStyle } = useAccordion(true);
|
|
17
17
|
const isFailed = status === 0 || status == null;
|
|
18
18
|
const renderFormattedUrl = (rawUrl) => {
|
|
19
19
|
if (!rawUrl)
|
|
@@ -65,24 +65,23 @@ const MetaAccordion = ({ status, statusColor, duration, size, triggeredAt, metho
|
|
|
65
65
|
contentType: contentType || 'application/json',
|
|
66
66
|
url: url || '',
|
|
67
67
|
}} label="Metadata"/>
|
|
68
|
-
<
|
|
68
|
+
<View style={chevronStyle}>
|
|
69
69
|
<ChevronIcon color={AppColors.grayTextWeak} size={14}/>
|
|
70
|
-
</
|
|
70
|
+
</View>
|
|
71
71
|
</View>
|
|
72
72
|
</View>
|
|
73
73
|
</Pressable>
|
|
74
74
|
|
|
75
|
-
<
|
|
76
|
-
<View style={styles.metaBody}>
|
|
75
|
+
{isOpen && (<View style={styles.metaBody}>
|
|
77
76
|
<View style={styles.metaRow}>
|
|
78
77
|
<View style={styles.metaLabelRow}>
|
|
79
78
|
<CalendarIcon color={AppColors.grayTextWeak} size={14}/>
|
|
80
79
|
<Text style={styles.metaLabel}>{t('network.triggeredAt')}</Text>
|
|
81
80
|
</View>
|
|
82
81
|
<Text style={[
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
styles.metaValue,
|
|
83
|
+
{ color: AppColors.purple, fontSize: 12 },
|
|
84
|
+
]}>
|
|
86
85
|
{triggeredAt}
|
|
87
86
|
</Text>
|
|
88
87
|
</View>
|
|
@@ -94,16 +93,16 @@ const MetaAccordion = ({ status, statusColor, duration, size, triggeredAt, metho
|
|
|
94
93
|
<Text style={styles.metaLabel}>{t('network.methodHeader')}</Text>
|
|
95
94
|
</View>
|
|
96
95
|
<View style={[
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
styles.statusChip,
|
|
97
|
+
{
|
|
98
|
+
borderColor: `${AppColors.brandPurple}40`,
|
|
99
|
+
backgroundColor: `${AppColors.brandPurple}14`,
|
|
100
|
+
},
|
|
101
|
+
]}>
|
|
103
102
|
<Text style={[
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
styles.statusText,
|
|
104
|
+
{ color: AppColors.purple, fontFamily: AppFonts.interBold },
|
|
105
|
+
]}>
|
|
107
106
|
{method || 'GET'}
|
|
108
107
|
</Text>
|
|
109
108
|
</View>
|
|
@@ -116,20 +115,20 @@ const MetaAccordion = ({ status, statusColor, duration, size, triggeredAt, metho
|
|
|
116
115
|
<Text style={styles.metaLabel}>{t('network.statusHeader')}</Text>
|
|
117
116
|
</View>
|
|
118
117
|
<View style={[
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
118
|
+
styles.statusChip,
|
|
119
|
+
{
|
|
120
|
+
borderColor: isFailed
|
|
121
|
+
? `${AppColors.errorColor}40`
|
|
122
|
+
: `${statusColor}40`,
|
|
123
|
+
backgroundColor: isFailed
|
|
124
|
+
? `${AppColors.errorColor}15`
|
|
125
|
+
: `${statusColor}15`,
|
|
126
|
+
},
|
|
127
|
+
]}>
|
|
129
128
|
<Text style={[
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
styles.statusText,
|
|
130
|
+
{ color: isFailed ? AppColors.errorColor : statusColor },
|
|
131
|
+
]}>
|
|
133
132
|
{isFailed ? t('network.failedNetworkError') : String(status)}
|
|
134
133
|
</Text>
|
|
135
134
|
</View>
|
|
@@ -154,21 +153,21 @@ const MetaAccordion = ({ status, statusColor, duration, size, triggeredAt, metho
|
|
|
154
153
|
</View>
|
|
155
154
|
<View style={styles.metaValueRow}>
|
|
156
155
|
{duration != null && !isFailed && (<View style={[
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
156
|
+
styles.perfBadge,
|
|
157
|
+
{
|
|
158
|
+
backgroundColor: `${getDurationColor(duration)}15`,
|
|
159
|
+
borderColor: `${getDurationColor(duration)}40`,
|
|
160
|
+
},
|
|
161
|
+
]}>
|
|
163
162
|
<Text style={[
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
styles.perfBadgeText,
|
|
164
|
+
{ color: getDurationColor(duration) },
|
|
165
|
+
]}>
|
|
167
166
|
{duration < DURATION_FAST_MS
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
? t('network.perf.fast')
|
|
168
|
+
: duration < DURATION_SLOW_MS
|
|
169
|
+
? t('network.perf.moderate')
|
|
170
|
+
: t('network.perf.slow')}
|
|
172
171
|
</Text>
|
|
173
172
|
</View>)}
|
|
174
173
|
<Text style={styles.metaValue}>
|
|
@@ -185,25 +184,25 @@ const MetaAccordion = ({ status, statusColor, duration, size, triggeredAt, metho
|
|
|
185
184
|
</Text>
|
|
186
185
|
<Text style={{ fontFamily: AppFonts.interMedium, fontSize: 10.5, color: getDurationColor(duration) }}>
|
|
187
186
|
{duration < DURATION_FAST_MS
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
187
|
+
? t('network.perf.fast')
|
|
188
|
+
: duration < DURATION_SLOW_MS
|
|
189
|
+
? t('network.perf.moderate')
|
|
190
|
+
: t('network.perf.slow')}
|
|
192
191
|
</Text>
|
|
193
192
|
</View>
|
|
194
193
|
|
|
195
194
|
<View style={{
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
195
|
+
height: 6,
|
|
196
|
+
backgroundColor: AppColors.grayBorderSecondary,
|
|
197
|
+
borderRadius: 3,
|
|
198
|
+
overflow: 'hidden',
|
|
199
|
+
}}>
|
|
201
200
|
<View style={{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
201
|
+
height: '100%',
|
|
202
|
+
width: `${Math.min(100, Math.max(8, (duration / 1200) * 100))}%`,
|
|
203
|
+
backgroundColor: getDurationColor(duration),
|
|
204
|
+
borderRadius: 3,
|
|
205
|
+
}}/>
|
|
207
206
|
</View>
|
|
208
207
|
|
|
209
208
|
<View style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: 1 }}>
|
|
@@ -239,21 +238,21 @@ const MetaAccordion = ({ status, statusColor, duration, size, triggeredAt, metho
|
|
|
239
238
|
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 10 }}>
|
|
240
239
|
{url && url.length > 50 && (<TouchableScale onPress={() => setUrlExpanded(prev => !prev)} hitSlop={8}>
|
|
241
240
|
<Text style={{
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
fontFamily: AppFonts.interBold,
|
|
242
|
+
fontSize: 10.5,
|
|
243
|
+
color: AppColors.purple,
|
|
244
|
+
}}>
|
|
246
245
|
{urlExpanded ? t('network.showLess') : t('network.showMore')}
|
|
247
246
|
</Text>
|
|
248
247
|
</TouchableScale>)}
|
|
249
248
|
|
|
250
249
|
{url && (<TouchableScale onPress={() => handleOpenExternalLink(url)} hitSlop={8}>
|
|
251
250
|
<Text style={{
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
251
|
+
fontFamily: AppFonts.interBold,
|
|
252
|
+
fontSize: 10.5,
|
|
253
|
+
color: AppColors.purple,
|
|
254
|
+
textDecorationLine: 'underline',
|
|
255
|
+
}}>
|
|
257
256
|
{t('network.open')}
|
|
258
257
|
</Text>
|
|
259
258
|
</TouchableScale>)}
|
|
@@ -261,25 +260,24 @@ const MetaAccordion = ({ status, statusColor, duration, size, triggeredAt, metho
|
|
|
261
260
|
</View>
|
|
262
261
|
|
|
263
262
|
<View style={{
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
263
|
+
backgroundColor: AppColors.slate50,
|
|
264
|
+
borderRadius: 8,
|
|
265
|
+
padding: 8,
|
|
266
|
+
borderWidth: 1.5,
|
|
267
|
+
borderColor: AppColors.slate200,
|
|
268
|
+
width: '100%',
|
|
269
|
+
marginTop: 2,
|
|
270
|
+
}}>
|
|
272
271
|
<Text selectable={true} numberOfLines={urlExpanded ? undefined : 2} ellipsizeMode="tail" style={{
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
272
|
+
fontSize: 11,
|
|
273
|
+
textAlign: 'left',
|
|
274
|
+
lineHeight: 16.5,
|
|
275
|
+
}}>
|
|
277
276
|
{renderFormattedUrl(url)}
|
|
278
277
|
</Text>
|
|
279
278
|
</View>
|
|
280
279
|
</View>
|
|
281
|
-
</View>
|
|
282
|
-
</Animated.View>
|
|
280
|
+
</View>)}
|
|
283
281
|
</View>);
|
|
284
282
|
};
|
|
285
283
|
export default MetaAccordion;
|
|
@@ -143,3 +143,11 @@ export declare const HeadphonesIcon: ({ color, size, }: IconProps) => React.JSX.
|
|
|
143
143
|
export declare const HelpCircleIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
144
144
|
export declare const SendIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
145
145
|
export declare const LifeBuoyIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
146
|
+
export declare const CameraIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
147
|
+
export declare const VideoCameraIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
148
|
+
export declare const MicrophoneIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
149
|
+
export declare const GifIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
150
|
+
export declare const PlayIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
151
|
+
export declare const PauseIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
152
|
+
export declare const ImageIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
153
|
+
export declare const FilmIcon: ({ color, size, }: IconProps) => React.JSX.Element;
|
|
@@ -786,3 +786,45 @@ export const LifeBuoyIcon = ({ color = AppColors.white, size = 20, }) => (<Svg w
|
|
|
786
786
|
<Line x1="14.83" y1="14.83" x2="19.07" y2="19.07" stroke={color} strokeWidth="2" strokeLinecap="round"/>
|
|
787
787
|
<Line x1="4.93" y1="19.07" x2="9.17" y2="14.83" stroke={color} strokeWidth="2" strokeLinecap="round"/>
|
|
788
788
|
</Svg>);
|
|
789
|
+
export const CameraIcon = ({ color = AppColors.white, size = 18, }) => (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
790
|
+
<Path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
791
|
+
<Circle cx="12" cy="13" r="4" stroke={color} strokeWidth="2"/>
|
|
792
|
+
</Svg>);
|
|
793
|
+
export const VideoCameraIcon = ({ color = AppColors.white, size = 18, }) => (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
794
|
+
<Path d="M23 7l-7 5 7 5V7z" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
795
|
+
<Rect x="1" y="5" width="15" height="14" rx="2" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
796
|
+
</Svg>);
|
|
797
|
+
export const MicrophoneIcon = ({ color = AppColors.white, size = 18, }) => (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
798
|
+
<Path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
799
|
+
<Path d="M19 10v2a7 7 0 0 1-14 0v-2" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
800
|
+
<Line x1="12" y1="19" x2="12" y2="23" stroke={color} strokeWidth="2" strokeLinecap="round"/>
|
|
801
|
+
<Line x1="8" y1="23" x2="16" y2="23" stroke={color} strokeWidth="2" strokeLinecap="round"/>
|
|
802
|
+
</Svg>);
|
|
803
|
+
export const GifIcon = ({ color = AppColors.white, size = 18, }) => (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
804
|
+
<Rect x="2" y="4" width="20" height="16" rx="3" stroke={color} strokeWidth="2"/>
|
|
805
|
+
<Path d="M7 10h-1a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h1v-2H6.5" stroke={color} strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round"/>
|
|
806
|
+
<Path d="M12 10v4" stroke={color} strokeWidth="1.75" strokeLinecap="round"/>
|
|
807
|
+
<Path d="M18 10h-2v4M16 12h1.5" stroke={color} strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round"/>
|
|
808
|
+
</Svg>);
|
|
809
|
+
export const PlayIcon = ({ color = AppColors.white, size = 18, }) => (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
810
|
+
<Path d="M5 3l14 9-14 9V3z" fill={color} stroke={color} strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
|
|
811
|
+
</Svg>);
|
|
812
|
+
export const PauseIcon = ({ color = AppColors.white, size = 18, }) => (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
813
|
+
<Rect x="6" y="4" width="4" height="16" fill={color} rx="1"/>
|
|
814
|
+
<Rect x="14" y="4" width="4" height="16" fill={color} rx="1"/>
|
|
815
|
+
</Svg>);
|
|
816
|
+
export const ImageIcon = ({ color = AppColors.white, size = 18, }) => (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
817
|
+
<Rect x="3" y="3" width="18" height="18" rx="2" stroke={color} strokeWidth="2"/>
|
|
818
|
+
<Circle cx="8.5" cy="8.5" r="1.5" fill={color}/>
|
|
819
|
+
<Path d="M21 15l-5-5L5 21" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
820
|
+
</Svg>);
|
|
821
|
+
export const FilmIcon = ({ color = AppColors.white, size = 18, }) => (<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
822
|
+
<Rect x="2" y="2" width="20" height="20" rx="2.18" stroke={color} strokeWidth="2"/>
|
|
823
|
+
<Line x1="7" y1="2" x2="7" y2="22" stroke={color} strokeWidth="2"/>
|
|
824
|
+
<Line x1="17" y1="2" x2="17" y2="22" stroke={color} strokeWidth="2"/>
|
|
825
|
+
<Line x1="2" y1="12" x2="22" y2="12" stroke={color} strokeWidth="2"/>
|
|
826
|
+
<Line x1="2" y1="7" x2="7" y2="7" stroke={color} strokeWidth="2"/>
|
|
827
|
+
<Line x1="2" y1="17" x2="7" y2="17" stroke={color} strokeWidth="2"/>
|
|
828
|
+
<Line x1="17" y1="17" x2="22" y2="17" stroke={color} strokeWidth="2"/>
|
|
829
|
+
<Line x1="17" y1="7" x2="22" y2="7" stroke={color} strokeWidth="2"/>
|
|
830
|
+
</Svg>);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Pressable, Text } from 'react-native';
|
|
3
3
|
import { AppColors } from '../styles/AppColors';
|
|
4
4
|
import CopyButton from './CopyButton';
|
|
5
5
|
import TouchableScale from './TouchableScale';
|
|
@@ -7,18 +7,6 @@ import { RequestIcon, ResponseIcon, HeadersIcon, DiffIcon, ChevronIcon, SearchIc
|
|
|
7
7
|
import styles from '../styles';
|
|
8
8
|
const SectionHeader = ({ title, value, expanded, onToggleExpand, showDiff, isDiffing, onToggleDiff, showSearch, isSearching, onToggleSearch, }) => {
|
|
9
9
|
const isOpen = expanded === undefined ? false : !!expanded;
|
|
10
|
-
const chevronAnim = useRef(new Animated.Value(isOpen ? 1 : 0)).current;
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
Animated.timing(chevronAnim, {
|
|
13
|
-
toValue: isOpen ? 1 : 0,
|
|
14
|
-
duration: 220,
|
|
15
|
-
useNativeDriver: true,
|
|
16
|
-
}).start();
|
|
17
|
-
}, [isOpen]);
|
|
18
|
-
const chevronRotate = chevronAnim.interpolate({
|
|
19
|
-
inputRange: [0, 1],
|
|
20
|
-
outputRange: ['0deg', '180deg'],
|
|
21
|
-
});
|
|
22
10
|
return (<View style={styles.sectionHeaderGradient}>
|
|
23
11
|
<View style={styles.sectionHeaderRow}>
|
|
24
12
|
<Pressable style={styles.sectionTitleRow} onPress={onToggleExpand} hitSlop={12}>
|
|
@@ -40,9 +28,9 @@ const SectionHeader = ({ title, value, expanded, onToggleExpand, showDiff, isDif
|
|
|
40
28
|
</TouchableScale>)}
|
|
41
29
|
<CopyButton value={value} label={title}/>
|
|
42
30
|
<TouchableScale onPress={onToggleExpand} hitSlop={12} style={styles.iconSquareBtn}>
|
|
43
|
-
<
|
|
31
|
+
<View style={{ transform: [{ rotate: isOpen ? '180deg' : '0deg' }] }}>
|
|
44
32
|
<ChevronIcon color={AppColors.grayTextStrong} size={14}/>
|
|
45
|
-
</
|
|
33
|
+
</View>
|
|
46
34
|
</TouchableScale>
|
|
47
35
|
</View>
|
|
48
36
|
</View>
|
|
@@ -8,12 +8,12 @@ export const SkeletonPlaceholder = React.memo(function SkeletonPlaceholder({ car
|
|
|
8
8
|
Animated.timing(shimmerAnim, {
|
|
9
9
|
toValue: 0.85,
|
|
10
10
|
duration: 750,
|
|
11
|
-
useNativeDriver:
|
|
11
|
+
useNativeDriver: false,
|
|
12
12
|
}),
|
|
13
13
|
Animated.timing(shimmerAnim, {
|
|
14
14
|
toValue: 0.35,
|
|
15
15
|
duration: 750,
|
|
16
|
-
useNativeDriver:
|
|
16
|
+
useNativeDriver: false,
|
|
17
17
|
}),
|
|
18
18
|
]));
|
|
19
19
|
animation.start();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View, Pressable, Text
|
|
2
|
+
import { View, Pressable, Text } from 'react-native';
|
|
3
3
|
import Svg, { Rect, Path } from 'react-native-svg';
|
|
4
4
|
import CopyButton from './CopyButton';
|
|
5
5
|
import useAccordion from '../customHooks/useAccordion';
|
|
@@ -7,8 +7,8 @@ import { ChevronIcon } from './NetworkIcons';
|
|
|
7
7
|
import { AppColors } from '../styles/AppColors';
|
|
8
8
|
import styles from '../styles';
|
|
9
9
|
const SourcePageCard = ({ routeInfo }) => {
|
|
10
|
-
const main = useAccordion(true
|
|
11
|
-
const params = useAccordion(false
|
|
10
|
+
const main = useAccordion(true);
|
|
11
|
+
const params = useAccordion(false);
|
|
12
12
|
const hasParams = routeInfo.params && Object.keys(routeInfo.params).length > 0;
|
|
13
13
|
return (<View style={styles.sourcePageCard}>
|
|
14
14
|
<Pressable onPress={main.toggleOpen} hitSlop={12}>
|
|
@@ -32,59 +32,57 @@ const SourcePageCard = ({ routeInfo }) => {
|
|
|
32
32
|
<View style={styles.sourcePageHeaderRight}>
|
|
33
33
|
<CopyButton value={routeInfo.path} label="Source Path"/>
|
|
34
34
|
<View style={styles.iconSquareBtn}>
|
|
35
|
-
<
|
|
35
|
+
<View style={main.chevronStyle}>
|
|
36
36
|
<ChevronIcon color={AppColors.grayTextStrong} size={14}/>
|
|
37
|
-
</
|
|
37
|
+
</View>
|
|
38
38
|
</View>
|
|
39
39
|
</View>
|
|
40
40
|
</View>
|
|
41
41
|
</Pressable>
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
{main.isOpen && (<View>
|
|
44
|
+
{hasParams && (<View style={styles.sourceParamsBox}>
|
|
45
|
+
<Pressable onPress={params.toggleOpen} hitSlop={10}>
|
|
46
|
+
<View style={styles.paramsAccordionHeader}>
|
|
47
|
+
<View style={styles.paramsAccordionLeft}>
|
|
48
|
+
<Text style={styles.sourceParamsLabel}>Parameters</Text>
|
|
49
|
+
<View style={styles.headerCountBadge}>
|
|
50
|
+
<Text style={styles.headerCountText}>
|
|
51
|
+
{Object.keys(routeInfo.params).length}
|
|
52
|
+
</Text>
|
|
53
|
+
</View>
|
|
53
54
|
</View>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</
|
|
55
|
+
<View style={styles.paramsAccordionRight}>
|
|
56
|
+
<CopyButton value={routeInfo.params} label="Parameters"/>
|
|
57
|
+
<View style={styles.iconSquareBtn}>
|
|
58
|
+
<View style={params.chevronStyle}>
|
|
59
|
+
<ChevronIcon color={AppColors.grayTextStrong} size={14}/>
|
|
60
|
+
</View>
|
|
61
|
+
</View>
|
|
61
62
|
</View>
|
|
62
63
|
</View>
|
|
63
|
-
</
|
|
64
|
-
</Pressable>
|
|
64
|
+
</Pressable>
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
</View>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
</View>)}
|
|
87
|
-
</Animated.View>
|
|
66
|
+
{params.isOpen && (<View style={styles.paramsBody}>
|
|
67
|
+
{Object.entries(routeInfo.params).map(([key, val], i, arr) => (<View key={key} style={[
|
|
68
|
+
styles.paramRow,
|
|
69
|
+
i < arr.length - 1 ? styles.paramRowBorder : null,
|
|
70
|
+
]}>
|
|
71
|
+
<Text style={styles.paramKey}>{key}</Text>
|
|
72
|
+
<View style={styles.paramValueRow}>
|
|
73
|
+
<Text selectable style={styles.paramValue}>
|
|
74
|
+
{typeof val === 'object'
|
|
75
|
+
? JSON.stringify(val)
|
|
76
|
+
: String(val)}
|
|
77
|
+
</Text>
|
|
78
|
+
<CopyButton value={typeof val === 'object'
|
|
79
|
+
? JSON.stringify(val)
|
|
80
|
+
: String(val)} label={key}/>
|
|
81
|
+
</View>
|
|
82
|
+
</View>))}
|
|
83
|
+
</View>)}
|
|
84
|
+
</View>)}
|
|
85
|
+
</View>)}
|
|
88
86
|
</View>);
|
|
89
87
|
};
|
|
90
88
|
export default SourcePageCard;
|
|
@@ -19,13 +19,13 @@ const Toast = React.memo(() => {
|
|
|
19
19
|
Animated.timing(opacityAnim, {
|
|
20
20
|
toValue: 1,
|
|
21
21
|
duration: 180,
|
|
22
|
-
useNativeDriver:
|
|
22
|
+
useNativeDriver: false,
|
|
23
23
|
}),
|
|
24
24
|
Animated.spring(translateYAnim, {
|
|
25
25
|
toValue: 0,
|
|
26
26
|
tension: 80,
|
|
27
27
|
friction: 8,
|
|
28
|
-
useNativeDriver:
|
|
28
|
+
useNativeDriver: false,
|
|
29
29
|
}),
|
|
30
30
|
]).start();
|
|
31
31
|
hideTimerRef.current = setTimeout(() => {
|
|
@@ -33,12 +33,12 @@ const Toast = React.memo(() => {
|
|
|
33
33
|
Animated.timing(opacityAnim, {
|
|
34
34
|
toValue: 0,
|
|
35
35
|
duration: 200,
|
|
36
|
-
useNativeDriver:
|
|
36
|
+
useNativeDriver: false,
|
|
37
37
|
}),
|
|
38
38
|
Animated.timing(translateYAnim, {
|
|
39
39
|
toValue: 20,
|
|
40
40
|
duration: 200,
|
|
41
|
-
useNativeDriver:
|
|
41
|
+
useNativeDriver: false,
|
|
42
42
|
}),
|
|
43
43
|
]).start(() => {
|
|
44
44
|
setToastMessage(null);
|
|
@@ -1,45 +1,19 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Pressable } from 'react-native';
|
|
3
3
|
import { triggerNativeHaptic } from '../native/NativeInspector';
|
|
4
|
-
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
5
4
|
const TouchableScale = React.memo(function TouchableScale({ onPress, onLongPress, style, children, hitSlop, disabled, enableHaptics = true, accessible, accessibilityRole, accessibilityLabel, accessibilityHint, accessibilityState, accessibilityValue, ...rest }) {
|
|
6
|
-
const scale = useRef(new Animated.Value(1)).current;
|
|
7
|
-
const opacity = useRef(new Animated.Value(1)).current;
|
|
8
5
|
const handlePressIn = () => {
|
|
9
6
|
if (disabled)
|
|
10
7
|
return;
|
|
11
8
|
if (enableHaptics) {
|
|
12
9
|
triggerNativeHaptic('light');
|
|
13
10
|
}
|
|
14
|
-
Animated.parallel([
|
|
15
|
-
Animated.timing(scale, {
|
|
16
|
-
toValue: 0.94,
|
|
17
|
-
duration: 50,
|
|
18
|
-
useNativeDriver: true,
|
|
19
|
-
}),
|
|
20
|
-
Animated.timing(opacity, {
|
|
21
|
-
toValue: 0.85,
|
|
22
|
-
duration: 50,
|
|
23
|
-
useNativeDriver: true,
|
|
24
|
-
}),
|
|
25
|
-
]).start();
|
|
26
11
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
duration: 100,
|
|
32
|
-
useNativeDriver: true,
|
|
33
|
-
}),
|
|
34
|
-
Animated.timing(opacity, {
|
|
35
|
-
toValue: 1,
|
|
36
|
-
duration: 100,
|
|
37
|
-
useNativeDriver: true,
|
|
38
|
-
}),
|
|
39
|
-
]).start();
|
|
40
|
-
};
|
|
41
|
-
return (<AnimatedPressable accessible={accessible} accessibilityRole={accessibilityRole} accessibilityLabel={accessibilityLabel} accessibilityHint={accessibilityHint} accessibilityState={accessibilityState} accessibilityValue={accessibilityValue} disabled={disabled} style={[style, { opacity, transform: [{ scale }] }]} onPressIn={handlePressIn} onPressOut={handlePressOut} onPress={onPress} onLongPress={onLongPress} hitSlop={hitSlop} {...rest}>
|
|
12
|
+
return (<Pressable accessible={accessible} accessibilityRole={accessibilityRole} accessibilityLabel={accessibilityLabel} accessibilityHint={accessibilityHint} accessibilityState={accessibilityState} accessibilityValue={accessibilityValue} disabled={disabled} style={({ pressed }) => [
|
|
13
|
+
typeof style === 'function' ? style({ pressed }) : style,
|
|
14
|
+
pressed && !disabled && { opacity: 0.82, transform: [{ scale: 0.96 }] },
|
|
15
|
+
]} onPressIn={handlePressIn} onPress={onPress} onLongPress={onLongPress} hitSlop={hitSlop} {...rest}>
|
|
42
16
|
{children}
|
|
43
|
-
</
|
|
17
|
+
</Pressable>);
|
|
44
18
|
});
|
|
45
19
|
export default TouchableScale;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { useState,
|
|
2
|
-
import { Text, View, Image,
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import { Text, View, Image, Pressable } from 'react-native';
|
|
3
3
|
import { escapeRegex } from '../helpers';
|
|
4
4
|
import { ChevronIcon, DocIcon } from './NetworkIcons';
|
|
5
5
|
import { AppColors } from '../styles/AppColors';
|
|
@@ -19,18 +19,6 @@ const TreeNode = React.memo(function TreeNode({ data, name, level = 0, search, f
|
|
|
19
19
|
}, [forceOpen]);
|
|
20
20
|
const isObject = typeof data === 'object' && data !== null;
|
|
21
21
|
const isArray = Array.isArray(data);
|
|
22
|
-
const treeChevronAnim = useRef(new Animated.Value(open ? 1 : 0)).current;
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
Animated.timing(treeChevronAnim, {
|
|
25
|
-
toValue: open ? 1 : 0,
|
|
26
|
-
duration: 160,
|
|
27
|
-
useNativeDriver: true,
|
|
28
|
-
}).start();
|
|
29
|
-
}, [open]);
|
|
30
|
-
const treeChevronRotate = treeChevronAnim.interpolate({
|
|
31
|
-
inputRange: [0, 1],
|
|
32
|
-
outputRange: ['0deg', '180deg'],
|
|
33
|
-
});
|
|
34
22
|
function renderHighlighted(text) {
|
|
35
23
|
if (text === 'null' || text === 'undefined') {
|
|
36
24
|
return [
|
|
@@ -89,9 +77,9 @@ const TreeNode = React.memo(function TreeNode({ data, name, level = 0, search, f
|
|
|
89
77
|
const countLabel = isArray ? `[${entries.length}]` : `{${entries.length}}`;
|
|
90
78
|
return (<View style={indentStyle}>
|
|
91
79
|
<Pressable style={styles.treeRow} onPress={() => setLocalOpen(v => !v)} hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}>
|
|
92
|
-
<
|
|
80
|
+
<View style={{ transform: [{ rotate: open ? '180deg' : '0deg' }], marginRight: 6 }}>
|
|
93
81
|
<ChevronIcon color={AppColors.grayTextWeak} size={12}/>
|
|
94
|
-
</
|
|
82
|
+
</View>
|
|
95
83
|
{name !== undefined && (<Text style={[styles.codeKey, styles.treeKeyMargin]}>{`"${String(name)}"`}</Text>)}
|
|
96
84
|
{isArray ? (<View style={styles.arrayBadge}>
|
|
97
85
|
<Text style={styles.arrayBadgeText}>{countLabel}</Text>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ENC_MID = "
|
|
2
|
-
export declare const ENC_SEC = "
|
|
3
|
-
export declare const TELEMETRY_SALT = "
|
|
1
|
+
export declare const ENC_MID = "";
|
|
2
|
+
export declare const ENC_SEC = "";
|
|
3
|
+
export declare const TELEMETRY_SALT = "";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const ENC_MID = '
|
|
2
|
-
export const ENC_SEC = '
|
|
3
|
-
export const TELEMETRY_SALT = '
|
|
1
|
+
export const ENC_MID = '';
|
|
2
|
+
export const ENC_SEC = '';
|
|
3
|
+
export const TELEMETRY_SALT = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "2.3.
|
|
1
|
+
export declare const LIB_VERSION = "2.3.18";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = '2.3.
|
|
1
|
+
export const LIB_VERSION = '2.3.18';
|