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,622 +1,112 @@
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
- const react_1 = __importStar(require("react"));
40
- const react_native_1 = require("react-native");
41
- const react_native_svg_1 = __importStar(require("react-native-svg"));
42
- const AppColors_1 = require("../styles/AppColors");
43
- const constants_1 = require("../constants");
44
- const helpers_1 = require("../helpers");
45
- const NetworkIcons_1 = require("./NetworkIcons");
46
- const AppFonts_1 = require("../styles/AppFonts");
47
- const HighlightText_1 = __importDefault(require("./HighlightText"));
48
- const TouchableScale_1 = __importDefault(require("./TouchableScale"));
49
- const i18n_1 = require("../i18n");
50
- const LogCard = react_1.default.memo(function LogCard({ item, onPress, timelineMinStart, timelineTotalRange, isNew, isSelected, onToggleSelect, searchStr, }) {
51
- const { t } = (0, i18n_1.useTranslation)();
52
- const methodColor = constants_1.METHOD_COLORS[item.method] ?? constants_1.METHOD_COLORS.ALL;
53
- const urlParsed = (0, react_1.useMemo)(() => {
54
- try {
55
- const u = new URL(item.url);
56
- const host = u.host;
57
- const path = u.pathname + (u.search ? u.search : '');
58
- const isHttps = u.protocol === 'https:';
59
- return { host, path: path || '/', isHttps };
60
- }
61
- catch {
62
- const isHttps = item.url.toLowerCase().startsWith('https:');
63
- const path = (0, helpers_1.getPath)(item.url);
64
- const host = (0, helpers_1.getBaseUrl)(item.url).replace(/^https?:\/\//, '');
65
- return { host, path: path || item.url, isHttps };
66
- }
67
- }, [item.url]);
68
- const handleOpenUrl = (e) => {
69
- e?.stopPropagation?.();
70
- react_native_1.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}`, [
71
- { text: t('common.cancel') || 'Cancel', style: 'cancel' },
72
- {
73
- text: t('common.open') || 'Open',
74
- onPress: () => {
75
- react_native_1.Linking.canOpenURL(item.url)
76
- .then(supported => {
77
- if (supported) {
78
- react_native_1.Linking.openURL(item.url);
79
- }
80
- else {
81
- react_native_1.Linking.openURL(item.url).catch(() => { });
82
- }
83
- })
84
- .catch(() => { });
85
- },
86
- },
87
- ]);
88
- };
89
- const isFailed = item.status === 0 || (item.status != null && item.status >= 400);
90
- const isLoading = item.status == null;
91
- const statusColor = (0, helpers_1.getStatusColor)(item.status);
92
- const durationColor = (0, helpers_1.getDurationColor)(item.duration);
93
- const cardStatusColor = isLoading
94
- ? AppColors_1.AppColors.darkOrange
95
- : isFailed
96
- ? AppColors_1.AppColors.errorColor
97
- : AppColors_1.AppColors.greenColor;
98
- const shimmerOpacity = (0, react_1.useRef)(new react_native_1.Animated.Value(isNew ? 0.35 : 0)).current;
99
- (0, react_1.useEffect)(() => {
100
- if (isNew) {
101
- react_native_1.Animated.timing(shimmerOpacity, {
102
- toValue: 0,
103
- duration: 1200,
104
- useNativeDriver: false,
105
- }).start();
106
- }
107
- }, [isNew]);
108
- const getStatusText = () => {
109
- if (isLoading)
110
- return '...';
111
- if (item.status === 0 || item.status == null) {
112
- return t('network.statusFailed') || 'FAILED';
113
- }
114
- const num = typeof item.status === 'number' ? item.status : parseInt(String(item.status || 0), 10);
115
- if (num === 200)
116
- return '200 OK';
117
- if (num === 201)
118
- return '201 Created';
119
- if (num === 204)
120
- return '204 No Content';
121
- if (num === 304)
122
- return '304 Not Modified';
123
- if (num === 400)
124
- return '400 Bad Req';
125
- if (num === 401)
126
- return '401 Unauth';
127
- if (num === 403)
128
- return '403 Forbidden';
129
- if (num === 404)
130
- return '404 Not Found';
131
- if (num === 500)
132
- return '500 Error';
133
- return String(item.status);
134
- };
135
- const renderStatusIcon = () => {
136
- if (isLoading) {
137
- return <NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.darkOrange} size={10}/>;
138
- }
139
- const num = typeof item.status === 'number' ? item.status : parseInt(String(item.status || 0), 10);
140
- if (num >= 200 && num < 300) {
141
- return <NetworkIcons_1.CircleCheckIcon color={AppColors_1.AppColors.greenColor} size={10}/>;
142
- }
143
- if (num >= 300 && num < 400) {
144
- return <NetworkIcons_1.RepeatIcon color={AppColors_1.AppColors.amber700} size={10}/>;
145
- }
146
- if (num >= 400 && num < 500) {
147
- return <NetworkIcons_1.CircleAlertIcon color={AppColors_1.AppColors.darkOrange} size={10}/>;
148
- }
149
- return <NetworkIcons_1.CircleXIcon color={AppColors_1.AppColors.errorColor} size={10}/>;
150
- };
151
- const triggeredAt = (0, helpers_1.formatDateTime)(item.startTime);
152
- const isJson = item.url.split('?')[0].toLowerCase().endsWith('.json');
153
- return (<react_native_1.View style={styles.container}>
154
- <TouchableScale_1.default onPress={onPress} style={[
155
- styles.card,
156
- {
157
- borderLeftWidth: 3.5,
158
- borderLeftColor: cardStatusColor,
159
- backgroundColor: isFailed ? '#FFF8F8' : AppColors_1.AppColors.white,
160
- },
161
- ]}>
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(t,e,a,o){o===void 0&&(o=a);var l=Object.getOwnPropertyDescriptor(e,a);(!l||("get"in l?!e.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,o,l)}):(function(t,e,a,o){o===void 0&&(o=a),t[o]=e[a]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),__importStar=this&&this.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(a){var o=[];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(o[o.length]=l);return o},t(e)};return function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var o=t(e),l=0;l<o.length;l++)o[l]!=="default"&&__createBinding(a,e,o[l]);return __setModuleDefault(a,e),a}})(),__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),react_native_svg_1=__importStar(require("react-native-svg")),AppColors_1=require("../styles/AppColors"),constants_1=require("../constants"),helpers_1=require("../helpers"),NetworkIcons_1=require("./NetworkIcons"),AppFonts_1=require("../styles/AppFonts"),HighlightText_1=__importDefault(require("./HighlightText")),TouchableScale_1=__importDefault(require("./TouchableScale")),i18n_1=require("../i18n"),LogCard=react_1.default.memo(function({item:e,onPress:a,timelineMinStart:o,timelineTotalRange:l,isNew:u,isSelected:C,onToggleSelect:b,searchStr:x}){const{t:c}=(0,i18n_1.useTranslation)(),h=constants_1.METHOD_COLORS[e.method]??constants_1.METHOD_COLORS.ALL,n=(0,react_1.useMemo)(()=>{try{const r=new URL(e.url),p=r.host,w=r.pathname+(r.search?r.search:""),B=r.protocol==="https:";return{host:p,path:w||"/",isHttps:B}}catch{const r=e.url.toLowerCase().startsWith("https:"),p=(0,helpers_1.getPath)(e.url);return{host:(0,helpers_1.getBaseUrl)(e.url).replace(/^https?:\/\//,""),path:p||e.url,isHttps:r}}},[e.url]),f=(0,react_1.useMemo)(()=>{if(!e.caller||e.caller==="Unknown")return null;const r=e.caller.split(/[\/\\]/);return(r[r.length-1]||e.caller).replace(/\?.*$/,"").replace(/^[a-zA-Z0-9_$]+@/,"")},[e.caller]),y=r=>{r?.stopPropagation?.(),react_native_1.Alert.alert(c("common.openInBrowser")||"Open in Browser",`${c("common.openInBrowserPrompt")||"Are you sure you want to open this URL in your external browser?"}
2
+
3
+ ${e.url}`,[{text:c("common.cancel")||"Cancel",style:"cancel"},{text:c("common.open")||"Open",onPress:()=>{react_native_1.Linking.canOpenURL(e.url).then(p=>{p?react_native_1.Linking.openURL(e.url):react_native_1.Linking.openURL(e.url).catch(()=>{})}).catch(()=>{})}}])},i=e.status===0||e.status!=null&&e.status>=400,s=e.status==null,g=(0,helpers_1.getStatusColor)(e.status),d=(0,helpers_1.getDurationColor)(e.duration),A=s?AppColors_1.AppColors.darkOrange:i?AppColors_1.AppColors.errorColor:AppColors_1.AppColors.greenColor,_=(0,react_1.useRef)(new react_native_1.Animated.Value(u?.35:0)).current;(0,react_1.useEffect)(()=>{u&&react_native_1.Animated.timing(_,{toValue:0,duration:1200,useNativeDriver:!1}).start()},[u]);const T=()=>{if(s)return"...";if(e.status===0||e.status==null)return c("network.statusFailed")||"FAILED";const r=typeof e.status=="number"?e.status:parseInt(String(e.status||0),10);return r===200?"200 OK":r===201?"201 Created":r===204?"204 No Content":r===304?"304 Not Modified":r===400?"400 Bad Req":r===401?"401 Unauth":r===403?"403 Forbidden":r===404?"404 Not Found":r===500?"500 Error":String(e.status)},v=()=>{if(s)return<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.darkOrange}size={10}/>;const r=typeof e.status=="number"?e.status:parseInt(String(e.status||0),10);return r>=200&&r<300?<NetworkIcons_1.CircleCheckIcon color={AppColors_1.AppColors.greenColor}size={10}/>:r>=300&&r<400?<NetworkIcons_1.RepeatIcon color={AppColors_1.AppColors.amber700}size={10}/>:r>=400&&r<500?<NetworkIcons_1.CircleAlertIcon color={AppColors_1.AppColors.darkOrange}size={10}/>:<NetworkIcons_1.CircleXIcon color={AppColors_1.AppColors.errorColor}size={10}/>},k=(0,helpers_1.formatDateTime)(e.startTime),V=e.url.split("?")[0].toLowerCase().endsWith(".json");return<react_native_1.View style={styles.container}>
4
+ <TouchableScale_1.default onPress={a}style={[styles.card,{borderLeftWidth:3.5,borderLeftColor:A,backgroundColor:i?AppColors_1.AppColors.errorCardBg:AppColors_1.AppColors.white}]}>
162
5
  <react_native_1.View style={styles.cardBody}>
163
6
 
164
7
  <react_native_1.View style={styles.cardHeaderRow}>
165
8
  <react_native_1.View style={styles.cardHeaderLeft}>
166
- <react_native_1.Pressable onPress={() => onToggleSelect(item.id)} hitSlop={12} style={[
167
- styles.smallCheckbox,
168
- isSelected && styles.smallCheckboxChecked,
169
- ]}>
170
- {isSelected && (<react_native_svg_1.default width={9} height={9} viewBox="0 0 24 24" fill="none">
171
- <react_native_svg_1.Path d="M20 6L9 17l-5-5" stroke={AppColors_1.AppColors.white} strokeWidth="4" strokeLinecap="round" strokeLinejoin="round"/>
172
- </react_native_svg_1.default>)}
9
+ <react_native_1.Pressable onPress={()=>b(e.id)}hitSlop={12}style={[styles.smallCheckbox,C&&styles.smallCheckboxChecked]}>
10
+ {C&&<react_native_svg_1.default width={9}height={9}viewBox="0 0 24 24"fill="none">
11
+ <react_native_svg_1.Path d="M20 6L9 17l-5-5"stroke={AppColors_1.AppColors.white}strokeWidth="4"strokeLinecap="round"strokeLinejoin="round"/>
12
+ </react_native_svg_1.default>}
173
13
  </react_native_1.Pressable>
174
14
 
175
- <react_native_1.Text style={styles.serialNumber}>#{item.id + 1}</react_native_1.Text>
15
+ <react_native_1.Text style={styles.serialNumber}>#{e.id+1}</react_native_1.Text>
176
16
 
177
- <react_native_1.View style={[styles.methodBadge, { backgroundColor: methodColor }]}>
17
+ <react_native_1.View style={[styles.methodBadge,{backgroundColor:h}]}>
178
18
  <react_native_1.Text style={styles.methodBadgeText}>
179
- {item.method}
19
+ {e.method}
180
20
  </react_native_1.Text>
181
21
  </react_native_1.View>
182
22
 
183
- {item.client && (<react_native_1.View style={[
184
- styles.chip,
185
- {
186
- backgroundColor: item.client === 'axios'
187
- ? `${AppColors_1.AppColors.purple}14`
188
- : item.client === 'apollo' || item.client === 'graphql'
189
- ? `${AppColors_1.AppColors.pink500}14`
190
- : item.client === 'xhr'
191
- ? `${AppColors_1.AppColors.amber500}14`
192
- : `${AppColors_1.AppColors.sky500}14`,
193
- borderColor: item.client === 'axios'
194
- ? `${AppColors_1.AppColors.purple}30`
195
- : item.client === 'apollo' || item.client === 'graphql'
196
- ? `${AppColors_1.AppColors.pink500}30`
197
- : item.client === 'xhr'
198
- ? `${AppColors_1.AppColors.amber500}30`
199
- : `${AppColors_1.AppColors.sky500}30`,
200
- },
201
- ]}>
202
- <react_native_1.Text style={[
203
- styles.chipText,
204
- {
205
- color: item.client === 'axios'
206
- ? AppColors_1.AppColors.purple
207
- : item.client === 'apollo' || item.client === 'graphql'
208
- ? AppColors_1.AppColors.pink500
209
- : item.client === 'xhr'
210
- ? AppColors_1.AppColors.amber700
211
- : AppColors_1.AppColors.sky600,
212
- },
213
- ]}>
214
- {item.client.toUpperCase()}
23
+ {e.client&&<react_native_1.View style={[styles.chip,{backgroundColor:e.client==="axios"?`${AppColors_1.AppColors.purple}14`:e.client==="apollo"||e.client==="graphql"?`${AppColors_1.AppColors.pink500}14`:e.client==="xhr"?`${AppColors_1.AppColors.amber500}14`:`${AppColors_1.AppColors.sky500}14`,borderColor:e.client==="axios"?`${AppColors_1.AppColors.purple}30`:e.client==="apollo"||e.client==="graphql"?`${AppColors_1.AppColors.pink500}30`:e.client==="xhr"?`${AppColors_1.AppColors.amber500}30`:`${AppColors_1.AppColors.sky500}30`}]}>
24
+ <react_native_1.Text style={[styles.chipText,{color:e.client==="axios"?AppColors_1.AppColors.purple:e.client==="apollo"||e.client==="graphql"?AppColors_1.AppColors.pink500:e.client==="xhr"?AppColors_1.AppColors.amber700:AppColors_1.AppColors.sky600}]}>
25
+ {e.client.toUpperCase()}
215
26
  </react_native_1.Text>
216
- </react_native_1.View>)}
27
+ </react_native_1.View>}
217
28
 
218
29
 
219
- {(item.url.toLowerCase().includes('graphql') ||
220
- item.client === 'apollo' ||
221
- item.client === 'graphql') && (<react_native_1.View style={[
222
- styles.chip,
223
- {
224
- backgroundColor: AppColors_1.AppColors.roseBg,
225
- borderColor: AppColors_1.AppColors.roseBorder,
226
- },
227
- ]}>
228
- <react_native_1.Text style={[
229
- styles.chipText,
230
- { color: AppColors_1.AppColors.pink600 },
231
- ]}>
30
+ {(e.url.toLowerCase().includes("graphql")||e.client==="apollo"||e.client==="graphql")&&<react_native_1.View style={[styles.chip,{backgroundColor:AppColors_1.AppColors.roseBg,borderColor:AppColors_1.AppColors.roseBorder}]}>
31
+ <react_native_1.Text style={[styles.chipText,{color:AppColors_1.AppColors.pink600}]}>
232
32
  GQL
233
33
  </react_native_1.Text>
234
- </react_native_1.View>)}
34
+ </react_native_1.View>}
235
35
  </react_native_1.View>
236
36
 
237
- <react_native_1.View style={[
238
- styles.statusPill,
239
- {
240
- backgroundColor: isFailed
241
- ? `${AppColors_1.AppColors.errorColor}14`
242
- : isLoading
243
- ? `${AppColors_1.AppColors.darkOrange}14`
244
- : `${statusColor}14`,
245
- borderColor: isFailed
246
- ? `${AppColors_1.AppColors.errorColor}33`
247
- : isLoading
248
- ? `${AppColors_1.AppColors.darkOrange}33`
249
- : `${statusColor}33`,
250
- },
251
- ]}>
252
- {renderStatusIcon()}
253
- <react_native_1.Text style={[
254
- styles.statusPillText,
255
- {
256
- color: isFailed
257
- ? AppColors_1.AppColors.errorColor
258
- : isLoading
259
- ? AppColors_1.AppColors.darkOrange
260
- : statusColor,
261
- },
262
- ]}>
263
- {getStatusText()}
37
+ <react_native_1.View style={[styles.statusPill,{backgroundColor:i?`${AppColors_1.AppColors.errorColor}14`:s?`${AppColors_1.AppColors.darkOrange}14`:`${g}14`,borderColor:i?`${AppColors_1.AppColors.errorColor}33`:s?`${AppColors_1.AppColors.darkOrange}33`:`${g}33`}]}>
38
+ {v()}
39
+ <react_native_1.Text style={[styles.statusPillText,{color:i?AppColors_1.AppColors.errorColor:s?AppColors_1.AppColors.darkOrange:g}]}>
40
+ {T()}
264
41
  </react_native_1.Text>
265
42
  </react_native_1.View>
266
43
  </react_native_1.View>
267
44
 
268
45
 
269
- <react_native_1.Pressable onPress={handleOpenUrl} hitSlop={6} style={styles.urlBox}>
46
+ <react_native_1.Pressable onPress={y}hitSlop={6}style={styles.urlBox}>
270
47
  <react_native_1.View style={styles.urlMainRow}>
271
- <HighlightText_1.default text={urlParsed.path} search={searchStr} style={styles.pathText} highlightStyle={styles.highlight} numberOfLines={2} ellipsizeMode="middle"/>
48
+ <HighlightText_1.default text={n.path}search={x}style={styles.pathText}highlightStyle={styles.highlight}numberOfLines={2}ellipsizeMode="middle"/>
272
49
  <react_native_1.View style={styles.urlBadgeRow}>
273
- {isJson && (<react_native_1.View style={styles.jsonBadge}>
50
+ {V&&<react_native_1.View style={styles.jsonBadge}>
274
51
  <react_native_1.Text style={styles.jsonBadgeText}>.json</react_native_1.Text>
275
- </react_native_1.View>)}
276
- {item.duplicateCount != null && item.duplicateCount > 1 && (<react_native_1.View style={styles.dupBadge}>
277
- <react_native_1.Text style={styles.dupBadgeText}>×{item.duplicateCount}</react_native_1.Text>
278
- </react_native_1.View>)}
52
+ </react_native_1.View>}
53
+ {e.duplicateCount!=null&&e.duplicateCount>1&&<react_native_1.View style={styles.dupBadge}>
54
+ <react_native_1.Text style={styles.dupBadgeText}>×{e.duplicateCount}</react_native_1.Text>
55
+ </react_native_1.View>}
279
56
  </react_native_1.View>
280
57
  </react_native_1.View>
281
58
 
282
- {urlParsed.host ? (<react_native_1.View style={styles.hostRow}>
283
- <react_native_1.View style={[
284
- styles.protoBadge,
285
- {
286
- backgroundColor: urlParsed.isHttps
287
- ? `${AppColors_1.AppColors.emerald600}12`
288
- : `${AppColors_1.AppColors.amber600}12`,
289
- borderColor: urlParsed.isHttps
290
- ? `${AppColors_1.AppColors.emerald600}2B`
291
- : `${AppColors_1.AppColors.amber600}2B`,
292
- },
293
- ]}>
294
- <react_native_1.Text style={[
295
- styles.protoBadgeText,
296
- {
297
- color: urlParsed.isHttps
298
- ? AppColors_1.AppColors.emerald600
299
- : AppColors_1.AppColors.amber700,
300
- },
301
- ]}>
302
- {urlParsed.isHttps ? 'HTTPS' : 'HTTP'}
59
+ {n.host?<react_native_1.View style={styles.hostRow}>
60
+ <react_native_1.View style={[styles.protoBadge,{backgroundColor:n.isHttps?`${AppColors_1.AppColors.emerald600}12`:`${AppColors_1.AppColors.amber600}12`,borderColor:n.isHttps?`${AppColors_1.AppColors.emerald600}2B`:`${AppColors_1.AppColors.amber600}2B`}]}>
61
+ <react_native_1.Text style={[styles.protoBadgeText,{color:n.isHttps?AppColors_1.AppColors.emerald600:AppColors_1.AppColors.amber700}]}>
62
+ {n.isHttps?"HTTPS":"HTTP"}
303
63
  </react_native_1.Text>
304
64
  </react_native_1.View>
305
- <react_native_1.Text style={styles.hostText} numberOfLines={1} ellipsizeMode="tail">
306
- {urlParsed.host}
65
+ <react_native_1.Text style={styles.hostText}numberOfLines={1}ellipsizeMode="tail">
66
+ {n.host}
307
67
  </react_native_1.Text>
308
- </react_native_1.View>) : null}
68
+ </react_native_1.View>:null}
309
69
  </react_native_1.Pressable>
310
70
 
311
71
 
312
72
  <react_native_1.View style={styles.cardFooterRow}>
313
73
  <react_native_1.View style={styles.footerLeft}>
314
74
  <react_native_1.View style={styles.cardDateRow}>
315
- <NetworkIcons_1.CalendarIcon color={AppColors_1.AppColors.grayTextWeak} size={10}/>
316
- <react_native_1.Text style={styles.cardDateText}>{triggeredAt}</react_native_1.Text>
75
+ <NetworkIcons_1.CalendarIcon color={AppColors_1.AppColors.grayTextWeak}size={10}/>
76
+ <react_native_1.Text style={styles.cardDateText}>{k}</react_native_1.Text>
317
77
  </react_native_1.View>
318
78
 
319
- {item.caller && item.caller !== 'Unknown' && (<react_native_1.View style={styles.callerChip}>
320
- <NetworkIcons_1.PinIcon color={AppColors_1.AppColors.sky600} size={8.5}/>
321
- <react_native_1.Text style={styles.callerChipText} numberOfLines={1} ellipsizeMode="middle">
322
- {item.caller}
79
+ {f&&<react_native_1.View style={styles.callerChip}>
80
+ <NetworkIcons_1.PinIcon color={AppColors_1.AppColors.sky600}size={8.5}/>
81
+ <react_native_1.Text style={styles.callerChipText}numberOfLines={1}ellipsizeMode="middle">
82
+ {f}
323
83
  </react_native_1.Text>
324
- </react_native_1.View>)}
84
+ </react_native_1.View>}
325
85
  </react_native_1.View>
326
86
 
327
87
  <react_native_1.View style={styles.footerRight}>
328
- {item.response != null && (<react_native_1.View style={styles.metaStatChip}>
329
- <NetworkIcons_1.SizeIcon color={AppColors_1.AppColors.purple} size={9}/>
88
+ {e.response!=null&&<react_native_1.View style={styles.metaStatChip}>
89
+ <NetworkIcons_1.SizeIcon color={AppColors_1.AppColors.purple}size={9}/>
330
90
  <react_native_1.Text style={styles.metaStatText}>
331
- {(0, helpers_1.getSize)(item.response)}
91
+ {(0,helpers_1.getSize)(e.response)}
332
92
  </react_native_1.Text>
333
- </react_native_1.View>)}
93
+ </react_native_1.View>}
334
94
 
335
- {item.duration != null && !isFailed && (<react_native_1.View style={[
336
- styles.metaStatChip,
337
- {
338
- backgroundColor: `${durationColor}12`,
339
- borderColor: `${durationColor}2E`,
340
- },
341
- ]}>
342
- <NetworkIcons_1.ClockIcon color={durationColor} size={9}/>
343
- <react_native_1.Text style={[styles.metaStatText, { color: durationColor }]}>
344
- {item.duration}ms
95
+ {e.duration!=null&&!i&&<react_native_1.View style={[styles.metaStatChip,{backgroundColor:`${d}12`,borderColor:`${d}2E`}]}>
96
+ <NetworkIcons_1.ClockIcon color={d}size={9}/>
97
+ <react_native_1.Text style={[styles.metaStatText,{color:d}]}>
98
+ {e.duration}ms
345
99
  </react_native_1.Text>
346
- </react_native_1.View>)}
100
+ </react_native_1.View>}
347
101
  </react_native_1.View>
348
102
  </react_native_1.View>
349
103
 
350
104
 
351
- {typeof item.duration === 'number' && item.duration > 0 && !isFailed && (<react_native_1.View style={styles.waterfallContainer}>
352
- <react_native_1.View style={[
353
- styles.waterfallBar,
354
- {
355
- width: `${Math.min(100, Math.max(6, (item.duration / 1200) * 100))}%`,
356
- backgroundColor: durationColor,
357
- },
358
- ]}/>
359
- </react_native_1.View>)}
105
+ {typeof e.duration=="number"&&e.duration>0&&!i&&<react_native_1.View style={styles.waterfallContainer}>
106
+ <react_native_1.View style={[styles.waterfallBar,{width:`${Math.min(100,Math.max(6,e.duration/1200*100))}%`,backgroundColor:d}]}/>
107
+ </react_native_1.View>}
360
108
  </react_native_1.View>
361
109
 
362
- {isNew && (<react_native_1.Animated.View pointerEvents="none" style={[
363
- react_native_1.StyleSheet.absoluteFill,
364
- { backgroundColor: methodColor, opacity: shimmerOpacity },
365
- ]}/>)}
110
+ {u&&<react_native_1.Animated.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:h,opacity:_}]}/>}
366
111
  </TouchableScale_1.default>
367
- </react_native_1.View>);
368
- });
369
- const styles = react_native_1.StyleSheet.create({
370
- container: {
371
- paddingHorizontal: 10,
372
- paddingVertical: 3.5,
373
- },
374
- card: {
375
- alignSelf: 'stretch',
376
- borderRadius: 11,
377
- overflow: 'hidden',
378
- shadowColor: AppColors_1.AppColors.black,
379
- shadowOffset: { width: 0, height: 1.5 },
380
- shadowOpacity: 0.04,
381
- shadowRadius: 3,
382
- elevation: 1.5,
383
- borderWidth: 1,
384
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
385
- backgroundColor: AppColors_1.AppColors.white,
386
- },
387
- cardBody: {
388
- paddingHorizontal: 12,
389
- paddingTop: 9,
390
- paddingBottom: 8,
391
- },
392
- cardHeaderRow: {
393
- flexDirection: 'row',
394
- alignItems: 'center',
395
- justifyContent: 'space-between',
396
- marginBottom: 6,
397
- minHeight: 22,
398
- },
399
- cardHeaderLeft: {
400
- flexDirection: 'row',
401
- alignItems: 'center',
402
- flex: 1,
403
- marginRight: 6,
404
- gap: 5.5,
405
- minWidth: 0,
406
- flexWrap: 'wrap',
407
- },
408
- smallCheckbox: {
409
- width: 15,
410
- height: 15,
411
- borderRadius: 4,
412
- borderWidth: 1.6,
413
- borderColor: AppColors_1.AppColors.grayTextWeak,
414
- alignItems: 'center',
415
- justifyContent: 'center',
416
- backgroundColor: AppColors_1.AppColors.white,
417
- },
418
- smallCheckboxChecked: {
419
- backgroundColor: AppColors_1.AppColors.purple,
420
- borderColor: AppColors_1.AppColors.purple,
421
- },
422
- serialNumber: {
423
- fontFamily: AppFonts_1.AppFonts.interBold,
424
- color: AppColors_1.AppColors.grayTextWeak,
425
- fontSize: 10,
426
- },
427
- methodBadge: {
428
- paddingHorizontal: 6.5,
429
- paddingVertical: 2,
430
- borderRadius: 5,
431
- alignItems: 'center',
432
- justifyContent: 'center',
433
- },
434
- methodBadgeText: {
435
- fontFamily: AppFonts_1.AppFonts.interBold,
436
- fontSize: 9.5,
437
- letterSpacing: 0.5,
438
- color: AppColors_1.AppColors.white,
439
- },
440
- chip: {
441
- paddingHorizontal: 5,
442
- paddingVertical: 1.5,
443
- borderRadius: 4,
444
- borderWidth: 1,
445
- },
446
- chipText: {
447
- fontFamily: AppFonts_1.AppFonts.interBold,
448
- fontSize: 8.5,
449
- },
450
- statusPill: {
451
- flexDirection: 'row',
452
- alignItems: 'center',
453
- gap: 4,
454
- paddingHorizontal: 7,
455
- paddingVertical: 2.5,
456
- borderRadius: 6,
457
- borderWidth: 1,
458
- flexShrink: 0,
459
- },
460
- statusPillText: {
461
- fontFamily: AppFonts_1.AppFonts.interBold,
462
- fontSize: 9.5,
463
- },
464
- urlBox: {
465
- backgroundColor: AppColors_1.AppColors.grayBackground,
466
- borderRadius: 8,
467
- borderWidth: 1,
468
- borderColor: AppColors_1.AppColors.dividerColor,
469
- paddingHorizontal: 9,
470
- paddingVertical: 6,
471
- marginVertical: 4,
472
- gap: 4,
473
- },
474
- urlMainRow: {
475
- flexDirection: 'row',
476
- alignItems: 'flex-start',
477
- justifyContent: 'space-between',
478
- gap: 6,
479
- },
480
- pathText: {
481
- fontFamily: AppFonts_1.AppFonts.interBold,
482
- fontSize: 12,
483
- lineHeight: 16.5,
484
- color: AppColors_1.AppColors.primaryBlack,
485
- flex: 1,
486
- },
487
- urlBadgeRow: {
488
- flexDirection: 'row',
489
- alignItems: 'center',
490
- gap: 4,
491
- flexShrink: 0,
492
- },
493
- jsonBadge: {
494
- backgroundColor: `${AppColors_1.AppColors.darkOrange}14`,
495
- borderColor: `${AppColors_1.AppColors.darkOrange}2E`,
496
- borderWidth: 1,
497
- paddingHorizontal: 4,
498
- paddingVertical: 1,
499
- borderRadius: 3,
500
- },
501
- jsonBadgeText: {
502
- fontFamily: AppFonts_1.AppFonts.interBold,
503
- fontSize: 8.5,
504
- color: AppColors_1.AppColors.darkOrange,
505
- },
506
- dupBadge: {
507
- backgroundColor: `${AppColors_1.AppColors.purple}14`,
508
- borderColor: `${AppColors_1.AppColors.purple}2E`,
509
- borderWidth: 1,
510
- paddingHorizontal: 4,
511
- paddingVertical: 1,
512
- borderRadius: 3,
513
- },
514
- dupBadgeText: {
515
- fontFamily: AppFonts_1.AppFonts.interBold,
516
- fontSize: 8.5,
517
- color: AppColors_1.AppColors.purple,
518
- },
519
- hostRow: {
520
- flexDirection: 'row',
521
- alignItems: 'center',
522
- gap: 5,
523
- },
524
- protoBadge: {
525
- paddingHorizontal: 4,
526
- paddingVertical: 1,
527
- borderRadius: 3,
528
- borderWidth: 1,
529
- },
530
- protoBadgeText: {
531
- fontFamily: AppFonts_1.AppFonts.interBold,
532
- fontSize: 7.5,
533
- },
534
- hostText: {
535
- fontFamily: AppFonts_1.AppFonts.interMedium,
536
- fontSize: 10.5,
537
- color: AppColors_1.AppColors.grayText,
538
- flex: 1,
539
- },
540
- highlight: {
541
- backgroundColor: AppColors_1.AppColors.yellowHighlight,
542
- color: AppColors_1.AppColors.primaryBlack,
543
- borderRadius: 2,
544
- },
545
- cardFooterRow: {
546
- flexDirection: 'row',
547
- alignItems: 'center',
548
- justifyContent: 'space-between',
549
- marginTop: 4,
550
- gap: 6,
551
- },
552
- footerLeft: {
553
- flexDirection: 'row',
554
- alignItems: 'center',
555
- gap: 6,
556
- flex: 1,
557
- minWidth: 0,
558
- },
559
- footerRight: {
560
- flexDirection: 'row',
561
- alignItems: 'center',
562
- gap: 5,
563
- flexShrink: 0,
564
- },
565
- cardDateRow: {
566
- flexDirection: 'row',
567
- alignItems: 'center',
568
- gap: 3.5,
569
- },
570
- cardDateText: {
571
- fontFamily: AppFonts_1.AppFonts.interRegular,
572
- fontSize: 9.5,
573
- color: AppColors_1.AppColors.grayTextWeak,
574
- },
575
- callerChip: {
576
- flexDirection: 'row',
577
- alignItems: 'center',
578
- gap: 3,
579
- backgroundColor: `${AppColors_1.AppColors.sky600}10`,
580
- borderColor: `${AppColors_1.AppColors.sky600}2B`,
581
- borderWidth: 1,
582
- paddingHorizontal: 5,
583
- paddingVertical: 1,
584
- borderRadius: 4,
585
- flexShrink: 1,
586
- minWidth: 0,
587
- },
588
- callerChipText: {
589
- color: AppColors_1.AppColors.sky600,
590
- fontSize: 8.5,
591
- fontFamily: AppFonts_1.AppFonts.interBold,
592
- },
593
- metaStatChip: {
594
- flexDirection: 'row',
595
- alignItems: 'center',
596
- gap: 3,
597
- backgroundColor: `${AppColors_1.AppColors.purple}10`,
598
- borderColor: `${AppColors_1.AppColors.purple}28`,
599
- borderWidth: 1,
600
- paddingHorizontal: 5,
601
- paddingVertical: 1.5,
602
- borderRadius: 4,
603
- },
604
- metaStatText: {
605
- fontFamily: AppFonts_1.AppFonts.interBold,
606
- color: AppColors_1.AppColors.purple,
607
- fontSize: 9,
608
- },
609
- waterfallContainer: {
610
- height: 2.5,
611
- width: '100%',
612
- backgroundColor: AppColors_1.AppColors.grayBorderSecondary,
613
- borderRadius: 1.5,
614
- overflow: 'hidden',
615
- marginTop: 6,
616
- },
617
- waterfallBar: {
618
- height: '100%',
619
- borderRadius: 1.5,
620
- },
621
- });
622
- exports.default = LogCard;
112
+ </react_native_1.View>}),styles=react_native_1.StyleSheet.create({container:{paddingHorizontal:8,paddingVertical:3},card:{alignSelf:"stretch",borderRadius:10,overflow:"hidden",borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.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:AppColors_1.AppColors.grayTextWeak,alignItems:"center",justifyContent:"center",backgroundColor:AppColors_1.AppColors.white},smallCheckboxChecked:{backgroundColor:AppColors_1.AppColors.purple,borderColor:AppColors_1.AppColors.purple},serialNumber:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.grayTextWeak,fontSize:9.5},methodBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:5,alignItems:"center",justifyContent:"center"},methodBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,lineHeight:11,letterSpacing:.5,color:AppColors_1.AppColors.white},chip:{paddingHorizontal:5,paddingVertical:1.5,borderRadius:4,borderWidth:1},chipText:{fontFamily:AppFonts_1.AppFonts.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:AppFonts_1.AppFonts.interBold,fontSize:9.5,lineHeight:12},urlBox:{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:7,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:8,paddingVertical:5,marginVertical:3,gap:3},urlMainRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:6},pathText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,lineHeight:16,color:AppColors_1.AppColors.primaryBlack,flex:1},urlBadgeRow:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},jsonBadge:{backgroundColor:`${AppColors_1.AppColors.darkOrange}14`,borderColor:`${AppColors_1.AppColors.darkOrange}2E`,borderWidth:1,paddingHorizontal:4,paddingVertical:1,borderRadius:3},jsonBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.darkOrange},dupBadge:{backgroundColor:`${AppColors_1.AppColors.purple}14`,borderColor:`${AppColors_1.AppColors.purple}2E`,borderWidth:1,paddingHorizontal:4,paddingVertical:1,borderRadius:3},dupBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.purple},hostRow:{flexDirection:"row",alignItems:"center",gap:4.5},protoBadge:{paddingHorizontal:4,paddingVertical:1,borderRadius:3,borderWidth:1},protoBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:7.5,lineHeight:9},hostText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.grayTextWeak,flex:1},highlight:{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.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:AppFonts_1.AppFonts.interRegular,fontSize:9.5,lineHeight:12,color:AppColors_1.AppColors.slate400},callerChip:{flexDirection:"row",alignItems:"center",gap:2.5,backgroundColor:AppColors_1.AppColors.skySoftBg,borderColor:AppColors_1.AppColors.skySoftBorder,borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:4,flexShrink:1,minWidth:0},callerChipText:{color:AppColors_1.AppColors.skySoftText,fontSize:8.5,lineHeight:11,fontFamily:AppFonts_1.AppFonts.interBold},metaStatChip:{flexDirection:"row",alignItems:"center",gap:2.5,backgroundColor:AppColors_1.AppColors.violetSoftBg,borderColor:AppColors_1.AppColors.violetSoftBorder,borderWidth:1,paddingHorizontal:5,paddingVertical:1.5,borderRadius:4},metaStatText:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.violetSoftText,fontSize:9,lineHeight:11},waterfallContainer:{height:2,width:"100%",backgroundColor:AppColors_1.AppColors.graySurface,borderRadius:1,overflow:"hidden",marginTop:5},waterfallBar:{height:"100%",borderRadius:1}});exports.default=LogCard;