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,427 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ const react_1 = __importStar(require("react"));
37
+ const react_native_1 = require("react-native");
38
+ const escapeRegExp = (string) => {
39
+ return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
40
+ };
41
+ // HTML pretty printer
42
+ const formatHTML = (html) => {
43
+ if (!html)
44
+ return '';
45
+ let indent = 0;
46
+ const cleaned = html
47
+ .replace(/<([a-zA-Z0-9:-]+)([^>]*)>\s*<\/([a-zA-Z0-9:-]+)>/g, '<$1$2></$3>')
48
+ .replace(/(<[^>]+>)/g, '\n$1\n')
49
+ .replace(/\n+/g, '\n');
50
+ const lines = cleaned.split('\n');
51
+ const formatted = [];
52
+ const selfClosingTags = /^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/i;
53
+ for (let i = 0; i < lines.length; i++) {
54
+ const line = lines[i].trim();
55
+ if (!line)
56
+ continue;
57
+ if (line.startsWith('</')) {
58
+ indent = Math.max(0, indent - 1);
59
+ }
60
+ formatted.push(' '.repeat(indent) + line);
61
+ if (line.startsWith('<') &&
62
+ !line.startsWith('</') &&
63
+ !line.startsWith('<!') &&
64
+ !line.endsWith('/>')) {
65
+ const tagNameMatch = line.match(/^<([a-zA-Z0-9:-]+)/);
66
+ if (tagNameMatch) {
67
+ const tagName = tagNameMatch[1];
68
+ if (!selfClosingTags.test(tagName)) {
69
+ const closeTagRegex = new RegExp(`</${escapeRegExp(tagName)}>`);
70
+ if (!closeTagRegex.test(line)) {
71
+ indent++;
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ return formatted.join('\n');
78
+ };
79
+ // CSS pretty printer
80
+ const formatCSS = (css) => {
81
+ if (!css)
82
+ return '';
83
+ const cleaned = css
84
+ .replace(/\s*\{\s*/g, ' {\n')
85
+ .replace(/\s*;\s*/g, ';\n')
86
+ .replace(/\s*\}\s*/g, '\n}\n')
87
+ .replace(/\n+/g, '\n');
88
+ const lines = cleaned.split('\n');
89
+ let indent = 0;
90
+ const formatted = [];
91
+ for (let i = 0; i < lines.length; i++) {
92
+ const line = lines[i].trim();
93
+ if (!line)
94
+ continue;
95
+ if (line.startsWith('}')) {
96
+ indent = Math.max(0, indent - 1);
97
+ }
98
+ formatted.push(' '.repeat(indent) + line);
99
+ if (line.endsWith('{')) {
100
+ indent++;
101
+ }
102
+ }
103
+ return formatted.join('\n');
104
+ };
105
+ // JS pretty printer
106
+ const formatJS = (js) => {
107
+ if (!js)
108
+ return '';
109
+ const lines = js.split(/\r?\n/);
110
+ let indent = 0;
111
+ const formatted = [];
112
+ for (let i = 0; i < lines.length; i++) {
113
+ const line = lines[i].trim();
114
+ if (!line)
115
+ continue;
116
+ let openCount = (line.match(/\{|\[/g) || []).length;
117
+ let closeCount = (line.match(/\}|\]/g) || []).length;
118
+ if (line.startsWith('}') || line.startsWith(']')) {
119
+ indent = Math.max(0, indent - 1);
120
+ }
121
+ else if (closeCount > openCount) {
122
+ indent = Math.max(0, indent - (closeCount - openCount));
123
+ }
124
+ formatted.push(' '.repeat(indent) + line);
125
+ if (openCount > closeCount &&
126
+ !line.startsWith('}') &&
127
+ !line.startsWith(']')) {
128
+ indent += openCount - closeCount;
129
+ }
130
+ else if (line.endsWith('{') || line.endsWith('[')) {
131
+ indent++;
132
+ }
133
+ }
134
+ return formatted.join('\n');
135
+ };
136
+ const tokenizeJS = (text) => {
137
+ const tokens = [];
138
+ const regex = /(\/\/.*|\/\*[\s\S]*?\*\/)|("(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`)|(\b(?:const|let|var|function|return|if|else|for|while|import|export|class|try|catch|new|this|async|await|break|continue|switch|case|default|throw|typeof|yield|let)\b)|(\b(?:console|window|document|fetch|global|require|module|exports|Promise|Map|Set|Array|Object|String|Number|Boolean)\b)|(\b\d+(?:\.\d+)?\b)/g;
139
+ let lastIndex = 0;
140
+ let match;
141
+ while ((match = regex.exec(text)) !== null) {
142
+ if (regex.lastIndex === match.index) {
143
+ regex.lastIndex++;
144
+ }
145
+ if (match.index > lastIndex) {
146
+ tokens.push({
147
+ text: text.substring(lastIndex, match.index),
148
+ type: 'plain',
149
+ });
150
+ }
151
+ const matchedText = match[0];
152
+ if (match[1])
153
+ tokens.push({ text: matchedText, type: 'comment' });
154
+ else if (match[2])
155
+ tokens.push({ text: matchedText, type: 'string' });
156
+ else if (match[3])
157
+ tokens.push({ text: matchedText, type: 'keyword' });
158
+ else if (match[4])
159
+ tokens.push({ text: matchedText, type: 'builtin' });
160
+ else if (match[5])
161
+ tokens.push({ text: matchedText, type: 'number' });
162
+ lastIndex = regex.lastIndex;
163
+ }
164
+ if (lastIndex < text.length) {
165
+ tokens.push({ text: text.substring(lastIndex), type: 'plain' });
166
+ }
167
+ return tokens;
168
+ };
169
+ const tokenizeCSS = (text) => {
170
+ const tokens = [];
171
+ const regex = /(\/\*[\s\S]*?\*\/)|(\.[a-zA-Z0-9_-]+|#[a-zA-Z0-9_-]+|[a-zA-Z0-9_-]+(?=\s*\{))|([a-zA-Z0-9_-]+(?=\s*:))|(:[^;]+;)/g;
172
+ let lastIndex = 0;
173
+ let match;
174
+ while ((match = regex.exec(text)) !== null) {
175
+ if (regex.lastIndex === match.index) {
176
+ regex.lastIndex++;
177
+ }
178
+ if (match.index > lastIndex) {
179
+ tokens.push({
180
+ text: text.substring(lastIndex, match.index),
181
+ type: 'plain',
182
+ });
183
+ }
184
+ const matchedText = match[0];
185
+ if (match[1])
186
+ tokens.push({ text: matchedText, type: 'comment' });
187
+ else if (match[2])
188
+ tokens.push({ text: matchedText, type: 'selector' });
189
+ else if (match[3])
190
+ tokens.push({ text: matchedText, type: 'property' });
191
+ else if (match[4]) {
192
+ tokens.push({ text: ':', type: 'plain' });
193
+ tokens.push({ text: matchedText.substring(1), type: 'value' });
194
+ }
195
+ lastIndex = regex.lastIndex;
196
+ }
197
+ if (lastIndex < text.length) {
198
+ tokens.push({ text: text.substring(lastIndex), type: 'plain' });
199
+ }
200
+ return tokens;
201
+ };
202
+ const tokenizeHTML = (text) => {
203
+ const tokens = [];
204
+ const regex = /(<!--[\s\S]*?-->)|(<\/?[a-zA-Z0-9:-]+>?)|("(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')|([a-zA-Z0-9:-]+(?=\s*=))/g;
205
+ let lastIndex = 0;
206
+ let match;
207
+ while ((match = regex.exec(text)) !== null) {
208
+ if (regex.lastIndex === match.index) {
209
+ regex.lastIndex++;
210
+ }
211
+ if (match.index > lastIndex) {
212
+ tokens.push({
213
+ text: text.substring(lastIndex, match.index),
214
+ type: 'plain',
215
+ });
216
+ }
217
+ const matchedText = match[0];
218
+ if (match[1])
219
+ tokens.push({ text: matchedText, type: 'comment' });
220
+ else if (match[2])
221
+ tokens.push({ text: matchedText, type: 'tag' });
222
+ else if (match[3])
223
+ tokens.push({ text: matchedText, type: 'string' });
224
+ else if (match[4])
225
+ tokens.push({ text: matchedText, type: 'attribute' });
226
+ lastIndex = regex.lastIndex;
227
+ }
228
+ if (lastIndex < text.length) {
229
+ tokens.push({ text: text.substring(lastIndex), type: 'plain' });
230
+ }
231
+ return tokens;
232
+ };
233
+ const getStyleForType = (type) => {
234
+ switch (type) {
235
+ case 'comment':
236
+ return styles.comment;
237
+ case 'string':
238
+ return styles.string;
239
+ case 'keyword':
240
+ return styles.keyword;
241
+ case 'builtin':
242
+ return styles.builtin;
243
+ case 'number':
244
+ return styles.number;
245
+ case 'tag':
246
+ return styles.tag;
247
+ case 'attribute':
248
+ return styles.attribute;
249
+ case 'selector':
250
+ return styles.selector;
251
+ case 'property':
252
+ return styles.property;
253
+ case 'value':
254
+ return styles.value;
255
+ default:
256
+ return styles.plain;
257
+ }
258
+ };
259
+ const CodeSnippetLine = react_1.default.memo(({ line, lineIndex, language, search, }) => {
260
+ const tokens = (0, react_1.useMemo)(() => {
261
+ if (language === 'html')
262
+ return tokenizeHTML(line);
263
+ if (language === 'css')
264
+ return tokenizeCSS(line);
265
+ return tokenizeJS(line);
266
+ }, [line, language]);
267
+ const renderTokenText = (text, type) => {
268
+ const baseStyle = getStyleForType(type);
269
+ if (!search) {
270
+ return <react_native_1.Text style={baseStyle}>{text}</react_native_1.Text>;
271
+ }
272
+ const parts = text.split(new RegExp(`(${escapeRegExp(search)})`, 'gi'));
273
+ return (<react_native_1.Text style={baseStyle}>
274
+ {parts.map((part, index) => {
275
+ const isMatch = part.toLowerCase() === search.toLowerCase();
276
+ return isMatch ? (<react_native_1.Text key={index} style={styles.highlight}>
277
+ {part}
278
+ </react_native_1.Text>) : (part);
279
+ })}
280
+ </react_native_1.Text>);
281
+ };
282
+ return (<react_native_1.View style={styles.lineRow}>
283
+ {/* Gutter Line Number */}
284
+ <react_native_1.View style={styles.gutter}>
285
+ <react_native_1.Text style={styles.lineNumber}>{lineIndex + 1}</react_native_1.Text>
286
+ </react_native_1.View>
287
+
288
+ {/* Highlighted Code Line */}
289
+ <react_native_1.View style={styles.codeLine}>
290
+ <react_native_1.Text style={styles.codeLineText}>
291
+ {tokens.length === 0 ? (<react_native_1.Text style={styles.plain}> </react_native_1.Text>) : (tokens.map((token, tokenIdx) => (<react_1.default.Fragment key={tokenIdx}>
292
+ {renderTokenText(token.text, token.type)}
293
+ </react_1.default.Fragment>)))}
294
+ </react_native_1.Text>
295
+ </react_native_1.View>
296
+ </react_native_1.View>);
297
+ });
298
+ const CodeSnippet = ({ code, language, search = '', }) => {
299
+ const formattedCode = (0, react_1.useMemo)(() => {
300
+ if (!code)
301
+ return '';
302
+ if (language === 'html')
303
+ return formatHTML(code);
304
+ if (language === 'css')
305
+ return formatCSS(code);
306
+ if (language === 'javascript')
307
+ return formatJS(code);
308
+ return code;
309
+ }, [code, language]);
310
+ const lines = (0, react_1.useMemo)(() => {
311
+ if (!formattedCode)
312
+ return [];
313
+ return formattedCode.split(/\r?\n/);
314
+ }, [formattedCode]);
315
+ const renderLine = ({ item, index }) => (<CodeSnippetLine line={item} lineIndex={index} language={language} search={search}/>);
316
+ return (<react_native_1.View style={styles.container}>
317
+ <react_native_1.FlatList data={lines} renderItem={renderLine} keyExtractor={(_, index) => String(index)} maxToRenderPerBatch={50} windowSize={10} initialNumToRender={30} removeClippedSubviews={react_native_1.Platform.OS === 'android'}/>
318
+ </react_native_1.View>);
319
+ };
320
+ const monoFont = react_native_1.Platform.OS === 'ios' ? 'Menlo' : 'monospace';
321
+ const styles = react_native_1.StyleSheet.create({
322
+ container: {
323
+ flex: 1,
324
+ backgroundColor: '#F8FAFC',
325
+ borderRadius: 8,
326
+ borderWidth: 1,
327
+ borderColor: '#E2E8F0',
328
+ overflow: 'hidden',
329
+ },
330
+ lineRow: {
331
+ flexDirection: 'row',
332
+ alignItems: 'stretch',
333
+ minHeight: 20,
334
+ paddingVertical: 1,
335
+ },
336
+ gutter: {
337
+ width: 40,
338
+ backgroundColor: '#F1F5F9',
339
+ borderRightWidth: 1,
340
+ borderRightColor: '#E2E8F0',
341
+ justifyContent: 'flex-start',
342
+ alignItems: 'flex-end',
343
+ paddingRight: 6,
344
+ paddingTop: 1,
345
+ },
346
+ lineNumber: {
347
+ fontFamily: monoFont,
348
+ fontSize: 9,
349
+ color: '#94A3B8',
350
+ },
351
+ codeLine: {
352
+ flex: 1,
353
+ paddingLeft: 10,
354
+ paddingRight: 12,
355
+ justifyContent: 'center',
356
+ },
357
+ codeLineText: {
358
+ fontFamily: monoFont,
359
+ fontSize: 10.5,
360
+ color: '#334155',
361
+ flexWrap: 'wrap',
362
+ },
363
+ plain: {
364
+ fontFamily: monoFont,
365
+ fontSize: 10.5,
366
+ color: '#334155',
367
+ },
368
+ comment: {
369
+ fontFamily: monoFont,
370
+ fontSize: 10.5,
371
+ color: '#64748B',
372
+ fontStyle: 'italic',
373
+ },
374
+ string: {
375
+ fontFamily: monoFont,
376
+ fontSize: 10.5,
377
+ color: '#D97706',
378
+ },
379
+ keyword: {
380
+ fontFamily: monoFont,
381
+ fontSize: 10.5,
382
+ color: '#7C3AED',
383
+ fontWeight: 'bold',
384
+ },
385
+ builtin: {
386
+ fontFamily: monoFont,
387
+ fontSize: 10.5,
388
+ color: '#0D9488',
389
+ },
390
+ number: {
391
+ fontFamily: monoFont,
392
+ fontSize: 10.5,
393
+ color: '#2563EB',
394
+ },
395
+ tag: {
396
+ fontFamily: monoFont,
397
+ fontSize: 10.5,
398
+ color: '#4F46E5',
399
+ fontWeight: 'bold',
400
+ },
401
+ attribute: {
402
+ fontFamily: monoFont,
403
+ fontSize: 10.5,
404
+ color: '#0D9488',
405
+ },
406
+ selector: {
407
+ fontFamily: monoFont,
408
+ fontSize: 10.5,
409
+ color: '#7C3AED',
410
+ fontWeight: 'bold',
411
+ },
412
+ property: {
413
+ fontFamily: monoFont,
414
+ fontSize: 10.5,
415
+ color: '#0D9488',
416
+ },
417
+ value: {
418
+ fontFamily: monoFont,
419
+ fontSize: 10.5,
420
+ color: '#EA580C',
421
+ },
422
+ highlight: {
423
+ backgroundColor: '#FDE047',
424
+ color: '#000000',
425
+ },
426
+ });
427
+ exports.default = CodeSnippet;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { ConsoleLog } from '../types';
3
+ import { WebViewLog } from '../customHooks/webViewLogger';
4
+ interface ConsoleLogCardProps {
5
+ item: ConsoleLog | WebViewLog;
6
+ searchStr?: string;
7
+ isWebView?: boolean;
8
+ }
9
+ export declare const ConsoleLogCard: React.NamedExoticComponent<ConsoleLogCardProps>;
10
+ export {};