react-native-inapp-inspector 2.3.18 → 2.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +57 -0
  2. package/dist/commonjs/analytics.js +1 -24
  3. package/dist/commonjs/bundle.js +1 -16
  4. package/dist/commonjs/capture.d.ts +2 -0
  5. package/dist/commonjs/capture.js +1 -32
  6. package/dist/commonjs/components/AnalyticsDetail.js +92 -623
  7. package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
  8. package/dist/commonjs/components/AnalyticsGraph.js +70 -370
  9. package/dist/commonjs/components/AnimatedEntrance.js +1 -11
  10. package/dist/commonjs/components/AppHeaderLogo.js +7 -134
  11. package/dist/commonjs/components/BrandCircleIcon.js +73 -118
  12. package/dist/commonjs/components/BrandSquareIcon.js +63 -108
  13. package/dist/commonjs/components/CodeSnippet.js +48 -623
  14. package/dist/commonjs/components/ConsoleLogCard.js +63 -537
  15. package/dist/commonjs/components/CopyButton.js +3 -89
  16. package/dist/commonjs/components/DiffViewer.js +19 -83
  17. package/dist/commonjs/components/DomainHeader.js +27 -127
  18. package/dist/commonjs/components/EmptyState.d.ts +1 -0
  19. package/dist/commonjs/components/EmptyState.js +10 -87
  20. package/dist/commonjs/components/EndOfListFooter.js +7 -81
  21. package/dist/commonjs/components/ErrorBoundary.js +72 -566
  22. package/dist/commonjs/components/HeadersSection.js +31 -110
  23. package/dist/commonjs/components/HighlightText.js +17 -58
  24. package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
  25. package/dist/commonjs/components/Inspector/AboutModal.js +351 -0
  26. package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
  27. package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
  28. package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
  29. package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
  30. package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
  31. package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
  32. package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
  33. package/dist/commonjs/components/Inspector/DebuggingTab.js +64 -871
  34. package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
  35. package/dist/commonjs/components/Inspector/FabLauncher.js +85 -54
  36. package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
  37. package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +9 -0
  38. package/dist/commonjs/components/Inspector/FeedbackModal.js +167 -521
  39. package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
  40. package/dist/commonjs/components/Inspector/InspectorHeader.js +219 -1093
  41. package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
  42. package/dist/commonjs/components/Inspector/MainScreen.js +60 -332
  43. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +136 -278
  44. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +134 -361
  45. package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
  46. package/dist/commonjs/components/Inspector/NetworkDetail.js +96 -432
  47. package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
  48. package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
  49. package/dist/commonjs/components/Inspector/NpmStarPrompt.js +17 -433
  50. package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
  51. package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
  52. package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
  53. package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
  54. package/dist/commonjs/components/Inspector/SettingsPanel.js +431 -3431
  55. package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
  56. package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
  57. package/dist/commonjs/components/Inspector/TabBar.js +47 -183
  58. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +34 -408
  59. package/dist/commonjs/components/JsonViewer.js +168 -380
  60. package/dist/commonjs/components/LogCard.js +57 -567
  61. package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
  62. package/dist/commonjs/components/MetaAccordion.js +69 -238
  63. package/dist/commonjs/components/MiniBarChart.js +3 -56
  64. package/dist/commonjs/components/MiniLineChart.js +3 -58
  65. package/dist/commonjs/components/NetworkIcons.d.ts +7 -0
  66. package/dist/commonjs/components/NetworkIcons.js +479 -997
  67. package/dist/commonjs/components/QRCodeView.js +5 -79
  68. package/dist/commonjs/components/SectionHeader.js +15 -37
  69. package/dist/commonjs/components/SegmentedTabs.js +7 -61
  70. package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
  71. package/dist/commonjs/components/Slider.js +15 -243
  72. package/dist/commonjs/components/SourcePageCard.js +30 -89
  73. package/dist/commonjs/components/Toast.js +5 -147
  74. package/dist/commonjs/components/TouchableScale.js +3 -24
  75. package/dist/commonjs/components/TreeNode.js +55 -130
  76. package/dist/commonjs/console.js +1 -16
  77. package/dist/commonjs/constants/index.js +1 -32
  78. package/dist/commonjs/constants/telemetryConfig.js +1 -6
  79. package/dist/commonjs/constants/version.d.ts +1 -1
  80. package/dist/commonjs/constants/version.js +1 -4
  81. package/dist/commonjs/crash.js +1 -23
  82. package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
  83. package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
  84. package/dist/commonjs/customHooks/consoleLogger.js +6 -445
  85. package/dist/commonjs/customHooks/crashHandler.js +7 -656
  86. package/dist/commonjs/customHooks/logFilters.js +1 -23
  87. package/dist/commonjs/customHooks/networkLogger.js +2 -536
  88. package/dist/commonjs/customHooks/performanceTracker.js +63 -750
  89. package/dist/commonjs/customHooks/reduxLogger.js +2 -313
  90. package/dist/commonjs/customHooks/storageInspector.js +1 -435
  91. package/dist/commonjs/customHooks/useAccordion.js +1 -18
  92. package/dist/commonjs/decorators/index.js +1 -100
  93. package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
  94. package/dist/commonjs/helpers/index.js +8 -921
  95. package/dist/commonjs/helpers/memoryManager.js +1 -99
  96. package/dist/commonjs/helpers/qrGenerator.js +1 -367
  97. package/dist/commonjs/helpers/remoteConfig.js +1 -165
  98. package/dist/commonjs/helpers/searchQueryParser.js +1 -62
  99. package/dist/commonjs/helpers/settingsStore.js +1 -144
  100. package/dist/commonjs/helpers/telemetry.js +1 -501
  101. package/dist/commonjs/helpers/toast.js +1 -20
  102. package/dist/commonjs/i18n/index.js +1 -90
  103. package/dist/commonjs/i18n/locales/en.json +1 -1122
  104. package/dist/commonjs/index.js +5 -2153
  105. package/dist/commonjs/metro.js +6 -468
  106. package/dist/commonjs/native/NativeInspector.d.ts +3 -0
  107. package/dist/commonjs/native/NativeInspector.js +1 -402
  108. package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
  109. package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
  110. package/dist/commonjs/network.js +1 -13
  111. package/dist/commonjs/performance.js +1 -29
  112. package/dist/commonjs/redux.js +1 -20
  113. package/dist/commonjs/storage.js +1 -14
  114. package/dist/commonjs/styles/AppColors.js +1 -423
  115. package/dist/commonjs/styles/AppFonts.js +1 -17
  116. package/dist/commonjs/styles/common.js +1 -190
  117. package/dist/commonjs/styles/index.d.ts +6 -0
  118. package/dist/commonjs/styles/index.js +1 -1589
  119. package/dist/commonjs/types/enums.d.ts +2 -1
  120. package/dist/commonjs/types/enums.js +1 -150
  121. package/dist/commonjs/types/index.js +1 -18
  122. package/dist/commonjs/types/interfaces.d.ts +7 -0
  123. package/dist/commonjs/types/interfaces.js +1 -2
  124. package/dist/esm/analytics.js +1 -2
  125. package/dist/esm/bundle.js +1 -2
  126. package/dist/esm/capture.d.ts +2 -0
  127. package/dist/esm/capture.js +1 -29
  128. package/dist/esm/components/AnalyticsDetail.js +171 -664
  129. package/dist/esm/components/AnalyticsEventCard.js +77 -335
  130. package/dist/esm/components/AnalyticsGraph.js +95 -357
  131. package/dist/esm/components/AnimatedEntrance.js +1 -6
  132. package/dist/esm/components/AppHeaderLogo.js +7 -94
  133. package/dist/esm/components/BrandCircleIcon.js +114 -119
  134. package/dist/esm/components/BrandSquareIcon.js +73 -78
  135. package/dist/esm/components/CodeSnippet.js +58 -595
  136. package/dist/esm/components/ConsoleLogCard.js +91 -526
  137. package/dist/esm/components/CopyButton.js +3 -51
  138. package/dist/esm/components/DiffViewer.js +22 -48
  139. package/dist/esm/components/DomainHeader.js +43 -138
  140. package/dist/esm/components/EmptyState.d.ts +1 -0
  141. package/dist/esm/components/EmptyState.js +17 -56
  142. package/dist/esm/components/EndOfListFooter.js +15 -83
  143. package/dist/esm/components/ErrorBoundary.js +125 -582
  144. package/dist/esm/components/HeadersSection.js +52 -93
  145. package/dist/esm/components/HighlightText.js +17 -53
  146. package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
  147. package/dist/esm/components/Inspector/AboutModal.js +351 -0
  148. package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
  149. package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
  150. package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
  151. package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
  152. package/dist/esm/components/Inspector/CrashDetail.js +236 -747
  153. package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
  154. package/dist/esm/components/Inspector/CrashTab.js +177 -711
  155. package/dist/esm/components/Inspector/DebuggingTab.js +156 -923
  156. package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
  157. package/dist/esm/components/Inspector/FabLauncher.js +85 -49
  158. package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
  159. package/dist/esm/components/Inspector/FeedbackModal.d.ts +9 -0
  160. package/dist/esm/components/Inspector/FeedbackModal.js +182 -499
  161. package/dist/esm/components/Inspector/InspectorContext.js +1 -12
  162. package/dist/esm/components/Inspector/InspectorHeader.js +309 -1145
  163. package/dist/esm/components/Inspector/LogDetail.js +235 -1023
  164. package/dist/esm/components/Inspector/MainScreen.js +86 -320
  165. package/dist/esm/components/Inspector/MediaGalleryTab.js +157 -259
  166. package/dist/esm/components/Inspector/MediaPreviewModal.js +153 -340
  167. package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
  168. package/dist/esm/components/Inspector/NetworkDetail.js +141 -472
  169. package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
  170. package/dist/esm/components/Inspector/NetworkTab.js +125 -517
  171. package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
  172. package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
  173. package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
  174. package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
  175. package/dist/esm/components/Inspector/ReduxTab.js +144 -722
  176. package/dist/esm/components/Inspector/SettingsPanel.js +647 -3609
  177. package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
  178. package/dist/esm/components/Inspector/StorageTab.js +172 -866
  179. package/dist/esm/components/Inspector/TabBar.js +52 -183
  180. package/dist/esm/components/Inspector/UpdateAvailableModal.js +79 -416
  181. package/dist/esm/components/JsonViewer.js +179 -353
  182. package/dist/esm/components/LogCard.js +93 -565
  183. package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
  184. package/dist/esm/components/MetaAccordion.js +136 -267
  185. package/dist/esm/components/MiniBarChart.js +3 -18
  186. package/dist/esm/components/MiniLineChart.js +3 -20
  187. package/dist/esm/components/NetworkIcons.d.ts +7 -0
  188. package/dist/esm/components/NetworkIcons.js +481 -817
  189. package/dist/esm/components/QRCodeView.js +8 -45
  190. package/dist/esm/components/SectionHeader.js +22 -39
  191. package/dist/esm/components/SegmentedTabs.js +8 -57
  192. package/dist/esm/components/SkeletonPlaceholder.js +30 -163
  193. package/dist/esm/components/Slider.js +24 -213
  194. package/dist/esm/components/SourcePageCard.js +65 -86
  195. package/dist/esm/components/Toast.js +10 -117
  196. package/dist/esm/components/TouchableScale.js +3 -19
  197. package/dist/esm/components/TreeNode.js +58 -95
  198. package/dist/esm/console.js +1 -2
  199. package/dist/esm/constants/index.js +1 -28
  200. package/dist/esm/constants/telemetryConfig.js +1 -3
  201. package/dist/esm/constants/version.d.ts +1 -1
  202. package/dist/esm/constants/version.js +1 -1
  203. package/dist/esm/crash.js +1 -2
  204. package/dist/esm/customHooks/analyticsLogger.js +1 -230
  205. package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
  206. package/dist/esm/customHooks/consoleLogger.js +6 -432
  207. package/dist/esm/customHooks/crashHandler.js +7 -630
  208. package/dist/esm/customHooks/logFilters.js +1 -20
  209. package/dist/esm/customHooks/networkLogger.js +2 -519
  210. package/dist/esm/customHooks/performanceTracker.js +63 -723
  211. package/dist/esm/customHooks/reduxLogger.js +2 -293
  212. package/dist/esm/customHooks/storageInspector.js +1 -418
  213. package/dist/esm/customHooks/useAccordion.js +1 -16
  214. package/dist/esm/decorators/index.js +1 -95
  215. package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
  216. package/dist/esm/helpers/index.js +8 -861
  217. package/dist/esm/helpers/memoryManager.js +1 -91
  218. package/dist/esm/helpers/qrGenerator.js +1 -364
  219. package/dist/esm/helpers/remoteConfig.js +1 -160
  220. package/dist/esm/helpers/searchQueryParser.js +1 -59
  221. package/dist/esm/helpers/settingsStore.js +1 -134
  222. package/dist/esm/helpers/telemetry.js +1 -489
  223. package/dist/esm/helpers/toast.js +1 -15
  224. package/dist/esm/i18n/index.js +1 -78
  225. package/dist/esm/i18n/locales/en.json +1 -1122
  226. package/dist/esm/index.js +7 -1967
  227. package/dist/esm/metro.js +6 -459
  228. package/dist/esm/native/NativeInspector.d.ts +3 -0
  229. package/dist/esm/native/NativeInspector.js +1 -370
  230. package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
  231. package/dist/esm/native/NativeNetworkInspector.js +1 -2
  232. package/dist/esm/network.js +1 -1
  233. package/dist/esm/performance.js +1 -2
  234. package/dist/esm/redux.js +1 -1
  235. package/dist/esm/storage.js +1 -1
  236. package/dist/esm/styles/AppColors.js +1 -417
  237. package/dist/esm/styles/AppFonts.js +1 -13
  238. package/dist/esm/styles/common.js +1 -186
  239. package/dist/esm/styles/index.d.ts +6 -0
  240. package/dist/esm/styles/index.js +1 -1551
  241. package/dist/esm/types/enums.d.ts +2 -1
  242. package/dist/esm/types/enums.js +1 -147
  243. package/dist/esm/types/index.js +1 -2
  244. package/dist/esm/types/interfaces.d.ts +7 -0
  245. package/dist/esm/types/interfaces.js +1 -1
  246. package/ios/NetworkInspectorModule.mm +253 -136
  247. package/package.json +5 -3
  248. package/react-native-inapp-inspector.podspec +1 -1
  249. package/src/native/NativeInspector.ts +17 -0
  250. package/src/native/NativeNetworkInspector.ts +1 -0
  251. package/src/analytics.ts +0 -35
  252. package/src/bundle.ts +0 -25
  253. package/src/capture.ts +0 -101
  254. package/src/components/AnalyticsDetail.tsx +0 -870
  255. package/src/components/AnalyticsEventCard.tsx +0 -444
  256. package/src/components/AnalyticsGraph.tsx +0 -583
  257. package/src/components/AnimatedEntrance.tsx +0 -20
  258. package/src/components/AppHeaderLogo.tsx +0 -143
  259. package/src/components/BrandCircleIcon.tsx +0 -144
  260. package/src/components/BrandSquareIcon.tsx +0 -184
  261. package/src/components/CodeSnippet.tsx +0 -725
  262. package/src/components/ConsoleLogCard.tsx +0 -679
  263. package/src/components/CopyButton.tsx +0 -87
  264. package/src/components/DiffViewer.tsx +0 -82
  265. package/src/components/DomainHeader.tsx +0 -224
  266. package/src/components/EmptyState.tsx +0 -95
  267. package/src/components/EndOfListFooter.tsx +0 -100
  268. package/src/components/ErrorBoundary.tsx +0 -688
  269. package/src/components/HeadersSection.tsx +0 -172
  270. package/src/components/HighlightText.tsx +0 -100
  271. package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
  272. package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
  273. package/src/components/Inspector/BundleTab.tsx +0 -4768
  274. package/src/components/Inspector/ConsoleTab.tsx +0 -726
  275. package/src/components/Inspector/CrashDetail.tsx +0 -997
  276. package/src/components/Inspector/CrashFilterModal.tsx +0 -721
  277. package/src/components/Inspector/CrashTab.tsx +0 -933
  278. package/src/components/Inspector/DebuggingTab.tsx +0 -1103
  279. package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
  280. package/src/components/Inspector/FabLauncher.tsx +0 -80
  281. package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
  282. package/src/components/Inspector/FeedbackModal.tsx +0 -626
  283. package/src/components/Inspector/InspectorContext.tsx +0 -28
  284. package/src/components/Inspector/InspectorHeader.tsx +0 -1545
  285. package/src/components/Inspector/LogDetail.tsx +0 -1431
  286. package/src/components/Inspector/MainScreen.tsx +0 -459
  287. package/src/components/Inspector/MediaGalleryTab.tsx +0 -355
  288. package/src/components/Inspector/MediaPreviewModal.tsx +0 -435
  289. package/src/components/Inspector/NavigationTracker.tsx +0 -13
  290. package/src/components/Inspector/NetworkDetail.tsx +0 -795
  291. package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
  292. package/src/components/Inspector/NetworkTab.tsx +0 -820
  293. package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
  294. package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
  295. package/src/components/Inspector/PerformanceTab.tsx +0 -1967
  296. package/src/components/Inspector/ReduxDetail.tsx +0 -1651
  297. package/src/components/Inspector/ReduxTab.tsx +0 -987
  298. package/src/components/Inspector/SettingsPanel.tsx +0 -4580
  299. package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
  300. package/src/components/Inspector/StorageTab.tsx +0 -1159
  301. package/src/components/Inspector/TabBar.tsx +0 -263
  302. package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
  303. package/src/components/JsonViewer.tsx +0 -547
  304. package/src/components/LogCard.tsx +0 -694
  305. package/src/components/LogSyntaxHighlighter.tsx +0 -178
  306. package/src/components/MetaAccordion.tsx +0 -355
  307. package/src/components/MiniBarChart.tsx +0 -42
  308. package/src/components/MiniLineChart.tsx +0 -33
  309. package/src/components/NetworkIcons.tsx +0 -2599
  310. package/src/components/QRCodeView.tsx +0 -75
  311. package/src/components/SectionHeader.tsx +0 -101
  312. package/src/components/SegmentedTabs.tsx +0 -83
  313. package/src/components/SkeletonPlaceholder.tsx +0 -206
  314. package/src/components/Slider.tsx +0 -300
  315. package/src/components/SourcePageCard.tsx +0 -150
  316. package/src/components/Toast.tsx +0 -131
  317. package/src/components/TouchableScale.tsx +0 -61
  318. package/src/components/TreeNode.tsx +0 -171
  319. package/src/console.ts +0 -24
  320. package/src/constants/index.ts +0 -41
  321. package/src/constants/telemetryConfig.ts +0 -4
  322. package/src/constants/version.ts +0 -3
  323. package/src/crash.ts +0 -32
  324. package/src/customHooks/analyticsLogger.ts +0 -336
  325. package/src/customHooks/bundleAnalyzer.ts +0 -1256
  326. package/src/customHooks/consoleLogger.ts +0 -530
  327. package/src/customHooks/crashHandler.ts +0 -944
  328. package/src/customHooks/logFilters.ts +0 -32
  329. package/src/customHooks/networkLogger.ts +0 -624
  330. package/src/customHooks/performanceTracker.ts +0 -1014
  331. package/src/customHooks/reduxLogger.ts +0 -406
  332. package/src/customHooks/storageInspector.ts +0 -513
  333. package/src/customHooks/useAccordion.tsx +0 -27
  334. package/src/decorators/index.ts +0 -184
  335. package/src/helpers/gaAnalyticsRegistry.ts +0 -204
  336. package/src/helpers/index.ts +0 -1092
  337. package/src/helpers/memoryManager.ts +0 -138
  338. package/src/helpers/qrGenerator.ts +0 -430
  339. package/src/helpers/remoteConfig.ts +0 -212
  340. package/src/helpers/searchQueryParser.ts +0 -84
  341. package/src/helpers/settingsStore.ts +0 -171
  342. package/src/helpers/telemetry.ts +0 -568
  343. package/src/helpers/toast.ts +0 -17
  344. package/src/i18n/index.ts +0 -104
  345. package/src/i18n/locales/en.json +0 -1125
  346. package/src/index.tsx +0 -2635
  347. package/src/metro.ts +0 -598
  348. package/src/network.ts +0 -22
  349. package/src/performance.ts +0 -38
  350. package/src/redux.ts +0 -23
  351. package/src/storage.ts +0 -18
  352. package/src/styles/AppColors.ts +0 -455
  353. package/src/styles/AppFonts.ts +0 -26
  354. package/src/styles/common.ts +0 -209
  355. package/src/styles/index.ts +0 -1606
  356. package/src/types/enums.ts +0 -208
  357. package/src/types/index.ts +0 -34
  358. package/src/types/interfaces.ts +0 -530
@@ -1,633 +1,139 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.ErrorBoundary = void 0;
37
- const react_1 = __importStar(require("react"));
38
- const react_native_1 = require("react-native");
39
- const AppColors_1 = require("../styles/AppColors");
40
- const AppFonts_1 = require("../styles/AppFonts");
41
- const helpers_1 = require("../helpers");
42
- const i18n_1 = require("../i18n");
43
- const NetworkIcons_1 = require("./NetworkIcons");
44
- const crashHandler_1 = require("../customHooks/crashHandler");
45
- const enums_1 = require("../types/enums");
46
- const NativeInspector_1 = require("../native/NativeInspector");
47
- function parseStackTrace(stack) {
48
- if (!stack)
49
- return { rootFrame: null, frames: [] };
50
- const lines = stack.split('\n');
51
- const frames = [];
52
- for (const line of lines) {
53
- if (line.includes('ErrorBoundary') ||
54
- line.includes('getDerivedStateFromError') ||
55
- line.includes('componentDidCatch') ||
56
- line.includes('handleInterceptedCrash')) {
57
- continue;
58
- }
59
- const iosMatch = line.match(/^([^@]*)@(.*):(\d+):(\d+)$/);
60
- if (iosMatch) {
61
- const [, method, fullPath, lineNum, colNum] = iosMatch;
62
- const cleanFile = fullPath.split('?')[0].split('/').pop() || fullPath;
63
- const isProject = !fullPath.includes('node_modules') && !fullPath.includes('Libraries/Core');
64
- frames.push({
65
- method: method.trim() || 'anonymous',
66
- file: cleanFile,
67
- fullPath: fullPath.split('?')[0],
68
- line: lineNum,
69
- column: colNum,
70
- isProjectFile: isProject,
71
- });
72
- continue;
73
- }
74
- const androidMatch = line.match(/^\s*at\s+(.+)\s+\((.+):(\d+):(\d+)\)$/);
75
- if (androidMatch) {
76
- const [, method, fullPath, lineNum, colNum] = androidMatch;
77
- const cleanFile = fullPath.split('?')[0].split('/').pop() || fullPath;
78
- const isProject = !fullPath.includes('node_modules') && !fullPath.includes('Libraries/Core');
79
- frames.push({
80
- method: method.trim(),
81
- file: cleanFile,
82
- fullPath: fullPath.split('?')[0],
83
- line: lineNum,
84
- column: colNum,
85
- isProjectFile: isProject,
86
- });
87
- continue;
88
- }
89
- const androidMatchSimple = line.match(/^\s*at\s+(.+):(\d+):(\d+)$/);
90
- if (androidMatchSimple) {
91
- const [, fullPath, lineNum, colNum] = androidMatchSimple;
92
- const cleanFile = fullPath.split('?')[0].split('/').pop() || fullPath;
93
- const isProject = !fullPath.includes('node_modules') && !fullPath.includes('Libraries/Core');
94
- frames.push({
95
- method: 'anonymous',
96
- file: cleanFile,
97
- fullPath: fullPath.split('?')[0],
98
- line: lineNum,
99
- column: colNum,
100
- isProjectFile: isProject,
101
- });
102
- }
103
- }
104
- const rootFrame = frames.find(f => f.isProjectFile) || frames[0] || null;
105
- return { rootFrame, frames };
106
- }
107
- class ErrorBoundary extends react_1.Component {
108
- constructor() {
109
- super(...arguments);
110
- this.state = {
111
- hasError: false,
112
- error: null,
113
- };
114
- this.handleReset = () => {
115
- this.setState({ hasError: false, error: null });
116
- if (this.props.onReset) {
117
- this.props.onReset();
118
- }
119
- };
120
- this.handleCopyTrace = () => {
121
- const error = this.state.error;
122
- if (error) {
123
- const { rootFrame } = parseStackTrace(error.stack || '');
124
- const detailStr = `─────────────────────────────────────────────────────────────
125
- IN-APP INSPECTOR • INTERCEPTED CRASH REPORT
126
- ─────────────────────────────────────────────────────────────
127
- Error: ${error.name || 'Error'}
128
- Message: ${error.message}
129
- ${rootFrame ? `Location: ${rootFrame.file}:${rootFrame.line}:${rootFrame.column}\nMethod: ${rootFrame.method}\nPath: ${rootFrame.fullPath}` : ''}
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(i,t,e,r){r===void 0&&(r=e);var o=Object.getOwnPropertyDescriptor(t,e);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(i,r,o)}):(function(i,t,e,r){r===void 0&&(r=e),i[r]=t[e]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(i,t){Object.defineProperty(i,"default",{enumerable:!0,value:t})}):function(i,t){i.default=t}),__importStar=this&&this.__importStar||(function(){var i=function(t){return i=Object.getOwnPropertyNames||function(e){var r=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[r.length]=o);return r},i(t)};return function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=i(t),o=0;o<r.length;o++)r[o]!=="default"&&__createBinding(e,t,r[o]);return __setModuleDefault(e,t),e}})();Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorBoundary=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),AppColors_1=require("../styles/AppColors"),AppFonts_1=require("../styles/AppFonts"),helpers_1=require("../helpers"),i18n_1=require("../i18n"),NetworkIcons_1=require("./NetworkIcons"),crashHandler_1=require("../customHooks/crashHandler"),enums_1=require("../types/enums"),NativeInspector_1=require("../native/NativeInspector");function parseStackTrace(i){if(!i)return{rootFrame:null,frames:[]};const t=i.split(`
2
+ `),e=[];for(const o of t){if(o.includes("ErrorBoundary")||o.includes("getDerivedStateFromError")||o.includes("componentDidCatch")||o.includes("handleInterceptedCrash"))continue;const s=o.match(/^([^@]*)@(.*):(\d+):(\d+)$/);if(s){const[,l,n,c,p]=s,d=n.split("?")[0].split("/").pop()||n,f=!n.includes("node_modules")&&!n.includes("Libraries/Core");e.push({method:l.trim()||"anonymous",file:d,fullPath:n.split("?")[0],line:c,column:p,isProjectFile:f});continue}const u=o.match(/^\s*at\s+(.+)\s+\((.+):(\d+):(\d+)\)$/);if(u){const[,l,n,c,p]=u,d=n.split("?")[0].split("/").pop()||n,f=!n.includes("node_modules")&&!n.includes("Libraries/Core");e.push({method:l.trim(),file:d,fullPath:n.split("?")[0],line:c,column:p,isProjectFile:f});continue}const a=o.match(/^\s*at\s+(.+):(\d+):(\d+)$/);if(a){const[,l,n,c]=a,p=l.split("?")[0].split("/").pop()||l,d=!l.includes("node_modules")&&!l.includes("Libraries/Core");e.push({method:"anonymous",file:p,fullPath:l.split("?")[0],line:n,column:c,isProjectFile:d})}}return{rootFrame:e.find(o=>o.isProjectFile)||e[0]||null,frames:e}}class ErrorBoundary extends react_1.Component{constructor(){super(...arguments),this.state={hasError:!1,error:null},this.handleReset=()=>{this.setState({hasError:!1,error:null}),this.props.onReset&&this.props.onReset()},this.handleCopyTrace=()=>{const t=this.state.error;if(t){const{rootFrame:e}=parseStackTrace(t.stack||""),r=`\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
3
+ IN-APP INSPECTOR \u2022 INTERCEPTED CRASH REPORT
4
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
5
+ Error: ${t.name||"Error"}
6
+ Message: ${t.message}
7
+ ${e?`Location: ${e.file}:${e.line}:${e.column}
8
+ Method: ${e.method}
9
+ Path: ${e.fullPath}`:""}
130
10
  Timestamp: ${new Date().toISOString()}
131
11
 
132
12
  Stack Trace:
133
- ${error.stack || 'No stack trace available'}
134
- ─────────────────────────────────────────────────────────────`;
135
- (0, helpers_1.copyToClipboard)(detailStr, (0, i18n_1.t)('errors.errorReport'));
136
- }
137
- };
138
- }
139
- static getDerivedStateFromError(error) {
140
- return { hasError: true, error };
141
- }
142
- componentDidCatch(error, errorInfo) {
143
- try {
144
- const stack = error?.stack || errorInfo?.componentStack || '';
145
- (0, crashHandler_1.handleInterceptedCrash)(error, stack, false, enums_1.CrashType.Render, errorInfo?.componentStack);
146
- (0, NativeInspector_1.showNativeFloatingButton)();
147
- (0, NativeInspector_1.setNativeFloatingButtonBadge)(true);
148
- }
149
- catch { }
150
- }
151
- render() {
152
- const { hasError, error } = this.state;
153
- if (!hasError || !error) {
154
- return this.props.children;
155
- }
156
- const { rootFrame, frames } = parseStackTrace(error.stack || '');
157
- const errorType = error.name || (0, i18n_1.t)('errors.title');
158
- const isSyntaxOrType = errorType.includes('Syntax') ||
159
- errorType.includes('Type') ||
160
- errorType.includes('Reference');
161
- if (this.props.fallbackType === 'inline') {
162
- return (<react_native_1.View style={styles.inlineContainer}>
13
+ ${t.stack||"No stack trace available"}
14
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500`;(0,helpers_1.copyToClipboard)(r,(0,i18n_1.t)("errors.errorReport"))}}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,e){try{const r=t?.stack||e?.componentStack||"";(0,crashHandler_1.handleInterceptedCrash)(t,r,!1,enums_1.CrashType.Render,e?.componentStack),(0,NativeInspector_1.showNativeFloatingButton)(),(0,NativeInspector_1.setNativeFloatingButtonBadge)(!0)}catch{}}render(){const{hasError:t,error:e}=this.state;if(!t||!e)return this.props.children;const{rootFrame:r,frames:o}=parseStackTrace(e.stack||""),s=e.name||(0,i18n_1.t)("errors.title"),u=s.includes("Syntax")||s.includes("Type")||s.includes("Reference");return this.props.fallbackType==="inline"?<react_native_1.View style={styles.inlineContainer}>
163
15
  <react_native_1.View style={styles.inlineHeader}>
164
- <NetworkIcons_1.WarningTriangleIcon color={AppColors_1.AppColors.red600} size={18}/>
165
- <react_native_1.View style={{ flex: 1 }}>
166
- <react_native_1.Text style={styles.inlineTitle} numberOfLines={1}>
167
- {errorType}: {error.message}
16
+ <NetworkIcons_1.WarningTriangleIcon color={AppColors_1.AppColors.red600}size={18}/>
17
+ <react_native_1.View style={{flex:1}}>
18
+ <react_native_1.Text style={styles.inlineTitle}numberOfLines={1}>
19
+ {s}: {e.message}
168
20
  </react_native_1.Text>
169
- {rootFrame && (<react_native_1.Text style={styles.inlineLoc} numberOfLines={1}>
170
- {rootFrame.file}:{rootFrame.line} ({rootFrame.method})
171
- </react_native_1.Text>)}
21
+ {r&&<react_native_1.Text style={styles.inlineLoc}numberOfLines={1}>
22
+ {r.file}:{r.line} ({r.method})
23
+ </react_native_1.Text>}
172
24
  </react_native_1.View>
173
25
  </react_native_1.View>
174
26
  <react_native_1.View style={styles.inlineActions}>
175
- <react_native_1.TouchableOpacity onPress={this.handleReset} style={styles.inlineBtn} activeOpacity={0.7}>
176
- <NetworkIcons_1.RefreshCcwIcon size={12} color={AppColors_1.AppColors.white}/>
177
- <react_native_1.Text style={styles.inlineBtnText}>{(0, i18n_1.t)('errors.retry')}</react_native_1.Text>
27
+ <react_native_1.TouchableOpacity onPress={this.handleReset}style={styles.inlineBtn}activeOpacity={.7}>
28
+ <NetworkIcons_1.RefreshCcwIcon size={12}color={AppColors_1.AppColors.white}/>
29
+ <react_native_1.Text style={styles.inlineBtnText}>{(0,i18n_1.t)("errors.retry")}</react_native_1.Text>
178
30
  </react_native_1.TouchableOpacity>
179
- <react_native_1.TouchableOpacity onPress={this.handleCopyTrace} style={styles.inlineCopyBtn} activeOpacity={0.7}>
180
- <NetworkIcons_1.CopyIcon size={12} color={AppColors_1.AppColors.redErrorText}/>
181
- <react_native_1.Text style={styles.inlineCopyBtnText}>{(0, i18n_1.t)('errors.copy')}</react_native_1.Text>
31
+ <react_native_1.TouchableOpacity onPress={this.handleCopyTrace}style={styles.inlineCopyBtn}activeOpacity={.7}>
32
+ <NetworkIcons_1.CopyIcon size={12}color={AppColors_1.AppColors.redErrorText}/>
33
+ <react_native_1.Text style={styles.inlineCopyBtnText}>{(0,i18n_1.t)("errors.copy")}</react_native_1.Text>
182
34
  </react_native_1.TouchableOpacity>
183
35
  </react_native_1.View>
184
- </react_native_1.View>);
185
- }
186
- return (<react_native_1.SafeAreaView style={styles.safeArea}>
36
+ </react_native_1.View>:<react_native_1.SafeAreaView style={styles.safeArea}>
187
37
  <react_native_1.View style={styles.container}>
188
38
 
189
39
  <react_native_1.View style={styles.header}>
190
40
  <react_native_1.View style={styles.iconGlowWrap}>
191
- <NetworkIcons_1.WarningTriangleIcon color={AppColors_1.AppColors.red500} size={28}/>
41
+ <NetworkIcons_1.WarningTriangleIcon color={AppColors_1.AppColors.red500}size={28}/>
192
42
  </react_native_1.View>
193
- <react_native_1.View style={{ flex: 1 }}>
43
+ <react_native_1.View style={{flex:1}}>
194
44
  <react_native_1.View style={styles.badgeRow}>
195
45
  <react_native_1.View style={styles.crashBadge}>
196
46
  <react_native_1.Text style={styles.crashBadgeText}>
197
- {isSyntaxOrType ? `JS ${errorType.toUpperCase()}` : (0, i18n_1.t)('errors.crashIntercepted')}
47
+ {u?`JS ${s.toUpperCase()}`:(0,i18n_1.t)("errors.crashIntercepted")}
198
48
  </react_native_1.Text>
199
49
  </react_native_1.View>
200
50
  <react_native_1.View style={styles.shieldBadge}>
201
- <react_native_1.Text style={styles.shieldBadgeText}>{(0, i18n_1.t)('errors.protected')}</react_native_1.Text>
51
+ <react_native_1.Text style={styles.shieldBadgeText}>{(0,i18n_1.t)("errors.protected")}</react_native_1.Text>
202
52
  </react_native_1.View>
203
53
  </react_native_1.View>
204
- <react_native_1.Text style={styles.title}>{(0, i18n_1.t)('errors.rootCauseTitle')}</react_native_1.Text>
205
- <react_native_1.Text style={styles.subtitle}>{(0, i18n_1.t)('errors.rootCauseSubtitle')}</react_native_1.Text>
54
+ <react_native_1.Text style={styles.title}>{(0,i18n_1.t)("errors.rootCauseTitle")}</react_native_1.Text>
55
+ <react_native_1.Text style={styles.subtitle}>{(0,i18n_1.t)("errors.rootCauseSubtitle")}</react_native_1.Text>
206
56
  </react_native_1.View>
207
- {this.props.onClose && (<react_native_1.TouchableOpacity onPress={this.props.onClose} style={styles.closeIconBtn} activeOpacity={0.7}>
208
- <NetworkIcons_1.ClearIcon size={16} color={AppColors_1.AppColors.slate400}/>
209
- </react_native_1.TouchableOpacity>)}
57
+ {this.props.onClose&&<react_native_1.TouchableOpacity onPress={this.props.onClose}style={styles.closeIconBtn}activeOpacity={.7}>
58
+ <NetworkIcons_1.ClearIcon size={16}color={AppColors_1.AppColors.slate400}/>
59
+ </react_native_1.TouchableOpacity>}
210
60
  </react_native_1.View>
211
61
 
212
- <react_native_1.ScrollView style={styles.scrollArea} contentContainerStyle={styles.scrollContent} showsVerticalScrollIndicator={false}>
62
+ <react_native_1.ScrollView style={styles.scrollArea}contentContainerStyle={styles.scrollContent}showsVerticalScrollIndicator={!1}>
213
63
 
214
64
  <react_native_1.View style={styles.errorBox}>
215
65
  <react_native_1.View style={styles.errorBoxHeader}>
216
- <NetworkIcons_1.CircleAlertIcon size={14} color={AppColors_1.AppColors.red500}/>
217
- <react_native_1.Text style={styles.errorBoxTitle}>{errorType}</react_native_1.Text>
66
+ <NetworkIcons_1.CircleAlertIcon size={14}color={AppColors_1.AppColors.red500}/>
67
+ <react_native_1.Text style={styles.errorBoxTitle}>{s}</react_native_1.Text>
218
68
  </react_native_1.View>
219
- <react_native_1.Text style={styles.errorMessage}>{error.message}</react_native_1.Text>
69
+ <react_native_1.Text style={styles.errorMessage}>{e.message}</react_native_1.Text>
220
70
  </react_native_1.View>
221
71
 
222
72
 
223
- {rootFrame && (<react_native_1.View style={styles.locationCard}>
224
- <react_native_1.Text style={styles.cardHeaderTitle}>{(0, i18n_1.t)('errors.exactLocation')}</react_native_1.Text>
73
+ {r&&<react_native_1.View style={styles.locationCard}>
74
+ <react_native_1.Text style={styles.cardHeaderTitle}>{(0,i18n_1.t)("errors.exactLocation")}</react_native_1.Text>
225
75
  <react_native_1.View style={styles.locRow}>
226
- <react_native_1.Text style={styles.locLabel}>{(0, i18n_1.t)('errors.file')}</react_native_1.Text>
227
- <react_native_1.Text style={styles.locValFile} numberOfLines={1}>
228
- {rootFrame.file}
76
+ <react_native_1.Text style={styles.locLabel}>{(0,i18n_1.t)("errors.file")}</react_native_1.Text>
77
+ <react_native_1.Text style={styles.locValFile}numberOfLines={1}>
78
+ {r.file}
229
79
  </react_native_1.Text>
230
80
  </react_native_1.View>
231
81
  <react_native_1.View style={styles.locRow}>
232
- <react_native_1.Text style={styles.locLabel}>{(0, i18n_1.t)('errors.lineCol')}</react_native_1.Text>
82
+ <react_native_1.Text style={styles.locLabel}>{(0,i18n_1.t)("errors.lineCol")}</react_native_1.Text>
233
83
  <react_native_1.Text style={styles.locValNum}>
234
- {(0, i18n_1.t)('errors.lineColVal', { line: rootFrame.line, col: rootFrame.column })}
84
+ {(0,i18n_1.t)("errors.lineColVal",{line:r.line,col:r.column})}
235
85
  </react_native_1.Text>
236
86
  </react_native_1.View>
237
87
  <react_native_1.View style={styles.locRow}>
238
- <react_native_1.Text style={styles.locLabel}>{(0, i18n_1.t)('errors.function')}</react_native_1.Text>
239
- <react_native_1.Text style={styles.locValMethod}>{rootFrame.method}()</react_native_1.Text>
88
+ <react_native_1.Text style={styles.locLabel}>{(0,i18n_1.t)("errors.function")}</react_native_1.Text>
89
+ <react_native_1.Text style={styles.locValMethod}>{r.method}()</react_native_1.Text>
240
90
  </react_native_1.View>
241
- {rootFrame.fullPath ? (<react_native_1.Text style={styles.fullPathText} numberOfLines={2}>
242
- {rootFrame.fullPath}
243
- </react_native_1.Text>) : null}
244
- </react_native_1.View>)}
91
+ {r.fullPath?<react_native_1.Text style={styles.fullPathText}numberOfLines={2}>
92
+ {r.fullPath}
93
+ </react_native_1.Text>:null}
94
+ </react_native_1.View>}
245
95
 
246
96
 
247
97
  <react_native_1.View style={styles.stackCard}>
248
98
  <react_native_1.View style={styles.stackCardHeader}>
249
- <react_native_1.Text style={styles.cardHeaderTitle}>{(0, i18n_1.t)('errors.callStack')}</react_native_1.Text>
99
+ <react_native_1.Text style={styles.cardHeaderTitle}>{(0,i18n_1.t)("errors.callStack")}</react_native_1.Text>
250
100
  <react_native_1.Text style={styles.frameCountText}>
251
- {(0, i18n_1.t)('errors.framesCount', { count: frames.length })}
101
+ {(0,i18n_1.t)("errors.framesCount",{count:o.length})}
252
102
  </react_native_1.Text>
253
103
  </react_native_1.View>
254
104
 
255
- {frames.slice(0, 8).map((frame, idx) => (<react_native_1.View key={idx} style={[
256
- styles.frameItem,
257
- frame.isProjectFile && styles.frameItemProject,
258
- ]}>
105
+ {o.slice(0,8).map((a,l)=><react_native_1.View key={l}style={[styles.frameItem,a.isProjectFile&&styles.frameItemProject]}>
259
106
  <react_native_1.View style={styles.frameNumBadge}>
260
- <react_native_1.Text style={[
261
- styles.frameNumText,
262
- frame.isProjectFile && { color: AppColors_1.AppColors.sky400 },
263
- ]}>
264
- #{idx + 1}
107
+ <react_native_1.Text style={[styles.frameNumText,a.isProjectFile&&{color:AppColors_1.AppColors.sky400}]}>
108
+ #{l+1}
265
109
  </react_native_1.Text>
266
110
  </react_native_1.View>
267
- <react_native_1.View style={{ flex: 1 }}>
268
- <react_native_1.Text style={[
269
- styles.frameMethod,
270
- frame.isProjectFile && styles.frameMethodProject,
271
- ]} numberOfLines={1}>
272
- {frame.method}
111
+ <react_native_1.View style={{flex:1}}>
112
+ <react_native_1.Text style={[styles.frameMethod,a.isProjectFile&&styles.frameMethodProject]}numberOfLines={1}>
113
+ {a.method}
273
114
  </react_native_1.Text>
274
- <react_native_1.Text style={styles.frameLoc} numberOfLines={1}>
275
- {frame.file}:{frame.line}:{frame.column}
115
+ <react_native_1.Text style={styles.frameLoc}numberOfLines={1}>
116
+ {a.file}:{a.line}:{a.column}
276
117
  </react_native_1.Text>
277
118
  </react_native_1.View>
278
- {frame.isProjectFile && (<react_native_1.View style={styles.appTag}>
279
- <react_native_1.Text style={styles.appTagText}>{(0, i18n_1.t)('errors.appTag')}</react_native_1.Text>
280
- </react_native_1.View>)}
281
- </react_native_1.View>))}
119
+ {a.isProjectFile&&<react_native_1.View style={styles.appTag}>
120
+ <react_native_1.Text style={styles.appTagText}>{(0,i18n_1.t)("errors.appTag")}</react_native_1.Text>
121
+ </react_native_1.View>}
122
+ </react_native_1.View>)}
282
123
  </react_native_1.View>
283
124
  </react_native_1.ScrollView>
284
125
 
285
126
 
286
127
  <react_native_1.View style={styles.footer}>
287
- <react_native_1.TouchableOpacity onPress={this.handleReset} style={styles.retryBtn} activeOpacity={0.8}>
288
- <NetworkIcons_1.RefreshCcwIcon size={16} color={AppColors_1.AppColors.white}/>
289
- <react_native_1.Text style={styles.retryBtnText}>{(0, i18n_1.t)('errors.tryAgainRecover')}</react_native_1.Text>
128
+ <react_native_1.TouchableOpacity onPress={this.handleReset}style={styles.retryBtn}activeOpacity={.8}>
129
+ <NetworkIcons_1.RefreshCcwIcon size={16}color={AppColors_1.AppColors.white}/>
130
+ <react_native_1.Text style={styles.retryBtnText}>{(0,i18n_1.t)("errors.tryAgainRecover")}</react_native_1.Text>
290
131
  </react_native_1.TouchableOpacity>
291
132
 
292
- <react_native_1.TouchableOpacity onPress={this.handleCopyTrace} style={styles.copyBtn} activeOpacity={0.8}>
293
- <NetworkIcons_1.CopyIcon size={16} color={AppColors_1.AppColors.slate900}/>
294
- <react_native_1.Text style={styles.copyBtnText}>{(0, i18n_1.t)('errors.copyDiagnostics')}</react_native_1.Text>
133
+ <react_native_1.TouchableOpacity onPress={this.handleCopyTrace}style={styles.copyBtn}activeOpacity={.8}>
134
+ <NetworkIcons_1.CopyIcon size={16}color={AppColors_1.AppColors.slate900}/>
135
+ <react_native_1.Text style={styles.copyBtnText}>{(0,i18n_1.t)("errors.copyDiagnostics")}</react_native_1.Text>
295
136
  </react_native_1.TouchableOpacity>
296
137
  </react_native_1.View>
297
138
  </react_native_1.View>
298
- </react_native_1.SafeAreaView>);
299
- }
300
- }
301
- exports.ErrorBoundary = ErrorBoundary;
302
- const styles = react_native_1.StyleSheet.create({
303
- safeArea: {
304
- flex: 1,
305
- backgroundColor: AppColors_1.AppColors.slate850,
306
- },
307
- container: {
308
- flex: 1,
309
- backgroundColor: AppColors_1.AppColors.slate850,
310
- },
311
- header: {
312
- flexDirection: 'row',
313
- alignItems: 'flex-start',
314
- paddingHorizontal: 16,
315
- paddingTop: 14,
316
- paddingBottom: 12,
317
- borderBottomWidth: 1,
318
- borderBottomColor: AppColors_1.AppColors.slate800,
319
- gap: 12,
320
- },
321
- iconGlowWrap: {
322
- width: 44,
323
- height: 44,
324
- borderRadius: 12,
325
- backgroundColor: `${AppColors_1.AppColors.red500}26`,
326
- borderWidth: 1,
327
- borderColor: `${AppColors_1.AppColors.red500}59`,
328
- alignItems: 'center',
329
- justifyContent: 'center',
330
- marginTop: 2,
331
- },
332
- badgeRow: {
333
- flexDirection: 'row',
334
- alignItems: 'center',
335
- gap: 6,
336
- marginBottom: 4,
337
- },
338
- crashBadge: {
339
- backgroundColor: `${AppColors_1.AppColors.red500}33`,
340
- paddingHorizontal: 7,
341
- paddingVertical: 2,
342
- borderRadius: 4,
343
- borderWidth: 1,
344
- borderColor: `${AppColors_1.AppColors.red500}66`,
345
- },
346
- crashBadgeText: {
347
- fontFamily: AppFonts_1.AppFonts.interBold,
348
- fontSize: 9.5,
349
- color: AppColors_1.AppColors.red500,
350
- letterSpacing: 0.5,
351
- },
352
- shieldBadge: {
353
- backgroundColor: `${AppColors_1.AppColors.emerald500}26`,
354
- paddingHorizontal: 6,
355
- paddingVertical: 2,
356
- borderRadius: 4,
357
- borderWidth: 1,
358
- borderColor: `${AppColors_1.AppColors.emerald500}4D`,
359
- },
360
- shieldBadgeText: {
361
- fontFamily: AppFonts_1.AppFonts.interBold,
362
- fontSize: 9,
363
- color: AppColors_1.AppColors.emerald500,
364
- letterSpacing: 0.5,
365
- },
366
- title: {
367
- fontFamily: AppFonts_1.AppFonts.interBold,
368
- fontSize: 16,
369
- color: AppColors_1.AppColors.white,
370
- letterSpacing: -0.2,
371
- },
372
- subtitle: {
373
- fontFamily: AppFonts_1.AppFonts.interRegular,
374
- fontSize: 11,
375
- color: AppColors_1.AppColors.slate400,
376
- marginTop: 1,
377
- },
378
- closeIconBtn: {
379
- padding: 6,
380
- borderRadius: 8,
381
- backgroundColor: AppColors_1.AppColors.slate800,
382
- },
383
- scrollArea: {
384
- flex: 1,
385
- },
386
- scrollContent: {
387
- padding: 16,
388
- gap: 12,
389
- },
390
- errorBox: {
391
- backgroundColor: `${AppColors_1.AppColors.red500}1A`,
392
- borderRadius: 12,
393
- borderWidth: 1,
394
- borderColor: `${AppColors_1.AppColors.red500}40`,
395
- padding: 14,
396
- gap: 6,
397
- },
398
- errorBoxHeader: {
399
- flexDirection: 'row',
400
- alignItems: 'center',
401
- gap: 6,
402
- },
403
- errorBoxTitle: {
404
- fontFamily: AppFonts_1.AppFonts.interBold,
405
- fontSize: 12,
406
- color: AppColors_1.AppColors.red500,
407
- letterSpacing: 0.3,
408
- },
409
- errorMessage: {
410
- fontFamily: AppFonts_1.AppFonts.interBold,
411
- fontSize: 13.5,
412
- color: AppColors_1.AppColors.red100,
413
- lineHeight: 19,
414
- },
415
- locationCard: {
416
- backgroundColor: AppColors_1.AppColors.slate800,
417
- borderRadius: 12,
418
- padding: 14,
419
- borderWidth: 1,
420
- borderColor: AppColors_1.AppColors.slate700,
421
- gap: 8,
422
- },
423
- cardHeaderTitle: {
424
- fontFamily: AppFonts_1.AppFonts.interBold,
425
- fontSize: 10.5,
426
- color: AppColors_1.AppColors.slate400,
427
- letterSpacing: 0.8,
428
- },
429
- locRow: {
430
- flexDirection: 'row',
431
- alignItems: 'center',
432
- justifyContent: 'space-between',
433
- gap: 8,
434
- },
435
- locLabel: {
436
- fontFamily: AppFonts_1.AppFonts.interMedium,
437
- fontSize: 12,
438
- color: AppColors_1.AppColors.slate400,
439
- minWidth: 80,
440
- },
441
- locValFile: {
442
- fontFamily: AppFonts_1.AppFonts.interBold,
443
- fontSize: 12.5,
444
- color: AppColors_1.AppColors.sky400,
445
- flex: 1,
446
- textAlign: 'right',
447
- },
448
- locValNum: {
449
- fontFamily: AppFonts_1.AppFonts.interBold,
450
- fontSize: 12,
451
- color: AppColors_1.AppColors.white,
452
- },
453
- locValMethod: {
454
- fontFamily: AppFonts_1.AppFonts.interMedium,
455
- fontSize: 12,
456
- color: AppColors_1.AppColors.purple400,
457
- },
458
- fullPathText: {
459
- fontFamily: AppFonts_1.AppFonts.interRegular,
460
- fontSize: 10,
461
- color: AppColors_1.AppColors.slate500,
462
- marginTop: 2,
463
- paddingTop: 6,
464
- borderTopWidth: 1,
465
- borderTopColor: AppColors_1.AppColors.slate700,
466
- },
467
- stackCard: {
468
- backgroundColor: AppColors_1.AppColors.slate800,
469
- borderRadius: 12,
470
- padding: 14,
471
- borderWidth: 1,
472
- borderColor: AppColors_1.AppColors.slate700,
473
- gap: 8,
474
- },
475
- stackCardHeader: {
476
- flexDirection: 'row',
477
- justifyContent: 'space-between',
478
- alignItems: 'center',
479
- marginBottom: 4,
480
- },
481
- frameCountText: {
482
- fontFamily: AppFonts_1.AppFonts.interMedium,
483
- fontSize: 10.5,
484
- color: AppColors_1.AppColors.slate400,
485
- },
486
- frameItem: {
487
- flexDirection: 'row',
488
- alignItems: 'center',
489
- backgroundColor: AppColors_1.AppColors.slate850,
490
- padding: 10,
491
- borderRadius: 8,
492
- gap: 10,
493
- borderWidth: 1,
494
- borderColor: AppColors_1.AppColors.slate800,
495
- },
496
- frameItemProject: {
497
- borderColor: `${AppColors_1.AppColors.sky400}4D`,
498
- backgroundColor: `${AppColors_1.AppColors.sky400}0D`,
499
- },
500
- frameNumBadge: {
501
- width: 24,
502
- alignItems: 'center',
503
- },
504
- frameNumText: {
505
- fontFamily: AppFonts_1.AppFonts.interBold,
506
- fontSize: 10.5,
507
- color: AppColors_1.AppColors.slate500,
508
- },
509
- frameMethod: {
510
- fontFamily: AppFonts_1.AppFonts.interBold,
511
- fontSize: 11.5,
512
- color: AppColors_1.AppColors.slate200,
513
- },
514
- frameMethodProject: {
515
- color: AppColors_1.AppColors.white,
516
- },
517
- frameLoc: {
518
- fontFamily: AppFonts_1.AppFonts.interRegular,
519
- fontSize: 10,
520
- color: AppColors_1.AppColors.slate400,
521
- marginTop: 1,
522
- },
523
- appTag: {
524
- backgroundColor: `${AppColors_1.AppColors.sky400}33`,
525
- paddingHorizontal: 5,
526
- paddingVertical: 2,
527
- borderRadius: 4,
528
- },
529
- appTagText: {
530
- fontFamily: AppFonts_1.AppFonts.interBold,
531
- fontSize: 8.5,
532
- color: AppColors_1.AppColors.sky400,
533
- },
534
- footer: {
535
- flexDirection: 'row',
536
- padding: 14,
537
- backgroundColor: AppColors_1.AppColors.slate800,
538
- borderTopWidth: 1,
539
- borderTopColor: AppColors_1.AppColors.slate700,
540
- gap: 10,
541
- },
542
- retryBtn: {
543
- flex: 1.2,
544
- flexDirection: 'row',
545
- alignItems: 'center',
546
- justifyContent: 'center',
547
- gap: 8,
548
- backgroundColor: AppColors_1.AppColors.purple,
549
- height: 44,
550
- borderRadius: 10,
551
- },
552
- retryBtnText: {
553
- fontFamily: AppFonts_1.AppFonts.interBold,
554
- fontSize: 13,
555
- color: AppColors_1.AppColors.white,
556
- },
557
- copyBtn: {
558
- flex: 1,
559
- flexDirection: 'row',
560
- alignItems: 'center',
561
- justifyContent: 'center',
562
- gap: 8,
563
- backgroundColor: AppColors_1.AppColors.slate100,
564
- height: 44,
565
- borderRadius: 10,
566
- },
567
- copyBtnText: {
568
- fontFamily: AppFonts_1.AppFonts.interBold,
569
- fontSize: 13,
570
- color: AppColors_1.AppColors.slate900,
571
- },
572
- inlineContainer: {
573
- padding: 12,
574
- backgroundColor: AppColors_1.AppColors.red50,
575
- borderWidth: 1,
576
- borderColor: AppColors_1.AppColors.errorBorder,
577
- borderRadius: 10,
578
- margin: 8,
579
- gap: 10,
580
- },
581
- inlineHeader: {
582
- flexDirection: 'row',
583
- alignItems: 'flex-start',
584
- gap: 10,
585
- },
586
- inlineTitle: {
587
- fontFamily: AppFonts_1.AppFonts.interBold,
588
- fontSize: 12,
589
- color: AppColors_1.AppColors.red600,
590
- },
591
- inlineLoc: {
592
- fontFamily: AppFonts_1.AppFonts.interMedium,
593
- fontSize: 10.5,
594
- color: AppColors_1.AppColors.redErrorText,
595
- marginTop: 2,
596
- },
597
- inlineActions: {
598
- flexDirection: 'row',
599
- gap: 8,
600
- justifyContent: 'flex-end',
601
- },
602
- inlineBtn: {
603
- flexDirection: 'row',
604
- alignItems: 'center',
605
- gap: 4,
606
- backgroundColor: AppColors_1.AppColors.red600,
607
- paddingHorizontal: 10,
608
- paddingVertical: 5,
609
- borderRadius: 6,
610
- },
611
- inlineBtnText: {
612
- fontFamily: AppFonts_1.AppFonts.interBold,
613
- fontSize: 11,
614
- color: AppColors_1.AppColors.white,
615
- },
616
- inlineCopyBtn: {
617
- flexDirection: 'row',
618
- alignItems: 'center',
619
- gap: 4,
620
- backgroundColor: AppColors_1.AppColors.red100,
621
- borderWidth: 1,
622
- borderColor: AppColors_1.AppColors.errorBorder,
623
- paddingHorizontal: 10,
624
- paddingVertical: 5,
625
- borderRadius: 6,
626
- },
627
- inlineCopyBtnText: {
628
- fontFamily: AppFonts_1.AppFonts.interMedium,
629
- fontSize: 11,
630
- color: AppColors_1.AppColors.redErrorText,
631
- },
632
- });
633
- exports.default = ErrorBoundary;
139
+ </react_native_1.SafeAreaView>}}exports.ErrorBoundary=ErrorBoundary;const styles=react_native_1.StyleSheet.create({safeArea:{flex:1,backgroundColor:AppColors_1.AppColors.slate850},container:{flex:1,backgroundColor:AppColors_1.AppColors.slate850},header:{flexDirection:"row",alignItems:"flex-start",paddingHorizontal:16,paddingTop:14,paddingBottom:12,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.slate800,gap:12},iconGlowWrap:{width:44,height:44,borderRadius:12,backgroundColor:`${AppColors_1.AppColors.red500}26`,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}59`,alignItems:"center",justifyContent:"center",marginTop:2},badgeRow:{flexDirection:"row",alignItems:"center",gap:6,marginBottom:4},crashBadge:{backgroundColor:`${AppColors_1.AppColors.red500}33`,paddingHorizontal:7,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}66`},crashBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.red500,letterSpacing:.5},shieldBadge:{backgroundColor:`${AppColors_1.AppColors.emerald500}26`,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:`${AppColors_1.AppColors.emerald500}4D`},shieldBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:AppColors_1.AppColors.emerald500,letterSpacing:.5},title:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:16,color:AppColors_1.AppColors.white,letterSpacing:-.2},subtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:AppColors_1.AppColors.slate400,marginTop:1},closeIconBtn:{padding:6,borderRadius:8,backgroundColor:AppColors_1.AppColors.slate800},scrollArea:{flex:1},scrollContent:{padding:16,gap:12},errorBox:{backgroundColor:`${AppColors_1.AppColors.red500}1A`,borderRadius:12,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}40`,padding:14,gap:6},errorBoxHeader:{flexDirection:"row",alignItems:"center",gap:6},errorBoxTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.red500,letterSpacing:.3},errorMessage:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,color:AppColors_1.AppColors.red100,lineHeight:19},locationCard:{backgroundColor:AppColors_1.AppColors.slate800,borderRadius:12,padding:14,borderWidth:1,borderColor:AppColors_1.AppColors.slate700,gap:8},cardHeaderTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.slate400,letterSpacing:.8},locRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},locLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.slate400,minWidth:80},locValFile:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.sky400,flex:1,textAlign:"right"},locValNum:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.white},locValMethod:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.purple400},fullPathText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10,color:AppColors_1.AppColors.slate500,marginTop:2,paddingTop:6,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.slate700},stackCard:{backgroundColor:AppColors_1.AppColors.slate800,borderRadius:12,padding:14,borderWidth:1,borderColor:AppColors_1.AppColors.slate700,gap:8},stackCardHeader:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:4},frameCountText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.slate400},frameItem:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.slate850,padding:10,borderRadius:8,gap:10,borderWidth:1,borderColor:AppColors_1.AppColors.slate800},frameItemProject:{borderColor:`${AppColors_1.AppColors.sky400}4D`,backgroundColor:`${AppColors_1.AppColors.sky400}0D`},frameNumBadge:{width:24,alignItems:"center"},frameNumText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.slate500},frameMethod:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:AppColors_1.AppColors.slate200},frameMethodProject:{color:AppColors_1.AppColors.white},frameLoc:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10,color:AppColors_1.AppColors.slate400,marginTop:1},appTag:{backgroundColor:`${AppColors_1.AppColors.sky400}33`,paddingHorizontal:5,paddingVertical:2,borderRadius:4},appTagText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.sky400},footer:{flexDirection:"row",padding:14,backgroundColor:AppColors_1.AppColors.slate800,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.slate700,gap:10},retryBtn:{flex:1.2,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,backgroundColor:AppColors_1.AppColors.purple,height:44,borderRadius:10},retryBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,color:AppColors_1.AppColors.white},copyBtn:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,backgroundColor:AppColors_1.AppColors.slate100,height:44,borderRadius:10},copyBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,color:AppColors_1.AppColors.slate900},inlineContainer:{padding:12,backgroundColor:AppColors_1.AppColors.red50,borderWidth:1,borderColor:AppColors_1.AppColors.errorBorder,borderRadius:10,margin:8,gap:10},inlineHeader:{flexDirection:"row",alignItems:"flex-start",gap:10},inlineTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.red600},inlineLoc:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.redErrorText,marginTop:2},inlineActions:{flexDirection:"row",gap:8,justifyContent:"flex-end"},inlineBtn:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:AppColors_1.AppColors.red600,paddingHorizontal:10,paddingVertical:5,borderRadius:6},inlineBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.white},inlineCopyBtn:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:AppColors_1.AppColors.red100,borderWidth:1,borderColor:AppColors_1.AppColors.errorBorder,paddingHorizontal:10,paddingVertical:5,borderRadius:6},inlineCopyBtnText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.redErrorText}});exports.default=ErrorBoundary;