@perses-dev/victorialogs-plugin 0.4.0-rc.1 → 0.5.0-beta.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 (267) hide show
  1. package/__mf/js/{VictoriaLogs.cc2c1a55.js → VictoriaLogs.72a4d689.js} +3 -3
  2. package/__mf/js/async/1522.e41aa623.js +22 -0
  3. package/__mf/js/async/1616.f91f6c7b.js +1 -0
  4. package/__mf/js/async/198.4b388f96.js +2 -0
  5. package/__mf/js/async/2377.1627ef61.js +1 -0
  6. package/__mf/js/async/2786.4ba35a40.js +2 -0
  7. package/__mf/js/async/2901.21debf59.js +1 -0
  8. package/__mf/js/async/3865.3eba8e7a.js +1 -0
  9. package/__mf/js/async/392.8532b8b9.js +2 -0
  10. package/__mf/js/async/4121.43679b06.js +2 -0
  11. package/__mf/js/async/4248.f3720fee.js +1 -0
  12. package/__mf/js/async/4960.813e0b59.js +2 -0
  13. package/__mf/js/async/5019.a912bf58.js +1 -0
  14. package/__mf/js/async/5440.e2ea1262.js +2 -0
  15. package/__mf/js/async/5587.144f3899.js +1 -0
  16. package/__mf/js/async/560.ebacb2ba.js +37 -0
  17. package/__mf/js/async/5623.6fc3cf67.js +1 -0
  18. package/__mf/js/async/5706.38c46b8c.js +1 -0
  19. package/__mf/js/async/6274.efc9c64a.js +2 -0
  20. package/__mf/js/async/663.cccc183b.js +1 -0
  21. package/__mf/js/async/7155.68cbed18.js +7 -0
  22. package/__mf/js/async/7155.68cbed18.js.LICENSE.txt +102 -0
  23. package/__mf/js/async/7192.9670a853.js +1 -0
  24. package/__mf/js/async/7740.c8cb2613.js +101 -0
  25. package/__mf/js/async/7817.620f3116.js +2 -0
  26. package/__mf/js/async/7862.e6de7017.js +2 -0
  27. package/__mf/js/async/7873.4d25d71e.js +2 -0
  28. package/__mf/js/async/7968.69cffbaf.js +1 -0
  29. package/__mf/js/async/8356.d0bcc56a.js +1 -0
  30. package/__mf/js/async/8470.6cf8f7b1.js +2 -0
  31. package/__mf/js/async/9235.bfe14cc5.js +1 -0
  32. package/__mf/js/async/941.73cfe62f.js +2 -0
  33. package/__mf/js/async/9440.37da95ff.js +10 -0
  34. package/__mf/js/async/9700.72a5372d.js +3 -0
  35. package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.db12b897.js +2 -0
  36. package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.59ed2274.js +2 -0
  37. package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.fcbe16ef.js +2 -0
  38. package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.803dba77.js +1 -0
  39. package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.6d5fdbb1.js +1 -0
  40. package/__mf/js/{main.beb4c281.js → main.00381beb.js} +2 -2
  41. package/lib/bootstrap.js +2 -2
  42. package/lib/components/index.js +1 -1
  43. package/lib/components/index.js.map +1 -1
  44. package/lib/components/logsql-editor.d.ts +2 -2
  45. package/lib/components/logsql-editor.d.ts.map +1 -1
  46. package/lib/components/logsql-editor.js +4 -4
  47. package/lib/components/logsql-editor.js.map +1 -1
  48. package/lib/components/logsql-extension.d.ts +1 -1
  49. package/lib/components/logsql-extension.d.ts.map +1 -1
  50. package/lib/components/logsql-extension.js +3 -3
  51. package/lib/components/logsql-extension.js.map +1 -1
  52. package/lib/components/logsql-highlight.js +1 -1
  53. package/lib/datasources/index.js +1 -1
  54. package/lib/datasources/index.js.map +1 -1
  55. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts +3 -3
  56. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts.map +1 -1
  57. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +2 -2
  58. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js.map +1 -1
  59. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.d.ts +2 -2
  60. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.d.ts.map +1 -1
  61. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +1 -1
  62. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js.map +1 -1
  63. package/lib/datasources/victorialogs-datasource/index.js +3 -3
  64. package/lib/datasources/victorialogs-datasource/index.js.map +1 -1
  65. package/lib/datasources/victorialogs-datasource/types.d.ts +1 -1
  66. package/lib/datasources/victorialogs-datasource/types.d.ts.map +1 -1
  67. package/lib/datasources/victorialogs-datasource/types.js.map +1 -1
  68. package/lib/getPluginModule.d.ts +1 -1
  69. package/lib/getPluginModule.d.ts.map +1 -1
  70. package/lib/getPluginModule.js +3 -1
  71. package/lib/getPluginModule.js.map +1 -1
  72. package/lib/index-federation.js +1 -1
  73. package/lib/index.js +4 -4
  74. package/lib/index.js.map +1 -1
  75. package/lib/model/client.d.ts +1 -1
  76. package/lib/model/client.d.ts.map +1 -1
  77. package/lib/model/client.js.map +1 -1
  78. package/lib/model/index.js +3 -3
  79. package/lib/model/index.js.map +1 -1
  80. package/lib/model/selectors.d.ts +2 -2
  81. package/lib/model/selectors.d.ts.map +1 -1
  82. package/lib/model/selectors.js +1 -1
  83. package/lib/model/selectors.js.map +1 -1
  84. package/lib/queries/index.js +2 -2
  85. package/lib/queries/index.js.map +1 -1
  86. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.d.ts +2 -2
  87. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.d.ts.map +1 -1
  88. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +4 -6
  89. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js.map +1 -1
  90. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts +3 -3
  91. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts.map +1 -1
  92. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +7 -7
  93. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js.map +1 -1
  94. package/lib/queries/victorialogs-log-query/index.js +4 -4
  95. package/lib/queries/victorialogs-log-query/index.js.map +1 -1
  96. package/lib/queries/victorialogs-log-query/query.d.ts +2 -2
  97. package/lib/queries/victorialogs-log-query/query.d.ts.map +1 -1
  98. package/lib/queries/victorialogs-log-query/query.js +2 -2
  99. package/lib/queries/victorialogs-log-query/query.js.map +1 -1
  100. package/lib/queries/victorialogs-log-query/types.d.ts +1 -1
  101. package/lib/queries/victorialogs-log-query/types.d.ts.map +1 -1
  102. package/lib/queries/victorialogs-log-query/types.js.map +1 -1
  103. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.d.ts +2 -2
  104. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.d.ts.map +1 -1
  105. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +4 -6
  106. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js.map +1 -1
  107. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.d.ts +3 -3
  108. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.d.ts.map +1 -1
  109. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +7 -7
  110. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js.map +1 -1
  111. package/lib/queries/victorialogs-time-series-query/index.js +4 -4
  112. package/lib/queries/victorialogs-time-series-query/index.js.map +1 -1
  113. package/lib/queries/victorialogs-time-series-query/query.d.ts +2 -2
  114. package/lib/queries/victorialogs-time-series-query/query.d.ts.map +1 -1
  115. package/lib/queries/victorialogs-time-series-query/query.js +4 -4
  116. package/lib/queries/victorialogs-time-series-query/query.js.map +1 -1
  117. package/lib/queries/victorialogs-time-series-query/types.d.ts +1 -1
  118. package/lib/queries/victorialogs-time-series-query/types.d.ts.map +1 -1
  119. package/lib/queries/victorialogs-time-series-query/types.js.map +1 -1
  120. package/lib/setup-tests.d.ts +1 -1
  121. package/lib/setup-tests.d.ts.map +1 -1
  122. package/lib/setup-tests.js +2 -2
  123. package/lib/setup-tests.js.map +1 -1
  124. package/lib/variables/index.js +2 -2
  125. package/lib/variables/index.js.map +1 -1
  126. package/lib/variables/types.d.ts +2 -2
  127. package/lib/variables/types.d.ts.map +1 -1
  128. package/lib/variables/types.js.map +1 -1
  129. package/lib/variables/utils.d.ts +5 -5
  130. package/lib/variables/utils.d.ts.map +1 -1
  131. package/lib/variables/utils.js +2 -2
  132. package/lib/variables/utils.js.map +1 -1
  133. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.d.ts +2 -2
  134. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.d.ts.map +1 -1
  135. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +4 -4
  136. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js.map +1 -1
  137. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.d.ts +3 -3
  138. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.d.ts.map +1 -1
  139. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +5 -5
  140. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js.map +1 -1
  141. package/lib/variables/victorialogs-field-names/index.js +1 -1
  142. package/lib/variables/victorialogs-field-names/index.js.map +1 -1
  143. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.d.ts +2 -2
  144. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.d.ts.map +1 -1
  145. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +4 -4
  146. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js.map +1 -1
  147. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.d.ts +3 -3
  148. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.d.ts.map +1 -1
  149. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +6 -6
  150. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js.map +1 -1
  151. package/lib/variables/victorialogs-field-values/index.js +1 -1
  152. package/lib/variables/victorialogs-field-values/index.js.map +1 -1
  153. package/mf-manifest.json +117 -230
  154. package/mf-stats.json +117 -242
  155. package/package.json +20 -12
  156. package/__mf/js/async/1170.532d9fb3.js +0 -101
  157. package/__mf/js/async/1616.5a6b8ab3.js +0 -1
  158. package/__mf/js/async/1728.fbf15584.js +0 -1
  159. package/__mf/js/async/1969.fc35e1b4.js +0 -1
  160. package/__mf/js/async/198.fbb67f8a.js +0 -2
  161. package/__mf/js/async/2043.b149adfd.js +0 -2
  162. package/__mf/js/async/2043.b149adfd.js.LICENSE.txt +0 -24
  163. package/__mf/js/async/2377.9265b0a7.js +0 -1
  164. package/__mf/js/async/2728.fd6779e6.js +0 -1
  165. package/__mf/js/async/2749.71c38fe0.js +0 -2
  166. package/__mf/js/async/2842.9ea83634.js +0 -1
  167. package/__mf/js/async/3059.fe1cdfc3.js +0 -1
  168. package/__mf/js/async/392.c6e57bd8.js +0 -2
  169. package/__mf/js/async/3981.15a0f189.js +0 -3
  170. package/__mf/js/async/3998.3a757c00.js +0 -2
  171. package/__mf/js/async/4121.5468ac01.js +0 -2
  172. package/__mf/js/async/4225.744952e9.js +0 -10
  173. package/__mf/js/async/4248.9b99209c.js +0 -1
  174. package/__mf/js/async/5019.51d94aab.js +0 -1
  175. package/__mf/js/async/5071.6ac86637.js +0 -1
  176. package/__mf/js/async/5405.004a286a.js +0 -2
  177. package/__mf/js/async/5405.004a286a.js.LICENSE.txt +0 -37
  178. package/__mf/js/async/5440.7765ad14.js +0 -2
  179. package/__mf/js/async/5481.b7b48b8f.js +0 -2
  180. package/__mf/js/async/5587.12959dbf.js +0 -1
  181. package/__mf/js/async/5706.55b9ef2f.js +0 -1
  182. package/__mf/js/async/6274.0634d636.js +0 -2
  183. package/__mf/js/async/6408.2bc7e8f4.js +0 -7
  184. package/__mf/js/async/6408.2bc7e8f4.js.LICENSE.txt +0 -39
  185. package/__mf/js/async/6410.63a88be6.js +0 -1
  186. package/__mf/js/async/6592.24e266ac.js +0 -1
  187. package/__mf/js/async/6854.21ddded3.js +0 -1
  188. package/__mf/js/async/6864.66bc6315.js +0 -2
  189. package/__mf/js/async/7177.dfbac40a.js +0 -1
  190. package/__mf/js/async/7192.339adba2.js +0 -1
  191. package/__mf/js/async/7793.43841fdc.js +0 -1
  192. package/__mf/js/async/7817.5e96b0dd.js +0 -2
  193. package/__mf/js/async/7968.d586d9f8.js +0 -1
  194. package/__mf/js/async/7978.895bbb5f.js +0 -1
  195. package/__mf/js/async/7984.4808a362.js +0 -22
  196. package/__mf/js/async/8356.053c21d0.js +0 -1
  197. package/__mf/js/async/8470.cb89de3b.js +0 -2
  198. package/__mf/js/async/873.4df0ea19.js +0 -1
  199. package/__mf/js/async/8787.c3298397.js +0 -2
  200. package/__mf/js/async/9235.3e1de7b9.js +0 -1
  201. package/__mf/js/async/941.a44f722e.js +0 -2
  202. package/__mf/js/async/9588.c379dd44.js +0 -1
  203. package/__mf/js/async/9836.fd9de3af.js +0 -1
  204. package/__mf/js/async/9877.8b83de3c.js +0 -38
  205. package/__mf/js/async/9944.4d41cb7b.js +0 -1
  206. package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.87d7c015.js +0 -2
  207. package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.51d0e04a.js +0 -1
  208. package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.f025329d.js +0 -1
  209. package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.e5f5470b.js +0 -1
  210. package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.cad2ff0d.js +0 -1
  211. package/lib/cjs/bootstrap.js +0 -26
  212. package/lib/cjs/components/index.js +0 -23
  213. package/lib/cjs/components/logsql-editor.js +0 -110
  214. package/lib/cjs/components/logsql-extension.js +0 -55
  215. package/lib/cjs/components/logsql-highlight.js +0 -40
  216. package/lib/cjs/datasources/index.js +0 -30
  217. package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +0 -61
  218. package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +0 -95
  219. package/lib/cjs/datasources/victorialogs-datasource/index.js +0 -32
  220. package/lib/cjs/datasources/victorialogs-datasource/types.js +0 -16
  221. package/lib/cjs/env.d.js +0 -14
  222. package/lib/cjs/getPluginModule.js +0 -39
  223. package/lib/cjs/index-federation.js +0 -55
  224. package/lib/cjs/index.js +0 -39
  225. package/lib/cjs/model/client.js +0 -156
  226. package/lib/cjs/model/index.js +0 -32
  227. package/lib/cjs/model/selectors.js +0 -47
  228. package/lib/cjs/model/types.js +0 -16
  229. package/lib/cjs/queries/constants.js +0 -34
  230. package/lib/cjs/queries/index.js +0 -31
  231. package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +0 -63
  232. package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +0 -114
  233. package/lib/cjs/queries/victorialogs-log-query/index.js +0 -33
  234. package/lib/cjs/queries/victorialogs-log-query/query.js +0 -73
  235. package/lib/cjs/queries/victorialogs-log-query/types.js +0 -16
  236. package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +0 -43
  237. package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +0 -112
  238. package/lib/cjs/queries/victorialogs-time-series-query/index.js +0 -33
  239. package/lib/cjs/queries/victorialogs-time-series-query/query.js +0 -126
  240. package/lib/cjs/queries/victorialogs-time-series-query/types.js +0 -16
  241. package/lib/cjs/setup-tests.js +0 -19
  242. package/lib/cjs/variables/index.js +0 -31
  243. package/lib/cjs/variables/types.js +0 -16
  244. package/lib/cjs/variables/utils.js +0 -97
  245. package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +0 -57
  246. package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +0 -80
  247. package/lib/cjs/variables/victorialogs-field-names/index.js +0 -30
  248. package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +0 -61
  249. package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +0 -113
  250. package/lib/cjs/variables/victorialogs-field-values/index.js +0 -30
  251. /package/__mf/css/async/{6408.85c2cbf6.css → 7155.85c2cbf6.css} +0 -0
  252. /package/__mf/js/async/{7984.4808a362.js.LICENSE.txt → 1522.e41aa623.js.LICENSE.txt} +0 -0
  253. /package/__mf/js/async/{198.fbb67f8a.js.LICENSE.txt → 198.4b388f96.js.LICENSE.txt} +0 -0
  254. /package/__mf/js/async/{2749.71c38fe0.js.LICENSE.txt → 2786.4ba35a40.js.LICENSE.txt} +0 -0
  255. /package/__mf/js/async/{392.c6e57bd8.js.LICENSE.txt → 392.8532b8b9.js.LICENSE.txt} +0 -0
  256. /package/__mf/js/async/{4121.5468ac01.js.LICENSE.txt → 4121.43679b06.js.LICENSE.txt} +0 -0
  257. /package/__mf/js/async/{3998.3a757c00.js.LICENSE.txt → 4960.813e0b59.js.LICENSE.txt} +0 -0
  258. /package/__mf/js/async/{5440.7765ad14.js.LICENSE.txt → 5440.e2ea1262.js.LICENSE.txt} +0 -0
  259. /package/__mf/js/async/{6274.0634d636.js.LICENSE.txt → 6274.efc9c64a.js.LICENSE.txt} +0 -0
  260. /package/__mf/js/async/{6864.66bc6315.js.LICENSE.txt → 7817.620f3116.js.LICENSE.txt} +0 -0
  261. /package/__mf/js/async/{5481.b7b48b8f.js.LICENSE.txt → 7862.e6de7017.js.LICENSE.txt} +0 -0
  262. /package/__mf/js/async/{8470.cb89de3b.js.LICENSE.txt → 8470.6cf8f7b1.js.LICENSE.txt} +0 -0
  263. /package/__mf/js/async/{7817.5e96b0dd.js.LICENSE.txt → 941.73cfe62f.js.LICENSE.txt} +0 -0
  264. /package/__mf/js/async/{4225.744952e9.js.LICENSE.txt → 9440.37da95ff.js.LICENSE.txt} +0 -0
  265. /package/__mf/js/async/{8787.c3298397.js.LICENSE.txt → __federation_expose_VictoriaLogsDatasource.db12b897.js.LICENSE.txt} +0 -0
  266. /package/__mf/js/async/{941.a44f722e.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldNamesVariable.59ed2274.js.LICENSE.txt} +0 -0
  267. /package/__mf/js/async/{__federation_expose_VictoriaLogsDatasource.87d7c015.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldValuesVariable.fcbe16ef.js.LICENSE.txt} +0 -0
@@ -1,110 +0,0 @@
1
- // Copyright 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, "LogsQLEditor", {
18
- enumerable: true,
19
- get: function() {
20
- return LogsQLEditor;
21
- }
22
- });
23
- const _jsxruntime = require("react/jsx-runtime");
24
- const _react = require("react");
25
- const _material = require("@mui/material");
26
- const _reactcodemirror = /*#__PURE__*/ _interop_require_wildcard(require("@uiw/react-codemirror"));
27
- const _logsqlextension = require("./logsql-extension");
28
- function _getRequireWildcardCache(nodeInterop) {
29
- if (typeof WeakMap !== "function") return null;
30
- var cacheBabelInterop = new WeakMap();
31
- var cacheNodeInterop = new WeakMap();
32
- return (_getRequireWildcardCache = function(nodeInterop) {
33
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
34
- })(nodeInterop);
35
- }
36
- function _interop_require_wildcard(obj, nodeInterop) {
37
- if (!nodeInterop && obj && obj.__esModule) {
38
- return obj;
39
- }
40
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
41
- return {
42
- default: obj
43
- };
44
- }
45
- var cache = _getRequireWildcardCache(nodeInterop);
46
- if (cache && cache.has(obj)) {
47
- return cache.get(obj);
48
- }
49
- var newObj = {
50
- __proto__: null
51
- };
52
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
53
- for(var key in obj){
54
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
55
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
56
- if (desc && (desc.get || desc.set)) {
57
- Object.defineProperty(newObj, key, desc);
58
- } else {
59
- newObj[key] = obj[key];
60
- }
61
- }
62
- }
63
- newObj.default = obj;
64
- if (cache) {
65
- cache.set(obj, newObj);
66
- }
67
- return newObj;
68
- }
69
- function LogsQLEditor(props) {
70
- const theme = (0, _material.useTheme)();
71
- const isDarkMode = theme.palette.mode === 'dark';
72
- const logsqlExtension = (0, _react.useMemo)(()=>{
73
- return (0, _logsqlextension.LogsQLExtension)();
74
- }, []);
75
- const codemirrorTheme = (0, _react.useMemo)(()=>{
76
- const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
77
- return _reactcodemirror.EditorView.theme({
78
- '&': {
79
- backgroundColor: 'transparent !important',
80
- border: `1px solid ${borderColor}`,
81
- borderRadius: `${theme.shape.borderRadius}px`
82
- },
83
- '&.cm-focused.cm-editor': {
84
- outline: 'none'
85
- },
86
- '.cm-content': {
87
- padding: '8px'
88
- }
89
- });
90
- }, [
91
- theme
92
- ]);
93
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactcodemirror.default, {
94
- ...props,
95
- theme: isDarkMode ? 'dark' : 'light',
96
- basicSetup: {
97
- lineNumbers: false,
98
- highlightActiveLine: false,
99
- highlightActiveLineGutter: false,
100
- foldGutter: false,
101
- syntaxHighlighting: true
102
- },
103
- extensions: [
104
- _reactcodemirror.EditorView.lineWrapping,
105
- logsqlExtension,
106
- codemirrorTheme
107
- ],
108
- placeholder: 'Example: {job="my-service"} |= "error"'
109
- });
110
- }
@@ -1,55 +0,0 @@
1
- // Copyright 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, "LogsQLExtension", {
18
- enumerable: true,
19
- get: function() {
20
- return LogsQLExtension;
21
- }
22
- });
23
- const _language = require("@codemirror/language");
24
- const _lezerlogql = require("@grafana/lezer-logql");
25
- const _logsqlhighlight = require("./logsql-highlight");
26
- function logsqlLanguage() {
27
- return _language.LRLanguage.define({
28
- parser: _lezerlogql.parser.configure({
29
- props: [
30
- _logsqlhighlight.logsqlHighlight
31
- ]
32
- }),
33
- languageData: {
34
- closeBrackets: {
35
- brackets: [
36
- '(',
37
- '[',
38
- '{',
39
- "'",
40
- '"',
41
- '`'
42
- ]
43
- },
44
- commentTokens: {
45
- line: '#'
46
- }
47
- }
48
- });
49
- }
50
- function LogsQLExtension() {
51
- const language = logsqlLanguage();
52
- return [
53
- language
54
- ];
55
- }
@@ -1,40 +0,0 @@
1
- // Copyright 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, "logsqlHighlight", {
18
- enumerable: true,
19
- get: function() {
20
- return logsqlHighlight;
21
- }
22
- });
23
- const _highlight = require("@lezer/highlight");
24
- const logsqlHighlight = (0, _highlight.styleTags)({
25
- LineComment: _highlight.tags.comment,
26
- 'Identifier StreamSelector': _highlight.tags.labelName,
27
- 'LabelName LabelMatcher': _highlight.tags.labelName,
28
- String: _highlight.tags.string,
29
- 'Number Float Duration': _highlight.tags.number,
30
- 'LogRangeAggregation VectorAggregation': _highlight.tags.function(_highlight.tags.keyword),
31
- 'And Or Unless': _highlight.tags.logicOperator,
32
- 'Eq Neq Re Nre Gt Lt Gte Lte': _highlight.tags.compareOperator,
33
- 'Add Sub Mul Div Mod Pow': _highlight.tags.arithmeticOperator,
34
- Pipe: _highlight.tags.operator,
35
- 'By Without': _highlight.tags.keyword,
36
- '( )': _highlight.tags.paren,
37
- '[ ]': _highlight.tags.squareBracket,
38
- '{ }': _highlight.tags.brace,
39
- '⚠': _highlight.tags.invalid
40
- });
@@ -1,30 +0,0 @@
1
- // Copyright 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-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
- }
@@ -1,61 +0,0 @@
1
- // Copyright 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, "VictoriaLogsDatasource", {
18
- enumerable: true,
19
- get: function() {
20
- return VictoriaLogsDatasource;
21
- }
22
- });
23
- const _client = require("../../model/client");
24
- const _VictoriaLogsDatasourceEditor = require("./VictoriaLogsDatasourceEditor");
25
- const createClient = (spec, options)=>{
26
- const { directUrl, proxy } = spec;
27
- const { proxyUrl } = options;
28
- const datasourceUrl = directUrl ?? proxyUrl;
29
- if (datasourceUrl === undefined) {
30
- throw new Error('No URL specified for VictoriaLogs client. You can use directUrl in the spec to configure it.');
31
- }
32
- const specHeaders = proxy?.spec.headers;
33
- return {
34
- options: {
35
- datasourceUrl
36
- },
37
- streamQueryRange: (params, headers)=>(0, _client.streamQueryRange)(params, {
38
- datasourceUrl,
39
- headers: headers ?? specHeaders
40
- }),
41
- statsQueryRange: (params, headers)=>(0, _client.statsQueryRange)(params, {
42
- datasourceUrl,
43
- headers: headers ?? specHeaders
44
- }),
45
- fieldNames: (params, headers)=>(0, _client.fieldNames)(params, {
46
- datasourceUrl,
47
- headers: headers ?? specHeaders
48
- }),
49
- fieldValues: (params, headers)=>(0, _client.fieldValues)(params, {
50
- datasourceUrl,
51
- headers: headers ?? specHeaders
52
- })
53
- };
54
- };
55
- const VictoriaLogsDatasource = {
56
- createClient,
57
- OptionsEditorComponent: _VictoriaLogsDatasourceEditor.VictoriaLogsDatasourceEditor,
58
- createInitialOptions: ()=>({
59
- directUrl: ''
60
- })
61
- };
@@ -1,95 +0,0 @@
1
- // Copyright 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
- }
@@ -1,32 +0,0 @@
1
- // Copyright 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
- }
@@ -1,16 +0,0 @@
1
- // Copyright 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
- });
package/lib/cjs/env.d.js DELETED
@@ -1,14 +0,0 @@
1
- // Copyright 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";
@@ -1,39 +0,0 @@
1
- // Copyright 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
- }
@@ -1,55 +0,0 @@
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
- // Copyright The Perses Authors
44
- // Licensed under the Apache License, Version 2.0 (the \"License\");
45
- // you may not use this file except in compliance with the License.
46
- // You may obtain a copy of the License at
47
- //
48
- // http://www.apache.org/licenses/LICENSE-2.0
49
- //
50
- // Unless required by applicable law or agreed to in writing, software
51
- // distributed under the License is distributed on an \"AS IS\" BASIS,
52
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53
- // See the License for the specific language governing permissions and
54
- // limitations under the License.
55
- Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./bootstrap")));
package/lib/cjs/index.js DELETED
@@ -1,39 +0,0 @@
1
- // Copyright 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("./model"), 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
- }