react-native-inapp-inspector 2.3.18 → 2.3.20

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 (358) hide show
  1. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +57 -0
  2. package/dist/commonjs/analytics.js +1 -24
  3. package/dist/commonjs/bundle.js +1 -16
  4. package/dist/commonjs/capture.d.ts +2 -0
  5. package/dist/commonjs/capture.js +1 -32
  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.d.ts +1 -0
  19. package/dist/commonjs/components/EmptyState.js +10 -87
  20. package/dist/commonjs/components/EndOfListFooter.js +7 -81
  21. package/dist/commonjs/components/ErrorBoundary.js +72 -566
  22. package/dist/commonjs/components/HeadersSection.js +31 -110
  23. package/dist/commonjs/components/HighlightText.js +17 -58
  24. package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
  25. package/dist/commonjs/components/Inspector/AboutModal.js +351 -0
  26. package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
  27. package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
  28. package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
  29. package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
  30. package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
  31. package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
  32. package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
  33. package/dist/commonjs/components/Inspector/DebuggingTab.js +64 -871
  34. package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
  35. package/dist/commonjs/components/Inspector/FabLauncher.js +85 -54
  36. package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
  37. package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +9 -0
  38. package/dist/commonjs/components/Inspector/FeedbackModal.js +167 -521
  39. package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
  40. package/dist/commonjs/components/Inspector/InspectorHeader.js +219 -1093
  41. package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
  42. package/dist/commonjs/components/Inspector/MainScreen.js +60 -332
  43. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +136 -278
  44. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +134 -361
  45. package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
  46. package/dist/commonjs/components/Inspector/NetworkDetail.js +96 -432
  47. package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
  48. package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
  49. package/dist/commonjs/components/Inspector/NpmStarPrompt.js +17 -433
  50. package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
  51. package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
  52. package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
  53. package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
  54. package/dist/commonjs/components/Inspector/SettingsPanel.js +431 -3431
  55. package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
  56. package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
  57. package/dist/commonjs/components/Inspector/TabBar.js +47 -183
  58. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +34 -408
  59. package/dist/commonjs/components/JsonViewer.js +168 -380
  60. package/dist/commonjs/components/LogCard.js +57 -567
  61. package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
  62. package/dist/commonjs/components/MetaAccordion.js +69 -238
  63. package/dist/commonjs/components/MiniBarChart.js +3 -56
  64. package/dist/commonjs/components/MiniLineChart.js +3 -58
  65. package/dist/commonjs/components/NetworkIcons.d.ts +7 -0
  66. package/dist/commonjs/components/NetworkIcons.js +479 -997
  67. package/dist/commonjs/components/QRCodeView.js +5 -79
  68. package/dist/commonjs/components/SectionHeader.js +15 -37
  69. package/dist/commonjs/components/SegmentedTabs.js +7 -61
  70. package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
  71. package/dist/commonjs/components/Slider.js +15 -243
  72. package/dist/commonjs/components/SourcePageCard.js +30 -89
  73. package/dist/commonjs/components/Toast.js +5 -147
  74. package/dist/commonjs/components/TouchableScale.js +3 -24
  75. package/dist/commonjs/components/TreeNode.js +55 -130
  76. package/dist/commonjs/console.js +1 -16
  77. package/dist/commonjs/constants/index.js +1 -32
  78. package/dist/commonjs/constants/telemetryConfig.js +1 -6
  79. package/dist/commonjs/constants/version.d.ts +1 -1
  80. package/dist/commonjs/constants/version.js +1 -4
  81. package/dist/commonjs/crash.js +1 -23
  82. package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
  83. package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
  84. package/dist/commonjs/customHooks/consoleLogger.js +6 -445
  85. package/dist/commonjs/customHooks/crashHandler.js +7 -656
  86. package/dist/commonjs/customHooks/logFilters.js +1 -23
  87. package/dist/commonjs/customHooks/networkLogger.js +2 -536
  88. package/dist/commonjs/customHooks/performanceTracker.js +63 -750
  89. package/dist/commonjs/customHooks/reduxLogger.js +2 -313
  90. package/dist/commonjs/customHooks/storageInspector.js +1 -435
  91. package/dist/commonjs/customHooks/useAccordion.js +1 -18
  92. package/dist/commonjs/decorators/index.js +1 -100
  93. package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
  94. package/dist/commonjs/helpers/index.js +8 -921
  95. package/dist/commonjs/helpers/memoryManager.js +1 -99
  96. package/dist/commonjs/helpers/qrGenerator.js +1 -367
  97. package/dist/commonjs/helpers/remoteConfig.js +1 -165
  98. package/dist/commonjs/helpers/searchQueryParser.js +1 -62
  99. package/dist/commonjs/helpers/settingsStore.js +1 -144
  100. package/dist/commonjs/helpers/telemetry.js +1 -501
  101. package/dist/commonjs/helpers/toast.js +1 -20
  102. package/dist/commonjs/i18n/index.js +1 -90
  103. package/dist/commonjs/i18n/locales/en.json +1 -1122
  104. package/dist/commonjs/index.js +5 -2153
  105. package/dist/commonjs/metro.js +6 -468
  106. package/dist/commonjs/native/NativeInspector.d.ts +3 -0
  107. package/dist/commonjs/native/NativeInspector.js +1 -402
  108. package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
  109. package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
  110. package/dist/commonjs/network.js +1 -13
  111. package/dist/commonjs/performance.js +1 -29
  112. package/dist/commonjs/redux.js +1 -20
  113. package/dist/commonjs/storage.js +1 -14
  114. package/dist/commonjs/styles/AppColors.js +1 -423
  115. package/dist/commonjs/styles/AppFonts.js +1 -17
  116. package/dist/commonjs/styles/common.js +1 -190
  117. package/dist/commonjs/styles/index.d.ts +6 -0
  118. package/dist/commonjs/styles/index.js +1 -1589
  119. package/dist/commonjs/types/enums.d.ts +2 -1
  120. package/dist/commonjs/types/enums.js +1 -150
  121. package/dist/commonjs/types/index.js +1 -18
  122. package/dist/commonjs/types/interfaces.d.ts +7 -0
  123. package/dist/commonjs/types/interfaces.js +1 -2
  124. package/dist/esm/analytics.js +1 -2
  125. package/dist/esm/bundle.js +1 -2
  126. package/dist/esm/capture.d.ts +2 -0
  127. package/dist/esm/capture.js +1 -29
  128. package/dist/esm/components/AnalyticsDetail.js +171 -664
  129. package/dist/esm/components/AnalyticsEventCard.js +77 -335
  130. package/dist/esm/components/AnalyticsGraph.js +95 -357
  131. package/dist/esm/components/AnimatedEntrance.js +1 -6
  132. package/dist/esm/components/AppHeaderLogo.js +7 -94
  133. package/dist/esm/components/BrandCircleIcon.js +114 -119
  134. package/dist/esm/components/BrandSquareIcon.js +73 -78
  135. package/dist/esm/components/CodeSnippet.js +58 -595
  136. package/dist/esm/components/ConsoleLogCard.js +91 -526
  137. package/dist/esm/components/CopyButton.js +3 -51
  138. package/dist/esm/components/DiffViewer.js +22 -48
  139. package/dist/esm/components/DomainHeader.js +43 -138
  140. package/dist/esm/components/EmptyState.d.ts +1 -0
  141. package/dist/esm/components/EmptyState.js +17 -56
  142. package/dist/esm/components/EndOfListFooter.js +15 -83
  143. package/dist/esm/components/ErrorBoundary.js +125 -582
  144. package/dist/esm/components/HeadersSection.js +52 -93
  145. package/dist/esm/components/HighlightText.js +17 -53
  146. package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
  147. package/dist/esm/components/Inspector/AboutModal.js +351 -0
  148. package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
  149. package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
  150. package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
  151. package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
  152. package/dist/esm/components/Inspector/CrashDetail.js +236 -747
  153. package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
  154. package/dist/esm/components/Inspector/CrashTab.js +177 -711
  155. package/dist/esm/components/Inspector/DebuggingTab.js +156 -923
  156. package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
  157. package/dist/esm/components/Inspector/FabLauncher.js +85 -49
  158. package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
  159. package/dist/esm/components/Inspector/FeedbackModal.d.ts +9 -0
  160. package/dist/esm/components/Inspector/FeedbackModal.js +182 -499
  161. package/dist/esm/components/Inspector/InspectorContext.js +1 -12
  162. package/dist/esm/components/Inspector/InspectorHeader.js +309 -1145
  163. package/dist/esm/components/Inspector/LogDetail.js +235 -1023
  164. package/dist/esm/components/Inspector/MainScreen.js +86 -320
  165. package/dist/esm/components/Inspector/MediaGalleryTab.js +157 -259
  166. package/dist/esm/components/Inspector/MediaPreviewModal.js +153 -340
  167. package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
  168. package/dist/esm/components/Inspector/NetworkDetail.js +141 -472
  169. package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
  170. package/dist/esm/components/Inspector/NetworkTab.js +125 -517
  171. package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
  172. package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
  173. package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
  174. package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
  175. package/dist/esm/components/Inspector/ReduxTab.js +144 -722
  176. package/dist/esm/components/Inspector/SettingsPanel.js +647 -3609
  177. package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
  178. package/dist/esm/components/Inspector/StorageTab.js +172 -866
  179. package/dist/esm/components/Inspector/TabBar.js +52 -183
  180. package/dist/esm/components/Inspector/UpdateAvailableModal.js +79 -416
  181. package/dist/esm/components/JsonViewer.js +179 -353
  182. package/dist/esm/components/LogCard.js +93 -565
  183. package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
  184. package/dist/esm/components/MetaAccordion.js +136 -267
  185. package/dist/esm/components/MiniBarChart.js +3 -18
  186. package/dist/esm/components/MiniLineChart.js +3 -20
  187. package/dist/esm/components/NetworkIcons.d.ts +7 -0
  188. package/dist/esm/components/NetworkIcons.js +481 -817
  189. package/dist/esm/components/QRCodeView.js +8 -45
  190. package/dist/esm/components/SectionHeader.js +22 -39
  191. package/dist/esm/components/SegmentedTabs.js +8 -57
  192. package/dist/esm/components/SkeletonPlaceholder.js +30 -163
  193. package/dist/esm/components/Slider.js +24 -213
  194. package/dist/esm/components/SourcePageCard.js +65 -86
  195. package/dist/esm/components/Toast.js +10 -117
  196. package/dist/esm/components/TouchableScale.js +3 -19
  197. package/dist/esm/components/TreeNode.js +58 -95
  198. package/dist/esm/console.js +1 -2
  199. package/dist/esm/constants/index.js +1 -28
  200. package/dist/esm/constants/telemetryConfig.js +1 -3
  201. package/dist/esm/constants/version.d.ts +1 -1
  202. package/dist/esm/constants/version.js +1 -1
  203. package/dist/esm/crash.js +1 -2
  204. package/dist/esm/customHooks/analyticsLogger.js +1 -230
  205. package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
  206. package/dist/esm/customHooks/consoleLogger.js +6 -432
  207. package/dist/esm/customHooks/crashHandler.js +7 -630
  208. package/dist/esm/customHooks/logFilters.js +1 -20
  209. package/dist/esm/customHooks/networkLogger.js +2 -519
  210. package/dist/esm/customHooks/performanceTracker.js +63 -723
  211. package/dist/esm/customHooks/reduxLogger.js +2 -293
  212. package/dist/esm/customHooks/storageInspector.js +1 -418
  213. package/dist/esm/customHooks/useAccordion.js +1 -16
  214. package/dist/esm/decorators/index.js +1 -95
  215. package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
  216. package/dist/esm/helpers/index.js +8 -861
  217. package/dist/esm/helpers/memoryManager.js +1 -91
  218. package/dist/esm/helpers/qrGenerator.js +1 -364
  219. package/dist/esm/helpers/remoteConfig.js +1 -160
  220. package/dist/esm/helpers/searchQueryParser.js +1 -59
  221. package/dist/esm/helpers/settingsStore.js +1 -134
  222. package/dist/esm/helpers/telemetry.js +1 -489
  223. package/dist/esm/helpers/toast.js +1 -15
  224. package/dist/esm/i18n/index.js +1 -78
  225. package/dist/esm/i18n/locales/en.json +1 -1122
  226. package/dist/esm/index.js +7 -1967
  227. package/dist/esm/metro.js +6 -459
  228. package/dist/esm/native/NativeInspector.d.ts +3 -0
  229. package/dist/esm/native/NativeInspector.js +1 -370
  230. package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
  231. package/dist/esm/native/NativeNetworkInspector.js +1 -2
  232. package/dist/esm/network.js +1 -1
  233. package/dist/esm/performance.js +1 -2
  234. package/dist/esm/redux.js +1 -1
  235. package/dist/esm/storage.js +1 -1
  236. package/dist/esm/styles/AppColors.js +1 -417
  237. package/dist/esm/styles/AppFonts.js +1 -13
  238. package/dist/esm/styles/common.js +1 -186
  239. package/dist/esm/styles/index.d.ts +6 -0
  240. package/dist/esm/styles/index.js +1 -1551
  241. package/dist/esm/types/enums.d.ts +2 -1
  242. package/dist/esm/types/enums.js +1 -147
  243. package/dist/esm/types/index.js +1 -2
  244. package/dist/esm/types/interfaces.d.ts +7 -0
  245. package/dist/esm/types/interfaces.js +1 -1
  246. package/ios/NetworkInspectorModule.mm +253 -136
  247. package/package.json +5 -3
  248. package/react-native-inapp-inspector.podspec +1 -1
  249. package/src/native/NativeInspector.ts +17 -0
  250. package/src/native/NativeNetworkInspector.ts +1 -0
  251. package/src/analytics.ts +0 -35
  252. package/src/bundle.ts +0 -25
  253. package/src/capture.ts +0 -101
  254. package/src/components/AnalyticsDetail.tsx +0 -870
  255. package/src/components/AnalyticsEventCard.tsx +0 -444
  256. package/src/components/AnalyticsGraph.tsx +0 -583
  257. package/src/components/AnimatedEntrance.tsx +0 -20
  258. package/src/components/AppHeaderLogo.tsx +0 -143
  259. package/src/components/BrandCircleIcon.tsx +0 -144
  260. package/src/components/BrandSquareIcon.tsx +0 -184
  261. package/src/components/CodeSnippet.tsx +0 -725
  262. package/src/components/ConsoleLogCard.tsx +0 -679
  263. package/src/components/CopyButton.tsx +0 -87
  264. package/src/components/DiffViewer.tsx +0 -82
  265. package/src/components/DomainHeader.tsx +0 -224
  266. package/src/components/EmptyState.tsx +0 -95
  267. package/src/components/EndOfListFooter.tsx +0 -100
  268. package/src/components/ErrorBoundary.tsx +0 -688
  269. package/src/components/HeadersSection.tsx +0 -172
  270. package/src/components/HighlightText.tsx +0 -100
  271. package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
  272. package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
  273. package/src/components/Inspector/BundleTab.tsx +0 -4768
  274. package/src/components/Inspector/ConsoleTab.tsx +0 -726
  275. package/src/components/Inspector/CrashDetail.tsx +0 -997
  276. package/src/components/Inspector/CrashFilterModal.tsx +0 -721
  277. package/src/components/Inspector/CrashTab.tsx +0 -933
  278. package/src/components/Inspector/DebuggingTab.tsx +0 -1103
  279. package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
  280. package/src/components/Inspector/FabLauncher.tsx +0 -80
  281. package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
  282. package/src/components/Inspector/FeedbackModal.tsx +0 -626
  283. package/src/components/Inspector/InspectorContext.tsx +0 -28
  284. package/src/components/Inspector/InspectorHeader.tsx +0 -1545
  285. package/src/components/Inspector/LogDetail.tsx +0 -1431
  286. package/src/components/Inspector/MainScreen.tsx +0 -459
  287. package/src/components/Inspector/MediaGalleryTab.tsx +0 -355
  288. package/src/components/Inspector/MediaPreviewModal.tsx +0 -435
  289. package/src/components/Inspector/NavigationTracker.tsx +0 -13
  290. package/src/components/Inspector/NetworkDetail.tsx +0 -795
  291. package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
  292. package/src/components/Inspector/NetworkTab.tsx +0 -820
  293. package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
  294. package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
  295. package/src/components/Inspector/PerformanceTab.tsx +0 -1967
  296. package/src/components/Inspector/ReduxDetail.tsx +0 -1651
  297. package/src/components/Inspector/ReduxTab.tsx +0 -987
  298. package/src/components/Inspector/SettingsPanel.tsx +0 -4580
  299. package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
  300. package/src/components/Inspector/StorageTab.tsx +0 -1159
  301. package/src/components/Inspector/TabBar.tsx +0 -263
  302. package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
  303. package/src/components/JsonViewer.tsx +0 -547
  304. package/src/components/LogCard.tsx +0 -694
  305. package/src/components/LogSyntaxHighlighter.tsx +0 -178
  306. package/src/components/MetaAccordion.tsx +0 -355
  307. package/src/components/MiniBarChart.tsx +0 -42
  308. package/src/components/MiniLineChart.tsx +0 -33
  309. package/src/components/NetworkIcons.tsx +0 -2599
  310. package/src/components/QRCodeView.tsx +0 -75
  311. package/src/components/SectionHeader.tsx +0 -101
  312. package/src/components/SegmentedTabs.tsx +0 -83
  313. package/src/components/SkeletonPlaceholder.tsx +0 -206
  314. package/src/components/Slider.tsx +0 -300
  315. package/src/components/SourcePageCard.tsx +0 -150
  316. package/src/components/Toast.tsx +0 -131
  317. package/src/components/TouchableScale.tsx +0 -61
  318. package/src/components/TreeNode.tsx +0 -171
  319. package/src/console.ts +0 -24
  320. package/src/constants/index.ts +0 -41
  321. package/src/constants/telemetryConfig.ts +0 -4
  322. package/src/constants/version.ts +0 -3
  323. package/src/crash.ts +0 -32
  324. package/src/customHooks/analyticsLogger.ts +0 -336
  325. package/src/customHooks/bundleAnalyzer.ts +0 -1256
  326. package/src/customHooks/consoleLogger.ts +0 -530
  327. package/src/customHooks/crashHandler.ts +0 -944
  328. package/src/customHooks/logFilters.ts +0 -32
  329. package/src/customHooks/networkLogger.ts +0 -624
  330. package/src/customHooks/performanceTracker.ts +0 -1014
  331. package/src/customHooks/reduxLogger.ts +0 -406
  332. package/src/customHooks/storageInspector.ts +0 -513
  333. package/src/customHooks/useAccordion.tsx +0 -27
  334. package/src/decorators/index.ts +0 -184
  335. package/src/helpers/gaAnalyticsRegistry.ts +0 -204
  336. package/src/helpers/index.ts +0 -1092
  337. package/src/helpers/memoryManager.ts +0 -138
  338. package/src/helpers/qrGenerator.ts +0 -430
  339. package/src/helpers/remoteConfig.ts +0 -212
  340. package/src/helpers/searchQueryParser.ts +0 -84
  341. package/src/helpers/settingsStore.ts +0 -171
  342. package/src/helpers/telemetry.ts +0 -568
  343. package/src/helpers/toast.ts +0 -17
  344. package/src/i18n/index.ts +0 -104
  345. package/src/i18n/locales/en.json +0 -1125
  346. package/src/index.tsx +0 -2635
  347. package/src/metro.ts +0 -598
  348. package/src/network.ts +0 -22
  349. package/src/performance.ts +0 -38
  350. package/src/redux.ts +0 -23
  351. package/src/storage.ts +0 -18
  352. package/src/styles/AppColors.ts +0 -455
  353. package/src/styles/AppFonts.ts +0 -26
  354. package/src/styles/common.ts +0 -209
  355. package/src/styles/index.ts +0 -1606
  356. package/src/types/enums.ts +0 -208
  357. package/src/types/index.ts +0 -34
  358. package/src/types/interfaces.ts +0 -530
@@ -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 M}from"react";import{Alert as ae,Animated as I,Linking as D,View as C,Pressable as U,Text as T,StyleSheet as v}from"react-native";import Ce,{Path as Te}from"react-native-svg";import{AppColors as r}from"../styles/AppColors";import{METHOD_COLORS as q}from"../constants";import{getStatusColor as Be,getDurationColor as Fe,formatDateTime as Se,getSize as Re,getPath as ze,getBaseUrl as Ve}from"../helpers";import{CalendarIcon as He,ClockIcon as N,SizeIcon as Le,CircleCheckIcon as $e,CircleAlertIcon as Ie,CircleXIcon as De,RepeatIcon as Oe,PinIcon as Pe}from"./NetworkIcons";import{AppFonts as B}from"../styles/AppFonts";import We from"./HighlightText";import Ae from"./TouchableScale";import{useTranslation as Ee}from"../i18n";const Me=oe.memo(function({item:e,onPress:_,timelineMinStart:Ue,timelineTotalRange:ve,isNew:L,isSelected:O,onToggleSelect:G,searchStr:J}){const{t:V}=Ee(),P=q[e.method]??q.ALL,F=M(()=>{try{const t=new URL(e.url),z=t.host,E=t.pathname+(t.search?t.search:""),re=t.protocol==="https:";return{host:z,path:E||"/",isHttps:re}}catch{const t=e.url.toLowerCase().startsWith("https:"),z=ze(e.url);return{host:Ve(e.url).replace(/^https?:\/\//,""),path:z||e.url,isHttps:t}}},[e.url]),W=M(()=>{if(!e.caller||e.caller==="Unknown")return null;const t=e.caller.split(/[\/\\]/);return(t[t.length-1]||e.caller).replace(/\?.*$/,"").replace(/^[a-zA-Z0-9_$]+@/,"")},[e.caller]),K=t=>{t?.stopPropagation?.(),ae.alert(V("common.openInBrowser")||"Open in Browser",`${V("common.openInBrowserPrompt")||"Are you sure you want to open this URL in your external browser?"}
2
+
3
+ ${e.url}`,[{text:V("common.cancel")||"Cancel",style:"cancel"},{text:V("common.open")||"Open",onPress:()=>{D.canOpenURL(e.url).then(z=>{z?D.openURL(e.url):D.openURL(e.url).catch(()=>{})}).catch(()=>{})}}])},S=e.status===0||e.status!=null&&e.status>=400,R=e.status==null,$=Be(e.status),H=Fe(e.duration),Q=R?r.darkOrange:S?r.errorColor:r.greenColor,A=le(new I.Value(L?.35:0)).current;te(()=>{L&&I.timing(A,{toValue:0,duration:1200,useNativeDriver:!1}).start()},[L]);const X=()=>{if(R)return"...";if(e.status===0||e.status==null)return V("network.statusFailed")||"FAILED";const t=typeof e.status=="number"?e.status:parseInt(String(e.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(e.status)},Z=()=>{if(R)return<N color={r.darkOrange}size={10}/>;const t=typeof e.status=="number"?e.status:parseInt(String(e.status||0),10);return t>=200&&t<300?<$e color={r.greenColor}size={10}/>:t>=300&&t<400?<Oe color={r.amber700}size={10}/>:t>=400&&t<500?<Ie color={r.darkOrange}size={10}/>:<De color={r.errorColor}size={10}/>},Y=Se(e.startTime),ee=e.url.split("?")[0].toLowerCase().endsWith(".json");return<C style={o.container}>
4
+ <Ae onPress={_}style={[o.card,{borderLeftWidth:3.5,borderLeftColor:Q,backgroundColor:S?"#FFF8F8":r.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
+ <U onPress={()=>G(e.id)}hitSlop={12}style={[o.smallCheckbox,O&&o.smallCheckboxChecked]}>
10
+ {O&&<Ce width={9}height={9}viewBox="0 0 24 24"fill="none">
11
+ <Te d="M20 6L9 17l-5-5"stroke={r.white}strokeWidth="4"strokeLinecap="round"strokeLinejoin="round"/>
12
+ </Ce>}
13
+ </U>
136
14
 
137
- <Text style={styles.serialNumber}>#{item.id + 1}</Text>
15
+ <T style={o.serialNumber}>#{e.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:P}]}>
18
+ <T style={o.methodBadgeText}>
19
+ {e.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
+ {e.client&&<C style={[o.chip,{backgroundColor:e.client==="axios"?`${r.purple}14`:e.client==="apollo"||e.client==="graphql"?`${r.pink500}14`:e.client==="xhr"?`${r.amber500}14`:`${r.sky500}14`,borderColor:e.client==="axios"?`${r.purple}30`:e.client==="apollo"||e.client==="graphql"?`${r.pink500}30`:e.client==="xhr"?`${r.amber500}30`:`${r.sky500}30`}]}>
24
+ <T style={[o.chipText,{color:e.client==="axios"?r.purple:e.client==="apollo"||e.client==="graphql"?r.pink500:e.client==="xhr"?r.amber700:r.sky600}]}>
25
+ {e.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
+ {(e.url.toLowerCase().includes("graphql")||e.client==="apollo"||e.client==="graphql")&&<C style={[o.chip,{backgroundColor:r.roseBg,borderColor:r.roseBorder}]}>
31
+ <T style={[o.chipText,{color:r.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:S?`${r.errorColor}14`:R?`${r.darkOrange}14`:`${$}14`,borderColor:S?`${r.errorColor}33`:R?`${r.darkOrange}33`:`${$}33`}]}>
38
+ {Z()}
39
+ <T style={[o.statusPillText,{color:S?r.errorColor:R?r.darkOrange:$}]}>
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
+ <U onPress={K}hitSlop={6}style={o.urlBox}>
47
+ <C style={o.urlMainRow}>
48
+ <We text={F.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
+ {e.duplicateCount!=null&&e.duplicateCount>1&&<C style={o.dupBadge}>
54
+ <T style={o.dupBadgeText}>×{e.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
+ {F.host?<C style={o.hostRow}>
60
+ <C style={[o.protoBadge,{backgroundColor:F.isHttps?`${r.emerald600}12`:`${r.amber600}12`,borderColor:F.isHttps?`${r.emerald600}2B`:`${r.amber600}2B`}]}>
61
+ <T style={[o.protoBadgeText,{color:F.isHttps?r.emerald600:r.amber700}]}>
62
+ {F.isHttps?"HTTPS":"HTTP"}
63
+ </T>
64
+ </C>
65
+ <T style={o.hostText}numberOfLines={1}ellipsizeMode="tail">
66
+ {F.host}
67
+ </T>
68
+ </C>:null}
69
+ </U>
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
+ <He color={r.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
+ {W&&<C style={o.callerChip}>
80
+ <Pe color={r.sky600}size={8.5}/>
81
+ <T style={o.callerChipText}numberOfLines={1}ellipsizeMode="middle">
82
+ {W}
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
+ {e.response!=null&&<C style={o.metaStatChip}>
89
+ <Le color={r.purple}size={9}/>
90
+ <T style={o.metaStatText}>
91
+ {Re(e.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
+ {e.duration!=null&&!S&&<C style={[o.metaStatChip,{backgroundColor:`${H}12`,borderColor:`${H}2E`}]}>
96
+ <N color={H}size={9}/>
97
+ <T style={[o.metaStatText,{color:H}]}>
98
+ {e.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 e.duration=="number"&&e.duration>0&&!S&&<C style={o.waterfallContainer}>
106
+ <C style={[o.waterfallBar,{width:`${Math.min(100,Math.max(6,e.duration/1200*100))}%`,backgroundColor:H}]}/>
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
+ {L&&<I.View pointerEvents="none"style={[v.absoluteFill,{backgroundColor:P,opacity:A}]}/>}
111
+ </Ae>
112
+ </C>}),o=v.create({container:{paddingHorizontal:8,paddingVertical:3},card:{alignSelf:"stretch",borderRadius:10,overflow:"hidden",shadowColor:r.black,shadowOffset:{width:0,height:1},shadowOpacity:.04,shadowRadius:3,elevation:1,borderWidth:1,borderColor:"#E2E8F0",backgroundColor:r.white},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:r.grayTextWeak,alignItems:"center",justifyContent:"center",backgroundColor:r.white},smallCheckboxChecked:{backgroundColor:r.purple,borderColor:r.purple},serialNumber:{fontFamily:B.interBold,color:r.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:r.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:"#F8FAFC",borderRadius:7,borderWidth:1,borderColor:"#E2E8F0",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:"#0F172A",flex:1},urlBadgeRow:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},jsonBadge:{backgroundColor:`${r.darkOrange}14`,borderColor:`${r.darkOrange}2E`,borderWidth:1,paddingHorizontal:4,paddingVertical:1,borderRadius:3},jsonBadgeText:{fontFamily:B.interBold,fontSize:8.5,color:r.darkOrange},dupBadge:{backgroundColor:`${r.purple}14`,borderColor:`${r.purple}2E`,borderWidth:1,paddingHorizontal:4,paddingVertical:1,borderRadius:3},dupBadgeText:{fontFamily:B.interBold,fontSize:8.5,color:r.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:"#64748B",flex:1},highlight:{backgroundColor:r.yellowHighlight,color:r.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:"#94A3B8"},callerChip:{flexDirection:"row",alignItems:"center",gap:2.5,backgroundColor:"#F0F9FF",borderColor:"#BAE6FD",borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:4,flexShrink:1,minWidth:0},callerChipText:{color:"#0284C7",fontSize:8.5,lineHeight:11,fontFamily:B.interBold},metaStatChip:{flexDirection:"row",alignItems:"center",gap:2.5,backgroundColor:"#F5F3FF",borderColor:"#DDD6FE",borderWidth:1,paddingHorizontal:5,paddingVertical:1.5,borderRadius:4},metaStatText:{fontFamily:B.interBold,color:"#7C3AED",fontSize:9,lineHeight:11},waterfallContainer:{height:2,width:"100%",backgroundColor:"#F1F5F9",borderRadius:1,overflow:"hidden",marginTop:5},waterfallBar:{height:"100%",borderRadius:1}});export default Me;