react-native-inapp-inspector 2.3.15 → 2.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/README.md +1 -0
  2. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +438 -7
  3. package/bin/cli.js +0 -0
  4. package/dist/commonjs/capture.d.ts +26 -0
  5. package/dist/commonjs/capture.js +32 -0
  6. package/dist/commonjs/components/AnalyticsEventCard.js +11 -11
  7. package/dist/commonjs/components/AnimatedEntrance.js +6 -70
  8. package/dist/commonjs/components/DomainHeader.js +3 -48
  9. package/dist/commonjs/components/EmptyState.js +2 -2
  10. package/dist/commonjs/components/HeadersSection.js +14 -34
  11. package/dist/commonjs/components/Inspector/AnalyticsTab.js +1 -24
  12. package/dist/commonjs/components/Inspector/ConsoleTab.js +1 -23
  13. package/dist/commonjs/components/Inspector/CrashTab.js +4 -25
  14. package/dist/commonjs/components/Inspector/DebuggingTab.js +2 -2
  15. package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +7 -0
  16. package/dist/commonjs/components/Inspector/FeedbackModal.js +552 -0
  17. package/dist/commonjs/components/Inspector/InspectorHeader.js +675 -285
  18. package/dist/commonjs/components/Inspector/MainScreen.js +66 -69
  19. package/dist/commonjs/components/Inspector/MediaGalleryTab.d.ts +2 -0
  20. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +307 -0
  21. package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +11 -0
  22. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +393 -0
  23. package/dist/commonjs/components/Inspector/NetworkTab.js +196 -206
  24. package/dist/commonjs/components/Inspector/NpmStarPrompt.d.ts +3 -0
  25. package/dist/commonjs/components/Inspector/NpmStarPrompt.js +494 -0
  26. package/dist/commonjs/components/Inspector/NpmUpdateToast.js +4 -9
  27. package/dist/commonjs/components/Inspector/PerformanceTab.js +8 -1
  28. package/dist/commonjs/components/Inspector/ReduxTab.js +4 -24
  29. package/dist/commonjs/components/Inspector/SettingsPanel.js +1280 -173
  30. package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +2 -2
  31. package/dist/commonjs/components/Inspector/StorageTab.js +3 -26
  32. package/dist/commonjs/components/Inspector/TabBar.js +55 -25
  33. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +5 -10
  34. package/dist/commonjs/components/JsonViewer.js +43 -20
  35. package/dist/commonjs/components/LogCard.js +5 -5
  36. package/dist/commonjs/components/MetaAccordion.js +78 -80
  37. package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
  38. package/dist/commonjs/components/NetworkIcons.js +83 -2
  39. package/dist/commonjs/components/SectionHeader.js +3 -48
  40. package/dist/commonjs/components/SkeletonPlaceholder.js +2 -2
  41. package/dist/commonjs/components/SourcePageCard.js +43 -45
  42. package/dist/commonjs/components/Toast.js +4 -4
  43. package/dist/commonjs/components/TouchableScale.js +9 -65
  44. package/dist/commonjs/components/TreeNode.js +2 -14
  45. package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
  46. package/dist/commonjs/constants/telemetryConfig.js +3 -3
  47. package/dist/commonjs/constants/version.d.ts +1 -1
  48. package/dist/commonjs/constants/version.js +1 -1
  49. package/dist/commonjs/customHooks/useAccordion.d.ts +3 -8
  50. package/dist/commonjs/customHooks/useAccordion.js +6 -36
  51. package/dist/commonjs/helpers/index.d.ts +3 -1
  52. package/dist/commonjs/helpers/index.js +11 -1
  53. package/dist/commonjs/helpers/remoteConfig.d.ts +4 -0
  54. package/dist/commonjs/helpers/remoteConfig.js +165 -0
  55. package/dist/commonjs/helpers/searchQueryParser.js +2 -0
  56. package/dist/commonjs/helpers/telemetry.d.ts +5 -0
  57. package/dist/commonjs/helpers/telemetry.js +339 -8
  58. package/dist/commonjs/i18n/locales/en.json +66 -2
  59. package/dist/commonjs/index.d.ts +2 -0
  60. package/dist/commonjs/index.js +70 -23
  61. package/dist/commonjs/native/NativeInspector.d.ts +60 -0
  62. package/dist/commonjs/native/NativeInspector.js +109 -2
  63. package/dist/commonjs/native/NativeNetworkInspector.d.ts +8 -0
  64. package/dist/commonjs/styles/AppColors.d.ts +36 -0
  65. package/dist/commonjs/styles/AppColors.js +36 -0
  66. package/dist/commonjs/styles/AppFonts.d.ts +2 -0
  67. package/dist/commonjs/styles/AppFonts.js +1 -0
  68. package/dist/commonjs/styles/index.d.ts +25 -1
  69. package/dist/commonjs/styles/index.js +22 -1
  70. package/dist/commonjs/types/enums.d.ts +2 -0
  71. package/dist/commonjs/types/enums.js +2 -0
  72. package/dist/commonjs/types/index.d.ts +2 -2
  73. package/dist/commonjs/types/interfaces.d.ts +12 -0
  74. package/dist/esm/capture.d.ts +26 -0
  75. package/dist/esm/capture.js +29 -0
  76. package/dist/esm/components/AnalyticsEventCard.js +11 -11
  77. package/dist/esm/components/AnimatedEntrance.js +4 -38
  78. package/dist/esm/components/DomainHeader.js +4 -16
  79. package/dist/esm/components/EmptyState.js +2 -2
  80. package/dist/esm/components/HeadersSection.js +16 -36
  81. package/dist/esm/components/Inspector/AnalyticsTab.js +3 -26
  82. package/dist/esm/components/Inspector/ConsoleTab.js +3 -25
  83. package/dist/esm/components/Inspector/CrashTab.js +6 -27
  84. package/dist/esm/components/Inspector/DebuggingTab.js +3 -3
  85. package/dist/esm/components/Inspector/FeedbackModal.d.ts +7 -0
  86. package/dist/esm/components/Inspector/FeedbackModal.js +515 -0
  87. package/dist/esm/components/Inspector/InspectorHeader.js +678 -288
  88. package/dist/esm/components/Inspector/MainScreen.js +67 -70
  89. package/dist/esm/components/Inspector/MediaGalleryTab.d.ts +2 -0
  90. package/dist/esm/components/Inspector/MediaGalleryTab.js +267 -0
  91. package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +11 -0
  92. package/dist/esm/components/Inspector/MediaPreviewModal.js +353 -0
  93. package/dist/esm/components/Inspector/NetworkTab.js +199 -209
  94. package/dist/esm/components/Inspector/NpmStarPrompt.d.ts +3 -0
  95. package/dist/esm/components/Inspector/NpmStarPrompt.js +454 -0
  96. package/dist/esm/components/Inspector/NpmUpdateToast.js +5 -10
  97. package/dist/esm/components/Inspector/PerformanceTab.js +8 -1
  98. package/dist/esm/components/Inspector/ReduxTab.js +6 -26
  99. package/dist/esm/components/Inspector/SettingsPanel.js +1283 -176
  100. package/dist/esm/components/Inspector/SkeletonPlaceholder.js +2 -2
  101. package/dist/esm/components/Inspector/StorageTab.js +3 -26
  102. package/dist/esm/components/Inspector/TabBar.js +56 -26
  103. package/dist/esm/components/Inspector/UpdateAvailableModal.js +6 -11
  104. package/dist/esm/components/JsonViewer.js +43 -20
  105. package/dist/esm/components/LogCard.js +5 -5
  106. package/dist/esm/components/MetaAccordion.js +79 -81
  107. package/dist/esm/components/NetworkIcons.d.ts +13 -0
  108. package/dist/esm/components/NetworkIcons.js +68 -0
  109. package/dist/esm/components/SectionHeader.js +4 -16
  110. package/dist/esm/components/SkeletonPlaceholder.js +2 -2
  111. package/dist/esm/components/SourcePageCard.js +44 -46
  112. package/dist/esm/components/Toast.js +4 -4
  113. package/dist/esm/components/TouchableScale.js +7 -33
  114. package/dist/esm/components/TreeNode.js +4 -16
  115. package/dist/esm/constants/telemetryConfig.d.ts +3 -3
  116. package/dist/esm/constants/telemetryConfig.js +3 -3
  117. package/dist/esm/constants/version.d.ts +1 -1
  118. package/dist/esm/constants/version.js +1 -1
  119. package/dist/esm/customHooks/useAccordion.d.ts +3 -8
  120. package/dist/esm/customHooks/useAccordion.js +7 -37
  121. package/dist/esm/helpers/index.d.ts +3 -1
  122. package/dist/esm/helpers/index.js +9 -0
  123. package/dist/esm/helpers/remoteConfig.d.ts +4 -0
  124. package/dist/esm/helpers/remoteConfig.js +160 -0
  125. package/dist/esm/helpers/searchQueryParser.js +2 -0
  126. package/dist/esm/helpers/telemetry.d.ts +5 -0
  127. package/dist/esm/helpers/telemetry.js +332 -9
  128. package/dist/esm/i18n/locales/en.json +66 -2
  129. package/dist/esm/index.d.ts +2 -0
  130. package/dist/esm/index.js +66 -23
  131. package/dist/esm/native/NativeInspector.d.ts +60 -0
  132. package/dist/esm/native/NativeInspector.js +100 -1
  133. package/dist/esm/native/NativeNetworkInspector.d.ts +8 -0
  134. package/dist/esm/styles/AppColors.d.ts +36 -0
  135. package/dist/esm/styles/AppColors.js +36 -0
  136. package/dist/esm/styles/AppFonts.d.ts +2 -0
  137. package/dist/esm/styles/AppFonts.js +1 -0
  138. package/dist/esm/styles/index.d.ts +25 -1
  139. package/dist/esm/styles/index.js +22 -1
  140. package/dist/esm/types/enums.d.ts +2 -0
  141. package/dist/esm/types/enums.js +2 -0
  142. package/dist/esm/types/index.d.ts +2 -2
  143. package/dist/esm/types/interfaces.d.ts +12 -0
  144. package/ios/NetworkInspectorModule.h +1 -0
  145. package/ios/NetworkInspectorModule.mm +736 -7
  146. package/package.json +10 -2
  147. package/react-native-inapp-inspector.podspec +1 -0
  148. package/src/capture.ts +101 -0
  149. package/src/components/AnalyticsEventCard.tsx +15 -13
  150. package/src/components/AnimatedEntrance.tsx +3 -47
  151. package/src/components/DomainHeader.tsx +4 -17
  152. package/src/components/EmptyState.tsx +2 -2
  153. package/src/components/HeadersSection.tsx +31 -56
  154. package/src/components/Inspector/AnalyticsTab.tsx +2 -25
  155. package/src/components/Inspector/ConsoleTab.tsx +2 -24
  156. package/src/components/Inspector/CrashTab.tsx +4 -25
  157. package/src/components/Inspector/DebuggingTab.tsx +2 -2
  158. package/src/components/Inspector/FeedbackModal.tsx +626 -0
  159. package/src/components/Inspector/InspectorHeader.tsx +1230 -728
  160. package/src/components/Inspector/MainScreen.tsx +97 -82
  161. package/src/components/Inspector/MediaGalleryTab.tsx +355 -0
  162. package/src/components/Inspector/MediaPreviewModal.tsx +435 -0
  163. package/src/components/Inspector/NetworkTab.tsx +83 -93
  164. package/src/components/Inspector/NpmStarPrompt.tsx +532 -0
  165. package/src/components/Inspector/NpmUpdateToast.tsx +4 -9
  166. package/src/components/Inspector/PerformanceTab.tsx +8 -1
  167. package/src/components/Inspector/ReduxTab.tsx +5 -25
  168. package/src/components/Inspector/SettingsPanel.tsx +1493 -225
  169. package/src/components/Inspector/SkeletonPlaceholder.tsx +2 -2
  170. package/src/components/Inspector/StorageTab.tsx +3 -26
  171. package/src/components/Inspector/TabBar.tsx +63 -32
  172. package/src/components/Inspector/UpdateAvailableModal.tsx +6 -10
  173. package/src/components/JsonViewer.tsx +101 -60
  174. package/src/components/LogCard.tsx +10 -8
  175. package/src/components/MetaAccordion.tsx +6 -6
  176. package/src/components/NetworkIcons.tsx +242 -0
  177. package/src/components/SectionHeader.tsx +4 -16
  178. package/src/components/SkeletonPlaceholder.tsx +2 -2
  179. package/src/components/SourcePageCard.tsx +57 -55
  180. package/src/components/Toast.tsx +4 -4
  181. package/src/components/TouchableScale.tsx +8 -38
  182. package/src/components/TreeNode.tsx +5 -20
  183. package/src/constants/telemetryConfig.ts +3 -5
  184. package/src/constants/version.ts +1 -1
  185. package/src/customHooks/useAccordion.tsx +10 -43
  186. package/src/helpers/index.ts +11 -1
  187. package/src/helpers/remoteConfig.ts +212 -0
  188. package/src/helpers/searchQueryParser.ts +3 -0
  189. package/src/helpers/telemetry.ts +381 -10
  190. package/src/i18n/locales/en.json +69 -2
  191. package/src/index.tsx +93 -23
  192. package/src/native/NativeInspector.ts +186 -1
  193. package/src/native/NativeNetworkInspector.ts +9 -0
  194. package/src/styles/AppColors.ts +38 -0
  195. package/src/styles/AppFonts.ts +2 -0
  196. package/src/styles/index.ts +23 -2
  197. package/src/types/enums.ts +4 -0
  198. package/src/types/index.ts +2 -2
  199. package/src/types/interfaces.ts +12 -0
  200. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  201. package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
  202. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  203. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  204. package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
  205. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  206. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  207. package/android/.gradle/8.9/gc.properties +0 -0
  208. package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
  209. package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
  210. package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
  211. package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
  212. package/android/.gradle/9.2.0/gc.properties +0 -0
  213. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  214. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  215. package/android/.gradle/vcs-1/gc.properties +0 -0
  216. package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/results.bin +0 -1
  217. package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/transformed/classes/classes_dex/classes.dex +0 -0
  218. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/results.bin +0 -1
  219. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
  220. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
  221. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
  222. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
  223. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
  224. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
  225. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
  226. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
  227. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
  228. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  229. package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +0 -10
  230. package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +0 -104
  231. package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
  232. package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +0 -128
  233. package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +0 -31
  234. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +0 -22
  235. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +0 -24
  236. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +0 -16
  237. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +0 -17
  238. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +0 -19
  239. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +0 -18
  240. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +0 -177
  241. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +0 -17
  242. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +0 -23
  243. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +0 -16
  244. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +0 -20
  245. package/android/build/generated/source/codegen/schema.json +0 -1
  246. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
  247. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  248. package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -0
  249. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  250. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  251. package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
  252. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  253. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  254. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  255. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  256. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  257. package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
  258. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  259. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  260. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  261. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
  262. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
  263. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
  264. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
  265. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
  266. package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-inapp-inspector.jar +0 -0
  267. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
  268. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  269. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  270. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
  271. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
  272. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
  273. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
  274. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
  275. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
  276. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
  277. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
  278. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
  279. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.class +0 -0
  280. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  281. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
  282. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  283. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  284. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  285. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  286. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  287. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  288. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  289. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  290. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  291. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  292. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  293. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  294. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  295. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  296. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  297. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  298. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  299. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  300. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  301. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  302. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  303. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  304. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  305. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  306. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  307. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  308. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  309. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  310. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  311. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  312. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  313. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  314. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  315. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  316. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  317. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  318. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  319. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  320. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  321. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  322. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  323. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  324. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  325. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  326. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  327. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  328. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  329. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  330. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  331. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  332. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  333. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  334. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  335. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  336. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  337. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  338. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  339. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  340. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  341. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  342. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  343. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  344. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  345. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
  346. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  347. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  348. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  349. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  350. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  351. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  352. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  353. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  354. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  355. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  356. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  357. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  358. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  359. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  360. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  361. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  362. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  363. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  364. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  365. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  366. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  367. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  368. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  369. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  370. package/android/build/outputs/aar/react-native-inapp-inspector-debug.aar +0 -0
  371. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
  372. package/android/build/reports/problems/problems-report.html +0 -659
  373. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  374. package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
  375. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
  376. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
  377. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
  378. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
  379. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
  380. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
  381. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
@@ -60,30 +60,21 @@ const StorageTab_1 = __importDefault(require("./StorageTab"));
60
60
  const DebuggingTab_1 = __importDefault(require("./DebuggingTab"));
61
61
  const SettingsPanel_1 = __importDefault(require("./SettingsPanel"));
62
62
  const NpmUpdateToast_1 = __importDefault(require("./NpmUpdateToast"));
63
+ const NpmStarPrompt_1 = __importDefault(require("./NpmStarPrompt"));
64
+ const FeedbackModal_1 = __importDefault(require("./FeedbackModal"));
63
65
  const Toast_1 = __importDefault(require("../Toast"));
66
+ const NetworkIcons_1 = require("../NetworkIcons");
64
67
  const styles_1 = __importDefault(require("../../styles"));
65
68
  const AppColors_1 = require("../../styles/AppColors");
66
69
  const NavigationTracker_1 = __importDefault(require("./NavigationTracker"));
67
70
  const helpers_1 = require("../../helpers");
68
71
  const MainScreen = () => {
69
- const { visible, modalAnimationType, closeModal, modalHeightPercent, selected, selectedEvent, selectedLog, selectedReduxSlice, selectedReduxAction, selectedCrash, settingsPage, activeTab, isReady, enabled, useNativeFab, hasNavigationContext, setNavState, } = (0, InspectorContext_1.useInspector)();
72
+ const { visible, modalAnimationType, closeModal, modalHeightPercent, selected, selectedEvent, selectedLog, selectedReduxSlice, selectedReduxAction, selectedCrash, settingsPage, isFeedbackOpen, setIsFeedbackOpen, activeTab, isReady, enabled, useNativeFab, hasNavigationContext, setNavState, } = (0, InspectorContext_1.useInspector)();
70
73
  const isDetailActive = (activeTab === 'apis' && selected != null) ||
71
74
  (activeTab === 'analytics' && selectedEvent != null) ||
72
75
  (activeTab === 'logs' && selectedLog != null) ||
73
76
  (activeTab === 'redux' && (selectedReduxSlice != null || selectedReduxAction != null)) ||
74
77
  (activeTab === 'crash' && selectedCrash != null);
75
- const detailAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
76
- (0, react_1.useEffect)(() => {
77
- if (isDetailActive) {
78
- detailAnim.setValue(0);
79
- react_native_1.Animated.spring(detailAnim, {
80
- toValue: 1,
81
- friction: 8,
82
- tension: 65,
83
- useNativeDriver: true,
84
- }).start();
85
- }
86
- }, [isDetailActive]);
87
78
  const settingsAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
88
79
  (0, react_1.useEffect)(() => {
89
80
  if (settingsPage !== null) {
@@ -92,19 +83,22 @@ const MainScreen = () => {
92
83
  toValue: 1,
93
84
  friction: 8,
94
85
  tension: 65,
95
- useNativeDriver: true,
86
+ useNativeDriver: false,
96
87
  }).start();
97
88
  }
98
89
  }, [settingsPage !== null]);
99
- const tabAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(1)).current;
90
+ const feedbackAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
100
91
  (0, react_1.useEffect)(() => {
101
- tabAnim.setValue(0);
102
- react_native_1.Animated.timing(tabAnim, {
103
- toValue: 1,
104
- duration: 150,
105
- useNativeDriver: true,
106
- }).start();
107
- }, [activeTab]);
92
+ if (isFeedbackOpen) {
93
+ feedbackAnim.setValue(0);
94
+ react_native_1.Animated.spring(feedbackAnim, {
95
+ toValue: 1,
96
+ friction: 8,
97
+ tension: 65,
98
+ useNativeDriver: false,
99
+ }).start();
100
+ }
101
+ }, [isFeedbackOpen]);
108
102
  return (<>
109
103
  {(react_native_1.Platform.OS === 'ios' || react_native_1.Platform.OS === 'android') &&
110
104
  enabled &&
@@ -128,27 +122,11 @@ const MainScreen = () => {
128
122
 
129
123
  <react_native_1.View style={{ flex: 1 }}>
130
124
 
131
- {!isDetailActive && <TabBar_1.default />}
132
-
133
- {isReady ? (<react_native_1.View style={{ flex: 1 }}>
134
-
135
- <react_native_1.Animated.View style={[
136
- {
137
- flex: 1,
138
- opacity: tabAnim,
139
- transform: [
140
- {
141
- translateY: tabAnim.interpolate({
142
- inputRange: [0, 1],
143
- outputRange: [6, 0],
144
- }),
145
- },
146
- ],
147
- },
148
- (isDetailActive || settingsPage !== null) && {
149
- pointerEvents: 'none',
150
- },
151
- ]}>
125
+ <react_native_1.View style={{ flex: 1 }} pointerEvents={isDetailActive || settingsPage !== null || isFeedbackOpen
126
+ ? 'none'
127
+ : 'auto'}>
128
+ <TabBar_1.default />
129
+ {isReady ? (<react_native_1.View style={{ flex: 1 }}>
152
130
  {activeTab === 'apis' && <NetworkTab_1.default />}
153
131
  {activeTab === 'logs' && <ConsoleTab_1.default />}
154
132
  {activeTab === 'analytics' && <AnalyticsTab_1.default />}
@@ -161,31 +139,23 @@ const MainScreen = () => {
161
139
  {react_native_1.Platform.OS === 'android' &&
162
140
  (0, helpers_1.isLocalDebugEnvironment)() &&
163
141
  activeTab === 'debugging' && <DebuggingTab_1.default />}
164
- </react_native_1.Animated.View>
142
+ </react_native_1.View>) : (<MainScreenSkeleton />)}
143
+ </react_native_1.View>
165
144
 
166
-
167
- {isDetailActive && (<react_native_1.Animated.View style={[
168
- react_native_1.StyleSheet.absoluteFill,
169
- {
170
- backgroundColor: AppColors_1.AppColors.contentBg,
171
- opacity: detailAnim,
172
- transform: [
173
- {
174
- translateX: detailAnim.interpolate({
175
- inputRange: [0, 1],
176
- outputRange: [32, 0],
177
- }),
178
- },
179
- ],
180
- },
181
- ]}>
182
- {activeTab === 'apis' && selected != null && (<NetworkDetail_1.default />)}
183
- {activeTab === 'analytics' && selectedEvent != null && (<AnalyticsDetail_1.default event={selectedEvent}/>)}
184
- {activeTab === 'logs' && selectedLog != null && (<LogDetail_1.default />)}
185
- {activeTab === 'redux' && <ReduxDetail_1.default />}
186
- {activeTab === 'crash' && selectedCrash != null && (<CrashDetail_1.default />)}
187
- </react_native_1.Animated.View>)}
188
- </react_native_1.View>) : (<MainScreenSkeleton />)}
145
+
146
+ {isDetailActive && (<react_native_1.View style={[
147
+ react_native_1.StyleSheet.absoluteFill,
148
+ {
149
+ backgroundColor: AppColors_1.AppColors.contentBg,
150
+ zIndex: 10,
151
+ },
152
+ ]}>
153
+ {activeTab === 'apis' && selected != null && (<NetworkDetail_1.default />)}
154
+ {activeTab === 'analytics' && selectedEvent != null && (<AnalyticsDetail_1.default event={selectedEvent}/>)}
155
+ {activeTab === 'logs' && selectedLog != null && (<LogDetail_1.default />)}
156
+ {activeTab === 'redux' && <ReduxDetail_1.default />}
157
+ {activeTab === 'crash' && selectedCrash != null && (<CrashDetail_1.default />)}
158
+ </react_native_1.View>)}
189
159
 
190
160
 
191
161
  {settingsPage !== null && (<react_native_1.Animated.View style={[
@@ -205,6 +175,30 @@ const MainScreen = () => {
205
175
  ]}>
206
176
  <SettingsPanel_1.default />
207
177
  </react_native_1.Animated.View>)}
178
+
179
+
180
+ {isFeedbackOpen && (<react_native_1.Animated.View style={[
181
+ react_native_1.StyleSheet.absoluteFill,
182
+ {
183
+ backgroundColor: AppColors_1.AppColors.primaryLight,
184
+ opacity: feedbackAnim,
185
+ transform: [
186
+ {
187
+ translateY: feedbackAnim.interpolate({
188
+ inputRange: [0, 1],
189
+ outputRange: [24, 0],
190
+ }),
191
+ },
192
+ ],
193
+ },
194
+ ]}>
195
+ <FeedbackModal_1.default onClose={() => setIsFeedbackOpen(false)}/>
196
+ </react_native_1.Animated.View>)}
197
+
198
+
199
+ {!isDetailActive && settingsPage === null && !isFeedbackOpen && (<react_native_1.TouchableOpacity activeOpacity={0.8} onPress={() => setIsFeedbackOpen(true)} hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }} style={styles_1.default.supportFab}>
200
+ <NetworkIcons_1.HeadphonesIcon color={AppColors_1.AppColors.white} size={20}/>
201
+ </react_native_1.TouchableOpacity>)}
208
202
  </react_native_1.View>
209
203
 
210
204
 
@@ -212,6 +206,9 @@ const MainScreen = () => {
212
206
 
213
207
 
214
208
  <NpmUpdateToast_1.default />
209
+
210
+
211
+ <NpmStarPrompt_1.default />
215
212
  </react_native_1.View>
216
213
  </react_native_1.View>
217
214
  </ErrorBoundary_1.default>
@@ -226,12 +223,12 @@ const MainScreenSkeleton = react_1.default.memo(function MainScreenSkeleton() {
226
223
  react_native_1.Animated.timing(shimmerAnim, {
227
224
  toValue: 0.85,
228
225
  duration: 750,
229
- useNativeDriver: true,
226
+ useNativeDriver: false,
230
227
  }),
231
228
  react_native_1.Animated.timing(shimmerAnim, {
232
229
  toValue: 0.35,
233
230
  duration: 750,
234
- useNativeDriver: true,
231
+ useNativeDriver: false,
235
232
  }),
236
233
  ]));
237
234
  animation.start();
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const MediaGalleryTab: React.FC;
@@ -0,0 +1,307 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MediaGalleryTab = void 0;
40
+ const react_1 = __importStar(require("react"));
41
+ const react_native_1 = require("react-native");
42
+ const AppColors_1 = require("../../styles/AppColors");
43
+ const AppFonts_1 = require("../../styles/AppFonts");
44
+ const TouchableScale_1 = __importDefault(require("../TouchableScale"));
45
+ const EmptyState_1 = __importDefault(require("../EmptyState"));
46
+ const NetworkIcons_1 = require("../NetworkIcons");
47
+ const MediaPreviewModal_1 = require("./MediaPreviewModal");
48
+ const capture_1 = require("../../capture");
49
+ const helpers_1 = require("../../helpers");
50
+ const toast_1 = require("../../helpers/toast");
51
+ const i18n_1 = require("../../i18n");
52
+ const MediaGalleryTab = () => {
53
+ const { t } = (0, i18n_1.useTranslation)();
54
+ const [mediaList, setMediaList] = (0, react_1.useState)([]);
55
+ const [refreshing, setRefreshing] = (0, react_1.useState)(false);
56
+ const [selectedFilter, setSelectedFilter] = (0, react_1.useState)('all');
57
+ const [selectedItem, setSelectedItem] = (0, react_1.useState)(null);
58
+ const loadMedia = (0, react_1.useCallback)(async () => {
59
+ try {
60
+ const items = await capture_1.ScreenCapture.getMediaList();
61
+ setMediaList(items);
62
+ }
63
+ catch {
64
+ setMediaList([]);
65
+ }
66
+ }, []);
67
+ (0, react_1.useEffect)(() => {
68
+ loadMedia();
69
+ }, [loadMedia]);
70
+ const onRefresh = async () => {
71
+ setRefreshing(true);
72
+ await loadMedia();
73
+ setRefreshing(false);
74
+ };
75
+ const filteredMedia = (0, react_1.useMemo)(() => {
76
+ if (selectedFilter === 'all')
77
+ return mediaList;
78
+ return mediaList.filter(item => item.type === selectedFilter);
79
+ }, [mediaList, selectedFilter]);
80
+ const totalStorageBytes = (0, react_1.useMemo)(() => {
81
+ return mediaList.reduce((sum, item) => sum + (item.sizeBytes || 0), 0);
82
+ }, [mediaList]);
83
+ const handleDeleteItem = async (item) => {
84
+ await capture_1.ScreenCapture.deleteMedia(item.uri);
85
+ await loadMedia();
86
+ (0, toast_1.showToast)(t('mediaGallery.deleted'));
87
+ };
88
+ const handleClearAll = () => {
89
+ react_native_1.Alert.alert(t('mediaGallery.purgeTitle'), t('mediaGallery.purgeMessage', { count: mediaList.length, size: (0, helpers_1.formatBytes)(totalStorageBytes) }), [
90
+ { text: t('common.cancel'), style: 'cancel' },
91
+ {
92
+ text: t('common.clearAll'),
93
+ style: 'destructive',
94
+ onPress: async () => {
95
+ await capture_1.ScreenCapture.clearAllMedia();
96
+ await loadMedia();
97
+ (0, toast_1.showToast)(t('mediaGallery.allPurged'));
98
+ },
99
+ },
100
+ ]);
101
+ };
102
+ const handleConvertToGif = async (item) => {
103
+ const gifResult = await capture_1.ScreenCapture.convertToGif(item.uri, { fps: 12, width: 480 });
104
+ if (gifResult) {
105
+ await loadMedia();
106
+ }
107
+ };
108
+ const renderItem = ({ item }) => {
109
+ const isVideo = item.type === 'video';
110
+ const isGif = item.type === 'gif';
111
+ return (<TouchableScale_1.default onPress={() => setSelectedItem(item)} style={galleryStyles.card}>
112
+ <react_native_1.View style={galleryStyles.thumbnailContainer}>
113
+ <react_native_1.Image source={{ uri: item.uri }} style={galleryStyles.thumbnail} resizeMode="cover"/>
114
+ <react_native_1.View style={galleryStyles.typeBadge}>
115
+ {isVideo ? (<NetworkIcons_1.FilmIcon size={11} color={AppColors_1.AppColors.sky400}/>) : isGif ? (<NetworkIcons_1.GifIcon size={11} color={AppColors_1.AppColors.warningAmber}/>) : (<NetworkIcons_1.ImageIcon size={11} color={AppColors_1.AppColors.emerald500}/>)}
116
+ <react_native_1.Text style={galleryStyles.typeBadgeText}>
117
+ {item.format.toUpperCase()}
118
+ </react_native_1.Text>
119
+ </react_native_1.View>
120
+ </react_native_1.View>
121
+
122
+ <react_native_1.View style={galleryStyles.cardInfo}>
123
+ <react_native_1.Text style={galleryStyles.cardTitle} numberOfLines={1}>
124
+ {item.filename}
125
+ </react_native_1.Text>
126
+ <react_native_1.View style={galleryStyles.cardMetaRow}>
127
+ <react_native_1.Text style={galleryStyles.cardMeta}>
128
+ {(0, helpers_1.formatBytes)(item.sizeBytes)}
129
+ </react_native_1.Text>
130
+ <react_native_1.Text style={galleryStyles.cardMetaDot}>•</react_native_1.Text>
131
+ <react_native_1.Text style={galleryStyles.cardMeta}>
132
+ {new Date(item.timestamp).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}
133
+ </react_native_1.Text>
134
+ </react_native_1.View>
135
+ </react_native_1.View>
136
+ </TouchableScale_1.default>);
137
+ };
138
+ return (<react_native_1.View style={galleryStyles.container}>
139
+
140
+ <react_native_1.View style={galleryStyles.filterBar}>
141
+ <react_native_1.View style={galleryStyles.chipGroup}>
142
+ {['all', 'image', 'video', 'gif'].map(filterKey => {
143
+ const isActive = selectedFilter === filterKey;
144
+ const label = filterKey === 'all'
145
+ ? t('mediaGallery.all', { count: mediaList.length })
146
+ : filterKey === 'image'
147
+ ? t('mediaGallery.photos')
148
+ : filterKey === 'video'
149
+ ? t('mediaGallery.videos')
150
+ : t('mediaGallery.gifs');
151
+ return (<react_native_1.TouchableOpacity key={filterKey} onPress={() => setSelectedFilter(filterKey)} style={[
152
+ galleryStyles.chip,
153
+ isActive && galleryStyles.chipActive,
154
+ ]}>
155
+ <react_native_1.Text style={[
156
+ galleryStyles.chipText,
157
+ isActive && galleryStyles.chipTextActive,
158
+ ]}>
159
+ {label}
160
+ </react_native_1.Text>
161
+ </react_native_1.TouchableOpacity>);
162
+ })}
163
+ </react_native_1.View>
164
+
165
+ {mediaList.length > 0 && (<react_native_1.TouchableOpacity onPress={handleClearAll} style={galleryStyles.clearBtn} hitSlop={{ top: 8, bottom: 8, left: 8, right: 8 }}>
166
+ <NetworkIcons_1.TrashIcon size={13} color={AppColors_1.AppColors.red500}/>
167
+ <react_native_1.Text style={galleryStyles.clearBtnText}>{t('mediaGallery.purge', { size: (0, helpers_1.formatBytes)(totalStorageBytes) })}</react_native_1.Text>
168
+ </react_native_1.TouchableOpacity>)}
169
+ </react_native_1.View>
170
+
171
+
172
+ <react_native_1.FlatList data={filteredMedia} keyExtractor={item => item.id} renderItem={renderItem} numColumns={2} columnWrapperStyle={galleryStyles.columnWrapper} contentContainerStyle={galleryStyles.listContent} refreshControl={<react_native_1.RefreshControl refreshing={refreshing} onRefresh={onRefresh} tintColor={AppColors_1.AppColors.sky400}/>} ListEmptyComponent={<EmptyState_1.default customTitle={t('mediaGallery.noMediaTitle')} customSub={t('mediaGallery.noMediaDesc')}/>}/>
173
+
174
+
175
+
176
+ <MediaPreviewModal_1.MediaPreviewModal item={selectedItem} visible={!!selectedItem} onClose={() => setSelectedItem(null)} onDelete={handleDeleteItem} onConvertToGif={handleConvertToGif}/>
177
+ </react_native_1.View>);
178
+ };
179
+ exports.MediaGalleryTab = MediaGalleryTab;
180
+ const { width: WINDOW_WIDTH } = react_native_1.Dimensions.get('window');
181
+ const CARD_WIDTH = (WINDOW_WIDTH - 36) / 2;
182
+ const galleryStyles = react_native_1.StyleSheet.create({
183
+ container: {
184
+ flex: 1,
185
+ backgroundColor: AppColors_1.AppColors.slate850,
186
+ },
187
+ filterBar: {
188
+ flexDirection: 'row',
189
+ alignItems: 'center',
190
+ justifyContent: 'space-between',
191
+ paddingHorizontal: 12,
192
+ paddingVertical: 10,
193
+ borderBottomWidth: 1,
194
+ borderBottomColor: AppColors_1.AppColors.borderGlassLight,
195
+ flexWrap: 'wrap',
196
+ gap: 8,
197
+ },
198
+ chipGroup: {
199
+ flexDirection: 'row',
200
+ alignItems: 'center',
201
+ gap: 6,
202
+ },
203
+ chip: {
204
+ paddingHorizontal: 9,
205
+ paddingVertical: 4.5,
206
+ borderRadius: 6,
207
+ backgroundColor: AppColors_1.AppColors.whiteAlpha06,
208
+ borderWidth: 1,
209
+ borderColor: AppColors_1.AppColors.whiteAlpha10,
210
+ },
211
+ chipActive: {
212
+ backgroundColor: `${AppColors_1.AppColors.sky400}2E`,
213
+ borderColor: AppColors_1.AppColors.sky400,
214
+ },
215
+ chipText: {
216
+ fontFamily: AppFonts_1.AppFonts.interMedium,
217
+ fontSize: 11,
218
+ color: AppColors_1.AppColors.slate400,
219
+ },
220
+ chipTextActive: {
221
+ fontFamily: AppFonts_1.AppFonts.interBold,
222
+ color: AppColors_1.AppColors.sky400,
223
+ },
224
+ clearBtn: {
225
+ flexDirection: 'row',
226
+ alignItems: 'center',
227
+ gap: 4,
228
+ paddingHorizontal: 8,
229
+ paddingVertical: 4,
230
+ borderRadius: 6,
231
+ backgroundColor: `${AppColors_1.AppColors.red500}1F`,
232
+ borderWidth: 1,
233
+ borderColor: `${AppColors_1.AppColors.red500}4D`,
234
+ },
235
+ clearBtnText: {
236
+ fontFamily: AppFonts_1.AppFonts.interMedium,
237
+ fontSize: 10.5,
238
+ color: AppColors_1.AppColors.red500,
239
+ },
240
+ listContent: {
241
+ padding: 12,
242
+ gap: 12,
243
+ },
244
+ columnWrapper: {
245
+ gap: 12,
246
+ },
247
+ card: {
248
+ width: CARD_WIDTH,
249
+ backgroundColor: AppColors_1.AppColors.slate800,
250
+ borderRadius: 8,
251
+ borderWidth: 1,
252
+ borderColor: AppColors_1.AppColors.borderGlassLight,
253
+ overflow: 'hidden',
254
+ },
255
+ thumbnailContainer: {
256
+ width: '100%',
257
+ height: 110,
258
+ backgroundColor: AppColors_1.AppColors.slate850,
259
+ position: 'relative',
260
+ },
261
+ thumbnail: {
262
+ width: '100%',
263
+ height: '100%',
264
+ },
265
+ typeBadge: {
266
+ position: 'absolute',
267
+ top: 6,
268
+ right: 6,
269
+ flexDirection: 'row',
270
+ alignItems: 'center',
271
+ gap: 3,
272
+ backgroundColor: AppColors_1.AppColors.badgeGlassDark,
273
+ paddingHorizontal: 5,
274
+ paddingVertical: 2,
275
+ borderRadius: 4,
276
+ borderWidth: 1,
277
+ borderColor: AppColors_1.AppColors.borderGlassMedium,
278
+ },
279
+ typeBadgeText: {
280
+ fontFamily: AppFonts_1.AppFonts.interBold,
281
+ fontSize: 9,
282
+ color: AppColors_1.AppColors.slate200,
283
+ },
284
+ cardInfo: {
285
+ padding: 8,
286
+ gap: 3,
287
+ },
288
+ cardTitle: {
289
+ fontFamily: AppFonts_1.AppFonts.interMedium,
290
+ fontSize: 11.5,
291
+ color: AppColors_1.AppColors.white,
292
+ },
293
+ cardMetaRow: {
294
+ flexDirection: 'row',
295
+ alignItems: 'center',
296
+ gap: 4,
297
+ },
298
+ cardMeta: {
299
+ fontFamily: AppFonts_1.AppFonts.interRegular,
300
+ fontSize: 10,
301
+ color: AppColors_1.AppColors.slate400,
302
+ },
303
+ cardMetaDot: {
304
+ fontSize: 10,
305
+ color: AppColors_1.AppColors.whiteAlpha30,
306
+ },
307
+ });
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { CapturedMediaItem } from '../../capture';
3
+ interface MediaPreviewModalProps {
4
+ item: CapturedMediaItem | null;
5
+ visible: boolean;
6
+ onClose: () => void;
7
+ onDelete: (item: CapturedMediaItem) => void;
8
+ onConvertToGif?: (item: CapturedMediaItem) => void;
9
+ }
10
+ export declare const MediaPreviewModal: React.FC<MediaPreviewModalProps>;
11
+ export {};