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,317 +1,92 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.isCrashFiltersDefault = exports.DEFAULT_CRASH_FILTERS = void 0;
40
- const react_1 = __importStar(require("react"));
41
- const react_native_1 = require("react-native");
42
- const InspectorContext_1 = require("./InspectorContext");
43
- const AppColors_1 = require("../../styles/AppColors");
44
- const AppFonts_1 = require("../../styles/AppFonts");
45
- const i18n_1 = require("../../i18n");
46
- const NetworkIcons_1 = require("../NetworkIcons");
47
- const TouchableScale_1 = __importDefault(require("../TouchableScale"));
48
- exports.DEFAULT_CRASH_FILTERS = {
49
- types: new Set(['all']),
50
- timeWindow: 'all',
51
- platform: 'all',
52
- engine: 'all',
53
- sortBy: 'time_desc',
54
- };
55
- const isCrashFiltersDefault = (f) => (f.types.has('all') || f.types.size === 0) &&
56
- f.timeWindow === 'all' &&
57
- f.platform === 'all' &&
58
- f.engine === 'all' &&
59
- f.sortBy === 'time_desc';
60
- exports.isCrashFiltersDefault = isCrashFiltersDefault;
61
- const CrashFilterModal = ({ visible, onClose, filters, onApply, searchQuery = '', }) => {
62
- const { t } = (0, i18n_1.useTranslation)();
63
- const { crashRecords } = (0, InspectorContext_1.useInspector)();
64
- const [draft, setDraft] = (0, react_1.useState)(() => ({
65
- ...filters,
66
- types: new Set(filters.types),
67
- }));
68
- (0, react_1.useEffect)(() => {
69
- if (visible) {
70
- setDraft({
71
- ...filters,
72
- types: new Set(filters.types),
73
- });
74
- }
75
- }, [visible]);
76
- const toggleType = (key) => {
77
- setDraft(prev => {
78
- const next = new Set(prev.types);
79
- if (key === 'all') {
80
- return { ...prev, types: new Set(['all']) };
81
- }
82
- next.delete('all');
83
- if (next.has(key)) {
84
- next.delete(key);
85
- if (next.size === 0)
86
- next.add('all');
87
- }
88
- else {
89
- next.add(key);
90
- }
91
- return { ...prev, types: next };
92
- });
93
- };
94
- const setTimeWindow = (tw) => {
95
- setDraft(prev => ({ ...prev, timeWindow: tw }));
96
- };
97
- const setPlatform = (p) => {
98
- setDraft(prev => ({ ...prev, platform: p }));
99
- };
100
- const setEngine = (e) => {
101
- setDraft(prev => ({ ...prev, engine: e }));
102
- };
103
- const setSort = (sortBy) => {
104
- setDraft(prev => ({ ...prev, sortBy }));
105
- };
106
- const handleResetDraft = () => {
107
- setDraft({
108
- ...exports.DEFAULT_CRASH_FILTERS,
109
- types: new Set(exports.DEFAULT_CRASH_FILTERS.types),
110
- });
111
- };
112
- const handleApply = () => {
113
- onApply({
114
- ...draft,
115
- types: new Set(draft.types),
116
- });
117
- onClose();
118
- };
119
- const handleDiscard = () => {
120
- setDraft({
121
- ...filters,
122
- types: new Set(filters.types),
123
- });
124
- onClose();
125
- };
126
- const draftMatchCount = (0, react_1.useMemo)(() => {
127
- let crashes = crashRecords;
128
- if (searchQuery.trim().length > 0) {
129
- const q = searchQuery.toLowerCase();
130
- crashes = crashes.filter(c => (c.message || '').toLowerCase().includes(q) ||
131
- (c.name || '').toLowerCase().includes(q) ||
132
- (c.stack || '').toLowerCase().includes(q));
133
- }
134
- if (draft.types.size > 0 && !draft.types.has('all')) {
135
- crashes = crashes.filter(c => {
136
- if (draft.types.has('fatal') && c.isFatal)
137
- return true;
138
- if (draft.types.has('js') && c.type === 'js')
139
- return true;
140
- if (draft.types.has('promise') && c.type === 'promise')
141
- return true;
142
- if (draft.types.has('render') && c.type === 'render')
143
- return true;
144
- if (draft.types.has('native') && c.type === 'native')
145
- return true;
146
- return false;
147
- });
148
- }
149
- if (draft.timeWindow !== 'all') {
150
- const now = Date.now();
151
- const cutoff = draft.timeWindow === '15m'
152
- ? now - 15 * 60 * 1000
153
- : draft.timeWindow === '1h'
154
- ? now - 60 * 60 * 1000
155
- : draft.timeWindow === '24h'
156
- ? now - 24 * 60 * 60 * 1000
157
- : now - 7 * 24 * 60 * 60 * 1000;
158
- crashes = crashes.filter(c => c.timestamp >= cutoff);
159
- }
160
- if (draft.platform !== 'all') {
161
- crashes = crashes.filter(c => (c.deviceInfo?.platform || '').toLowerCase() === draft.platform);
162
- }
163
- if (draft.engine !== 'all') {
164
- crashes = crashes.filter(c => {
165
- const isHermes = c.deviceInfo?.isHermes;
166
- if (draft.engine === 'hermes')
167
- return isHermes === true;
168
- return isHermes === false || isHermes === undefined;
169
- });
170
- }
171
- return crashes.length;
172
- }, [crashRecords, searchQuery, draft]);
173
- const isAllTypes = draft.types.has('all') || draft.types.size === 0;
174
- const typeChips = [
175
- { key: 'all', label: t('crash.filterTypeAll'), Icon: NetworkIcons_1.FilterIcon, color: AppColors_1.AppColors.grayTextStrong },
176
- { key: 'fatal', label: t('crash.filterFatal'), Icon: NetworkIcons_1.SkullIcon, color: AppColors_1.AppColors.errorColor },
177
- { key: 'js', label: t('crash.filterJsError'), Icon: NetworkIcons_1.JsIcon, color: AppColors_1.AppColors.sky600 },
178
- { key: 'promise', label: t('crash.filterPromise'), Icon: NetworkIcons_1.HourglassIcon, color: AppColors_1.AppColors.darkOrange },
179
- { key: 'render', label: t('crash.filterRender'), Icon: NetworkIcons_1.LayoutIcon, color: AppColors_1.AppColors.purple },
180
- { key: 'native', label: t('crash.filterNative'), Icon: NetworkIcons_1.ChipIcon, color: AppColors_1.AppColors.amber700 },
181
- ];
182
- return (<react_native_1.Modal visible={visible} transparent animationType="fade" onRequestClose={handleDiscard}>
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,i,a,n){n===void 0&&(n=a);var s=Object.getOwnPropertyDescriptor(i,a);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(o,n,s)}):(function(o,i,a,n){n===void 0&&(n=a),o[n]=i[a]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}):function(o,i){o.default=i}),__importStar=this&&this.__importStar||(function(){var o=function(i){return o=Object.getOwnPropertyNames||function(a){var n=[];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[n.length]=s);return n},o(i)};return function(i){if(i&&i.__esModule)return i;var a={};if(i!=null)for(var n=o(i),s=0;s<n.length;s++)n[s]!=="default"&&__createBinding(a,i,n[s]);return __setModuleDefault(a,i),a}})(),__importDefault=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.isCrashFiltersDefault=exports.DEFAULT_CRASH_FILTERS=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),InspectorContext_1=require("./InspectorContext"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),i18n_1=require("../../i18n"),NetworkIcons_1=require("../NetworkIcons"),TouchableScale_1=__importDefault(require("../TouchableScale"));exports.DEFAULT_CRASH_FILTERS={types:new Set(["all"]),timeWindow:"all",platform:"all",engine:"all",sortBy:"time_desc"};const isCrashFiltersDefault=o=>(o.types.has("all")||o.types.size===0)&&o.timeWindow==="all"&&o.platform==="all"&&o.engine==="all"&&o.sortBy==="time_desc";exports.isCrashFiltersDefault=isCrashFiltersDefault;const CrashFilterModal=({visible:o,onClose:i,filters:a,onApply:n,searchQuery:s=""})=>{const{t:l}=(0,i18n_1.useTranslation)(),{crashRecords:u}=(0,InspectorContext_1.useInspector)(),[e,p]=(0,react_1.useState)(()=>({...a,types:new Set(a.types)}));(0,react_1.useEffect)(()=>{o&&p({...a,types:new Set(a.types)})},[o]);const h=t=>{p(r=>{const c=new Set(r.types);return t==="all"?{...r,types:new Set(["all"])}:(c.delete("all"),c.has(t)?(c.delete(t),c.size===0&&c.add("all")):c.add(t),{...r,types:c})})},T=t=>{p(r=>({...r,timeWindow:t}))},f=t=>{p(r=>({...r,platform:t}))},y=t=>{p(r=>({...r,engine:t}))},_=t=>{p(r=>({...r,sortBy:t}))},w=()=>{p({...exports.DEFAULT_CRASH_FILTERS,types:new Set(exports.DEFAULT_CRASH_FILTERS.types)})},C=()=>{n({...e,types:new Set(e.types)}),i()},d=()=>{p({...a,types:new Set(a.types)}),i()},x=(0,react_1.useMemo)(()=>{let t=u;if(s.trim().length>0){const r=s.toLowerCase();t=t.filter(c=>(c.message||"").toLowerCase().includes(r)||(c.name||"").toLowerCase().includes(r)||(c.stack||"").toLowerCase().includes(r))}if(e.types.size>0&&!e.types.has("all")&&(t=t.filter(r=>!!(e.types.has("fatal")&&r.isFatal||e.types.has("js")&&r.type==="js"||e.types.has("promise")&&r.type==="promise"||e.types.has("render")&&r.type==="render"||e.types.has("native")&&r.type==="native"))),e.timeWindow!=="all"){const r=Date.now(),c=e.timeWindow==="15m"?r-900*1e3:e.timeWindow==="1h"?r-3600*1e3:e.timeWindow==="24h"?r-1440*60*1e3:r-10080*60*1e3;t=t.filter(v=>v.timestamp>=c)}return e.platform!=="all"&&(t=t.filter(r=>(r.deviceInfo?.platform||"").toLowerCase()===e.platform)),e.engine!=="all"&&(t=t.filter(r=>{const c=r.deviceInfo?.isHermes;return e.engine==="hermes"?c===!0:c===!1||c===void 0})),t.length},[u,s,e]),A=e.types.has("all")||e.types.size===0,g=[{key:"all",label:l("crash.filterTypeAll"),Icon:NetworkIcons_1.FilterIcon,color:AppColors_1.AppColors.grayTextStrong},{key:"fatal",label:l("crash.filterFatal"),Icon:NetworkIcons_1.SkullIcon,color:AppColors_1.AppColors.errorColor},{key:"js",label:l("crash.filterJsError"),Icon:NetworkIcons_1.JsIcon,color:AppColors_1.AppColors.sky600},{key:"promise",label:l("crash.filterPromise"),Icon:NetworkIcons_1.HourglassIcon,color:AppColors_1.AppColors.darkOrange},{key:"render",label:l("crash.filterRender"),Icon:NetworkIcons_1.LayoutIcon,color:AppColors_1.AppColors.purple},{key:"native",label:l("crash.filterNative"),Icon:NetworkIcons_1.ChipIcon,color:AppColors_1.AppColors.amber700}];return<react_native_1.Modal visible={o}transparent animationType="fade"onRequestClose={d}>
183
2
  <react_native_1.View style={styles.backdrop}>
184
- <react_native_1.Pressable style={react_native_1.StyleSheet.absoluteFill} onPress={handleDiscard}/>
3
+ <react_native_1.Pressable style={react_native_1.StyleSheet.absoluteFill}onPress={d}/>
185
4
 
186
5
  <react_native_1.View style={styles.modalCard}>
187
6
  <react_native_1.View style={styles.header}>
188
- <react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
7
+ <react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8}}>
189
8
  <react_native_1.View style={styles.headerIconBox}>
190
- <NetworkIcons_1.FilterIcon color={AppColors_1.AppColors.brandPurple} size={15}/>
9
+ <NetworkIcons_1.FilterIcon color={AppColors_1.AppColors.brandPurple}size={15}/>
191
10
  </react_native_1.View>
192
11
  <react_native_1.View>
193
- <react_native_1.Text style={styles.headerTitle}>{t('crash.filterTitle')}</react_native_1.Text>
12
+ <react_native_1.Text style={styles.headerTitle}>{l("crash.filterTitle")}</react_native_1.Text>
194
13
  <react_native_1.Text style={styles.headerSubtitle}>
195
- {t('crash.filterSubtitle')}
14
+ {l("crash.filterSubtitle")}
196
15
  </react_native_1.Text>
197
16
  </react_native_1.View>
198
17
  </react_native_1.View>
199
18
 
200
- <react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
201
- <react_native_1.TouchableOpacity onPress={handleResetDraft} hitSlop={8} style={styles.resetBtn}>
202
- <react_native_1.Text style={styles.resetBtnText}>{t('crash.filterReset')}</react_native_1.Text>
19
+ <react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8}}>
20
+ <react_native_1.TouchableOpacity onPress={w}hitSlop={8}style={styles.resetBtn}>
21
+ <react_native_1.Text style={styles.resetBtnText}>{l("crash.filterReset")}</react_native_1.Text>
203
22
  </react_native_1.TouchableOpacity>
204
23
 
205
- <react_native_1.TouchableOpacity onPress={handleDiscard} hitSlop={10} style={styles.closeBtn}>
206
- <NetworkIcons_1.CloseWhite />
24
+ <react_native_1.TouchableOpacity onPress={d}hitSlop={10}style={styles.closeBtn}>
25
+ <NetworkIcons_1.CloseWhite/>
207
26
  </react_native_1.TouchableOpacity>
208
27
  </react_native_1.View>
209
28
  </react_native_1.View>
210
29
 
211
- <react_native_1.ScrollView style={{ maxHeight: 460 }} contentContainerStyle={styles.scrollContent} showsVerticalScrollIndicator={true}>
30
+ <react_native_1.ScrollView style={{maxHeight:460}}contentContainerStyle={styles.scrollContent}showsVerticalScrollIndicator={!0}>
212
31
  <react_native_1.View style={styles.section}>
213
32
  <react_native_1.View style={styles.sectionHeaderRow}>
214
- <NetworkIcons_1.SkullIcon color={AppColors_1.AppColors.grayTextWeak} size={12}/>
33
+ <NetworkIcons_1.SkullIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
215
34
  <react_native_1.Text style={styles.sectionTitle}>
216
- {t('crash.filterTypeSection')}
35
+ {l("crash.filterTypeSection")}
217
36
  </react_native_1.Text>
218
37
  </react_native_1.View>
219
38
  <react_native_1.View style={styles.chipsWrap}>
220
- {typeChips.map(chip => {
221
- const isSelected = chip.key === 'all' ? isAllTypes : draft.types.has(chip.key);
222
- return (<TouchableScale_1.default key={chip.key} onPress={() => toggleType(chip.key)} style={[
223
- styles.filterPill,
224
- isSelected && styles.filterPillActive,
225
- ]}>
226
- {chip.key === 'all' && isSelected && (<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.white} size={12}/>)}
227
- <chip.Icon size={12} color={isSelected ? AppColors_1.AppColors.white : chip.color}/>
228
- <react_native_1.Text style={[
229
- styles.filterPillText,
230
- isSelected && styles.filterPillTextActive,
231
- ]}>
232
- {chip.label}
39
+ {g.map(t=>{const r=t.key==="all"?A:e.types.has(t.key);return<TouchableScale_1.default key={t.key}onPress={()=>h(t.key)}style={[styles.filterPill,r&&styles.filterPillActive]}>
40
+ {t.key==="all"&&r&&<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.white}size={12}/>}
41
+ <t.Icon size={12}color={r?AppColors_1.AppColors.white:t.color}/>
42
+ <react_native_1.Text style={[styles.filterPillText,r&&styles.filterPillTextActive]}>
43
+ {t.label}
233
44
  </react_native_1.Text>
234
- </TouchableScale_1.default>);
235
- })}
45
+ </TouchableScale_1.default>})}
236
46
  </react_native_1.View>
237
47
  </react_native_1.View>
238
48
 
239
49
  <react_native_1.View style={styles.section}>
240
50
  <react_native_1.View style={styles.sectionHeaderRow}>
241
- <NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak} size={12}/>
51
+ <NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
242
52
  <react_native_1.Text style={styles.sectionTitle}>
243
- {t('crash.filterTimeSection')}
53
+ {l("crash.filterTimeSection")}
244
54
  </react_native_1.Text>
245
55
  </react_native_1.View>
246
56
  <react_native_1.View style={styles.chipsWrap}>
247
- {[
248
- { key: 'all', label: t('crash.filterTimeAll') },
249
- { key: '15m', label: t('crash.filterTime15m') },
250
- { key: '1h', label: t('crash.filterTime1h') },
251
- { key: '24h', label: t('crash.filterTime24h') },
252
- { key: '7d', label: t('crash.filterTime7d') },
253
- ].map(item => (<TouchableScale_1.default key={item.key} onPress={() => setTimeWindow(item.key)} style={[
254
- styles.filterPill,
255
- draft.timeWindow === item.key && styles.filterPillActive,
256
- ]}>
257
- <react_native_1.Text style={[
258
- styles.filterPillText,
259
- draft.timeWindow === item.key &&
260
- styles.filterPillTextActive,
261
- ]}>
262
- {item.label}
57
+ {[{key:"all",label:l("crash.filterTimeAll")},{key:"15m",label:l("crash.filterTime15m")},{key:"1h",label:l("crash.filterTime1h")},{key:"24h",label:l("crash.filterTime24h")},{key:"7d",label:l("crash.filterTime7d")}].map(t=><TouchableScale_1.default key={t.key}onPress={()=>T(t.key)}style={[styles.filterPill,e.timeWindow===t.key&&styles.filterPillActive]}>
58
+ <react_native_1.Text style={[styles.filterPillText,e.timeWindow===t.key&&styles.filterPillTextActive]}>
59
+ {t.label}
263
60
  </react_native_1.Text>
264
- </TouchableScale_1.default>))}
61
+ </TouchableScale_1.default>)}
265
62
  </react_native_1.View>
266
63
  </react_native_1.View>
267
64
 
268
65
  <react_native_1.View style={styles.section}>
269
66
  <react_native_1.View style={styles.sectionHeaderRow}>
270
- <NetworkIcons_1.AppleIcon color={AppColors_1.AppColors.grayTextWeak} size={12}/>
67
+ <NetworkIcons_1.AppleIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
271
68
  <react_native_1.Text style={styles.sectionTitle}>
272
- {t('crash.filterPlatformSection')}
69
+ {l("crash.filterPlatformSection")}
273
70
  </react_native_1.Text>
274
71
  </react_native_1.View>
275
72
  <react_native_1.View style={styles.chipsWrap}>
276
- <TouchableScale_1.default onPress={() => setPlatform('all')} style={[
277
- styles.filterPill,
278
- draft.platform === 'all' && styles.filterPillActive,
279
- ]}>
280
- <react_native_1.Text style={[
281
- styles.filterPillText,
282
- draft.platform === 'all' && styles.filterPillTextActive,
283
- ]}>
284
- {t('crash.filterPlatformAll')}
73
+ <TouchableScale_1.default onPress={()=>f("all")}style={[styles.filterPill,e.platform==="all"&&styles.filterPillActive]}>
74
+ <react_native_1.Text style={[styles.filterPillText,e.platform==="all"&&styles.filterPillTextActive]}>
75
+ {l("crash.filterPlatformAll")}
285
76
  </react_native_1.Text>
286
77
  </TouchableScale_1.default>
287
78
 
288
- <TouchableScale_1.default onPress={() => setPlatform('ios')} style={[
289
- styles.filterPill,
290
- draft.platform === 'ios' && styles.filterPillActive,
291
- ]}>
292
- <NetworkIcons_1.AppleIcon size={12} color={draft.platform === 'ios'
293
- ? AppColors_1.AppColors.white
294
- : AppColors_1.AppColors.grayTextStrong}/>
295
- <react_native_1.Text style={[
296
- styles.filterPillText,
297
- draft.platform === 'ios' && styles.filterPillTextActive,
298
- ]}>
299
- {t('crash.filterPlatformIos')}
79
+ <TouchableScale_1.default onPress={()=>f("ios")}style={[styles.filterPill,e.platform==="ios"&&styles.filterPillActive]}>
80
+ <NetworkIcons_1.AppleIcon size={12}color={e.platform==="ios"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextStrong}/>
81
+ <react_native_1.Text style={[styles.filterPillText,e.platform==="ios"&&styles.filterPillTextActive]}>
82
+ {l("crash.filterPlatformIos")}
300
83
  </react_native_1.Text>
301
84
  </TouchableScale_1.default>
302
85
 
303
- <TouchableScale_1.default onPress={() => setPlatform('android')} style={[
304
- styles.filterPill,
305
- draft.platform === 'android' && styles.filterPillActive,
306
- ]}>
307
- <NetworkIcons_1.AndroidIcon size={12} color={draft.platform === 'android'
308
- ? AppColors_1.AppColors.white
309
- : AppColors_1.AppColors.greenColor}/>
310
- <react_native_1.Text style={[
311
- styles.filterPillText,
312
- draft.platform === 'android' && styles.filterPillTextActive,
313
- ]}>
314
- {t('crash.filterPlatformAndroid')}
86
+ <TouchableScale_1.default onPress={()=>f("android")}style={[styles.filterPill,e.platform==="android"&&styles.filterPillActive]}>
87
+ <NetworkIcons_1.AndroidIcon size={12}color={e.platform==="android"?AppColors_1.AppColors.white:AppColors_1.AppColors.greenColor}/>
88
+ <react_native_1.Text style={[styles.filterPillText,e.platform==="android"&&styles.filterPillTextActive]}>
89
+ {l("crash.filterPlatformAndroid")}
315
90
  </react_native_1.Text>
316
91
  </TouchableScale_1.default>
317
92
  </react_native_1.View>
@@ -319,48 +94,28 @@ const CrashFilterModal = ({ visible, onClose, filters, onApply, searchQuery = ''
319
94
 
320
95
  <react_native_1.View style={styles.section}>
321
96
  <react_native_1.View style={styles.sectionHeaderRow}>
322
- <NetworkIcons_1.BoltIcon color={AppColors_1.AppColors.grayTextWeak} size={12}/>
97
+ <NetworkIcons_1.BoltIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
323
98
  <react_native_1.Text style={styles.sectionTitle}>
324
- {t('crash.filterEngineSection')}
99
+ {l("crash.filterEngineSection")}
325
100
  </react_native_1.Text>
326
101
  </react_native_1.View>
327
102
  <react_native_1.View style={styles.chipsWrap}>
328
- <TouchableScale_1.default onPress={() => setEngine('all')} style={[
329
- styles.filterPill,
330
- draft.engine === 'all' && styles.filterPillActive,
331
- ]}>
332
- <react_native_1.Text style={[
333
- styles.filterPillText,
334
- draft.engine === 'all' && styles.filterPillTextActive,
335
- ]}>
336
- {t('crash.filterEngineAll')}
103
+ <TouchableScale_1.default onPress={()=>y("all")}style={[styles.filterPill,e.engine==="all"&&styles.filterPillActive]}>
104
+ <react_native_1.Text style={[styles.filterPillText,e.engine==="all"&&styles.filterPillTextActive]}>
105
+ {l("crash.filterEngineAll")}
337
106
  </react_native_1.Text>
338
107
  </TouchableScale_1.default>
339
108
 
340
- <TouchableScale_1.default onPress={() => setEngine('hermes')} style={[
341
- styles.filterPill,
342
- draft.engine === 'hermes' && styles.filterPillActive,
343
- ]}>
344
- <NetworkIcons_1.BoltIcon size={12} color={draft.engine === 'hermes'
345
- ? AppColors_1.AppColors.white
346
- : AppColors_1.AppColors.brandPurple}/>
347
- <react_native_1.Text style={[
348
- styles.filterPillText,
349
- draft.engine === 'hermes' && styles.filterPillTextActive,
350
- ]}>
351
- {t('crash.filterEngineHermes')}
109
+ <TouchableScale_1.default onPress={()=>y("hermes")}style={[styles.filterPill,e.engine==="hermes"&&styles.filterPillActive]}>
110
+ <NetworkIcons_1.BoltIcon size={12}color={e.engine==="hermes"?AppColors_1.AppColors.white:AppColors_1.AppColors.brandPurple}/>
111
+ <react_native_1.Text style={[styles.filterPillText,e.engine==="hermes"&&styles.filterPillTextActive]}>
112
+ {l("crash.filterEngineHermes")}
352
113
  </react_native_1.Text>
353
114
  </TouchableScale_1.default>
354
115
 
355
- <TouchableScale_1.default onPress={() => setEngine('jsc')} style={[
356
- styles.filterPill,
357
- draft.engine === 'jsc' && styles.filterPillActive,
358
- ]}>
359
- <react_native_1.Text style={[
360
- styles.filterPillText,
361
- draft.engine === 'jsc' && styles.filterPillTextActive,
362
- ]}>
363
- {t('crash.jsc')}
116
+ <TouchableScale_1.default onPress={()=>y("jsc")}style={[styles.filterPill,e.engine==="jsc"&&styles.filterPillActive]}>
117
+ <react_native_1.Text style={[styles.filterPillText,e.engine==="jsc"&&styles.filterPillTextActive]}>
118
+ {l("crash.jsc")}
364
119
  </react_native_1.Text>
365
120
  </TouchableScale_1.default>
366
121
  </react_native_1.View>
@@ -368,41 +123,23 @@ const CrashFilterModal = ({ visible, onClose, filters, onApply, searchQuery = ''
368
123
 
369
124
  <react_native_1.View style={styles.section}>
370
125
  <react_native_1.View style={styles.sectionHeaderRow}>
371
- <NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak} size={12}/>
126
+ <NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
372
127
  <react_native_1.Text style={styles.sectionTitle}>
373
- {t('crash.filterSortSection')}
128
+ {l("crash.filterSortSection")}
374
129
  </react_native_1.Text>
375
130
  </react_native_1.View>
376
131
  <react_native_1.View style={styles.chipsWrap}>
377
- <TouchableScale_1.default onPress={() => setSort('time_desc')} style={[
378
- styles.filterPill,
379
- draft.sortBy === 'time_desc' && styles.filterPillActive,
380
- ]}>
381
- <NetworkIcons_1.ClockIcon size={12} color={draft.sortBy === 'time_desc'
382
- ? AppColors_1.AppColors.white
383
- : AppColors_1.AppColors.grayText}/>
384
- <react_native_1.Text style={[
385
- styles.filterPillText,
386
- draft.sortBy === 'time_desc' &&
387
- styles.filterPillTextActive,
388
- ]}>
389
- {t('crash.filterSortNewest')}
132
+ <TouchableScale_1.default onPress={()=>_("time_desc")}style={[styles.filterPill,e.sortBy==="time_desc"&&styles.filterPillActive]}>
133
+ <NetworkIcons_1.ClockIcon size={12}color={e.sortBy==="time_desc"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>
134
+ <react_native_1.Text style={[styles.filterPillText,e.sortBy==="time_desc"&&styles.filterPillTextActive]}>
135
+ {l("crash.filterSortNewest")}
390
136
  </react_native_1.Text>
391
137
  </TouchableScale_1.default>
392
138
 
393
- <TouchableScale_1.default onPress={() => setSort('time_asc')} style={[
394
- styles.filterPill,
395
- draft.sortBy === 'time_asc' && styles.filterPillActive,
396
- ]}>
397
- <NetworkIcons_1.HourglassIcon size={12} color={draft.sortBy === 'time_asc'
398
- ? AppColors_1.AppColors.white
399
- : AppColors_1.AppColors.grayText}/>
400
- <react_native_1.Text style={[
401
- styles.filterPillText,
402
- draft.sortBy === 'time_asc' &&
403
- styles.filterPillTextActive,
404
- ]}>
405
- {t('crash.filterSortOldest')}
139
+ <TouchableScale_1.default onPress={()=>_("time_asc")}style={[styles.filterPill,e.sortBy==="time_asc"&&styles.filterPillActive]}>
140
+ <NetworkIcons_1.HourglassIcon size={12}color={e.sortBy==="time_asc"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>
141
+ <react_native_1.Text style={[styles.filterPillText,e.sortBy==="time_asc"&&styles.filterPillTextActive]}>
142
+ {l("crash.filterSortOldest")}
406
143
  </react_native_1.Text>
407
144
  </TouchableScale_1.default>
408
145
  </react_native_1.View>
@@ -410,187 +147,18 @@ const CrashFilterModal = ({ visible, onClose, filters, onApply, searchQuery = ''
410
147
  </react_native_1.ScrollView>
411
148
 
412
149
  <react_native_1.View style={styles.footer}>
413
- <react_native_1.TouchableOpacity onPress={handleDiscard} style={styles.discardBtn} activeOpacity={0.8}>
150
+ <react_native_1.TouchableOpacity onPress={d}style={styles.discardBtn}activeOpacity={.8}>
414
151
  <react_native_1.Text style={styles.discardBtnText}>
415
- {t('crash.filterDiscard')}
152
+ {l("crash.filterDiscard")}
416
153
  </react_native_1.Text>
417
154
  </react_native_1.TouchableOpacity>
418
155
 
419
- <react_native_1.TouchableOpacity onPress={handleApply} style={styles.applyBtn} activeOpacity={0.85}>
156
+ <react_native_1.TouchableOpacity onPress={C}style={styles.applyBtn}activeOpacity={.85}>
420
157
  <react_native_1.Text style={styles.applyBtnText}>
421
- {t('crash.filterApply', { count: draftMatchCount })}
158
+ {l("crash.filterApply",{count:x})}
422
159
  </react_native_1.Text>
423
160
  </react_native_1.TouchableOpacity>
424
161
  </react_native_1.View>
425
162
  </react_native_1.View>
426
163
  </react_native_1.View>
427
- </react_native_1.Modal>);
428
- };
429
- const styles = react_native_1.StyleSheet.create({
430
- backdrop: {
431
- flex: 1,
432
- backgroundColor: `${AppColors_1.AppColors.primaryBlack}85`,
433
- justifyContent: 'center',
434
- alignItems: 'center',
435
- padding: 16,
436
- },
437
- modalCard: {
438
- width: '100%',
439
- maxWidth: 440,
440
- backgroundColor: AppColors_1.AppColors.white,
441
- borderRadius: 14,
442
- borderWidth: 1,
443
- borderColor: AppColors_1.AppColors.dividerColor,
444
- shadowColor: AppColors_1.AppColors.black,
445
- shadowOpacity: 0.18,
446
- shadowRadius: 12,
447
- shadowOffset: { width: 0, height: 4 },
448
- elevation: 8,
449
- overflow: 'hidden',
450
- },
451
- header: {
452
- flexDirection: 'row',
453
- alignItems: 'center',
454
- justifyContent: 'space-between',
455
- paddingHorizontal: 14,
456
- paddingVertical: 12,
457
- borderBottomWidth: 1,
458
- borderBottomColor: AppColors_1.AppColors.dividerColor,
459
- backgroundColor: `${AppColors_1.AppColors.brandPurple}08`,
460
- },
461
- headerIconBox: {
462
- width: 28,
463
- height: 28,
464
- borderRadius: 7,
465
- backgroundColor: `${AppColors_1.AppColors.brandPurple}18`,
466
- alignItems: 'center',
467
- justifyContent: 'center',
468
- },
469
- headerTitle: {
470
- fontFamily: AppFonts_1.AppFonts.interBold,
471
- fontSize: 13.5,
472
- color: AppColors_1.AppColors.primaryBlack,
473
- },
474
- headerSubtitle: {
475
- fontFamily: AppFonts_1.AppFonts.interMedium,
476
- fontSize: 10,
477
- color: AppColors_1.AppColors.grayTextWeak,
478
- },
479
- resetBtn: {
480
- paddingHorizontal: 8,
481
- paddingVertical: 4,
482
- borderRadius: 5,
483
- backgroundColor: `${AppColors_1.AppColors.darkOrange}14`,
484
- borderWidth: 1,
485
- borderColor: `${AppColors_1.AppColors.darkOrange}30`,
486
- },
487
- resetBtnText: {
488
- fontFamily: AppFonts_1.AppFonts.interBold,
489
- fontSize: 10,
490
- color: AppColors_1.AppColors.darkOrange,
491
- },
492
- closeBtn: {
493
- width: 24,
494
- height: 24,
495
- borderRadius: 12,
496
- backgroundColor: `${AppColors_1.AppColors.primaryBlack}18`,
497
- alignItems: 'center',
498
- justifyContent: 'center',
499
- },
500
- scrollContent: {
501
- padding: 14,
502
- gap: 14,
503
- },
504
- section: {
505
- gap: 7,
506
- },
507
- sectionHeaderRow: {
508
- flexDirection: 'row',
509
- alignItems: 'center',
510
- gap: 5,
511
- },
512
- sectionTitle: {
513
- fontFamily: AppFonts_1.AppFonts.interBold,
514
- fontSize: 9.5,
515
- color: AppColors_1.AppColors.grayTextWeak,
516
- letterSpacing: 0.5,
517
- },
518
- chipsWrap: {
519
- flexDirection: 'row',
520
- flexWrap: 'wrap',
521
- gap: 6.5,
522
- },
523
- filterPill: {
524
- flexDirection: 'row',
525
- alignItems: 'center',
526
- gap: 5,
527
- paddingHorizontal: 9,
528
- paddingVertical: 5.5,
529
- borderRadius: 7,
530
- backgroundColor: AppColors_1.AppColors.grayBackground,
531
- borderWidth: 1,
532
- borderColor: AppColors_1.AppColors.dividerColor,
533
- },
534
- filterPillActive: {
535
- backgroundColor: AppColors_1.AppColors.brandPurple,
536
- borderColor: AppColors_1.AppColors.brandPurple,
537
- shadowColor: AppColors_1.AppColors.brandPurple,
538
- shadowOffset: { width: 0, height: 1 },
539
- shadowOpacity: 0.25,
540
- shadowRadius: 3,
541
- elevation: 2,
542
- },
543
- filterPillText: {
544
- fontFamily: AppFonts_1.AppFonts.interMedium,
545
- fontSize: 11,
546
- color: AppColors_1.AppColors.primaryBlack,
547
- },
548
- filterPillTextActive: {
549
- color: AppColors_1.AppColors.white,
550
- fontFamily: AppFonts_1.AppFonts.interBold,
551
- },
552
- footer: {
553
- flexDirection: 'row',
554
- alignItems: 'center',
555
- gap: 10,
556
- paddingHorizontal: 14,
557
- paddingVertical: 12,
558
- borderTopWidth: 1,
559
- borderTopColor: AppColors_1.AppColors.dividerColor,
560
- backgroundColor: AppColors_1.AppColors.grayBackground,
561
- },
562
- discardBtn: {
563
- flex: 1,
564
- paddingVertical: 9.5,
565
- borderRadius: 8,
566
- borderWidth: 1,
567
- borderColor: AppColors_1.AppColors.dividerColor,
568
- backgroundColor: AppColors_1.AppColors.white,
569
- alignItems: 'center',
570
- justifyContent: 'center',
571
- },
572
- discardBtnText: {
573
- fontFamily: AppFonts_1.AppFonts.interBold,
574
- fontSize: 12.5,
575
- color: AppColors_1.AppColors.grayTextStrong,
576
- },
577
- applyBtn: {
578
- flex: 2,
579
- backgroundColor: AppColors_1.AppColors.brandPurple,
580
- paddingVertical: 9.5,
581
- borderRadius: 8,
582
- alignItems: 'center',
583
- justifyContent: 'center',
584
- shadowColor: AppColors_1.AppColors.brandPurple,
585
- shadowOffset: { width: 0, height: 1 },
586
- shadowOpacity: 0.25,
587
- shadowRadius: 3,
588
- elevation: 2,
589
- },
590
- applyBtnText: {
591
- fontFamily: AppFonts_1.AppFonts.interBold,
592
- fontSize: 12.5,
593
- color: AppColors_1.AppColors.white,
594
- },
595
- });
596
- exports.default = CrashFilterModal;
164
+ </react_native_1.Modal>},styles=react_native_1.StyleSheet.create({backdrop:{flex:1,backgroundColor:`${AppColors_1.AppColors.primaryBlack}85`,justifyContent:"center",alignItems:"center",padding:16},modalCard:{width:"100%",maxWidth:440,backgroundColor:AppColors_1.AppColors.white,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.18,shadowRadius:12,shadowOffset:{width:0,height:4},elevation:8,overflow:"hidden"},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:14,paddingVertical:12,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor,backgroundColor:`${AppColors_1.AppColors.brandPurple}08`},headerIconBox:{width:28,height:28,borderRadius:7,backgroundColor:`${AppColors_1.AppColors.brandPurple}18`,alignItems:"center",justifyContent:"center"},headerTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,color:AppColors_1.AppColors.primaryBlack},headerSubtitle:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.grayTextWeak},resetBtn:{paddingHorizontal:8,paddingVertical:4,borderRadius:5,backgroundColor:`${AppColors_1.AppColors.darkOrange}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.darkOrange}30`},resetBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.darkOrange},closeBtn:{width:24,height:24,borderRadius:12,backgroundColor:`${AppColors_1.AppColors.primaryBlack}18`,alignItems:"center",justifyContent:"center"},scrollContent:{padding:14,gap:14},section:{gap:7},sectionHeaderRow:{flexDirection:"row",alignItems:"center",gap:5},sectionTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.5},chipsWrap:{flexDirection:"row",flexWrap:"wrap",gap:6.5},filterPill:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:9,paddingVertical:5.5,borderRadius:7,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},filterPillActive:{backgroundColor:AppColors_1.AppColors.brandPurple,borderColor:AppColors_1.AppColors.brandPurple,shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:3,elevation:2},filterPillText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.primaryBlack},filterPillTextActive:{color:AppColors_1.AppColors.white,fontFamily:AppFonts_1.AppFonts.interBold},footer:{flexDirection:"row",alignItems:"center",gap:10,paddingHorizontal:14,paddingVertical:12,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor,backgroundColor:AppColors_1.AppColors.grayBackground},discardBtn:{flex:1,paddingVertical:9.5,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,backgroundColor:AppColors_1.AppColors.white,alignItems:"center",justifyContent:"center"},discardBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.grayTextStrong},applyBtn:{flex:2,backgroundColor:AppColors_1.AppColors.brandPurple,paddingVertical:9.5,borderRadius:8,alignItems:"center",justifyContent:"center",shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:3,elevation:2},applyBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.white}});exports.default=CrashFilterModal;