@msqd/lydia 0.0.0-stage → 0.6.1

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 (378) hide show
  1. package/LICENSE +373 -0
  2. package/README.md +151 -2
  3. package/THIRD_PARTY_NOTICES.md +29 -0
  4. package/dist/Components/Badges/Badge.d.ts +20 -0
  5. package/dist/Components/Badges/Badge.js +33 -0
  6. package/dist/Components/Badges/index.d.ts +1 -0
  7. package/dist/Components/Badges/index.js +4 -0
  8. package/dist/Components/Buttons/Button.d.ts +8 -0
  9. package/dist/Components/Buttons/Button.js +30 -0
  10. package/dist/Components/Buttons/ButtonGroup.d.ts +13 -0
  11. package/dist/Components/Buttons/ButtonGroup.js +61 -0
  12. package/dist/Components/Buttons/index.d.ts +2 -0
  13. package/dist/Components/Buttons/index.js +6 -0
  14. package/dist/Components/Cards/Card.d.ts +38 -0
  15. package/dist/Components/Cards/Card.js +31 -0
  16. package/dist/Components/Cards/StatCard.d.ts +14 -0
  17. package/dist/Components/Cards/StatCard.js +27 -0
  18. package/dist/Components/Cards/index.d.ts +2 -0
  19. package/dist/Components/Cards/index.js +7 -0
  20. package/dist/Components/Charts/Components/ThinBarChart.d.ts +35 -0
  21. package/dist/Components/Charts/Components/ThinBarChart.js +41 -0
  22. package/dist/Components/Charts/Components/WideBarChart.d.ts +48 -0
  23. package/dist/Components/Charts/Components/WideBarChart.js +50 -0
  24. package/dist/Components/Charts/Components/index.d.ts +2 -0
  25. package/dist/Components/Charts/Components/index.js +6 -0
  26. package/dist/Components/Charts/Hooks/index.d.ts +2 -0
  27. package/dist/Components/Charts/Hooks/index.js +7 -0
  28. package/dist/Components/Charts/Hooks/useChartDimensions.d.ts +24 -0
  29. package/dist/Components/Charts/Hooks/useChartDimensions.js +42 -0
  30. package/dist/Components/Charts/Hooks/useThemeColors.d.ts +10 -0
  31. package/dist/Components/Charts/Hooks/useThemeColors.js +51 -0
  32. package/dist/Components/Charts/SummaryPerformancesChart.d.ts +7 -0
  33. package/dist/Components/Charts/SummaryPerformancesChart.js +93 -0
  34. package/dist/Components/Charts/SummaryRateChart.d.ts +9 -0
  35. package/dist/Components/Charts/SummaryRateChart.js +81 -0
  36. package/dist/Components/Charts/TransactionsChart.d.ts +6 -0
  37. package/dist/Components/Charts/TransactionsChart.js +70 -0
  38. package/dist/Components/Charts/Utils/ChartBarCalculator.d.ts +48 -0
  39. package/dist/Components/Charts/Utils/ChartBarCalculator.js +66 -0
  40. package/dist/Components/Charts/Utils/ChartColors.d.ts +13 -0
  41. package/dist/Components/Charts/Utils/ChartColors.js +10 -0
  42. package/dist/Components/Charts/Utils/ChartTooltipFormatter.d.ts +43 -0
  43. package/dist/Components/Charts/Utils/ChartTooltipFormatter.js +57 -0
  44. package/dist/Components/Charts/Utils/ReactEChartsCore.d.ts +4 -0
  45. package/dist/Components/Charts/Utils/ReactEChartsCore.js +5 -0
  46. package/dist/Components/Charts/Utils/ThemeColor.d.ts +21 -0
  47. package/dist/Components/Charts/Utils/ThemeColor.js +54 -0
  48. package/dist/Components/Charts/Utils/TimeFormatter.d.ts +9 -0
  49. package/dist/Components/Charts/Utils/TimeFormatter.js +25 -0
  50. package/dist/Components/Charts/Utils/escapeTooltipHtml.d.ts +6 -0
  51. package/dist/Components/Charts/Utils/escapeTooltipHtml.js +5 -0
  52. package/dist/Components/Charts/Utils/index.d.ts +5 -0
  53. package/dist/Components/Charts/Utils/index.js +14 -0
  54. package/dist/Components/Charts/index.d.ts +6 -0
  55. package/dist/Components/Charts/index.js +29 -0
  56. package/dist/Components/Colors/Colors.d.ts +19 -0
  57. package/dist/Components/Colors/Colors.js +154 -0
  58. package/dist/Components/Colors/index.d.ts +1 -0
  59. package/dist/Components/Colors/index.js +4 -0
  60. package/dist/Components/DataTable/DataTable.d.ts +86 -0
  61. package/dist/Components/DataTable/DataTable.js +122 -0
  62. package/dist/Components/DataTable/Paginator.d.ts +41 -0
  63. package/dist/Components/DataTable/Paginator.js +122 -0
  64. package/dist/Components/DataTable/ProportionBar.d.ts +48 -0
  65. package/dist/Components/DataTable/ProportionBar.js +20 -0
  66. package/dist/Components/DataTable/index.d.ts +3 -0
  67. package/dist/Components/DataTable/index.js +9 -0
  68. package/dist/Components/Dialog/Dialog.d.ts +49 -0
  69. package/dist/Components/Dialog/Dialog.js +83 -0
  70. package/dist/Components/Dialog/Drawer.d.ts +45 -0
  71. package/dist/Components/Dialog/Drawer.js +120 -0
  72. package/dist/Components/Dialog/index.d.ts +3 -0
  73. package/dist/Components/Dialog/index.js +12 -0
  74. package/dist/Components/Dialog/modal.types.d.ts +47 -0
  75. package/dist/Components/Dialog/modal.types.js +8 -0
  76. package/dist/Components/Facets/FacetCount.d.ts +11 -0
  77. package/dist/Components/Facets/FacetCount.js +8 -0
  78. package/dist/Components/Facets/FacetCountsCaption.d.ts +16 -0
  79. package/dist/Components/Facets/FacetCountsCaption.js +14 -0
  80. package/dist/Components/Facets/FacetInnerLightButton.d.ts +10 -0
  81. package/dist/Components/Facets/FacetInnerLightButton.js +17 -0
  82. package/dist/Components/Facets/FacetLabel.d.ts +13 -0
  83. package/dist/Components/Facets/FacetLabel.js +15 -0
  84. package/dist/Components/Facets/FacetList.d.ts +40 -0
  85. package/dist/Components/Facets/FacetList.js +37 -0
  86. package/dist/Components/Facets/FacetListCard.d.ts +38 -0
  87. package/dist/Components/Facets/FacetListCard.js +47 -0
  88. package/dist/Components/Facets/FacetResetLink.d.ts +13 -0
  89. package/dist/Components/Facets/FacetResetLink.js +23 -0
  90. package/dist/Components/Facets/Variants/DateRangeFacet.d.ts +47 -0
  91. package/dist/Components/Facets/Variants/DateRangeFacet.js +51 -0
  92. package/dist/Components/Facets/Variants/MultipleChoiceFacet.d.ts +67 -0
  93. package/dist/Components/Facets/Variants/MultipleChoiceFacet.js +200 -0
  94. package/dist/Components/Facets/Variants/PerformanceFacet.d.ts +61 -0
  95. package/dist/Components/Facets/Variants/PerformanceFacet.js +77 -0
  96. package/dist/Components/Facets/Variants/SingleChoiceFacet.d.ts +56 -0
  97. package/dist/Components/Facets/Variants/SingleChoiceFacet.js +54 -0
  98. package/dist/Components/Facets/Variants/index.d.ts +8 -0
  99. package/dist/Components/Facets/Variants/index.js +10 -0
  100. package/dist/Components/Facets/Variants/nestedValues.d.ts +33 -0
  101. package/dist/Components/Facets/Variants/nestedValues.js +87 -0
  102. package/dist/Components/Facets/index.d.ts +15 -0
  103. package/dist/Components/Facets/index.js +27 -0
  104. package/dist/Components/Formatter/BodyNotice.d.ts +9 -0
  105. package/dist/Components/Formatter/BodyNotice.js +21 -0
  106. package/dist/Components/Formatter/CodeFormatter.d.ts +47 -0
  107. package/dist/Components/Formatter/CodeFormatter.js +47 -0
  108. package/dist/Components/Formatter/HeadersDisplay.d.ts +9 -0
  109. package/dist/Components/Formatter/HeadersDisplay.js +18 -0
  110. package/dist/Components/Formatter/JsonTreeView.d.ts +27 -0
  111. package/dist/Components/Formatter/JsonTreeView.js +149 -0
  112. package/dist/Components/Formatter/PerformanceMetrics.d.ts +27 -0
  113. package/dist/Components/Formatter/PerformanceMetrics.js +29 -0
  114. package/dist/Components/Formatter/SyntaxHighlighter.d.ts +11 -0
  115. package/dist/Components/Formatter/SyntaxHighlighter.js +16 -0
  116. package/dist/Components/Formatter/VirtualizedCodeView.d.ts +24 -0
  117. package/dist/Components/Formatter/VirtualizedCodeView.js +47 -0
  118. package/dist/Components/Formatter/bodyLimits.d.ts +6 -0
  119. package/dist/Components/Formatter/bodyLimits.js +6 -0
  120. package/dist/Components/Formatter/index.d.ts +8 -0
  121. package/dist/Components/Formatter/index.js +16 -0
  122. package/dist/Components/Formatter/syntaxTheme.d.ts +8 -0
  123. package/dist/Components/Formatter/syntaxTheme.js +15 -0
  124. package/dist/Components/Formatter/useCodeHighlighting.d.ts +15 -0
  125. package/dist/Components/Formatter/useCodeHighlighting.js +47 -0
  126. package/dist/Components/Formatter/useVirtualization.d.ts +29 -0
  127. package/dist/Components/Formatter/useVirtualization.js +18 -0
  128. package/dist/Components/Inputs/Checkbox/Checkbox.d.ts +6 -0
  129. package/dist/Components/Inputs/Checkbox/Checkbox.js +75 -0
  130. package/dist/Components/Inputs/Checkbox/index.d.ts +1 -0
  131. package/dist/Components/Inputs/Checkbox/index.js +4 -0
  132. package/dist/Components/Inputs/DateRangeSelector/DateRangeSelector.d.ts +48 -0
  133. package/dist/Components/Inputs/DateRangeSelector/DateRangeSelector.js +71 -0
  134. package/dist/Components/Inputs/DateRangeSelector/index.d.ts +1 -0
  135. package/dist/Components/Inputs/DateRangeSelector/index.js +4 -0
  136. package/dist/Components/Inputs/Field/Field.d.ts +19 -0
  137. package/dist/Components/Inputs/Field/Field.js +35 -0
  138. package/dist/Components/Inputs/Field/index.d.ts +2 -0
  139. package/dist/Components/Inputs/Field/index.js +7 -0
  140. package/dist/Components/Inputs/Field/useField.d.ts +33 -0
  141. package/dist/Components/Inputs/Field/useField.js +36 -0
  142. package/dist/Components/Inputs/Input/Input.d.ts +85 -0
  143. package/dist/Components/Inputs/Input/Input.js +146 -0
  144. package/dist/Components/Inputs/Input/index.d.ts +1 -0
  145. package/dist/Components/Inputs/Input/index.js +4 -0
  146. package/dist/Components/Inputs/InputAddon/InputAddon.d.ts +21 -0
  147. package/dist/Components/Inputs/InputAddon/InputAddon.js +18 -0
  148. package/dist/Components/Inputs/InputAddon/index.d.ts +1 -0
  149. package/dist/Components/Inputs/InputAddon/index.js +4 -0
  150. package/dist/Components/Inputs/InputButton/InputButton.d.ts +21 -0
  151. package/dist/Components/Inputs/InputButton/InputButton.js +29 -0
  152. package/dist/Components/Inputs/InputButton/index.d.ts +1 -0
  153. package/dist/Components/Inputs/InputButton/index.js +4 -0
  154. package/dist/Components/Inputs/InputIcon/InputIcon.d.ts +20 -0
  155. package/dist/Components/Inputs/InputIcon/InputIcon.js +16 -0
  156. package/dist/Components/Inputs/InputIcon/index.d.ts +1 -0
  157. package/dist/Components/Inputs/InputIcon/index.js +4 -0
  158. package/dist/Components/Inputs/KeyboardShortcut/KeyboardShortcut.d.ts +12 -0
  159. package/dist/Components/Inputs/KeyboardShortcut/KeyboardShortcut.js +18 -0
  160. package/dist/Components/Inputs/KeyboardShortcut/index.d.ts +1 -0
  161. package/dist/Components/Inputs/KeyboardShortcut/index.js +4 -0
  162. package/dist/Components/Inputs/Radio/Radio.d.ts +3 -0
  163. package/dist/Components/Inputs/Radio/Radio.js +59 -0
  164. package/dist/Components/Inputs/Radio/index.d.ts +1 -0
  165. package/dist/Components/Inputs/Radio/index.js +4 -0
  166. package/dist/Components/Inputs/SearchInput/SearchInput.d.ts +9 -0
  167. package/dist/Components/Inputs/SearchInput/SearchInput.js +48 -0
  168. package/dist/Components/Inputs/SearchInput/index.d.ts +2 -0
  169. package/dist/Components/Inputs/SearchInput/index.js +4 -0
  170. package/dist/Components/Inputs/Sliders/RangeSlider.d.ts +40 -0
  171. package/dist/Components/Inputs/Sliders/RangeSlider.js +160 -0
  172. package/dist/Components/Inputs/Sliders/index.d.ts +2 -0
  173. package/dist/Components/Inputs/Sliders/index.js +4 -0
  174. package/dist/Components/Inputs/Textarea/Textarea.d.ts +56 -0
  175. package/dist/Components/Inputs/Textarea/Textarea.js +79 -0
  176. package/dist/Components/Inputs/Textarea/index.d.ts +1 -0
  177. package/dist/Components/Inputs/Textarea/index.js +4 -0
  178. package/dist/Components/Inputs/choiceInput.d.ts +12 -0
  179. package/dist/Components/Inputs/choiceInput.js +8 -0
  180. package/dist/Components/Inputs/index.d.ts +11 -0
  181. package/dist/Components/Inputs/index.js +24 -0
  182. package/dist/Components/Layouts/DefaultLayout.d.ts +30 -0
  183. package/dist/Components/Layouts/DefaultLayout.js +25 -0
  184. package/dist/Components/Layouts/index.d.ts +2 -0
  185. package/dist/Components/Layouts/index.js +4 -0
  186. package/dist/Components/NavBar/Assets/defaultAvatar.d.ts +4 -0
  187. package/dist/Components/NavBar/Assets/defaultAvatar.js +28 -0
  188. package/dist/Components/NavBar/Assets/index.d.ts +2 -0
  189. package/dist/Components/NavBar/Assets/index.js +4 -0
  190. package/dist/Components/NavBar/NavBar.d.ts +58 -0
  191. package/dist/Components/NavBar/NavBar.js +141 -0
  192. package/dist/Components/NavBar/index.d.ts +1 -0
  193. package/dist/Components/NavBar/index.js +5 -0
  194. package/dist/Components/Tabs/Tabs.d.ts +24 -0
  195. package/dist/Components/Tabs/Tabs.js +69 -0
  196. package/dist/Components/Tabs/index.d.ts +2 -0
  197. package/dist/Components/Tabs/index.js +5 -0
  198. package/dist/Components/Toast/Toast.d.ts +28 -0
  199. package/dist/Components/Toast/Toast.js +128 -0
  200. package/dist/Components/Toast/ToastContainer.d.ts +29 -0
  201. package/dist/Components/Toast/ToastContainer.js +28 -0
  202. package/dist/Components/Toast/ToastContext.d.ts +103 -0
  203. package/dist/Components/Toast/ToastContext.js +124 -0
  204. package/dist/Components/Toast/index.d.ts +3 -0
  205. package/dist/Components/Toast/index.js +13 -0
  206. package/dist/Components/Typography/HeadingLevel.d.ts +28 -0
  207. package/dist/Components/Typography/HeadingLevel.js +20 -0
  208. package/dist/Components/Typography/Paragraphs.d.ts +8 -0
  209. package/dist/Components/Typography/Paragraphs.js +6 -0
  210. package/dist/Components/Typography/Section.d.ts +8 -0
  211. package/dist/Components/Typography/Section.js +6 -0
  212. package/dist/Components/Typography/Titles.d.ts +31 -0
  213. package/dist/Components/Typography/Titles.js +14 -0
  214. package/dist/Components/Typography/index.d.ts +4 -0
  215. package/dist/Components/Typography/index.js +17 -0
  216. package/dist/Components/Utilities/Foldable.d.ts +42 -0
  217. package/dist/Components/Utilities/Foldable.js +39 -0
  218. package/dist/Components/Utilities/index.d.ts +2 -0
  219. package/dist/Components/Utilities/index.js +6 -0
  220. package/dist/Components/Utilities/useClickOutside.d.ts +21 -0
  221. package/dist/Components/Utilities/useClickOutside.js +23 -0
  222. package/dist/Components/index.d.ts +16 -0
  223. package/dist/Components/index.js +158 -0
  224. package/dist/Elements/Http/CacheBadge.d.ts +13 -0
  225. package/dist/Elements/Http/CacheBadge.js +34 -0
  226. package/dist/Elements/Http/CacheIndicator.d.ts +17 -0
  227. package/dist/Elements/Http/CacheIndicator.js +47 -0
  228. package/dist/Elements/Http/RequestMethodBadge.d.ts +5 -0
  229. package/dist/Elements/Http/RequestMethodBadge.js +13 -0
  230. package/dist/Elements/Http/ResponseStatusBadge.d.ts +19 -0
  231. package/dist/Elements/Http/ResponseStatusBadge.js +20 -0
  232. package/dist/Elements/Http/index.d.ts +4 -0
  233. package/dist/Elements/Http/index.js +10 -0
  234. package/dist/Elements/System/CircuitBreakerStatus.d.ts +11 -0
  235. package/dist/Elements/System/CircuitBreakerStatus.js +98 -0
  236. package/dist/Elements/System/EndpointNode.d.ts +10 -0
  237. package/dist/Elements/System/EndpointNode.js +19 -0
  238. package/dist/Elements/System/EntrypointNode.d.ts +9 -0
  239. package/dist/Elements/System/EntrypointNode.js +17 -0
  240. package/dist/Elements/System/NetworkEdges.d.ts +37 -0
  241. package/dist/Elements/System/NetworkEdges.js +52 -0
  242. package/dist/Elements/System/NetworkMap.d.ts +33 -0
  243. package/dist/Elements/System/NetworkMap.js +121 -0
  244. package/dist/Elements/System/NetworkNode.d.ts +29 -0
  245. package/dist/Elements/System/NetworkNode.js +31 -0
  246. package/dist/Elements/System/ProxyNode.d.ts +8 -0
  247. package/dist/Elements/System/ProxyNode.js +10 -0
  248. package/dist/Elements/System/index.d.ts +9 -0
  249. package/dist/Elements/System/index.js +17 -0
  250. package/dist/Elements/Tpdex/TpdexBadge.d.ts +26 -0
  251. package/dist/Elements/Tpdex/TpdexBadge.js +36 -0
  252. package/dist/Elements/Tpdex/index.d.ts +4 -0
  253. package/dist/Elements/Tpdex/index.js +8 -0
  254. package/dist/Elements/Transactions/TransactionFiltersCard.d.ts +41 -0
  255. package/dist/Elements/Transactions/TransactionFiltersCard.js +121 -0
  256. package/dist/Elements/Transactions/TransactionsExplorerSidebar.d.ts +37 -0
  257. package/dist/Elements/Transactions/TransactionsExplorerSidebar.js +154 -0
  258. package/dist/Elements/Transactions/TransactionsFiltersSidebar.d.ts +22 -0
  259. package/dist/Elements/Transactions/TransactionsFiltersSidebar.js +39 -0
  260. package/dist/Elements/Transactions/index.d.ts +13 -0
  261. package/dist/Elements/Transactions/index.js +9 -0
  262. package/dist/Elements/index.d.ts +18 -0
  263. package/dist/Elements/index.js +38 -0
  264. package/dist/Models/Filters/active.d.ts +12 -0
  265. package/dist/Models/Filters/active.js +10 -0
  266. package/dist/Models/Filters/dates.d.ts +8 -0
  267. package/dist/Models/Filters/dates.js +16 -0
  268. package/dist/Models/Filters/index.d.ts +4 -0
  269. package/dist/Models/Filters/index.js +13 -0
  270. package/dist/Models/Filters/read.d.ts +9 -0
  271. package/dist/Models/Filters/read.js +22 -0
  272. package/dist/Models/Filters/types.d.ts +50 -0
  273. package/dist/Models/Filters/types.js +1 -0
  274. package/dist/Models/Http/body.d.ts +7 -0
  275. package/dist/Models/Http/body.js +6 -0
  276. package/dist/Models/Http/contentDisposition.d.ts +7 -0
  277. package/dist/Models/Http/contentDisposition.js +51 -0
  278. package/dist/Models/Http/dataUrl.d.ts +12 -0
  279. package/dist/Models/Http/dataUrl.js +21 -0
  280. package/dist/Models/Http/headers.d.ts +18 -0
  281. package/dist/Models/Http/headers.js +7 -0
  282. package/dist/Models/Http/index.d.ts +2 -0
  283. package/dist/Models/Http/index.js +6 -0
  284. package/dist/Models/Http/percent.d.ts +5 -0
  285. package/dist/Models/Http/percent.js +17 -0
  286. package/dist/Models/Http/requestTarget.d.ts +11 -0
  287. package/dist/Models/Http/requestTarget.js +7 -0
  288. package/dist/Models/System/index.d.ts +1 -0
  289. package/dist/Models/System/index.js +7 -0
  290. package/dist/Models/System/types.d.ts +20 -0
  291. package/dist/Models/System/types.js +48 -0
  292. package/dist/Models/Tpdex.d.ts +36 -0
  293. package/dist/Models/Tpdex.js +38 -0
  294. package/dist/Models/Transactions/Overview.d.ts +19 -0
  295. package/dist/Models/Transactions/Overview.js +1 -0
  296. package/dist/Models/Transactions/encoding.d.ts +49 -0
  297. package/dist/Models/Transactions/encoding.js +26 -0
  298. package/dist/Models/Transactions/endpoints.d.ts +15 -0
  299. package/dist/Models/Transactions/endpoints.js +21 -0
  300. package/dist/Models/Transactions/facets.d.ts +25 -0
  301. package/dist/Models/Transactions/facets.js +40 -0
  302. package/dist/Models/Transactions/filtering.d.ts +20 -0
  303. package/dist/Models/Transactions/filtering.js +34 -0
  304. package/dist/Models/Transactions/treeDepth.d.ts +2 -0
  305. package/dist/Models/Transactions/treeDepth.js +4 -0
  306. package/dist/Models/Transactions/types.d.ts +58 -0
  307. package/dist/Models/Transactions/types.js +1 -0
  308. package/dist/Models/index.d.ts +10 -0
  309. package/dist/Models/index.js +46 -0
  310. package/dist/Pages/Alerts/AlertsPage.d.ts +18 -0
  311. package/dist/Pages/Alerts/AlertsPage.js +104 -0
  312. package/dist/Pages/Alerts/index.d.ts +1 -0
  313. package/dist/Pages/Alerts/index.js +4 -0
  314. package/dist/Pages/Explorer/ExplorerPage.d.ts +6 -0
  315. package/dist/Pages/Explorer/ExplorerPage.js +55 -0
  316. package/dist/Pages/Explorer/index.d.ts +1 -0
  317. package/dist/Pages/Explorer/index.js +4 -0
  318. package/dist/Pages/Overview/OverviewPage.d.ts +11 -0
  319. package/dist/Pages/Overview/OverviewPage.js +10 -0
  320. package/dist/Pages/Overview/Sections/Components/TransactionsHistoryView.d.ts +7 -0
  321. package/dist/Pages/Overview/Sections/Components/TransactionsHistoryView.js +32 -0
  322. package/dist/Pages/Overview/Sections/Components/index.d.ts +1 -0
  323. package/dist/Pages/Overview/Sections/Components/index.js +4 -0
  324. package/dist/Pages/Overview/Sections/HistorySection.d.ts +18 -0
  325. package/dist/Pages/Overview/Sections/HistorySection.js +21 -0
  326. package/dist/Pages/Overview/Sections/SummarySection.d.ts +44 -0
  327. package/dist/Pages/Overview/Sections/SummarySection.js +127 -0
  328. package/dist/Pages/Overview/index.d.ts +4 -0
  329. package/dist/Pages/Overview/index.js +8 -0
  330. package/dist/Pages/SystemPage/SystemPage.d.ts +8 -0
  331. package/dist/Pages/SystemPage/SystemPage.js +16 -0
  332. package/dist/Pages/SystemPage/index.d.ts +1 -0
  333. package/dist/Pages/SystemPage/index.js +4 -0
  334. package/dist/Pages/Transactions/Detail/Components/DownloadButton.d.ts +33 -0
  335. package/dist/Pages/Transactions/Detail/Components/DownloadButton.js +62 -0
  336. package/dist/Pages/Transactions/Detail/Components/TransactionMessage.d.ts +16 -0
  337. package/dist/Pages/Transactions/Detail/Components/TransactionMessage.js +44 -0
  338. package/dist/Pages/Transactions/Detail/Components/TransactionMetadata.d.ts +21 -0
  339. package/dist/Pages/Transactions/Detail/Components/TransactionMetadata.js +127 -0
  340. package/dist/Pages/Transactions/Detail/Components/index.d.ts +6 -0
  341. package/dist/Pages/Transactions/Detail/Components/index.js +8 -0
  342. package/dist/Pages/Transactions/Detail/TransactionsDetailPage.d.ts +8 -0
  343. package/dist/Pages/Transactions/Detail/TransactionsDetailPage.js +15 -0
  344. package/dist/Pages/Transactions/Detail/Utils/BodyPreview.d.ts +15 -0
  345. package/dist/Pages/Transactions/Detail/Utils/BodyPreview.js +30 -0
  346. package/dist/Pages/Transactions/Detail/Utils/ContentRenderer.d.ts +28 -0
  347. package/dist/Pages/Transactions/Detail/Utils/ContentRenderer.js +115 -0
  348. package/dist/Pages/Transactions/Detail/Utils/index.d.ts +4 -0
  349. package/dist/Pages/Transactions/Detail/Utils/index.js +9 -0
  350. package/dist/Pages/Transactions/Detail/index.d.ts +4 -0
  351. package/dist/Pages/Transactions/Detail/index.js +8 -0
  352. package/dist/Pages/Transactions/List/TransactionsListPage.d.ts +80 -0
  353. package/dist/Pages/Transactions/List/TransactionsListPage.js +220 -0
  354. package/dist/Pages/Transactions/List/index.d.ts +4 -0
  355. package/dist/Pages/Transactions/List/index.js +6 -0
  356. package/dist/Pages/Transactions/List/useClientSideTransactions.d.ts +38 -0
  357. package/dist/Pages/Transactions/List/useClientSideTransactions.js +32 -0
  358. package/dist/Pages/Transactions/index.d.ts +4 -0
  359. package/dist/Pages/Transactions/index.js +6 -0
  360. package/dist/Pages/index.d.ts +5 -0
  361. package/dist/Pages/index.js +18 -0
  362. package/dist/Settings.d.ts +13 -0
  363. package/dist/Settings.js +16 -0
  364. package/dist/css/Components/Formatter/prism.css +79 -0
  365. package/dist/css/Components/Inputs/Input/Input.css +73 -0
  366. package/dist/css/Components/Inputs/Sliders/RangeSliderStyles.css +92 -0
  367. package/dist/css/components.css +6 -0
  368. package/dist/css/fonts/Lato-Bold.woff2 +0 -0
  369. package/dist/css/fonts/Lato-BoldItalic.woff2 +0 -0
  370. package/dist/css/fonts/Lato-Italic.woff2 +0 -0
  371. package/dist/css/fonts/Lato-Regular.woff2 +0 -0
  372. package/dist/css/fonts/OFL.txt +93 -0
  373. package/dist/css/theme.css +109 -0
  374. package/dist/index.d.ts +4 -0
  375. package/dist/index.js +250 -0
  376. package/dist/logo.svg +1 -0
  377. package/dist/styles/styles.css +1 -0
  378. package/package.json +367 -3
@@ -0,0 +1,87 @@
1
+ const u = (e) => (e.under?.length ?? 0) > 0, o = { kind: "none" }, d = { kind: "whole" }, a = (e) => `-${e}`, i = (e) => e.under.map((c) => c.name), f = (e, c) => e.slice(c.length).replace(/\d/g, "0").replace(/[a-z]/gi, "a");
2
+ function h(e, c) {
3
+ const t = c.filter(u).filter((s) => e.length > s.name.length && e.startsWith(s.name)).reduce(
4
+ (s, n) => s && s.name.length >= n.name.length ? s : n,
5
+ void 0
6
+ ), l = t && f(e, t.name);
7
+ return t && i(t).some((s) => f(s, t.name) === l) ? t : void 0;
8
+ }
9
+ function g(e, c, t) {
10
+ const l = i(c);
11
+ return e.filter((s) => s.startsWith("-")).map((s) => s.slice(1)).filter((s, n, r) => h(s, t) === c && !l.includes(s) && r.indexOf(s) === n);
12
+ }
13
+ function w(e, c, t) {
14
+ if (!u(c)) return e.includes(c.name) ? d : o;
15
+ const l = i(c);
16
+ if (e.includes(c.name)) {
17
+ const n = [
18
+ ...l.filter((r) => e.includes(a(r))),
19
+ ...g(e, c, t)
20
+ ];
21
+ return n.length > 0 ? { kind: "minus", excluded: n } : d;
22
+ }
23
+ const s = l.filter((n) => e.includes(n));
24
+ return s.length === l.length ? d : s.length > 0 ? { kind: "some", codes: s } : o;
25
+ }
26
+ function k(e, c) {
27
+ const t = (s) => u(c) ? i(c).filter((n) => s.includes(n)) : [], l = (s) => u(c) ? s.filter((n) => !i(c).includes(n)) : [];
28
+ switch (e.kind) {
29
+ case "none":
30
+ return [];
31
+ case "whole":
32
+ return [c.name];
33
+ case "some":
34
+ return t(e.codes);
35
+ case "minus":
36
+ return [c.name, ...[...t(e.excluded), ...l(e.excluded)].map(a)];
37
+ }
38
+ }
39
+ const O = (e, c) => c.map((t) => w(e, t, c));
40
+ function C(e, c, t) {
41
+ const l = new Set(
42
+ c.flatMap((n) => [
43
+ n.name,
44
+ ...u(n) ? i(n).flatMap((r) => [r, a(r)]) : []
45
+ ])
46
+ ), s = (n) => l.has(n) || n.startsWith("-") && h(n.slice(1), c) !== void 0;
47
+ return [
48
+ ...c.flatMap((n, r) => k(e[r], n)),
49
+ ...t.filter((n) => !s(n))
50
+ ];
51
+ }
52
+ const N = (e) => e.kind === "whole" ? o : d;
53
+ function W(e, c, t) {
54
+ const l = c.under.length, s = (n) => n.includes(t) ? n.filter((r) => r !== t) : [...n, t];
55
+ switch (e.kind) {
56
+ case "none":
57
+ case "some": {
58
+ const n = s(e.kind === "some" ? e.codes : []);
59
+ return n.length === l ? d : n.length > 0 ? { kind: "some", codes: n } : o;
60
+ }
61
+ case "whole":
62
+ case "minus": {
63
+ const n = e.kind === "minus" ? e.excluded : [], r = s(n);
64
+ return r.length > n.length && r.filter((m) => i(c).includes(m)).length === l ? o : r.length > 0 ? { kind: "minus", excluded: r } : d;
65
+ }
66
+ }
67
+ }
68
+ function E(e, c) {
69
+ switch (e.kind) {
70
+ case "none":
71
+ return !1;
72
+ case "whole":
73
+ return !0;
74
+ case "some":
75
+ return e.codes.includes(c);
76
+ case "minus":
77
+ return !e.excluded.includes(c);
78
+ }
79
+ }
80
+ export {
81
+ E as isCodeTicked,
82
+ u as isNested,
83
+ O as readSelection,
84
+ W as toggleCode,
85
+ N as toggleOption,
86
+ C as writeSelection
87
+ };
@@ -0,0 +1,15 @@
1
+ export { FacetList, useFacetState } from "./FacetList.js";
2
+ export { FacetListCard } from "./FacetListCard.js";
3
+ export { FacetLabel } from "./FacetLabel.js";
4
+ export { FacetInnerLightButton } from "./FacetInnerLightButton.js";
5
+ export { FacetResetLink } from "./FacetResetLink.js";
6
+ export { FacetCount } from "./FacetCount.js";
7
+ export { DEFAULT_COUNTS_CAPTION, FacetCountsCaption, countsCaptionOf, type FacetCountsCaptionProps, } from "./FacetCountsCaption.js";
8
+ export type { FacetListProps } from "./FacetList.js";
9
+ export type { FacetListCardProps } from "./FacetListCard.js";
10
+ export type { FacetLabelProps } from "./FacetLabel.js";
11
+ export type { FacetInnerLightButtonProps } from "./FacetInnerLightButton.js";
12
+ export type { FacetResetLinkProps } from "./FacetResetLink.js";
13
+ export type { FacetCountProps } from "./FacetCount.js";
14
+ export { DateRangeFacet, MultipleChoiceFacet, PerformanceFacet, SingleChoiceFacet, } from "./Variants/index.js";
15
+ export type { DateRangeFacetProps, MultipleChoiceFacetProps, FacetOption, PerformanceFacetProps, SingleChoiceFacetProps, } from "./Variants/index.js";
@@ -0,0 +1,27 @@
1
+ import { FacetList as o, useFacetState as r } from "./FacetList.js";
2
+ import { FacetListCard as c } from "./FacetListCard.js";
3
+ import { FacetLabel as f } from "./FacetLabel.js";
4
+ import { FacetInnerLightButton as m } from "./FacetInnerLightButton.js";
5
+ import { FacetResetLink as x } from "./FacetResetLink.js";
6
+ import { FacetCount as C } from "./FacetCount.js";
7
+ import { DEFAULT_COUNTS_CAPTION as u, FacetCountsCaption as L, countsCaptionOf as l } from "./FacetCountsCaption.js";
8
+ import { DateRangeFacet as h } from "./Variants/DateRangeFacet.js";
9
+ import { MultipleChoiceFacet as S } from "./Variants/MultipleChoiceFacet.js";
10
+ import { PerformanceFacet as A } from "./Variants/PerformanceFacet.js";
11
+ import { SingleChoiceFacet as I } from "./Variants/SingleChoiceFacet.js";
12
+ export {
13
+ u as DEFAULT_COUNTS_CAPTION,
14
+ h as DateRangeFacet,
15
+ C as FacetCount,
16
+ L as FacetCountsCaption,
17
+ m as FacetInnerLightButton,
18
+ f as FacetLabel,
19
+ o as FacetList,
20
+ c as FacetListCard,
21
+ x as FacetResetLink,
22
+ S as MultipleChoiceFacet,
23
+ A as PerformanceFacet,
24
+ I as SingleChoiceFacet,
25
+ l as countsCaptionOf,
26
+ r as useFacetState
27
+ };
@@ -0,0 +1,9 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ export interface BodyNoticeProps extends Omit<ComponentProps<"div">, "children"> {
3
+ /** What the view did to the body. */
4
+ children: ReactNode;
5
+ /** Controls acting on that, such as buttons. */
6
+ actions?: ReactNode;
7
+ }
8
+ /** A bar above a body telling the reader it is not shown as captured. */
9
+ export declare function BodyNotice({ children, actions, className, ...props }: BodyNoticeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { twMerge as i } from "tailwind-merge";
3
+ function p({ children: t, actions: e, className: s, ...m }) {
4
+ return /* @__PURE__ */ a(
5
+ "div",
6
+ {
7
+ className: i(
8
+ "flex flex-wrap items-center justify-between gap-2 border-b border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-900",
9
+ s
10
+ ),
11
+ ...m,
12
+ children: [
13
+ /* @__PURE__ */ r("p", { role: "status", children: t }),
14
+ e && /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: e })
15
+ ]
16
+ }
17
+ );
18
+ }
19
+ export {
20
+ p as BodyNotice
21
+ };
@@ -0,0 +1,47 @@
1
+ import { type ComponentProps } from "react";
2
+ import { type CodeLanguage } from "./useCodeHighlighting.js";
3
+ export interface CodeFormatterProps extends Omit<ComponentProps<"div">, "onChange"> {
4
+ /**
5
+ * The code to format and display
6
+ */
7
+ code: string;
8
+ /**
9
+ * The programming language for syntax highlighting
10
+ */
11
+ language?: CodeLanguage;
12
+ /**
13
+ * Whether to show line numbers
14
+ */
15
+ showLineNumbers?: boolean;
16
+ /**
17
+ * Whether to enable virtualization for large files
18
+ */
19
+ virtualized?: boolean;
20
+ /**
21
+ * Height of the code container (required for virtualization)
22
+ */
23
+ height?: number;
24
+ /**
25
+ * Performance metrics detail level.
26
+ */
27
+ performance?: "none" | "summary" | "detailed";
28
+ /**
29
+ * Maximum height before scrolling is enabled
30
+ */
31
+ maxHeight?: number;
32
+ /**
33
+ * Additional CSS classes for the container
34
+ */
35
+ className?: string;
36
+ }
37
+ /**
38
+ * Enhanced code formatter component with syntax highlighting and virtualization
39
+ *
40
+ * Features:
41
+ * - Syntax highlighting for multiple languages
42
+ * - Virtualization for large files (>50 lines)
43
+ * - Performance metrics display
44
+ * - Line numbers support
45
+ * - Responsive design
46
+ */
47
+ export declare function CodeFormatter({ code, language, showLineNumbers, virtualized, height, performance, maxHeight, className, ...props }: CodeFormatterProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,47 @@
1
+ import { jsxs as u, jsx as t } from "react/jsx-runtime";
2
+ import { useMemo as C } from "react";
3
+ import { twMerge as H } from "tailwind-merge";
4
+ import { BodyNotice as I } from "./BodyNotice.js";
5
+ import { PerformanceMetrics as x } from "./PerformanceMetrics.js";
6
+ import { LINE_HEIGHT as a, VIRTUALIZATION_THRESHOLD as D, VirtualizedCodeView as M } from "./VirtualizedCodeView.js";
7
+ import { useCodeHighlighting as T } from "./useCodeHighlighting.js";
8
+ const y = 24;
9
+ function G({
10
+ code: s,
11
+ language: m = "text",
12
+ showLineNumbers: l = !1,
13
+ virtualized: o = !0,
14
+ height: r = 400,
15
+ performance: n = "none",
16
+ maxHeight: h = 600,
17
+ className: d,
18
+ ...c
19
+ }) {
20
+ const g = n !== "none", f = n === "detailed", { formattedContent: i, lines: e, highlightLine: p, tooLargeToHighlight: b } = T(s, m), w = C(
21
+ () => ({
22
+ lineCount: e.length,
23
+ characterCount: i.length,
24
+ isVirtualized: o && e.length > D,
25
+ visibleItemCount: o ? Math.min(Math.floor(r / a), e.length) : void 0
26
+ }),
27
+ [i, e, o, r]
28
+ ), N = o ? r : Math.min(e.length * a + y, h);
29
+ return /* @__PURE__ */ u("div", { className: H("border border-gray-200 rounded-md overflow-hidden bg-white", d), ...c, children: [
30
+ g && /* @__PURE__ */ t("div", { className: "px-3 py-2 bg-gray-50 border-b border-gray-200", children: /* @__PURE__ */ t(x, { data: w, showDetails: f }) }),
31
+ b && /* @__PURE__ */ t(I, { children: "Too large to highlight: shown as plain text." }),
32
+ /* @__PURE__ */ t("div", { className: "relative", children: /* @__PURE__ */ t(
33
+ M,
34
+ {
35
+ lines: e,
36
+ highlightLine: p,
37
+ containerHeight: N,
38
+ showLineNumbers: l,
39
+ virtualized: o,
40
+ className: "p-3"
41
+ }
42
+ ) })
43
+ ] });
44
+ }
45
+ export {
46
+ G as CodeFormatter
47
+ };
@@ -0,0 +1,9 @@
1
+ import type { HttpHeader } from "../../Models/Http/headers.js";
2
+ import { type ComponentProps } from "react";
3
+ export type { HttpHeader };
4
+ export interface HeadersDisplayProps extends ComponentProps<"div"> {
5
+ /** Rendered in the order given, one row per occurrence. Never sorted, grouped or deduplicated. */
6
+ headers: HttpHeader[];
7
+ className?: string;
8
+ }
9
+ export declare function HeadersDisplay({ headers, className, ...props }: HeadersDisplayProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import "react";
3
+ import { twMerge as l } from "tailwind-merge";
4
+ function d({ headers: r, className: t, ...a }) {
5
+ return r.length === 0 ? /* @__PURE__ */ e("div", { className: l("text-gray-500 text-xs italic", t), ...a, children: "No headers" }) : /* @__PURE__ */ e("div", { className: l("font-mono text-xs", t), ...a, children: r.map(({ name: i, value: n }, c) => (
6
+ // Position is the only stable identity: the same name may legitimately appear many times.
7
+ /* @__PURE__ */ s("div", { className: "flex", children: [
8
+ /* @__PURE__ */ s("span", { className: "text-gray-600 mr-2", children: [
9
+ i,
10
+ ":"
11
+ ] }),
12
+ /* @__PURE__ */ e("span", { className: "text-gray-900 break-all", children: n })
13
+ ] }, `${c}-${i}`)
14
+ )) });
15
+ }
16
+ export {
17
+ d as HeadersDisplay
18
+ };
@@ -0,0 +1,27 @@
1
+ import { type ComponentProps } from "react";
2
+ export interface JsonTreeViewProps extends Omit<ComponentProps<"div">, "onChange"> {
3
+ /**
4
+ * The JSON data to display
5
+ */
6
+ data: unknown;
7
+ /**
8
+ * Whether nodes should be initially expanded
9
+ */
10
+ initiallyExpanded?: boolean;
11
+ /**
12
+ * Maximum nesting depth to show expanded (after this depth, nodes will be collapsed)
13
+ */
14
+ expandedDepth?: number;
15
+ /**
16
+ * Callback when a value is clicked
17
+ */
18
+ onValueClick?: (path: string, value: unknown) => void;
19
+ /**
20
+ * CSS class for the container
21
+ */
22
+ className?: string;
23
+ }
24
+ /**
25
+ * Tree View component for JSON data
26
+ */
27
+ export declare function JsonTreeView({ data, initiallyExpanded, expandedDepth, onValueClick, className, ...props }: JsonTreeViewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,149 @@
1
+ import { jsx as t, jsxs as s, Fragment as O } from "react/jsx-runtime";
2
+ import { useState as S } from "react";
3
+ import { twMerge as j } from "tailwind-merge";
4
+ const N = 64;
5
+ function I({
6
+ data: r,
7
+ initiallyExpanded: u = !1,
8
+ expandedDepth: o = 1,
9
+ onValueClick: l,
10
+ className: i,
11
+ ...a
12
+ }) {
13
+ let n;
14
+ try {
15
+ n = typeof r == "string" ? JSON.parse(r) : r;
16
+ } catch (d) {
17
+ console.error("Failed to parse JSON string:", d), n = { error: "Invalid JSON data" };
18
+ }
19
+ return /* @__PURE__ */ t(
20
+ "div",
21
+ {
22
+ className: j("font-mono text-sm text-gray-800 p-4 bg-white rounded-md border border-gray-200", i),
23
+ ...a,
24
+ children: /* @__PURE__ */ t(
25
+ f,
26
+ {
27
+ data: n,
28
+ name: "root",
29
+ path: "$",
30
+ initiallyExpanded: u,
31
+ expandedDepth: o,
32
+ depth: 0,
33
+ onValueClick: l
34
+ }
35
+ )
36
+ }
37
+ );
38
+ }
39
+ function f({ data: r, name: u, path: o, initiallyExpanded: l, expandedDepth: i, depth: a, onValueClick: n }) {
40
+ const d = l || a < i, [m, x] = S(d), e = A(r), h = e === "object" ? Object.keys(r).length : e === "array" ? r.length : null, b = a >= N && !!h, w = () => {
41
+ x(!m);
42
+ }, $ = () => {
43
+ e !== "object" && e !== "array" && n && n(o, r);
44
+ }, v = () => {
45
+ switch (e) {
46
+ case "string":
47
+ return "text-green-700";
48
+ case "number":
49
+ return "text-blue-600";
50
+ case "boolean":
51
+ return "text-purple-600";
52
+ case "null":
53
+ return "text-gray-500 italic";
54
+ default:
55
+ return "";
56
+ }
57
+ }, T = () => {
58
+ switch (e) {
59
+ case "string":
60
+ return `"${r}"`;
61
+ case "null":
62
+ return "null";
63
+ default:
64
+ return String(r);
65
+ }
66
+ }, J = () => {
67
+ if (e === "object") {
68
+ const p = r;
69
+ return Object.keys(p).map((c) => /* @__PURE__ */ t("div", { className: "ml-4 my-1", children: /* @__PURE__ */ t(
70
+ f,
71
+ {
72
+ data: p[c],
73
+ name: c,
74
+ path: `${o}.${c}`,
75
+ initiallyExpanded: l,
76
+ expandedDepth: i,
77
+ depth: a + 1,
78
+ onValueClick: n
79
+ }
80
+ ) }, c));
81
+ } else if (e === "array")
82
+ return r.map((c, g) => /* @__PURE__ */ t("div", { className: "ml-4 my-1", children: /* @__PURE__ */ t(
83
+ f,
84
+ {
85
+ data: c,
86
+ name: `${g}`,
87
+ path: `${o}[${g}]`,
88
+ initiallyExpanded: l,
89
+ expandedDepth: i,
90
+ depth: a + 1,
91
+ onValueClick: n
92
+ }
93
+ ) }, g));
94
+ return null;
95
+ }, y = o === "$" ? "" : u;
96
+ return /* @__PURE__ */ s("div", { className: "node", children: [
97
+ /* @__PURE__ */ s("div", { className: "flex items-start", children: [
98
+ b ? /* @__PURE__ */ t("span", { className: "mr-1 inline-block w-4" }) : e === "object" || e === "array" ? /* @__PURE__ */ t("button", { type: "button", onClick: w, className: "mr-1 inline-block w-4 text-gray-500 focus:outline-none", children: m ? "▼" : "►" }) : /* @__PURE__ */ t("span", { className: "mr-1 inline-block w-4" }),
99
+ y && /* @__PURE__ */ s("span", { className: "mr-1 font-semibold", children: [
100
+ y,
101
+ ":"
102
+ ] }),
103
+ e === "object" || e === "array" ? /* @__PURE__ */ s("span", { children: [
104
+ e === "object" ? "{" : "[",
105
+ b ? /* @__PURE__ */ s("span", { className: "text-gray-500", title: `Maximum depth of ${N} levels reached`, children: [
106
+ " ",
107
+ "…"
108
+ ] }) : !m && /* @__PURE__ */ s("span", { className: "text-gray-500", children: [
109
+ " ",
110
+ h,
111
+ " ",
112
+ e === "object" ? "properties" : "items",
113
+ " ",
114
+ "}"
115
+ ] })
116
+ ] }) : /* @__PURE__ */ t(
117
+ "span",
118
+ {
119
+ className: j(v(), n && "cursor-pointer hover:underline"),
120
+ onClick: $,
121
+ children: T()
122
+ }
123
+ )
124
+ ] }),
125
+ m && !b && (e === "object" || e === "array") && /* @__PURE__ */ s(O, { children: [
126
+ /* @__PURE__ */ t("div", { children: J() }),
127
+ /* @__PURE__ */ t("div", { className: "ml-4", children: e === "object" ? "}" : "]" })
128
+ ] })
129
+ ] });
130
+ }
131
+ function A(r) {
132
+ if (r === null) return "null";
133
+ if (Array.isArray(r)) return "array";
134
+ switch (typeof r) {
135
+ case "string":
136
+ return "string";
137
+ case "number":
138
+ return "number";
139
+ case "boolean":
140
+ return "boolean";
141
+ case "object":
142
+ return "object";
143
+ default:
144
+ return "null";
145
+ }
146
+ }
147
+ export {
148
+ I as JsonTreeView
149
+ };
@@ -0,0 +1,27 @@
1
+ export interface PerformanceMetricsData {
2
+ /** Number of lines in the content */
3
+ lineCount: number;
4
+ /** Total character count */
5
+ characterCount: number;
6
+ /** Whether virtualization is active */
7
+ isVirtualized: boolean;
8
+ /** Number of visible items when virtualized */
9
+ visibleItemCount?: number;
10
+ }
11
+ export interface PerformanceMetricsProps {
12
+ /** Performance data to display */
13
+ data: PerformanceMetricsData;
14
+ /** Whether to show detailed metrics */
15
+ showDetails?: boolean;
16
+ /** Additional CSS classes */
17
+ className?: string;
18
+ }
19
+ /**
20
+ * Formats file size in human-readable format
21
+ */
22
+ export declare function formatFileSize(bytes: number): string;
23
+ /**
24
+ * Component for displaying code formatting performance metrics
25
+ * Useful for debugging and monitoring large file performance
26
+ */
27
+ export declare const PerformanceMetrics: import("react").NamedExoticComponent<PerformanceMetricsProps>;
@@ -0,0 +1,29 @@
1
+ import { jsxs as r, jsx as n } from "react/jsx-runtime";
2
+ import { memo as m } from "react";
3
+ function d(e) {
4
+ if (e === 0) return "0 B";
5
+ const t = 1024, a = ["B", "KB", "MB"], i = Math.floor(Math.log(e) / Math.log(t));
6
+ return `${parseFloat((e / Math.pow(t, i)).toFixed(1))} ${a[i]}`;
7
+ }
8
+ const f = m(({ data: e, showDetails: t = !1, className: a = "" }) => {
9
+ const { lineCount: i, characterCount: o, isVirtualized: s, visibleItemCount: l } = e, c = d(o);
10
+ return /* @__PURE__ */ r("div", { className: `text-xs text-gray-500 ${a}`, children: [
11
+ /* @__PURE__ */ r("div", { className: "flex gap-4 items-center", children: [
12
+ /* @__PURE__ */ r("span", { children: [
13
+ i,
14
+ " lines"
15
+ ] }),
16
+ /* @__PURE__ */ n("span", { children: c }),
17
+ s && /* @__PURE__ */ r("span", { className: "text-blue-600", children: [
18
+ "Virtualized ",
19
+ l && `(${l} visible)`
20
+ ] })
21
+ ] }),
22
+ t && /* @__PURE__ */ n("div", { className: "mt-1 flex gap-4 text-gray-400", children: s && /* @__PURE__ */ n("span", { children: "Virtual rendering enabled" }) })
23
+ ] });
24
+ });
25
+ f.displayName = "PerformanceMetrics";
26
+ export {
27
+ f as PerformanceMetrics,
28
+ d as formatFileSize
29
+ };
@@ -0,0 +1,11 @@
1
+ import type { refractor } from "refractor/core";
2
+ /** The syntax tree refractor produces (a hast `Root`). */
3
+ export type SyntaxTree = ReturnType<typeof refractor.highlight>;
4
+ export interface SyntaxHighlighterProps {
5
+ /** The syntax tree to render */
6
+ ast: SyntaxTree;
7
+ }
8
+ /**
9
+ * Renders a syntax tree as inline tokens, to be placed inside a code line.
10
+ */
11
+ export declare function SyntaxHighlighter({ ast }: SyntaxHighlighterProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { jsx as n, Fragment as m } from "react/jsx-runtime";
2
+ function a(r, t) {
3
+ if (r.type === "text")
4
+ return r.value;
5
+ if (r.type === "element") {
6
+ const { properties: e, children: i } = r, s = Array.isArray(e.className) ? e.className.join(" ") : String(e.className ?? "");
7
+ return /* @__PURE__ */ n("span", { className: s, children: i.map((l, c) => a(l, `${t}-${c}`)) }, t);
8
+ }
9
+ return null;
10
+ }
11
+ function p({ ast: r }) {
12
+ return /* @__PURE__ */ n(m, { children: r.children.map((t, e) => a(t, `root-${e}`)) });
13
+ }
14
+ export {
15
+ p as SyntaxHighlighter
16
+ };
@@ -0,0 +1,24 @@
1
+ import { type SyntaxTree } from "./SyntaxHighlighter.js";
2
+ /** Above this many lines the view only draws the lines in view. */
3
+ export declare const VIRTUALIZATION_THRESHOLD = 50;
4
+ /** Height of a code line in pixels (`text-xs` with `leading-5`). */
5
+ export declare const LINE_HEIGHT = 20;
6
+ export interface VirtualizedCodeViewProps {
7
+ /** The formatted content, one entry per line */
8
+ lines: string[];
9
+ /** Highlights one line; lines are drawn as plain text without it */
10
+ highlightLine?: (line: string) => SyntaxTree | null;
11
+ /** Height of the container in pixels */
12
+ containerHeight: number;
13
+ /** Whether to show line numbers */
14
+ showLineNumbers?: boolean;
15
+ /** Whether to draw only the lines in view above `VIRTUALIZATION_THRESHOLD` lines */
16
+ virtualized?: boolean;
17
+ /** Additional CSS classes */
18
+ className?: string;
19
+ }
20
+ /**
21
+ * Renders code line by line, highlighting and drawing only the lines in view
22
+ * when there are many. Short bodies are drawn whole through the same path.
23
+ */
24
+ export declare const VirtualizedCodeView: import("react").NamedExoticComponent<VirtualizedCodeViewProps>;
@@ -0,0 +1,47 @@
1
+ import { jsxs as V, jsx as e } from "react/jsx-runtime";
2
+ import { memo as y, useMemo as p } from "react";
3
+ import { SyntaxHighlighter as T } from "./SyntaxHighlighter.js";
4
+ import { useVirtualization as S } from "./useVirtualization.js";
5
+ const z = 50, I = 20, H = y(
6
+ ({ lines: t, highlightLine: r, containerHeight: o, showLineNumbers: s = !1, virtualized: a = !0, className: h = "" }) => {
7
+ const u = p(
8
+ () => ({
9
+ itemHeight: I,
10
+ containerHeight: o,
11
+ overscan: 10,
12
+ virtualizationThreshold: a ? z : Number.POSITIVE_INFINITY
13
+ }),
14
+ [o, a]
15
+ ), { isVirtualized: l, startIndex: i, endIndex: n, totalHeight: x, offsetY: f, onScroll: v } = S(
16
+ t.length,
17
+ u
18
+ ), g = p(
19
+ () => t.slice(i, n + 1).map((d, N) => {
20
+ const m = i + N, c = r?.(d);
21
+ return /* @__PURE__ */ V("div", { className: "font-mono text-xs leading-5 whitespace-pre", style: { height: I }, children: [
22
+ s && /* @__PURE__ */ e("span", { className: "text-gray-500 select-none mr-3", children: String(m + 1).padStart(4, " ") }),
23
+ c ? /* @__PURE__ */ e(T, { ast: c }) : d
24
+ ] }, m);
25
+ }),
26
+ [t, i, n, r, s]
27
+ );
28
+ return /* @__PURE__ */ e(
29
+ "div",
30
+ {
31
+ className: `overflow-auto ${h}`,
32
+ style: { height: o },
33
+ onScroll: v,
34
+ tabIndex: 0,
35
+ role: "group",
36
+ "aria-label": "Code",
37
+ children: /* @__PURE__ */ e("div", { style: l ? { height: x, position: "relative" } : void 0, children: /* @__PURE__ */ e("div", { style: l ? { transform: `translateY(${f}px)` } : void 0, children: g }) })
38
+ }
39
+ );
40
+ }
41
+ );
42
+ H.displayName = "VirtualizedCodeView";
43
+ export {
44
+ I as LINE_HEIGHT,
45
+ z as VIRTUALIZATION_THRESHOLD,
46
+ H as VirtualizedCodeView
47
+ };
@@ -0,0 +1,6 @@
1
+ /** Above this many characters a body is shown as plain text: highlighting one long line blocks the main thread. */
2
+ export declare const HIGHLIGHT_CAP: number;
3
+ /** Above this many characters a body is not reformatted, and a message view shows a preview instead. */
4
+ export declare const FORMAT_CAP: number;
5
+ /** Number of characters a preview shows. */
6
+ export declare const PREVIEW_SIZE: number;
@@ -0,0 +1,6 @@
1
+ const o = 102400, t = 2097152, I = 65536;
2
+ export {
3
+ t as FORMAT_CAP,
4
+ o as HIGHLIGHT_CAP,
5
+ I as PREVIEW_SIZE
6
+ };
@@ -0,0 +1,8 @@
1
+ export { CodeFormatter, type CodeFormatterProps } from "./CodeFormatter.js";
2
+ export { JsonTreeView, type JsonTreeViewProps } from "./JsonTreeView.js";
3
+ export { HeadersDisplay, type HeadersDisplayProps } from "./HeadersDisplay.js";
4
+ export type { CodeLanguage } from "./useCodeHighlighting.js";
5
+ export { SyntaxHighlighter, type SyntaxHighlighterProps } from "./SyntaxHighlighter.js";
6
+ export { VirtualizedCodeView, type VirtualizedCodeViewProps } from "./VirtualizedCodeView.js";
7
+ export { BodyNotice, type BodyNoticeProps } from "./BodyNotice.js";
8
+ export { PerformanceMetrics, type PerformanceMetricsProps } from "./PerformanceMetrics.js";