@perses-dev/clickhouse-plugin 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. package/README.md +41 -0
  2. package/__mf/css/async/1580.6b2b0c71.css +1 -0
  3. package/__mf/css/async/2341.6b2b0c71.css +1 -0
  4. package/__mf/css/async/6759.6b2b0c71.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/ClickHouse.99e35ca2.js +5 -0
  18. package/__mf/js/async/1580.5bd6ed40.js +2 -0
  19. package/__mf/js/async/1580.5bd6ed40.js.LICENSE.txt +9 -0
  20. package/__mf/js/async/1964.dccce52b.js +2 -0
  21. package/__mf/js/async/1964.dccce52b.js.LICENSE.txt +9 -0
  22. package/__mf/js/async/2114.27f707a0.js +1 -0
  23. package/__mf/js/async/2292.248bd1ea.js +2 -0
  24. package/__mf/js/async/2292.248bd1ea.js.LICENSE.txt +24 -0
  25. package/__mf/js/async/2417.1f135170.js +2 -0
  26. package/__mf/js/async/2417.1f135170.js.LICENSE.txt +9 -0
  27. package/__mf/js/async/2448.e42be954.js +10 -0
  28. package/__mf/js/async/2448.e42be954.js.LICENSE.txt +17 -0
  29. package/__mf/js/async/2651.3bdd6b21.js +1 -0
  30. package/__mf/js/async/3224.5735a223.js +1 -0
  31. package/__mf/js/async/3431.54fb88df.js +1 -0
  32. package/__mf/js/async/3632.f88c5ced.js +101 -0
  33. package/__mf/js/async/3863.70d46fa8.js +2 -0
  34. package/__mf/js/async/3863.70d46fa8.js.LICENSE.txt +9 -0
  35. package/__mf/js/async/3960.e0eb27f3.js +2 -0
  36. package/__mf/js/async/3960.e0eb27f3.js.LICENSE.txt +8 -0
  37. package/__mf/js/async/3980.2a6bea70.js +2 -0
  38. package/__mf/js/async/3980.2a6bea70.js.LICENSE.txt +9 -0
  39. package/__mf/js/async/4075.598f1ee5.js +1 -0
  40. package/__mf/js/async/4168.af4fa8b3.js +2 -0
  41. package/__mf/js/async/4238.8c8282dc.js +1 -0
  42. package/__mf/js/async/4269.a389e8c6.js +2 -0
  43. package/__mf/js/async/4269.a389e8c6.js.LICENSE.txt +9 -0
  44. package/__mf/js/async/4368.8468ec0a.js +2 -0
  45. package/__mf/js/async/4368.8468ec0a.js.LICENSE.txt +15 -0
  46. package/__mf/js/async/4421.de18bb66.js +1 -0
  47. package/__mf/js/async/5035.8a983cd3.js +73 -0
  48. package/__mf/js/async/5035.8a983cd3.js.LICENSE.txt +19 -0
  49. package/__mf/js/async/5214.d1943ccc.js +1 -0
  50. package/__mf/js/async/5409.c4876520.js +1 -0
  51. package/__mf/js/async/56.9997e6f8.js +1 -0
  52. package/__mf/js/async/5713.92805154.js +1 -0
  53. package/__mf/js/async/5981.f3abf3c8.js +2 -0
  54. package/__mf/js/async/5981.f3abf3c8.js.LICENSE.txt +8 -0
  55. package/__mf/js/async/6292.4311054b.js +1 -0
  56. package/__mf/js/async/6333.dfeaf029.js +2 -0
  57. package/__mf/js/async/6333.dfeaf029.js.LICENSE.txt +9 -0
  58. package/__mf/js/async/6377.6c8c4e15.js +2 -0
  59. package/__mf/js/async/6377.6c8c4e15.js.LICENSE.txt +32 -0
  60. package/__mf/js/async/6411.3873365b.js +1 -0
  61. package/__mf/js/async/6467.f4e5b898.js +1 -0
  62. package/__mf/js/async/6569.f8ee50db.js +1 -0
  63. package/__mf/js/async/6714.e4b5281a.js +2 -0
  64. package/__mf/js/async/6714.e4b5281a.js.LICENSE.txt +21 -0
  65. package/__mf/js/async/6770.e50c0d08.js +1 -0
  66. package/__mf/js/async/694.c93f9cdf.js +1 -0
  67. package/__mf/js/async/7376.c01a7f82.js +1 -0
  68. package/__mf/js/async/738.0cdf47b4.js +1 -0
  69. package/__mf/js/async/7740.b3df297f.js +1 -0
  70. package/__mf/js/async/8216.44c6334e.js +1 -0
  71. package/__mf/js/async/8465.f4c53fef.js +7 -0
  72. package/__mf/js/async/8465.f4c53fef.js.LICENSE.txt +21 -0
  73. package/__mf/js/async/8488.16a69ea5.js +1 -0
  74. package/__mf/js/async/8709.6d909ac5.js +2 -0
  75. package/__mf/js/async/8709.6d909ac5.js.LICENSE.txt +9 -0
  76. package/__mf/js/async/9173.90ba4f20.js +2 -0
  77. package/__mf/js/async/9173.90ba4f20.js.LICENSE.txt +19 -0
  78. package/__mf/js/async/9654.ab803765.js +37 -0
  79. package/__mf/js/async/__federation_expose_ClickHouseDatasource.1ef730b1.js +2 -0
  80. package/__mf/js/async/__federation_expose_ClickHouseDatasource.1ef730b1.js.LICENSE.txt +9 -0
  81. package/__mf/js/async/__federation_expose_ClickHouseLogQuery.3f312752.js +19 -0
  82. package/__mf/js/async/__federation_expose_ClickHouseTimeSeriesQuery.a3f88e6b.js +19 -0
  83. package/__mf/js/async/__federation_expose_Logs.88d56eeb.js +2 -0
  84. package/__mf/js/async/__federation_expose_Logs.88d56eeb.js.LICENSE.txt +9 -0
  85. package/__mf/js/main.b7c9a660.js +5 -0
  86. package/lib/bootstrap.d.ts +2 -0
  87. package/lib/bootstrap.d.ts.map +1 -0
  88. package/lib/bootstrap.js +19 -0
  89. package/lib/bootstrap.js.map +1 -0
  90. package/lib/cjs/bootstrap.js +26 -0
  91. package/lib/cjs/components/ClickQLEditor.js +72 -0
  92. package/lib/cjs/components/constants.js +41 -0
  93. package/lib/cjs/components/index.js +30 -0
  94. package/lib/cjs/datasources/click-house-datasource/ClickHouseDatasource.js +49 -0
  95. package/lib/cjs/datasources/click-house-datasource/ClickHouseDatasourceEditor.js +51 -0
  96. package/lib/cjs/datasources/click-house-datasource/click-house-datasource-types.js +16 -0
  97. package/lib/cjs/datasources/click-house-datasource/index.js +32 -0
  98. package/lib/cjs/datasources/index.js +30 -0
  99. package/lib/cjs/env.d.js +14 -0
  100. package/lib/cjs/getPluginModule.js +39 -0
  101. package/lib/cjs/index-federation.js +55 -0
  102. package/lib/cjs/index.js +39 -0
  103. package/lib/cjs/model/click-house-client.js +66 -0
  104. package/lib/cjs/model/click-house-data-types.js +16 -0
  105. package/lib/cjs/panels/index.js +30 -0
  106. package/lib/cjs/panels/logs/Logs.js +37 -0
  107. package/lib/cjs/panels/logs/LogsComponent.js +47 -0
  108. package/lib/cjs/panels/logs/LogsSettingsEditor.js +57 -0
  109. package/lib/cjs/panels/logs/components/EmptyLogsState.js +49 -0
  110. package/lib/cjs/panels/logs/components/LogRow/LogDetailsTable.js +71 -0
  111. package/lib/cjs/panels/logs/components/LogRow/LogRow.js +163 -0
  112. package/lib/cjs/panels/logs/components/LogRow/LogTimestamp.js +45 -0
  113. package/lib/cjs/panels/logs/components/LogRow/LogsStyles.js +77 -0
  114. package/lib/cjs/panels/logs/components/LogRow/index.js +37 -0
  115. package/lib/cjs/panels/logs/components/LogsList.js +44 -0
  116. package/lib/cjs/panels/logs/components/VirtualizedLogsList.js +60 -0
  117. package/lib/cjs/panels/logs/components/hooks/useExpandedRows.js +45 -0
  118. package/lib/cjs/panels/logs/index.js +33 -0
  119. package/lib/cjs/panels/logs/logs-types.js +16 -0
  120. package/lib/cjs/queries/click-house-log-query/ClickHouseLogQuery.js +43 -0
  121. package/lib/cjs/queries/click-house-log-query/ClickHouseLogQueryEditor.js +113 -0
  122. package/lib/cjs/queries/click-house-log-query/click-house-log-query-types.js +16 -0
  123. package/lib/cjs/queries/click-house-log-query/get-click-house-log-data.js +89 -0
  124. package/lib/cjs/queries/click-house-log-query/index.js +33 -0
  125. package/lib/cjs/queries/click-house-log-query/log-query-plugin-interface.js +4 -0
  126. package/lib/cjs/queries/click-house-time-series-query/ClickHouseQuery.js +43 -0
  127. package/lib/cjs/queries/click-house-time-series-query/ClickHouseQueryEditor.js +113 -0
  128. package/lib/cjs/queries/click-house-time-series-query/click-house-query-types.js +16 -0
  129. package/lib/cjs/queries/click-house-time-series-query/get-click-house-data.js +69 -0
  130. package/lib/cjs/queries/click-house-time-series-query/index.js +33 -0
  131. package/lib/cjs/queries/constants.js +34 -0
  132. package/lib/cjs/queries/index.js +31 -0
  133. package/lib/cjs/setup-tests.js +19 -0
  134. package/lib/components/ClickQLEditor.d.ts +5 -0
  135. package/lib/components/ClickQLEditor.d.ts.map +1 -0
  136. package/lib/components/ClickQLEditor.js +59 -0
  137. package/lib/components/ClickQLEditor.js.map +1 -0
  138. package/lib/components/constants.d.ts +2 -0
  139. package/lib/components/constants.d.ts.map +1 -0
  140. package/lib/components/constants.js +33 -0
  141. package/lib/components/constants.js.map +1 -0
  142. package/lib/components/index.d.ts +2 -0
  143. package/lib/components/index.d.ts.map +1 -0
  144. package/lib/components/index.js +15 -0
  145. package/lib/components/index.js.map +1 -0
  146. package/lib/datasources/click-house-datasource/ClickHouseDatasource.d.ts +4 -0
  147. package/lib/datasources/click-house-datasource/ClickHouseDatasource.d.ts.map +1 -0
  148. package/lib/datasources/click-house-datasource/ClickHouseDatasource.js +41 -0
  149. package/lib/datasources/click-house-datasource/ClickHouseDatasource.js.map +1 -0
  150. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.d.ts +9 -0
  151. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.d.ts.map +1 -0
  152. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.js +43 -0
  153. package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.js.map +1 -0
  154. package/lib/datasources/click-house-datasource/click-house-datasource-types.d.ts +26 -0
  155. package/lib/datasources/click-house-datasource/click-house-datasource-types.d.ts.map +1 -0
  156. package/lib/datasources/click-house-datasource/click-house-datasource-types.js +15 -0
  157. package/lib/datasources/click-house-datasource/click-house-datasource-types.js.map +1 -0
  158. package/lib/datasources/click-house-datasource/index.d.ts +4 -0
  159. package/lib/datasources/click-house-datasource/index.d.ts.map +1 -0
  160. package/lib/datasources/click-house-datasource/index.js +17 -0
  161. package/lib/datasources/click-house-datasource/index.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/env.d.js +15 -0
  167. package/lib/env.d.js.map +1 -0
  168. package/lib/getPluginModule.d.ts +6 -0
  169. package/lib/getPluginModule.d.ts.map +1 -0
  170. package/lib/getPluginModule.js +28 -0
  171. package/lib/getPluginModule.js.map +1 -0
  172. package/lib/index-federation.d.ts +1 -0
  173. package/lib/index-federation.d.ts.map +1 -0
  174. package/lib/index-federation.js +15 -0
  175. package/lib/index-federation.js.map +1 -0
  176. package/lib/index.d.ts +5 -0
  177. package/lib/index.d.ts.map +1 -0
  178. package/lib/index.js +18 -0
  179. package/lib/index.js.map +1 -0
  180. package/lib/model/click-house-client.d.ts +22 -0
  181. package/lib/model/click-house-client.d.ts.map +1 -0
  182. package/lib/model/click-house-client.js +58 -0
  183. package/lib/model/click-house-client.js.map +1 -0
  184. package/lib/model/click-house-data-types.d.ts +22 -0
  185. package/lib/model/click-house-data-types.d.ts.map +1 -0
  186. package/lib/model/click-house-data-types.js +15 -0
  187. package/lib/model/click-house-data-types.js.map +1 -0
  188. package/lib/panels/index.d.ts +2 -0
  189. package/lib/panels/index.d.ts.map +1 -0
  190. package/lib/panels/index.js +15 -0
  191. package/lib/panels/index.js.map +1 -0
  192. package/lib/panels/logs/Logs.d.ts +4 -0
  193. package/lib/panels/logs/Logs.d.ts.map +1 -0
  194. package/lib/panels/logs/Logs.js +29 -0
  195. package/lib/panels/logs/Logs.js.map +1 -0
  196. package/lib/panels/logs/LogsComponent.d.ts +4 -0
  197. package/lib/panels/logs/LogsComponent.d.ts.map +1 -0
  198. package/lib/panels/logs/LogsComponent.js +34 -0
  199. package/lib/panels/logs/LogsComponent.js.map +1 -0
  200. package/lib/panels/logs/LogsSettingsEditor.d.ts +7 -0
  201. package/lib/panels/logs/LogsSettingsEditor.d.ts.map +1 -0
  202. package/lib/panels/logs/LogsSettingsEditor.js +49 -0
  203. package/lib/panels/logs/LogsSettingsEditor.js.map +1 -0
  204. package/lib/panels/logs/components/EmptyLogsState.d.ts +7 -0
  205. package/lib/panels/logs/components/EmptyLogsState.d.ts.map +1 -0
  206. package/lib/panels/logs/components/EmptyLogsState.js +36 -0
  207. package/lib/panels/logs/components/EmptyLogsState.js.map +1 -0
  208. package/lib/panels/logs/components/LogRow/LogDetailsTable.d.ts +8 -0
  209. package/lib/panels/logs/components/LogRow/LogDetailsTable.d.ts.map +1 -0
  210. package/lib/panels/logs/components/LogRow/LogDetailsTable.js +58 -0
  211. package/lib/panels/logs/components/LogRow/LogDetailsTable.js.map +1 -0
  212. package/lib/panels/logs/components/LogRow/LogRow.d.ts +14 -0
  213. package/lib/panels/logs/components/LogRow/LogRow.d.ts.map +1 -0
  214. package/lib/panels/logs/components/LogRow/LogRow.js +109 -0
  215. package/lib/panels/logs/components/LogRow/LogRow.js.map +1 -0
  216. package/lib/panels/logs/components/LogRow/LogTimestamp.d.ts +7 -0
  217. package/lib/panels/logs/components/LogRow/LogTimestamp.d.ts.map +1 -0
  218. package/lib/panels/logs/components/LogRow/LogTimestamp.js +32 -0
  219. package/lib/panels/logs/components/LogRow/LogTimestamp.js.map +1 -0
  220. package/lib/panels/logs/components/LogRow/LogsStyles.d.ts +22 -0
  221. package/lib/panels/logs/components/LogRow/LogsStyles.d.ts.map +1 -0
  222. package/lib/panels/logs/components/LogRow/LogsStyles.js +55 -0
  223. package/lib/panels/logs/components/LogRow/LogsStyles.js.map +1 -0
  224. package/lib/panels/logs/components/LogRow/index.d.ts +3 -0
  225. package/lib/panels/logs/components/LogRow/index.d.ts.map +1 -0
  226. package/lib/panels/logs/components/LogRow/index.js +16 -0
  227. package/lib/panels/logs/components/LogRow/index.js.map +1 -0
  228. package/lib/panels/logs/components/LogsList.d.ts +8 -0
  229. package/lib/panels/logs/components/LogsList.d.ts.map +1 -0
  230. package/lib/panels/logs/components/LogsList.js +31 -0
  231. package/lib/panels/logs/components/LogsList.js.map +1 -0
  232. package/lib/panels/logs/components/VirtualizedLogsList.d.ts +10 -0
  233. package/lib/panels/logs/components/VirtualizedLogsList.d.ts.map +1 -0
  234. package/lib/panels/logs/components/VirtualizedLogsList.js +47 -0
  235. package/lib/panels/logs/components/VirtualizedLogsList.js.map +1 -0
  236. package/lib/panels/logs/components/hooks/useExpandedRows.d.ts +6 -0
  237. package/lib/panels/logs/components/hooks/useExpandedRows.d.ts.map +1 -0
  238. package/lib/panels/logs/components/hooks/useExpandedRows.js +37 -0
  239. package/lib/panels/logs/components/hooks/useExpandedRows.js.map +1 -0
  240. package/lib/panels/logs/index.d.ts +5 -0
  241. package/lib/panels/logs/index.d.ts.map +1 -0
  242. package/lib/panels/logs/index.js +18 -0
  243. package/lib/panels/logs/index.js.map +1 -0
  244. package/lib/panels/logs/logs-types.d.ts +16 -0
  245. package/lib/panels/logs/logs-types.d.ts.map +1 -0
  246. package/lib/panels/logs/logs-types.js +15 -0
  247. package/lib/panels/logs/logs-types.js.map +1 -0
  248. package/lib/queries/click-house-log-query/ClickHouseLogQuery.d.ts +4 -0
  249. package/lib/queries/click-house-log-query/ClickHouseLogQuery.d.ts.map +1 -0
  250. package/lib/queries/click-house-log-query/ClickHouseLogQuery.js +35 -0
  251. package/lib/queries/click-house-log-query/ClickHouseLogQuery.js.map +1 -0
  252. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.d.ts +7 -0
  253. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.d.ts.map +1 -0
  254. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.js +105 -0
  255. package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.js.map +1 -0
  256. package/lib/queries/click-house-log-query/click-house-log-query-types.d.ts +6 -0
  257. package/lib/queries/click-house-log-query/click-house-log-query-types.d.ts.map +1 -0
  258. package/lib/queries/click-house-log-query/click-house-log-query-types.js +15 -0
  259. package/lib/queries/click-house-log-query/click-house-log-query-types.js.map +1 -0
  260. package/lib/queries/click-house-log-query/get-click-house-log-data.d.ts +4 -0
  261. package/lib/queries/click-house-log-query/get-click-house-log-data.d.ts.map +1 -0
  262. package/lib/queries/click-house-log-query/get-click-house-log-data.js +81 -0
  263. package/lib/queries/click-house-log-query/get-click-house-log-data.js.map +1 -0
  264. package/lib/queries/click-house-log-query/index.d.ts +5 -0
  265. package/lib/queries/click-house-log-query/index.d.ts.map +1 -0
  266. package/lib/queries/click-house-log-query/index.js +18 -0
  267. package/lib/queries/click-house-log-query/index.js.map +1 -0
  268. package/lib/queries/click-house-log-query/log-query-plugin-interface.d.ts +25 -0
  269. package/lib/queries/click-house-log-query/log-query-plugin-interface.d.ts.map +1 -0
  270. package/lib/queries/click-house-log-query/log-query-plugin-interface.js +3 -0
  271. package/lib/queries/click-house-log-query/log-query-plugin-interface.js.map +1 -0
  272. package/lib/queries/click-house-time-series-query/ClickHouseQuery.d.ts +4 -0
  273. package/lib/queries/click-house-time-series-query/ClickHouseQuery.d.ts.map +1 -0
  274. package/lib/queries/click-house-time-series-query/ClickHouseQuery.js +35 -0
  275. package/lib/queries/click-house-time-series-query/ClickHouseQuery.js.map +1 -0
  276. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.d.ts +7 -0
  277. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.d.ts.map +1 -0
  278. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.js +105 -0
  279. package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.js.map +1 -0
  280. package/lib/queries/click-house-time-series-query/click-house-query-types.d.ts +11 -0
  281. package/lib/queries/click-house-time-series-query/click-house-query-types.d.ts.map +1 -0
  282. package/lib/queries/click-house-time-series-query/click-house-query-types.js +16 -0
  283. package/lib/queries/click-house-time-series-query/click-house-query-types.js.map +1 -0
  284. package/lib/queries/click-house-time-series-query/get-click-house-data.d.ts +4 -0
  285. package/lib/queries/click-house-time-series-query/get-click-house-data.d.ts.map +1 -0
  286. package/lib/queries/click-house-time-series-query/get-click-house-data.js +61 -0
  287. package/lib/queries/click-house-time-series-query/get-click-house-data.js.map +1 -0
  288. package/lib/queries/click-house-time-series-query/index.d.ts +5 -0
  289. package/lib/queries/click-house-time-series-query/index.d.ts.map +1 -0
  290. package/lib/queries/click-house-time-series-query/index.js +18 -0
  291. package/lib/queries/click-house-time-series-query/index.js.map +1 -0
  292. package/lib/queries/constants.d.ts +5 -0
  293. package/lib/queries/constants.d.ts.map +1 -0
  294. package/lib/queries/constants.js +18 -0
  295. package/lib/queries/constants.js.map +1 -0
  296. package/lib/queries/index.d.ts +3 -0
  297. package/lib/queries/index.d.ts.map +1 -0
  298. package/lib/queries/index.js +16 -0
  299. package/lib/queries/index.js.map +1 -0
  300. package/lib/setup-tests.d.ts +2 -0
  301. package/lib/setup-tests.d.ts.map +1 -0
  302. package/lib/setup-tests.js +17 -0
  303. package/lib/setup-tests.js.map +1 -0
  304. package/mf-manifest.json +505 -0
  305. package/mf-stats.json +561 -0
  306. package/package.json +85 -0
@@ -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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
@@ -0,0 +1,32 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ _export_star(require("./ClickHouseDatasource"), exports);
18
+ _export_star(require("./ClickHouseDatasourceEditor"), exports);
19
+ _export_star(require("./click-house-datasource-types"), exports);
20
+ function _export_star(from, to) {
21
+ Object.keys(from).forEach(function(k) {
22
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
23
+ Object.defineProperty(to, k, {
24
+ enumerable: true,
25
+ get: function() {
26
+ return from[k];
27
+ }
28
+ });
29
+ }
30
+ });
31
+ return from;
32
+ }
@@ -0,0 +1,30 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ _export_star(require("./click-house-datasource"), exports);
18
+ function _export_star(from, to) {
19
+ Object.keys(from).forEach(function(k) {
20
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
21
+ Object.defineProperty(to, k, {
22
+ enumerable: true,
23
+ get: function() {
24
+ return from[k];
25
+ }
26
+ });
27
+ }
28
+ });
29
+ return from;
30
+ }
@@ -0,0 +1,14 @@
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
+ /// <reference types="@rsbuild/core/types" />
14
+ "use strict";
@@ -0,0 +1,39 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "getPluginModule", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return getPluginModule;
21
+ }
22
+ });
23
+ const _packagejson = /*#__PURE__*/ _interop_require_default(require("../package.json"));
24
+ function _interop_require_default(obj) {
25
+ return obj && obj.__esModule ? obj : {
26
+ default: obj
27
+ };
28
+ }
29
+ function getPluginModule() {
30
+ const { name, version, perses } = _packagejson.default;
31
+ return {
32
+ kind: 'PluginModule',
33
+ metadata: {
34
+ name,
35
+ version
36
+ },
37
+ spec: perses
38
+ };
39
+ }
@@ -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
+ "use strict";
14
+ function _getRequireWildcardCache(nodeInterop) {
15
+ if (typeof WeakMap !== "function") return null;
16
+ var cacheBabelInterop = new WeakMap();
17
+ var cacheNodeInterop = new WeakMap();
18
+ return (_getRequireWildcardCache = function(nodeInterop) {
19
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
20
+ })(nodeInterop);
21
+ }
22
+ function _interop_require_wildcard(obj, nodeInterop) {
23
+ if (!nodeInterop && obj && obj.__esModule) {
24
+ return obj;
25
+ }
26
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
27
+ return {
28
+ default: obj
29
+ };
30
+ }
31
+ var cache = _getRequireWildcardCache(nodeInterop);
32
+ if (cache && cache.has(obj)) {
33
+ return cache.get(obj);
34
+ }
35
+ var newObj = {
36
+ __proto__: null
37
+ };
38
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
39
+ for(var key in obj){
40
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
41
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
42
+ if (desc && (desc.get || desc.set)) {
43
+ Object.defineProperty(newObj, key, desc);
44
+ } else {
45
+ newObj[key] = obj[key];
46
+ }
47
+ }
48
+ }
49
+ newObj.default = obj;
50
+ if (cache) {
51
+ cache.set(obj, newObj);
52
+ }
53
+ return newObj;
54
+ }
55
+ Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./bootstrap")));
@@ -0,0 +1,39 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "getPluginModule", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return _getPluginModule.getPluginModule;
21
+ }
22
+ });
23
+ const _getPluginModule = require("./getPluginModule");
24
+ _export_star(require("./panels"), exports);
25
+ _export_star(require("./queries"), exports);
26
+ _export_star(require("./datasources"), exports);
27
+ function _export_star(from, to) {
28
+ Object.keys(from).forEach(function(k) {
29
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
30
+ Object.defineProperty(to, k, {
31
+ enumerable: true,
32
+ get: function() {
33
+ return from[k];
34
+ }
35
+ });
36
+ }
37
+ });
38
+ return from;
39
+ }
@@ -0,0 +1,66 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "query", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return query;
21
+ }
22
+ });
23
+ async function query(params, queryOptions) {
24
+ const { datasourceUrl, headers } = queryOptions;
25
+ const url = urlBuilder(datasourceUrl);
26
+ if (!params.query) {
27
+ throw new Error('No query provided in params');
28
+ }
29
+ let finalQuery = params.query.trim();
30
+ if (!finalQuery.toUpperCase().includes('FORMAT')) {
31
+ finalQuery += ' FORMAT JSON';
32
+ }
33
+ url.searchParams.set('query', finalQuery);
34
+ url.searchParams.set('database', params.database || 'default');
35
+ const init = {
36
+ method: 'GET',
37
+ headers: {
38
+ ...headers
39
+ }
40
+ };
41
+ try {
42
+ const response = await fetch(url.toString(), init);
43
+ if (!response.ok) {
44
+ const errorText = await response.text();
45
+ console.error('ClickHouse error response:', errorText);
46
+ return {
47
+ status: 'error',
48
+ data: []
49
+ };
50
+ }
51
+ const body = await response.json();
52
+ return {
53
+ status: 'success',
54
+ data: body.data || body
55
+ };
56
+ } catch (e) {
57
+ throw new Error(`ClickHouse query failed: ${e}`);
58
+ }
59
+ }
60
+ function urlBuilder(datasourceUrl) {
61
+ if (datasourceUrl.startsWith('http://') || datasourceUrl.startsWith('https://')) {
62
+ return new URL(datasourceUrl);
63
+ }
64
+ // if relative path (e.g. proxy url), resolve against window.location.origin
65
+ return new URL(datasourceUrl, window.location.origin);
66
+ }
@@ -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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
@@ -0,0 +1,30 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ _export_star(require("./logs"), exports);
18
+ function _export_star(from, to) {
19
+ Object.keys(from).forEach(function(k) {
20
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
21
+ Object.defineProperty(to, k, {
22
+ enumerable: true,
23
+ get: function() {
24
+ return from[k];
25
+ }
26
+ });
27
+ }
28
+ });
29
+ return from;
30
+ }
@@ -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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "Logs", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return Logs;
21
+ }
22
+ });
23
+ const _LogsComponent = require("./LogsComponent");
24
+ const _LogsSettingsEditor = require("./LogsSettingsEditor");
25
+ const Logs = {
26
+ PanelComponent: _LogsComponent.LogsComponent,
27
+ panelOptionsEditorComponents: [
28
+ {
29
+ label: 'Settings',
30
+ content: _LogsSettingsEditor.LogsSettingsEditor
31
+ }
32
+ ],
33
+ supportedQueryTypes: [
34
+ 'LogQuery'
35
+ ],
36
+ createInitialOptions: ()=>({})
37
+ };
@@ -0,0 +1,47 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "LogsComponent", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return LogsComponent;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _material = require("@mui/material");
25
+ const _LogsList = /*#__PURE__*/ _interop_require_default(require("./components/LogsList"));
26
+ function _interop_require_default(obj) {
27
+ return obj && obj.__esModule ? obj : {
28
+ default: obj
29
+ };
30
+ }
31
+ function LogsComponent(props) {
32
+ const { queryResults, spec } = props;
33
+ if (queryResults[0]?.data.logs === undefined) {
34
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
35
+ variant: "h3",
36
+ sx: {
37
+ textAlign: 'center',
38
+ marginTop: 4
39
+ },
40
+ children: "No logs to display"
41
+ });
42
+ }
43
+ const logs = queryResults[0]?.data.logs.entries;
44
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogsList.default, {
45
+ logs: logs
46
+ });
47
+ }
@@ -0,0 +1,57 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "LogsSettingsEditor", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return LogsSettingsEditor;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _components = require("@perses-dev/components");
25
+ const _pluginsystem = require("@perses-dev/plugin-system");
26
+ function LogsSettingsEditor(props) {
27
+ const { onChange, value } = props;
28
+ const handleLegendChange = (newLegend)=>{
29
+ onChange({
30
+ ...value,
31
+ legend: newLegend
32
+ });
33
+ };
34
+ const handleThresholdsChange = (thresholds)=>{
35
+ onChange({
36
+ ...value,
37
+ thresholds
38
+ });
39
+ };
40
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_components.OptionsEditorGrid, {
41
+ children: [
42
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorColumn, {
43
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.LegendOptionsEditor, {
44
+ value: value.legend,
45
+ onChange: handleLegendChange
46
+ })
47
+ }),
48
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorColumn, {
49
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.ThresholdsEditor, {
50
+ hideDefault: true,
51
+ thresholds: value.thresholds,
52
+ onChange: handleThresholdsChange
53
+ })
54
+ })
55
+ ]
56
+ });
57
+ }
@@ -0,0 +1,49 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "EmptyLogsState", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return EmptyLogsState;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
25
+ const _material = require("@mui/material");
26
+ function _interop_require_default(obj) {
27
+ return obj && obj.__esModule ? obj : {
28
+ default: obj
29
+ };
30
+ }
31
+ const EmptyLogsState = ({ message = 'No logs to display' })=>{
32
+ const theme = (0, _material.useTheme)();
33
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
34
+ sx: {
35
+ display: 'flex',
36
+ alignItems: 'center',
37
+ justifyContent: 'center',
38
+ height: '200px'
39
+ },
40
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
41
+ variant: "body2",
42
+ sx: {
43
+ color: theme.palette.text.secondary,
44
+ fontSize: '14px'
45
+ },
46
+ children: message
47
+ })
48
+ });
49
+ };
@@ -0,0 +1,71 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "LogDetailsTable", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return LogDetailsTable;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
25
+ const _material = require("@mui/material");
26
+ function _interop_require_default(obj) {
27
+ return obj && obj.__esModule ? obj : {
28
+ default: obj
29
+ };
30
+ }
31
+ const LogDetailsTable = ({ log })=>{
32
+ const theme = (0, _material.useTheme)();
33
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Table, {
34
+ size: "small",
35
+ sx: {
36
+ border: `1px solid ${theme.palette.divider}`,
37
+ '& .MuiTableCell-root': {
38
+ border: 'none',
39
+ padding: '6px 8px',
40
+ fontSize: '12px'
41
+ }
42
+ },
43
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableBody, {
44
+ children: Object.entries(log).map(([key, value])=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.TableRow, {
45
+ sx: {
46
+ '&:hover': {
47
+ backgroundColor: (0, _material.alpha)(theme.palette.action.hover, 0.04)
48
+ }
49
+ },
50
+ children: [
51
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableCell, {
52
+ sx: {
53
+ color: theme.palette.text.secondary,
54
+ fontWeight: 500,
55
+ width: '33%'
56
+ },
57
+ children: key
58
+ }),
59
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableCell, {
60
+ sx: {
61
+ color: theme.palette.text.primary,
62
+ wordBreak: 'break-word',
63
+ width: '67%'
64
+ },
65
+ children: value !== undefined && value !== null && value !== '' ? value : '--'
66
+ })
67
+ ]
68
+ }, key))
69
+ })
70
+ });
71
+ };