react-native-inapp-inspector 1.1.18 → 1.1.19

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 (291) hide show
  1. package/dist/commonjs/constants/version.d.ts +1 -1
  2. package/dist/commonjs/constants/version.js +1 -1
  3. package/dist/esm/constants/version.d.ts +1 -1
  4. package/dist/esm/constants/version.js +1 -1
  5. package/package.json +2 -4
  6. package/assets/banner_dark.svg +0 -186
  7. package/assets/banner_light.svg +0 -186
  8. package/assets/icon_circle.svg +0 -148
  9. package/assets/icon_square.svg +0 -148
  10. package/assets/social_preview.png +0 -0
  11. package/assets/walkthrough.gif +0 -0
  12. package/dist/commonjs/assets/svgAssets.d.ts +0 -3
  13. package/dist/commonjs/assets/svgAssets.js +0 -17
  14. package/dist/commonjs/components/AnalyticsTabView.d.ts +0 -15
  15. package/dist/commonjs/components/AnalyticsTabView.js +0 -157
  16. package/dist/commonjs/components/ApiDetailView.d.ts +0 -22
  17. package/dist/commonjs/components/ApiDetailView.js +0 -304
  18. package/dist/commonjs/components/ApisTabView.d.ts +0 -33
  19. package/dist/commonjs/components/ApisTabView.js +0 -235
  20. package/dist/commonjs/components/ConsoleLogDetailView.d.ts +0 -9
  21. package/dist/commonjs/components/ConsoleLogDetailView.js +0 -278
  22. package/dist/commonjs/components/ConsoleLogsTabView.d.ts +0 -24
  23. package/dist/commonjs/components/ConsoleLogsTabView.js +0 -354
  24. package/dist/commonjs/components/FloatingBubble.d.ts +0 -14
  25. package/dist/commonjs/components/FloatingBubble.js +0 -75
  26. package/dist/commonjs/components/Inspector/InsightsDashboard.d.ts +0 -3
  27. package/dist/commonjs/components/Inspector/InsightsDashboard.js +0 -619
  28. package/dist/commonjs/components/Inspector/WebViewTab.d.ts +0 -3
  29. package/dist/commonjs/components/Inspector/WebViewTab.js +0 -757
  30. package/dist/commonjs/components/InspectorHeader.d.ts +0 -19
  31. package/dist/commonjs/components/InspectorHeader.js +0 -329
  32. package/dist/commonjs/components/InspectorTabBar.d.ts +0 -16
  33. package/dist/commonjs/components/InspectorTabBar.js +0 -90
  34. package/dist/commonjs/components/NavigationTracker.d.ts +0 -7
  35. package/dist/commonjs/components/NavigationTracker.js +0 -76
  36. package/dist/commonjs/components/ReduxTabView.d.ts +0 -9
  37. package/dist/commonjs/components/ReduxTabView.js +0 -56
  38. package/dist/commonjs/components/ReduxTreeView.d.ts +0 -16
  39. package/dist/commonjs/components/ReduxTreeView.js +0 -1257
  40. package/dist/commonjs/components/SettingsView.d.ts +0 -13
  41. package/dist/commonjs/components/SettingsView.js +0 -328
  42. package/dist/commonjs/customHooks/webViewLogger.d.ts +0 -24
  43. package/dist/commonjs/customHooks/webViewLogger.js +0 -452
  44. package/dist/commonjs/enums/index.d.ts +0 -39
  45. package/dist/commonjs/enums/index.js +0 -50
  46. package/dist/commonjs/i18n/en.json +0 -144
  47. package/dist/esm/assets/svgAssets.d.ts +0 -3
  48. package/dist/esm/assets/svgAssets.js +0 -14
  49. package/dist/esm/components/AnalyticsTabView.d.ts +0 -15
  50. package/dist/esm/components/AnalyticsTabView.js +0 -151
  51. package/dist/esm/components/ApiDetailView.d.ts +0 -22
  52. package/dist/esm/components/ApiDetailView.js +0 -264
  53. package/dist/esm/components/ApisTabView.d.ts +0 -33
  54. package/dist/esm/components/ApisTabView.js +0 -196
  55. package/dist/esm/components/ConsoleLogDetailView.d.ts +0 -9
  56. package/dist/esm/components/ConsoleLogDetailView.js +0 -271
  57. package/dist/esm/components/ConsoleLogsTabView.d.ts +0 -24
  58. package/dist/esm/components/ConsoleLogsTabView.js +0 -348
  59. package/dist/esm/components/FloatingBubble.d.ts +0 -14
  60. package/dist/esm/components/FloatingBubble.js +0 -68
  61. package/dist/esm/components/Inspector/InsightsDashboard.d.ts +0 -3
  62. package/dist/esm/components/Inspector/InsightsDashboard.js +0 -614
  63. package/dist/esm/components/Inspector/WebViewTab.d.ts +0 -3
  64. package/dist/esm/components/Inspector/WebViewTab.js +0 -752
  65. package/dist/esm/components/InspectorHeader.d.ts +0 -19
  66. package/dist/esm/components/InspectorHeader.js +0 -323
  67. package/dist/esm/components/InspectorTabBar.d.ts +0 -16
  68. package/dist/esm/components/InspectorTabBar.js +0 -84
  69. package/dist/esm/components/NavigationTracker.d.ts +0 -7
  70. package/dist/esm/components/NavigationTracker.js +0 -39
  71. package/dist/esm/components/ReduxTabView.d.ts +0 -9
  72. package/dist/esm/components/ReduxTabView.js +0 -50
  73. package/dist/esm/components/ReduxTreeView.d.ts +0 -16
  74. package/dist/esm/components/ReduxTreeView.js +0 -1218
  75. package/dist/esm/components/SettingsView.d.ts +0 -13
  76. package/dist/esm/components/SettingsView.js +0 -321
  77. package/dist/esm/customHooks/webViewLogger.d.ts +0 -24
  78. package/dist/esm/customHooks/webViewLogger.js +0 -405
  79. package/dist/esm/enums/index.d.ts +0 -39
  80. package/dist/esm/enums/index.js +0 -47
  81. package/dist/esm/i18n/en.json +0 -144
  82. package/example/.bundle/config +0 -2
  83. package/example/.eslintrc.js +0 -4
  84. package/example/.prettierrc.js +0 -5
  85. package/example/.watchmanconfig +0 -1
  86. package/example/App.tsx +0 -879
  87. package/example/Gemfile +0 -17
  88. package/example/README.md +0 -53
  89. package/example/__tests__/App.test.tsx +0 -13
  90. package/example/android/app/build.gradle +0 -147
  91. package/example/android/app/debug.keystore +0 -0
  92. package/example/android/app/proguard-rules.pro +0 -10
  93. package/example/android/app/src/main/AndroidManifest.xml +0 -27
  94. package/example/android/app/src/main/java/com/example/MainActivity.kt +0 -22
  95. package/example/android/app/src/main/java/com/example/MainApplication.kt +0 -52
  96. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  97. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  98. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  99. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  100. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  101. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  102. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  103. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  104. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  105. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  106. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  107. package/example/android/app/src/main/res/values/strings.xml +0 -3
  108. package/example/android/app/src/main/res/values/styles.xml +0 -9
  109. package/example/android/build.gradle +0 -48
  110. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  111. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  112. package/example/android/gradle.properties +0 -45
  113. package/example/android/gradlew +0 -248
  114. package/example/android/gradlew.bat +0 -98
  115. package/example/android/settings.gradle +0 -25
  116. package/example/app.json +0 -4
  117. package/example/assets/app_icon.png +0 -0
  118. package/example/babel.config.js +0 -3
  119. package/example/guidance/Video-WalkThrough.mp4 +0 -0
  120. package/example/index.js +0 -9
  121. package/example/ios/.xcode.env +0 -11
  122. package/example/ios/Podfile +0 -34
  123. package/example/ios/Podfile.lock +0 -2303
  124. package/example/ios/example/AppDelegate.swift +0 -48
  125. package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +0 -62
  126. package/example/ios/example/Images.xcassets/AppIcon.appiconset/app_icon_1024.png +0 -0
  127. package/example/ios/example/Images.xcassets/Contents.json +0 -6
  128. package/example/ios/example/Info.plist +0 -60
  129. package/example/ios/example/LaunchScreen.storyboard +0 -47
  130. package/example/ios/example/PrivacyInfo.xcprivacy +0 -37
  131. package/example/ios/example.xcodeproj/project.pbxproj +0 -498
  132. package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +0 -88
  133. package/example/ios/example.xcworkspace/contents.xcworkspacedata +0 -10
  134. package/example/jest.config.js +0 -3
  135. package/example/metro.config.js +0 -45
  136. package/example/package-lock.json +0 -13508
  137. package/example/package.json +0 -54
  138. package/example/polyfill.js +0 -13
  139. package/example/tsconfig.json +0 -8
  140. package/fonts/Inter/Inter.ttc +0 -0
  141. package/fonts/Inter/InterVariable-Italic.ttf +0 -0
  142. package/fonts/Inter/InterVariable.ttf +0 -0
  143. package/fonts/Inter/LICENSE.txt +0 -92
  144. package/fonts/Inter/extras/otf/Inter-Black.otf +0 -0
  145. package/fonts/Inter/extras/otf/Inter-BlackItalic.otf +0 -0
  146. package/fonts/Inter/extras/otf/Inter-Bold.otf +0 -0
  147. package/fonts/Inter/extras/otf/Inter-BoldItalic.otf +0 -0
  148. package/fonts/Inter/extras/otf/Inter-ExtraBold.otf +0 -0
  149. package/fonts/Inter/extras/otf/Inter-ExtraBoldItalic.otf +0 -0
  150. package/fonts/Inter/extras/otf/Inter-ExtraLight.otf +0 -0
  151. package/fonts/Inter/extras/otf/Inter-ExtraLightItalic.otf +0 -0
  152. package/fonts/Inter/extras/otf/Inter-Italic.otf +0 -0
  153. package/fonts/Inter/extras/otf/Inter-Light.otf +0 -0
  154. package/fonts/Inter/extras/otf/Inter-LightItalic.otf +0 -0
  155. package/fonts/Inter/extras/otf/Inter-Medium.otf +0 -0
  156. package/fonts/Inter/extras/otf/Inter-MediumItalic.otf +0 -0
  157. package/fonts/Inter/extras/otf/Inter-Regular.otf +0 -0
  158. package/fonts/Inter/extras/otf/Inter-SemiBold.otf +0 -0
  159. package/fonts/Inter/extras/otf/Inter-SemiBoldItalic.otf +0 -0
  160. package/fonts/Inter/extras/otf/Inter-Thin.otf +0 -0
  161. package/fonts/Inter/extras/otf/Inter-ThinItalic.otf +0 -0
  162. package/fonts/Inter/extras/otf/InterDisplay-Black.otf +0 -0
  163. package/fonts/Inter/extras/otf/InterDisplay-BlackItalic.otf +0 -0
  164. package/fonts/Inter/extras/otf/InterDisplay-Bold.otf +0 -0
  165. package/fonts/Inter/extras/otf/InterDisplay-BoldItalic.otf +0 -0
  166. package/fonts/Inter/extras/otf/InterDisplay-ExtraBold.otf +0 -0
  167. package/fonts/Inter/extras/otf/InterDisplay-ExtraBoldItalic.otf +0 -0
  168. package/fonts/Inter/extras/otf/InterDisplay-ExtraLight.otf +0 -0
  169. package/fonts/Inter/extras/otf/InterDisplay-ExtraLightItalic.otf +0 -0
  170. package/fonts/Inter/extras/otf/InterDisplay-Italic.otf +0 -0
  171. package/fonts/Inter/extras/otf/InterDisplay-Light.otf +0 -0
  172. package/fonts/Inter/extras/otf/InterDisplay-LightItalic.otf +0 -0
  173. package/fonts/Inter/extras/otf/InterDisplay-Medium.otf +0 -0
  174. package/fonts/Inter/extras/otf/InterDisplay-MediumItalic.otf +0 -0
  175. package/fonts/Inter/extras/otf/InterDisplay-Regular.otf +0 -0
  176. package/fonts/Inter/extras/otf/InterDisplay-SemiBold.otf +0 -0
  177. package/fonts/Inter/extras/otf/InterDisplay-SemiBoldItalic.otf +0 -0
  178. package/fonts/Inter/extras/otf/InterDisplay-Thin.otf +0 -0
  179. package/fonts/Inter/extras/otf/InterDisplay-ThinItalic.otf +0 -0
  180. package/fonts/Inter/extras/ttf/Inter-Black.ttf +0 -0
  181. package/fonts/Inter/extras/ttf/Inter-BlackItalic.ttf +0 -0
  182. package/fonts/Inter/extras/ttf/Inter-Bold.ttf +0 -0
  183. package/fonts/Inter/extras/ttf/Inter-BoldItalic.ttf +0 -0
  184. package/fonts/Inter/extras/ttf/Inter-ExtraBold.ttf +0 -0
  185. package/fonts/Inter/extras/ttf/Inter-ExtraBoldItalic.ttf +0 -0
  186. package/fonts/Inter/extras/ttf/Inter-ExtraLight.ttf +0 -0
  187. package/fonts/Inter/extras/ttf/Inter-ExtraLightItalic.ttf +0 -0
  188. package/fonts/Inter/extras/ttf/Inter-Italic.ttf +0 -0
  189. package/fonts/Inter/extras/ttf/Inter-Light.ttf +0 -0
  190. package/fonts/Inter/extras/ttf/Inter-LightItalic.ttf +0 -0
  191. package/fonts/Inter/extras/ttf/Inter-Medium.ttf +0 -0
  192. package/fonts/Inter/extras/ttf/Inter-MediumItalic.ttf +0 -0
  193. package/fonts/Inter/extras/ttf/Inter-Regular.ttf +0 -0
  194. package/fonts/Inter/extras/ttf/Inter-SemiBold.ttf +0 -0
  195. package/fonts/Inter/extras/ttf/Inter-SemiBoldItalic.ttf +0 -0
  196. package/fonts/Inter/extras/ttf/Inter-Thin.ttf +0 -0
  197. package/fonts/Inter/extras/ttf/Inter-ThinItalic.ttf +0 -0
  198. package/fonts/Inter/extras/ttf/InterDisplay-Black.ttf +0 -0
  199. package/fonts/Inter/extras/ttf/InterDisplay-BlackItalic.ttf +0 -0
  200. package/fonts/Inter/extras/ttf/InterDisplay-Bold.ttf +0 -0
  201. package/fonts/Inter/extras/ttf/InterDisplay-BoldItalic.ttf +0 -0
  202. package/fonts/Inter/extras/ttf/InterDisplay-ExtraBold.ttf +0 -0
  203. package/fonts/Inter/extras/ttf/InterDisplay-ExtraBoldItalic.ttf +0 -0
  204. package/fonts/Inter/extras/ttf/InterDisplay-ExtraLight.ttf +0 -0
  205. package/fonts/Inter/extras/ttf/InterDisplay-ExtraLightItalic.ttf +0 -0
  206. package/fonts/Inter/extras/ttf/InterDisplay-Italic.ttf +0 -0
  207. package/fonts/Inter/extras/ttf/InterDisplay-Light.ttf +0 -0
  208. package/fonts/Inter/extras/ttf/InterDisplay-LightItalic.ttf +0 -0
  209. package/fonts/Inter/extras/ttf/InterDisplay-Medium.ttf +0 -0
  210. package/fonts/Inter/extras/ttf/InterDisplay-MediumItalic.ttf +0 -0
  211. package/fonts/Inter/extras/ttf/InterDisplay-Regular.ttf +0 -0
  212. package/fonts/Inter/extras/ttf/InterDisplay-SemiBold.ttf +0 -0
  213. package/fonts/Inter/extras/ttf/InterDisplay-SemiBoldItalic.ttf +0 -0
  214. package/fonts/Inter/extras/ttf/InterDisplay-Thin.ttf +0 -0
  215. package/fonts/Inter/extras/ttf/InterDisplay-ThinItalic.ttf +0 -0
  216. package/fonts/Inter/extras/woff-hinted/Inter-Black.woff2 +0 -0
  217. package/fonts/Inter/extras/woff-hinted/Inter-BlackItalic.woff2 +0 -0
  218. package/fonts/Inter/extras/woff-hinted/Inter-Bold.woff2 +0 -0
  219. package/fonts/Inter/extras/woff-hinted/Inter-BoldItalic.woff2 +0 -0
  220. package/fonts/Inter/extras/woff-hinted/Inter-ExtraBold.woff2 +0 -0
  221. package/fonts/Inter/extras/woff-hinted/Inter-ExtraBoldItalic.woff2 +0 -0
  222. package/fonts/Inter/extras/woff-hinted/Inter-ExtraLight.woff2 +0 -0
  223. package/fonts/Inter/extras/woff-hinted/Inter-ExtraLightItalic.woff2 +0 -0
  224. package/fonts/Inter/extras/woff-hinted/Inter-Italic.woff2 +0 -0
  225. package/fonts/Inter/extras/woff-hinted/Inter-Light.woff2 +0 -0
  226. package/fonts/Inter/extras/woff-hinted/Inter-LightItalic.woff2 +0 -0
  227. package/fonts/Inter/extras/woff-hinted/Inter-Medium.woff2 +0 -0
  228. package/fonts/Inter/extras/woff-hinted/Inter-MediumItalic.woff2 +0 -0
  229. package/fonts/Inter/extras/woff-hinted/Inter-Regular.woff2 +0 -0
  230. package/fonts/Inter/extras/woff-hinted/Inter-SemiBold.woff2 +0 -0
  231. package/fonts/Inter/extras/woff-hinted/Inter-SemiBoldItalic.woff2 +0 -0
  232. package/fonts/Inter/extras/woff-hinted/Inter-Thin.woff2 +0 -0
  233. package/fonts/Inter/extras/woff-hinted/Inter-ThinItalic.woff2 +0 -0
  234. package/fonts/Inter/extras/woff-hinted/InterDisplay-Black.woff2 +0 -0
  235. package/fonts/Inter/extras/woff-hinted/InterDisplay-BlackItalic.woff2 +0 -0
  236. package/fonts/Inter/extras/woff-hinted/InterDisplay-Bold.woff2 +0 -0
  237. package/fonts/Inter/extras/woff-hinted/InterDisplay-BoldItalic.woff2 +0 -0
  238. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraBold.woff2 +0 -0
  239. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraBoldItalic.woff2 +0 -0
  240. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraLight.woff2 +0 -0
  241. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraLightItalic.woff2 +0 -0
  242. package/fonts/Inter/extras/woff-hinted/InterDisplay-Italic.woff2 +0 -0
  243. package/fonts/Inter/extras/woff-hinted/InterDisplay-Light.woff2 +0 -0
  244. package/fonts/Inter/extras/woff-hinted/InterDisplay-LightItalic.woff2 +0 -0
  245. package/fonts/Inter/extras/woff-hinted/InterDisplay-Medium.woff2 +0 -0
  246. package/fonts/Inter/extras/woff-hinted/InterDisplay-MediumItalic.woff2 +0 -0
  247. package/fonts/Inter/extras/woff-hinted/InterDisplay-Regular.woff2 +0 -0
  248. package/fonts/Inter/extras/woff-hinted/InterDisplay-SemiBold.woff2 +0 -0
  249. package/fonts/Inter/extras/woff-hinted/InterDisplay-SemiBoldItalic.woff2 +0 -0
  250. package/fonts/Inter/extras/woff-hinted/InterDisplay-Thin.woff2 +0 -0
  251. package/fonts/Inter/extras/woff-hinted/InterDisplay-ThinItalic.woff2 +0 -0
  252. package/fonts/Inter/help.txt +0 -165
  253. package/fonts/Inter/web/Inter-Black.woff2 +0 -0
  254. package/fonts/Inter/web/Inter-BlackItalic.woff2 +0 -0
  255. package/fonts/Inter/web/Inter-Bold.woff2 +0 -0
  256. package/fonts/Inter/web/Inter-BoldItalic.woff2 +0 -0
  257. package/fonts/Inter/web/Inter-ExtraBold.woff2 +0 -0
  258. package/fonts/Inter/web/Inter-ExtraBoldItalic.woff2 +0 -0
  259. package/fonts/Inter/web/Inter-ExtraLight.woff2 +0 -0
  260. package/fonts/Inter/web/Inter-ExtraLightItalic.woff2 +0 -0
  261. package/fonts/Inter/web/Inter-Italic.woff2 +0 -0
  262. package/fonts/Inter/web/Inter-Light.woff2 +0 -0
  263. package/fonts/Inter/web/Inter-LightItalic.woff2 +0 -0
  264. package/fonts/Inter/web/Inter-Medium.woff2 +0 -0
  265. package/fonts/Inter/web/Inter-MediumItalic.woff2 +0 -0
  266. package/fonts/Inter/web/Inter-Regular.woff2 +0 -0
  267. package/fonts/Inter/web/Inter-SemiBold.woff2 +0 -0
  268. package/fonts/Inter/web/Inter-SemiBoldItalic.woff2 +0 -0
  269. package/fonts/Inter/web/Inter-Thin.woff2 +0 -0
  270. package/fonts/Inter/web/Inter-ThinItalic.woff2 +0 -0
  271. package/fonts/Inter/web/InterDisplay-Black.woff2 +0 -0
  272. package/fonts/Inter/web/InterDisplay-BlackItalic.woff2 +0 -0
  273. package/fonts/Inter/web/InterDisplay-Bold.woff2 +0 -0
  274. package/fonts/Inter/web/InterDisplay-BoldItalic.woff2 +0 -0
  275. package/fonts/Inter/web/InterDisplay-ExtraBold.woff2 +0 -0
  276. package/fonts/Inter/web/InterDisplay-ExtraBoldItalic.woff2 +0 -0
  277. package/fonts/Inter/web/InterDisplay-ExtraLight.woff2 +0 -0
  278. package/fonts/Inter/web/InterDisplay-ExtraLightItalic.woff2 +0 -0
  279. package/fonts/Inter/web/InterDisplay-Italic.woff2 +0 -0
  280. package/fonts/Inter/web/InterDisplay-Light.woff2 +0 -0
  281. package/fonts/Inter/web/InterDisplay-LightItalic.woff2 +0 -0
  282. package/fonts/Inter/web/InterDisplay-Medium.woff2 +0 -0
  283. package/fonts/Inter/web/InterDisplay-MediumItalic.woff2 +0 -0
  284. package/fonts/Inter/web/InterDisplay-Regular.woff2 +0 -0
  285. package/fonts/Inter/web/InterDisplay-SemiBold.woff2 +0 -0
  286. package/fonts/Inter/web/InterDisplay-SemiBoldItalic.woff2 +0 -0
  287. package/fonts/Inter/web/InterDisplay-Thin.woff2 +0 -0
  288. package/fonts/Inter/web/InterDisplay-ThinItalic.woff2 +0 -0
  289. package/fonts/Inter/web/InterVariable-Italic.woff2 +0 -0
  290. package/fonts/Inter/web/InterVariable.woff2 +0 -0
  291. package/fonts/Inter/web/inter.css +0 -148
@@ -1,619 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const react_native_1 = require("react-native");
8
- const InspectorContext_1 = require("./InspectorContext");
9
- const TouchableScale_1 = __importDefault(require("../TouchableScale"));
10
- const styles_1 = __importDefault(require("../../styles"));
11
- const AppColors_1 = require("../../styles/AppColors");
12
- const AppFonts_1 = require("../../styles/AppFonts");
13
- const helpers_1 = require("../../helpers");
14
- const NetworkIcons_1 = require("../NetworkIcons");
15
- const InsightsDashboard = () => {
16
- const { logs, visibleConsoleLogs, analyticsEvents, webViewNavHistory, tabVisibility, slowRequestThreshold, insightsActiveSubTab, setInsightsActiveSubTab, switchActiveTab, reduxState, } = (0, InspectorContext_1.useInspector)();
17
- const apiTotal = logs.length;
18
- const apiErrors = logs.filter(l => (l.status != null && l.status >= 400) ||
19
- l.status === 0 ||
20
- l.status == null).length;
21
- const apiSuccess = apiTotal - apiErrors;
22
- const apiSuccessRate = apiTotal > 0 ? Math.round((apiSuccess / apiTotal) * 100) : 100;
23
- const durations = logs
24
- .filter(l => l.duration != null)
25
- .map(l => l.duration);
26
- const avgTime = durations.length > 0
27
- ? Math.round(durations.reduce((a, b) => a + b, 0) / durations.length)
28
- : null;
29
- const logTotal = visibleConsoleLogs.length;
30
- const logErrors = visibleConsoleLogs.filter(l => l.type === 'error').length;
31
- const logWarns = visibleConsoleLogs.filter(l => l.type === 'warn').length;
32
- const logInfos = visibleConsoleLogs.filter(l => l.type === 'info').length;
33
- const analyticsTotal = analyticsEvents.length;
34
- const uniqueEvents = new Set(analyticsEvents.map(e => e.name)).size;
35
- const screenViews = analyticsEvents.filter(e => e.name === 'screen_view' ||
36
- e.name === 'page_view' ||
37
- e.name === 'firebase_screen_class').length;
38
- const webviewTotal = webViewNavHistory.length;
39
- // --- Richer insights metrics ---
40
- const slowestTime = durations.length > 0 ? Math.max(...durations) : null;
41
- const fastestTime = durations.length > 0 ? Math.min(...durations) : null;
42
- const slowCount = durations.filter(d => d >= slowRequestThreshold).length;
43
- const status2xx = logs.filter(l => l.status != null && l.status >= 200 && l.status < 300).length;
44
- const status3xx = logs.filter(l => l.status != null && l.status >= 300 && l.status < 400).length;
45
- const status4xx = logs.filter(l => l.status != null && l.status >= 400 && l.status < 500).length;
46
- const status5xx = logs.filter(l => l.status != null && l.status >= 500).length;
47
- const totalSignals = apiTotal + logTotal + analyticsTotal + webviewTotal;
48
- const totalIssues = apiErrors + logErrors;
49
- const activeModules = [
50
- tabVisibility?.apis,
51
- tabVisibility?.logs,
52
- tabVisibility?.analytics,
53
- tabVisibility?.webview,
54
- tabVisibility?.redux,
55
- ].filter(Boolean).length;
56
- // Composite health score: success rate penalised by error volume and slow requests.
57
- const healthScore = totalSignals === 0
58
- ? 100
59
- : Math.max(0, Math.min(100, Math.round(apiSuccessRate -
60
- (logErrors > 0 ? Math.min(15, logErrors * 3) : 0) -
61
- (slowCount > 0 ? Math.min(10, slowCount * 2) : 0))));
62
- const healthColor = healthScore >= 90
63
- ? AppColors_1.AppColors.greenColor
64
- : healthScore >= 70
65
- ? AppColors_1.AppColors.warningIconGold
66
- : AppColors_1.AppColors.errorColor;
67
- const healthLabel = healthScore >= 90
68
- ? 'Healthy'
69
- : healthScore >= 70
70
- ? 'Needs attention'
71
- : 'Degraded';
72
- return (<react_native_1.View style={styles_1.default.dashboardContainer}>
73
- {/* Overview hero card */}
74
- <react_native_1.View style={{
75
- backgroundColor: AppColors_1.AppColors.primaryLight,
76
- borderRadius: 14,
77
- borderWidth: 1,
78
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
79
- padding: 16,
80
- marginBottom: 12,
81
- }}>
82
- <react_native_1.View style={{
83
- flexDirection: 'row',
84
- alignItems: 'center',
85
- gap: 14,
86
- }}>
87
- {/* Health ring stand-in */}
88
- <react_native_1.View style={{
89
- width: 64,
90
- height: 64,
91
- borderRadius: 32,
92
- borderWidth: 4,
93
- borderColor: healthColor,
94
- alignItems: 'center',
95
- justifyContent: 'center',
96
- backgroundColor: AppColors_1.AppColors.purpleShade50,
97
- }}>
98
- <react_native_1.Text style={{
99
- fontFamily: AppFonts_1.AppFonts.interBold,
100
- fontSize: 18,
101
- color: healthColor,
102
- }}>
103
- {healthScore}
104
- </react_native_1.Text>
105
- <react_native_1.Text style={{
106
- fontFamily: AppFonts_1.AppFonts.interMedium,
107
- fontSize: 7.5,
108
- color: AppColors_1.AppColors.grayTextWeak,
109
- letterSpacing: 0.4,
110
- }}>
111
- HEALTH
112
- </react_native_1.Text>
113
- </react_native_1.View>
114
- <react_native_1.View style={{ flex: 1 }}>
115
- <react_native_1.Text style={{
116
- fontFamily: AppFonts_1.AppFonts.interBold,
117
- fontSize: 15,
118
- color: AppColors_1.AppColors.primaryBlack,
119
- }}>
120
- Session Overview
121
- </react_native_1.Text>
122
- <react_native_1.View style={{
123
- flexDirection: 'row',
124
- alignItems: 'center',
125
- gap: 6,
126
- marginTop: 3,
127
- }}>
128
- <react_native_1.View style={{
129
- width: 7,
130
- height: 7,
131
- borderRadius: 3.5,
132
- backgroundColor: healthColor,
133
- }}/>
134
- <react_native_1.Text style={{
135
- fontFamily: AppFonts_1.AppFonts.interMedium,
136
- fontSize: 11.5,
137
- color: healthColor,
138
- }}>
139
- {healthLabel}
140
- </react_native_1.Text>
141
- <react_native_1.Text style={{
142
- fontFamily: AppFonts_1.AppFonts.interRegular,
143
- fontSize: 11.5,
144
- color: AppColors_1.AppColors.grayTextWeak,
145
- }}>
146
- • {activeModules} modules active
147
- </react_native_1.Text>
148
- </react_native_1.View>
149
- </react_native_1.View>
150
- </react_native_1.View>
151
-
152
- {/* Quick totals strip */}
153
- <react_native_1.View style={{
154
- flexDirection: 'row',
155
- marginTop: 14,
156
- borderTopWidth: 1,
157
- borderTopColor: AppColors_1.AppColors.dividerColor,
158
- paddingTop: 12,
159
- }}>
160
- <react_native_1.View style={{ flex: 1, alignItems: 'center' }}>
161
- <react_native_1.Text style={{
162
- fontFamily: AppFonts_1.AppFonts.interBold,
163
- fontSize: 16,
164
- color: AppColors_1.AppColors.primaryBlack,
165
- }}>
166
- {totalSignals}
167
- </react_native_1.Text>
168
- <react_native_1.Text style={{
169
- fontFamily: AppFonts_1.AppFonts.interRegular,
170
- fontSize: 10,
171
- color: AppColors_1.AppColors.grayTextWeak,
172
- marginTop: 1,
173
- }}>
174
- Signals
175
- </react_native_1.Text>
176
- </react_native_1.View>
177
- <react_native_1.View style={{ width: 1, backgroundColor: AppColors_1.AppColors.dividerColor }}/>
178
- <react_native_1.View style={{ flex: 1, alignItems: 'center' }}>
179
- <react_native_1.Text style={{
180
- fontFamily: AppFonts_1.AppFonts.interBold,
181
- fontSize: 16,
182
- color: totalIssues > 0
183
- ? AppColors_1.AppColors.errorColor
184
- : AppColors_1.AppColors.primaryBlack,
185
- }}>
186
- {totalIssues}
187
- </react_native_1.Text>
188
- <react_native_1.Text style={{
189
- fontFamily: AppFonts_1.AppFonts.interRegular,
190
- fontSize: 10,
191
- color: AppColors_1.AppColors.grayTextWeak,
192
- marginTop: 1,
193
- }}>
194
- Issues
195
- </react_native_1.Text>
196
- </react_native_1.View>
197
- <react_native_1.View style={{ width: 1, backgroundColor: AppColors_1.AppColors.dividerColor }}/>
198
- <react_native_1.View style={{ flex: 1, alignItems: 'center' }}>
199
- <react_native_1.Text style={{
200
- fontFamily: AppFonts_1.AppFonts.interBold,
201
- fontSize: 16,
202
- color: slowCount > 0
203
- ? AppColors_1.AppColors.warningIconGold
204
- : AppColors_1.AppColors.primaryBlack,
205
- }}>
206
- {slowCount}
207
- </react_native_1.Text>
208
- <react_native_1.Text style={{
209
- fontFamily: AppFonts_1.AppFonts.interRegular,
210
- fontSize: 10,
211
- color: AppColors_1.AppColors.grayTextWeak,
212
- marginTop: 1,
213
- }}>
214
- Slow ({slowRequestThreshold}ms+)
215
- </react_native_1.Text>
216
- </react_native_1.View>
217
- </react_native_1.View>
218
- </react_native_1.View>
219
-
220
- {/* ── Insights Sub-Tab Selector ── */}
221
- {(() => {
222
- const insightTabs = [
223
- {
224
- key: 'apis',
225
- label: 'APIs',
226
- icon: (c, s) => <NetworkIcons_1.SignalIcon color={c} size={s}/>,
227
- color: AppColors_1.AppColors.purple,
228
- count: apiTotal,
229
- visible: !!tabVisibility?.apis,
230
- },
231
- {
232
- key: 'logs',
233
- label: 'Logs',
234
- icon: (c, s) => <NetworkIcons_1.TerminalIcon color={c} size={s}/>,
235
- color: '#0D9488',
236
- count: logTotal,
237
- visible: !!tabVisibility?.logs,
238
- },
239
- {
240
- key: 'analytics',
241
- label: 'Analytics',
242
- icon: (c, s) => <NetworkIcons_1.AnalyticsIcon color={c} size={s}/>,
243
- color: '#EA580C',
244
- count: analyticsTotal,
245
- visible: !!tabVisibility?.analytics,
246
- },
247
- {
248
- key: 'webview',
249
- label: 'WebView',
250
- icon: (c, s) => <NetworkIcons_1.GlobeIcon color={c} size={s}/>,
251
- color: '#2563EB',
252
- count: webviewTotal,
253
- visible: !!tabVisibility?.webview,
254
- },
255
- {
256
- key: 'redux',
257
- label: 'Redux',
258
- icon: (c, s) => <NetworkIcons_1.TerminalIcon color={c} size={s}/>,
259
- color: AppColors_1.AppColors.purple,
260
- count: reduxState ? Object.keys(reduxState).length : 0,
261
- visible: !!tabVisibility?.redux,
262
- },
263
- ];
264
- const visibleTabs = insightTabs.filter(t => t.visible);
265
- if (visibleTabs.length === 0)
266
- return null;
267
- return (<>
268
- <react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={false} contentContainerStyle={{
269
- paddingHorizontal: 2,
270
- paddingVertical: 2,
271
- gap: 8,
272
- }} style={{
273
- marginBottom: 12,
274
- flexGrow: 0,
275
- }}>
276
- {visibleTabs.map(tab => {
277
- const isActive = insightsActiveSubTab === tab.key;
278
- return (<react_native_1.TouchableOpacity key={tab.key} onPress={() => {
279
- (0, InspectorContext_1.animateNextLayout)();
280
- setInsightsActiveSubTab(tab.key);
281
- }} activeOpacity={0.7} style={{
282
- flexDirection: 'row',
283
- alignItems: 'center',
284
- gap: 6,
285
- paddingHorizontal: 14,
286
- paddingVertical: 8,
287
- borderRadius: 20,
288
- backgroundColor: isActive
289
- ? tab.color
290
- : AppColors_1.AppColors.primaryLight,
291
- borderWidth: 1,
292
- borderColor: isActive
293
- ? tab.color
294
- : AppColors_1.AppColors.grayBorderSecondary,
295
- }}>
296
- {tab.icon(isActive ? '#FFFFFF' : tab.color, 14)}
297
- <react_native_1.Text style={{
298
- fontFamily: AppFonts_1.AppFonts.interBold,
299
- fontSize: 11.5,
300
- color: isActive ? '#FFFFFF' : AppColors_1.AppColors.grayTextStrong,
301
- }}>
302
- {tab.label}
303
- </react_native_1.Text>
304
- <react_native_1.View style={{
305
- minWidth: 20,
306
- height: 18,
307
- borderRadius: 9,
308
- paddingHorizontal: 5,
309
- alignItems: 'center',
310
- justifyContent: 'center',
311
- backgroundColor: isActive
312
- ? 'rgba(255,255,255,0.25)'
313
- : AppColors_1.AppColors.grayBackground,
314
- }}>
315
- <react_native_1.Text style={{
316
- fontFamily: AppFonts_1.AppFonts.interBold,
317
- fontSize: 9.5,
318
- color: isActive ? '#FFFFFF' : AppColors_1.AppColors.grayTextWeak,
319
- }}>
320
- {tab.count}
321
- </react_native_1.Text>
322
- </react_native_1.View>
323
- </react_native_1.TouchableOpacity>);
324
- })}
325
- </react_native_1.ScrollView>
326
-
327
- {/* ── Active Module Card ── */}
328
- {insightsActiveSubTab === 'apis' && tabVisibility?.apis && (<TouchableScale_1.default style={styles_1.default.dashboardModuleCard} onPress={() => switchActiveTab('apis')}>
329
- <react_native_1.View style={styles_1.default.dashboardModuleHeader}>
330
- <react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
331
- <NetworkIcons_1.SignalIcon color={AppColors_1.AppColors.purple} size={18}/>
332
- <react_native_1.Text style={styles_1.default.dashboardModuleTitle}>APIs & Network</react_native_1.Text>
333
- </react_native_1.View>
334
- <react_native_1.Text style={styles_1.default.dashboardModuleGoText}>View Details →</react_native_1.Text>
335
- </react_native_1.View>
336
- <react_native_1.View style={styles_1.default.dashboardModuleGrid}>
337
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
338
- <react_native_1.Text style={styles_1.default.dashboardGridVal}>{apiTotal}</react_native_1.Text>
339
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Requests</react_native_1.Text>
340
- </react_native_1.View>
341
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
342
- <react_native_1.Text style={[
343
- styles_1.default.dashboardGridVal,
344
- apiSuccessRate < 90 && { color: AppColors_1.AppColors.warningIconGold },
345
- ]}>
346
- {apiSuccessRate}%
347
- </react_native_1.Text>
348
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Success Rate</react_native_1.Text>
349
- </react_native_1.View>
350
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
351
- <react_native_1.Text style={[
352
- styles_1.default.dashboardGridVal,
353
- apiErrors > 0 && { color: AppColors_1.AppColors.errorColor },
354
- ]}>
355
- {apiErrors}
356
- </react_native_1.Text>
357
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Errors</react_native_1.Text>
358
- </react_native_1.View>
359
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
360
- <react_native_1.Text style={styles_1.default.dashboardGridVal}>
361
- {avgTime != null ? `${avgTime}ms` : '—'}
362
- </react_native_1.Text>
363
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Avg Latency</react_native_1.Text>
364
- </react_native_1.View>
365
- </react_native_1.View>
366
-
367
- {/* Status-class breakdown + latency range */}
368
- <react_native_1.View style={{
369
- marginTop: 10,
370
- paddingTop: 10,
371
- borderTopWidth: 1,
372
- borderTopColor: AppColors_1.AppColors.dividerColor,
373
- flexDirection: 'row',
374
- alignItems: 'center',
375
- flexWrap: 'wrap',
376
- gap: 6,
377
- }}>
378
- {[
379
- { label: '2xx', value: status2xx, color: AppColors_1.AppColors.greenColor },
380
- { label: '3xx', value: status3xx, color: AppColors_1.AppColors.skyBlue },
381
- {
382
- label: '4xx',
383
- value: status4xx,
384
- color: AppColors_1.AppColors.warningIconGold,
385
- },
386
- { label: '5xx', value: status5xx, color: AppColors_1.AppColors.errorColor },
387
- ].map(s => (<react_native_1.View key={s.label} style={{
388
- flexDirection: 'row',
389
- alignItems: 'center',
390
- gap: 4,
391
- backgroundColor: AppColors_1.AppColors.grayBackground,
392
- borderRadius: 6,
393
- borderWidth: 1,
394
- borderColor: AppColors_1.AppColors.dividerColor,
395
- paddingHorizontal: 7,
396
- paddingVertical: 3,
397
- }}>
398
- <react_native_1.View style={{
399
- width: 6,
400
- height: 6,
401
- borderRadius: 3,
402
- backgroundColor: s.color,
403
- }}/>
404
- <react_native_1.Text style={{
405
- fontFamily: AppFonts_1.AppFonts.interBold,
406
- fontSize: 10,
407
- color: AppColors_1.AppColors.grayTextStrong,
408
- }}>
409
- {s.label} {s.value}
410
- </react_native_1.Text>
411
- </react_native_1.View>))}
412
- {slowestTime != null && (<react_native_1.View style={{
413
- marginLeft: 'auto',
414
- flexDirection: 'row',
415
- alignItems: 'center',
416
- gap: 4,
417
- }}>
418
- <react_native_1.Text style={{
419
- fontFamily: AppFonts_1.AppFonts.interRegular,
420
- fontSize: 10,
421
- color: AppColors_1.AppColors.grayTextWeak,
422
- }}>
423
- Range
424
- </react_native_1.Text>
425
- <react_native_1.Text style={{
426
- fontFamily: AppFonts_1.AppFonts.interBold,
427
- fontSize: 10,
428
- color: AppColors_1.AppColors.grayTextStrong,
429
- }}>
430
- {fastestTime}–{slowestTime}ms
431
- </react_native_1.Text>
432
- </react_native_1.View>)}
433
- </react_native_1.View>
434
- </TouchableScale_1.default>)}
435
-
436
- {insightsActiveSubTab === 'logs' && tabVisibility?.logs && (<TouchableScale_1.default style={styles_1.default.dashboardModuleCard} onPress={() => switchActiveTab('logs')}>
437
- <react_native_1.View style={styles_1.default.dashboardModuleHeader}>
438
- <react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
439
- <NetworkIcons_1.TerminalIcon color="#0D9488" size={18}/>
440
- <react_native_1.Text style={styles_1.default.dashboardModuleTitle}>Console Logs</react_native_1.Text>
441
- </react_native_1.View>
442
- <react_native_1.Text style={styles_1.default.dashboardModuleGoText}>View Details →</react_native_1.Text>
443
- </react_native_1.View>
444
- <react_native_1.View style={styles_1.default.dashboardModuleGrid}>
445
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
446
- <react_native_1.Text style={styles_1.default.dashboardGridVal}>{logTotal}</react_native_1.Text>
447
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Total Logs</react_native_1.Text>
448
- </react_native_1.View>
449
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
450
- <react_native_1.Text style={[styles_1.default.dashboardGridVal, { color: '#0D9488' }]}>
451
- {logInfos}
452
- </react_native_1.Text>
453
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Info</react_native_1.Text>
454
- </react_native_1.View>
455
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
456
- <react_native_1.Text style={[
457
- styles_1.default.dashboardGridVal,
458
- logWarns > 0 && { color: AppColors_1.AppColors.warningIconGold },
459
- ]}>
460
- {logWarns}
461
- </react_native_1.Text>
462
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Warnings</react_native_1.Text>
463
- </react_native_1.View>
464
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
465
- <react_native_1.Text style={[
466
- styles_1.default.dashboardGridVal,
467
- logErrors > 0 && { color: AppColors_1.AppColors.errorColor },
468
- ]}>
469
- {logErrors}
470
- </react_native_1.Text>
471
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Errors</react_native_1.Text>
472
- </react_native_1.View>
473
- </react_native_1.View>
474
- </TouchableScale_1.default>)}
475
-
476
- {insightsActiveSubTab === 'analytics' && tabVisibility?.analytics && (<TouchableScale_1.default style={styles_1.default.dashboardModuleCard} onPress={() => switchActiveTab('analytics')}>
477
- <react_native_1.View style={styles_1.default.dashboardModuleHeader}>
478
- <react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
479
- <NetworkIcons_1.AnalyticsIcon color="#EA580C" size={18}/>
480
- <react_native_1.Text style={styles_1.default.dashboardModuleTitle}>
481
- Analytics Events
482
- </react_native_1.Text>
483
- </react_native_1.View>
484
- <react_native_1.Text style={styles_1.default.dashboardModuleGoText}>View Details →</react_native_1.Text>
485
- </react_native_1.View>
486
- <react_native_1.View style={styles_1.default.dashboardModuleGrid}>
487
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
488
- <react_native_1.Text style={styles_1.default.dashboardGridVal}>{analyticsTotal}</react_native_1.Text>
489
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Total Events</react_native_1.Text>
490
- </react_native_1.View>
491
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
492
- <react_native_1.Text style={[styles_1.default.dashboardGridVal, { color: '#EA580C' }]}>
493
- {uniqueEvents}
494
- </react_native_1.Text>
495
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Unique Names</react_native_1.Text>
496
- </react_native_1.View>
497
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
498
- <react_native_1.Text style={styles_1.default.dashboardGridVal}>{screenViews}</react_native_1.Text>
499
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Screen Views</react_native_1.Text>
500
- </react_native_1.View>
501
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
502
- <react_native_1.Text style={styles_1.default.dashboardGridVal}>
503
- {analyticsTotal > 0
504
- ? Math.round(analyticsTotal / Math.max(1, logs.length / 5))
505
- : 0}
506
- </react_native_1.Text>
507
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Events Ratio</react_native_1.Text>
508
- </react_native_1.View>
509
- </react_native_1.View>
510
- </TouchableScale_1.default>)}
511
-
512
- {insightsActiveSubTab === 'webview' && tabVisibility?.webview && (<TouchableScale_1.default style={styles_1.default.dashboardModuleCard} onPress={() => switchActiveTab('webview')}>
513
- <react_native_1.View style={styles_1.default.dashboardModuleHeader}>
514
- <react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
515
- <NetworkIcons_1.GlobeIcon color="#2563EB" size={18}/>
516
- <react_native_1.Text style={styles_1.default.dashboardModuleTitle}>
517
- WebView Captures
518
- </react_native_1.Text>
519
- </react_native_1.View>
520
- <react_native_1.Text style={styles_1.default.dashboardModuleGoText}>View Details →</react_native_1.Text>
521
- </react_native_1.View>
522
- <react_native_1.View style={styles_1.default.dashboardModuleGrid}>
523
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
524
- <react_native_1.Text style={styles_1.default.dashboardGridVal}>{webviewTotal}</react_native_1.Text>
525
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>History Size</react_native_1.Text>
526
- </react_native_1.View>
527
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
528
- <react_native_1.Text style={[styles_1.default.dashboardGridVal, { color: '#16A34A' }]}>
529
- Active
530
- </react_native_1.Text>
531
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Status</react_native_1.Text>
532
- </react_native_1.View>
533
- <react_native_1.View style={styles_1.default.dashboardGridItem}>
534
- <react_native_1.Text numberOfLines={1} style={styles_1.default.dashboardGridVal}>
535
- {webviewTotal > 0
536
- ? `${webViewNavHistory[0]?.title?.substring(0, 10) ?? ''}...`
537
- : '—'}
538
- </react_native_1.Text>
539
- <react_native_1.Text style={styles_1.default.dashboardGridLbl}>Last URL</react_native_1.Text>
540
- </react_native_1.View>
541
- </react_native_1.View>
542
- </TouchableScale_1.default>)}
543
-
544
- {insightsActiveSubTab === 'redux' && tabVisibility?.redux && (<TouchableScale_1.default style={styles_1.default.dashboardModuleCard} onPress={() => switchActiveTab('redux')}>
545
- <react_native_1.View style={styles_1.default.dashboardModuleHeader}>
546
- <react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
547
- <NetworkIcons_1.TerminalIcon color={AppColors_1.AppColors.purple} size={18}/>
548
- <react_native_1.Text style={styles_1.default.dashboardModuleTitle}>
549
- Redux Store State
550
- </react_native_1.Text>
551
- </react_native_1.View>
552
- <react_native_1.Text style={styles_1.default.dashboardModuleGoText}>View Details →</react_native_1.Text>
553
- </react_native_1.View>
554
- {reduxState ? (<react_native_1.View style={{ paddingHorizontal: 12, paddingBottom: 12, gap: 6 }}>
555
- <react_native_1.View style={{
556
- flexDirection: 'row',
557
- justifyContent: 'space-between',
558
- marginBottom: 4,
559
- }}>
560
- <react_native_1.Text style={{
561
- fontFamily: AppFonts_1.AppFonts.interBold,
562
- fontSize: 10,
563
- color: AppColors_1.AppColors.grayTextWeak,
564
- letterSpacing: 0.5,
565
- }}>
566
- REDUCER NAME
567
- </react_native_1.Text>
568
- <react_native_1.Text style={{
569
- fontFamily: AppFonts_1.AppFonts.interBold,
570
- fontSize: 10,
571
- color: AppColors_1.AppColors.grayTextWeak,
572
- letterSpacing: 0.5,
573
- }}>
574
- SIZE / FIELDS
575
- </react_native_1.Text>
576
- </react_native_1.View>
577
- {Object.keys(reduxState).map(key => {
578
- const val = reduxState[key];
579
- const fieldsCount = typeof val === 'object' && val !== null
580
- ? Object.keys(val).length
581
- : 0;
582
- const sizeStr = (0, helpers_1.getSize)(val);
583
- return (<react_native_1.View key={key} style={{
584
- flexDirection: 'row',
585
- justifyContent: 'space-between',
586
- alignItems: 'center',
587
- paddingVertical: 2,
588
- }}>
589
- <react_native_1.Text style={{
590
- fontFamily: AppFonts_1.AppFonts.interMedium,
591
- fontSize: 12,
592
- color: AppColors_1.AppColors.grayTextStrong,
593
- }}>
594
- {key}
595
- </react_native_1.Text>
596
- <react_native_1.Text style={{
597
- fontFamily: AppFonts_1.AppFonts.interRegular,
598
- fontSize: 11,
599
- color: AppColors_1.AppColors.grayTextWeak,
600
- }}>
601
- {sizeStr} ({fieldsCount} fields)
602
- </react_native_1.Text>
603
- </react_native_1.View>);
604
- })}
605
- </react_native_1.View>) : (<react_native_1.View style={{ padding: 12, alignItems: 'center' }}>
606
- <react_native_1.Text style={{
607
- fontFamily: AppFonts_1.AppFonts.interRegular,
608
- fontSize: 12,
609
- color: AppColors_1.AppColors.grayTextWeak,
610
- }}>
611
- No connected Redux store.
612
- </react_native_1.Text>
613
- </react_native_1.View>)}
614
- </TouchableScale_1.default>)}
615
- </>);
616
- })()}
617
- </react_native_1.View>);
618
- };
619
- exports.default = InsightsDashboard;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const WebViewTab: () => React.JSX.Element;
3
- export default WebViewTab;