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,1221 +1,358 @@
1
- import React, { useState, useMemo, useEffect } from 'react';
2
- import { Alert, Platform, Pressable, ScrollView, StyleSheet, Text, TextInput, ToastAndroid, TouchableOpacity, View, } from 'react-native';
3
- import { useTranslation } from '../../i18n';
4
- import { useInspector } from './InspectorContext';
5
- import SegmentedTabs from '../SegmentedTabs';
6
- import JsonViewer from '../JsonViewer';
7
- import DiffViewer from '../DiffViewer';
8
- import CopyButton from '../CopyButton';
9
- import TouchableScale from '../TouchableScale';
10
- import HighlightText from '../HighlightText';
11
- import AnimatedEntrance from '../AnimatedEntrance';
12
- import { getActionHistory } from '../../customHooks/reduxLogger';
13
- import { getSize, openInVSCode, parseStackLine } from '../../helpers';
14
- import { getCustomStorage } from '../../helpers/settingsStore';
15
- import { AppColors } from '../../styles/AppColors';
16
- import { AppFonts } from '../../styles/AppFonts';
17
- import { TerminalIcon, SearchIcon, ClearIcon, ClockIcon, LayersIcon, TrashIcon, ForwardChevronIcon, LiveStateIcon, TimelineIcon, StorageIcon, MetadataIcon, BoltIcon, AtomIcon, ScreenIcon, ListenerIcon, DocIcon, ExternalLinkIcon, CodeBracketsIcon, } from '../NetworkIcons';
18
- const getOriginBadge = (originType) => {
19
- switch (originType) {
20
- case 'saga':
21
- return {
22
- label: 'SAGA',
23
- renderIcon: (color, size = 9) => (<BoltIcon color={color} size={size}/>),
24
- bg: AppColors.purple100,
25
- text: AppColors.brandPurple,
26
- border: AppColors.purple200,
27
- };
28
- case 'thunk':
29
- return {
30
- label: 'THUNK',
31
- renderIcon: (color, size = 9) => (<AtomIcon color={color} size={size}/>),
32
- bg: AppColors.amber100,
33
- text: AppColors.amber800Warm,
34
- border: AppColors.amber200,
35
- };
36
- case 'ui':
37
- return {
38
- label: 'UI',
39
- renderIcon: (color, size = 9) => (<ScreenIcon color={color} size={size}/>),
40
- bg: AppColors.sky100,
41
- text: AppColors.sky600,
42
- border: AppColors.sky400,
43
- };
44
- case 'listener':
45
- return {
46
- label: 'LISTENER',
47
- renderIcon: (color, size = 9) => (<ListenerIcon color={color} size={size}/>),
48
- bg: AppColors.teal100,
49
- text: AppColors.teal700,
50
- border: AppColors.teal400,
51
- };
52
- default:
53
- return {
54
- label: 'DIRECT',
55
- renderIcon: (color, size = 9) => (<BoltIcon color={color} size={size}/>),
56
- bg: AppColors.slate100,
57
- text: AppColors.slate700,
58
- border: AppColors.slate200,
59
- };
60
- }
61
- };
62
- const ReduxDetail = React.memo(() => {
63
- const { t } = useTranslation();
64
- const { reduxState, reduxLastActionMap, selectedReduxSlice, selectedReduxAction, setSelectedReduxSlice, } = useInspector();
65
- const [detailSearch, setDetailSearch] = useState('');
66
- const [sliceTab, setSliceTab] = useState('live');
67
- const [actionTab, setActionTab] = useState('payload');
68
- const [viewMode, setViewMode] = useState('pretty');
69
- const [expandedActionId, setExpandedActionId] = useState(null);
70
- const [isPersisted, setIsPersisted] = useState(false);
71
- const [persistedData, setPersistedData] = useState(null);
72
- const allActionHistory = useMemo(() => {
73
- return getActionHistory();
74
- }, [reduxLastActionMap]);
75
- const sliceActions = useMemo(() => {
76
- if (!selectedReduxSlice)
77
- return allActionHistory;
78
- return allActionHistory.filter(action => {
79
- if (!action.affectedSlices || action.affectedSlices.length === 0)
80
- return true;
81
- return action.affectedSlices.includes(selectedReduxSlice);
82
- });
83
- }, [allActionHistory, selectedReduxSlice]);
84
- const filteredTimelineActions = useMemo(() => {
85
- if (!detailSearch.trim())
86
- return sliceActions;
87
- const q = detailSearch.toLowerCase();
88
- return sliceActions.filter(action => {
89
- return (action.type.toLowerCase().includes(q) ||
90
- (action.callerFile && action.callerFile.toLowerCase().includes(q)) ||
91
- (action.payload &&
92
- JSON.stringify(action.payload).toLowerCase().includes(q)));
93
- });
94
- }, [sliceActions, detailSearch]);
95
- useEffect(() => {
96
- if (!selectedReduxSlice)
97
- return;
98
- async function checkPersistence() {
99
- try {
100
- const storage = getCustomStorage();
101
- if (!storage) {
102
- setIsPersisted(false);
103
- setPersistedData(null);
104
- return;
105
- }
106
- let raw = await storage.getItem(`persist:${selectedReduxSlice}`);
107
- if (raw) {
108
- try {
109
- setPersistedData(JSON.parse(raw));
110
- }
111
- catch {
112
- setPersistedData(raw);
113
- }
114
- setIsPersisted(true);
115
- return;
116
- }
117
- let rootRaw = await storage.getItem('persist:root');
118
- if (rootRaw) {
119
- const parsedRoot = JSON.parse(rootRaw);
120
- if (parsedRoot && parsedRoot[selectedReduxSlice] !== undefined) {
121
- const nested = parsedRoot[selectedReduxSlice];
122
- try {
123
- setPersistedData(typeof nested === 'string' ? JSON.parse(nested) : nested);
124
- }
125
- catch {
126
- setPersistedData(nested);
127
- }
128
- setIsPersisted(true);
129
- return;
130
- }
131
- }
132
- }
133
- catch (e) {
134
- }
135
- setIsPersisted(false);
136
- setPersistedData(null);
137
- }
138
- checkPersistence();
139
- }, [selectedReduxSlice]);
140
- const handleClearPersistence = () => {
141
- if (!selectedReduxSlice)
142
- return;
143
- Alert.alert('Clear Persisted State', `Are you sure you want to delete persisted storage for slice "${selectedReduxSlice}"?`, [
144
- { text: 'Cancel', style: 'cancel' },
145
- {
146
- text: 'Delete',
147
- style: 'destructive',
148
- onPress: async () => {
149
- try {
150
- const storage = getCustomStorage();
151
- if (!storage)
152
- return;
153
- if (typeof storage.removeItem === 'function') {
154
- await storage.removeItem(`persist:${selectedReduxSlice}`);
155
- }
156
- else {
157
- await storage.setItem(`persist:${selectedReduxSlice}`, '');
158
- }
159
- setIsPersisted(false);
160
- setPersistedData(null);
161
- setSliceTab('live');
162
- if (Platform.OS === 'android') {
163
- ToastAndroid.show('Persisted state cleared', ToastAndroid.SHORT);
164
- }
165
- else {
166
- Alert.alert('Cleared', 'Persisted state has been cleared.');
167
- }
168
- }
169
- catch (err) {
170
- Alert.alert('Error', 'Failed to clear persisted state.');
171
- }
172
- },
173
- },
174
- ]);
175
- };
176
- if (selectedReduxSlice != null) {
177
- const sliceData = reduxState?.[selectedReduxSlice];
178
- const fieldsCount = sliceData && typeof sliceData === 'object'
179
- ? Object.keys(sliceData).length
180
- : typeof sliceData !== 'undefined'
181
- ? 1
182
- : 0;
183
- const lastAction = reduxLastActionMap[selectedReduxSlice];
184
- const sliceTabs = [
185
- {
186
- key: 'live',
187
- label: t('redux.liveState', 'Live State'),
188
- icon: (isActive) => (<LiveStateIcon color={isActive ? AppColors.white : AppColors.grayText} size={12}/>),
189
- },
190
- {
191
- key: 'timeline',
192
- label: `${t('redux.timeline', 'Timeline')} (${sliceActions.length})`,
193
- icon: (isActive) => (<TimelineIcon color={isActive ? AppColors.white : AppColors.grayText} size={12}/>),
194
- },
195
- {
196
- key: 'persisted',
197
- label: isPersisted
198
- ? t('redux.persisted', 'Persisted')
199
- : t('redux.storage', 'Storage'),
200
- icon: (isActive) => (<StorageIcon color={isActive ? AppColors.white : AppColors.grayText} size={12}/>),
201
- },
202
- {
203
- key: 'metadata',
204
- label: t('redux.metadata', 'Metadata'),
205
- icon: (isActive) => (<MetadataIcon color={isActive ? AppColors.white : AppColors.grayText} size={12}/>),
206
- },
207
- ];
208
- return (<View style={{ flex: 1, backgroundColor: AppColors.grayBackground }}>
1
+ import Ze,{useState as E,useMemo as Ve,useEffect as _e}from"react";import{Alert as ze,Platform as et,Pressable as U,ScrollView as Z,StyleSheet as tt,Text as C,TextInput as Tt,ToastAndroid as Oe,TouchableOpacity as Ne,View as T}from"react-native";import{useTranslation as ht}from"../../i18n";import{useInspector as wt}from"./InspectorContext";import Me from"../SegmentedTabs";import K from"../JsonViewer";import He from"../DiffViewer";import Ee from"../CopyButton";import Ct from"../TouchableScale";import St from"../HighlightText";import Bt from"../AnimatedEntrance";import{getActionHistory as Vt}from"../../customHooks/reduxLogger";import{getSize as q,openInVSCode as _,parseStackLine as je}from"../../helpers";import{getCustomStorage as $e}from"../../helpers/settingsStore";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as k}from"../../styles/AppFonts";import{TerminalIcon as It,SearchIcon as Pt,ClearIcon as Wt,ClockIcon as Ie,LayersIcon as Je,TrashIcon as Ge,ForwardChevronIcon as Rt,LiveStateIcon as Ue,TimelineIcon as Te,StorageIcon as Ce,MetadataIcon as Ft,BoltIcon as Pe,AtomIcon as Dt,ScreenIcon as At,ListenerIcon as Lt,DocIcon as We,ExternalLinkIcon as Se,CodeBracketsIcon as Ot}from"../NetworkIcons";const Ke=z=>{switch(z){case"saga":return{label:"SAGA",renderIcon:(A,D=9)=><Pe color={A}size={D}/>,bg:e.purple100,text:e.brandPurple,border:e.purple200};case"thunk":return{label:"THUNK",renderIcon:(A,D=9)=><Dt color={A}size={D}/>,bg:e.amber100,text:e.amber800Warm,border:e.amber200};case"ui":return{label:"UI",renderIcon:(A,D=9)=><At color={A}size={D}/>,bg:e.sky100,text:e.sky600,border:e.sky400};case"listener":return{label:"LISTENER",renderIcon:(A,D=9)=><Lt color={A}size={D}/>,bg:e.teal100,text:e.teal700,border:e.teal400};default:return{label:"DIRECT",renderIcon:(A,D=9)=><Pe color={A}size={D}/>,bg:e.slate100,text:e.slate700,border:e.slate200}}},Nt=Ze.memo(()=>{const{t:z}=ht(),{reduxState:A,reduxLastActionMap:D,selectedReduxSlice:W,selectedReduxAction:V,setSelectedReduxSlice:Mt}=wt(),[F,Re]=E(""),[O,ve]=E("live"),[Q,qe]=E("payload"),[Fe,De]=E("pretty"),[Qe,Xe]=E(null),[J,G]=E(!1),[X,N]=E(null),ke=Ve(()=>Vt(),[D]),j=Ve(()=>W?ke.filter(B=>!B.affectedSlices||B.affectedSlices.length===0?!0:B.affectedSlices.includes(W)):ke,[ke,W]),Ae=Ve(()=>{if(!F.trim())return j;const B=F.toLowerCase();return j.filter(R=>R.type.toLowerCase().includes(B)||R.callerFile&&R.callerFile.toLowerCase().includes(B)||R.payload&&JSON.stringify(R.payload).toLowerCase().includes(B))},[j,F]);_e(()=>{if(!W)return;async function B(){try{const R=$e();if(!R){G(!1),N(null);return}let v=await R.getItem(`persist:${W}`);if(v){try{N(JSON.parse(v))}catch{N(v)}G(!0);return}let I=await R.getItem("persist:root");if(I){const S=JSON.parse(I);if(S&&S[W]!==void 0){const P=S[W];try{N(typeof P=="string"?JSON.parse(P):P)}catch{N(P)}G(!0);return}}}catch{}G(!1),N(null)}B()},[W]);const Le=()=>{W&&ze.alert("Clear Persisted State",`Are you sure you want to delete persisted storage for slice "${W}"?`,[{text:"Cancel",style:"cancel"},{text:"Delete",style:"destructive",onPress:async()=>{try{const B=$e();if(!B)return;typeof B.removeItem=="function"?await B.removeItem(`persist:${W}`):await B.setItem(`persist:${W}`,""),G(!1),N(null),ve("live"),et.OS==="android"?Oe.show("Persisted state cleared",Oe.SHORT):ze.alert("Cleared","Persisted state has been cleared.")}catch{ze.alert("Error","Failed to clear persisted state.")}}}])};if(W!=null){const B=A?.[W],R=B&&typeof B=="object"?Object.keys(B).length:typeof B<"u"?1:0,v=D[W],I=[{key:"live",label:z("redux.liveState","Live State"),icon:S=><Ue color={S?e.white:e.grayText}size={12}/>},{key:"timeline",label:`${z("redux.timeline","Timeline")} (${j.length})`,icon:S=><Te color={S?e.white:e.grayText}size={12}/>},{key:"persisted",label:J?z("redux.persisted","Persisted"):z("redux.storage","Storage"),icon:S=><Ce color={S?e.white:e.grayText}size={12}/>},{key:"metadata",label:z("redux.metadata","Metadata"),icon:S=><Ft color={S?e.white:e.grayText}size={12}/>}];return<T style={{flex:1,backgroundColor:e.grayBackground}}>
209
2
 
210
- <View style={reduxDetailStyles.infoBar}>
211
- <View style={reduxDetailStyles.infoTopRow}>
212
- <View style={{
213
- flexDirection: 'row',
214
- alignItems: 'center',
215
- gap: 6,
216
- flexWrap: 'wrap',
217
- flex: 1,
218
- minWidth: 0,
219
- }}>
220
- <View style={[
221
- reduxDetailStyles.methodBadge,
222
- { backgroundColor: AppColors.indigo600Alt },
223
- ]}>
224
- <Text style={reduxDetailStyles.methodBadgeText}>
225
- {t('redux.slice', 'SLICE')}
226
- </Text>
227
- </View>
228
- <Text style={reduxDetailStyles.sliceNameText} numberOfLines={1}>
229
- {selectedReduxSlice}
230
- </Text>
231
- {isPersisted ? (<View style={reduxDetailStyles.persistedChip}>
232
- <StorageIcon color={AppColors.emerald700} size={10}/>
233
- <Text style={reduxDetailStyles.persistedChipText}>
234
- {t('redux.persisted', 'Persisted').toUpperCase()}
235
- </Text>
236
- </View>) : (<View style={reduxDetailStyles.inMemoryChip}>
237
- <Text style={reduxDetailStyles.inMemoryChipText}>
238
- {t('redux.inMemory', 'In-Memory').toUpperCase()}
239
- </Text>
240
- </View>)}
241
- {lastAction?.timestamp && (<View style={reduxDetailStyles.timePill}>
242
- <ClockIcon color={AppColors.violet600} size={10}/>
243
- <Text style={reduxDetailStyles.timeText}>
244
- {lastAction.timestamp}
245
- </Text>
246
- </View>)}
247
- </View>
3
+ <T style={t.infoBar}>
4
+ <T style={t.infoTopRow}>
5
+ <T style={{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap",flex:1,minWidth:0}}>
6
+ <T style={[t.methodBadge,{backgroundColor:e.indigo600Alt}]}>
7
+ <C style={t.methodBadgeText}>
8
+ {z("redux.slice","SLICE")}
9
+ </C>
10
+ </T>
11
+ <C style={t.sliceNameText}numberOfLines={1}>
12
+ {W}
13
+ </C>
14
+ {J?<T style={t.persistedChip}>
15
+ <Ce color={e.emerald700}size={10}/>
16
+ <C style={t.persistedChipText}>
17
+ {z("redux.persisted","Persisted").toUpperCase()}
18
+ </C>
19
+ </T>:<T style={t.inMemoryChip}>
20
+ <C style={t.inMemoryChipText}>
21
+ {z("redux.inMemory","In-Memory").toUpperCase()}
22
+ </C>
23
+ </T>}
24
+ {v?.timestamp&&<T style={t.timePill}>
25
+ <Ie color={e.violet600}size={10}/>
26
+ <C style={t.timeText}>
27
+ {v.timestamp}
28
+ </C>
29
+ </T>}
30
+ </T>
248
31
 
249
32
 
250
- <CopyButton value={() => (sliceTab === 'live' ? sliceData : persistedData)} label={t('redux.sliceJson', 'Slice JSON')}/>
251
- </View>
33
+ <Ee value={()=>O==="live"?B:X}label={z("redux.sliceJson","Slice JSON")}/>
34
+ </T>
252
35
 
253
36
 
254
- <View style={reduxDetailStyles.subStatsRow}>
255
- <View style={[
256
- reduxDetailStyles.statPill,
257
- {
258
- backgroundColor: AppColors.indigo50,
259
- borderColor: AppColors.indigo400,
260
- },
261
- ]}>
262
- <LayersIcon color={AppColors.indigo600Alt} size={11}/>
263
- <Text style={[
264
- reduxDetailStyles.statLabel,
265
- { color: AppColors.indigo600Alt },
266
- ]}>
267
- {t('redux.keys', 'Keys')}:
268
- </Text>
269
- <Text style={[
270
- reduxDetailStyles.statValue,
271
- { color: AppColors.indigo600Alt },
272
- ]}>
273
- {fieldsCount}
274
- </Text>
275
- </View>
276
- <View style={[
277
- reduxDetailStyles.statPill,
278
- {
279
- backgroundColor: AppColors.sky100,
280
- borderColor: AppColors.sky400,
281
- },
282
- ]}>
283
- <Text style={[
284
- reduxDetailStyles.statLabel,
285
- { color: AppColors.sky600 },
286
- ]}>
287
- {t('redux.size', 'Size')}:
288
- </Text>
289
- <Text style={[
290
- reduxDetailStyles.statValue,
291
- { color: AppColors.sky600 },
292
- ]}>
293
- {getSize(sliceData)}
294
- </Text>
295
- </View>
296
- <View style={[
297
- reduxDetailStyles.statPill,
298
- {
299
- backgroundColor: AppColors.purple100,
300
- borderColor: AppColors.purple200,
301
- },
302
- ]}>
303
- <TimelineIcon color={AppColors.violet600} size={11}/>
304
- <Text style={[
305
- reduxDetailStyles.statLabel,
306
- { color: AppColors.brandPurple },
307
- ]}>
308
- {t('redux.timeline', 'Timeline')}:
309
- </Text>
310
- <Text style={[
311
- reduxDetailStyles.statValue,
312
- { color: AppColors.brandPurple },
313
- ]}>
314
- {sliceActions.length}
315
- </Text>
316
- </View>
317
- {lastAction && (<View style={[
318
- reduxDetailStyles.statPill,
319
- {
320
- backgroundColor: AppColors.amber100,
321
- borderColor: AppColors.amber200,
322
- flexShrink: 1,
323
- maxWidth: 160,
324
- },
325
- ]}>
326
- <BoltIcon color={AppColors.amber800Warm} size={11}/>
327
- <Text style={[
328
- reduxDetailStyles.statLabel,
329
- { color: AppColors.amber800Warm },
330
- ]}>
331
- {t('redux.last', 'Last')}:
332
- </Text>
333
- <Text style={[
334
- reduxDetailStyles.statValue,
335
- { color: AppColors.amber800Warm, flexShrink: 1 },
336
- ]} numberOfLines={1}>
337
- {lastAction.type}
338
- </Text>
339
- </View>)}
340
- </View>
37
+ <T style={t.subStatsRow}>
38
+ <T style={[t.statPill,{backgroundColor:e.indigo50,borderColor:e.indigo400}]}>
39
+ <Je color={e.indigo600Alt}size={11}/>
40
+ <C style={[t.statLabel,{color:e.indigo600Alt}]}>
41
+ {z("redux.keys","Keys")}:
42
+ </C>
43
+ <C style={[t.statValue,{color:e.indigo600Alt}]}>
44
+ {R}
45
+ </C>
46
+ </T>
47
+ <T style={[t.statPill,{backgroundColor:e.sky100,borderColor:e.sky400}]}>
48
+ <C style={[t.statLabel,{color:e.sky600}]}>
49
+ {z("redux.size","Size")}:
50
+ </C>
51
+ <C style={[t.statValue,{color:e.sky600}]}>
52
+ {q(B)}
53
+ </C>
54
+ </T>
55
+ <T style={[t.statPill,{backgroundColor:e.purple100,borderColor:e.purple200}]}>
56
+ <Te color={e.violet600}size={11}/>
57
+ <C style={[t.statLabel,{color:e.brandPurple}]}>
58
+ {z("redux.timeline","Timeline")}:
59
+ </C>
60
+ <C style={[t.statValue,{color:e.brandPurple}]}>
61
+ {j.length}
62
+ </C>
63
+ </T>
64
+ {v&&<T style={[t.statPill,{backgroundColor:e.amber100,borderColor:e.amber200,flexShrink:1,maxWidth:160}]}>
65
+ <Pe color={e.amber800Warm}size={11}/>
66
+ <C style={[t.statLabel,{color:e.amber800Warm}]}>
67
+ {z("redux.last","Last")}:
68
+ </C>
69
+ <C style={[t.statValue,{color:e.amber800Warm,flexShrink:1}]}numberOfLines={1}>
70
+ {v.type}
71
+ </C>
72
+ </T>}
73
+ </T>
341
74
 
342
75
 
343
- <SegmentedTabs tabs={sliceTabs} activeKey={sliceTab} onChange={key => setSliceTab(key)} style={{ marginTop: 10 }}/>
344
- </View>
76
+ <Me tabs={I}activeKey={O}onChange={S=>ve(S)}style={{marginTop:10}}/>
77
+ </T>
345
78
 
346
79
 
347
- {sliceTab !== 'metadata' && (<View style={reduxDetailStyles.searchContainer}>
348
- <SearchIcon color={AppColors.grayTextWeak} size={14}/>
349
- <TextInput placeholder={sliceTab === 'timeline'
350
- ? 'Search action type, file, or payload...'
351
- : 'Search keys or values...'} placeholderTextColor={AppColors.grayTextWeak} value={detailSearch} onChangeText={setDetailSearch} style={reduxDetailStyles.searchInput} autoCorrect={false} autoCapitalize="none"/>
352
- {detailSearch.length > 0 && (<Pressable onPress={() => setDetailSearch('')} hitSlop={10}>
353
- <ClearIcon color={AppColors.grayTextWeak} size={14}/>
354
- </Pressable>)}
355
- </View>)}
80
+ {O!=="metadata"&&<T style={t.searchContainer}>
81
+ <Pt color={e.grayTextWeak}size={14}/>
82
+ <Tt placeholder={O==="timeline"?"Search action type, file, or payload...":"Search keys or values..."}placeholderTextColor={e.grayTextWeak}value={F}onChangeText={Re}style={t.searchInput}autoCorrect={!1}autoCapitalize="none"/>
83
+ {F.length>0&&<U onPress={()=>Re("")}hitSlop={10}>
84
+ <Wt color={e.grayTextWeak}size={14}/>
85
+ </U>}
86
+ </T>}
356
87
 
357
88
 
358
- {sliceTab === 'timeline' ? (<ScrollView style={{ flex: 1 }} contentContainerStyle={{ padding: 12, paddingBottom: 40 }} keyboardShouldPersistTaps="handled">
359
- {filteredTimelineActions.length === 0 ? (<View style={reduxDetailStyles.emptyBox}>
360
- <TimelineIcon color={AppColors.grayTextWeak} size={28}/>
361
- <Text style={reduxDetailStyles.emptyBoxText}>
362
- {detailSearch.trim()
363
- ? 'No actions matching your search query.'
364
- : 'No dispatched actions recorded for this slice yet.'}
365
- </Text>
366
- </View>) : (filteredTimelineActions.map((action, aIdx) => {
367
- const isExpanded = expandedActionId === action.id;
368
- const originMeta = getOriginBadge(action.originType);
369
- const callerBasename = action.callerFile
370
- ? action.callerFile.split('/').pop()
371
- : null;
372
- return (<AnimatedEntrance key={action.id} index={aIdx} distance={6}>
373
- <TouchableScale onPress={() => setExpandedActionId(isExpanded ? null : action.id)} style={reduxDetailStyles.timelineCard}>
374
- <View style={reduxDetailStyles.timelineHeader}>
375
- <View style={{
376
- flexDirection: 'row',
377
- alignItems: 'center',
378
- gap: 6,
379
- flex: 1,
380
- minWidth: 0,
381
- flexWrap: 'wrap',
382
- }}>
383
- <View style={reduxDetailStyles.actionBadge}>
384
- <Text style={reduxDetailStyles.actionBadgeText}>
385
- #{action.id}
386
- </Text>
387
- </View>
89
+ {O==="timeline"?<Z style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
90
+ {Ae.length===0?<T style={t.emptyBox}>
91
+ <Te color={e.grayTextWeak}size={28}/>
92
+ <C style={t.emptyBoxText}>
93
+ {F.trim()?"No actions matching your search query.":"No dispatched actions recorded for this slice yet."}
94
+ </C>
95
+ </T>:Ae.map((S,P)=>{const M=Qe===S.id,$=Ke(S.originType),Ye=S.callerFile?S.callerFile.split("/").pop():null;return<Bt key={S.id}index={P}distance={6}>
96
+ <Ct onPress={()=>Xe(M?null:S.id)}style={t.timelineCard}>
97
+ <T style={t.timelineHeader}>
98
+ <T style={{flexDirection:"row",alignItems:"center",gap:6,flex:1,minWidth:0,flexWrap:"wrap"}}>
99
+ <T style={t.actionBadge}>
100
+ <C style={t.actionBadgeText}>
101
+ #{S.id}
102
+ </C>
103
+ </T>
388
104
 
389
- <View style={{
390
- flexDirection: 'row',
391
- alignItems: 'center',
392
- gap: 3,
393
- backgroundColor: originMeta.bg,
394
- paddingHorizontal: 5,
395
- paddingVertical: 2,
396
- borderRadius: 4,
397
- borderWidth: 1,
398
- borderColor: originMeta.border,
399
- }}>
400
- {originMeta.renderIcon(originMeta.text, 8.5)}
401
- <Text style={{
402
- fontFamily: AppFonts.interBold,
403
- fontSize: 8.5,
404
- color: originMeta.text,
405
- letterSpacing: 0.3,
406
- }}>
407
- {originMeta.label}
408
- </Text>
409
- </View>
105
+ <T style={{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:$.bg,paddingHorizontal:5,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:$.border}}>
106
+ {$.renderIcon($.text,8.5)}
107
+ <C style={{fontFamily:k.interBold,fontSize:8.5,color:$.text,letterSpacing:.3}}>
108
+ {$.label}
109
+ </C>
110
+ </T>
410
111
 
411
- <HighlightText text={action.type} search={detailSearch} style={reduxDetailStyles.actionTitle} highlightStyle={reduxDetailStyles.highlight}/>
412
- </View>
112
+ <St text={S.type}search={F}style={t.actionTitle}highlightStyle={t.highlight}/>
113
+ </T>
413
114
 
414
- <View style={reduxDetailStyles.timePill}>
415
- <ClockIcon color={AppColors.purple} size={10}/>
416
- <Text style={reduxDetailStyles.timeText}>
417
- {action.timestamp}
418
- </Text>
419
- </View>
420
- </View>
115
+ <T style={t.timePill}>
116
+ <Ie color={e.purple}size={10}/>
117
+ <C style={t.timeText}>
118
+ {S.timestamp}
119
+ </C>
120
+ </T>
121
+ </T>
421
122
 
422
123
 
423
- {action.callerFile && (<View style={{
424
- flexDirection: 'row',
425
- alignItems: 'center',
426
- justifyContent: 'space-between',
427
- marginTop: 6,
428
- marginBottom: 2,
429
- paddingHorizontal: 8,
430
- paddingVertical: 4,
431
- backgroundColor: AppColors.grayBackground,
432
- borderRadius: 6,
433
- borderWidth: 1,
434
- borderColor: AppColors.dividerColor,
435
- }}>
436
- <View style={{
437
- flexDirection: 'row',
438
- alignItems: 'center',
439
- gap: 5,
440
- flex: 1,
441
- minWidth: 0,
442
- }}>
443
- <DocIcon color={AppColors.sky600} size={10}/>
444
- <Text style={{
445
- fontFamily: AppFonts.interMedium,
446
- fontSize: 9.5,
447
- color: AppColors.grayTextWeak,
448
- }}>
449
- {t('redux.triggeredFrom', 'Triggered From:')}
450
- </Text>
451
- <Text style={{
452
- fontFamily: AppFonts.interBold,
453
- fontSize: 9.5,
454
- color: AppColors.sky600,
455
- }} numberOfLines={1}>
456
- {callerBasename}:{action.callerLine || 1}
457
- </Text>
458
- </View>
124
+ {S.callerFile&&<T style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:6,marginBottom:2,paddingHorizontal:8,paddingVertical:4,backgroundColor:e.grayBackground,borderRadius:6,borderWidth:1,borderColor:e.dividerColor}}>
125
+ <T style={{flexDirection:"row",alignItems:"center",gap:5,flex:1,minWidth:0}}>
126
+ <We color={e.sky600}size={10}/>
127
+ <C style={{fontFamily:k.interMedium,fontSize:9.5,color:e.grayTextWeak}}>
128
+ {z("redux.triggeredFrom","Triggered From:")}
129
+ </C>
130
+ <C style={{fontFamily:k.interBold,fontSize:9.5,color:e.sky600}}numberOfLines={1}>
131
+ {Ye}:{S.callerLine||1}
132
+ </C>
133
+ </T>
459
134
 
460
- <Pressable onPress={() => openInVSCode(action.callerFile, action.callerLine, action.callerCol)} hitSlop={8} style={{
461
- flexDirection: 'row',
462
- alignItems: 'center',
463
- gap: 3,
464
- backgroundColor: AppColors.sky100,
465
- paddingHorizontal: 5,
466
- paddingVertical: 2,
467
- borderRadius: 4,
468
- }}>
469
- <ExternalLinkIcon color={AppColors.sky600} size={9}/>
470
- <Text style={{
471
- fontFamily: AppFonts.interBold,
472
- fontSize: 8.5,
473
- color: AppColors.sky600,
474
- }}>
475
- {t('redux.openInEditor', 'Open in Editor')}
476
- </Text>
477
- </Pressable>
478
- </View>)}
135
+ <U onPress={()=>_(S.callerFile,S.callerLine,S.callerCol)}hitSlop={8}style={{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:e.sky100,paddingHorizontal:5,paddingVertical:2,borderRadius:4}}>
136
+ <Se color={e.sky600}size={9}/>
137
+ <C style={{fontFamily:k.interBold,fontSize:8.5,color:e.sky600}}>
138
+ {z("redux.openInEditor","Open in Editor")}
139
+ </C>
140
+ </U>
141
+ </T>}
479
142
 
480
143
 
481
- {isExpanded ? (<View style={reduxDetailStyles.expandedContent}>
144
+ {M?<T style={t.expandedContent}>
482
145
 
483
- {action.stack ? (<View style={{ marginBottom: 12 }}>
484
- <Text style={reduxDetailStyles.expandedSectionTitle}>
485
- {t('redux.callStack', 'Call Stack Trace')}:
486
- </Text>
487
- <View style={{
488
- backgroundColor: AppColors.grayBackground,
489
- borderRadius: 8,
490
- padding: 8,
491
- borderWidth: 1,
492
- borderColor: AppColors.dividerColor,
493
- gap: 4,
494
- }}>
495
- {action.stack
496
- .split('\n')
497
- .map(l => l.trim())
498
- .filter(l => l.length > 0 &&
499
- !l.includes('reduxLogger') &&
500
- !l.includes('inspectorReduxMiddleware'))
501
- .slice(0, 8)
502
- .map((frameLine, fIdx) => {
503
- const parsed = parseStackLine(frameLine, fIdx === 0);
504
- const isApp = parsed.frameType === 'app';
505
- return (<Pressable key={fIdx} onPress={() => {
506
- if (parsed.fileName !== 'Unknown') {
507
- openInVSCode(parsed.fullPath ||
508
- parsed.fileName, parsed.lineNumber, parsed.columnNumber);
509
- }
510
- }} style={{
511
- flexDirection: 'row',
512
- alignItems: 'center',
513
- justifyContent: 'space-between',
514
- paddingVertical: 3,
515
- borderBottomWidth: fIdx < 7 ? 0.5 : 0,
516
- borderBottomColor: AppColors.dividerColor,
517
- }}>
518
- <View style={{ flex: 1, minWidth: 0 }}>
519
- <Text style={{
520
- fontFamily: isApp
521
- ? AppFonts.interBold
522
- : AppFonts.interRegular,
523
- fontSize: 9.5,
524
- color: isApp
525
- ? AppColors.primaryBlack
526
- : AppColors.grayTextWeak,
527
- }} numberOfLines={1}>
528
- {parsed.functionName || 'anonymous'}
529
- </Text>
530
- <Text style={{
531
- fontFamily: AppFonts.interRegular,
532
- fontSize: 8.5,
533
- color: isApp
534
- ? AppColors.sky600
535
- : AppColors.grayTextWeak,
536
- }} numberOfLines={1}>
537
- {parsed.fileName}:
538
- {parsed.lineNumber || 1}:
539
- {parsed.columnNumber || 1}
540
- </Text>
541
- </View>
542
- {isApp && (<ExternalLinkIcon color={AppColors.sky600} size={10}/>)}
543
- </Pressable>);
544
- })}
545
- </View>
546
- </View>) : null}
146
+ {S.stack?<T style={{marginBottom:12}}>
147
+ <C style={t.expandedSectionTitle}>
148
+ {z("redux.callStack","Call Stack Trace")}:
149
+ </C>
150
+ <T style={{backgroundColor:e.grayBackground,borderRadius:8,padding:8,borderWidth:1,borderColor:e.dividerColor,gap:4}}>
151
+ {S.stack.split(`
152
+ `).map(H=>H.trim()).filter(H=>H.length>0&&!H.includes("reduxLogger")&&!H.includes("inspectorReduxMiddleware")).slice(0,8).map((H,Be)=>{const L=je(H,Be===0),Y=L.frameType==="app";return<U key={Be}onPress={()=>{L.fileName!=="Unknown"&&_(L.fullPath||L.fileName,L.lineNumber,L.columnNumber)}}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:3,borderBottomWidth:Be<7?.5:0,borderBottomColor:e.dividerColor}}>
153
+ <T style={{flex:1,minWidth:0}}>
154
+ <C style={{fontFamily:Y?k.interBold:k.interRegular,fontSize:9.5,color:Y?e.primaryBlack:e.grayTextWeak}}numberOfLines={1}>
155
+ {L.functionName||"anonymous"}
156
+ </C>
157
+ <C style={{fontFamily:k.interRegular,fontSize:8.5,color:Y?e.sky600:e.grayTextWeak}}numberOfLines={1}>
158
+ {L.fileName}:
159
+ {L.lineNumber||1}:
160
+ {L.columnNumber||1}
161
+ </C>
162
+ </T>
163
+ {Y&&<Se color={e.sky600}size={10}/>}
164
+ </U>})}
165
+ </T>
166
+ </T>:null}
547
167
 
548
- {action.payload !== undefined && (<View style={{ marginBottom: 12 }}>
549
- <Text style={reduxDetailStyles.expandedSectionTitle}>
550
- {t('redux.actionPayload', 'Action Payload:')}
551
- </Text>
552
- <JsonViewer data={action.payload} search={detailSearch} forceOpen={true} wrap={true}/>
553
- </View>)}
168
+ {S.payload!==void 0&&<T style={{marginBottom:12}}>
169
+ <C style={t.expandedSectionTitle}>
170
+ {z("redux.actionPayload","Action Payload:")}
171
+ </C>
172
+ <K data={S.payload}search={F}forceOpen={!0}wrap={!0}/>
173
+ </T>}
554
174
 
555
- <Text style={reduxDetailStyles.expandedSectionTitle}>
556
- {t('redux.stateChangesDiff', 'State Changes (Diff):')}
557
- </Text>
558
- <DiffViewer oldData={action.prevState?.[selectedReduxSlice] || {}} newData={action.nextState?.[selectedReduxSlice] || {}} forceOpen={true}/>
559
- </View>) : (<View style={reduxDetailStyles.collapsedPrompt}>
560
- <Text style={reduxDetailStyles.collapsedPromptText}>
561
- {t('redux.tapToInspectAction', 'Tap to inspect action payload & diff changes')}
562
- </Text>
563
- <ForwardChevronIcon color={AppColors.grayTextWeak} size={12}/>
564
- </View>)}
565
- </TouchableScale>
566
- </AnimatedEntrance>);
567
- }))}
568
- </ScrollView>) : sliceTab === 'metadata' ? (<ScrollView style={{ flex: 1 }} contentContainerStyle={{ padding: 12, paddingBottom: 40 }} keyboardShouldPersistTaps="handled">
569
- <View style={reduxDetailStyles.metadataCard}>
570
- {[
571
- { label: 'Slice Name', value: selectedReduxSlice },
572
- { label: 'Root Keys Count', value: `${fieldsCount} keys` },
573
- { label: 'In-Memory State Size', value: getSize(sliceData) },
574
- {
575
- label: 'Persistence Status',
576
- value: isPersisted
577
- ? `Persisted (${getSize(persistedData)})`
578
- : 'Not Persisted (In-Memory)',
579
- },
580
- {
581
- label: 'Dispatched Actions History',
582
- value: `${sliceActions.length} recorded actions`,
583
- },
584
- {
585
- label: 'Last Dispatched Action',
586
- value: lastAction ? lastAction.type : 'None',
587
- },
588
- {
589
- label: 'Last Action Timestamp',
590
- value: lastAction ? lastAction.timestamp : 'Initial',
591
- },
592
- ].map((row, rIdx) => (<View key={rIdx} style={[
593
- reduxDetailStyles.metaRow,
594
- rIdx === 6 && { borderBottomWidth: 0 },
595
- ]}>
596
- <Text style={reduxDetailStyles.metaLabel}>{row.label}</Text>
597
- <Text style={reduxDetailStyles.metaValue} selectable numberOfLines={2}>
598
- {row.value}
599
- </Text>
600
- </View>))}
175
+ <C style={t.expandedSectionTitle}>
176
+ {z("redux.stateChangesDiff","State Changes (Diff):")}
177
+ </C>
178
+ <He oldData={S.prevState?.[W]||{}}newData={S.nextState?.[W]||{}}forceOpen={!0}/>
179
+ </T>:<T style={t.collapsedPrompt}>
180
+ <C style={t.collapsedPromptText}>
181
+ {z("redux.tapToInspectAction","Tap to inspect action payload & diff changes")}
182
+ </C>
183
+ <Rt color={e.grayTextWeak}size={12}/>
184
+ </T>}
185
+ </Ct>
186
+ </Bt>})}
187
+ </Z>:O==="metadata"?<Z style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
188
+ <T style={t.metadataCard}>
189
+ {[{label:"Slice Name",value:W},{label:"Root Keys Count",value:`${R} keys`},{label:"In-Memory State Size",value:q(B)},{label:"Persistence Status",value:J?`Persisted (${q(X)})`:"Not Persisted (In-Memory)"},{label:"Dispatched Actions History",value:`${j.length} recorded actions`},{label:"Last Dispatched Action",value:v?v.type:"None"},{label:"Last Action Timestamp",value:v?v.timestamp:"Initial"}].map((S,P)=><T key={P}style={[t.metaRow,P===6&&{borderBottomWidth:0}]}>
190
+ <C style={t.metaLabel}>{S.label}</C>
191
+ <C style={t.metaValue}selectable numberOfLines={2}>
192
+ {S.value}
193
+ </C>
194
+ </T>)}
601
195
 
602
- {isPersisted && (<TouchableOpacity style={reduxDetailStyles.clearPersistBtn} onPress={handleClearPersistence}>
603
- <TrashIcon color={AppColors.errorColor} size={14}/>
604
- <Text style={reduxDetailStyles.clearPersistText}>
196
+ {J&&<Ne style={t.clearPersistBtn}onPress={Le}>
197
+ <Ge color={e.errorColor}size={14}/>
198
+ <C style={t.clearPersistText}>
605
199
  Clear Persisted Storage For This Slice
606
- </Text>
607
- </TouchableOpacity>)}
608
- </View>
609
- </ScrollView>) : sliceTab === 'persisted' ? (<View style={{ flex: 1, padding: 10 }}>
610
- {isPersisted ? (<View style={{ flex: 1 }}>
611
- <View style={reduxDetailStyles.persistedInfoCard}>
612
- <View style={{
613
- flexDirection: 'row',
614
- alignItems: 'center',
615
- justifyContent: 'space-between',
616
- }}>
617
- <View style={{
618
- flexDirection: 'row',
619
- alignItems: 'center',
620
- gap: 6,
621
- }}>
622
- <StorageIcon color={AppColors.emerald700} size={14}/>
623
- <Text style={reduxDetailStyles.persistedInfoTitle}>
624
- Stored in persistent storage ({getSize(persistedData)})
625
- </Text>
626
- </View>
627
- <TouchableOpacity style={reduxDetailStyles.clearPersistMiniBtn} onPress={handleClearPersistence}>
628
- <TrashIcon color={AppColors.errorColor} size={12}/>
629
- <Text style={reduxDetailStyles.clearPersistMiniText}>
200
+ </C>
201
+ </Ne>}
202
+ </T>
203
+ </Z>:O==="persisted"?<T style={{flex:1,padding:10}}>
204
+ {J?<T style={{flex:1}}>
205
+ <T style={t.persistedInfoCard}>
206
+ <T style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}>
207
+ <T style={{flexDirection:"row",alignItems:"center",gap:6}}>
208
+ <Ce color={e.emerald700}size={14}/>
209
+ <C style={t.persistedInfoTitle}>
210
+ Stored in persistent storage ({q(X)})
211
+ </C>
212
+ </T>
213
+ <Ne style={t.clearPersistMiniBtn}onPress={Le}>
214
+ <Ge color={e.errorColor}size={12}/>
215
+ <C style={t.clearPersistMiniText}>
630
216
  Clear
631
- </Text>
632
- </TouchableOpacity>
633
- </View>
634
- </View>
635
- <View style={{ flex: 1, marginTop: 8 }}>
636
- <JsonViewer data={persistedData} search={detailSearch} forceOpen={detailSearch.length > 0 ? true : undefined} mode={viewMode} onModeChange={setViewMode} fullHeight={true} wrap={true}/>
637
- </View>
638
- </View>) : (<View style={reduxDetailStyles.emptyBox}>
639
- <StorageIcon color={AppColors.grayTextWeak} size={32}/>
640
- <Text style={reduxDetailStyles.emptyBoxTitle}>
217
+ </C>
218
+ </Ne>
219
+ </T>
220
+ </T>
221
+ <T style={{flex:1,marginTop:8}}>
222
+ <K data={X}search={F}forceOpen={F.length>0?!0:void 0}mode={Fe}onModeChange={De}fullHeight={!0}wrap={!0}/>
223
+ </T>
224
+ </T>:<T style={t.emptyBox}>
225
+ <Ce color={e.grayTextWeak}size={32}/>
226
+ <C style={t.emptyBoxTitle}>
641
227
  Not Persisted in Storage
642
- </Text>
643
- <Text style={reduxDetailStyles.emptyBoxText}>
228
+ </C>
229
+ <C style={t.emptyBoxText}>
644
230
  This slice is not stored in AsyncStorage or redux-persist.
645
231
  State exists purely in active JavaScript memory.
646
- </Text>
647
- </View>)}
648
- </View>) : (<View style={{ flex: 1, padding: 10 }}>
649
- <JsonViewer data={sliceData} search={detailSearch} forceOpen={detailSearch.length > 0 ? true : undefined} mode={viewMode} onModeChange={setViewMode} fullHeight={true} wrap={true}/>
650
- </View>)}
651
- </View>);
652
- }
653
- if (selectedReduxAction != null) {
654
- const originMeta = getOriginBadge(selectedReduxAction.originType);
655
- const callerBasename = selectedReduxAction.callerFile
656
- ? selectedReduxAction.callerFile.split('/').pop()
657
- : null;
658
- const actionTabs = [
659
- {
660
- key: 'payload',
661
- label: t('redux.payload', 'Payload'),
662
- icon: (isActive) => (<CodeBracketsIcon color={isActive ? AppColors.white : AppColors.grayText} size={12}/>),
663
- },
664
- {
665
- key: 'diff',
666
- label: t('redux.diff', 'State Diff'),
667
- icon: (isActive) => (<TimelineIcon color={isActive ? AppColors.white : AppColors.grayText} size={12}/>),
668
- },
669
- {
670
- key: 'stack',
671
- label: t('redux.callStack', 'Call Stack'),
672
- icon: (isActive) => (<DocIcon color={isActive ? AppColors.white : AppColors.grayText} size={12}/>),
673
- },
674
- {
675
- key: 'raw',
676
- label: 'Raw Action',
677
- icon: (isActive) => (<LiveStateIcon color={isActive ? AppColors.white : AppColors.grayText} size={12}/>),
678
- },
679
- ];
680
- return (<View style={{ flex: 1, backgroundColor: AppColors.grayBackground }}>
232
+ </C>
233
+ </T>}
234
+ </T>:<T style={{flex:1,padding:10}}>
235
+ <K data={B}search={F}forceOpen={F.length>0?!0:void 0}mode={Fe}onModeChange={De}fullHeight={!0}wrap={!0}/>
236
+ </T>}
237
+ </T>}if(V!=null){const B=Ke(V.originType),R=V.callerFile?V.callerFile.split("/").pop():null,v=[{key:"payload",label:z("redux.payload","Payload"),icon:I=><Ot color={I?e.white:e.grayText}size={12}/>},{key:"diff",label:z("redux.diff","State Diff"),icon:I=><Te color={I?e.white:e.grayText}size={12}/>},{key:"stack",label:z("redux.callStack","Call Stack"),icon:I=><We color={I?e.white:e.grayText}size={12}/>},{key:"raw",label:"Raw Action",icon:I=><Ue color={I?e.white:e.grayText}size={12}/>}];return<T style={{flex:1,backgroundColor:e.grayBackground}}>
681
238
 
682
- <View style={reduxDetailStyles.infoBar}>
683
- <View style={reduxDetailStyles.infoTopRow}>
684
- <View style={{
685
- flexDirection: 'row',
686
- alignItems: 'center',
687
- gap: 6,
688
- flexWrap: 'wrap',
689
- flex: 1,
690
- minWidth: 0,
691
- }}>
692
- <View style={reduxDetailStyles.actionBadge}>
693
- <Text style={reduxDetailStyles.actionBadgeText}>
694
- #{selectedReduxAction.id}
695
- </Text>
696
- </View>
239
+ <T style={t.infoBar}>
240
+ <T style={t.infoTopRow}>
241
+ <T style={{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap",flex:1,minWidth:0}}>
242
+ <T style={t.actionBadge}>
243
+ <C style={t.actionBadgeText}>
244
+ #{V.id}
245
+ </C>
246
+ </T>
697
247
 
698
- <View style={{
699
- flexDirection: 'row',
700
- alignItems: 'center',
701
- gap: 3,
702
- backgroundColor: originMeta.bg,
703
- paddingHorizontal: 5,
704
- paddingVertical: 2,
705
- borderRadius: 4,
706
- borderWidth: 1,
707
- borderColor: originMeta.border,
708
- }}>
709
- {originMeta.renderIcon(originMeta.text, 8.5)}
710
- <Text style={{
711
- fontFamily: AppFonts.interBold,
712
- fontSize: 8.5,
713
- color: originMeta.text,
714
- letterSpacing: 0.3,
715
- }}>
716
- {originMeta.label}
717
- </Text>
718
- </View>
719
- <Text style={reduxDetailStyles.sliceNameText} numberOfLines={1}>
720
- {selectedReduxAction.type}
721
- </Text>
722
- {selectedReduxAction.timestamp && (<View style={reduxDetailStyles.timePill}>
723
- <ClockIcon color={AppColors.purple} size={10}/>
724
- <Text style={reduxDetailStyles.timeText}>
725
- {selectedReduxAction.timestamp}
726
- </Text>
727
- </View>)}
728
- </View>
248
+ <T style={{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:B.bg,paddingHorizontal:5,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:B.border}}>
249
+ {B.renderIcon(B.text,8.5)}
250
+ <C style={{fontFamily:k.interBold,fontSize:8.5,color:B.text,letterSpacing:.3}}>
251
+ {B.label}
252
+ </C>
253
+ </T>
254
+ <C style={t.sliceNameText}numberOfLines={1}>
255
+ {V.type}
256
+ </C>
257
+ {V.timestamp&&<T style={t.timePill}>
258
+ <Ie color={e.purple}size={10}/>
259
+ <C style={t.timeText}>
260
+ {V.timestamp}
261
+ </C>
262
+ </T>}
263
+ </T>
729
264
 
730
265
 
731
- <CopyButton value={() => selectedReduxAction} label="Copy Action"/>
732
- </View>
266
+ <Ee value={()=>V}label="Copy Action"/>
267
+ </T>
733
268
 
734
269
 
735
- <View style={reduxDetailStyles.subStatsRow}>
736
- {selectedReduxAction.affectedSlices &&
737
- selectedReduxAction.affectedSlices.length > 0 && (<View style={[
738
- reduxDetailStyles.statPill,
739
- {
740
- backgroundColor: AppColors.indigo50,
741
- borderColor: AppColors.indigo400,
742
- },
743
- ]}>
744
- <LayersIcon color={AppColors.indigo600Alt} size={11}/>
745
- <Text style={[
746
- reduxDetailStyles.statLabel,
747
- { color: AppColors.indigo600Alt },
748
- ]}>
270
+ <T style={t.subStatsRow}>
271
+ {V.affectedSlices&&V.affectedSlices.length>0&&<T style={[t.statPill,{backgroundColor:e.indigo50,borderColor:e.indigo400}]}>
272
+ <Je color={e.indigo600Alt}size={11}/>
273
+ <C style={[t.statLabel,{color:e.indigo600Alt}]}>
749
274
  Slices:
750
- </Text>
751
- <Text style={[
752
- reduxDetailStyles.statValue,
753
- { color: AppColors.indigo600Alt },
754
- ]}>
755
- {selectedReduxAction.affectedSlices.join(', ')}
756
- </Text>
757
- </View>)}
758
- <View style={[
759
- reduxDetailStyles.statPill,
760
- {
761
- backgroundColor: AppColors.sky100,
762
- borderColor: AppColors.sky400,
763
- },
764
- ]}>
765
- <Text style={[
766
- reduxDetailStyles.statLabel,
767
- { color: AppColors.sky600 },
768
- ]}>
275
+ </C>
276
+ <C style={[t.statValue,{color:e.indigo600Alt}]}>
277
+ {V.affectedSlices.join(", ")}
278
+ </C>
279
+ </T>}
280
+ <T style={[t.statPill,{backgroundColor:e.sky100,borderColor:e.sky400}]}>
281
+ <C style={[t.statLabel,{color:e.sky600}]}>
769
282
  Payload Size:
770
- </Text>
771
- <Text style={[
772
- reduxDetailStyles.statValue,
773
- { color: AppColors.sky600 },
774
- ]}>
775
- {getSize(selectedReduxAction.payload)}
776
- </Text>
777
- </View>
778
- </View>
283
+ </C>
284
+ <C style={[t.statValue,{color:e.sky600}]}>
285
+ {q(V.payload)}
286
+ </C>
287
+ </T>
288
+ </T>
779
289
 
780
290
 
781
- {selectedReduxAction.callerFile && (<View style={{
782
- flexDirection: 'row',
783
- alignItems: 'center',
784
- justifyContent: 'space-between',
785
- marginTop: 8,
786
- paddingHorizontal: 8,
787
- paddingVertical: 4,
788
- backgroundColor: AppColors.grayBackground,
789
- borderRadius: 6,
790
- borderWidth: 1,
791
- borderColor: AppColors.dividerColor,
792
- }}>
793
- <View style={{
794
- flexDirection: 'row',
795
- alignItems: 'center',
796
- gap: 5,
797
- flex: 1,
798
- minWidth: 0,
799
- }}>
800
- <DocIcon color={AppColors.sky600} size={10}/>
801
- <Text style={{
802
- fontFamily: AppFonts.interMedium,
803
- fontSize: 9.5,
804
- color: AppColors.grayTextWeak,
805
- }}>
291
+ {V.callerFile&&<T style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:8,paddingHorizontal:8,paddingVertical:4,backgroundColor:e.grayBackground,borderRadius:6,borderWidth:1,borderColor:e.dividerColor}}>
292
+ <T style={{flexDirection:"row",alignItems:"center",gap:5,flex:1,minWidth:0}}>
293
+ <We color={e.sky600}size={10}/>
294
+ <C style={{fontFamily:k.interMedium,fontSize:9.5,color:e.grayTextWeak}}>
806
295
  Triggered from:
807
- </Text>
808
- <Text style={{
809
- fontFamily: AppFonts.interBold,
810
- fontSize: 9.5,
811
- color: AppColors.sky600,
812
- }} numberOfLines={1}>
813
- {callerBasename}:{selectedReduxAction.callerLine || 1}
814
- </Text>
815
- </View>
296
+ </C>
297
+ <C style={{fontFamily:k.interBold,fontSize:9.5,color:e.sky600}}numberOfLines={1}>
298
+ {R}:{V.callerLine||1}
299
+ </C>
300
+ </T>
816
301
 
817
- <Pressable onPress={() => openInVSCode(selectedReduxAction.callerFile, selectedReduxAction.callerLine, selectedReduxAction.callerCol)} hitSlop={8} style={{
818
- flexDirection: 'row',
819
- alignItems: 'center',
820
- gap: 3,
821
- backgroundColor: AppColors.sky100,
822
- paddingHorizontal: 5,
823
- paddingVertical: 2,
824
- borderRadius: 4,
825
- }}>
826
- <ExternalLinkIcon color={AppColors.sky600} size={9}/>
827
- <Text style={{
828
- fontFamily: AppFonts.interBold,
829
- fontSize: 8.5,
830
- color: AppColors.sky600,
831
- }}>
302
+ <U onPress={()=>_(V.callerFile,V.callerLine,V.callerCol)}hitSlop={8}style={{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:e.sky100,paddingHorizontal:5,paddingVertical:2,borderRadius:4}}>
303
+ <Se color={e.sky600}size={9}/>
304
+ <C style={{fontFamily:k.interBold,fontSize:8.5,color:e.sky600}}>
832
305
  Open in Editor
833
- </Text>
834
- </Pressable>
835
- </View>)}
306
+ </C>
307
+ </U>
308
+ </T>}
836
309
 
837
310
 
838
- <SegmentedTabs tabs={actionTabs} activeKey={actionTab} onChange={key => setActionTab(key)} style={{ marginTop: 10 }}/>
839
- </View>
311
+ <Me tabs={v}activeKey={Q}onChange={I=>qe(I)}style={{marginTop:10}}/>
312
+ </T>
840
313
 
841
314
 
842
- {actionTab === 'payload' ? (<View style={{ flex: 1, padding: 10 }}>
843
- {selectedReduxAction.payload !== undefined ? (<JsonViewer data={selectedReduxAction.payload} search={detailSearch} forceOpen={true} fullHeight={true} wrap={true}/>) : (<View style={reduxDetailStyles.emptyBox}>
844
- <Text style={reduxDetailStyles.emptyBoxText}>
315
+ {Q==="payload"?<T style={{flex:1,padding:10}}>
316
+ {V.payload!==void 0?<K data={V.payload}search={F}forceOpen={!0}fullHeight={!0}wrap={!0}/>:<T style={t.emptyBox}>
317
+ <C style={t.emptyBoxText}>
845
318
  This action has no payload dispatched.
846
- </Text>
847
- </View>)}
848
- </View>) : actionTab === 'diff' ? (<ScrollView style={{ flex: 1 }} contentContainerStyle={{ padding: 12, paddingBottom: 40 }} keyboardShouldPersistTaps="handled">
849
- <DiffViewer oldData={selectedReduxAction.prevState || {}} newData={selectedReduxAction.nextState || {}} forceOpen={true}/>
850
- </ScrollView>) : actionTab === 'stack' ? (<ScrollView style={{ flex: 1 }} contentContainerStyle={{ padding: 12, paddingBottom: 40 }} keyboardShouldPersistTaps="handled">
851
- {selectedReduxAction.stack ? (<View style={{
852
- backgroundColor: AppColors.white,
853
- borderRadius: 10,
854
- padding: 10,
855
- borderWidth: 1,
856
- borderColor: AppColors.dividerColor,
857
- }}>
858
- <Text style={reduxDetailStyles.expandedSectionTitle}>
319
+ </C>
320
+ </T>}
321
+ </T>:Q==="diff"?<Z style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
322
+ <He oldData={V.prevState||{}}newData={V.nextState||{}}forceOpen={!0}/>
323
+ </Z>:Q==="stack"?<Z style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
324
+ {V.stack?<T style={{backgroundColor:e.white,borderRadius:10,padding:10,borderWidth:1,borderColor:e.dividerColor}}>
325
+ <C style={t.expandedSectionTitle}>
859
326
  Dispatched from call stack:
860
- </Text>
861
- {selectedReduxAction.stack
862
- .split('\n')
863
- .map(l => l.trim())
864
- .filter(l => l.length > 0 &&
865
- !l.includes('reduxLogger') &&
866
- !l.includes('inspectorReduxMiddleware'))
867
- .map((frameLine, fIdx) => {
868
- const parsed = parseStackLine(frameLine, fIdx === 0);
869
- const isApp = parsed.frameType === 'app';
870
- return (<Pressable key={fIdx} onPress={() => {
871
- if (parsed.fileName !== 'Unknown') {
872
- openInVSCode(parsed.fullPath || parsed.fileName, parsed.lineNumber, parsed.columnNumber);
873
- }
874
- }} style={{
875
- flexDirection: 'row',
876
- alignItems: 'center',
877
- justifyContent: 'space-between',
878
- paddingVertical: 5,
879
- borderBottomWidth: 0.5,
880
- borderBottomColor: AppColors.dividerColor,
881
- }}>
882
- <View style={{ flex: 1, minWidth: 0 }}>
883
- <Text style={{
884
- fontFamily: isApp
885
- ? AppFonts.interBold
886
- : AppFonts.interRegular,
887
- fontSize: 10.5,
888
- color: isApp
889
- ? AppColors.primaryBlack
890
- : AppColors.grayTextWeak,
891
- }} numberOfLines={1}>
892
- {parsed.functionName || 'anonymous'}
893
- </Text>
894
- <Text style={{
895
- fontFamily: AppFonts.interRegular,
896
- fontSize: 9,
897
- color: isApp
898
- ? AppColors.sky600
899
- : AppColors.grayTextWeak,
900
- }} numberOfLines={1}>
901
- {parsed.fileName}:{parsed.lineNumber || 1}:
902
- {parsed.columnNumber || 1}
903
- </Text>
904
- </View>
905
- {isApp && (<ExternalLinkIcon color={AppColors.sky600} size={11}/>)}
906
- </Pressable>);
907
- })}
908
- </View>) : (<View style={reduxDetailStyles.emptyBox}>
909
- <Text style={reduxDetailStyles.emptyBoxText}>
327
+ </C>
328
+ {V.stack.split(`
329
+ `).map(I=>I.trim()).filter(I=>I.length>0&&!I.includes("reduxLogger")&&!I.includes("inspectorReduxMiddleware")).map((I,S)=>{const P=je(I,S===0),M=P.frameType==="app";return<U key={S}onPress={()=>{P.fileName!=="Unknown"&&_(P.fullPath||P.fileName,P.lineNumber,P.columnNumber)}}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:5,borderBottomWidth:.5,borderBottomColor:e.dividerColor}}>
330
+ <T style={{flex:1,minWidth:0}}>
331
+ <C style={{fontFamily:M?k.interBold:k.interRegular,fontSize:10.5,color:M?e.primaryBlack:e.grayTextWeak}}numberOfLines={1}>
332
+ {P.functionName||"anonymous"}
333
+ </C>
334
+ <C style={{fontFamily:k.interRegular,fontSize:9,color:M?e.sky600:e.grayTextWeak}}numberOfLines={1}>
335
+ {P.fileName}:{P.lineNumber||1}:
336
+ {P.columnNumber||1}
337
+ </C>
338
+ </T>
339
+ {M&&<Se color={e.sky600}size={11}/>}
340
+ </U>})}
341
+ </T>:<T style={t.emptyBox}>
342
+ <C style={t.emptyBoxText}>
910
343
  No call stack trace captured for this action.
911
- </Text>
912
- </View>)}
913
- </ScrollView>) : (<View style={{ flex: 1, padding: 10 }}>
914
- <JsonViewer data={selectedReduxAction} forceOpen={true} fullHeight={true} wrap={true}/>
915
- </View>)}
916
- </View>);
917
- }
918
- return (<View style={reduxDetailStyles.emptyBox}>
919
- <TerminalIcon color={AppColors.purple} size={32}/>
920
- <Text style={reduxDetailStyles.emptyBoxTitle}>
344
+ </C>
345
+ </T>}
346
+ </Z>:<T style={{flex:1,padding:10}}>
347
+ <K data={V}forceOpen={!0}fullHeight={!0}wrap={!0}/>
348
+ </T>}
349
+ </T>}return<T style={t.emptyBox}>
350
+ <It color={e.purple}size={32}/>
351
+ <C style={t.emptyBoxTitle}>
921
352
  No Redux Slice Selected
922
- </Text>
923
- <Text style={reduxDetailStyles.emptyBoxText}>
353
+ </C>
354
+ <C style={t.emptyBoxText}>
924
355
  Select a slice from the Redux tab to inspect its state and dispatched
925
356
  actions.
926
- </Text>
927
- </View>);
928
- });
929
- const reduxDetailStyles = StyleSheet.create({
930
- infoBar: {
931
- backgroundColor: AppColors.white,
932
- padding: 12,
933
- borderBottomWidth: 1,
934
- borderBottomColor: AppColors.dividerColor,
935
- },
936
- infoTopRow: {
937
- flexDirection: 'row',
938
- alignItems: 'center',
939
- justifyContent: 'space-between',
940
- marginBottom: 8,
941
- },
942
- methodBadge: {
943
- paddingHorizontal: 7,
944
- paddingVertical: 2.5,
945
- borderRadius: 5,
946
- },
947
- methodBadgeText: {
948
- fontFamily: AppFonts.interBold,
949
- fontSize: 9.5,
950
- color: AppColors.white,
951
- letterSpacing: 0.4,
952
- },
953
- sliceNameText: {
954
- fontFamily: AppFonts.interBold,
955
- fontSize: 14,
956
- color: AppColors.primaryBlack,
957
- flexShrink: 1,
958
- },
959
- persistedChip: {
960
- flexDirection: 'row',
961
- alignItems: 'center',
962
- gap: 3.5,
963
- backgroundColor: AppColors.mintGreenBg,
964
- paddingHorizontal: 6,
965
- paddingVertical: 2,
966
- borderRadius: 4,
967
- borderWidth: 1,
968
- borderColor: AppColors.mintGreenBorder,
969
- },
970
- persistedChipText: {
971
- fontFamily: AppFonts.interBold,
972
- fontSize: 9,
973
- color: AppColors.mintGreenText,
974
- },
975
- inMemoryChip: {
976
- backgroundColor: AppColors.indigo50,
977
- paddingHorizontal: 6,
978
- paddingVertical: 2,
979
- borderRadius: 4,
980
- borderWidth: 1,
981
- borderColor: AppColors.blueBorder,
982
- },
983
- inMemoryChipText: {
984
- fontFamily: AppFonts.interBold,
985
- fontSize: 9,
986
- color: AppColors.indigo600Alt,
987
- },
988
- subStatsRow: {
989
- flexDirection: 'row',
990
- alignItems: 'center',
991
- gap: 6,
992
- flexWrap: 'wrap',
993
- },
994
- statPill: {
995
- flexDirection: 'row',
996
- alignItems: 'center',
997
- gap: 4,
998
- backgroundColor: AppColors.grayBackground,
999
- paddingHorizontal: 6,
1000
- paddingVertical: 2.5,
1001
- borderRadius: 5,
1002
- borderWidth: 1,
1003
- borderColor: AppColors.dividerColor,
1004
- },
1005
- statPillText: {
1006
- fontFamily: AppFonts.interMedium,
1007
- fontSize: 10,
1008
- color: AppColors.grayText,
1009
- },
1010
- statLabel: {
1011
- fontFamily: AppFonts.interBold,
1012
- fontSize: 10,
1013
- color: AppColors.grayTextWeak,
1014
- },
1015
- statValue: {
1016
- fontFamily: AppFonts.interBold,
1017
- fontSize: 10.5,
1018
- color: AppColors.primaryBlack,
1019
- },
1020
- searchContainer: {
1021
- flexDirection: 'row',
1022
- alignItems: 'center',
1023
- backgroundColor: AppColors.white,
1024
- borderRadius: 8,
1025
- marginHorizontal: 12,
1026
- marginTop: 10,
1027
- paddingHorizontal: 10,
1028
- borderWidth: 1,
1029
- borderColor: AppColors.dividerColor,
1030
- height: 36,
1031
- gap: 8,
1032
- },
1033
- searchInput: {
1034
- flex: 1,
1035
- fontFamily: AppFonts.interRegular,
1036
- fontSize: 12,
1037
- color: AppColors.primaryBlack,
1038
- padding: 0,
1039
- },
1040
- timelineCard: {
1041
- backgroundColor: AppColors.white,
1042
- borderRadius: 10,
1043
- padding: 12,
1044
- marginBottom: 8,
1045
- borderWidth: 1,
1046
- borderColor: AppColors.dividerColor,
1047
- shadowColor: AppColors.primaryBlack,
1048
- shadowOffset: { width: 0, height: 1 },
1049
- shadowOpacity: 0.03,
1050
- shadowRadius: 3,
1051
- elevation: 1,
1052
- },
1053
- timelineHeader: {
1054
- flexDirection: 'row',
1055
- alignItems: 'center',
1056
- gap: 8,
1057
- },
1058
- actionBadge: {
1059
- backgroundColor: AppColors.indigo50,
1060
- paddingHorizontal: 6,
1061
- paddingVertical: 2,
1062
- borderRadius: 4,
1063
- borderWidth: 1,
1064
- borderColor: AppColors.blueBorder,
1065
- },
1066
- actionBadgeText: {
1067
- fontFamily: AppFonts.interBold,
1068
- fontSize: 9.5,
1069
- color: AppColors.indigo600Alt,
1070
- },
1071
- actionTitle: {
1072
- flex: 1,
1073
- fontFamily: AppFonts.interBold,
1074
- fontSize: 12.5,
1075
- color: AppColors.primaryBlack,
1076
- },
1077
- timePill: {
1078
- flexDirection: 'row',
1079
- alignItems: 'center',
1080
- gap: 3,
1081
- backgroundColor: `${AppColors.purple}14`,
1082
- paddingHorizontal: 6,
1083
- paddingVertical: 2,
1084
- borderRadius: 4,
1085
- },
1086
- timeText: {
1087
- fontFamily: AppFonts.interMedium,
1088
- fontSize: 10,
1089
- color: AppColors.purple,
1090
- },
1091
- collapsedPrompt: {
1092
- flexDirection: 'row',
1093
- alignItems: 'center',
1094
- justifyContent: 'space-between',
1095
- marginTop: 8,
1096
- paddingTop: 6,
1097
- borderTopWidth: 1,
1098
- borderTopColor: AppColors.dividerColor,
1099
- },
1100
- collapsedPromptText: {
1101
- fontFamily: AppFonts.interRegular,
1102
- fontSize: 10.5,
1103
- color: AppColors.grayTextWeak,
1104
- },
1105
- expandedContent: {
1106
- marginTop: 10,
1107
- paddingTop: 10,
1108
- borderTopWidth: 1,
1109
- borderTopColor: AppColors.dividerColor,
1110
- },
1111
- expandedSectionTitle: {
1112
- fontFamily: AppFonts.interBold,
1113
- fontSize: 11,
1114
- color: AppColors.grayTextStrong,
1115
- marginBottom: 6,
1116
- },
1117
- metadataCard: {
1118
- backgroundColor: AppColors.white,
1119
- borderRadius: 12,
1120
- padding: 12,
1121
- borderWidth: 1,
1122
- borderColor: AppColors.dividerColor,
1123
- shadowColor: AppColors.primaryBlack,
1124
- shadowOffset: { width: 0, height: 1 },
1125
- shadowOpacity: 0.03,
1126
- shadowRadius: 3,
1127
- elevation: 1,
1128
- },
1129
- metaRow: {
1130
- flexDirection: 'row',
1131
- justifyContent: 'space-between',
1132
- alignItems: 'center',
1133
- paddingVertical: 10,
1134
- borderBottomWidth: 1,
1135
- borderBottomColor: AppColors.dividerColor,
1136
- },
1137
- metaLabel: {
1138
- fontFamily: AppFonts.interMedium,
1139
- fontSize: 12,
1140
- color: AppColors.grayTextWeak,
1141
- },
1142
- metaValue: {
1143
- fontFamily: AppFonts.interBold,
1144
- fontSize: 12,
1145
- color: AppColors.primaryBlack,
1146
- maxWidth: '60%',
1147
- textAlign: 'right',
1148
- },
1149
- persistedInfoCard: {
1150
- backgroundColor: AppColors.mintGreenBg,
1151
- borderRadius: 8,
1152
- borderWidth: 1,
1153
- borderColor: AppColors.mintGreenBorder,
1154
- padding: 10,
1155
- },
1156
- persistedInfoTitle: {
1157
- fontFamily: AppFonts.interBold,
1158
- fontSize: 11,
1159
- color: AppColors.mintGreenText,
1160
- },
1161
- clearPersistMiniBtn: {
1162
- flexDirection: 'row',
1163
- alignItems: 'center',
1164
- gap: 3,
1165
- backgroundColor: AppColors.errorCardBg,
1166
- paddingHorizontal: 6,
1167
- paddingVertical: 2.5,
1168
- borderRadius: 4,
1169
- },
1170
- clearPersistMiniText: {
1171
- fontFamily: AppFonts.interBold,
1172
- fontSize: 9.5,
1173
- color: AppColors.errorColor,
1174
- },
1175
- clearPersistBtn: {
1176
- flexDirection: 'row',
1177
- alignItems: 'center',
1178
- justifyContent: 'center',
1179
- gap: 6,
1180
- backgroundColor: AppColors.errorCardBg,
1181
- borderWidth: 1,
1182
- borderColor: AppColors.errorBorder,
1183
- borderRadius: 8,
1184
- paddingVertical: 10,
1185
- marginTop: 14,
1186
- },
1187
- clearPersistText: {
1188
- fontFamily: AppFonts.interBold,
1189
- fontSize: 12,
1190
- color: AppColors.errorColor,
1191
- },
1192
- emptyBox: {
1193
- backgroundColor: AppColors.white,
1194
- borderRadius: 12,
1195
- padding: 24,
1196
- alignItems: 'center',
1197
- justifyContent: 'center',
1198
- borderWidth: 1,
1199
- borderColor: AppColors.dividerColor,
1200
- margin: 12,
1201
- gap: 8,
1202
- },
1203
- emptyBoxTitle: {
1204
- fontFamily: AppFonts.interBold,
1205
- fontSize: 14,
1206
- color: AppColors.primaryBlack,
1207
- },
1208
- emptyBoxText: {
1209
- fontFamily: AppFonts.interMedium,
1210
- fontSize: 12,
1211
- color: AppColors.grayTextWeak,
1212
- textAlign: 'center',
1213
- lineHeight: 18,
1214
- },
1215
- highlight: {
1216
- backgroundColor: AppColors.yellowHighlight,
1217
- color: AppColors.amber800Warm,
1218
- fontFamily: AppFonts.interBold,
1219
- },
1220
- });
1221
- export default ReduxDetail;
357
+ </C>
358
+ </T>}),t=tt.create({infoBar:{backgroundColor:e.white,padding:12,borderBottomWidth:1,borderBottomColor:e.dividerColor},infoTopRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:8},methodBadge:{paddingHorizontal:7,paddingVertical:2.5,borderRadius:5},methodBadgeText:{fontFamily:k.interBold,fontSize:9.5,color:e.white,letterSpacing:.4},sliceNameText:{fontFamily:k.interBold,fontSize:14,color:e.primaryBlack,flexShrink:1},persistedChip:{flexDirection:"row",alignItems:"center",gap:3.5,backgroundColor:e.mintGreenBg,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:e.mintGreenBorder},persistedChipText:{fontFamily:k.interBold,fontSize:9,color:e.mintGreenText},inMemoryChip:{backgroundColor:e.indigo50,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:e.blueBorder},inMemoryChipText:{fontFamily:k.interBold,fontSize:9,color:e.indigo600Alt},subStatsRow:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"},statPill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:e.grayBackground,paddingHorizontal:6,paddingVertical:2.5,borderRadius:5,borderWidth:1,borderColor:e.dividerColor},statPillText:{fontFamily:k.interMedium,fontSize:10,color:e.grayText},statLabel:{fontFamily:k.interBold,fontSize:10,color:e.grayTextWeak},statValue:{fontFamily:k.interBold,fontSize:10.5,color:e.primaryBlack},searchContainer:{flexDirection:"row",alignItems:"center",backgroundColor:e.white,borderRadius:8,marginHorizontal:12,marginTop:10,paddingHorizontal:10,borderWidth:1,borderColor:e.dividerColor,height:36,gap:8},searchInput:{flex:1,fontFamily:k.interRegular,fontSize:12,color:e.primaryBlack,padding:0},timelineCard:{backgroundColor:e.white,borderRadius:10,padding:12,marginBottom:8,borderWidth:1,borderColor:e.dividerColor,shadowColor:e.primaryBlack,shadowOffset:{width:0,height:1},shadowOpacity:.03,shadowRadius:3,elevation:1},timelineHeader:{flexDirection:"row",alignItems:"center",gap:8},actionBadge:{backgroundColor:e.indigo50,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:e.blueBorder},actionBadgeText:{fontFamily:k.interBold,fontSize:9.5,color:e.indigo600Alt},actionTitle:{flex:1,fontFamily:k.interBold,fontSize:12.5,color:e.primaryBlack},timePill:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:`${e.purple}14`,paddingHorizontal:6,paddingVertical:2,borderRadius:4},timeText:{fontFamily:k.interMedium,fontSize:10,color:e.purple},collapsedPrompt:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:8,paddingTop:6,borderTopWidth:1,borderTopColor:e.dividerColor},collapsedPromptText:{fontFamily:k.interRegular,fontSize:10.5,color:e.grayTextWeak},expandedContent:{marginTop:10,paddingTop:10,borderTopWidth:1,borderTopColor:e.dividerColor},expandedSectionTitle:{fontFamily:k.interBold,fontSize:11,color:e.grayTextStrong,marginBottom:6},metadataCard:{backgroundColor:e.white,borderRadius:12,padding:12,borderWidth:1,borderColor:e.dividerColor,shadowColor:e.primaryBlack,shadowOffset:{width:0,height:1},shadowOpacity:.03,shadowRadius:3,elevation:1},metaRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingVertical:10,borderBottomWidth:1,borderBottomColor:e.dividerColor},metaLabel:{fontFamily:k.interMedium,fontSize:12,color:e.grayTextWeak},metaValue:{fontFamily:k.interBold,fontSize:12,color:e.primaryBlack,maxWidth:"60%",textAlign:"right"},persistedInfoCard:{backgroundColor:e.mintGreenBg,borderRadius:8,borderWidth:1,borderColor:e.mintGreenBorder,padding:10},persistedInfoTitle:{fontFamily:k.interBold,fontSize:11,color:e.mintGreenText},clearPersistMiniBtn:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:e.errorCardBg,paddingHorizontal:6,paddingVertical:2.5,borderRadius:4},clearPersistMiniText:{fontFamily:k.interBold,fontSize:9.5,color:e.errorColor},clearPersistBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:e.errorCardBg,borderWidth:1,borderColor:e.errorBorder,borderRadius:8,paddingVertical:10,marginTop:14},clearPersistText:{fontFamily:k.interBold,fontSize:12,color:e.errorColor},emptyBox:{backgroundColor:e.white,borderRadius:12,padding:24,alignItems:"center",justifyContent:"center",borderWidth:1,borderColor:e.dividerColor,margin:12,gap:8},emptyBoxTitle:{fontFamily:k.interBold,fontSize:14,color:e.primaryBlack},emptyBoxText:{fontFamily:k.interMedium,fontSize:12,color:e.grayTextWeak,textAlign:"center",lineHeight:18},highlight:{backgroundColor:e.yellowHighlight,color:e.amber800Warm,fontFamily:k.interBold}});export default Nt;