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,997 +0,0 @@
1
- import React, {useMemo, useState} from 'react';
2
- import {
3
- Platform,
4
- ScrollView,
5
- StyleSheet,
6
- Text,
7
- TextInput,
8
- View,
9
- } from 'react-native';
10
- import {useTranslation} from '../../i18n';
11
- import {useInspector} from './InspectorContext';
12
- import TouchableScale from '../TouchableScale';
13
- import SegmentedTabs from '../SegmentedTabs';
14
- import HighlightText from '../HighlightText';
15
- import JsonViewer from '../JsonViewer';
16
- import CopyButton from '../CopyButton';
17
- import {AppColors} from '../../styles/AppColors';
18
- import {AppFonts} from '../../styles/AppFonts';
19
- import {
20
- ParsedStackFrame,
21
- } from '../../types';
22
- import {
23
- CrashDetailSubTab,
24
- } from '../../types/enums';
25
- import {
26
- exportCrashReport,
27
- parseCrashStackTrace,
28
- } from '../../customHooks/crashHandler';
29
- import {copyToClipboard} from '../../helpers';
30
- import {
31
- SearchIcon,
32
- ClearIcon,
33
- CopyIcon,
34
- TerminalIcon,
35
- LayersIcon,
36
- ClockIcon,
37
- CircleCheckIcon,
38
- GlobeIcon,
39
- AppleIcon,
40
- AndroidIcon,
41
- StackTraceIcon,
42
- DiagnosticsIcon,
43
- TrailIcon,
44
- RawJsonIcon,
45
- AppFramesIcon,
46
- AllFramesIcon,
47
- } from '../NetworkIcons';
48
-
49
-
50
-
51
- const CrashDetail: React.FC = React.memo(() => {
52
- const {t} = useTranslation();
53
- const {selectedCrash} = useInspector();
54
-
55
- const [activeSubTab, setActiveSubTab] = useState<CrashDetailSubTab>('stack');
56
- const [searchQuery, setSearchQuery] = useState('');
57
- const [stackFilter, setStackFilter] = useState<'app' | 'all'>('app');
58
- const [copiedSuccess, setCopiedSuccess] = useState(false);
59
- const [copiedFrameIndex, setCopiedFrameIndex] = useState<number | null>(null);
60
-
61
- if (!selectedCrash) return null;
62
-
63
- const stackFrames: ParsedStackFrame[] = useMemo(() => {
64
- if (selectedCrash.parsedStack && selectedCrash.parsedStack.length > 0) {
65
- return selectedCrash.parsedStack;
66
- }
67
- if (selectedCrash.stack) {
68
- return parseCrashStackTrace(selectedCrash.stack);
69
- }
70
- return [];
71
- }, [selectedCrash]);
72
-
73
- // Strip keys holding explicit undefined values (e.g. componentStack) so the
74
- // Raw JSON tab never renders a literal "undefined".
75
- const rawCrashData = useMemo(() => {
76
- try {
77
- return JSON.parse(JSON.stringify(selectedCrash));
78
- } catch {
79
- return selectedCrash;
80
- }
81
- }, [selectedCrash]);
82
-
83
- const appStackFrames = useMemo(() => {
84
- return stackFrames.filter(f => f.isAppCode);
85
- }, [stackFrames]);
86
-
87
- const displayedFrames = useMemo(() => {
88
- if (stackFilter === 'app' && appStackFrames.length > 0) {
89
- return appStackFrames;
90
- }
91
- return stackFrames;
92
- }, [stackFilter, appStackFrames, stackFrames]);
93
-
94
- const originFrame = useMemo(() => {
95
- return appStackFrames[0] || stackFrames[0] || null;
96
- }, [appStackFrames, stackFrames]);
97
-
98
- const handleCopyReport = () => {
99
- const report = exportCrashReport(selectedCrash);
100
- copyToClipboard(report, 'Crash Report');
101
- setCopiedSuccess(true);
102
- setTimeout(() => setCopiedSuccess(false), 2000);
103
- };
104
-
105
- const handleCopyFrame = (frame: ParsedStackFrame, index: number) => {
106
- const text = frame.raw || `${frame.method}@${frame.file}:${frame.lineNumber}:${frame.column}`;
107
- copyToClipboard(text, 'Stack Frame');
108
- setCopiedFrameIndex(index);
109
- setTimeout(() => setCopiedFrameIndex(null), 1500);
110
- };
111
-
112
- const tabsConfig = [
113
- {
114
- key: 'stack',
115
- label: t('crash.tabStack', {count: stackFrames.length}),
116
- icon: (isActive: boolean) => (
117
- <StackTraceIcon
118
- size={12}
119
- color={isActive ? AppColors.white : AppColors.grayText}
120
- />
121
- ),
122
- },
123
- {
124
- key: 'diagnostics',
125
- label: t('crash.tabDiagnostics'),
126
- icon: (isActive: boolean) => (
127
- <DiagnosticsIcon
128
- size={12}
129
- color={isActive ? AppColors.white : AppColors.grayText}
130
- />
131
- ),
132
- },
133
- {
134
- key: 'breadcrumbs',
135
- label: t('crash.tabTrail', {count: selectedCrash.breadcrumbs?.length || 0}),
136
- icon: (isActive: boolean) => (
137
- <TrailIcon
138
- size={12}
139
- color={isActive ? AppColors.white : AppColors.grayText}
140
- />
141
- ),
142
- },
143
- {
144
- key: 'raw',
145
- label: t('crash.tabRawJson'),
146
- icon: (isActive: boolean) => (
147
- <RawJsonIcon
148
- size={12}
149
- color={isActive ? AppColors.white : AppColors.grayText}
150
- />
151
- ),
152
- },
153
- ];
154
-
155
- return (
156
- <View style={{flex: 1, backgroundColor: AppColors.grayBackground}}>
157
- {/* ─── Top Info Bar (Similar to NetworkDetail / LogDetail) ─── */}
158
- <View style={{paddingHorizontal: 8, paddingTop: 6}}>
159
- <View style={localStyles.infoBar}>
160
- {/* Top Status Badges Row */}
161
- <View style={localStyles.badgeRow}>
162
- {/* Fatal / Non-fatal Pill */}
163
- <View
164
- style={[
165
- localStyles.pillBadge,
166
- {
167
- backgroundColor: selectedCrash.isFatal
168
- ? AppColors.errorCardBg
169
- : AppColors.amberBg,
170
- borderColor: selectedCrash.isFatal
171
- ? AppColors.errorBorder
172
- : AppColors.amberWarmBorder,
173
- },
174
- ]}>
175
- <View
176
- style={[
177
- localStyles.statusDot,
178
- {
179
- backgroundColor: selectedCrash.isFatal
180
- ? AppColors.red600
181
- : AppColors.amber600,
182
- },
183
- ]}
184
- />
185
- <Text
186
- style={[
187
- localStyles.pillBadgeText,
188
- {
189
- color: selectedCrash.isFatal
190
- ? AppColors.redErrorText
191
- : AppColors.amberWarmText,
192
- },
193
- ]}>
194
- {selectedCrash.isFatal ? t('crash.fatalCrash') : t('crash.handledException')}
195
- </Text>
196
- </View>
197
-
198
- {/* Type Pill */}
199
- <View
200
- style={[
201
- localStyles.pillBadge,
202
- {
203
- backgroundColor: AppColors.violetSoftBg,
204
- borderColor: AppColors.violetSoftBorder,
205
- },
206
- ]}>
207
- <Text style={[localStyles.pillBadgeText, {color: AppColors.purple700}]}>
208
- {selectedCrash.type.toUpperCase()}
209
- </Text>
210
- </View>
211
-
212
- <View style={{flex: 1}} />
213
-
214
- {/* Copy Report Action */}
215
- <TouchableScale
216
- onPress={handleCopyReport}
217
- hitSlop={10}
218
- style={[
219
- localStyles.actionButton,
220
- copiedSuccess && {backgroundColor: AppColors.mintGreenBg, borderColor: AppColors.mintGreenBorder},
221
- ]}>
222
- {copiedSuccess ? (
223
- <CircleCheckIcon color={AppColors.mintGreenText} size={12} />
224
- ) : (
225
- <CopyIcon color={AppColors.purple} size={12} />
226
- )}
227
- <Text
228
- style={[
229
- localStyles.actionButtonText,
230
- copiedSuccess && {color: AppColors.mintGreenText},
231
- ]}>
232
- {copiedSuccess ? t('crash.copied') : t('crash.copyReport')}
233
- </Text>
234
- </TouchableScale>
235
- </View>
236
-
237
- {/* Crash Title / Message */}
238
- <Text style={localStyles.titleText}>
239
- {selectedCrash.message}
240
- </Text>
241
-
242
- {/* Metadata Row */}
243
- <ScrollView
244
- horizontal
245
- showsHorizontalScrollIndicator={false}
246
- contentContainerStyle={localStyles.metaRow}>
247
- {originFrame && (
248
- <View style={localStyles.metaChip}>
249
- <TerminalIcon color={AppColors.grayText} size={11} />
250
- <Text style={localStyles.metaChipText} numberOfLines={2}>
251
- {originFrame.file}:{originFrame.lineNumber}
252
- </Text>
253
- </View>
254
- )}
255
-
256
- <View style={localStyles.metaChip}>
257
- <ClockIcon color={AppColors.grayText} size={11} />
258
- <Text style={localStyles.metaChipText}>
259
- {selectedCrash.timeStr || new Date(selectedCrash.timestamp).toLocaleTimeString()}
260
- </Text>
261
- </View>
262
-
263
- {selectedCrash.deviceInfo?.platform && (
264
- <View style={localStyles.metaChip}>
265
- {selectedCrash.deviceInfo.platform === 'ios' ? (
266
- <AppleIcon color={AppColors.grayText} size={11} />
267
- ) : (
268
- <AndroidIcon color={AppColors.grayText} size={11} />
269
- )}
270
- <Text style={localStyles.metaChipText}>
271
- {selectedCrash.deviceInfo.platform.toUpperCase()} {selectedCrash.deviceInfo.osVersion}
272
- </Text>
273
- </View>
274
- )}
275
- </ScrollView>
276
- </View>
277
- </View>
278
-
279
- {/* ─── Segmented Sub Tabs ─── */}
280
- <View style={{paddingHorizontal: 8, paddingTop: 6, paddingBottom: 4}}>
281
- <SegmentedTabs
282
- tabs={tabsConfig}
283
- activeKey={activeSubTab}
284
- onChange={tab => setActiveSubTab(tab as CrashDetailSubTab)}
285
- />
286
- </View>
287
-
288
- {/* ─── Search Bar (for Stack & Raw tabs) ─── */}
289
- {(activeSubTab === 'stack' || activeSubTab === 'raw') && (
290
- <View style={{paddingHorizontal: 12, paddingBottom: 6}}>
291
- <View style={localStyles.searchContainer}>
292
- <SearchIcon color={AppColors.grayText} size={14} />
293
- <TextInput
294
- style={localStyles.searchInput}
295
- placeholder={t('crash.searchDetailPlaceholder')}
296
- placeholderTextColor={AppColors.grayTextWeak}
297
- value={searchQuery}
298
- onChangeText={setSearchQuery}
299
- autoCapitalize="none"
300
- autoCorrect={false}
301
- />
302
- {searchQuery.length > 0 && (
303
- <TouchableScale onPress={() => setSearchQuery('')} hitSlop={10}>
304
- <ClearIcon color={AppColors.grayText} size={13} />
305
- </TouchableScale>
306
- )}
307
- </View>
308
- </View>
309
- )}
310
-
311
- {/* ─── Tab Content ScrollView ─── */}
312
- <ScrollView
313
- style={{flex: 1}}
314
- contentContainerStyle={{padding: 12, paddingBottom: 40, gap: 12}}>
315
- {/* 1. STACK TRACE TAB */}
316
- {activeSubTab === 'stack' && (
317
- <View style={{gap: 10}}>
318
- {/* Filter Chips (App Code vs All Frames) */}
319
- <View style={localStyles.filterChipsRow}>
320
- <TouchableScale
321
- onPress={() => setStackFilter('app')}
322
- style={[
323
- localStyles.filterChip,
324
- stackFilter === 'app' && localStyles.filterChipActive,
325
- ]}>
326
- <AppFramesIcon
327
- size={12}
328
- color={
329
- stackFilter === 'app'
330
- ? AppColors.white
331
- : AppColors.purple
332
- }
333
- />
334
- <Text
335
- style={[
336
- localStyles.filterChipText,
337
- stackFilter === 'app' && localStyles.filterChipTextActive,
338
- ]}>
339
- {t('crash.appFrames', {count: appStackFrames.length})}
340
- </Text>
341
- </TouchableScale>
342
-
343
- <TouchableScale
344
- onPress={() => setStackFilter('all')}
345
- style={[
346
- localStyles.filterChip,
347
- stackFilter === 'all' && localStyles.filterChipActive,
348
- ]}>
349
- <AllFramesIcon
350
- size={12}
351
- color={
352
- stackFilter === 'all'
353
- ? AppColors.white
354
- : AppColors.purple
355
- }
356
- />
357
- <Text
358
- style={[
359
- localStyles.filterChipText,
360
- stackFilter === 'all' && localStyles.filterChipTextActive,
361
- ]}>
362
- {t('crash.allFrames', {count: stackFrames.length})}
363
- </Text>
364
- </TouchableScale>
365
- </View>
366
-
367
- {/* Frames List */}
368
- {displayedFrames.length > 0 ? (
369
- displayedFrames
370
- .filter(frame => {
371
- if (!searchQuery.trim()) return true;
372
- const q = searchQuery.toLowerCase();
373
- return (
374
- frame.method.toLowerCase().includes(q) ||
375
- frame.file.toLowerCase().includes(q)
376
- );
377
- })
378
- .map((frame, index) => {
379
- const isOrigin = index === 0 && frame.isAppCode;
380
- return (
381
- <View
382
- key={`frame_${index}`}
383
- style={[
384
- localStyles.frameCard,
385
- isOrigin && localStyles.originFrameCard,
386
- ]}>
387
- <View style={localStyles.frameCardHeader}>
388
- <View style={localStyles.frameIndexBadge}>
389
- <Text style={localStyles.frameIndexBadgeText}>
390
- #{index + 1}
391
- </Text>
392
- </View>
393
- <View
394
- style={[
395
- localStyles.frameTypeBadge,
396
- frame.isAppCode
397
- ? {backgroundColor: '#ECFDF5', borderColor: '#A7F3D0'}
398
- : {backgroundColor: '#F1F5F9', borderColor: '#E2E8F0'},
399
- ]}>
400
- <Text
401
- style={[
402
- localStyles.frameTypeBadgeText,
403
- frame.isAppCode
404
- ? {color: '#059669'}
405
- : {color: '#64748B'},
406
- ]}>
407
- {frame.isAppCode ? t('crash.frameApp') : t('crash.frameLib')}
408
- </Text>
409
- </View>
410
-
411
- <Text style={localStyles.frameMethodText} numberOfLines={1}>
412
- <HighlightText
413
- text={frame.method || t('crash.anonymous')}
414
- highlight={searchQuery}
415
- />
416
- </Text>
417
-
418
- <TouchableScale
419
- onPress={() => handleCopyFrame(frame, index)}
420
- hitSlop={8}
421
- style={localStyles.frameCopyBtn}>
422
- {copiedFrameIndex === index ? (
423
- <CircleCheckIcon color={AppColors.greenColor} size={12} />
424
- ) : (
425
- <CopyIcon color={AppColors.grayText} size={12} />
426
- )}
427
- <Text style={localStyles.frameCopyBtnText}>
428
- {copiedFrameIndex === index
429
- ? t('crash.frameCopied')
430
- : t('crash.frameCopy')}
431
- </Text>
432
- </TouchableScale>
433
- </View>
434
-
435
- <View style={localStyles.frameLocationRow}>
436
- <Text style={localStyles.frameFileText} numberOfLines={1}>
437
- <HighlightText
438
- text={frame.file}
439
- highlight={searchQuery}
440
- />
441
- </Text>
442
- <Text style={localStyles.frameLineText}>
443
- :{frame.lineNumber}
444
- {frame.column ? `:${frame.column}` : ''}
445
- </Text>
446
- </View>
447
-
448
- {frame.raw && (
449
- <Text
450
- style={localStyles.frameRawText}
451
- numberOfLines={2}>
452
- {frame.raw}
453
- </Text>
454
- )}
455
- </View>
456
- );
457
- })
458
- ) : (
459
- <View style={localStyles.emptyContainer}>
460
- <Text style={localStyles.emptyText}>
461
- {selectedCrash.stack
462
- ? selectedCrash.stack
463
- : t('crash.noStackTrace')}
464
- </Text>
465
- </View>
466
- )}
467
-
468
- {selectedCrash.componentStack && (
469
- <View style={localStyles.sectionCard}>
470
- <View style={localStyles.sectionCardHeader}>
471
- <LayersIcon color={AppColors.purple} size={14} />
472
- <Text style={localStyles.sectionCardTitle}>
473
- {t('crash.componentHierarchy')}
474
- </Text>
475
- </View>
476
- <Text style={localStyles.componentStackText}>
477
- {selectedCrash.componentStack}
478
- </Text>
479
- </View>
480
- )}
481
- </View>
482
- )}
483
-
484
- {/* 2. DIAGNOSTICS TAB */}
485
- {activeSubTab === 'diagnostics' && (
486
- <View style={{gap: 12}}>
487
- {/* Device & OS Diagnostics Card */}
488
- <View style={localStyles.sectionCard}>
489
- <View
490
- style={[
491
- localStyles.sectionCardHeader,
492
- {justifyContent: 'space-between'},
493
- ]}>
494
- <View
495
- style={{flexDirection: 'row', alignItems: 'center', gap: 6}}>
496
- <GlobeIcon color={AppColors.purple} size={14} />
497
- <Text style={localStyles.sectionCardTitle}>
498
- {t('crash.deviceEnvironment')}
499
- </Text>
500
- </View>
501
- <CopyButton
502
- value={
503
- selectedCrash.deviceInfo || {
504
- platform: Platform.OS,
505
- osVersion: String(Platform.Version),
506
- }
507
- }
508
- label="Diagnostics"
509
- />
510
- </View>
511
-
512
- <View style={localStyles.diagGrid}>
513
- <View style={localStyles.diagItem}>
514
- <Text style={localStyles.diagLabel}>{t('crash.platform')}</Text>
515
- <Text style={localStyles.diagValue}>
516
- {selectedCrash.deviceInfo?.platform?.toUpperCase() || Platform.OS.toUpperCase()}
517
- </Text>
518
- </View>
519
-
520
- <View style={localStyles.diagItem}>
521
- <Text style={localStyles.diagLabel}>{t('crash.osVersion')}</Text>
522
- <Text style={localStyles.diagValue}>
523
- {selectedCrash.deviceInfo?.osVersion || String(Platform.Version)}
524
- </Text>
525
- </View>
526
-
527
- <View style={localStyles.diagItem}>
528
- <Text style={localStyles.diagLabel}>{t('crash.reactNative')}</Text>
529
- <Text style={localStyles.diagValue}>
530
- {selectedCrash.deviceInfo?.rnVersion || '0.74+'}
531
- </Text>
532
- </View>
533
-
534
- <View style={localStyles.diagItem}>
535
- <Text style={localStyles.diagLabel}>{t('crash.jsEngine')}</Text>
536
- <Text style={localStyles.diagValue}>
537
- {selectedCrash.deviceInfo?.isHermes ? t('crash.hermesEngine') : t('crash.jsc')}
538
- </Text>
539
- </View>
540
-
541
- <View style={localStyles.diagItem}>
542
- <Text style={localStyles.diagLabel}>{t('crash.architecture')}</Text>
543
- <Text style={localStyles.diagValue}>
544
- {selectedCrash.deviceInfo?.isFabric ? t('crash.fabricNewArch') : t('crash.paperLegacy')}
545
- </Text>
546
- </View>
547
-
548
- <View style={localStyles.diagItem}>
549
- <Text style={localStyles.diagLabel}>{t('crash.appState')}</Text>
550
- <Text style={localStyles.diagValue}>
551
- {selectedCrash.deviceInfo?.appState || 'active'}
552
- </Text>
553
- </View>
554
- </View>
555
- </View>
556
-
557
- {/* Memory Metrics Card */}
558
- {selectedCrash.memoryInfo && (
559
- <View style={localStyles.sectionCard}>
560
- <View
561
- style={[
562
- localStyles.sectionCardHeader,
563
- {justifyContent: 'space-between'},
564
- ]}>
565
- <View
566
- style={{flexDirection: 'row', alignItems: 'center', gap: 6}}>
567
- <LayersIcon color={AppColors.purple} size={14} />
568
- <Text style={localStyles.sectionCardTitle}>
569
- {t('crash.jsHeapMemory')}
570
- </Text>
571
- </View>
572
- <CopyButton
573
- value={selectedCrash.memoryInfo}
574
- label="Memory Info"
575
- />
576
- </View>
577
-
578
- <View style={localStyles.diagGrid}>
579
- <View style={localStyles.diagItem}>
580
- <Text style={localStyles.diagLabel}>{t('crash.usedHeap')}</Text>
581
- <Text style={localStyles.diagValue}>
582
- {selectedCrash.memoryInfo.usedJSHeapSize} MB
583
- </Text>
584
- </View>
585
-
586
- <View style={localStyles.diagItem}>
587
- <Text style={localStyles.diagLabel}>{t('crash.totalHeap')}</Text>
588
- <Text style={localStyles.diagValue}>
589
- {selectedCrash.memoryInfo.totalJSHeapSize} MB
590
- </Text>
591
- </View>
592
- </View>
593
- </View>
594
- )}
595
- </View>
596
- )}
597
-
598
- {/* 3. BREADCRUMBS TAB */}
599
- {activeSubTab === 'breadcrumbs' && (
600
- <View style={{gap: 10}}>
601
- {selectedCrash.breadcrumbs && selectedCrash.breadcrumbs.length > 0 && (
602
- <View
603
- style={{
604
- flexDirection: 'row',
605
- justifyContent: 'flex-end',
606
- marginBottom: 2,
607
- }}>
608
- <CopyButton
609
- value={selectedCrash.breadcrumbs}
610
- label="All Breadcrumbs"
611
- />
612
- </View>
613
- )}
614
- {selectedCrash.breadcrumbs && selectedCrash.breadcrumbs.length > 0 ? (
615
- selectedCrash.breadcrumbs.map((b, idx) => (
616
- <View key={`crumb_${idx}`} style={localStyles.breadcrumbCard}>
617
- <View style={localStyles.breadcrumbHeader}>
618
- <View style={localStyles.breadcrumbTag}>
619
- <Text style={localStyles.breadcrumbTagText}>
620
- {b.type.toUpperCase()}
621
- </Text>
622
- </View>
623
- <View
624
- style={{
625
- flexDirection: 'row',
626
- alignItems: 'center',
627
- gap: 8,
628
- }}>
629
- <Text style={localStyles.breadcrumbTime}>
630
- {new Date(b.timestamp).toLocaleTimeString()}
631
- </Text>
632
- <CopyButton
633
- value={`${new Date(b.timestamp).toLocaleTimeString()} [${b.type.toUpperCase()}] ${b.message}${b.data ? ' ' + JSON.stringify(b.data) : ''}`}
634
- label="Breadcrumb"
635
- />
636
- </View>
637
- </View>
638
- <Text style={localStyles.breadcrumbMessage}>{b.message}</Text>
639
- {b.data && (
640
- <View style={{marginTop: 6}}>
641
- <JsonViewer data={b.data} search="" wrap />
642
- </View>
643
- )}
644
- </View>
645
- ))
646
- ) : (
647
- <View style={localStyles.emptyContainer}>
648
- <Text style={localStyles.emptyText}>
649
- {t('crash.noBreadcrumbs')}
650
- </Text>
651
- </View>
652
- )}
653
- </View>
654
- )}
655
-
656
- {/* 4. RAW JSON TAB */}
657
- {activeSubTab === 'raw' && (
658
- <View style={localStyles.rawContainer}>
659
- <JsonViewer
660
- data={rawCrashData}
661
- search={searchQuery}
662
- wrap
663
- />
664
- </View>
665
- )}
666
- </ScrollView>
667
- </View>
668
- );
669
- });
670
-
671
- export default CrashDetail;
672
-
673
- const localStyles = StyleSheet.create({
674
- infoBar: {
675
- backgroundColor: AppColors.primaryLight,
676
- borderRadius: 12,
677
- padding: 12,
678
- borderWidth: 1,
679
- borderColor: AppColors.grayBorderSecondary,
680
- shadowColor: AppColors.black,
681
- shadowOffset: {width: 0, height: 1},
682
- shadowOpacity: 0.05,
683
- shadowRadius: 3,
684
- elevation: 2,
685
- gap: 8,
686
- },
687
- badgeRow: {
688
- flexDirection: 'row',
689
- alignItems: 'center',
690
- gap: 8,
691
- },
692
- pillBadge: {
693
- flexDirection: 'row',
694
- alignItems: 'center',
695
- paddingHorizontal: 8,
696
- paddingVertical: 3,
697
- borderRadius: 12,
698
- borderWidth: 1,
699
- gap: 5,
700
- },
701
- statusDot: {
702
- width: 6,
703
- height: 6,
704
- borderRadius: 3,
705
- },
706
- pillBadgeText: {
707
- fontFamily: AppFonts.interBold,
708
- fontSize: 9.5,
709
- letterSpacing: 0.4,
710
- },
711
- actionButton: {
712
- flexDirection: 'row',
713
- alignItems: 'center',
714
- gap: 4,
715
- backgroundColor: `${AppColors.purple}14`,
716
- borderColor: `${AppColors.purple}33`,
717
- borderWidth: 1,
718
- paddingHorizontal: 8,
719
- paddingVertical: 4,
720
- borderRadius: 8,
721
- },
722
- actionButtonText: {
723
- fontFamily: AppFonts.interBold,
724
- fontSize: 10.5,
725
- color: AppColors.purple,
726
- },
727
- titleText: {
728
- fontFamily: AppFonts.interBold,
729
- fontSize: 14,
730
- color: AppColors.primaryBlack,
731
- lineHeight: 19,
732
- },
733
- metaRow: {
734
- flexDirection: 'row',
735
- alignItems: 'center',
736
- gap: 6,
737
- paddingVertical: 2,
738
- },
739
- metaChip: {
740
- flexDirection: 'row',
741
- alignItems: 'center',
742
- gap: 4,
743
- backgroundColor: AppColors.grayBackground,
744
- paddingHorizontal: 7,
745
- paddingVertical: 3,
746
- borderRadius: 6,
747
- borderWidth: 1,
748
- borderColor: AppColors.dividerColor,
749
- },
750
- metaChipText: {
751
- fontFamily: AppFonts.interMedium,
752
- fontSize: 10,
753
- color: AppColors.grayText,
754
- },
755
- searchContainer: {
756
- flexDirection: 'row',
757
- alignItems: 'center',
758
- backgroundColor: AppColors.primaryLight,
759
- borderWidth: 1,
760
- borderColor: AppColors.grayBorderSecondary,
761
- borderRadius: 8,
762
- paddingHorizontal: 10,
763
- height: 36,
764
- gap: 8,
765
- },
766
- searchInput: {
767
- flex: 1,
768
- fontFamily: AppFonts.interRegular,
769
- fontSize: 12,
770
- color: AppColors.primaryBlack,
771
- paddingVertical: 0,
772
- },
773
- filterChipsRow: {
774
- flexDirection: 'row',
775
- alignItems: 'center',
776
- gap: 8,
777
- },
778
- filterChip: {
779
- flexDirection: 'row',
780
- alignItems: 'center',
781
- gap: 5,
782
- paddingHorizontal: 10,
783
- paddingVertical: 5,
784
- borderRadius: 8,
785
- backgroundColor: AppColors.primaryLight,
786
- borderWidth: 1,
787
- borderColor: AppColors.grayBorderSecondary,
788
- },
789
- filterChipActive: {
790
- backgroundColor: AppColors.purple,
791
- borderColor: AppColors.purple,
792
- },
793
- filterChipText: {
794
- fontFamily: AppFonts.interMedium,
795
- fontSize: 11,
796
- color: AppColors.grayText,
797
- },
798
- filterChipTextActive: {
799
- fontFamily: AppFonts.interBold,
800
- color: AppColors.white,
801
- },
802
- frameCard: {
803
- backgroundColor: AppColors.primaryLight,
804
- borderRadius: 8,
805
- padding: 10,
806
- borderWidth: 1,
807
- borderColor: AppColors.grayBorderSecondary,
808
- gap: 4,
809
- },
810
- originFrameCard: {
811
- borderColor: '#6EE7B7',
812
- backgroundColor: '#F0FDF4',
813
- },
814
- frameCardHeader: {
815
- flexDirection: 'row',
816
- alignItems: 'center',
817
- gap: 8,
818
- },
819
- frameIndexBadge: {
820
- minWidth: 24,
821
- height: 18,
822
- paddingHorizontal: 4,
823
- borderRadius: 4,
824
- backgroundColor: `${AppColors.purple}14`,
825
- alignItems: 'center',
826
- justifyContent: 'center',
827
- },
828
- frameIndexBadgeText: {
829
- fontFamily: AppFonts.interBold,
830
- fontSize: 9,
831
- color: AppColors.purple,
832
- },
833
- frameTypeBadge: {
834
- paddingHorizontal: 5,
835
- paddingVertical: 2,
836
- borderRadius: 4,
837
- borderWidth: 1,
838
- },
839
- frameTypeBadgeText: {
840
- fontFamily: AppFonts.interBold,
841
- fontSize: 8.5,
842
- },
843
- frameMethodText: {
844
- fontFamily: AppFonts.interBold,
845
- fontSize: 12,
846
- color: AppColors.primaryBlack,
847
- flex: 1,
848
- },
849
- frameLocationRow: {
850
- flexDirection: 'row',
851
- alignItems: 'center',
852
- },
853
- frameFileText: {
854
- fontFamily: AppFonts.interRegular,
855
- fontSize: 11,
856
- color: AppColors.grayText,
857
- flex: 1,
858
- },
859
- frameLineText: {
860
- fontFamily: AppFonts.interBold,
861
- fontSize: 11,
862
- color: AppColors.purple,
863
- },
864
- frameCopyBtn: {
865
- flexDirection: 'row',
866
- alignItems: 'center',
867
- gap: 3,
868
- paddingHorizontal: 6,
869
- paddingVertical: 3,
870
- borderRadius: 5,
871
- backgroundColor: AppColors.grayBackground,
872
- borderWidth: 1,
873
- borderColor: AppColors.dividerColor,
874
- },
875
- frameCopyBtnText: {
876
- fontFamily: AppFonts.interBold,
877
- fontSize: 9,
878
- color: AppColors.grayText,
879
- },
880
- frameRawText: {
881
- fontFamily: AppFonts.interRegular,
882
- fontSize: 9.5,
883
- color: AppColors.grayTextWeak,
884
- backgroundColor: `${AppColors.primaryBlack}06`,
885
- borderRadius: 5,
886
- paddingHorizontal: 7,
887
- paddingVertical: 4,
888
- overflow: 'hidden',
889
- },
890
- componentStackText: {
891
- fontFamily: AppFonts.interRegular,
892
- fontSize: 11,
893
- lineHeight: 16,
894
- color: AppColors.grayText,
895
- backgroundColor: `${AppColors.primaryBlack}06`,
896
- borderRadius: 6,
897
- padding: 10,
898
- },
899
- sectionCard: {
900
- backgroundColor: AppColors.primaryLight,
901
- borderRadius: 10,
902
- padding: 12,
903
- borderWidth: 1,
904
- borderColor: AppColors.grayBorderSecondary,
905
- gap: 10,
906
- },
907
- sectionCardHeader: {
908
- flexDirection: 'row',
909
- alignItems: 'center',
910
- gap: 6,
911
- paddingBottom: 6,
912
- borderBottomWidth: 1,
913
- borderBottomColor: AppColors.dividerColor,
914
- },
915
- sectionCardTitle: {
916
- fontFamily: AppFonts.interBold,
917
- fontSize: 12.5,
918
- color: AppColors.primaryBlack,
919
- },
920
- diagGrid: {
921
- flexDirection: 'row',
922
- flexWrap: 'wrap',
923
- rowGap: 8,
924
- columnGap: 12,
925
- },
926
- diagItem: {
927
- width: '47%',
928
- gap: 2,
929
- },
930
- diagLabel: {
931
- fontFamily: AppFonts.interRegular,
932
- fontSize: 10,
933
- color: AppColors.grayTextWeak,
934
- },
935
- diagValue: {
936
- fontFamily: AppFonts.interBold,
937
- fontSize: 11.5,
938
- color: AppColors.primaryBlack,
939
- },
940
- breadcrumbCard: {
941
- backgroundColor: AppColors.primaryLight,
942
- borderRadius: 8,
943
- padding: 10,
944
- borderWidth: 1,
945
- borderColor: AppColors.grayBorderSecondary,
946
- gap: 4,
947
- },
948
- breadcrumbHeader: {
949
- flexDirection: 'row',
950
- alignItems: 'center',
951
- justifyContent: 'space-between',
952
- },
953
- breadcrumbTag: {
954
- backgroundColor: `${AppColors.purple}14`,
955
- paddingHorizontal: 6,
956
- paddingVertical: 2,
957
- borderRadius: 4,
958
- },
959
- breadcrumbTagText: {
960
- fontFamily: AppFonts.interBold,
961
- fontSize: 9,
962
- color: AppColors.purple,
963
- },
964
- breadcrumbTime: {
965
- fontFamily: AppFonts.interRegular,
966
- fontSize: 10,
967
- color: AppColors.grayTextWeak,
968
- },
969
- breadcrumbMessage: {
970
- fontFamily: AppFonts.interRegular,
971
- fontSize: 11.5,
972
- color: AppColors.primaryBlack,
973
- marginTop: 2,
974
- },
975
- rawContainer: {
976
- backgroundColor: AppColors.primaryLight,
977
- borderRadius: 10,
978
- padding: 10,
979
- borderWidth: 1,
980
- borderColor: AppColors.grayBorderSecondary,
981
- },
982
- emptyContainer: {
983
- padding: 16,
984
- alignItems: 'center',
985
- justifyContent: 'center',
986
- backgroundColor: AppColors.primaryLight,
987
- borderRadius: 8,
988
- borderWidth: 1,
989
- borderColor: AppColors.grayBorderSecondary,
990
- },
991
- emptyText: {
992
- fontFamily: AppFonts.interRegular,
993
- fontSize: 11,
994
- color: AppColors.grayText,
995
- textAlign: 'center',
996
- },
997
- });