react-native-inapp-inspector 2.3.19 → 2.3.21

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 (353) hide show
  1. package/README.md +14 -14
  2. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +67 -0
  3. package/dist/commonjs/analytics.js +1 -24
  4. package/dist/commonjs/bundle.js +1 -16
  5. package/dist/commonjs/capture.js +1 -35
  6. package/dist/commonjs/components/AnalyticsDetail.js +92 -623
  7. package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
  8. package/dist/commonjs/components/AnalyticsGraph.js +70 -370
  9. package/dist/commonjs/components/AnimatedEntrance.js +1 -11
  10. package/dist/commonjs/components/AppHeaderLogo.js +7 -134
  11. package/dist/commonjs/components/BrandCircleIcon.js +73 -118
  12. package/dist/commonjs/components/BrandSquareIcon.js +63 -108
  13. package/dist/commonjs/components/CodeSnippet.js +48 -623
  14. package/dist/commonjs/components/ConsoleLogCard.js +63 -537
  15. package/dist/commonjs/components/CopyButton.js +3 -89
  16. package/dist/commonjs/components/DiffViewer.js +19 -83
  17. package/dist/commonjs/components/DomainHeader.js +27 -127
  18. package/dist/commonjs/components/EmptyState.js +10 -87
  19. package/dist/commonjs/components/EndOfListFooter.js +7 -81
  20. package/dist/commonjs/components/ErrorBoundary.js +72 -566
  21. package/dist/commonjs/components/HeadersSection.js +31 -110
  22. package/dist/commonjs/components/HighlightText.js +17 -58
  23. package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
  24. package/dist/commonjs/components/Inspector/AboutModal.js +243 -0
  25. package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
  26. package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
  27. package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
  28. package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
  29. package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
  30. package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
  31. package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
  32. package/dist/commonjs/components/Inspector/DebuggingTab.js +74 -875
  33. package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
  34. package/dist/commonjs/components/Inspector/FabLauncher.js +42 -466
  35. package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
  36. package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
  37. package/dist/commonjs/components/Inspector/InspectorHeader.js +191 -1110
  38. package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
  39. package/dist/commonjs/components/Inspector/MainScreen.js +52 -335
  40. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +97 -644
  41. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +90 -605
  42. package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
  43. package/dist/commonjs/components/Inspector/NetworkDetail.js +89 -411
  44. package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
  45. package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
  46. package/dist/commonjs/components/Inspector/NpmStarPrompt.js +18 -434
  47. package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
  48. package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
  49. package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
  50. package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
  51. package/dist/commonjs/components/Inspector/SettingsPanel.js +427 -3807
  52. package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
  53. package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
  54. package/dist/commonjs/components/Inspector/TabBar.js +36 -334
  55. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +37 -412
  56. package/dist/commonjs/components/JsonViewer.js +168 -381
  57. package/dist/commonjs/components/LogCard.js +57 -567
  58. package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
  59. package/dist/commonjs/components/MetaAccordion.js +69 -238
  60. package/dist/commonjs/components/MiniBarChart.js +3 -56
  61. package/dist/commonjs/components/MiniLineChart.js +3 -58
  62. package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
  63. package/dist/commonjs/components/NetworkIcons.js +521 -1022
  64. package/dist/commonjs/components/QRCodeView.js +5 -79
  65. package/dist/commonjs/components/SectionHeader.js +15 -37
  66. package/dist/commonjs/components/SegmentedTabs.js +7 -62
  67. package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
  68. package/dist/commonjs/components/Slider.js +15 -243
  69. package/dist/commonjs/components/SourcePageCard.js +30 -89
  70. package/dist/commonjs/components/Toast.js +5 -147
  71. package/dist/commonjs/components/TouchableScale.js +3 -24
  72. package/dist/commonjs/components/TreeNode.js +55 -130
  73. package/dist/commonjs/console.js +1 -16
  74. package/dist/commonjs/constants/index.js +1 -32
  75. package/dist/commonjs/constants/telemetryConfig.js +1 -6
  76. package/dist/commonjs/constants/version.d.ts +1 -1
  77. package/dist/commonjs/constants/version.js +1 -4
  78. package/dist/commonjs/crash.js +1 -23
  79. package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
  80. package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
  81. package/dist/commonjs/customHooks/consoleLogger.js +6 -445
  82. package/dist/commonjs/customHooks/crashHandler.js +7 -656
  83. package/dist/commonjs/customHooks/logFilters.js +1 -23
  84. package/dist/commonjs/customHooks/networkLogger.js +2 -536
  85. package/dist/commonjs/customHooks/performanceTracker.js +63 -750
  86. package/dist/commonjs/customHooks/reduxLogger.js +2 -313
  87. package/dist/commonjs/customHooks/storageInspector.js +1 -435
  88. package/dist/commonjs/customHooks/useAccordion.js +1 -18
  89. package/dist/commonjs/decorators/index.js +1 -100
  90. package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
  91. package/dist/commonjs/helpers/index.d.ts +1 -0
  92. package/dist/commonjs/helpers/index.js +8 -921
  93. package/dist/commonjs/helpers/memoryManager.js +1 -99
  94. package/dist/commonjs/helpers/qrGenerator.js +1 -367
  95. package/dist/commonjs/helpers/remoteConfig.js +1 -165
  96. package/dist/commonjs/helpers/searchQueryParser.js +1 -62
  97. package/dist/commonjs/helpers/settingsStore.js +1 -144
  98. package/dist/commonjs/helpers/telemetry.js +1 -501
  99. package/dist/commonjs/helpers/toast.js +1 -20
  100. package/dist/commonjs/i18n/index.js +1 -90
  101. package/dist/commonjs/i18n/locales/en.json +1 -1140
  102. package/dist/commonjs/index.js +5 -2168
  103. package/dist/commonjs/metro.js +6 -468
  104. package/dist/commonjs/native/NativeInspector.d.ts +1 -0
  105. package/dist/commonjs/native/NativeInspector.js +1 -415
  106. package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
  107. package/dist/commonjs/network.js +1 -13
  108. package/dist/commonjs/performance.js +1 -29
  109. package/dist/commonjs/redux.js +1 -20
  110. package/dist/commonjs/storage.js +1 -14
  111. package/dist/commonjs/styles/AppColors.js +1 -423
  112. package/dist/commonjs/styles/AppFonts.js +1 -17
  113. package/dist/commonjs/styles/common.js +1 -190
  114. package/dist/commonjs/styles/index.d.ts +6 -0
  115. package/dist/commonjs/styles/index.js +1 -1589
  116. package/dist/commonjs/types/enums.d.ts +0 -1
  117. package/dist/commonjs/types/enums.js +1 -152
  118. package/dist/commonjs/types/index.js +1 -18
  119. package/dist/commonjs/types/interfaces.d.ts +2 -2
  120. package/dist/commonjs/types/interfaces.js +1 -2
  121. package/dist/esm/analytics.js +1 -2
  122. package/dist/esm/bundle.js +1 -2
  123. package/dist/esm/capture.js +1 -32
  124. package/dist/esm/components/AnalyticsDetail.js +171 -664
  125. package/dist/esm/components/AnalyticsEventCard.js +77 -335
  126. package/dist/esm/components/AnalyticsGraph.js +95 -357
  127. package/dist/esm/components/AnimatedEntrance.js +1 -6
  128. package/dist/esm/components/AppHeaderLogo.js +7 -94
  129. package/dist/esm/components/BrandCircleIcon.js +114 -119
  130. package/dist/esm/components/BrandSquareIcon.js +73 -78
  131. package/dist/esm/components/CodeSnippet.js +58 -595
  132. package/dist/esm/components/ConsoleLogCard.js +91 -526
  133. package/dist/esm/components/CopyButton.js +3 -51
  134. package/dist/esm/components/DiffViewer.js +22 -48
  135. package/dist/esm/components/DomainHeader.js +43 -138
  136. package/dist/esm/components/EmptyState.js +17 -56
  137. package/dist/esm/components/EndOfListFooter.js +15 -83
  138. package/dist/esm/components/ErrorBoundary.js +125 -582
  139. package/dist/esm/components/HeadersSection.js +52 -93
  140. package/dist/esm/components/HighlightText.js +17 -53
  141. package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
  142. package/dist/esm/components/Inspector/AboutModal.js +243 -0
  143. package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
  144. package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
  145. package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
  146. package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
  147. package/dist/esm/components/Inspector/CrashDetail.js +236 -747
  148. package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
  149. package/dist/esm/components/Inspector/CrashTab.js +177 -711
  150. package/dist/esm/components/Inspector/DebuggingTab.js +164 -925
  151. package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
  152. package/dist/esm/components/Inspector/FabLauncher.js +68 -454
  153. package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
  154. package/dist/esm/components/Inspector/InspectorContext.js +1 -12
  155. package/dist/esm/components/Inspector/InspectorHeader.js +282 -1163
  156. package/dist/esm/components/Inspector/LogDetail.js +235 -1023
  157. package/dist/esm/components/Inspector/MainScreen.js +78 -323
  158. package/dist/esm/components/Inspector/MediaGalleryTab.js +143 -650
  159. package/dist/esm/components/Inspector/MediaPreviewModal.js +138 -613
  160. package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
  161. package/dist/esm/components/Inspector/NetworkDetail.js +138 -455
  162. package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
  163. package/dist/esm/components/Inspector/NetworkTab.js +125 -517
  164. package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
  165. package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
  166. package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
  167. package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
  168. package/dist/esm/components/Inspector/ReduxTab.js +144 -722
  169. package/dist/esm/components/Inspector/SettingsPanel.js +643 -3985
  170. package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
  171. package/dist/esm/components/Inspector/StorageTab.js +172 -866
  172. package/dist/esm/components/Inspector/TabBar.js +45 -305
  173. package/dist/esm/components/Inspector/UpdateAvailableModal.js +80 -418
  174. package/dist/esm/components/JsonViewer.js +179 -354
  175. package/dist/esm/components/LogCard.js +93 -565
  176. package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
  177. package/dist/esm/components/MetaAccordion.js +136 -267
  178. package/dist/esm/components/MiniBarChart.js +3 -18
  179. package/dist/esm/components/MiniLineChart.js +3 -20
  180. package/dist/esm/components/NetworkIcons.d.ts +13 -0
  181. package/dist/esm/components/NetworkIcons.js +523 -838
  182. package/dist/esm/components/QRCodeView.js +8 -45
  183. package/dist/esm/components/SectionHeader.js +22 -39
  184. package/dist/esm/components/SegmentedTabs.js +8 -58
  185. package/dist/esm/components/SkeletonPlaceholder.js +30 -163
  186. package/dist/esm/components/Slider.js +24 -213
  187. package/dist/esm/components/SourcePageCard.js +65 -86
  188. package/dist/esm/components/Toast.js +10 -117
  189. package/dist/esm/components/TouchableScale.js +3 -19
  190. package/dist/esm/components/TreeNode.js +58 -95
  191. package/dist/esm/console.js +1 -2
  192. package/dist/esm/constants/index.js +1 -28
  193. package/dist/esm/constants/telemetryConfig.js +1 -3
  194. package/dist/esm/constants/version.d.ts +1 -1
  195. package/dist/esm/constants/version.js +1 -1
  196. package/dist/esm/crash.js +1 -2
  197. package/dist/esm/customHooks/analyticsLogger.js +1 -230
  198. package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
  199. package/dist/esm/customHooks/consoleLogger.js +6 -432
  200. package/dist/esm/customHooks/crashHandler.js +7 -630
  201. package/dist/esm/customHooks/logFilters.js +1 -20
  202. package/dist/esm/customHooks/networkLogger.js +2 -519
  203. package/dist/esm/customHooks/performanceTracker.js +63 -723
  204. package/dist/esm/customHooks/reduxLogger.js +2 -293
  205. package/dist/esm/customHooks/storageInspector.js +1 -418
  206. package/dist/esm/customHooks/useAccordion.js +1 -16
  207. package/dist/esm/decorators/index.js +1 -95
  208. package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
  209. package/dist/esm/helpers/index.d.ts +1 -0
  210. package/dist/esm/helpers/index.js +8 -861
  211. package/dist/esm/helpers/memoryManager.js +1 -91
  212. package/dist/esm/helpers/qrGenerator.js +1 -364
  213. package/dist/esm/helpers/remoteConfig.js +1 -160
  214. package/dist/esm/helpers/searchQueryParser.js +1 -59
  215. package/dist/esm/helpers/settingsStore.js +1 -134
  216. package/dist/esm/helpers/telemetry.js +1 -489
  217. package/dist/esm/helpers/toast.js +1 -15
  218. package/dist/esm/i18n/index.js +1 -78
  219. package/dist/esm/i18n/locales/en.json +1 -1140
  220. package/dist/esm/index.js +7 -1982
  221. package/dist/esm/metro.js +6 -459
  222. package/dist/esm/native/NativeInspector.d.ts +1 -0
  223. package/dist/esm/native/NativeInspector.js +1 -382
  224. package/dist/esm/native/NativeNetworkInspector.js +1 -2
  225. package/dist/esm/network.js +1 -1
  226. package/dist/esm/performance.js +1 -2
  227. package/dist/esm/redux.js +1 -1
  228. package/dist/esm/storage.js +1 -1
  229. package/dist/esm/styles/AppColors.js +1 -417
  230. package/dist/esm/styles/AppFonts.js +1 -13
  231. package/dist/esm/styles/common.js +1 -186
  232. package/dist/esm/styles/index.d.ts +6 -0
  233. package/dist/esm/styles/index.js +1 -1551
  234. package/dist/esm/types/enums.d.ts +0 -1
  235. package/dist/esm/types/enums.js +1 -149
  236. package/dist/esm/types/index.js +1 -2
  237. package/dist/esm/types/interfaces.d.ts +2 -2
  238. package/dist/esm/types/interfaces.js +1 -1
  239. package/ios/NetworkInspectorModule.mm +60 -12
  240. package/package.json +5 -3
  241. package/src/native/NativeInspector.ts +18 -0
  242. package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +0 -7
  243. package/dist/commonjs/components/Inspector/FeedbackModal.js +0 -552
  244. package/dist/esm/components/Inspector/FeedbackModal.d.ts +0 -7
  245. package/dist/esm/components/Inspector/FeedbackModal.js +0 -515
  246. package/src/analytics.ts +0 -35
  247. package/src/bundle.ts +0 -25
  248. package/src/capture.ts +0 -109
  249. package/src/components/AnalyticsDetail.tsx +0 -870
  250. package/src/components/AnalyticsEventCard.tsx +0 -444
  251. package/src/components/AnalyticsGraph.tsx +0 -583
  252. package/src/components/AnimatedEntrance.tsx +0 -20
  253. package/src/components/AppHeaderLogo.tsx +0 -143
  254. package/src/components/BrandCircleIcon.tsx +0 -144
  255. package/src/components/BrandSquareIcon.tsx +0 -184
  256. package/src/components/CodeSnippet.tsx +0 -725
  257. package/src/components/ConsoleLogCard.tsx +0 -679
  258. package/src/components/CopyButton.tsx +0 -87
  259. package/src/components/DiffViewer.tsx +0 -82
  260. package/src/components/DomainHeader.tsx +0 -224
  261. package/src/components/EmptyState.tsx +0 -97
  262. package/src/components/EndOfListFooter.tsx +0 -100
  263. package/src/components/ErrorBoundary.tsx +0 -688
  264. package/src/components/HeadersSection.tsx +0 -172
  265. package/src/components/HighlightText.tsx +0 -100
  266. package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
  267. package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
  268. package/src/components/Inspector/BundleTab.tsx +0 -4768
  269. package/src/components/Inspector/ConsoleTab.tsx +0 -726
  270. package/src/components/Inspector/CrashDetail.tsx +0 -997
  271. package/src/components/Inspector/CrashFilterModal.tsx +0 -721
  272. package/src/components/Inspector/CrashTab.tsx +0 -933
  273. package/src/components/Inspector/DebuggingTab.tsx +0 -1103
  274. package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
  275. package/src/components/Inspector/FabLauncher.tsx +0 -590
  276. package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
  277. package/src/components/Inspector/FeedbackModal.tsx +0 -626
  278. package/src/components/Inspector/InspectorContext.tsx +0 -28
  279. package/src/components/Inspector/InspectorHeader.tsx +0 -1583
  280. package/src/components/Inspector/LogDetail.tsx +0 -1431
  281. package/src/components/Inspector/MainScreen.tsx +0 -460
  282. package/src/components/Inspector/MediaGalleryTab.tsx +0 -829
  283. package/src/components/Inspector/MediaPreviewModal.tsx +0 -783
  284. package/src/components/Inspector/NavigationTracker.tsx +0 -13
  285. package/src/components/Inspector/NetworkDetail.tsx +0 -778
  286. package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
  287. package/src/components/Inspector/NetworkTab.tsx +0 -820
  288. package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
  289. package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
  290. package/src/components/Inspector/PerformanceTab.tsx +0 -1967
  291. package/src/components/Inspector/ReduxDetail.tsx +0 -1651
  292. package/src/components/Inspector/ReduxTab.tsx +0 -987
  293. package/src/components/Inspector/SettingsPanel.tsx +0 -5136
  294. package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
  295. package/src/components/Inspector/StorageTab.tsx +0 -1159
  296. package/src/components/Inspector/TabBar.tsx +0 -431
  297. package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
  298. package/src/components/JsonViewer.tsx +0 -549
  299. package/src/components/LogCard.tsx +0 -694
  300. package/src/components/LogSyntaxHighlighter.tsx +0 -178
  301. package/src/components/MetaAccordion.tsx +0 -355
  302. package/src/components/MiniBarChart.tsx +0 -42
  303. package/src/components/MiniLineChart.tsx +0 -33
  304. package/src/components/NetworkIcons.tsx +0 -2655
  305. package/src/components/QRCodeView.tsx +0 -75
  306. package/src/components/SectionHeader.tsx +0 -101
  307. package/src/components/SegmentedTabs.tsx +0 -84
  308. package/src/components/SkeletonPlaceholder.tsx +0 -206
  309. package/src/components/Slider.tsx +0 -300
  310. package/src/components/SourcePageCard.tsx +0 -150
  311. package/src/components/Toast.tsx +0 -131
  312. package/src/components/TouchableScale.tsx +0 -61
  313. package/src/components/TreeNode.tsx +0 -171
  314. package/src/console.ts +0 -24
  315. package/src/constants/index.ts +0 -41
  316. package/src/constants/telemetryConfig.ts +0 -4
  317. package/src/constants/version.ts +0 -3
  318. package/src/crash.ts +0 -32
  319. package/src/customHooks/analyticsLogger.ts +0 -336
  320. package/src/customHooks/bundleAnalyzer.ts +0 -1256
  321. package/src/customHooks/consoleLogger.ts +0 -530
  322. package/src/customHooks/crashHandler.ts +0 -944
  323. package/src/customHooks/logFilters.ts +0 -32
  324. package/src/customHooks/networkLogger.ts +0 -624
  325. package/src/customHooks/performanceTracker.ts +0 -1014
  326. package/src/customHooks/reduxLogger.ts +0 -406
  327. package/src/customHooks/storageInspector.ts +0 -513
  328. package/src/customHooks/useAccordion.tsx +0 -27
  329. package/src/decorators/index.ts +0 -184
  330. package/src/helpers/gaAnalyticsRegistry.ts +0 -204
  331. package/src/helpers/index.ts +0 -1092
  332. package/src/helpers/memoryManager.ts +0 -138
  333. package/src/helpers/qrGenerator.ts +0 -430
  334. package/src/helpers/remoteConfig.ts +0 -212
  335. package/src/helpers/searchQueryParser.ts +0 -84
  336. package/src/helpers/settingsStore.ts +0 -171
  337. package/src/helpers/telemetry.ts +0 -568
  338. package/src/helpers/toast.ts +0 -17
  339. package/src/i18n/index.ts +0 -104
  340. package/src/i18n/locales/en.json +0 -1141
  341. package/src/index.tsx +0 -2650
  342. package/src/metro.ts +0 -598
  343. package/src/network.ts +0 -22
  344. package/src/performance.ts +0 -38
  345. package/src/redux.ts +0 -23
  346. package/src/storage.ts +0 -18
  347. package/src/styles/AppColors.ts +0 -455
  348. package/src/styles/AppFonts.ts +0 -26
  349. package/src/styles/common.ts +0 -209
  350. package/src/styles/index.ts +0 -1606
  351. package/src/types/enums.ts +0 -210
  352. package/src/types/index.ts +0 -34
  353. package/src/types/interfaces.ts +0 -535
@@ -1,584 +1,112 @@
1
- import React, { useEffect, useRef, useMemo } from 'react';
2
- import { Alert, Animated, Linking, View, Pressable, Text, StyleSheet, } from 'react-native';
3
- import Svg, { Path } from 'react-native-svg';
4
- import { AppColors } from '../styles/AppColors';
5
- import { METHOD_COLORS } from '../constants';
6
- import { getStatusColor, getDurationColor, formatDateTime, getSize, getPath, getBaseUrl, } from '../helpers';
7
- import { CalendarIcon, ClockIcon, SizeIcon, CircleCheckIcon, CircleAlertIcon, CircleXIcon, RepeatIcon, PinIcon, } from './NetworkIcons';
8
- import { AppFonts } from '../styles/AppFonts';
9
- import HighlightText from './HighlightText';
10
- import TouchableScale from './TouchableScale';
11
- import { useTranslation } from '../i18n';
12
- const LogCard = React.memo(function LogCard({ item, onPress, timelineMinStart, timelineTotalRange, isNew, isSelected, onToggleSelect, searchStr, }) {
13
- const { t } = useTranslation();
14
- const methodColor = METHOD_COLORS[item.method] ?? METHOD_COLORS.ALL;
15
- const urlParsed = useMemo(() => {
16
- try {
17
- const u = new URL(item.url);
18
- const host = u.host;
19
- const path = u.pathname + (u.search ? u.search : '');
20
- const isHttps = u.protocol === 'https:';
21
- return { host, path: path || '/', isHttps };
22
- }
23
- catch {
24
- const isHttps = item.url.toLowerCase().startsWith('https:');
25
- const path = getPath(item.url);
26
- const host = getBaseUrl(item.url).replace(/^https?:\/\//, '');
27
- return { host, path: path || item.url, isHttps };
28
- }
29
- }, [item.url]);
30
- const handleOpenUrl = (e) => {
31
- e?.stopPropagation?.();
32
- Alert.alert(t('common.openInBrowser') || 'Open in Browser', `${t('common.openInBrowserPrompt') || 'Are you sure you want to open this URL in your external browser?'}\n\n${item.url}`, [
33
- { text: t('common.cancel') || 'Cancel', style: 'cancel' },
34
- {
35
- text: t('common.open') || 'Open',
36
- onPress: () => {
37
- Linking.canOpenURL(item.url)
38
- .then(supported => {
39
- if (supported) {
40
- Linking.openURL(item.url);
41
- }
42
- else {
43
- Linking.openURL(item.url).catch(() => { });
44
- }
45
- })
46
- .catch(() => { });
47
- },
48
- },
49
- ]);
50
- };
51
- const isFailed = item.status === 0 || (item.status != null && item.status >= 400);
52
- const isLoading = item.status == null;
53
- const statusColor = getStatusColor(item.status);
54
- const durationColor = getDurationColor(item.duration);
55
- const cardStatusColor = isLoading
56
- ? AppColors.darkOrange
57
- : isFailed
58
- ? AppColors.errorColor
59
- : AppColors.greenColor;
60
- const shimmerOpacity = useRef(new Animated.Value(isNew ? 0.35 : 0)).current;
61
- useEffect(() => {
62
- if (isNew) {
63
- Animated.timing(shimmerOpacity, {
64
- toValue: 0,
65
- duration: 1200,
66
- useNativeDriver: false,
67
- }).start();
68
- }
69
- }, [isNew]);
70
- const getStatusText = () => {
71
- if (isLoading)
72
- return '...';
73
- if (item.status === 0 || item.status == null) {
74
- return t('network.statusFailed') || 'FAILED';
75
- }
76
- const num = typeof item.status === 'number' ? item.status : parseInt(String(item.status || 0), 10);
77
- if (num === 200)
78
- return '200 OK';
79
- if (num === 201)
80
- return '201 Created';
81
- if (num === 204)
82
- return '204 No Content';
83
- if (num === 304)
84
- return '304 Not Modified';
85
- if (num === 400)
86
- return '400 Bad Req';
87
- if (num === 401)
88
- return '401 Unauth';
89
- if (num === 403)
90
- return '403 Forbidden';
91
- if (num === 404)
92
- return '404 Not Found';
93
- if (num === 500)
94
- return '500 Error';
95
- return String(item.status);
96
- };
97
- const renderStatusIcon = () => {
98
- if (isLoading) {
99
- return <ClockIcon color={AppColors.darkOrange} size={10}/>;
100
- }
101
- const num = typeof item.status === 'number' ? item.status : parseInt(String(item.status || 0), 10);
102
- if (num >= 200 && num < 300) {
103
- return <CircleCheckIcon color={AppColors.greenColor} size={10}/>;
104
- }
105
- if (num >= 300 && num < 400) {
106
- return <RepeatIcon color={AppColors.amber700} size={10}/>;
107
- }
108
- if (num >= 400 && num < 500) {
109
- return <CircleAlertIcon color={AppColors.darkOrange} size={10}/>;
110
- }
111
- return <CircleXIcon color={AppColors.errorColor} size={10}/>;
112
- };
113
- const triggeredAt = formatDateTime(item.startTime);
114
- const isJson = item.url.split('?')[0].toLowerCase().endsWith('.json');
115
- return (<View style={styles.container}>
116
- <TouchableScale onPress={onPress} style={[
117
- styles.card,
118
- {
119
- borderLeftWidth: 3.5,
120
- borderLeftColor: cardStatusColor,
121
- backgroundColor: isFailed ? '#FFF8F8' : AppColors.white,
122
- },
123
- ]}>
124
- <View style={styles.cardBody}>
1
+ import oe,{useEffect as te,useRef as le,useMemo as j}from"react";import{Alert as ae,Animated as W,Linking as D,View as C,Pressable as A,Text as T,StyleSheet as U}from"react-native";import Ce,{Path as Te}from"react-native-svg";import{AppColors as e}from"../styles/AppColors";import{METHOD_COLORS as E}from"../constants";import{getStatusColor as Be,getDurationColor as Se,formatDateTime as Re,getSize as ze,getPath as Ve,getBaseUrl as He}from"../helpers";import{CalendarIcon as Le,ClockIcon as N,SizeIcon as $e,CircleCheckIcon as Ie,CircleAlertIcon as We,CircleXIcon as De,RepeatIcon as Fe,PinIcon as Oe}from"./NetworkIcons";import{AppFonts as B}from"../styles/AppFonts";import Pe from"./HighlightText";import Me from"./TouchableScale";import{useTranslation as je}from"../i18n";const Ae=oe.memo(function({item:r,onPress:_,timelineMinStart:Ee,timelineTotalRange:qe,isNew:$,isSelected:F,onToggleSelect:G,searchStr:J}){const{t:H}=je(),O=E[r.method]??E.ALL,S=j(()=>{try{const t=new URL(r.url),V=t.host,M=t.pathname+(t.search?t.search:""),re=t.protocol==="https:";return{host:V,path:M||"/",isHttps:re}}catch{const t=r.url.toLowerCase().startsWith("https:"),V=Ve(r.url);return{host:He(r.url).replace(/^https?:\/\//,""),path:V||r.url,isHttps:t}}},[r.url]),P=j(()=>{if(!r.caller||r.caller==="Unknown")return null;const t=r.caller.split(/[\/\\]/);return(t[t.length-1]||r.caller).replace(/\?.*$/,"").replace(/^[a-zA-Z0-9_$]+@/,"")},[r.caller]),K=t=>{t?.stopPropagation?.(),ae.alert(H("common.openInBrowser")||"Open in Browser",`${H("common.openInBrowserPrompt")||"Are you sure you want to open this URL in your external browser?"}
2
+
3
+ ${r.url}`,[{text:H("common.cancel")||"Cancel",style:"cancel"},{text:H("common.open")||"Open",onPress:()=>{D.canOpenURL(r.url).then(V=>{V?D.openURL(r.url):D.openURL(r.url).catch(()=>{})}).catch(()=>{})}}])},R=r.status===0||r.status!=null&&r.status>=400,z=r.status==null,I=Be(r.status),L=Se(r.duration),Q=z?e.darkOrange:R?e.errorColor:e.greenColor,v=le(new W.Value($?.35:0)).current;te(()=>{$&&W.timing(v,{toValue:0,duration:1200,useNativeDriver:!1}).start()},[$]);const X=()=>{if(z)return"...";if(r.status===0||r.status==null)return H("network.statusFailed")||"FAILED";const t=typeof r.status=="number"?r.status:parseInt(String(r.status||0),10);return t===200?"200 OK":t===201?"201 Created":t===204?"204 No Content":t===304?"304 Not Modified":t===400?"400 Bad Req":t===401?"401 Unauth":t===403?"403 Forbidden":t===404?"404 Not Found":t===500?"500 Error":String(r.status)},Z=()=>{if(z)return<N color={e.darkOrange}size={10}/>;const t=typeof r.status=="number"?r.status:parseInt(String(r.status||0),10);return t>=200&&t<300?<Ie color={e.greenColor}size={10}/>:t>=300&&t<400?<Fe color={e.amber700}size={10}/>:t>=400&&t<500?<We color={e.darkOrange}size={10}/>:<De color={e.errorColor}size={10}/>},Y=Re(r.startTime),ee=r.url.split("?")[0].toLowerCase().endsWith(".json");return<C style={o.container}>
4
+ <Me onPress={_}style={[o.card,{borderLeftWidth:3.5,borderLeftColor:Q,backgroundColor:R?e.errorCardBg:e.white}]}>
5
+ <C style={o.cardBody}>
125
6
 
126
- <View style={styles.cardHeaderRow}>
127
- <View style={styles.cardHeaderLeft}>
128
- <Pressable onPress={() => onToggleSelect(item.id)} hitSlop={12} style={[
129
- styles.smallCheckbox,
130
- isSelected && styles.smallCheckboxChecked,
131
- ]}>
132
- {isSelected && (<Svg width={9} height={9} viewBox="0 0 24 24" fill="none">
133
- <Path d="M20 6L9 17l-5-5" stroke={AppColors.white} strokeWidth="4" strokeLinecap="round" strokeLinejoin="round"/>
134
- </Svg>)}
135
- </Pressable>
7
+ <C style={o.cardHeaderRow}>
8
+ <C style={o.cardHeaderLeft}>
9
+ <A onPress={()=>G(r.id)}hitSlop={12}style={[o.smallCheckbox,F&&o.smallCheckboxChecked]}>
10
+ {F&&<Ce width={9}height={9}viewBox="0 0 24 24"fill="none">
11
+ <Te d="M20 6L9 17l-5-5"stroke={e.white}strokeWidth="4"strokeLinecap="round"strokeLinejoin="round"/>
12
+ </Ce>}
13
+ </A>
136
14
 
137
- <Text style={styles.serialNumber}>#{item.id + 1}</Text>
15
+ <T style={o.serialNumber}>#{r.id+1}</T>
138
16
 
139
- <View style={[styles.methodBadge, { backgroundColor: methodColor }]}>
140
- <Text style={styles.methodBadgeText}>
141
- {item.method}
142
- </Text>
143
- </View>
17
+ <C style={[o.methodBadge,{backgroundColor:O}]}>
18
+ <T style={o.methodBadgeText}>
19
+ {r.method}
20
+ </T>
21
+ </C>
144
22
 
145
- {item.client && (<View style={[
146
- styles.chip,
147
- {
148
- backgroundColor: item.client === 'axios'
149
- ? `${AppColors.purple}14`
150
- : item.client === 'apollo' || item.client === 'graphql'
151
- ? `${AppColors.pink500}14`
152
- : item.client === 'xhr'
153
- ? `${AppColors.amber500}14`
154
- : `${AppColors.sky500}14`,
155
- borderColor: item.client === 'axios'
156
- ? `${AppColors.purple}30`
157
- : item.client === 'apollo' || item.client === 'graphql'
158
- ? `${AppColors.pink500}30`
159
- : item.client === 'xhr'
160
- ? `${AppColors.amber500}30`
161
- : `${AppColors.sky500}30`,
162
- },
163
- ]}>
164
- <Text style={[
165
- styles.chipText,
166
- {
167
- color: item.client === 'axios'
168
- ? AppColors.purple
169
- : item.client === 'apollo' || item.client === 'graphql'
170
- ? AppColors.pink500
171
- : item.client === 'xhr'
172
- ? AppColors.amber700
173
- : AppColors.sky600,
174
- },
175
- ]}>
176
- {item.client.toUpperCase()}
177
- </Text>
178
- </View>)}
23
+ {r.client&&<C style={[o.chip,{backgroundColor:r.client==="axios"?`${e.purple}14`:r.client==="apollo"||r.client==="graphql"?`${e.pink500}14`:r.client==="xhr"?`${e.amber500}14`:`${e.sky500}14`,borderColor:r.client==="axios"?`${e.purple}30`:r.client==="apollo"||r.client==="graphql"?`${e.pink500}30`:r.client==="xhr"?`${e.amber500}30`:`${e.sky500}30`}]}>
24
+ <T style={[o.chipText,{color:r.client==="axios"?e.purple:r.client==="apollo"||r.client==="graphql"?e.pink500:r.client==="xhr"?e.amber700:e.sky600}]}>
25
+ {r.client.toUpperCase()}
26
+ </T>
27
+ </C>}
179
28
 
180
29
 
181
- {(item.url.toLowerCase().includes('graphql') ||
182
- item.client === 'apollo' ||
183
- item.client === 'graphql') && (<View style={[
184
- styles.chip,
185
- {
186
- backgroundColor: AppColors.roseBg,
187
- borderColor: AppColors.roseBorder,
188
- },
189
- ]}>
190
- <Text style={[
191
- styles.chipText,
192
- { color: AppColors.pink600 },
193
- ]}>
30
+ {(r.url.toLowerCase().includes("graphql")||r.client==="apollo"||r.client==="graphql")&&<C style={[o.chip,{backgroundColor:e.roseBg,borderColor:e.roseBorder}]}>
31
+ <T style={[o.chipText,{color:e.pink600}]}>
194
32
  GQL
195
- </Text>
196
- </View>)}
197
- </View>
33
+ </T>
34
+ </C>}
35
+ </C>
198
36
 
199
- <View style={[
200
- styles.statusPill,
201
- {
202
- backgroundColor: isFailed
203
- ? `${AppColors.errorColor}14`
204
- : isLoading
205
- ? `${AppColors.darkOrange}14`
206
- : `${statusColor}14`,
207
- borderColor: isFailed
208
- ? `${AppColors.errorColor}33`
209
- : isLoading
210
- ? `${AppColors.darkOrange}33`
211
- : `${statusColor}33`,
212
- },
213
- ]}>
214
- {renderStatusIcon()}
215
- <Text style={[
216
- styles.statusPillText,
217
- {
218
- color: isFailed
219
- ? AppColors.errorColor
220
- : isLoading
221
- ? AppColors.darkOrange
222
- : statusColor,
223
- },
224
- ]}>
225
- {getStatusText()}
226
- </Text>
227
- </View>
228
- </View>
37
+ <C style={[o.statusPill,{backgroundColor:R?`${e.errorColor}14`:z?`${e.darkOrange}14`:`${I}14`,borderColor:R?`${e.errorColor}33`:z?`${e.darkOrange}33`:`${I}33`}]}>
38
+ {Z()}
39
+ <T style={[o.statusPillText,{color:R?e.errorColor:z?e.darkOrange:I}]}>
40
+ {X()}
41
+ </T>
42
+ </C>
43
+ </C>
229
44
 
230
45
 
231
- <Pressable onPress={handleOpenUrl} hitSlop={6} style={styles.urlBox}>
232
- <View style={styles.urlMainRow}>
233
- <HighlightText text={urlParsed.path} search={searchStr} style={styles.pathText} highlightStyle={styles.highlight} numberOfLines={2} ellipsizeMode="middle"/>
234
- <View style={styles.urlBadgeRow}>
235
- {isJson && (<View style={styles.jsonBadge}>
236
- <Text style={styles.jsonBadgeText}>.json</Text>
237
- </View>)}
238
- {item.duplicateCount != null && item.duplicateCount > 1 && (<View style={styles.dupBadge}>
239
- <Text style={styles.dupBadgeText}>×{item.duplicateCount}</Text>
240
- </View>)}
241
- </View>
242
- </View>
46
+ <A onPress={K}hitSlop={6}style={o.urlBox}>
47
+ <C style={o.urlMainRow}>
48
+ <Pe text={S.path}search={J}style={o.pathText}highlightStyle={o.highlight}numberOfLines={2}ellipsizeMode="middle"/>
49
+ <C style={o.urlBadgeRow}>
50
+ {ee&&<C style={o.jsonBadge}>
51
+ <T style={o.jsonBadgeText}>.json</T>
52
+ </C>}
53
+ {r.duplicateCount!=null&&r.duplicateCount>1&&<C style={o.dupBadge}>
54
+ <T style={o.dupBadgeText}>×{r.duplicateCount}</T>
55
+ </C>}
56
+ </C>
57
+ </C>
243
58
 
244
- {urlParsed.host ? (<View style={styles.hostRow}>
245
- <View style={[
246
- styles.protoBadge,
247
- {
248
- backgroundColor: urlParsed.isHttps
249
- ? `${AppColors.emerald600}12`
250
- : `${AppColors.amber600}12`,
251
- borderColor: urlParsed.isHttps
252
- ? `${AppColors.emerald600}2B`
253
- : `${AppColors.amber600}2B`,
254
- },
255
- ]}>
256
- <Text style={[
257
- styles.protoBadgeText,
258
- {
259
- color: urlParsed.isHttps
260
- ? AppColors.emerald600
261
- : AppColors.amber700,
262
- },
263
- ]}>
264
- {urlParsed.isHttps ? 'HTTPS' : 'HTTP'}
265
- </Text>
266
- </View>
267
- <Text style={styles.hostText} numberOfLines={1} ellipsizeMode="tail">
268
- {urlParsed.host}
269
- </Text>
270
- </View>) : null}
271
- </Pressable>
59
+ {S.host?<C style={o.hostRow}>
60
+ <C style={[o.protoBadge,{backgroundColor:S.isHttps?`${e.emerald600}12`:`${e.amber600}12`,borderColor:S.isHttps?`${e.emerald600}2B`:`${e.amber600}2B`}]}>
61
+ <T style={[o.protoBadgeText,{color:S.isHttps?e.emerald600:e.amber700}]}>
62
+ {S.isHttps?"HTTPS":"HTTP"}
63
+ </T>
64
+ </C>
65
+ <T style={o.hostText}numberOfLines={1}ellipsizeMode="tail">
66
+ {S.host}
67
+ </T>
68
+ </C>:null}
69
+ </A>
272
70
 
273
71
 
274
- <View style={styles.cardFooterRow}>
275
- <View style={styles.footerLeft}>
276
- <View style={styles.cardDateRow}>
277
- <CalendarIcon color={AppColors.grayTextWeak} size={10}/>
278
- <Text style={styles.cardDateText}>{triggeredAt}</Text>
279
- </View>
72
+ <C style={o.cardFooterRow}>
73
+ <C style={o.footerLeft}>
74
+ <C style={o.cardDateRow}>
75
+ <Le color={e.grayTextWeak}size={10}/>
76
+ <T style={o.cardDateText}>{Y}</T>
77
+ </C>
280
78
 
281
- {item.caller && item.caller !== 'Unknown' && (<View style={styles.callerChip}>
282
- <PinIcon color={AppColors.sky600} size={8.5}/>
283
- <Text style={styles.callerChipText} numberOfLines={1} ellipsizeMode="middle">
284
- {item.caller}
285
- </Text>
286
- </View>)}
287
- </View>
79
+ {P&&<C style={o.callerChip}>
80
+ <Oe color={e.sky600}size={8.5}/>
81
+ <T style={o.callerChipText}numberOfLines={1}ellipsizeMode="middle">
82
+ {P}
83
+ </T>
84
+ </C>}
85
+ </C>
288
86
 
289
- <View style={styles.footerRight}>
290
- {item.response != null && (<View style={styles.metaStatChip}>
291
- <SizeIcon color={AppColors.purple} size={9}/>
292
- <Text style={styles.metaStatText}>
293
- {getSize(item.response)}
294
- </Text>
295
- </View>)}
87
+ <C style={o.footerRight}>
88
+ {r.response!=null&&<C style={o.metaStatChip}>
89
+ <$e color={e.purple}size={9}/>
90
+ <T style={o.metaStatText}>
91
+ {ze(r.response)}
92
+ </T>
93
+ </C>}
296
94
 
297
- {item.duration != null && !isFailed && (<View style={[
298
- styles.metaStatChip,
299
- {
300
- backgroundColor: `${durationColor}12`,
301
- borderColor: `${durationColor}2E`,
302
- },
303
- ]}>
304
- <ClockIcon color={durationColor} size={9}/>
305
- <Text style={[styles.metaStatText, { color: durationColor }]}>
306
- {item.duration}ms
307
- </Text>
308
- </View>)}
309
- </View>
310
- </View>
95
+ {r.duration!=null&&!R&&<C style={[o.metaStatChip,{backgroundColor:`${L}12`,borderColor:`${L}2E`}]}>
96
+ <N color={L}size={9}/>
97
+ <T style={[o.metaStatText,{color:L}]}>
98
+ {r.duration}ms
99
+ </T>
100
+ </C>}
101
+ </C>
102
+ </C>
311
103
 
312
104
 
313
- {typeof item.duration === 'number' && item.duration > 0 && !isFailed && (<View style={styles.waterfallContainer}>
314
- <View style={[
315
- styles.waterfallBar,
316
- {
317
- width: `${Math.min(100, Math.max(6, (item.duration / 1200) * 100))}%`,
318
- backgroundColor: durationColor,
319
- },
320
- ]}/>
321
- </View>)}
322
- </View>
105
+ {typeof r.duration=="number"&&r.duration>0&&!R&&<C style={o.waterfallContainer}>
106
+ <C style={[o.waterfallBar,{width:`${Math.min(100,Math.max(6,r.duration/1200*100))}%`,backgroundColor:L}]}/>
107
+ </C>}
108
+ </C>
323
109
 
324
- {isNew && (<Animated.View pointerEvents="none" style={[
325
- StyleSheet.absoluteFill,
326
- { backgroundColor: methodColor, opacity: shimmerOpacity },
327
- ]}/>)}
328
- </TouchableScale>
329
- </View>);
330
- });
331
- const styles = StyleSheet.create({
332
- container: {
333
- paddingHorizontal: 10,
334
- paddingVertical: 3.5,
335
- },
336
- card: {
337
- alignSelf: 'stretch',
338
- borderRadius: 11,
339
- overflow: 'hidden',
340
- shadowColor: AppColors.black,
341
- shadowOffset: { width: 0, height: 1.5 },
342
- shadowOpacity: 0.04,
343
- shadowRadius: 3,
344
- elevation: 1.5,
345
- borderWidth: 1,
346
- borderColor: AppColors.grayBorderSecondary,
347
- backgroundColor: AppColors.white,
348
- },
349
- cardBody: {
350
- paddingHorizontal: 12,
351
- paddingTop: 9,
352
- paddingBottom: 8,
353
- },
354
- cardHeaderRow: {
355
- flexDirection: 'row',
356
- alignItems: 'center',
357
- justifyContent: 'space-between',
358
- marginBottom: 6,
359
- minHeight: 22,
360
- },
361
- cardHeaderLeft: {
362
- flexDirection: 'row',
363
- alignItems: 'center',
364
- flex: 1,
365
- marginRight: 6,
366
- gap: 5.5,
367
- minWidth: 0,
368
- flexWrap: 'wrap',
369
- },
370
- smallCheckbox: {
371
- width: 15,
372
- height: 15,
373
- borderRadius: 4,
374
- borderWidth: 1.6,
375
- borderColor: AppColors.grayTextWeak,
376
- alignItems: 'center',
377
- justifyContent: 'center',
378
- backgroundColor: AppColors.white,
379
- },
380
- smallCheckboxChecked: {
381
- backgroundColor: AppColors.purple,
382
- borderColor: AppColors.purple,
383
- },
384
- serialNumber: {
385
- fontFamily: AppFonts.interBold,
386
- color: AppColors.grayTextWeak,
387
- fontSize: 10,
388
- },
389
- methodBadge: {
390
- paddingHorizontal: 6.5,
391
- paddingVertical: 2,
392
- borderRadius: 5,
393
- alignItems: 'center',
394
- justifyContent: 'center',
395
- },
396
- methodBadgeText: {
397
- fontFamily: AppFonts.interBold,
398
- fontSize: 9.5,
399
- letterSpacing: 0.5,
400
- color: AppColors.white,
401
- },
402
- chip: {
403
- paddingHorizontal: 5,
404
- paddingVertical: 1.5,
405
- borderRadius: 4,
406
- borderWidth: 1,
407
- },
408
- chipText: {
409
- fontFamily: AppFonts.interBold,
410
- fontSize: 8.5,
411
- },
412
- statusPill: {
413
- flexDirection: 'row',
414
- alignItems: 'center',
415
- gap: 4,
416
- paddingHorizontal: 7,
417
- paddingVertical: 2.5,
418
- borderRadius: 6,
419
- borderWidth: 1,
420
- flexShrink: 0,
421
- },
422
- statusPillText: {
423
- fontFamily: AppFonts.interBold,
424
- fontSize: 9.5,
425
- },
426
- urlBox: {
427
- backgroundColor: AppColors.grayBackground,
428
- borderRadius: 8,
429
- borderWidth: 1,
430
- borderColor: AppColors.dividerColor,
431
- paddingHorizontal: 9,
432
- paddingVertical: 6,
433
- marginVertical: 4,
434
- gap: 4,
435
- },
436
- urlMainRow: {
437
- flexDirection: 'row',
438
- alignItems: 'flex-start',
439
- justifyContent: 'space-between',
440
- gap: 6,
441
- },
442
- pathText: {
443
- fontFamily: AppFonts.interBold,
444
- fontSize: 12,
445
- lineHeight: 16.5,
446
- color: AppColors.primaryBlack,
447
- flex: 1,
448
- },
449
- urlBadgeRow: {
450
- flexDirection: 'row',
451
- alignItems: 'center',
452
- gap: 4,
453
- flexShrink: 0,
454
- },
455
- jsonBadge: {
456
- backgroundColor: `${AppColors.darkOrange}14`,
457
- borderColor: `${AppColors.darkOrange}2E`,
458
- borderWidth: 1,
459
- paddingHorizontal: 4,
460
- paddingVertical: 1,
461
- borderRadius: 3,
462
- },
463
- jsonBadgeText: {
464
- fontFamily: AppFonts.interBold,
465
- fontSize: 8.5,
466
- color: AppColors.darkOrange,
467
- },
468
- dupBadge: {
469
- backgroundColor: `${AppColors.purple}14`,
470
- borderColor: `${AppColors.purple}2E`,
471
- borderWidth: 1,
472
- paddingHorizontal: 4,
473
- paddingVertical: 1,
474
- borderRadius: 3,
475
- },
476
- dupBadgeText: {
477
- fontFamily: AppFonts.interBold,
478
- fontSize: 8.5,
479
- color: AppColors.purple,
480
- },
481
- hostRow: {
482
- flexDirection: 'row',
483
- alignItems: 'center',
484
- gap: 5,
485
- },
486
- protoBadge: {
487
- paddingHorizontal: 4,
488
- paddingVertical: 1,
489
- borderRadius: 3,
490
- borderWidth: 1,
491
- },
492
- protoBadgeText: {
493
- fontFamily: AppFonts.interBold,
494
- fontSize: 7.5,
495
- },
496
- hostText: {
497
- fontFamily: AppFonts.interMedium,
498
- fontSize: 10.5,
499
- color: AppColors.grayText,
500
- flex: 1,
501
- },
502
- highlight: {
503
- backgroundColor: AppColors.yellowHighlight,
504
- color: AppColors.primaryBlack,
505
- borderRadius: 2,
506
- },
507
- cardFooterRow: {
508
- flexDirection: 'row',
509
- alignItems: 'center',
510
- justifyContent: 'space-between',
511
- marginTop: 4,
512
- gap: 6,
513
- },
514
- footerLeft: {
515
- flexDirection: 'row',
516
- alignItems: 'center',
517
- gap: 6,
518
- flex: 1,
519
- minWidth: 0,
520
- },
521
- footerRight: {
522
- flexDirection: 'row',
523
- alignItems: 'center',
524
- gap: 5,
525
- flexShrink: 0,
526
- },
527
- cardDateRow: {
528
- flexDirection: 'row',
529
- alignItems: 'center',
530
- gap: 3.5,
531
- },
532
- cardDateText: {
533
- fontFamily: AppFonts.interRegular,
534
- fontSize: 9.5,
535
- color: AppColors.grayTextWeak,
536
- },
537
- callerChip: {
538
- flexDirection: 'row',
539
- alignItems: 'center',
540
- gap: 3,
541
- backgroundColor: `${AppColors.sky600}10`,
542
- borderColor: `${AppColors.sky600}2B`,
543
- borderWidth: 1,
544
- paddingHorizontal: 5,
545
- paddingVertical: 1,
546
- borderRadius: 4,
547
- flexShrink: 1,
548
- minWidth: 0,
549
- },
550
- callerChipText: {
551
- color: AppColors.sky600,
552
- fontSize: 8.5,
553
- fontFamily: AppFonts.interBold,
554
- },
555
- metaStatChip: {
556
- flexDirection: 'row',
557
- alignItems: 'center',
558
- gap: 3,
559
- backgroundColor: `${AppColors.purple}10`,
560
- borderColor: `${AppColors.purple}28`,
561
- borderWidth: 1,
562
- paddingHorizontal: 5,
563
- paddingVertical: 1.5,
564
- borderRadius: 4,
565
- },
566
- metaStatText: {
567
- fontFamily: AppFonts.interBold,
568
- color: AppColors.purple,
569
- fontSize: 9,
570
- },
571
- waterfallContainer: {
572
- height: 2.5,
573
- width: '100%',
574
- backgroundColor: AppColors.grayBorderSecondary,
575
- borderRadius: 1.5,
576
- overflow: 'hidden',
577
- marginTop: 6,
578
- },
579
- waterfallBar: {
580
- height: '100%',
581
- borderRadius: 1.5,
582
- },
583
- });
584
- export default LogCard;
110
+ {$&&<W.View pointerEvents="none"style={[U.absoluteFill,{backgroundColor:O,opacity:v}]}/>}
111
+ </Me>
112
+ </C>}),o=U.create({container:{paddingHorizontal:8,paddingVertical:3},card:{alignSelf:"stretch",borderRadius:10,overflow:"hidden",borderWidth:1,borderColor:e.dividerColor,shadowColor:e.shadowColorString},cardBody:{paddingHorizontal:11,paddingTop:8,paddingBottom:7},cardHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:5,minHeight:20},cardHeaderLeft:{flexDirection:"row",alignItems:"center",flex:1,marginRight:6,gap:5,minWidth:0,flexWrap:"wrap"},smallCheckbox:{width:14,height:14,borderRadius:3.5,borderWidth:1.5,borderColor:e.grayTextWeak,alignItems:"center",justifyContent:"center",backgroundColor:e.white},smallCheckboxChecked:{backgroundColor:e.purple,borderColor:e.purple},serialNumber:{fontFamily:B.interBold,color:e.grayTextWeak,fontSize:9.5},methodBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:5,alignItems:"center",justifyContent:"center"},methodBadgeText:{fontFamily:B.interBold,fontSize:9,lineHeight:11,letterSpacing:.5,color:e.white},chip:{paddingHorizontal:5,paddingVertical:1.5,borderRadius:4,borderWidth:1},chipText:{fontFamily:B.interBold,fontSize:8.5,lineHeight:11},statusPill:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:6.5,paddingVertical:2,borderRadius:6,borderWidth:1,flexShrink:0},statusPillText:{fontFamily:B.interBold,fontSize:9.5,lineHeight:12},urlBox:{backgroundColor:e.grayBackground,borderRadius:7,borderWidth:1,borderColor:e.dividerColor,paddingHorizontal:8,paddingVertical:5,marginVertical:3,gap:3},urlMainRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:6},pathText:{fontFamily:B.interBold,fontSize:12,lineHeight:16,color:e.primaryBlack,flex:1},urlBadgeRow:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},jsonBadge:{backgroundColor:`${e.darkOrange}14`,borderColor:`${e.darkOrange}2E`,borderWidth:1,paddingHorizontal:4,paddingVertical:1,borderRadius:3},jsonBadgeText:{fontFamily:B.interBold,fontSize:8.5,color:e.darkOrange},dupBadge:{backgroundColor:`${e.purple}14`,borderColor:`${e.purple}2E`,borderWidth:1,paddingHorizontal:4,paddingVertical:1,borderRadius:3},dupBadgeText:{fontFamily:B.interBold,fontSize:8.5,color:e.purple},hostRow:{flexDirection:"row",alignItems:"center",gap:4.5},protoBadge:{paddingHorizontal:4,paddingVertical:1,borderRadius:3,borderWidth:1},protoBadgeText:{fontFamily:B.interBold,fontSize:7.5,lineHeight:9},hostText:{fontFamily:B.interMedium,fontSize:10,lineHeight:13,color:e.grayTextWeak,flex:1},highlight:{backgroundColor:e.yellowHighlight,color:e.primaryBlack,borderRadius:2},cardFooterRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:3,gap:6},footerLeft:{flexDirection:"row",alignItems:"center",gap:5,flex:1,minWidth:0},footerRight:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},cardDateRow:{flexDirection:"row",alignItems:"center",gap:3},cardDateText:{fontFamily:B.interRegular,fontSize:9.5,lineHeight:12,color:e.slate400},callerChip:{flexDirection:"row",alignItems:"center",gap:2.5,backgroundColor:e.skySoftBg,borderColor:e.skySoftBorder,borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:4,flexShrink:1,minWidth:0},callerChipText:{color:e.skySoftText,fontSize:8.5,lineHeight:11,fontFamily:B.interBold},metaStatChip:{flexDirection:"row",alignItems:"center",gap:2.5,backgroundColor:e.violetSoftBg,borderColor:e.violetSoftBorder,borderWidth:1,paddingHorizontal:5,paddingVertical:1.5,borderRadius:4},metaStatText:{fontFamily:B.interBold,color:e.violetSoftText,fontSize:9,lineHeight:11},waterfallContainer:{height:2,width:"100%",backgroundColor:e.graySurface,borderRadius:1,overflow:"hidden",marginTop:5},waterfallBar:{height:"100%",borderRadius:1}});export default Ae;