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,348 +0,0 @@
1
- import React from 'react';
2
- import { FlatList, Pressable, ScrollView, Text, TextInput, View, } from 'react-native';
3
- import { useTranslation } from 'react-i18next';
4
- import TouchableScale from './TouchableScale';
5
- import { ConsoleLogCard } from './ConsoleLogCard';
6
- import EmptyState from './EmptyState';
7
- import AnimatedEntrance from './AnimatedEntrance';
8
- import { SearchIcon, ClearIcon, SortArrowIcon, WipeIcon, LayersIcon, UserIcon, AnalyticsIcon, InfoCircleIcon, WarningTriangleIcon, ErrorCircleIcon, } from './NetworkIcons';
9
- import { AppColors } from '../styles/AppColors';
10
- import { AppFonts } from '../styles/AppFonts';
11
- import styles from '../styles';
12
- export const ConsoleLogsTabView = React.memo(({ logSearch, onSetLogSearch, logSortOrder, onToggleSortOrder, onDeleteLogs, logFilters, onSetLogFilters, logCounts, visibleConsoleLogs, filteredConsoleLogs, onSelectConsoleLog, }) => {
13
- const { t } = useTranslation();
14
- const renderItem = React.useCallback(({ item, index }) => (<AnimatedEntrance index={index} distance={8}>
15
- <ConsoleLogCard item={item} searchStr={logSearch} onPress={() => onSelectConsoleLog(item)}/>
16
- </AnimatedEntrance>), [logSearch, onSelectConsoleLog]);
17
- const keyExtractor = React.useCallback((item) => String(item.id), []);
18
- return (<View style={{ flex: 1 }}>
19
- <View style={{
20
- backgroundColor: AppColors.white,
21
- borderBottomWidth: 1,
22
- borderBottomColor: AppColors.dividerColor,
23
- paddingBottom: 6,
24
- }}>
25
- <View style={[
26
- styles.toolbarRow,
27
- { marginTop: 12, marginBottom: 8 },
28
- ]}>
29
- <View style={styles.searchContainer}>
30
- <SearchIcon color={AppColors.grayTextWeak} size={16}/>
31
- <TextInput placeholder={t('search.logs_placeholder')} placeholderTextColor={AppColors.grayTextWeak} value={logSearch} onChangeText={onSetLogSearch} style={styles.searchInput} autoCorrect={false} autoCapitalize="none"/>
32
- {logSearch.length > 0 && (<Pressable onPress={() => onSetLogSearch('')} hitSlop={10} style={styles.clearBtn}>
33
- <ClearIcon color={AppColors.grayTextWeak} size={14}/>
34
- </Pressable>)}
35
- </View>
36
-
37
- <View style={styles.toolbarRight}>
38
- <TouchableScale style={styles.toolbarBtn} onPress={onToggleSortOrder} hitSlop={10}>
39
- <SortArrowIcon color={AppColors.grayTextStrong} size={18} direction={logSortOrder === 'newest' ? 'down' : 'up'}/>
40
- </TouchableScale>
41
- <TouchableScale style={[
42
- styles.toolbarBtn,
43
- {
44
- borderColor: 'rgba(255,46,87,0.22)',
45
- backgroundColor: 'rgba(255,46,87,0.06)',
46
- },
47
- ]} onPress={onDeleteLogs} hitSlop={6}>
48
- <WipeIcon color={AppColors.errorColor} size={15}/>
49
- </TouchableScale>
50
- </View>
51
- </View>
52
-
53
- <ScrollView horizontal showsHorizontalScrollIndicator={false} style={{ marginVertical: 4, maxHeight: 46 }} contentContainerStyle={{
54
- paddingHorizontal: 16,
55
- paddingBottom: 4,
56
- flexDirection: 'row',
57
- alignItems: 'center',
58
- gap: 8,
59
- }}>
60
- {(() => {
61
- const active = logFilters.has('all');
62
- return (<TouchableScale onPress={() => onSetLogFilters(new Set(['all']))}>
63
- <View style={[
64
- styles.statusFilterChip,
65
- active && {
66
- borderColor: AppColors.purpleShade700,
67
- backgroundColor: AppColors.purpleShade50,
68
- },
69
- ]}>
70
- <View style={{
71
- flexDirection: 'row',
72
- alignItems: 'center',
73
- gap: 5,
74
- }}>
75
- <LayersIcon size={12} color={active
76
- ? AppColors.purpleShade700
77
- : AppColors.grayTextStrong}/>
78
- <Text numberOfLines={1} style={[
79
- styles.statusFilterText,
80
- active && {
81
- color: AppColors.purpleShade700,
82
- fontFamily: AppFonts.interBold,
83
- },
84
- ]}>
85
- {t('filters.all')} ({logCounts.all})
86
- </Text>
87
- </View>
88
- </View>
89
- </TouchableScale>);
90
- })()}
91
-
92
- {(() => {
93
- const active = logFilters.has('user-log');
94
- return (<TouchableScale onPress={() => {
95
- onSetLogFilters(prev => {
96
- const next = new Set(prev);
97
- next.delete('all');
98
- next.has('user-log')
99
- ? next.delete('user-log')
100
- : next.add('user-log');
101
- if (next.size === 0)
102
- next.add('all');
103
- return next;
104
- });
105
- }}>
106
- <View style={[
107
- styles.statusFilterChip,
108
- active && {
109
- borderColor: AppColors.slateSubtle,
110
- backgroundColor: AppColors.slateLight,
111
- },
112
- ]}>
113
- <View style={{
114
- flexDirection: 'row',
115
- alignItems: 'center',
116
- gap: 5,
117
- }}>
118
- <UserIcon size={12} color={active ? AppColors.slateText : AppColors.grayTextStrong}/>
119
- <Text numberOfLines={1} style={[
120
- styles.statusFilterText,
121
- active && {
122
- color: AppColors.slateText,
123
- fontFamily: AppFonts.interBold,
124
- },
125
- ]}>
126
- {t('filters.user_log')} ({logCounts['user-log']})
127
- </Text>
128
- </View>
129
- </View>
130
- </TouchableScale>);
131
- })()}
132
-
133
- {(() => {
134
- const active = logFilters.has('info');
135
- return (<TouchableScale onPress={() => {
136
- onSetLogFilters(prev => {
137
- const next = new Set(prev);
138
- next.delete('all');
139
- next.has('info')
140
- ? next.delete('info')
141
- : next.add('info');
142
- if (next.size === 0)
143
- next.add('all');
144
- return next;
145
- });
146
- }}>
147
- <View style={[
148
- styles.statusFilterChip,
149
- active && {
150
- borderColor: AppColors.skyBlue,
151
- backgroundColor: `${AppColors.skyBlue}15`,
152
- },
153
- ]}>
154
- <View style={{
155
- flexDirection: 'row',
156
- alignItems: 'center',
157
- gap: 5,
158
- }}>
159
- <InfoCircleIcon size={12} color={active
160
- ? AppColors.skyBlue
161
- : AppColors.grayTextStrong}/>
162
- <Text numberOfLines={1} style={[
163
- styles.statusFilterText,
164
- active && {
165
- color: AppColors.skyBlue,
166
- fontFamily: AppFonts.interBold,
167
- },
168
- ]}>
169
- {t('filters.info')} ({logCounts.info})
170
- </Text>
171
- </View>
172
- </View>
173
- </TouchableScale>);
174
- })()}
175
-
176
- {(() => {
177
- const active = logFilters.has('warn');
178
- return (<TouchableScale onPress={() => {
179
- onSetLogFilters(prev => {
180
- const next = new Set(prev);
181
- next.delete('all');
182
- next.has('warn')
183
- ? next.delete('warn')
184
- : next.add('warn');
185
- if (next.size === 0)
186
- next.add('all');
187
- return next;
188
- });
189
- }}>
190
- <View style={[
191
- styles.statusFilterChip,
192
- active && {
193
- borderColor: AppColors.lightOrange,
194
- backgroundColor: `${AppColors.lightOrange}15`,
195
- },
196
- ]}>
197
- <View style={{
198
- flexDirection: 'row',
199
- alignItems: 'center',
200
- gap: 5,
201
- }}>
202
- <WarningTriangleIcon size={12} color={active
203
- ? AppColors.darkOrange
204
- : AppColors.grayTextStrong}/>
205
- <Text numberOfLines={1} style={[
206
- styles.statusFilterText,
207
- active && {
208
- color: AppColors.darkOrange,
209
- fontFamily: AppFonts.interBold,
210
- },
211
- ]}>
212
- {t('filters.warn')} ({logCounts.warn})
213
- </Text>
214
- </View>
215
- </View>
216
- </TouchableScale>);
217
- })()}
218
-
219
- {(() => {
220
- const active = logFilters.has('error');
221
- return (<TouchableScale onPress={() => {
222
- onSetLogFilters(prev => {
223
- const next = new Set(prev);
224
- next.delete('all');
225
- next.has('error')
226
- ? next.delete('error')
227
- : next.add('error');
228
- if (next.size === 0)
229
- next.add('all');
230
- return next;
231
- });
232
- }}>
233
- <View style={[
234
- styles.statusFilterChip,
235
- active && {
236
- borderColor: AppColors.errorColor,
237
- backgroundColor: `${AppColors.errorColor}15`,
238
- },
239
- ]}>
240
- <View style={{
241
- flexDirection: 'row',
242
- alignItems: 'center',
243
- gap: 5,
244
- }}>
245
- <ErrorCircleIcon size={12} color={active
246
- ? AppColors.errorColor
247
- : AppColors.grayTextStrong}/>
248
- <Text numberOfLines={1} style={[
249
- styles.statusFilterText,
250
- active && {
251
- color: AppColors.errorColor,
252
- fontFamily: AppFonts.interBold,
253
- },
254
- ]}>
255
- {t('filters.error')} ({logCounts.error})
256
- </Text>
257
- </View>
258
- </View>
259
- </TouchableScale>);
260
- })()}
261
-
262
- {(() => {
263
- const active = logFilters.has('analytics');
264
- return (<TouchableScale onPress={() => {
265
- onSetLogFilters(prev => {
266
- const next = new Set(prev);
267
- next.delete('all');
268
- next.has('analytics')
269
- ? next.delete('analytics')
270
- : next.add('analytics');
271
- if (next.size === 0)
272
- next.add('all');
273
- return next;
274
- });
275
- }}>
276
- <View style={[
277
- styles.statusFilterChip,
278
- active && {
279
- borderColor: AppColors.purple,
280
- backgroundColor: `${AppColors.purple}15`,
281
- },
282
- ]}>
283
- <View style={{
284
- flexDirection: 'row',
285
- alignItems: 'center',
286
- gap: 5,
287
- }}>
288
- <AnalyticsIcon size={12} color={active
289
- ? AppColors.purple
290
- : AppColors.grayTextStrong}/>
291
- <Text numberOfLines={1} style={[
292
- styles.statusFilterText,
293
- active && {
294
- color: AppColors.purple,
295
- fontFamily: AppFonts.interBold,
296
- },
297
- ]}>
298
- {t('filters.analytics')} ({logCounts.analytics})
299
- </Text>
300
- </View>
301
- </View>
302
- </TouchableScale>);
303
- })()}
304
- </ScrollView>
305
- </View>
306
-
307
- <FlatList data={filteredConsoleLogs} ListHeaderComponent={(() => {
308
- const total = visibleConsoleLogs.length;
309
- const filtered = filteredConsoleLogs.length;
310
- const isAllSelected = logFilters.has('all') ||
311
- !Array.from(logFilters).some(f => f !== 'all');
312
- if (isAllSelected) {
313
- return (<Text style={[
314
- styles.resultCount,
315
- { marginBottom: 4, marginTop: 12 },
316
- ]}>
317
- {t('filters.showing_logs', { filtered, total })}
318
- </Text>);
319
- }
320
- else {
321
- const activeFilterNames = Array.from(logFilters)
322
- .filter(f => f !== 'all')
323
- .map(f => {
324
- if (f === 'user-log')
325
- return t('filters.user_log');
326
- if (f === 'analytics')
327
- return t('filters.analytics');
328
- return (f.charAt(0).toUpperCase() +
329
- f.slice(1));
330
- });
331
- return (<Text style={[
332
- styles.resultCount,
333
- { marginBottom: 4, marginTop: 12 },
334
- ]}>
335
- {t('filters.filtering_logs', {
336
- filters: activeFilterNames.join(', '),
337
- filtered,
338
- total,
339
- })}
340
- </Text>);
341
- }
342
- })()} renderItem={renderItem} keyExtractor={keyExtractor} initialNumToRender={15} maxToRenderPerBatch={15} windowSize={7} removeClippedSubviews={true} ListEmptyComponent={<EmptyState isSearch={logSearch.length > 0 || logFilters.size > 0}/>} contentContainerStyle={[
343
- styles.listContent,
344
- filteredConsoleLogs.length === 0 && { flexGrow: 1 },
345
- ]} keyboardShouldPersistTaps="handled"/>
346
- </View>);
347
- });
348
- export default ConsoleLogsTabView;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { Animated, PanResponder } from 'react-native';
3
- interface FloatingBubbleProps {
4
- pan: Animated.ValueXY;
5
- panResponder: ReturnType<typeof PanResponder.create>;
6
- fabScaleAnim: Animated.Value;
7
- fabRotateAnim: Animated.Value;
8
- fabShineAnim: Animated.Value;
9
- unreadPulseAnim: Animated.Value;
10
- hasUnread: boolean;
11
- onPress: () => void;
12
- }
13
- export declare const FloatingBubble: React.FC<FloatingBubbleProps>;
14
- export default FloatingBubble;
@@ -1,68 +0,0 @@
1
- import React from 'react';
2
- import { Animated, View } from 'react-native';
3
- import LinearGradient from 'react-native-linear-gradient';
4
- import TouchableScale from './TouchableScale';
5
- import { BrandCircleIcon } from './BrandCircleIcon';
6
- import styles from '../styles';
7
- import { AppColors } from '../styles/AppColors';
8
- export const FloatingBubble = ({ pan, panResponder, fabScaleAnim, fabRotateAnim, fabShineAnim, unreadPulseAnim, hasUnread, onPress, }) => {
9
- return (<Animated.View style={[
10
- styles.fabContainer,
11
- {
12
- transform: [
13
- { translateX: pan.x },
14
- { translateY: pan.y },
15
- { scale: fabScaleAnim },
16
- ],
17
- },
18
- ]} {...panResponder.panHandlers}>
19
- <TouchableScale style={styles.fabGradientTouchable} onPress={onPress} activeScale={0.88}>
20
- <LinearGradient colors={[
21
- AppColors.gradientPurpleStart,
22
- AppColors.gradientPurpleMid,
23
- AppColors.gradientPurpleEnd,
24
- ]} start={{ x: 0, y: 0 }} end={{ x: 1, y: 1 }} style={styles.fabGradientInner}>
25
- <Animated.View style={{
26
- transform: [
27
- {
28
- rotate: fabRotateAnim.interpolate({
29
- inputRange: [0, 1],
30
- outputRange: ['0deg', '360deg'],
31
- }),
32
- },
33
- ],
34
- }}>
35
- <BrandCircleIcon size={38}/>
36
- </Animated.View>
37
- </LinearGradient>
38
-
39
- <View pointerEvents="none" style={styles.fabShineClip}>
40
- <Animated.View style={[
41
- styles.fabShineStreak,
42
- {
43
- transform: [
44
- {
45
- translateX: fabShineAnim.interpolate({
46
- inputRange: [0, 1],
47
- outputRange: [-48, 96],
48
- }),
49
- },
50
- { rotate: '25deg' },
51
- ],
52
- },
53
- ]}>
54
- <LinearGradient colors={[
55
- 'rgba(255,255,255,0)',
56
- 'rgba(255,255,255,0.55)',
57
- 'rgba(255,255,255,0)',
58
- ]} start={{ x: 0, y: 0.5 }} end={{ x: 1, y: 0.5 }} style={{ flex: 1 }}/>
59
- </Animated.View>
60
- </View>
61
- {hasUnread && (<Animated.View style={[
62
- styles.fabGreenDot,
63
- { transform: [{ scale: unreadPulseAnim }] },
64
- ]}/>)}
65
- </TouchableScale>
66
- </Animated.View>);
67
- };
68
- export default FloatingBubble;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const InsightsDashboard: () => React.JSX.Element;
3
- export default InsightsDashboard;