@perses-dev/loki-plugin 0.1.0 → 0.1.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 (346) hide show
  1. package/LICENSE +201 -0
  2. package/__mf/css/async/1320.7ad02b85.css +1 -0
  3. package/__mf/css/async/2341.7ad02b85.css +1 -0
  4. package/__mf/css/async/9479.7ad02b85.css +1 -0
  5. package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
  6. package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
  7. package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
  8. package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
  9. package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
  10. package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
  11. package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
  12. package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
  13. package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
  14. package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
  15. package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
  16. package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
  17. package/__mf/js/Loki.e3bb11f6.js +6 -0
  18. package/__mf/js/async/1320.ca6d65b6.js +2 -0
  19. package/__mf/js/async/1320.ca6d65b6.js.LICENSE.txt +9 -0
  20. package/__mf/js/async/1540.6b797827.js +74 -0
  21. package/__mf/js/async/1964.7b2e7223.js +2 -0
  22. package/__mf/js/async/1964.7b2e7223.js.LICENSE.txt +9 -0
  23. package/__mf/js/async/2292.35c2eeec.js +2 -0
  24. package/__mf/js/async/2292.35c2eeec.js.LICENSE.txt +24 -0
  25. package/__mf/js/async/2448.6a132c1c.js +10 -0
  26. package/__mf/js/async/2448.6a132c1c.js.LICENSE.txt +17 -0
  27. package/__mf/js/async/2470.32c642b9.js +7 -0
  28. package/__mf/js/async/2470.32c642b9.js.LICENSE.txt +21 -0
  29. package/__mf/js/async/2651.ef335482.js +1 -0
  30. package/__mf/js/async/282.3d82e785.js +1 -0
  31. package/__mf/js/async/3224.b1170acc.js +1 -0
  32. package/__mf/js/async/3246.240e9404.js +1 -0
  33. package/__mf/js/async/3413.6dd92cfd.js +1 -0
  34. package/__mf/js/async/3431.2270637c.js +1 -0
  35. package/__mf/js/async/3849.c4035be2.js +1 -0
  36. package/__mf/js/async/3863.16343b76.js +2 -0
  37. package/__mf/js/async/3863.16343b76.js.LICENSE.txt +9 -0
  38. package/__mf/js/async/3869.4e06bfcb.js +2 -0
  39. package/__mf/js/async/3869.4e06bfcb.js.LICENSE.txt +9 -0
  40. package/__mf/js/async/3960.6091bb00.js +2 -0
  41. package/__mf/js/async/3960.6091bb00.js.LICENSE.txt +8 -0
  42. package/__mf/js/async/3980.08ab4aef.js +2 -0
  43. package/__mf/js/async/3980.08ab4aef.js.LICENSE.txt +9 -0
  44. package/__mf/js/async/4075.ea5435c6.js +1 -0
  45. package/__mf/js/async/4168.645bbaa1.js +2 -0
  46. package/__mf/js/async/4238.ac5f0a30.js +1 -0
  47. package/__mf/js/async/4269.b4d0f49d.js +2 -0
  48. package/__mf/js/async/4269.b4d0f49d.js.LICENSE.txt +9 -0
  49. package/__mf/js/async/4368.438b431f.js +2 -0
  50. package/__mf/js/async/4368.438b431f.js.LICENSE.txt +15 -0
  51. package/__mf/js/async/4421.fef63995.js +1 -0
  52. package/__mf/js/async/4687.1af57d71.js +2 -0
  53. package/__mf/js/async/4687.1af57d71.js.LICENSE.txt +9 -0
  54. package/__mf/js/async/4693.ba67a5aa.js +1 -0
  55. package/__mf/js/async/5214.fee648bb.js +1 -0
  56. package/__mf/js/async/5409.ff95cf63.js +1 -0
  57. package/__mf/js/async/5780.d837c3cd.js +1 -0
  58. package/__mf/js/async/5876.5618763d.js +2 -0
  59. package/__mf/js/async/5876.5618763d.js.LICENSE.txt +21 -0
  60. package/__mf/js/async/592.269748ce.js +1 -0
  61. package/__mf/js/async/5981.a46c5157.js +2 -0
  62. package/__mf/js/async/5981.a46c5157.js.LICENSE.txt +8 -0
  63. package/__mf/js/async/6292.9997ca36.js +1 -0
  64. package/__mf/js/async/6333.01fb6457.js +2 -0
  65. package/__mf/js/async/6333.01fb6457.js.LICENSE.txt +9 -0
  66. package/__mf/js/async/6377.9f308c7f.js +2 -0
  67. package/__mf/js/async/6377.9f308c7f.js.LICENSE.txt +32 -0
  68. package/__mf/js/async/6569.f33ecbef.js +1 -0
  69. package/__mf/js/async/6664.078084ff.js +28 -0
  70. package/__mf/js/async/6770.ba5a38f3.js +1 -0
  71. package/__mf/js/async/694.c25a1f84.js +1 -0
  72. package/__mf/js/async/7152.e8100fb6.js +73 -0
  73. package/__mf/js/async/7152.e8100fb6.js.LICENSE.txt +19 -0
  74. package/__mf/js/async/7376.0459aaf7.js +1 -0
  75. package/__mf/js/async/738.a16c93b6.js +1 -0
  76. package/__mf/js/async/7740.6f193fac.js +1 -0
  77. package/__mf/js/async/8216.d9cc6234.js +1 -0
  78. package/__mf/js/async/8488.5b4b7170.js +1 -0
  79. package/__mf/js/async/8537.dc791586.js +1 -0
  80. package/__mf/js/async/9173.75bbe78a.js +2 -0
  81. package/__mf/js/async/9173.75bbe78a.js.LICENSE.txt +19 -0
  82. package/__mf/js/async/9479.f74b4605.js +1 -0
  83. package/__mf/js/async/9654.575f5449.js +37 -0
  84. package/__mf/js/async/__federation_expose_LogsTable.3952e904.js +2 -0
  85. package/__mf/js/async/__federation_expose_LogsTable.3952e904.js.LICENSE.txt +9 -0
  86. package/__mf/js/async/__federation_expose_LokiDatasource.5fbd8f68.js +2 -0
  87. package/__mf/js/async/__federation_expose_LokiDatasource.5fbd8f68.js.LICENSE.txt +9 -0
  88. package/__mf/js/async/__federation_expose_LokiLogQuery.0720038a.js +1 -0
  89. package/__mf/js/async/__federation_expose_LokiTimeSeriesQuery.8c7f7602.js +1 -0
  90. package/__mf/js/main.a5b9ede8.js +6 -0
  91. package/lib/bootstrap.d.ts +2 -0
  92. package/lib/bootstrap.d.ts.map +1 -0
  93. package/lib/bootstrap.js +7 -0
  94. package/lib/bootstrap.js.map +1 -0
  95. package/lib/cjs/bootstrap.js +14 -0
  96. package/lib/cjs/components/index.js +23 -0
  97. package/lib/cjs/components/logql-editor.js +110 -0
  98. package/lib/cjs/components/logql-extension.js +55 -0
  99. package/lib/cjs/components/logql-highlight.js +40 -0
  100. package/lib/cjs/datasources/index.js +30 -0
  101. package/lib/cjs/datasources/loki-datasource/LokiDatasource.js +77 -0
  102. package/lib/cjs/datasources/loki-datasource/LokiDatasourceEditor.js +83 -0
  103. package/lib/cjs/datasources/loki-datasource/index.js +32 -0
  104. package/lib/cjs/datasources/loki-datasource/loki-datasource-types.js +16 -0
  105. package/lib/cjs/env.d.js +2 -0
  106. package/lib/cjs/getPluginModule.js +27 -0
  107. package/lib/cjs/index-federation.js +43 -0
  108. package/lib/cjs/index.js +28 -0
  109. package/lib/cjs/model/index.js +31 -0
  110. package/lib/cjs/model/loki-client-types.js +16 -0
  111. package/lib/cjs/model/loki-client.js +198 -0
  112. package/lib/cjs/model/loki-data-types.js +16 -0
  113. package/lib/cjs/model/loki-selectors.js +47 -0
  114. package/lib/cjs/panels/index.js +30 -0
  115. package/lib/cjs/panels/logstable/LogsTable.js +41 -0
  116. package/lib/cjs/panels/logstable/LogsTableComponent.js +43 -0
  117. package/lib/cjs/panels/logstable/LogsTableSettingsEditor.js +70 -0
  118. package/lib/cjs/panels/logstable/components/EmptyLogsState.js +49 -0
  119. package/lib/cjs/panels/logstable/components/LogRow/LogRow.js +158 -0
  120. package/lib/cjs/panels/logstable/components/LogRow/LogTimestamp.js +44 -0
  121. package/lib/cjs/panels/logstable/components/LogRow/LogsLabelsTable.js +74 -0
  122. package/lib/cjs/panels/logstable/components/LogRow/LogsStyles.js +77 -0
  123. package/lib/cjs/panels/logstable/components/LogRow/index.js +37 -0
  124. package/lib/cjs/panels/logstable/components/LogsList.js +44 -0
  125. package/lib/cjs/panels/logstable/components/VirtualizedLogsList.js +63 -0
  126. package/lib/cjs/panels/logstable/components/index.js +23 -0
  127. package/lib/cjs/panels/logstable/components/utils.js +39 -0
  128. package/lib/cjs/panels/logstable/hooks/useExpandedRows.js +45 -0
  129. package/lib/cjs/panels/logstable/hooks/useSeverity.js +43 -0
  130. package/lib/cjs/panels/logstable/index.js +33 -0
  131. package/lib/cjs/panels/logstable/logs-types.js +16 -0
  132. package/lib/cjs/queries/constants.js +22 -0
  133. package/lib/cjs/queries/index.js +31 -0
  134. package/lib/cjs/queries/loki-log-query/LokiLogQuery.js +31 -0
  135. package/lib/cjs/queries/loki-log-query/LokiLogQueryEditor.js +157 -0
  136. package/lib/cjs/queries/loki-log-query/get-loki-log-data.js +74 -0
  137. package/lib/cjs/queries/loki-log-query/index.js +21 -0
  138. package/lib/cjs/queries/loki-log-query/log-query-plugin-interface.js +4 -0
  139. package/lib/cjs/queries/loki-log-query/loki-log-query-types.js +4 -0
  140. package/lib/cjs/queries/loki-time-series-query/LokiTimeSeriesQuery.js +43 -0
  141. package/lib/cjs/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.js +118 -0
  142. package/lib/cjs/queries/loki-time-series-query/get-loki-time-series-data.js +120 -0
  143. package/lib/cjs/queries/loki-time-series-query/index.js +33 -0
  144. package/lib/cjs/queries/loki-time-series-query/loki-time-series-query-types.js +16 -0
  145. package/lib/cjs/setup-tests.js +7 -0
  146. package/lib/components/index.d.ts +3 -0
  147. package/lib/components/index.d.ts.map +1 -0
  148. package/lib/components/index.js +15 -0
  149. package/lib/components/index.js.map +1 -0
  150. package/lib/components/logql-editor.d.ts +5 -0
  151. package/lib/components/logql-editor.d.ts.map +1 -0
  152. package/lib/components/logql-editor.js +61 -0
  153. package/lib/components/logql-editor.js.map +1 -0
  154. package/lib/components/logql-extension.d.ts +4 -0
  155. package/lib/components/logql-extension.d.ts.map +1 -0
  156. package/lib/components/logql-extension.js +47 -0
  157. package/lib/components/logql-extension.js.map +1 -0
  158. package/lib/components/logql-highlight.d.ts +2 -0
  159. package/lib/components/logql-highlight.d.ts.map +1 -0
  160. package/lib/components/logql-highlight.js +32 -0
  161. package/lib/components/logql-highlight.js.map +1 -0
  162. package/lib/datasources/index.d.ts +2 -0
  163. package/lib/datasources/index.d.ts.map +1 -0
  164. package/lib/datasources/index.js +15 -0
  165. package/lib/datasources/index.js.map +1 -0
  166. package/lib/datasources/loki-datasource/LokiDatasource.d.ts +5 -0
  167. package/lib/datasources/loki-datasource/LokiDatasource.d.ts.map +1 -0
  168. package/lib/datasources/loki-datasource/LokiDatasource.js +69 -0
  169. package/lib/datasources/loki-datasource/LokiDatasource.js.map +1 -0
  170. package/lib/datasources/loki-datasource/LokiDatasourceEditor.d.ts +9 -0
  171. package/lib/datasources/loki-datasource/LokiDatasourceEditor.d.ts.map +1 -0
  172. package/lib/datasources/loki-datasource/LokiDatasourceEditor.js +75 -0
  173. package/lib/datasources/loki-datasource/LokiDatasourceEditor.js.map +1 -0
  174. package/lib/datasources/loki-datasource/index.d.ts +4 -0
  175. package/lib/datasources/loki-datasource/index.d.ts.map +1 -0
  176. package/lib/datasources/loki-datasource/index.js +17 -0
  177. package/lib/datasources/loki-datasource/index.js.map +1 -0
  178. package/lib/datasources/loki-datasource/loki-datasource-types.d.ts +6 -0
  179. package/lib/datasources/loki-datasource/loki-datasource-types.d.ts.map +1 -0
  180. package/lib/datasources/loki-datasource/loki-datasource-types.js +15 -0
  181. package/lib/datasources/loki-datasource/loki-datasource-types.js.map +1 -0
  182. package/lib/env.d.js +3 -0
  183. package/lib/env.d.js.map +1 -0
  184. package/lib/getPluginModule.d.ts +6 -0
  185. package/lib/getPluginModule.d.ts.map +1 -0
  186. package/lib/getPluginModule.js +16 -0
  187. package/lib/getPluginModule.js.map +1 -0
  188. package/lib/index-federation.d.ts +1 -0
  189. package/lib/index-federation.d.ts.map +1 -0
  190. package/lib/index-federation.js +3 -0
  191. package/lib/index-federation.js.map +1 -0
  192. package/lib/index.d.ts +6 -0
  193. package/lib/index.d.ts.map +1 -0
  194. package/lib/index.js +7 -0
  195. package/lib/index.js.map +1 -0
  196. package/lib/model/index.d.ts +3 -0
  197. package/lib/model/index.d.ts.map +1 -0
  198. package/lib/model/index.js +16 -0
  199. package/lib/model/index.js.map +1 -0
  200. package/lib/model/loki-client-types.d.ts +65 -0
  201. package/lib/model/loki-client-types.d.ts.map +1 -0
  202. package/lib/model/loki-client-types.js +15 -0
  203. package/lib/model/loki-client-types.js.map +1 -0
  204. package/lib/model/loki-client.d.ts +50 -0
  205. package/lib/model/loki-client.d.ts.map +1 -0
  206. package/lib/model/loki-client.js +161 -0
  207. package/lib/model/loki-client.js.map +1 -0
  208. package/lib/model/loki-data-types.d.ts +24 -0
  209. package/lib/model/loki-data-types.d.ts.map +1 -0
  210. package/lib/model/loki-data-types.js +15 -0
  211. package/lib/model/loki-data-types.js.map +1 -0
  212. package/lib/model/loki-selectors.d.ts +10 -0
  213. package/lib/model/loki-selectors.d.ts.map +1 -0
  214. package/lib/model/loki-selectors.js +25 -0
  215. package/lib/model/loki-selectors.js.map +1 -0
  216. package/lib/panels/index.d.ts +2 -0
  217. package/lib/panels/index.d.ts.map +1 -0
  218. package/lib/panels/index.js +15 -0
  219. package/lib/panels/index.js.map +1 -0
  220. package/lib/panels/logstable/LogsTable.d.ts +4 -0
  221. package/lib/panels/logstable/LogsTable.d.ts.map +1 -0
  222. package/lib/panels/logstable/LogsTable.js +33 -0
  223. package/lib/panels/logstable/LogsTable.js.map +1 -0
  224. package/lib/panels/logstable/LogsTableComponent.d.ts +4 -0
  225. package/lib/panels/logstable/LogsTableComponent.d.ts.map +1 -0
  226. package/lib/panels/logstable/LogsTableComponent.js +35 -0
  227. package/lib/panels/logstable/LogsTableComponent.js.map +1 -0
  228. package/lib/panels/logstable/LogsTableSettingsEditor.d.ts +7 -0
  229. package/lib/panels/logstable/LogsTableSettingsEditor.d.ts.map +1 -0
  230. package/lib/panels/logstable/LogsTableSettingsEditor.js +62 -0
  231. package/lib/panels/logstable/LogsTableSettingsEditor.js.map +1 -0
  232. package/lib/panels/logstable/components/EmptyLogsState.d.ts +7 -0
  233. package/lib/panels/logstable/components/EmptyLogsState.d.ts.map +1 -0
  234. package/lib/panels/logstable/components/EmptyLogsState.js +36 -0
  235. package/lib/panels/logstable/components/EmptyLogsState.js.map +1 -0
  236. package/lib/panels/logstable/components/LogRow/LogRow.d.ts +14 -0
  237. package/lib/panels/logstable/components/LogRow/LogRow.d.ts.map +1 -0
  238. package/lib/panels/logstable/components/LogRow/LogRow.js +104 -0
  239. package/lib/panels/logstable/components/LogRow/LogRow.js.map +1 -0
  240. package/lib/panels/logstable/components/LogRow/LogTimestamp.d.ts +7 -0
  241. package/lib/panels/logstable/components/LogRow/LogTimestamp.d.ts.map +1 -0
  242. package/lib/panels/logstable/components/LogRow/LogTimestamp.js +31 -0
  243. package/lib/panels/logstable/components/LogRow/LogTimestamp.js.map +1 -0
  244. package/lib/panels/logstable/components/LogRow/LogsLabelsTable.d.ts +7 -0
  245. package/lib/panels/logstable/components/LogRow/LogsLabelsTable.d.ts.map +1 -0
  246. package/lib/panels/logstable/components/LogRow/LogsLabelsTable.js +61 -0
  247. package/lib/panels/logstable/components/LogRow/LogsLabelsTable.js.map +1 -0
  248. package/lib/panels/logstable/components/LogRow/LogsStyles.d.ts +22 -0
  249. package/lib/panels/logstable/components/LogRow/LogsStyles.d.ts.map +1 -0
  250. package/lib/panels/logstable/components/LogRow/LogsStyles.js +55 -0
  251. package/lib/panels/logstable/components/LogRow/LogsStyles.js.map +1 -0
  252. package/lib/panels/logstable/components/LogRow/index.d.ts +3 -0
  253. package/lib/panels/logstable/components/LogRow/index.d.ts.map +1 -0
  254. package/lib/panels/logstable/components/LogRow/index.js +16 -0
  255. package/lib/panels/logstable/components/LogRow/index.js.map +1 -0
  256. package/lib/panels/logstable/components/LogsList.d.ts +10 -0
  257. package/lib/panels/logstable/components/LogsList.d.ts.map +1 -0
  258. package/lib/panels/logstable/components/LogsList.js +31 -0
  259. package/lib/panels/logstable/components/LogsList.js.map +1 -0
  260. package/lib/panels/logstable/components/VirtualizedLogsList.d.ts +12 -0
  261. package/lib/panels/logstable/components/VirtualizedLogsList.d.ts.map +1 -0
  262. package/lib/panels/logstable/components/VirtualizedLogsList.js +50 -0
  263. package/lib/panels/logstable/components/VirtualizedLogsList.js.map +1 -0
  264. package/lib/panels/logstable/components/index.d.ts +2 -0
  265. package/lib/panels/logstable/components/index.d.ts.map +1 -0
  266. package/lib/panels/logstable/components/index.js +15 -0
  267. package/lib/panels/logstable/components/index.js.map +1 -0
  268. package/lib/panels/logstable/components/utils.d.ts +3 -0
  269. package/lib/panels/logstable/components/utils.d.ts.map +1 -0
  270. package/lib/panels/logstable/components/utils.js +31 -0
  271. package/lib/panels/logstable/components/utils.js.map +1 -0
  272. package/lib/panels/logstable/hooks/useExpandedRows.d.ts +6 -0
  273. package/lib/panels/logstable/hooks/useExpandedRows.d.ts.map +1 -0
  274. package/lib/panels/logstable/hooks/useExpandedRows.js +37 -0
  275. package/lib/panels/logstable/hooks/useExpandedRows.js.map +1 -0
  276. package/lib/panels/logstable/hooks/useSeverity.d.ts +3 -0
  277. package/lib/panels/logstable/hooks/useSeverity.d.ts.map +1 -0
  278. package/lib/panels/logstable/hooks/useSeverity.js +35 -0
  279. package/lib/panels/logstable/hooks/useSeverity.js.map +1 -0
  280. package/lib/panels/logstable/index.d.ts +5 -0
  281. package/lib/panels/logstable/index.d.ts.map +1 -0
  282. package/lib/panels/logstable/index.js +18 -0
  283. package/lib/panels/logstable/index.js.map +1 -0
  284. package/lib/panels/logstable/logs-types.d.ts +11 -0
  285. package/lib/panels/logstable/logs-types.d.ts.map +1 -0
  286. package/lib/panels/logstable/logs-types.js +15 -0
  287. package/lib/panels/logstable/logs-types.js.map +1 -0
  288. package/lib/queries/constants.d.ts +5 -0
  289. package/lib/queries/constants.d.ts.map +1 -0
  290. package/lib/queries/constants.js +6 -0
  291. package/lib/queries/constants.js.map +1 -0
  292. package/lib/queries/index.d.ts +3 -0
  293. package/lib/queries/index.d.ts.map +1 -0
  294. package/lib/queries/index.js +16 -0
  295. package/lib/queries/index.js.map +1 -0
  296. package/lib/queries/loki-log-query/LokiLogQuery.d.ts +4 -0
  297. package/lib/queries/loki-log-query/LokiLogQuery.d.ts.map +1 -0
  298. package/lib/queries/loki-log-query/LokiLogQuery.js +23 -0
  299. package/lib/queries/loki-log-query/LokiLogQuery.js.map +1 -0
  300. package/lib/queries/loki-log-query/LokiLogQueryEditor.d.ts +7 -0
  301. package/lib/queries/loki-log-query/LokiLogQueryEditor.d.ts.map +1 -0
  302. package/lib/queries/loki-log-query/LokiLogQueryEditor.js +149 -0
  303. package/lib/queries/loki-log-query/LokiLogQueryEditor.js.map +1 -0
  304. package/lib/queries/loki-log-query/get-loki-log-data.d.ts +4 -0
  305. package/lib/queries/loki-log-query/get-loki-log-data.d.ts.map +1 -0
  306. package/lib/queries/loki-log-query/get-loki-log-data.js +66 -0
  307. package/lib/queries/loki-log-query/get-loki-log-data.js.map +1 -0
  308. package/lib/queries/loki-log-query/index.d.ts +5 -0
  309. package/lib/queries/loki-log-query/index.d.ts.map +1 -0
  310. package/lib/queries/loki-log-query/index.js +6 -0
  311. package/lib/queries/loki-log-query/index.js.map +1 -0
  312. package/lib/queries/loki-log-query/log-query-plugin-interface.d.ts +25 -0
  313. package/lib/queries/loki-log-query/log-query-plugin-interface.d.ts.map +1 -0
  314. package/lib/queries/loki-log-query/log-query-plugin-interface.js +3 -0
  315. package/lib/queries/loki-log-query/log-query-plugin-interface.js.map +1 -0
  316. package/lib/queries/loki-log-query/loki-log-query-types.d.ts +9 -0
  317. package/lib/queries/loki-log-query/loki-log-query-types.d.ts.map +1 -0
  318. package/lib/queries/loki-log-query/loki-log-query-types.js +3 -0
  319. package/lib/queries/loki-log-query/loki-log-query-types.js.map +1 -0
  320. package/lib/queries/loki-time-series-query/LokiTimeSeriesQuery.d.ts +4 -0
  321. package/lib/queries/loki-time-series-query/LokiTimeSeriesQuery.d.ts.map +1 -0
  322. package/lib/queries/loki-time-series-query/LokiTimeSeriesQuery.js +35 -0
  323. package/lib/queries/loki-time-series-query/LokiTimeSeriesQuery.js.map +1 -0
  324. package/lib/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.d.ts +7 -0
  325. package/lib/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.d.ts.map +1 -0
  326. package/lib/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.js +110 -0
  327. package/lib/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.js.map +1 -0
  328. package/lib/queries/loki-time-series-query/get-loki-time-series-data.d.ts +12 -0
  329. package/lib/queries/loki-time-series-query/get-loki-time-series-data.d.ts.map +1 -0
  330. package/lib/queries/loki-time-series-query/get-loki-time-series-data.js +112 -0
  331. package/lib/queries/loki-time-series-query/get-loki-time-series-data.js.map +1 -0
  332. package/lib/queries/loki-time-series-query/index.d.ts +5 -0
  333. package/lib/queries/loki-time-series-query/index.d.ts.map +1 -0
  334. package/lib/queries/loki-time-series-query/index.js +18 -0
  335. package/lib/queries/loki-time-series-query/index.js.map +1 -0
  336. package/lib/queries/loki-time-series-query/loki-time-series-query-types.d.ts +9 -0
  337. package/lib/queries/loki-time-series-query/loki-time-series-query-types.d.ts.map +1 -0
  338. package/lib/queries/loki-time-series-query/loki-time-series-query-types.js +15 -0
  339. package/lib/queries/loki-time-series-query/loki-time-series-query-types.js.map +1 -0
  340. package/lib/setup-tests.d.ts +2 -0
  341. package/lib/setup-tests.d.ts.map +1 -0
  342. package/lib/setup-tests.js +5 -0
  343. package/lib/setup-tests.js.map +1 -0
  344. package/mf-manifest.json +528 -0
  345. package/mf-stats.json +584 -0
  346. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface LogLabelsTableProps {
3
+ labels: Record<string, string>;
4
+ }
5
+ export declare const LogLabelsTable: React.FC<LogLabelsTableProps>;
6
+ export {};
7
+ //# sourceMappingURL=LogsLabelsTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogsLabelsTable.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/logstable/components/LogRow/LogsLabelsTable.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoDxD,CAAC"}
@@ -0,0 +1,61 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ import React from 'react';
15
+ import { Table, TableBody, TableRow, TableCell, useTheme, alpha } from '@mui/material';
16
+ export const LogLabelsTable = ({ labels })=>{
17
+ const theme = useTheme();
18
+ if (Object.keys(labels).length === 0) {
19
+ return null;
20
+ }
21
+ return /*#__PURE__*/ _jsx(Table, {
22
+ size: "small",
23
+ sx: {
24
+ border: `1px solid ${theme.palette.divider}`,
25
+ '& .MuiTableCell-root': {
26
+ border: 'none',
27
+ padding: '6px 8px',
28
+ fontSize: '12px'
29
+ }
30
+ },
31
+ children: /*#__PURE__*/ _jsx(TableBody, {
32
+ children: Object.entries(labels).map(([key, value])=>/*#__PURE__*/ _jsxs(TableRow, {
33
+ sx: {
34
+ '&:hover': {
35
+ backgroundColor: alpha(theme.palette.action.hover, 0.04)
36
+ }
37
+ },
38
+ children: [
39
+ /*#__PURE__*/ _jsx(TableCell, {
40
+ sx: {
41
+ color: theme.palette.text.secondary,
42
+ fontWeight: 500,
43
+ width: '33%'
44
+ },
45
+ children: key
46
+ }),
47
+ /*#__PURE__*/ _jsx(TableCell, {
48
+ sx: {
49
+ color: theme.palette.text.primary,
50
+ wordBreak: 'break-all',
51
+ width: '67%'
52
+ },
53
+ children: value
54
+ })
55
+ ]
56
+ }, key))
57
+ })
58
+ });
59
+ };
60
+
61
+ //# sourceMappingURL=LogsLabelsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/panels/logstable/components/LogRow/LogsLabelsTable.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React from 'react';\nimport { Table, TableBody, TableRow, TableCell, useTheme, alpha } from '@mui/material';\n\ninterface LogLabelsTableProps {\n labels: Record<string, string>;\n}\n\nexport const LogLabelsTable: React.FC<LogLabelsTableProps> = ({ labels }) => {\n const theme = useTheme();\n\n if (Object.keys(labels).length === 0) {\n return null;\n }\n\n return (\n <Table\n size=\"small\"\n sx={{\n border: `1px solid ${theme.palette.divider}`,\n '& .MuiTableCell-root': {\n border: 'none',\n padding: '6px 8px',\n fontSize: '12px',\n },\n }}\n >\n <TableBody>\n {Object.entries(labels).map(([key, value]) => (\n <TableRow\n key={key}\n sx={{\n '&:hover': {\n backgroundColor: alpha(theme.palette.action.hover, 0.04),\n },\n }}\n >\n <TableCell\n sx={{\n color: theme.palette.text.secondary,\n fontWeight: 500,\n width: '33%',\n }}\n >\n {key}\n </TableCell>\n <TableCell\n sx={{\n color: theme.palette.text.primary,\n wordBreak: 'break-all',\n width: '67%',\n }}\n >\n {value}\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n );\n};\n"],"names":["React","Table","TableBody","TableRow","TableCell","useTheme","alpha","LogLabelsTable","labels","theme","Object","keys","length","size","sx","border","palette","divider","padding","fontSize","entries","map","key","value","backgroundColor","action","hover","color","text","secondary","fontWeight","width","primary","wordBreak"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,OAAOA,WAAW,QAAQ;AAC1B,SAASC,KAAK,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,KAAK,QAAQ,gBAAgB;AAMvF,OAAO,MAAMC,iBAAgD,CAAC,EAAEC,MAAM,EAAE;IACtE,MAAMC,QAAQJ;IAEd,IAAIK,OAAOC,IAAI,CAACH,QAAQI,MAAM,KAAK,GAAG;QACpC,OAAO;IACT;IAEA,qBACE,KAACX;QACCY,MAAK;QACLC,IAAI;YACFC,QAAQ,CAAC,UAAU,EAAEN,MAAMO,OAAO,CAACC,OAAO,EAAE;YAC5C,wBAAwB;gBACtBF,QAAQ;gBACRG,SAAS;gBACTC,UAAU;YACZ;QACF;kBAEA,cAAA,KAACjB;sBACEQ,OAAOU,OAAO,CAACZ,QAAQa,GAAG,CAAC,CAAC,CAACC,KAAKC,MAAM,iBACvC,MAACpB;oBAECW,IAAI;wBACF,WAAW;4BACTU,iBAAiBlB,MAAMG,MAAMO,OAAO,CAACS,MAAM,CAACC,KAAK,EAAE;wBACrD;oBACF;;sCAEA,KAACtB;4BACCU,IAAI;gCACFa,OAAOlB,MAAMO,OAAO,CAACY,IAAI,CAACC,SAAS;gCACnCC,YAAY;gCACZC,OAAO;4BACT;sCAECT;;sCAEH,KAAClB;4BACCU,IAAI;gCACFa,OAAOlB,MAAMO,OAAO,CAACY,IAAI,CAACI,OAAO;gCACjCC,WAAW;gCACXF,OAAO;4BACT;sCAECR;;;mBAvBED;;;AA8BjB,EAAE"}
@@ -0,0 +1,22 @@
1
+ export declare const LogRowContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
+ severityColor: string;
5
+ }, {}, {}>;
6
+ export declare const LogRowContent: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
8
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
9
+ isExpandable: boolean;
10
+ time: boolean;
11
+ }, {}, {}>;
12
+ export declare const ExpandButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
13
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
14
+ }, "className" | "style" | "tabIndex" | "color" | "children" | "sx" | "disabled" | "action" | "loading" | "size" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
15
+ isExpanded: boolean;
16
+ }, {}, {}>;
17
+ export declare const LogText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
18
+ ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
19
+ }, "className" | "style" | "color" | "children" | "height" | "minHeight" | "maxHeight" | "width" | "minWidth" | "maxWidth" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "align" | "classes" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
20
+ wrap: boolean;
21
+ }, {}, {}>;
22
+ //# sourceMappingURL=LogsStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogsStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/logstable/components/LogRow/LogsStyles.tsx"],"names":[],"mappings":"AAeA,eAAO,MAAM,eAAe;;;mBAAgC,MAAM;UAK/D,CAAC;AAEJ,eAAO,MAAM,aAAa;;;kBAA+B,OAAO;UAAQ,OAAO;UAU5E,CAAC;AAEJ,eAAO,MAAM,YAAY;;;gBAAoC,OAAO;UAOjE,CAAC;AAEJ,eAAO,MAAM,OAAO;;;UAA8B,OAAO;UAgBtD,CAAC"}
@@ -0,0 +1,55 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { Box, styled, IconButton, Typography } from '@mui/material';
14
+ export const LogRowContainer = styled(Box)(({ severityColor })=>({
15
+ borderLeft: `4px solid ${severityColor}`,
16
+ transition: 'all 0.2s ease',
17
+ marginBottom: '4px',
18
+ fontFamily: '"DejaVu Sans Mono", monospace'
19
+ }));
20
+ export const LogRowContent = styled(Box)(({ theme, isExpandable })=>({
21
+ display: 'grid',
22
+ gridTemplateColumns: isExpandable ? '16px minmax(160px, max-content) 1fr' : 'minmax(160px, max-content) 1fr',
23
+ alignItems: 'flex-start',
24
+ padding: '4px 8px',
25
+ cursor: isExpandable ? 'pointer' : 'default',
26
+ gap: '12px',
27
+ '&:hover': {
28
+ backgroundColor: theme.palette.action.hover
29
+ }
30
+ }));
31
+ export const ExpandButton = styled(IconButton)(({ theme, isExpanded })=>({
32
+ padding: 0,
33
+ width: '16px',
34
+ height: '16px',
35
+ color: theme.palette.text.secondary,
36
+ transform: isExpanded ? 'rotate(90deg)' : 'rotate(0deg)',
37
+ transition: 'transform 0.2s ease'
38
+ }));
39
+ export const LogText = styled(Typography)(({ wrap })=>({
40
+ fontSize: '12px',
41
+ flex: 1,
42
+ lineHeight: 1.4,
43
+ textAlign: 'left',
44
+ ...wrap ? {
45
+ wordBreak: 'break-word',
46
+ whiteSpace: 'pre-wrap',
47
+ overflow: 'visible',
48
+ textOverflow: 'unset'
49
+ } : {
50
+ wordBreak: 'normal',
51
+ whiteSpace: 'nowrap'
52
+ }
53
+ }));
54
+
55
+ //# sourceMappingURL=LogsStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/panels/logstable/components/LogRow/LogsStyles.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { Box, styled, IconButton, Typography } from '@mui/material';\n\nexport const LogRowContainer = styled(Box)<{ severityColor: string }>(({ severityColor }) => ({\n borderLeft: `4px solid ${severityColor}`,\n transition: 'all 0.2s ease',\n marginBottom: '4px',\n fontFamily: '\"DejaVu Sans Mono\", monospace',\n}));\n\nexport const LogRowContent = styled(Box)<{ isExpandable: boolean; time: boolean }>(({ theme, isExpandable }) => ({\n display: 'grid',\n gridTemplateColumns: isExpandable ? '16px minmax(160px, max-content) 1fr' : 'minmax(160px, max-content) 1fr',\n alignItems: 'flex-start',\n padding: '4px 8px',\n cursor: isExpandable ? 'pointer' : 'default',\n gap: '12px',\n '&:hover': {\n backgroundColor: theme.palette.action.hover,\n },\n}));\n\nexport const ExpandButton = styled(IconButton)<{ isExpanded: boolean }>(({ theme, isExpanded }) => ({\n padding: 0,\n width: '16px',\n height: '16px',\n color: theme.palette.text.secondary,\n transform: isExpanded ? 'rotate(90deg)' : 'rotate(0deg)',\n transition: 'transform 0.2s ease',\n}));\n\nexport const LogText = styled(Typography)<{ wrap: boolean }>(({ wrap }) => ({\n fontSize: '12px',\n flex: 1,\n lineHeight: 1.4,\n textAlign: 'left',\n ...(wrap\n ? {\n wordBreak: 'break-word',\n whiteSpace: 'pre-wrap',\n overflow: 'visible',\n textOverflow: 'unset',\n }\n : {\n wordBreak: 'normal',\n whiteSpace: 'nowrap',\n }),\n}));\n"],"names":["Box","styled","IconButton","Typography","LogRowContainer","severityColor","borderLeft","transition","marginBottom","fontFamily","LogRowContent","theme","isExpandable","display","gridTemplateColumns","alignItems","padding","cursor","gap","backgroundColor","palette","action","hover","ExpandButton","isExpanded","width","height","color","text","secondary","transform","LogText","wrap","fontSize","flex","lineHeight","textAlign","wordBreak","whiteSpace","overflow","textOverflow"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,GAAG,EAAEC,MAAM,EAAEC,UAAU,EAAEC,UAAU,QAAQ,gBAAgB;AAEpE,OAAO,MAAMC,kBAAkBH,OAAOD,KAAgC,CAAC,EAAEK,aAAa,EAAE,GAAM,CAAA;QAC5FC,YAAY,CAAC,UAAU,EAAED,eAAe;QACxCE,YAAY;QACZC,cAAc;QACdC,YAAY;IACd,CAAA,GAAI;AAEJ,OAAO,MAAMC,gBAAgBT,OAAOD,KAA+C,CAAC,EAAEW,KAAK,EAAEC,YAAY,EAAE,GAAM,CAAA;QAC/GC,SAAS;QACTC,qBAAqBF,eAAe,wCAAwC;QAC5EG,YAAY;QACZC,SAAS;QACTC,QAAQL,eAAe,YAAY;QACnCM,KAAK;QACL,WAAW;YACTC,iBAAiBR,MAAMS,OAAO,CAACC,MAAM,CAACC,KAAK;QAC7C;IACF,CAAA,GAAI;AAEJ,OAAO,MAAMC,eAAetB,OAAOC,YAAqC,CAAC,EAAES,KAAK,EAAEa,UAAU,EAAE,GAAM,CAAA;QAClGR,SAAS;QACTS,OAAO;QACPC,QAAQ;QACRC,OAAOhB,MAAMS,OAAO,CAACQ,IAAI,CAACC,SAAS;QACnCC,WAAWN,aAAa,kBAAkB;QAC1CjB,YAAY;IACd,CAAA,GAAI;AAEJ,OAAO,MAAMwB,UAAU9B,OAAOE,YAA+B,CAAC,EAAE6B,IAAI,EAAE,GAAM,CAAA;QAC1EC,UAAU;QACVC,MAAM;QACNC,YAAY;QACZC,WAAW;QACX,GAAIJ,OACA;YACEK,WAAW;YACXC,YAAY;YACZC,UAAU;YACVC,cAAc;QAChB,IACA;YACEH,WAAW;YACXC,YAAY;QACd,CAAC;IACP,CAAA,GAAI"}
@@ -0,0 +1,3 @@
1
+ export { LogRow } from './LogRow';
2
+ export * from './LogsStyles';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/logstable/components/LogRow/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,16 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ export { LogRow } from './LogRow';
14
+ export * from './LogsStyles';
15
+
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/panels/logstable/components/LogRow/index.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport { LogRow } from './LogRow';\nexport * from './LogsStyles';\n"],"names":["LogRow"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,MAAM,QAAQ,WAAW;AAClC,cAAc,eAAe"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { LogEntry } from '../../../model/loki-data-types';
3
+ import { LogsOptions } from '../logs-types';
4
+ interface LogsListProps {
5
+ logs: LogEntry[];
6
+ spec: LogsOptions;
7
+ }
8
+ export declare const LogsList: React.FC<LogsListProps>;
9
+ export {};
10
+ //# sourceMappingURL=LogsList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogsList.d.ts","sourceRoot":"","sources":["../../../../../src/panels/logstable/components/LogsList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,UAAU,aAAa;IACrB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAQ5C,CAAC"}
@@ -0,0 +1,31 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import React from 'react';
15
+ import { useExpandedRows } from '../hooks/useExpandedRows';
16
+ import { EmptyLogsState } from './EmptyLogsState';
17
+ import { VirtualizedLogsList } from './VirtualizedLogsList';
18
+ export const LogsList = ({ logs, spec })=>{
19
+ const { expandedRows, toggleExpand } = useExpandedRows();
20
+ if (!logs.length) {
21
+ return /*#__PURE__*/ _jsx(EmptyLogsState, {});
22
+ }
23
+ return /*#__PURE__*/ _jsx(VirtualizedLogsList, {
24
+ logs: logs,
25
+ spec: spec,
26
+ expandedRows: expandedRows,
27
+ onToggleExpand: toggleExpand
28
+ });
29
+ };
30
+
31
+ //# sourceMappingURL=LogsList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/panels/logstable/components/LogsList.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React from 'react';\nimport { LogEntry } from '../../../model/loki-data-types';\nimport { LogsOptions } from '../logs-types';\nimport { useExpandedRows } from '../hooks/useExpandedRows';\nimport { EmptyLogsState } from './EmptyLogsState';\nimport { VirtualizedLogsList } from './VirtualizedLogsList';\n\ninterface LogsListProps {\n logs: LogEntry[];\n spec: LogsOptions;\n}\n\nexport const LogsList: React.FC<LogsListProps> = ({ logs, spec }) => {\n const { expandedRows, toggleExpand } = useExpandedRows();\n\n if (!logs.length) {\n return <EmptyLogsState />;\n }\n\n return <VirtualizedLogsList logs={logs} spec={spec} expandedRows={expandedRows} onToggleExpand={toggleExpand} />;\n};\n"],"names":["React","useExpandedRows","EmptyLogsState","VirtualizedLogsList","LogsList","logs","spec","expandedRows","toggleExpand","length","onToggleExpand"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,OAAOA,WAAW,QAAQ;AAG1B,SAASC,eAAe,QAAQ,2BAA2B;AAC3D,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,mBAAmB,QAAQ,wBAAwB;AAO5D,OAAO,MAAMC,WAAoC,CAAC,EAAEC,IAAI,EAAEC,IAAI,EAAE;IAC9D,MAAM,EAAEC,YAAY,EAAEC,YAAY,EAAE,GAAGP;IAEvC,IAAI,CAACI,KAAKI,MAAM,EAAE;QAChB,qBAAO,KAACP;IACV;IAEA,qBAAO,KAACC;QAAoBE,MAAMA;QAAMC,MAAMA;QAAMC,cAAcA;QAAcG,gBAAgBF;;AAClG,EAAE"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { LogEntry } from '../../../model/loki-data-types';
3
+ import { LogsOptions } from '../logs-types';
4
+ interface VirtualizedLogsListProps {
5
+ logs: LogEntry[];
6
+ spec: LogsOptions;
7
+ expandedRows: Set<number>;
8
+ onToggleExpand: (index: number) => void;
9
+ }
10
+ export declare const VirtualizedLogsList: React.FC<VirtualizedLogsListProps>;
11
+ export {};
12
+ //# sourceMappingURL=VirtualizedLogsList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VirtualizedLogsList.d.ts","sourceRoot":"","sources":["../../../../../src/panels/logstable/components/VirtualizedLogsList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,UAAU,wBAAwB;IAChC,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,IAAI,EAAE,WAAW,CAAC;IAClB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAqClE,CAAC"}
@@ -0,0 +1,50 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import React from 'react';
15
+ import { Box, useTheme } from '@mui/material';
16
+ import { Virtuoso } from 'react-virtuoso';
17
+ import { LogRow } from './LogRow/LogRow';
18
+ export const VirtualizedLogsList = ({ logs, spec, expandedRows, onToggleExpand })=>{
19
+ const theme = useTheme();
20
+ const renderLogRow = (index)=>{
21
+ const log = logs[index];
22
+ if (!log) return null;
23
+ return /*#__PURE__*/ _jsx(LogRow, {
24
+ isExpandable: spec.enableDetails,
25
+ log: log,
26
+ index: index,
27
+ isExpanded: expandedRows.has(index),
28
+ onToggle: onToggleExpand,
29
+ wrap: spec.wrap,
30
+ time: spec.time
31
+ });
32
+ };
33
+ return /*#__PURE__*/ _jsx(Box, {
34
+ sx: {
35
+ height: '100%',
36
+ backgroundColor: theme.palette.background.default,
37
+ overflow: 'hidden',
38
+ boxShadow: theme.shadows[1]
39
+ },
40
+ children: /*#__PURE__*/ _jsx(Virtuoso, {
41
+ style: {
42
+ height: '100%'
43
+ },
44
+ totalCount: logs.length,
45
+ itemContent: renderLogRow
46
+ })
47
+ });
48
+ };
49
+
50
+ //# sourceMappingURL=VirtualizedLogsList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/panels/logstable/components/VirtualizedLogsList.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React from 'react';\nimport { Box, useTheme } from '@mui/material';\nimport { Virtuoso } from 'react-virtuoso';\nimport { LogEntry } from '../../../model/loki-data-types';\nimport { LogsOptions } from '../logs-types';\nimport { LogRow } from './LogRow/LogRow';\n\ninterface VirtualizedLogsListProps {\n logs: LogEntry[];\n spec: LogsOptions;\n expandedRows: Set<number>;\n onToggleExpand: (index: number) => void;\n}\n\nexport const VirtualizedLogsList: React.FC<VirtualizedLogsListProps> = ({\n logs,\n spec,\n expandedRows,\n onToggleExpand,\n}) => {\n const theme = useTheme();\n\n const renderLogRow = (index: number) => {\n const log = logs[index];\n if (!log) return null;\n\n return (\n <LogRow\n isExpandable={spec.enableDetails}\n log={log}\n index={index}\n isExpanded={expandedRows.has(index)}\n onToggle={onToggleExpand}\n wrap={spec.wrap}\n time={spec.time}\n />\n );\n };\n\n return (\n <Box\n sx={{\n height: '100%',\n backgroundColor: theme.palette.background.default,\n overflow: 'hidden',\n boxShadow: theme.shadows[1],\n }}\n >\n <Virtuoso style={{ height: '100%' }} totalCount={logs.length} itemContent={renderLogRow} />\n </Box>\n );\n};\n"],"names":["React","Box","useTheme","Virtuoso","LogRow","VirtualizedLogsList","logs","spec","expandedRows","onToggleExpand","theme","renderLogRow","index","log","isExpandable","enableDetails","isExpanded","has","onToggle","wrap","time","sx","height","backgroundColor","palette","background","default","overflow","boxShadow","shadows","style","totalCount","length","itemContent"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,OAAOA,WAAW,QAAQ;AAC1B,SAASC,GAAG,EAAEC,QAAQ,QAAQ,gBAAgB;AAC9C,SAASC,QAAQ,QAAQ,iBAAiB;AAG1C,SAASC,MAAM,QAAQ,kBAAkB;AASzC,OAAO,MAAMC,sBAA0D,CAAC,EACtEC,IAAI,EACJC,IAAI,EACJC,YAAY,EACZC,cAAc,EACf;IACC,MAAMC,QAAQR;IAEd,MAAMS,eAAe,CAACC;QACpB,MAAMC,MAAMP,IAAI,CAACM,MAAM;QACvB,IAAI,CAACC,KAAK,OAAO;QAEjB,qBACE,KAACT;YACCU,cAAcP,KAAKQ,aAAa;YAChCF,KAAKA;YACLD,OAAOA;YACPI,YAAYR,aAAaS,GAAG,CAACL;YAC7BM,UAAUT;YACVU,MAAMZ,KAAKY,IAAI;YACfC,MAAMb,KAAKa,IAAI;;IAGrB;IAEA,qBACE,KAACnB;QACCoB,IAAI;YACFC,QAAQ;YACRC,iBAAiBb,MAAMc,OAAO,CAACC,UAAU,CAACC,OAAO;YACjDC,UAAU;YACVC,WAAWlB,MAAMmB,OAAO,CAAC,EAAE;QAC7B;kBAEA,cAAA,KAAC1B;YAAS2B,OAAO;gBAAER,QAAQ;YAAO;YAAGS,YAAYzB,KAAK0B,MAAM;YAAEC,aAAatB;;;AAGjF,EAAE"}
@@ -0,0 +1,2 @@
1
+ export { LogsList } from './LogsList';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/panels/logstable/components/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,15 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ export { LogsList } from './LogsList';
14
+
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/panels/logstable/components/index.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport { LogsList } from './LogsList';\n"],"names":["LogsList"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,QAAQ,QAAQ,aAAa"}
@@ -0,0 +1,3 @@
1
+ import { LogEntry } from '../../../model/loki-data-types';
2
+ export declare const getSeverity: (log: LogEntry) => "info" | "warn" | "error" | "debug" | "unknown";
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/panels/logstable/components/utils.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,eAAO,MAAM,WAAW,GAAI,KAAK,QAAQ,KAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAmBjF,CAAC"}
@@ -0,0 +1,31 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ export const getSeverity = (log)=>{
14
+ const message = log.line.toLowerCase();
15
+ const level = log.labels.level?.toLowerCase();
16
+ if (level) {
17
+ if (level.includes('error') || level.includes('err')) return 'error';
18
+ if (level.includes('warn')) return 'warn';
19
+ if (level.includes('info')) return 'info';
20
+ if (level.includes('debug')) return 'debug';
21
+ }
22
+ if (message.includes('error') || message.includes('exception') || message.includes('fail')) {
23
+ return 'error';
24
+ }
25
+ if (message.includes('warn')) return 'warn';
26
+ if (message.includes('info')) return 'info';
27
+ if (message.includes('debug')) return 'debug';
28
+ return 'unknown';
29
+ };
30
+
31
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/panels/logstable/components/utils.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { LogEntry } from '../../../model/loki-data-types';\n\nexport const getSeverity = (log: LogEntry): 'info' | 'warn' | 'error' | 'debug' | 'unknown' => {\n const message = log.line.toLowerCase();\n const level = log.labels.level?.toLowerCase();\n\n if (level) {\n if (level.includes('error') || level.includes('err')) return 'error';\n if (level.includes('warn')) return 'warn';\n if (level.includes('info')) return 'info';\n if (level.includes('debug')) return 'debug';\n }\n\n if (message.includes('error') || message.includes('exception') || message.includes('fail')) {\n return 'error';\n }\n if (message.includes('warn')) return 'warn';\n if (message.includes('info')) return 'info';\n if (message.includes('debug')) return 'debug';\n\n return 'unknown';\n};\n"],"names":["getSeverity","log","message","line","toLowerCase","level","labels","includes"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAIjC,OAAO,MAAMA,cAAc,CAACC;IAC1B,MAAMC,UAAUD,IAAIE,IAAI,CAACC,WAAW;IACpC,MAAMC,QAAQJ,IAAIK,MAAM,CAACD,KAAK,EAAED;IAEhC,IAAIC,OAAO;QACT,IAAIA,MAAME,QAAQ,CAAC,YAAYF,MAAME,QAAQ,CAAC,QAAQ,OAAO;QAC7D,IAAIF,MAAME,QAAQ,CAAC,SAAS,OAAO;QACnC,IAAIF,MAAME,QAAQ,CAAC,SAAS,OAAO;QACnC,IAAIF,MAAME,QAAQ,CAAC,UAAU,OAAO;IACtC;IAEA,IAAIL,QAAQK,QAAQ,CAAC,YAAYL,QAAQK,QAAQ,CAAC,gBAAgBL,QAAQK,QAAQ,CAAC,SAAS;QAC1F,OAAO;IACT;IACA,IAAIL,QAAQK,QAAQ,CAAC,SAAS,OAAO;IACrC,IAAIL,QAAQK,QAAQ,CAAC,SAAS,OAAO;IACrC,IAAIL,QAAQK,QAAQ,CAAC,UAAU,OAAO;IAEtC,OAAO;AACT,EAAE"}
@@ -0,0 +1,6 @@
1
+ export declare const useExpandedRows: () => {
2
+ expandedRows: Set<number>;
3
+ toggleExpand: (index: number) => void;
4
+ clearExpanded: () => void;
5
+ };
6
+ //# sourceMappingURL=useExpandedRows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExpandedRows.d.ts","sourceRoot":"","sources":["../../../../../src/panels/logstable/hooks/useExpandedRows.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,eAAe;;0BAGe,MAAM;;CAqBhD,CAAC"}
@@ -0,0 +1,37 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { useState, useCallback } from 'react';
14
+ export const useExpandedRows = ()=>{
15
+ const [expandedRows, setExpandedRows] = useState(new Set());
16
+ const toggleExpand = useCallback((index)=>{
17
+ setExpandedRows((prev)=>{
18
+ const newSet = new Set(prev);
19
+ if (newSet.has(index)) {
20
+ newSet.delete(index);
21
+ } else {
22
+ newSet.add(index);
23
+ }
24
+ return newSet;
25
+ });
26
+ }, []);
27
+ const clearExpanded = useCallback(()=>{
28
+ setExpandedRows(new Set());
29
+ }, []);
30
+ return {
31
+ expandedRows,
32
+ toggleExpand,
33
+ clearExpanded
34
+ };
35
+ };
36
+
37
+ //# sourceMappingURL=useExpandedRows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/panels/logstable/hooks/useExpandedRows.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { useState, useCallback } from 'react';\n\nexport const useExpandedRows = () => {\n const [expandedRows, setExpandedRows] = useState<Set<number>>(new Set());\n\n const toggleExpand = useCallback((index: number) => {\n setExpandedRows((prev) => {\n const newSet = new Set(prev);\n if (newSet.has(index)) {\n newSet.delete(index);\n } else {\n newSet.add(index);\n }\n return newSet;\n });\n }, []);\n\n const clearExpanded = useCallback(() => {\n setExpandedRows(new Set());\n }, []);\n\n return {\n expandedRows,\n toggleExpand,\n clearExpanded,\n };\n};\n"],"names":["useState","useCallback","useExpandedRows","expandedRows","setExpandedRows","Set","toggleExpand","index","prev","newSet","has","delete","add","clearExpanded"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,QAAQ,EAAEC,WAAW,QAAQ,QAAQ;AAE9C,OAAO,MAAMC,kBAAkB;IAC7B,MAAM,CAACC,cAAcC,gBAAgB,GAAGJ,SAAsB,IAAIK;IAElE,MAAMC,eAAeL,YAAY,CAACM;QAChCH,gBAAgB,CAACI;YACf,MAAMC,SAAS,IAAIJ,IAAIG;YACvB,IAAIC,OAAOC,GAAG,CAACH,QAAQ;gBACrBE,OAAOE,MAAM,CAACJ;YAChB,OAAO;gBACLE,OAAOG,GAAG,CAACL;YACb;YACA,OAAOE;QACT;IACF,GAAG,EAAE;IAEL,MAAMI,gBAAgBZ,YAAY;QAChCG,gBAAgB,IAAIC;IACtB,GAAG,EAAE;IAEL,OAAO;QACLF;QACAG;QACAO;IACF;AACF,EAAE"}
@@ -0,0 +1,3 @@
1
+ import { LogEntry } from '../../../model/loki-data-types';
2
+ export declare const useSeverityColor: (log?: LogEntry) => string;
3
+ //# sourceMappingURL=useSeverity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSeverity.d.ts","sourceRoot":"","sources":["../../../../../src/panels/logstable/hooks/useSeverity.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,eAAO,MAAM,gBAAgB,GAAI,MAAM,QAAQ,WAmB9C,CAAC"}
@@ -0,0 +1,35 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { useTheme } from '@mui/material';
14
+ import { getSeverity } from '../components/utils';
15
+ export const useSeverityColor = (log)=>{
16
+ const theme = useTheme();
17
+ if (!log) {
18
+ return theme.palette.text.secondary;
19
+ }
20
+ const severity = getSeverity(log);
21
+ switch(severity){
22
+ case 'error':
23
+ return theme.palette.error.main;
24
+ case 'warn':
25
+ return theme.palette.warning.main;
26
+ case 'info':
27
+ return theme.palette.info.main;
28
+ case 'debug':
29
+ return theme.palette.primary.main;
30
+ default:
31
+ return theme.palette.text.secondary;
32
+ }
33
+ };
34
+
35
+ //# sourceMappingURL=useSeverity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/panels/logstable/hooks/useSeverity.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { useTheme } from '@mui/material';\nimport { getSeverity } from '../components/utils';\nimport { LogEntry } from '../../../model/loki-data-types';\n\nexport const useSeverityColor = (log?: LogEntry) => {\n const theme = useTheme();\n if (!log) {\n return theme.palette.text.secondary;\n }\n const severity = getSeverity(log);\n\n switch (severity) {\n case 'error':\n return theme.palette.error.main;\n case 'warn':\n return theme.palette.warning.main;\n case 'info':\n return theme.palette.info.main;\n case 'debug':\n return theme.palette.primary.main;\n default:\n return theme.palette.text.secondary;\n }\n};\n"],"names":["useTheme","getSeverity","useSeverityColor","log","theme","palette","text","secondary","severity","error","main","warning","info","primary"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,WAAW,QAAQ,sBAAsB;AAGlD,OAAO,MAAMC,mBAAmB,CAACC;IAC/B,MAAMC,QAAQJ;IACd,IAAI,CAACG,KAAK;QACR,OAAOC,MAAMC,OAAO,CAACC,IAAI,CAACC,SAAS;IACrC;IACA,MAAMC,WAAWP,YAAYE;IAE7B,OAAQK;QACN,KAAK;YACH,OAAOJ,MAAMC,OAAO,CAACI,KAAK,CAACC,IAAI;QACjC,KAAK;YACH,OAAON,MAAMC,OAAO,CAACM,OAAO,CAACD,IAAI;QACnC,KAAK;YACH,OAAON,MAAMC,OAAO,CAACO,IAAI,CAACF,IAAI;QAChC,KAAK;YACH,OAAON,MAAMC,OAAO,CAACQ,OAAO,CAACH,IAAI;QACnC;YACE,OAAON,MAAMC,OAAO,CAACC,IAAI,CAACC,SAAS;IACvC;AACF,EAAE"}
@@ -0,0 +1,5 @@
1
+ export * from './LogsTable';
2
+ export * from './LogsTableComponent';
3
+ export * from './LogsTableSettingsEditor';
4
+ export * from './logs-types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/panels/logstable/index.ts"],"names":[],"mappings":"AAaA,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC"}
@@ -0,0 +1,18 @@
1
+ // Copyright 2025 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ export * from './LogsTable';
14
+ export * from './LogsTableComponent';
15
+ export * from './LogsTableSettingsEditor';
16
+ export * from './logs-types';
17
+
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/panels/logstable/index.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './LogsTable';\nexport * from './LogsTableComponent';\nexport * from './LogsTableSettingsEditor';\nexport * from './logs-types';\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,cAAc;AAC5B,cAAc,uBAAuB;AACrC,cAAc,4BAA4B;AAC1C,cAAc,eAAe"}
@@ -0,0 +1,11 @@
1
+ import { PanelProps } from '@perses-dev/plugin-system';
2
+ import { LokiTimeSeriesData } from '../../model/loki-data-types';
3
+ export type QueryData = LokiTimeSeriesData;
4
+ export type LogsProps = PanelProps<LogsOptions, QueryData>;
5
+ export interface LogsOptions {
6
+ direction?: 'forward' | 'backward';
7
+ wrap?: boolean;
8
+ enableDetails?: boolean;
9
+ time?: boolean;
10
+ }
11
+ //# sourceMappingURL=logs-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs-types.d.ts","sourceRoot":"","sources":["../../../../src/panels/logstable/logs-types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,MAAM,SAAS,GAAG,kBAAkB,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAE3D,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}