@perses-dev/victorialogs-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 (294) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +41 -0
  3. package/__mf/css/async/1580.d3010b86.css +1 -0
  4. package/__mf/css/async/2341.d3010b86.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/VictoriaLogs.9a08c902.js +5 -0
  18. package/__mf/js/async/158.c35084cf.js +10 -0
  19. package/__mf/js/async/158.c35084cf.js.LICENSE.txt +17 -0
  20. package/__mf/js/async/1580.ace454a9.js +2 -0
  21. package/__mf/js/async/1580.ace454a9.js.LICENSE.txt +9 -0
  22. package/__mf/js/async/1964.6d84f735.js +2 -0
  23. package/__mf/js/async/1964.6d84f735.js.LICENSE.txt +9 -0
  24. package/__mf/js/async/2178.d1785908.js +2 -0
  25. package/__mf/js/async/2178.d1785908.js.LICENSE.txt +15 -0
  26. package/__mf/js/async/2292.0696771a.js +2 -0
  27. package/__mf/js/async/2292.0696771a.js.LICENSE.txt +24 -0
  28. package/__mf/js/async/2472.3c37aa71.js +22 -0
  29. package/__mf/js/async/2472.3c37aa71.js.LICENSE.txt +19 -0
  30. package/__mf/js/async/2558.beff8442.js +101 -0
  31. package/__mf/js/async/2708.c79893a7.js +1 -0
  32. package/__mf/js/async/3224.858fb6d6.js +1 -0
  33. package/__mf/js/async/3431.358ac817.js +1 -0
  34. package/__mf/js/async/3863.66f8659b.js +2 -0
  35. package/__mf/js/async/3863.66f8659b.js.LICENSE.txt +9 -0
  36. package/__mf/js/async/3960.bbacac1d.js +2 -0
  37. package/__mf/js/async/3960.bbacac1d.js.LICENSE.txt +8 -0
  38. package/__mf/js/async/3980.03396afa.js +2 -0
  39. package/__mf/js/async/3980.03396afa.js.LICENSE.txt +9 -0
  40. package/__mf/js/async/4075.8aae8af4.js +1 -0
  41. package/__mf/js/async/4238.cd5e3d1f.js +1 -0
  42. package/__mf/js/async/4269.f9191848.js +2 -0
  43. package/__mf/js/async/4269.f9191848.js.LICENSE.txt +9 -0
  44. package/__mf/js/async/4310.b6c0f250.js +7 -0
  45. package/__mf/js/async/4310.b6c0f250.js.LICENSE.txt +21 -0
  46. package/__mf/js/async/4421.c442f6d9.js +1 -0
  47. package/__mf/js/async/5214.bcb7530e.js +1 -0
  48. package/__mf/js/async/5348.aa77f629.js +2 -0
  49. package/__mf/js/async/5348.aa77f629.js.LICENSE.txt +9 -0
  50. package/__mf/js/async/5388.92f525c5.js +1 -0
  51. package/__mf/js/async/5409.5d25f1db.js +1 -0
  52. package/__mf/js/async/5628.f229b9f6.js +1 -0
  53. package/__mf/js/async/5682.a317ee96.js +1 -0
  54. package/__mf/js/async/5790.f7a41a40.js +1 -0
  55. package/__mf/js/async/5981.e54ec80b.js +2 -0
  56. package/__mf/js/async/5981.e54ec80b.js.LICENSE.txt +8 -0
  57. package/__mf/js/async/6134.6f58094d.js +38 -0
  58. package/__mf/js/async/6292.fda8a9af.js +1 -0
  59. package/__mf/js/async/6333.031c68b4.js +2 -0
  60. package/__mf/js/async/6333.031c68b4.js.LICENSE.txt +9 -0
  61. package/__mf/js/async/6374.e9650306.js +1 -0
  62. package/__mf/js/async/6377.e48abaa5.js +2 -0
  63. package/__mf/js/async/6377.e48abaa5.js.LICENSE.txt +32 -0
  64. package/__mf/js/async/6620.4f2fc96e.js +2 -0
  65. package/__mf/js/async/6620.4f2fc96e.js.LICENSE.txt +21 -0
  66. package/__mf/js/async/6770.5c90a318.js +1 -0
  67. package/__mf/js/async/694.663f3faf.js +1 -0
  68. package/__mf/js/async/7376.91743064.js +1 -0
  69. package/__mf/js/async/738.b4e8c361.js +1 -0
  70. package/__mf/js/async/7740.82b38509.js +1 -0
  71. package/__mf/js/async/8216.3417496f.js +1 -0
  72. package/__mf/js/async/8488.9eb8e6dc.js +1 -0
  73. package/__mf/js/async/8537.a7ed2e24.js +1 -0
  74. package/__mf/js/async/8727.e54ca5fd.js +1 -0
  75. package/__mf/js/async/8930.fa15926d.js +1 -0
  76. package/__mf/js/async/9173.d784dd69.js +2 -0
  77. package/__mf/js/async/9173.d784dd69.js.LICENSE.txt +19 -0
  78. package/__mf/js/async/9563.b88ff7ff.js +2 -0
  79. package/__mf/js/async/9563.b88ff7ff.js.LICENSE.txt +9 -0
  80. package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.807e09ec.js +2 -0
  81. package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.807e09ec.js.LICENSE.txt +9 -0
  82. package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.94ae15a7.js +2 -0
  83. package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.94ae15a7.js.LICENSE.txt +9 -0
  84. package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.eabc284b.js +2 -0
  85. package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.eabc284b.js.LICENSE.txt +9 -0
  86. package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.8122cbeb.js +1 -0
  87. package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.56dd4cab.js +1 -0
  88. package/__mf/js/main.9f62e593.js +5 -0
  89. package/lib/bootstrap.d.ts +2 -0
  90. package/lib/bootstrap.d.ts.map +1 -0
  91. package/lib/bootstrap.js +7 -0
  92. package/lib/bootstrap.js.map +1 -0
  93. package/lib/cjs/bootstrap.js +14 -0
  94. package/lib/cjs/components/index.js +23 -0
  95. package/lib/cjs/components/logsql-editor.js +110 -0
  96. package/lib/cjs/components/logsql-extension.js +55 -0
  97. package/lib/cjs/components/logsql-highlight.js +40 -0
  98. package/lib/cjs/datasources/index.js +30 -0
  99. package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +61 -0
  100. package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +95 -0
  101. package/lib/cjs/datasources/victorialogs-datasource/index.js +32 -0
  102. package/lib/cjs/datasources/victorialogs-datasource/types.js +16 -0
  103. package/lib/cjs/env.d.js +2 -0
  104. package/lib/cjs/getPluginModule.js +27 -0
  105. package/lib/cjs/index-federation.js +43 -0
  106. package/lib/cjs/index.js +27 -0
  107. package/lib/cjs/model/client.js +156 -0
  108. package/lib/cjs/model/index.js +32 -0
  109. package/lib/cjs/model/selectors.js +47 -0
  110. package/lib/cjs/model/types.js +16 -0
  111. package/lib/cjs/queries/constants.js +22 -0
  112. package/lib/cjs/queries/index.js +31 -0
  113. package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +31 -0
  114. package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +118 -0
  115. package/lib/cjs/queries/victorialogs-log-query/index.js +21 -0
  116. package/lib/cjs/queries/victorialogs-log-query/interface.js +4 -0
  117. package/lib/cjs/queries/victorialogs-log-query/query.js +61 -0
  118. package/lib/cjs/queries/victorialogs-log-query/types.js +4 -0
  119. package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +43 -0
  120. package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +116 -0
  121. package/lib/cjs/queries/victorialogs-time-series-query/index.js +33 -0
  122. package/lib/cjs/queries/victorialogs-time-series-query/query.js +122 -0
  123. package/lib/cjs/queries/victorialogs-time-series-query/types.js +16 -0
  124. package/lib/cjs/setup-tests.js +7 -0
  125. package/lib/cjs/variables/index.js +31 -0
  126. package/lib/cjs/variables/types.js +4 -0
  127. package/lib/cjs/variables/utils.js +85 -0
  128. package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +45 -0
  129. package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +89 -0
  130. package/lib/cjs/variables/victorialogs-field-names/index.js +30 -0
  131. package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +49 -0
  132. package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +130 -0
  133. package/lib/cjs/variables/victorialogs-field-values/index.js +30 -0
  134. package/lib/components/index.d.ts +3 -0
  135. package/lib/components/index.d.ts.map +1 -0
  136. package/lib/components/index.js +15 -0
  137. package/lib/components/index.js.map +1 -0
  138. package/lib/components/logsql-editor.d.ts +5 -0
  139. package/lib/components/logsql-editor.d.ts.map +1 -0
  140. package/lib/components/logsql-editor.js +61 -0
  141. package/lib/components/logsql-editor.js.map +1 -0
  142. package/lib/components/logsql-extension.d.ts +4 -0
  143. package/lib/components/logsql-extension.d.ts.map +1 -0
  144. package/lib/components/logsql-extension.js +47 -0
  145. package/lib/components/logsql-extension.js.map +1 -0
  146. package/lib/components/logsql-highlight.d.ts +2 -0
  147. package/lib/components/logsql-highlight.d.ts.map +1 -0
  148. package/lib/components/logsql-highlight.js +32 -0
  149. package/lib/components/logsql-highlight.js.map +1 -0
  150. package/lib/datasources/index.d.ts +2 -0
  151. package/lib/datasources/index.d.ts.map +1 -0
  152. package/lib/datasources/index.js +15 -0
  153. package/lib/datasources/index.js.map +1 -0
  154. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts +5 -0
  155. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts.map +1 -0
  156. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +53 -0
  157. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js.map +1 -0
  158. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.d.ts +9 -0
  159. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.d.ts.map +1 -0
  160. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +87 -0
  161. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js.map +1 -0
  162. package/lib/datasources/victorialogs-datasource/index.d.ts +4 -0
  163. package/lib/datasources/victorialogs-datasource/index.d.ts.map +1 -0
  164. package/lib/datasources/victorialogs-datasource/index.js +17 -0
  165. package/lib/datasources/victorialogs-datasource/index.js.map +1 -0
  166. package/lib/datasources/victorialogs-datasource/types.d.ts +6 -0
  167. package/lib/datasources/victorialogs-datasource/types.d.ts.map +1 -0
  168. package/lib/datasources/victorialogs-datasource/types.js +15 -0
  169. package/lib/datasources/victorialogs-datasource/types.js.map +1 -0
  170. package/lib/env.d.js +3 -0
  171. package/lib/env.d.js.map +1 -0
  172. package/lib/getPluginModule.d.ts +6 -0
  173. package/lib/getPluginModule.d.ts.map +1 -0
  174. package/lib/getPluginModule.js +16 -0
  175. package/lib/getPluginModule.js.map +1 -0
  176. package/lib/index-federation.d.ts +1 -0
  177. package/lib/index-federation.d.ts.map +1 -0
  178. package/lib/index-federation.js +3 -0
  179. package/lib/index-federation.js.map +1 -0
  180. package/lib/index.d.ts +5 -0
  181. package/lib/index.d.ts.map +1 -0
  182. package/lib/index.js +6 -0
  183. package/lib/index.js.map +1 -0
  184. package/lib/model/client.d.ts +39 -0
  185. package/lib/model/client.d.ts.map +1 -0
  186. package/lib/model/client.js +134 -0
  187. package/lib/model/client.js.map +1 -0
  188. package/lib/model/index.d.ts +4 -0
  189. package/lib/model/index.d.ts.map +1 -0
  190. package/lib/model/index.js +17 -0
  191. package/lib/model/index.js.map +1 -0
  192. package/lib/model/selectors.d.ts +10 -0
  193. package/lib/model/selectors.d.ts.map +1 -0
  194. package/lib/model/selectors.js +25 -0
  195. package/lib/model/selectors.js.map +1 -0
  196. package/lib/model/types.d.ts +44 -0
  197. package/lib/model/types.d.ts.map +1 -0
  198. package/lib/model/types.js +15 -0
  199. package/lib/model/types.js.map +1 -0
  200. package/lib/queries/constants.d.ts +5 -0
  201. package/lib/queries/constants.d.ts.map +1 -0
  202. package/lib/queries/constants.js +6 -0
  203. package/lib/queries/constants.js.map +1 -0
  204. package/lib/queries/index.d.ts +3 -0
  205. package/lib/queries/index.d.ts.map +1 -0
  206. package/lib/queries/index.js +16 -0
  207. package/lib/queries/index.js.map +1 -0
  208. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.d.ts +4 -0
  209. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.d.ts.map +1 -0
  210. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +23 -0
  211. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js.map +1 -0
  212. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts +7 -0
  213. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts.map +1 -0
  214. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +110 -0
  215. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js.map +1 -0
  216. package/lib/queries/victorialogs-log-query/index.d.ts +5 -0
  217. package/lib/queries/victorialogs-log-query/index.d.ts.map +1 -0
  218. package/lib/queries/victorialogs-log-query/index.js +6 -0
  219. package/lib/queries/victorialogs-log-query/index.js.map +1 -0
  220. package/lib/queries/victorialogs-log-query/interface.d.ts +24 -0
  221. package/lib/queries/victorialogs-log-query/interface.d.ts.map +1 -0
  222. package/lib/queries/victorialogs-log-query/interface.js +3 -0
  223. package/lib/queries/victorialogs-log-query/interface.js.map +1 -0
  224. package/lib/queries/victorialogs-log-query/query.d.ts +4 -0
  225. package/lib/queries/victorialogs-log-query/query.d.ts.map +1 -0
  226. package/lib/queries/victorialogs-log-query/query.js +53 -0
  227. package/lib/queries/victorialogs-log-query/query.js.map +1 -0
  228. package/lib/queries/victorialogs-log-query/types.d.ts +6 -0
  229. package/lib/queries/victorialogs-log-query/types.d.ts.map +1 -0
  230. package/lib/queries/victorialogs-log-query/types.js +3 -0
  231. package/lib/queries/victorialogs-log-query/types.js.map +1 -0
  232. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.d.ts +4 -0
  233. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.d.ts.map +1 -0
  234. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +35 -0
  235. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js.map +1 -0
  236. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.d.ts +7 -0
  237. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.d.ts.map +1 -0
  238. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +108 -0
  239. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js.map +1 -0
  240. package/lib/queries/victorialogs-time-series-query/index.d.ts +5 -0
  241. package/lib/queries/victorialogs-time-series-query/index.d.ts.map +1 -0
  242. package/lib/queries/victorialogs-time-series-query/index.js +18 -0
  243. package/lib/queries/victorialogs-time-series-query/index.js.map +1 -0
  244. package/lib/queries/victorialogs-time-series-query/query.d.ts +12 -0
  245. package/lib/queries/victorialogs-time-series-query/query.d.ts.map +1 -0
  246. package/lib/queries/victorialogs-time-series-query/query.js +114 -0
  247. package/lib/queries/victorialogs-time-series-query/query.js.map +1 -0
  248. package/lib/queries/victorialogs-time-series-query/types.d.ts +7 -0
  249. package/lib/queries/victorialogs-time-series-query/types.d.ts.map +1 -0
  250. package/lib/queries/victorialogs-time-series-query/types.js +15 -0
  251. package/lib/queries/victorialogs-time-series-query/types.js.map +1 -0
  252. package/lib/setup-tests.d.ts +2 -0
  253. package/lib/setup-tests.d.ts.map +1 -0
  254. package/lib/setup-tests.js +5 -0
  255. package/lib/setup-tests.js.map +1 -0
  256. package/lib/variables/index.d.ts +3 -0
  257. package/lib/variables/index.d.ts.map +1 -0
  258. package/lib/variables/index.js +16 -0
  259. package/lib/variables/index.js.map +1 -0
  260. package/lib/variables/types.d.ts +13 -0
  261. package/lib/variables/types.d.ts.map +1 -0
  262. package/lib/variables/types.js +3 -0
  263. package/lib/variables/types.js.map +1 -0
  264. package/lib/variables/utils.d.ts +12 -0
  265. package/lib/variables/utils.d.ts.map +1 -0
  266. package/lib/variables/utils.js +63 -0
  267. package/lib/variables/utils.js.map +1 -0
  268. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.d.ts +4 -0
  269. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.d.ts.map +1 -0
  270. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +37 -0
  271. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js.map +1 -0
  272. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.d.ts +5 -0
  273. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.d.ts.map +1 -0
  274. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +81 -0
  275. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js.map +1 -0
  276. package/lib/variables/victorialogs-field-names/index.d.ts +2 -0
  277. package/lib/variables/victorialogs-field-names/index.d.ts.map +1 -0
  278. package/lib/variables/victorialogs-field-names/index.js +15 -0
  279. package/lib/variables/victorialogs-field-names/index.js.map +1 -0
  280. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.d.ts +4 -0
  281. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.d.ts.map +1 -0
  282. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +41 -0
  283. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js.map +1 -0
  284. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.d.ts +5 -0
  285. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.d.ts.map +1 -0
  286. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +122 -0
  287. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js.map +1 -0
  288. package/lib/variables/victorialogs-field-values/index.d.ts +2 -0
  289. package/lib/variables/victorialogs-field-values/index.d.ts.map +1 -0
  290. package/lib/variables/victorialogs-field-values/index.js +15 -0
  291. package/lib/variables/victorialogs-field-values/index.js.map +1 -0
  292. package/mf-manifest.json +556 -0
  293. package/mf-stats.json +614 -0
  294. package/package.json +97 -0
@@ -0,0 +1,95 @@
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, "VictoriaLogsDatasourceEditor", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return VictoriaLogsDatasourceEditor;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _pluginsystem = require("@perses-dev/plugin-system");
25
+ function VictoriaLogsDatasourceEditor(props) {
26
+ const { value, onChange, isReadonly } = props;
27
+ const initialSpecDirect = {
28
+ directUrl: ''
29
+ };
30
+ const initialSpecProxy = {
31
+ proxy: {
32
+ kind: 'HTTPProxy',
33
+ spec: {
34
+ allowedEndpoints: [
35
+ {
36
+ endpointPattern: '/select/logsql/stats_query',
37
+ method: 'POST'
38
+ },
39
+ {
40
+ endpointPattern: '/select/logsql/stats_query_range',
41
+ method: 'POST'
42
+ },
43
+ {
44
+ endpointPattern: '/select/logsql/field_names',
45
+ method: 'POST'
46
+ },
47
+ {
48
+ endpointPattern: '/select/logsql/field_values',
49
+ method: 'POST'
50
+ },
51
+ {
52
+ endpointPattern: '/select/logsql/tail',
53
+ method: 'POST'
54
+ },
55
+ {
56
+ endpointPattern: '/select/logsql/query',
57
+ method: 'POST'
58
+ },
59
+ {
60
+ endpointPattern: '/select/logsql/hits',
61
+ method: 'POST'
62
+ },
63
+ {
64
+ endpointPattern: '/select/logsql/facets',
65
+ method: 'POST'
66
+ },
67
+ {
68
+ endpointPattern: '/select/logsql/stream_ids',
69
+ method: 'POST'
70
+ },
71
+ {
72
+ endpointPattern: '/select/logsql/streams',
73
+ method: 'POST'
74
+ },
75
+ {
76
+ endpointPattern: '/select/logsql/stream_field_names',
77
+ method: 'POST'
78
+ },
79
+ {
80
+ endpointPattern: '/select/logsql/stream_field_values',
81
+ method: 'POST'
82
+ }
83
+ ],
84
+ url: ''
85
+ }
86
+ }
87
+ };
88
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.HTTPSettingsEditor, {
89
+ value: value,
90
+ onChange: onChange,
91
+ isReadonly: isReadonly,
92
+ initialSpecDirect: initialSpecDirect,
93
+ initialSpecProxy: initialSpecProxy
94
+ });
95
+ }
@@ -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("./VictoriaLogsDatasource"), exports);
18
+ _export_star(require("./VictoriaLogsDatasourceEditor"), exports);
19
+ _export_star(require("./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,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,2 @@
1
+ /// <reference types="@rsbuild/core/types" />
2
+ "use strict";
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "getPluginModule", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return getPluginModule;
9
+ }
10
+ });
11
+ const _packagejson = /*#__PURE__*/ _interop_require_default(require("../package.json"));
12
+ function _interop_require_default(obj) {
13
+ return obj && obj.__esModule ? obj : {
14
+ default: obj
15
+ };
16
+ }
17
+ function getPluginModule() {
18
+ const { name, version, perses } = _packagejson.default;
19
+ return {
20
+ kind: 'PluginModule',
21
+ metadata: {
22
+ name,
23
+ version
24
+ },
25
+ spec: perses
26
+ };
27
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ function _getRequireWildcardCache(nodeInterop) {
3
+ if (typeof WeakMap !== "function") return null;
4
+ var cacheBabelInterop = new WeakMap();
5
+ var cacheNodeInterop = new WeakMap();
6
+ return (_getRequireWildcardCache = function(nodeInterop) {
7
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
8
+ })(nodeInterop);
9
+ }
10
+ function _interop_require_wildcard(obj, nodeInterop) {
11
+ if (!nodeInterop && obj && obj.__esModule) {
12
+ return obj;
13
+ }
14
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
15
+ return {
16
+ default: obj
17
+ };
18
+ }
19
+ var cache = _getRequireWildcardCache(nodeInterop);
20
+ if (cache && cache.has(obj)) {
21
+ return cache.get(obj);
22
+ }
23
+ var newObj = {
24
+ __proto__: null
25
+ };
26
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
27
+ for(var key in obj){
28
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
29
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
30
+ if (desc && (desc.get || desc.set)) {
31
+ Object.defineProperty(newObj, key, desc);
32
+ } else {
33
+ newObj[key] = obj[key];
34
+ }
35
+ }
36
+ }
37
+ newObj.default = obj;
38
+ if (cache) {
39
+ cache.set(obj, newObj);
40
+ }
41
+ return newObj;
42
+ }
43
+ Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./bootstrap")));
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "getPluginModule", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _getPluginModule.getPluginModule;
9
+ }
10
+ });
11
+ const _getPluginModule = require("./getPluginModule");
12
+ _export_star(require("./model"), exports);
13
+ _export_star(require("./queries"), exports);
14
+ _export_star(require("./datasources"), exports);
15
+ function _export_star(from, to) {
16
+ Object.keys(from).forEach(function(k) {
17
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
18
+ Object.defineProperty(to, k, {
19
+ enumerable: true,
20
+ get: function() {
21
+ return from[k];
22
+ }
23
+ });
24
+ }
25
+ });
26
+ return from;
27
+ }
@@ -0,0 +1,156 @@
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
+ function _export(target, all) {
18
+ for(var name in all)Object.defineProperty(target, name, {
19
+ enumerable: true,
20
+ get: all[name]
21
+ });
22
+ }
23
+ _export(exports, {
24
+ fieldNames: function() {
25
+ return fieldNames;
26
+ },
27
+ fieldValues: function() {
28
+ return fieldValues;
29
+ },
30
+ statsQueryRange: function() {
31
+ return statsQueryRange;
32
+ },
33
+ streamQueryRange: function() {
34
+ return streamQueryRange;
35
+ }
36
+ });
37
+ function buildUrl(path, datasourceUrl) {
38
+ if (datasourceUrl.startsWith('http://') || datasourceUrl.startsWith('https://')) {
39
+ return new URL(path, datasourceUrl);
40
+ }
41
+ let fullPath = datasourceUrl;
42
+ // Assume relative path, ensure no double slashes
43
+ if (datasourceUrl.endsWith('/') && path.startsWith('/')) {
44
+ fullPath = datasourceUrl + path.slice(1);
45
+ } else if (!datasourceUrl.endsWith('/') && !path.startsWith('/')) {
46
+ fullPath = datasourceUrl + '/' + path;
47
+ } else {
48
+ fullPath = datasourceUrl + path;
49
+ }
50
+ return new URL(fullPath, window.location.origin);
51
+ }
52
+ async function streamQueryRange(params, options) {
53
+ const url = buildUrl('/select/logsql/query', options.datasourceUrl);
54
+ const postData = {
55
+ query: params.query,
56
+ start: params.start,
57
+ end: params.end
58
+ };
59
+ if (params?.limit) postData['limit'] = params.limit.toString();
60
+ if (params?.offset) postData['offset'] = params.offset.toString();
61
+ const data = new URLSearchParams(postData).toString();
62
+ const response = await fetch(url.toString(), {
63
+ method: 'POST',
64
+ headers: {
65
+ 'Content-Type': 'application/x-www-form-urlencoded',
66
+ 'Accept': 'application/stream+json',
67
+ ...options.headers
68
+ },
69
+ body: data
70
+ });
71
+ if (response.status !== 200) {
72
+ throw new Error(await response.text());
73
+ }
74
+ const output = [];
75
+ if (!response?.body) return output;
76
+ const reader = response.body.getReader();
77
+ const decoder = new TextDecoder("utf-8");
78
+ let buffer = '';
79
+ while(true){
80
+ const { value, done } = await reader.read();
81
+ if (done) break;
82
+ buffer += decoder.decode(value, {
83
+ stream: true
84
+ });
85
+ let boundary = buffer.indexOf('\n');
86
+ while(boundary !== -1){
87
+ const line = buffer.slice(0, boundary);
88
+ buffer = buffer.slice(boundary + 1);
89
+ output.push(JSON.parse(line));
90
+ boundary = buffer.indexOf('\n');
91
+ }
92
+ }
93
+ if (buffer.trim().length > 0) {
94
+ output.push(JSON.parse(buffer));
95
+ }
96
+ return output;
97
+ }
98
+ async function statsQueryRange(params, options) {
99
+ const url = buildUrl('/select/logsql/stats_query_range', options.datasourceUrl);
100
+ const postData = {
101
+ query: params.query,
102
+ start: params.start,
103
+ end: params.end
104
+ };
105
+ if (params?.step) postData['step'] = params.step.toString();
106
+ const data = new URLSearchParams(postData).toString();
107
+ const response = await fetch(url.toString(), {
108
+ method: 'POST',
109
+ headers: {
110
+ 'Content-Type': 'application/x-www-form-urlencoded',
111
+ 'Accept': 'application/json',
112
+ ...options.headers
113
+ },
114
+ body: data
115
+ });
116
+ return await response.json();
117
+ }
118
+ async function fieldNames(params, options) {
119
+ const url = buildUrl('/select/logsql/field_names', options.datasourceUrl);
120
+ const postData = {
121
+ query: params.query
122
+ };
123
+ if (params.start) postData['start'] = params.start;
124
+ if (params.end) postData['end'] = params.end;
125
+ const data = new URLSearchParams(postData).toString();
126
+ const response = await fetch(url.toString(), {
127
+ method: 'POST',
128
+ headers: {
129
+ 'Content-Type': 'application/x-www-form-urlencoded',
130
+ 'Accept': 'application/json',
131
+ ...options.headers
132
+ },
133
+ body: data
134
+ });
135
+ return await response.json();
136
+ }
137
+ async function fieldValues(params, options) {
138
+ const url = buildUrl(`/select/logsql/field_values`, options.datasourceUrl);
139
+ const postData = {
140
+ query: params.query,
141
+ field: params.field
142
+ };
143
+ if (params.start) postData['start'] = params.start;
144
+ if (params.end) postData['end'] = params.end;
145
+ const data = new URLSearchParams(postData).toString();
146
+ const response = await fetch(url.toString(), {
147
+ method: 'POST',
148
+ headers: {
149
+ 'Content-Type': 'application/x-www-form-urlencoded',
150
+ 'Accept': 'application/json',
151
+ ...options.headers
152
+ },
153
+ body: data
154
+ });
155
+ return await response.json();
156
+ }
@@ -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("./client"), exports);
18
+ _export_star(require("./selectors"), exports);
19
+ _export_star(require("./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,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
+ function _export(target, all) {
18
+ for(var name in all)Object.defineProperty(target, name, {
19
+ enumerable: true,
20
+ get: all[name]
21
+ });
22
+ }
23
+ _export(exports, {
24
+ DEFAULT_VICTORIALOGS: function() {
25
+ return DEFAULT_VICTORIALOGS;
26
+ },
27
+ VICTORIALOGS_DATASOURCE_KIND: function() {
28
+ return VICTORIALOGS_DATASOURCE_KIND;
29
+ },
30
+ isDefaultVictoriaLogsSelector: function() {
31
+ return isDefaultVictoriaLogsSelector;
32
+ },
33
+ isVictoriaLogsDatasourceSelector: function() {
34
+ return isVictoriaLogsDatasourceSelector;
35
+ }
36
+ });
37
+ const _pluginsystem = require("@perses-dev/plugin-system");
38
+ const VICTORIALOGS_DATASOURCE_KIND = 'VictoriaLogsDatasource';
39
+ const DEFAULT_VICTORIALOGS = {
40
+ kind: VICTORIALOGS_DATASOURCE_KIND
41
+ };
42
+ function isDefaultVictoriaLogsSelector(datasourceSelectValue) {
43
+ return !(0, _pluginsystem.isVariableDatasource)(datasourceSelectValue) && datasourceSelectValue.name === undefined;
44
+ }
45
+ function isVictoriaLogsDatasourceSelector(datasourceSelectValue) {
46
+ return (0, _pluginsystem.isVariableDatasource)(datasourceSelectValue) || datasourceSelectValue.kind === VICTORIALOGS_DATASOURCE_KIND;
47
+ }
@@ -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,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ DATASOURCE_KIND: function() {
13
+ return DATASOURCE_KIND;
14
+ },
15
+ DEFAULT_DATASOURCE: function() {
16
+ return DEFAULT_DATASOURCE;
17
+ }
18
+ });
19
+ const DATASOURCE_KIND = 'VictoriaLogsDatasource';
20
+ const DEFAULT_DATASOURCE = {
21
+ kind: DATASOURCE_KIND
22
+ };
@@ -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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ _export_star(require("./victorialogs-time-series-query"), exports);
18
+ _export_star(require("./victorialogs-log-query"), exports);
19
+ function _export_star(from, to) {
20
+ Object.keys(from).forEach(function(k) {
21
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
22
+ Object.defineProperty(to, k, {
23
+ enumerable: true,
24
+ get: function() {
25
+ return from[k];
26
+ }
27
+ });
28
+ }
29
+ });
30
+ return from;
31
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "VictoriaLogsLogQuery", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return VictoriaLogsLogQuery;
9
+ }
10
+ });
11
+ const _pluginsystem = require("@perses-dev/plugin-system");
12
+ const _query = require("./query");
13
+ const _VictoriaLogsLogQueryEditor = require("./VictoriaLogsLogQueryEditor");
14
+ const VictoriaLogsLogQuery = {
15
+ getLogData: _query.getVictoriaLogsLogData,
16
+ OptionsEditorComponent: _VictoriaLogsLogQueryEditor.VictoriaLogsLogQueryEditor,
17
+ createInitialOptions: ()=>({
18
+ query: ''
19
+ }),
20
+ dependsOn: (spec)=>{
21
+ const queryVariables = (0, _pluginsystem.parseVariables)(spec.query);
22
+ const allVariables = [
23
+ ...new Set([
24
+ ...queryVariables
25
+ ])
26
+ ];
27
+ return {
28
+ variables: allVariables
29
+ };
30
+ }
31
+ };