react-native-inapp-inspector 1.0.0

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/LICENSE +21 -0
  2. package/README.md +97 -0
  3. package/dist/commonjs/components/AnalyticsDetail.d.ts +6 -0
  4. package/dist/commonjs/components/AnalyticsDetail.js +558 -0
  5. package/dist/commonjs/components/AnalyticsEventCard.d.ts +18 -0
  6. package/dist/commonjs/components/AnalyticsEventCard.js +327 -0
  7. package/dist/commonjs/components/AnalyticsGraph.d.ts +8 -0
  8. package/dist/commonjs/components/AnalyticsGraph.js +416 -0
  9. package/dist/commonjs/components/CodeSnippet.d.ts +8 -0
  10. package/dist/commonjs/components/CodeSnippet.js +427 -0
  11. package/dist/commonjs/components/ConsoleLogCard.d.ts +10 -0
  12. package/dist/commonjs/components/ConsoleLogCard.js +401 -0
  13. package/dist/commonjs/components/CopyButton.d.ts +4 -0
  14. package/dist/commonjs/components/CopyButton.js +69 -0
  15. package/dist/commonjs/components/DiffViewer.d.ts +7 -0
  16. package/dist/commonjs/components/DiffViewer.js +86 -0
  17. package/dist/commonjs/components/DomainHeader.d.ts +18 -0
  18. package/dist/commonjs/components/DomainHeader.js +136 -0
  19. package/dist/commonjs/components/EmptyState.d.ts +5 -0
  20. package/dist/commonjs/components/EmptyState.js +40 -0
  21. package/dist/commonjs/components/HeadersSection.d.ts +4 -0
  22. package/dist/commonjs/components/HeadersSection.js +155 -0
  23. package/dist/commonjs/components/HighlightText.d.ts +3 -0
  24. package/dist/commonjs/components/HighlightText.js +57 -0
  25. package/dist/commonjs/components/JsonViewer.d.ts +7 -0
  26. package/dist/commonjs/components/JsonViewer.js +19 -0
  27. package/dist/commonjs/components/LogCard.d.ts +4 -0
  28. package/dist/commonjs/components/LogCard.js +179 -0
  29. package/dist/commonjs/components/MetaAccordion.d.ts +4 -0
  30. package/dist/commonjs/components/MetaAccordion.js +113 -0
  31. package/dist/commonjs/components/MiniBarChart.d.ts +7 -0
  32. package/dist/commonjs/components/MiniBarChart.js +56 -0
  33. package/dist/commonjs/components/MiniLineChart.d.ts +6 -0
  34. package/dist/commonjs/components/MiniLineChart.js +58 -0
  35. package/dist/commonjs/components/NetworkIcons.d.ts +31 -0
  36. package/dist/commonjs/components/NetworkIcons.js +245 -0
  37. package/dist/commonjs/components/SectionHeader.d.ts +4 -0
  38. package/dist/commonjs/components/SectionHeader.js +87 -0
  39. package/dist/commonjs/components/SourcePageCard.d.ts +4 -0
  40. package/dist/commonjs/components/SourcePageCard.js +132 -0
  41. package/dist/commonjs/components/TouchableScale.d.ts +9 -0
  42. package/dist/commonjs/components/TouchableScale.js +44 -0
  43. package/dist/commonjs/components/TreeNode.d.ts +4 -0
  44. package/dist/commonjs/components/TreeNode.js +140 -0
  45. package/dist/commonjs/constants/index.d.ts +7 -0
  46. package/dist/commonjs/constants/index.js +35 -0
  47. package/dist/commonjs/customHooks/analyticsLogger.d.ts +21 -0
  48. package/dist/commonjs/customHooks/analyticsLogger.js +160 -0
  49. package/dist/commonjs/customHooks/consoleLogger.d.ts +5 -0
  50. package/dist/commonjs/customHooks/consoleLogger.js +141 -0
  51. package/dist/commonjs/customHooks/logFilters.d.ts +5 -0
  52. package/dist/commonjs/customHooks/logFilters.js +34 -0
  53. package/dist/commonjs/customHooks/networkLogger.d.ts +20 -0
  54. package/dist/commonjs/customHooks/networkLogger.js +272 -0
  55. package/dist/commonjs/customHooks/useAccordion.d.ts +17 -0
  56. package/dist/commonjs/customHooks/useAccordion.js +48 -0
  57. package/dist/commonjs/customHooks/webViewLogger.d.ts +22 -0
  58. package/dist/commonjs/customHooks/webViewLogger.js +412 -0
  59. package/dist/commonjs/helpers/index.d.ts +20 -0
  60. package/dist/commonjs/helpers/index.js +229 -0
  61. package/dist/commonjs/index.d.ts +7 -0
  62. package/dist/commonjs/index.js +2668 -0
  63. package/dist/commonjs/styles/AppColors.d.ts +27 -0
  64. package/dist/commonjs/styles/AppColors.js +30 -0
  65. package/dist/commonjs/styles/AppFonts.d.ts +7 -0
  66. package/dist/commonjs/styles/AppFonts.js +10 -0
  67. package/dist/commonjs/styles/index.d.ts +1488 -0
  68. package/dist/commonjs/styles/index.js +1357 -0
  69. package/dist/commonjs/types/index.d.ts +127 -0
  70. package/dist/commonjs/types/index.js +2 -0
  71. package/dist/esm/components/AnalyticsDetail.d.ts +6 -0
  72. package/dist/esm/components/AnalyticsDetail.js +520 -0
  73. package/dist/esm/components/AnalyticsEventCard.d.ts +18 -0
  74. package/dist/esm/components/AnalyticsEventCard.js +288 -0
  75. package/dist/esm/components/AnalyticsGraph.d.ts +8 -0
  76. package/dist/esm/components/AnalyticsGraph.js +378 -0
  77. package/dist/esm/components/CodeSnippet.d.ts +8 -0
  78. package/dist/esm/components/CodeSnippet.js +392 -0
  79. package/dist/esm/components/ConsoleLogCard.d.ts +10 -0
  80. package/dist/esm/components/ConsoleLogCard.js +362 -0
  81. package/dist/esm/components/CopyButton.d.ts +4 -0
  82. package/dist/esm/components/CopyButton.js +31 -0
  83. package/dist/esm/components/DiffViewer.d.ts +7 -0
  84. package/dist/esm/components/DiffViewer.js +48 -0
  85. package/dist/esm/components/DomainHeader.d.ts +18 -0
  86. package/dist/esm/components/DomainHeader.js +98 -0
  87. package/dist/esm/components/EmptyState.d.ts +5 -0
  88. package/dist/esm/components/EmptyState.js +35 -0
  89. package/dist/esm/components/HeadersSection.d.ts +4 -0
  90. package/dist/esm/components/HeadersSection.js +117 -0
  91. package/dist/esm/components/HighlightText.d.ts +3 -0
  92. package/dist/esm/components/HighlightText.js +52 -0
  93. package/dist/esm/components/JsonViewer.d.ts +7 -0
  94. package/dist/esm/components/JsonViewer.js +14 -0
  95. package/dist/esm/components/LogCard.d.ts +4 -0
  96. package/dist/esm/components/LogCard.js +141 -0
  97. package/dist/esm/components/MetaAccordion.d.ts +4 -0
  98. package/dist/esm/components/MetaAccordion.js +108 -0
  99. package/dist/esm/components/MiniBarChart.d.ts +7 -0
  100. package/dist/esm/components/MiniBarChart.js +18 -0
  101. package/dist/esm/components/MiniLineChart.d.ts +6 -0
  102. package/dist/esm/components/MiniLineChart.js +20 -0
  103. package/dist/esm/components/NetworkIcons.d.ts +31 -0
  104. package/dist/esm/components/NetworkIcons.js +176 -0
  105. package/dist/esm/components/SectionHeader.d.ts +4 -0
  106. package/dist/esm/components/SectionHeader.js +49 -0
  107. package/dist/esm/components/SourcePageCard.d.ts +4 -0
  108. package/dist/esm/components/SourcePageCard.js +94 -0
  109. package/dist/esm/components/TouchableScale.d.ts +9 -0
  110. package/dist/esm/components/TouchableScale.js +9 -0
  111. package/dist/esm/components/TreeNode.d.ts +4 -0
  112. package/dist/esm/components/TreeNode.js +102 -0
  113. package/dist/esm/constants/index.d.ts +7 -0
  114. package/dist/esm/constants/index.js +32 -0
  115. package/dist/esm/customHooks/analyticsLogger.d.ts +21 -0
  116. package/dist/esm/customHooks/analyticsLogger.js +152 -0
  117. package/dist/esm/customHooks/consoleLogger.d.ts +5 -0
  118. package/dist/esm/customHooks/consoleLogger.js +134 -0
  119. package/dist/esm/customHooks/logFilters.d.ts +5 -0
  120. package/dist/esm/customHooks/logFilters.js +31 -0
  121. package/dist/esm/customHooks/networkLogger.d.ts +20 -0
  122. package/dist/esm/customHooks/networkLogger.js +264 -0
  123. package/dist/esm/customHooks/useAccordion.d.ts +17 -0
  124. package/dist/esm/customHooks/useAccordion.js +46 -0
  125. package/dist/esm/customHooks/webViewLogger.d.ts +22 -0
  126. package/dist/esm/customHooks/webViewLogger.js +365 -0
  127. package/dist/esm/helpers/index.d.ts +20 -0
  128. package/dist/esm/helpers/index.js +207 -0
  129. package/dist/esm/index.d.ts +7 -0
  130. package/dist/esm/index.js +2611 -0
  131. package/dist/esm/styles/AppColors.d.ts +27 -0
  132. package/dist/esm/styles/AppColors.js +27 -0
  133. package/dist/esm/styles/AppFonts.d.ts +7 -0
  134. package/dist/esm/styles/AppFonts.js +7 -0
  135. package/dist/esm/styles/index.d.ts +1488 -0
  136. package/dist/esm/styles/index.js +1355 -0
  137. package/dist/esm/types/index.d.ts +127 -0
  138. package/dist/esm/types/index.js +1 -0
  139. package/fonts/Inter/Inter.ttc +0 -0
  140. package/fonts/Inter/InterVariable-Italic.ttf +0 -0
  141. package/fonts/Inter/InterVariable.ttf +0 -0
  142. package/fonts/Inter/LICENSE.txt +92 -0
  143. package/fonts/Inter/extras/otf/Inter-Black.otf +0 -0
  144. package/fonts/Inter/extras/otf/Inter-BlackItalic.otf +0 -0
  145. package/fonts/Inter/extras/otf/Inter-Bold.otf +0 -0
  146. package/fonts/Inter/extras/otf/Inter-BoldItalic.otf +0 -0
  147. package/fonts/Inter/extras/otf/Inter-ExtraBold.otf +0 -0
  148. package/fonts/Inter/extras/otf/Inter-ExtraBoldItalic.otf +0 -0
  149. package/fonts/Inter/extras/otf/Inter-ExtraLight.otf +0 -0
  150. package/fonts/Inter/extras/otf/Inter-ExtraLightItalic.otf +0 -0
  151. package/fonts/Inter/extras/otf/Inter-Italic.otf +0 -0
  152. package/fonts/Inter/extras/otf/Inter-Light.otf +0 -0
  153. package/fonts/Inter/extras/otf/Inter-LightItalic.otf +0 -0
  154. package/fonts/Inter/extras/otf/Inter-Medium.otf +0 -0
  155. package/fonts/Inter/extras/otf/Inter-MediumItalic.otf +0 -0
  156. package/fonts/Inter/extras/otf/Inter-Regular.otf +0 -0
  157. package/fonts/Inter/extras/otf/Inter-SemiBold.otf +0 -0
  158. package/fonts/Inter/extras/otf/Inter-SemiBoldItalic.otf +0 -0
  159. package/fonts/Inter/extras/otf/Inter-Thin.otf +0 -0
  160. package/fonts/Inter/extras/otf/Inter-ThinItalic.otf +0 -0
  161. package/fonts/Inter/extras/otf/InterDisplay-Black.otf +0 -0
  162. package/fonts/Inter/extras/otf/InterDisplay-BlackItalic.otf +0 -0
  163. package/fonts/Inter/extras/otf/InterDisplay-Bold.otf +0 -0
  164. package/fonts/Inter/extras/otf/InterDisplay-BoldItalic.otf +0 -0
  165. package/fonts/Inter/extras/otf/InterDisplay-ExtraBold.otf +0 -0
  166. package/fonts/Inter/extras/otf/InterDisplay-ExtraBoldItalic.otf +0 -0
  167. package/fonts/Inter/extras/otf/InterDisplay-ExtraLight.otf +0 -0
  168. package/fonts/Inter/extras/otf/InterDisplay-ExtraLightItalic.otf +0 -0
  169. package/fonts/Inter/extras/otf/InterDisplay-Italic.otf +0 -0
  170. package/fonts/Inter/extras/otf/InterDisplay-Light.otf +0 -0
  171. package/fonts/Inter/extras/otf/InterDisplay-LightItalic.otf +0 -0
  172. package/fonts/Inter/extras/otf/InterDisplay-Medium.otf +0 -0
  173. package/fonts/Inter/extras/otf/InterDisplay-MediumItalic.otf +0 -0
  174. package/fonts/Inter/extras/otf/InterDisplay-Regular.otf +0 -0
  175. package/fonts/Inter/extras/otf/InterDisplay-SemiBold.otf +0 -0
  176. package/fonts/Inter/extras/otf/InterDisplay-SemiBoldItalic.otf +0 -0
  177. package/fonts/Inter/extras/otf/InterDisplay-Thin.otf +0 -0
  178. package/fonts/Inter/extras/otf/InterDisplay-ThinItalic.otf +0 -0
  179. package/fonts/Inter/extras/ttf/Inter-Black.ttf +0 -0
  180. package/fonts/Inter/extras/ttf/Inter-BlackItalic.ttf +0 -0
  181. package/fonts/Inter/extras/ttf/Inter-Bold.ttf +0 -0
  182. package/fonts/Inter/extras/ttf/Inter-BoldItalic.ttf +0 -0
  183. package/fonts/Inter/extras/ttf/Inter-ExtraBold.ttf +0 -0
  184. package/fonts/Inter/extras/ttf/Inter-ExtraBoldItalic.ttf +0 -0
  185. package/fonts/Inter/extras/ttf/Inter-ExtraLight.ttf +0 -0
  186. package/fonts/Inter/extras/ttf/Inter-ExtraLightItalic.ttf +0 -0
  187. package/fonts/Inter/extras/ttf/Inter-Italic.ttf +0 -0
  188. package/fonts/Inter/extras/ttf/Inter-Light.ttf +0 -0
  189. package/fonts/Inter/extras/ttf/Inter-LightItalic.ttf +0 -0
  190. package/fonts/Inter/extras/ttf/Inter-Medium.ttf +0 -0
  191. package/fonts/Inter/extras/ttf/Inter-MediumItalic.ttf +0 -0
  192. package/fonts/Inter/extras/ttf/Inter-Regular.ttf +0 -0
  193. package/fonts/Inter/extras/ttf/Inter-SemiBold.ttf +0 -0
  194. package/fonts/Inter/extras/ttf/Inter-SemiBoldItalic.ttf +0 -0
  195. package/fonts/Inter/extras/ttf/Inter-Thin.ttf +0 -0
  196. package/fonts/Inter/extras/ttf/Inter-ThinItalic.ttf +0 -0
  197. package/fonts/Inter/extras/ttf/InterDisplay-Black.ttf +0 -0
  198. package/fonts/Inter/extras/ttf/InterDisplay-BlackItalic.ttf +0 -0
  199. package/fonts/Inter/extras/ttf/InterDisplay-Bold.ttf +0 -0
  200. package/fonts/Inter/extras/ttf/InterDisplay-BoldItalic.ttf +0 -0
  201. package/fonts/Inter/extras/ttf/InterDisplay-ExtraBold.ttf +0 -0
  202. package/fonts/Inter/extras/ttf/InterDisplay-ExtraBoldItalic.ttf +0 -0
  203. package/fonts/Inter/extras/ttf/InterDisplay-ExtraLight.ttf +0 -0
  204. package/fonts/Inter/extras/ttf/InterDisplay-ExtraLightItalic.ttf +0 -0
  205. package/fonts/Inter/extras/ttf/InterDisplay-Italic.ttf +0 -0
  206. package/fonts/Inter/extras/ttf/InterDisplay-Light.ttf +0 -0
  207. package/fonts/Inter/extras/ttf/InterDisplay-LightItalic.ttf +0 -0
  208. package/fonts/Inter/extras/ttf/InterDisplay-Medium.ttf +0 -0
  209. package/fonts/Inter/extras/ttf/InterDisplay-MediumItalic.ttf +0 -0
  210. package/fonts/Inter/extras/ttf/InterDisplay-Regular.ttf +0 -0
  211. package/fonts/Inter/extras/ttf/InterDisplay-SemiBold.ttf +0 -0
  212. package/fonts/Inter/extras/ttf/InterDisplay-SemiBoldItalic.ttf +0 -0
  213. package/fonts/Inter/extras/ttf/InterDisplay-Thin.ttf +0 -0
  214. package/fonts/Inter/extras/ttf/InterDisplay-ThinItalic.ttf +0 -0
  215. package/fonts/Inter/extras/woff-hinted/Inter-Black.woff2 +0 -0
  216. package/fonts/Inter/extras/woff-hinted/Inter-BlackItalic.woff2 +0 -0
  217. package/fonts/Inter/extras/woff-hinted/Inter-Bold.woff2 +0 -0
  218. package/fonts/Inter/extras/woff-hinted/Inter-BoldItalic.woff2 +0 -0
  219. package/fonts/Inter/extras/woff-hinted/Inter-ExtraBold.woff2 +0 -0
  220. package/fonts/Inter/extras/woff-hinted/Inter-ExtraBoldItalic.woff2 +0 -0
  221. package/fonts/Inter/extras/woff-hinted/Inter-ExtraLight.woff2 +0 -0
  222. package/fonts/Inter/extras/woff-hinted/Inter-ExtraLightItalic.woff2 +0 -0
  223. package/fonts/Inter/extras/woff-hinted/Inter-Italic.woff2 +0 -0
  224. package/fonts/Inter/extras/woff-hinted/Inter-Light.woff2 +0 -0
  225. package/fonts/Inter/extras/woff-hinted/Inter-LightItalic.woff2 +0 -0
  226. package/fonts/Inter/extras/woff-hinted/Inter-Medium.woff2 +0 -0
  227. package/fonts/Inter/extras/woff-hinted/Inter-MediumItalic.woff2 +0 -0
  228. package/fonts/Inter/extras/woff-hinted/Inter-Regular.woff2 +0 -0
  229. package/fonts/Inter/extras/woff-hinted/Inter-SemiBold.woff2 +0 -0
  230. package/fonts/Inter/extras/woff-hinted/Inter-SemiBoldItalic.woff2 +0 -0
  231. package/fonts/Inter/extras/woff-hinted/Inter-Thin.woff2 +0 -0
  232. package/fonts/Inter/extras/woff-hinted/Inter-ThinItalic.woff2 +0 -0
  233. package/fonts/Inter/extras/woff-hinted/InterDisplay-Black.woff2 +0 -0
  234. package/fonts/Inter/extras/woff-hinted/InterDisplay-BlackItalic.woff2 +0 -0
  235. package/fonts/Inter/extras/woff-hinted/InterDisplay-Bold.woff2 +0 -0
  236. package/fonts/Inter/extras/woff-hinted/InterDisplay-BoldItalic.woff2 +0 -0
  237. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraBold.woff2 +0 -0
  238. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraBoldItalic.woff2 +0 -0
  239. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraLight.woff2 +0 -0
  240. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraLightItalic.woff2 +0 -0
  241. package/fonts/Inter/extras/woff-hinted/InterDisplay-Italic.woff2 +0 -0
  242. package/fonts/Inter/extras/woff-hinted/InterDisplay-Light.woff2 +0 -0
  243. package/fonts/Inter/extras/woff-hinted/InterDisplay-LightItalic.woff2 +0 -0
  244. package/fonts/Inter/extras/woff-hinted/InterDisplay-Medium.woff2 +0 -0
  245. package/fonts/Inter/extras/woff-hinted/InterDisplay-MediumItalic.woff2 +0 -0
  246. package/fonts/Inter/extras/woff-hinted/InterDisplay-Regular.woff2 +0 -0
  247. package/fonts/Inter/extras/woff-hinted/InterDisplay-SemiBold.woff2 +0 -0
  248. package/fonts/Inter/extras/woff-hinted/InterDisplay-SemiBoldItalic.woff2 +0 -0
  249. package/fonts/Inter/extras/woff-hinted/InterDisplay-Thin.woff2 +0 -0
  250. package/fonts/Inter/extras/woff-hinted/InterDisplay-ThinItalic.woff2 +0 -0
  251. package/fonts/Inter/help.txt +165 -0
  252. package/fonts/Inter/web/Inter-Black.woff2 +0 -0
  253. package/fonts/Inter/web/Inter-BlackItalic.woff2 +0 -0
  254. package/fonts/Inter/web/Inter-Bold.woff2 +0 -0
  255. package/fonts/Inter/web/Inter-BoldItalic.woff2 +0 -0
  256. package/fonts/Inter/web/Inter-ExtraBold.woff2 +0 -0
  257. package/fonts/Inter/web/Inter-ExtraBoldItalic.woff2 +0 -0
  258. package/fonts/Inter/web/Inter-ExtraLight.woff2 +0 -0
  259. package/fonts/Inter/web/Inter-ExtraLightItalic.woff2 +0 -0
  260. package/fonts/Inter/web/Inter-Italic.woff2 +0 -0
  261. package/fonts/Inter/web/Inter-Light.woff2 +0 -0
  262. package/fonts/Inter/web/Inter-LightItalic.woff2 +0 -0
  263. package/fonts/Inter/web/Inter-Medium.woff2 +0 -0
  264. package/fonts/Inter/web/Inter-MediumItalic.woff2 +0 -0
  265. package/fonts/Inter/web/Inter-Regular.woff2 +0 -0
  266. package/fonts/Inter/web/Inter-SemiBold.woff2 +0 -0
  267. package/fonts/Inter/web/Inter-SemiBoldItalic.woff2 +0 -0
  268. package/fonts/Inter/web/Inter-Thin.woff2 +0 -0
  269. package/fonts/Inter/web/Inter-ThinItalic.woff2 +0 -0
  270. package/fonts/Inter/web/InterDisplay-Black.woff2 +0 -0
  271. package/fonts/Inter/web/InterDisplay-BlackItalic.woff2 +0 -0
  272. package/fonts/Inter/web/InterDisplay-Bold.woff2 +0 -0
  273. package/fonts/Inter/web/InterDisplay-BoldItalic.woff2 +0 -0
  274. package/fonts/Inter/web/InterDisplay-ExtraBold.woff2 +0 -0
  275. package/fonts/Inter/web/InterDisplay-ExtraBoldItalic.woff2 +0 -0
  276. package/fonts/Inter/web/InterDisplay-ExtraLight.woff2 +0 -0
  277. package/fonts/Inter/web/InterDisplay-ExtraLightItalic.woff2 +0 -0
  278. package/fonts/Inter/web/InterDisplay-Italic.woff2 +0 -0
  279. package/fonts/Inter/web/InterDisplay-Light.woff2 +0 -0
  280. package/fonts/Inter/web/InterDisplay-LightItalic.woff2 +0 -0
  281. package/fonts/Inter/web/InterDisplay-Medium.woff2 +0 -0
  282. package/fonts/Inter/web/InterDisplay-MediumItalic.woff2 +0 -0
  283. package/fonts/Inter/web/InterDisplay-Regular.woff2 +0 -0
  284. package/fonts/Inter/web/InterDisplay-SemiBold.woff2 +0 -0
  285. package/fonts/Inter/web/InterDisplay-SemiBoldItalic.woff2 +0 -0
  286. package/fonts/Inter/web/InterDisplay-Thin.woff2 +0 -0
  287. package/fonts/Inter/web/InterDisplay-ThinItalic.woff2 +0 -0
  288. package/fonts/Inter/web/InterVariable-Italic.woff2 +0 -0
  289. package/fonts/Inter/web/InterVariable.woff2 +0 -0
  290. package/fonts/Inter/web/inter.css +148 -0
  291. package/package.json +52 -0
@@ -0,0 +1,113 @@
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
+ // Constants
9
+ const constants_1 = require("../constants");
10
+ // Custom Hooks
11
+ const useAccordion_1 = __importDefault(require("../customHooks/useAccordion"));
12
+ // Helpers
13
+ const helpers_1 = require("../helpers");
14
+ // Assets
15
+ const NetworkIcons_1 = require("./NetworkIcons");
16
+ // Stylesheet
17
+ const AppColors_1 = require("../styles/AppColors");
18
+ const styles_1 = __importDefault(require("../styles"));
19
+ const MetaAccordion = ({ status, statusColor, duration, size, triggeredAt, }) => {
20
+ const { toggleOpen, chevronStyle, bodyStyle } = (0, useAccordion_1.default)(true, 400, 260);
21
+ const isFailed = status === 0 || status == null;
22
+ return (<react_native_1.View style={styles_1.default.metaContainer}>
23
+ <react_native_1.Pressable onPress={toggleOpen} hitSlop={12}>
24
+ <react_native_1.View style={styles_1.default.metaHeader}>
25
+ <react_native_1.Text style={styles_1.default.metaTitle}>Metadata</react_native_1.Text>
26
+ <react_native_1.Animated.View style={chevronStyle}>
27
+ <NetworkIcons_1.ChevronIcon color={AppColors_1.AppColors.grayTextWeak} size={14}/>
28
+ </react_native_1.Animated.View>
29
+ </react_native_1.View>
30
+ </react_native_1.Pressable>
31
+
32
+ <react_native_1.Animated.View style={bodyStyle}>
33
+ <react_native_1.View style={styles_1.default.metaBody}>
34
+ <react_native_1.View style={styles_1.default.metaRow}>
35
+ <react_native_1.View style={styles_1.default.metaLabelRow}>
36
+ <NetworkIcons_1.CalendarIcon color={AppColors_1.AppColors.grayTextWeak} size={14}/>
37
+ <react_native_1.Text style={styles_1.default.metaLabel}>Triggered At</react_native_1.Text>
38
+ </react_native_1.View>
39
+ <react_native_1.Text style={[
40
+ styles_1.default.metaValue,
41
+ { color: AppColors_1.AppColors.purple, fontSize: 12 },
42
+ ]}>
43
+ {triggeredAt}
44
+ </react_native_1.Text>
45
+ </react_native_1.View>
46
+ <react_native_1.View style={styles_1.default.metaDivider}/>
47
+ <react_native_1.View style={styles_1.default.metaRow}>
48
+ <react_native_1.View style={styles_1.default.metaLabelRow}>
49
+ <NetworkIcons_1.StatusIcon color={AppColors_1.AppColors.grayTextWeak}/>
50
+ <react_native_1.Text style={styles_1.default.metaLabel}>Status</react_native_1.Text>
51
+ </react_native_1.View>
52
+ <react_native_1.View style={[
53
+ styles_1.default.statusChip,
54
+ {
55
+ borderColor: isFailed
56
+ ? `${AppColors_1.AppColors.errorColor}40`
57
+ : `${statusColor}40`,
58
+ backgroundColor: isFailed
59
+ ? `${AppColors_1.AppColors.errorColor}15`
60
+ : `${statusColor}15`,
61
+ },
62
+ ]}>
63
+ <react_native_1.Text style={[
64
+ styles_1.default.statusText,
65
+ { color: isFailed ? AppColors_1.AppColors.errorColor : statusColor },
66
+ ]}>
67
+ {isFailed ? 'Failed (Network Error)' : String(status)}
68
+ </react_native_1.Text>
69
+ </react_native_1.View>
70
+ </react_native_1.View>
71
+ <react_native_1.View style={styles_1.default.metaDivider}/>
72
+ <react_native_1.View style={styles_1.default.metaRow}>
73
+ <react_native_1.View style={styles_1.default.metaLabelRow}>
74
+ <NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak} size={14}/>
75
+ <react_native_1.Text style={styles_1.default.metaLabel}>Duration</react_native_1.Text>
76
+ </react_native_1.View>
77
+ <react_native_1.View style={styles_1.default.metaValueRow}>
78
+ {duration != null && !isFailed && (<react_native_1.View style={[
79
+ styles_1.default.perfBadge,
80
+ {
81
+ backgroundColor: `${(0, helpers_1.getDurationColor)(duration)}15`,
82
+ borderColor: `${(0, helpers_1.getDurationColor)(duration)}40`,
83
+ },
84
+ ]}>
85
+ <react_native_1.Text style={[
86
+ styles_1.default.perfBadgeText,
87
+ { color: (0, helpers_1.getDurationColor)(duration) },
88
+ ]}>
89
+ {duration < constants_1.DURATION_FAST_MS
90
+ ? 'Fast'
91
+ : duration < constants_1.DURATION_SLOW_MS
92
+ ? 'Moderate'
93
+ : 'Slow'}
94
+ </react_native_1.Text>
95
+ </react_native_1.View>)}
96
+ <react_native_1.Text style={styles_1.default.metaValue}>
97
+ {duration != null ? `${duration} ms` : '—'}
98
+ </react_native_1.Text>
99
+ </react_native_1.View>
100
+ </react_native_1.View>
101
+ <react_native_1.View style={styles_1.default.metaDivider}/>
102
+ <react_native_1.View style={styles_1.default.metaRow}>
103
+ <react_native_1.View style={styles_1.default.metaLabelRow}>
104
+ <NetworkIcons_1.SizeIcon color={AppColors_1.AppColors.grayTextWeak}/>
105
+ <react_native_1.Text style={styles_1.default.metaLabel}>Size</react_native_1.Text>
106
+ </react_native_1.View>
107
+ <react_native_1.Text style={styles_1.default.metaValue}>{size}</react_native_1.Text>
108
+ </react_native_1.View>
109
+ </react_native_1.View>
110
+ </react_native_1.Animated.View>
111
+ </react_native_1.View>);
112
+ };
113
+ exports.default = MetaAccordion;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const MiniBarChart: ({ data, color, maxVal, }: {
3
+ data: number[];
4
+ color: string;
5
+ maxVal?: number;
6
+ }) => React.JSX.Element;
7
+ export default MiniBarChart;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ const react_1 = __importDefault(require("react"));
40
+ const react_native_svg_1 = __importStar(require("react-native-svg"));
41
+ const MiniBarChart = ({ data, color, maxVal, }) => {
42
+ if (!data || data.length === 0)
43
+ return <react_native_svg_1.default width={40} height={16}/>;
44
+ const max = maxVal || Math.max(...data, 1);
45
+ const paddedData = data.length < 10
46
+ ? [...Array(10 - data.length).fill(0), ...data]
47
+ : data.slice(-10);
48
+ return (<react_native_svg_1.default width={40} height={16} viewBox="0 0 40 16">
49
+ {paddedData.map((val, i) => {
50
+ const h = Math.max((val / max) * 16, 2);
51
+ const opacity = val === 0 && maxVal === 1 ? 0.2 : 1;
52
+ return (<react_native_svg_1.Rect key={i} x={i * 4} y={16 - h} width={2.5} height={h} fill={color} rx={1} opacity={opacity}/>);
53
+ })}
54
+ </react_native_svg_1.default>);
55
+ };
56
+ exports.default = MiniBarChart;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const MiniLineChart: ({ data, color }: {
3
+ data: number[];
4
+ color: string;
5
+ }) => React.JSX.Element;
6
+ export default MiniLineChart;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ const react_1 = __importDefault(require("react"));
40
+ const react_native_svg_1 = __importStar(require("react-native-svg"));
41
+ const MiniLineChart = ({ data, color }) => {
42
+ if (!data || data.length === 0)
43
+ return <react_native_svg_1.default width={40} height={16}/>;
44
+ const paddedData = data.length < 10
45
+ ? [...Array(10 - data.length).fill(data[0] || 0), ...data]
46
+ : data.slice(-10);
47
+ const max = Math.max(...paddedData, 1);
48
+ const min = Math.min(...paddedData, 0);
49
+ const range = max - min || 1;
50
+ const dx = 40 / 9;
51
+ const points = paddedData
52
+ .map((d, i) => `${i * dx},${14 - ((d - min) / range) * 12}`)
53
+ .join(' L ');
54
+ return (<react_native_svg_1.default width={40} height={16} viewBox="0 0 40 16">
55
+ <react_native_svg_1.Path d={`M ${points}`} fill="none" stroke={color} strokeWidth={1.5} strokeLinecap="round" strokeLinejoin="round"/>
56
+ </react_native_svg_1.default>);
57
+ };
58
+ exports.default = MiniLineChart;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ export declare const EmptyRadarIcon: ({ color, size }: any) => React.JSX.Element;
3
+ export declare const MapPinIcon: ({ color, size, }: any) => React.JSX.Element;
4
+ export declare const ScreenIcon: ({ color, size, }: any) => React.JSX.Element;
5
+ export declare const ExpandCollapseIcon: ({ isExpanded, color, size, }: any) => React.JSX.Element;
6
+ export declare const SearchIcon: ({ color, size, }: any) => React.JSX.Element;
7
+ export declare const ClearIcon: ({ color, size }: any) => React.JSX.Element;
8
+ export declare const ClockIcon: ({ color, size }: any) => React.JSX.Element;
9
+ export declare const CalendarIcon: ({ color, size, }: any) => React.JSX.Element;
10
+ export declare const StatusIcon: ({ color }: any) => React.JSX.Element;
11
+ export declare const SizeIcon: ({ color }: any) => React.JSX.Element;
12
+ export declare const RequestIcon: ({ color }: any) => React.JSX.Element;
13
+ export declare const ResponseIcon: ({ color }: any) => React.JSX.Element;
14
+ export declare const HeadersIcon: ({ color }: any) => React.JSX.Element;
15
+ export declare const CopyIcon: ({ color, size }: any) => React.JSX.Element;
16
+ export declare const FetchIcon: ({ color, size }: any) => React.JSX.Element;
17
+ export declare const TerminalIcon: ({ color, size, }: any) => React.JSX.Element;
18
+ export declare const CheckIcon: ({ color, size }: any) => React.JSX.Element;
19
+ export declare const FailIcon: ({ color, size }: any) => React.JSX.Element;
20
+ export declare const TrashIcon: ({ color, size }: any) => React.JSX.Element;
21
+ export declare const HeaderPauseIcon: ({ isPaused, color, size, }: any) => React.JSX.Element;
22
+ export declare const ExportIcon: ({ color, size, }: any) => React.JSX.Element;
23
+ export declare const SignalIcon: ({ color, size, }: any) => React.JSX.Element;
24
+ export declare const DiffIcon: ({ color, size }: any) => React.JSX.Element;
25
+ export declare const GlobeIcon: ({ color, size }: any) => React.JSX.Element;
26
+ export declare const SortArrowIcon: ({ color, size, direction, }: any) => React.JSX.Element;
27
+ export declare const ChevronIcon: ({ color, size, }: any) => React.JSX.Element;
28
+ export declare const FilterIcon: ({ color, size, }: any) => React.JSX.Element;
29
+ export declare const DownloadIcon: ({ color, size, }: any) => React.JSX.Element;
30
+ export declare const CloseWhite: ({ color, size }: any) => React.JSX.Element;
31
+ export declare const WhiteBackNavigation: ({ color, size }: any) => React.JSX.Element;
@@ -0,0 +1,245 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.WhiteBackNavigation = exports.CloseWhite = exports.DownloadIcon = exports.FilterIcon = exports.ChevronIcon = exports.SortArrowIcon = exports.GlobeIcon = exports.DiffIcon = exports.SignalIcon = exports.ExportIcon = exports.HeaderPauseIcon = exports.TrashIcon = exports.FailIcon = exports.CheckIcon = exports.TerminalIcon = exports.FetchIcon = exports.CopyIcon = exports.HeadersIcon = exports.ResponseIcon = exports.RequestIcon = exports.SizeIcon = exports.StatusIcon = exports.CalendarIcon = exports.ClockIcon = exports.ClearIcon = exports.SearchIcon = exports.ExpandCollapseIcon = exports.ScreenIcon = exports.MapPinIcon = exports.EmptyRadarIcon = void 0;
40
+ const react_1 = __importDefault(require("react"));
41
+ const react_native_svg_1 = __importStar(require("react-native-svg"));
42
+ // Stylesheet
43
+ const AppColors_1 = require("../styles/AppColors");
44
+ const EmptyRadarIcon = ({ color = AppColors_1.AppColors.purple, size = 32 }) => {
45
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
46
+ <react_native_svg_1.Path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" stroke={color} strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
47
+ <react_native_svg_1.Circle cx="12" cy="11" r="3" stroke={color} strokeWidth="1.5"/>
48
+ <react_native_svg_1.Path d="M12 14v3" stroke={color} strokeWidth="1.5" strokeLinecap="round"/>
49
+ </react_native_svg_1.default>);
50
+ };
51
+ exports.EmptyRadarIcon = EmptyRadarIcon;
52
+ const MapPinIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14, }) => {
53
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
54
+ <react_native_svg_1.Path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
55
+ <react_native_svg_1.Circle cx="12" cy="10" r="3" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
56
+ </react_native_svg_1.default>);
57
+ };
58
+ exports.MapPinIcon = MapPinIcon;
59
+ const ScreenIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14, }) => {
60
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
61
+ <react_native_svg_1.Rect x="3" y="4" width="18" height="16" rx="2" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
62
+ <react_native_svg_1.Path d="M3 8h18M8 20V8" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
63
+ </react_native_svg_1.default>);
64
+ };
65
+ exports.ScreenIcon = ScreenIcon;
66
+ const ExpandCollapseIcon = ({ isExpanded, color = AppColors_1.AppColors.grayTextWeak, size = 14, }) => {
67
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
68
+ {isExpanded ? (<react_native_svg_1.Path d="M4 14h6v6M20 10h-6V4M14 10l7-7M10 14l-7 7" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>) : (<react_native_svg_1.Path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>)}
69
+ </react_native_svg_1.default>);
70
+ };
71
+ exports.ExpandCollapseIcon = ExpandCollapseIcon;
72
+ const SearchIcon = ({ color = AppColors_1.AppColors.primaryLight, size = 18, }) => {
73
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
74
+ <react_native_svg_1.Circle cx="11" cy="11" r="8" stroke={color} strokeWidth="2"/>
75
+ <react_native_svg_1.Line x1="16.5" y1="16.5" x2="22" y2="22" stroke={color} strokeWidth="2" strokeLinecap="round"/>
76
+ </react_native_svg_1.default>);
77
+ };
78
+ exports.SearchIcon = SearchIcon;
79
+ const ClearIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14 }) => {
80
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
81
+ <react_native_svg_1.Path d="M18 6L6 18M6 6l12 12" stroke={color} strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"/>
82
+ </react_native_svg_1.default>);
83
+ };
84
+ exports.ClearIcon = ClearIcon;
85
+ const ClockIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14 }) => {
86
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
87
+ <react_native_svg_1.Circle cx="12" cy="12" r="10" stroke={color} strokeWidth="2"/>
88
+ <react_native_svg_1.Line x1="12" y1="12" x2="12" y2="7" stroke={color} strokeWidth="2" strokeLinecap="round"/>
89
+ <react_native_svg_1.Line x1="12" y1="12" x2="16" y2="14" stroke={color} strokeWidth="2" strokeLinecap="round"/>
90
+ </react_native_svg_1.default>);
91
+ };
92
+ exports.ClockIcon = ClockIcon;
93
+ const CalendarIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14, }) => {
94
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
95
+ <react_native_svg_1.Rect x="3" y="4" width="18" height="18" rx="2" stroke={color} strokeWidth="2"/>
96
+ <react_native_svg_1.Line x1="3" y1="9" x2="21" y2="9" stroke={color} strokeWidth="2" strokeLinecap="round"/>
97
+ <react_native_svg_1.Line x1="8" y1="2" x2="8" y2="6" stroke={color} strokeWidth="2" strokeLinecap="round"/>
98
+ <react_native_svg_1.Line x1="16" y1="2" x2="16" y2="6" stroke={color} strokeWidth="2" strokeLinecap="round"/>
99
+ </react_native_svg_1.default>);
100
+ };
101
+ exports.CalendarIcon = CalendarIcon;
102
+ const StatusIcon = ({ color = AppColors_1.AppColors.grayTextWeak }) => {
103
+ return (<react_native_svg_1.default width={14} height={14} viewBox="0 0 24 24" fill="none">
104
+ <react_native_svg_1.Circle cx="12" cy="12" r="10" stroke={color} strokeWidth="2"/>
105
+ <react_native_svg_1.Line x1="12" y1="8" x2="12" y2="12" stroke={color} strokeWidth="2" strokeLinecap="round"/>
106
+ <react_native_svg_1.Circle cx="12" cy="16" r="1" fill={color}/>
107
+ </react_native_svg_1.default>);
108
+ };
109
+ exports.StatusIcon = StatusIcon;
110
+ const SizeIcon = ({ color = AppColors_1.AppColors.grayTextWeak }) => {
111
+ return (<react_native_svg_1.default width={14} height={14} viewBox="0 0 24 24" fill="none">
112
+ <react_native_svg_1.Path d="M4 6h16M4 10h10M4 14h13M4 18h7" stroke={color} strokeWidth="2" strokeLinecap="round"/>
113
+ </react_native_svg_1.default>);
114
+ };
115
+ exports.SizeIcon = SizeIcon;
116
+ const RequestIcon = ({ color = AppColors_1.AppColors.offerPurple }) => {
117
+ return (<react_native_svg_1.default width={14} height={14} viewBox="0 0 24 24" fill="none">
118
+ <react_native_svg_1.Path d="M5 12h14M13 6l6 6-6 6" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
119
+ </react_native_svg_1.default>);
120
+ };
121
+ exports.RequestIcon = RequestIcon;
122
+ const ResponseIcon = ({ color = AppColors_1.AppColors.greenColor }) => {
123
+ return (<react_native_svg_1.default width={14} height={14} viewBox="0 0 24 24" fill="none">
124
+ <react_native_svg_1.Path d="M19 12H5M11 18l-6-6 6-6" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
125
+ </react_native_svg_1.default>);
126
+ };
127
+ exports.ResponseIcon = ResponseIcon;
128
+ const HeadersIcon = ({ color = AppColors_1.AppColors.skyBlue }) => {
129
+ return (<react_native_svg_1.default width={14} height={14} viewBox="0 0 24 24" fill="none">
130
+ <react_native_svg_1.Path d="M4 6h16M4 12h16M4 18h10" stroke={color} strokeWidth="2" strokeLinecap="round"/>
131
+ </react_native_svg_1.default>);
132
+ };
133
+ exports.HeadersIcon = HeadersIcon;
134
+ const CopyIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14 }) => {
135
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
136
+ <react_native_svg_1.Path d="M9 9V5a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-4" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
137
+ <react_native_svg_1.Rect x="3" y="7" width="10" height="14" rx="2" stroke={color} strokeWidth="2"/>
138
+ </react_native_svg_1.default>);
139
+ };
140
+ exports.CopyIcon = CopyIcon;
141
+ const FetchIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14 }) => {
142
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
143
+ <react_native_svg_1.Path d="M8 9l3 3-3 3M13 15h3" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
144
+ <react_native_svg_1.Rect x="3" y="3" width="18" height="18" rx="2" stroke={color} strokeWidth="2"/>
145
+ </react_native_svg_1.default>);
146
+ };
147
+ exports.FetchIcon = FetchIcon;
148
+ const TerminalIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14, }) => {
149
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
150
+ <react_native_svg_1.Path d="M4 17l6-6-6-6M12 19h8" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
151
+ </react_native_svg_1.default>);
152
+ };
153
+ exports.TerminalIcon = TerminalIcon;
154
+ const CheckIcon = ({ color = AppColors_1.AppColors.greenColor, size = 14 }) => {
155
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
156
+ <react_native_svg_1.Path d="M20 6L9 17l-5-5" stroke={color} strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"/>
157
+ </react_native_svg_1.default>);
158
+ };
159
+ exports.CheckIcon = CheckIcon;
160
+ const FailIcon = ({ color = AppColors_1.AppColors.errorColor, size = 10 }) => {
161
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
162
+ <react_native_svg_1.Path d="M18 6L6 18M6 6l12 12" stroke={color} strokeWidth="3" strokeLinecap="round" strokeLinejoin="round"/>
163
+ </react_native_svg_1.default>);
164
+ };
165
+ exports.FailIcon = FailIcon;
166
+ const TrashIcon = ({ color = AppColors_1.AppColors.primaryLight, size = 18 }) => {
167
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
168
+ <react_native_svg_1.Path d="M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
169
+ </react_native_svg_1.default>);
170
+ };
171
+ exports.TrashIcon = TrashIcon;
172
+ const HeaderPauseIcon = ({ isPaused, color = AppColors_1.AppColors.primaryLight, size = 20, }) => {
173
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
174
+ {isPaused ? (<react_native_svg_1.Path d="M5 3l14 9-14 9V3z" fill={color}/>) : (<react_native_svg_1.Path d="M6 5h3v14H6V5zm9 0h3v14h-3V5z" fill={color}/>)}
175
+ </react_native_svg_1.default>);
176
+ };
177
+ exports.HeaderPauseIcon = HeaderPauseIcon;
178
+ const ExportIcon = ({ color = AppColors_1.AppColors.primaryLight, size = 18, }) => {
179
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
180
+ <react_native_svg_1.Path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
181
+ </react_native_svg_1.default>);
182
+ };
183
+ exports.ExportIcon = ExportIcon;
184
+ const SignalIcon = ({ color = AppColors_1.AppColors.primaryLight, size = 18, }) => {
185
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
186
+ <react_native_svg_1.Path d="M2 20h.01M7 20v-4M12 20v-8M17 20V8M22 20V4" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
187
+ </react_native_svg_1.default>);
188
+ };
189
+ exports.SignalIcon = SignalIcon;
190
+ const DiffIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14 }) => {
191
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
192
+ <react_native_svg_1.Path d="M7 8h10M12 3v10" stroke={color} strokeWidth="2" strokeLinecap="round"/>
193
+ <react_native_svg_1.Path d="M7 19h10" stroke={color} strokeWidth="2" strokeLinecap="round"/>
194
+ </react_native_svg_1.default>);
195
+ };
196
+ exports.DiffIcon = DiffIcon;
197
+ const GlobeIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14 }) => {
198
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
199
+ <react_native_svg_1.Circle cx="12" cy="12" r="10" stroke={color} strokeWidth="2"/>
200
+ <react_native_svg_1.Path d="M12 2C8 7 8 17 12 22M12 2c4 5 4 15 0 20M2 12h20" stroke={color} strokeWidth="2" strokeLinecap="round"/>
201
+ </react_native_svg_1.default>);
202
+ };
203
+ exports.GlobeIcon = GlobeIcon;
204
+ const SortArrowIcon = ({ color = AppColors_1.AppColors.primaryLight, size = 20, direction = 'down', }) => {
205
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
206
+ {direction === 'down' ? (<>
207
+ <react_native_svg_1.Path d="M4 6h10M4 12h7M4 18h4" stroke={color} strokeWidth="2" strokeLinecap="round"/>
208
+ <react_native_svg_1.Path d="M18 6v12m0 0l-3-3m3 3l3-3" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
209
+ </>) : (<>
210
+ <react_native_svg_1.Path d="M4 6h4M4 12h7M4 18h10" stroke={color} strokeWidth="2" strokeLinecap="round"/>
211
+ <react_native_svg_1.Path d="M18 18V6m0 0l-3 3m3-3l3 3" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
212
+ </>)}
213
+ </react_native_svg_1.default>);
214
+ };
215
+ exports.SortArrowIcon = SortArrowIcon;
216
+ const ChevronIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 14, }) => {
217
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
218
+ <react_native_svg_1.Path d="M6 9l6 6 6-6" stroke={color} strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"/>
219
+ </react_native_svg_1.default>);
220
+ };
221
+ exports.ChevronIcon = ChevronIcon;
222
+ const FilterIcon = ({ color = AppColors_1.AppColors.grayTextWeak, size = 18, }) => {
223
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
224
+ <react_native_svg_1.Path d="M4 6h16M7 12h10M10 18h4" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
225
+ </react_native_svg_1.default>);
226
+ };
227
+ exports.FilterIcon = FilterIcon;
228
+ const DownloadIcon = ({ color = AppColors_1.AppColors.primaryLight, size = 18, }) => {
229
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
230
+ <react_native_svg_1.Path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
231
+ </react_native_svg_1.default>);
232
+ };
233
+ exports.DownloadIcon = DownloadIcon;
234
+ const CloseWhite = ({ color = '#FFFFFF', size = 20 }) => {
235
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
236
+ <react_native_svg_1.Path d="M18 6L6 18M6 6l12 12" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
237
+ </react_native_svg_1.default>);
238
+ };
239
+ exports.CloseWhite = CloseWhite;
240
+ const WhiteBackNavigation = ({ color = '#FFFFFF', size = 20 }) => {
241
+ return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
242
+ <react_native_svg_1.Path d="M19 12H5M12 19l-7-7 7-7" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
243
+ </react_native_svg_1.default>);
244
+ };
245
+ exports.WhiteBackNavigation = WhiteBackNavigation;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SectionHeaderProps } from '../types';
3
+ declare const SectionHeader: ({ title, value, expanded, onToggleExpand, showDiff, isDiffing, onToggleDiff, }: SectionHeaderProps) => React.JSX.Element;
4
+ export default SectionHeader;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ const react_1 = __importStar(require("react"));
40
+ const react_native_1 = require("react-native");
41
+ // Stylesheet
42
+ const AppColors_1 = require("../styles/AppColors");
43
+ // Components
44
+ const CopyButton_1 = __importDefault(require("./CopyButton"));
45
+ const TouchableScale_1 = __importDefault(require("./TouchableScale"));
46
+ // Assets
47
+ const NetworkIcons_1 = require("./NetworkIcons");
48
+ // Stylesheet
49
+ const styles_1 = __importDefault(require("../styles"));
50
+ const SectionHeader = ({ title, value, expanded, onToggleExpand, showDiff, isDiffing, onToggleDiff, }) => {
51
+ const isOpen = expanded === undefined ? false : !!expanded;
52
+ const chevronAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(isOpen ? 1 : 0)).current;
53
+ (0, react_1.useEffect)(() => {
54
+ react_native_1.Animated.timing(chevronAnim, {
55
+ toValue: isOpen ? 1 : 0,
56
+ duration: 220,
57
+ useNativeDriver: true,
58
+ }).start();
59
+ }, [isOpen]);
60
+ const chevronRotate = chevronAnim.interpolate({
61
+ inputRange: [0, 1],
62
+ outputRange: ['0deg', '180deg'],
63
+ });
64
+ return (<react_native_1.View style={styles_1.default.sectionHeaderGradient}>
65
+ <react_native_1.View style={styles_1.default.sectionHeaderRow}>
66
+ <react_native_1.Pressable style={styles_1.default.sectionTitleRow} onPress={onToggleExpand} hitSlop={12}>
67
+ {title === 'Request' || title === 'API' ? (<NetworkIcons_1.RequestIcon color={AppColors_1.AppColors.offerPurple}/>) : title === 'Response' ? (<NetworkIcons_1.ResponseIcon color={AppColors_1.AppColors.greenColor}/>) : (<NetworkIcons_1.HeadersIcon color={AppColors_1.AppColors.skyBlue}/>)}
68
+ <react_native_1.Text style={styles_1.default.sectionTitle}>{title}</react_native_1.Text>
69
+ </react_native_1.Pressable>
70
+ <react_native_1.View style={styles_1.default.sectionHeaderActions}>
71
+ {showDiff && (<TouchableScale_1.default onPress={onToggleDiff} hitSlop={12} style={[
72
+ styles_1.default.iconSquareBtn,
73
+ isDiffing ? styles_1.default.iconSquareBtnActive : null,
74
+ ]}>
75
+ <NetworkIcons_1.DiffIcon color={isDiffing ? AppColors_1.AppColors.skyBlue : AppColors_1.AppColors.grayTextWeak} size={14}/>
76
+ </TouchableScale_1.default>)}
77
+ <CopyButton_1.default value={value} label={title}/>
78
+ <TouchableScale_1.default onPress={onToggleExpand} hitSlop={12} style={styles_1.default.iconSquareBtn}>
79
+ <react_native_1.Animated.View style={{ transform: [{ rotate: chevronRotate }] }}>
80
+ <NetworkIcons_1.ChevronIcon color={AppColors_1.AppColors.grayTextStrong} size={14}/>
81
+ </react_native_1.Animated.View>
82
+ </TouchableScale_1.default>
83
+ </react_native_1.View>
84
+ </react_native_1.View>
85
+ </react_native_1.View>);
86
+ };
87
+ exports.default = SectionHeader;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SourcePageCardProps } from '../types';
3
+ declare const SourcePageCard: ({ routeInfo }: SourcePageCardProps) => React.JSX.Element;
4
+ export default SourcePageCard;