@perses-dev/victorialogs-plugin 0.3.0-beta.0 → 0.3.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 (180) hide show
  1. package/__mf/js/{VictoriaLogs.d3b01c69.js → VictoriaLogs.796e2488.js} +3 -3
  2. package/__mf/js/async/1728.4186adbe.js +1 -0
  3. package/__mf/js/async/392.8da1804a.js +2 -0
  4. package/__mf/js/async/3954.dbc4d4c5.js +1 -0
  5. package/__mf/js/async/54.4c016d3d.js +22 -0
  6. package/__mf/js/async/5440.9338b9ea.js +2 -0
  7. package/__mf/js/async/{5440.f8ca94c1.js.LICENSE.txt → 5440.9338b9ea.js.LICENSE.txt} +3 -3
  8. package/__mf/js/async/7576.4a8d8b90.js +2 -0
  9. package/__mf/js/async/7958.bd561cbd.js +7 -0
  10. package/__mf/js/async/9010.85600fc4.js +2 -0
  11. package/__mf/js/async/{8035.d5aedc00.js → 9877.73cfc5dd.js} +9 -9
  12. package/__mf/js/async/{__federation_expose_VictoriaLogsDatasource.163bb6a4.js → __federation_expose_VictoriaLogsDatasource.9d56f698.js} +2 -2
  13. package/__mf/js/async/{__federation_expose_VictoriaLogsFieldNamesVariable.4a4949a1.js → __federation_expose_VictoriaLogsFieldNamesVariable.5bf33a62.js} +2 -2
  14. package/__mf/js/async/{__federation_expose_VictoriaLogsFieldValuesVariable.d95843ce.js → __federation_expose_VictoriaLogsFieldValuesVariable.7e86dee8.js} +2 -2
  15. package/__mf/js/async/{__federation_expose_VictoriaLogsLogQuery.61d14c09.js → __federation_expose_VictoriaLogsLogQuery.8a11f931.js} +1 -1
  16. package/__mf/js/async/{__federation_expose_VictoriaLogsTimeSeriesQuery.7109f505.js → __federation_expose_VictoriaLogsTimeSeriesQuery.34b8c330.js} +1 -1
  17. package/__mf/js/{main.9cf12b2f.js → main.21f57521.js} +3 -3
  18. package/lib/bootstrap.js +15 -3
  19. package/lib/bootstrap.js.map +1 -1
  20. package/lib/cjs/bootstrap.js +13 -1
  21. package/lib/cjs/components/index.js +1 -1
  22. package/lib/cjs/components/logsql-editor.js +1 -1
  23. package/lib/cjs/components/logsql-extension.js +1 -1
  24. package/lib/cjs/components/logsql-highlight.js +1 -1
  25. package/lib/cjs/datasources/index.js +1 -1
  26. package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +1 -1
  27. package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +1 -1
  28. package/lib/cjs/datasources/victorialogs-datasource/index.js +1 -1
  29. package/lib/cjs/datasources/victorialogs-datasource/types.js +1 -1
  30. package/lib/cjs/env.d.js +12 -0
  31. package/lib/cjs/getPluginModule.js +12 -0
  32. package/lib/cjs/index-federation.js +12 -0
  33. package/lib/cjs/index.js +12 -0
  34. package/lib/cjs/model/client.js +10 -10
  35. package/lib/cjs/model/index.js +1 -1
  36. package/lib/cjs/model/selectors.js +1 -1
  37. package/lib/cjs/model/types.js +1 -1
  38. package/lib/cjs/queries/constants.js +12 -0
  39. package/lib/cjs/queries/index.js +1 -1
  40. package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +12 -0
  41. package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +1 -1
  42. package/lib/cjs/queries/victorialogs-log-query/index.js +12 -0
  43. package/lib/cjs/queries/victorialogs-log-query/interface.js +12 -0
  44. package/lib/cjs/queries/victorialogs-log-query/query.js +13 -1
  45. package/lib/cjs/queries/victorialogs-log-query/types.js +12 -0
  46. package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +1 -1
  47. package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +1 -1
  48. package/lib/cjs/queries/victorialogs-time-series-query/index.js +1 -1
  49. package/lib/cjs/queries/victorialogs-time-series-query/query.js +2 -2
  50. package/lib/cjs/queries/victorialogs-time-series-query/types.js +1 -1
  51. package/lib/cjs/setup-tests.js +12 -0
  52. package/lib/cjs/variables/index.js +1 -1
  53. package/lib/cjs/variables/types.js +12 -0
  54. package/lib/cjs/variables/utils.js +12 -0
  55. package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +13 -1
  56. package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +1 -1
  57. package/lib/cjs/variables/victorialogs-field-names/index.js +1 -1
  58. package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +13 -1
  59. package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +1 -1
  60. package/lib/cjs/variables/victorialogs-field-values/index.js +1 -1
  61. package/lib/components/index.js +1 -1
  62. package/lib/components/index.js.map +1 -1
  63. package/lib/components/logsql-editor.js +1 -1
  64. package/lib/components/logsql-editor.js.map +1 -1
  65. package/lib/components/logsql-extension.js +1 -1
  66. package/lib/components/logsql-extension.js.map +1 -1
  67. package/lib/components/logsql-highlight.js +1 -1
  68. package/lib/components/logsql-highlight.js.map +1 -1
  69. package/lib/datasources/index.js +1 -1
  70. package/lib/datasources/index.js.map +1 -1
  71. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts.map +1 -1
  72. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +1 -1
  73. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js.map +1 -1
  74. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +1 -1
  75. package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js.map +1 -1
  76. package/lib/datasources/victorialogs-datasource/index.js +1 -1
  77. package/lib/datasources/victorialogs-datasource/index.js.map +1 -1
  78. package/lib/datasources/victorialogs-datasource/types.js +1 -1
  79. package/lib/datasources/victorialogs-datasource/types.js.map +1 -1
  80. package/lib/env.d.js +12 -0
  81. package/lib/env.d.js.map +1 -1
  82. package/lib/getPluginModule.d.ts.map +1 -1
  83. package/lib/getPluginModule.js +12 -0
  84. package/lib/getPluginModule.js.map +1 -1
  85. package/lib/index-federation.js +12 -0
  86. package/lib/index-federation.js.map +1 -1
  87. package/lib/index.d.ts.map +1 -1
  88. package/lib/index.js +12 -0
  89. package/lib/index.js.map +1 -1
  90. package/lib/model/client.d.ts.map +1 -1
  91. package/lib/model/client.js +10 -10
  92. package/lib/model/client.js.map +1 -1
  93. package/lib/model/index.js +1 -1
  94. package/lib/model/index.js.map +1 -1
  95. package/lib/model/selectors.d.ts.map +1 -1
  96. package/lib/model/selectors.js +1 -1
  97. package/lib/model/selectors.js.map +1 -1
  98. package/lib/model/types.d.ts.map +1 -1
  99. package/lib/model/types.js +1 -1
  100. package/lib/model/types.js.map +1 -1
  101. package/lib/queries/constants.d.ts.map +1 -1
  102. package/lib/queries/constants.js +12 -0
  103. package/lib/queries/constants.js.map +1 -1
  104. package/lib/queries/index.js +1 -1
  105. package/lib/queries/index.js.map +1 -1
  106. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.d.ts.map +1 -1
  107. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +12 -0
  108. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js.map +1 -1
  109. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts.map +1 -1
  110. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +1 -1
  111. package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js.map +1 -1
  112. package/lib/queries/victorialogs-log-query/index.d.ts.map +1 -1
  113. package/lib/queries/victorialogs-log-query/index.js +12 -0
  114. package/lib/queries/victorialogs-log-query/index.js.map +1 -1
  115. package/lib/queries/victorialogs-log-query/interface.d.ts.map +1 -1
  116. package/lib/queries/victorialogs-log-query/interface.js +12 -0
  117. package/lib/queries/victorialogs-log-query/interface.js.map +1 -1
  118. package/lib/queries/victorialogs-log-query/query.d.ts.map +1 -1
  119. package/lib/queries/victorialogs-log-query/query.js +13 -1
  120. package/lib/queries/victorialogs-log-query/query.js.map +1 -1
  121. package/lib/queries/victorialogs-log-query/types.d.ts.map +1 -1
  122. package/lib/queries/victorialogs-log-query/types.js +12 -0
  123. package/lib/queries/victorialogs-log-query/types.js.map +1 -1
  124. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +1 -1
  125. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js.map +1 -1
  126. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +1 -1
  127. package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js.map +1 -1
  128. package/lib/queries/victorialogs-time-series-query/index.js +1 -1
  129. package/lib/queries/victorialogs-time-series-query/index.js.map +1 -1
  130. package/lib/queries/victorialogs-time-series-query/query.d.ts.map +1 -1
  131. package/lib/queries/victorialogs-time-series-query/query.js +2 -2
  132. package/lib/queries/victorialogs-time-series-query/query.js.map +1 -1
  133. package/lib/queries/victorialogs-time-series-query/types.js +1 -1
  134. package/lib/queries/victorialogs-time-series-query/types.js.map +1 -1
  135. package/lib/setup-tests.d.ts.map +1 -1
  136. package/lib/setup-tests.js +12 -0
  137. package/lib/setup-tests.js.map +1 -1
  138. package/lib/variables/index.js +1 -1
  139. package/lib/variables/index.js.map +1 -1
  140. package/lib/variables/types.d.ts +1 -1
  141. package/lib/variables/types.d.ts.map +1 -1
  142. package/lib/variables/types.js +12 -0
  143. package/lib/variables/types.js.map +1 -1
  144. package/lib/variables/utils.d.ts +1 -1
  145. package/lib/variables/utils.d.ts.map +1 -1
  146. package/lib/variables/utils.js +12 -0
  147. package/lib/variables/utils.js.map +1 -1
  148. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.d.ts.map +1 -1
  149. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +13 -1
  150. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js.map +1 -1
  151. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +1 -1
  152. package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js.map +1 -1
  153. package/lib/variables/victorialogs-field-names/index.js +1 -1
  154. package/lib/variables/victorialogs-field-names/index.js.map +1 -1
  155. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.d.ts.map +1 -1
  156. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +13 -1
  157. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js.map +1 -1
  158. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +1 -1
  159. package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js.map +1 -1
  160. package/lib/variables/victorialogs-field-values/index.js +1 -1
  161. package/lib/variables/victorialogs-field-values/index.js.map +1 -1
  162. package/mf-manifest.json +54 -54
  163. package/mf-stats.json +54 -54
  164. package/package.json +7 -6
  165. package/__mf/js/async/1490.0a9fe77f.js +0 -22
  166. package/__mf/js/async/1728.6382e915.js +0 -1
  167. package/__mf/js/async/3664.6288aa89.js +0 -2
  168. package/__mf/js/async/3849.115bcf03.js +0 -7
  169. package/__mf/js/async/392.2a915032.js +0 -2
  170. package/__mf/js/async/5440.f8ca94c1.js +0 -2
  171. package/__mf/js/async/5501.df443492.js +0 -2
  172. package/__mf/js/async/713.249fa307.js +0 -1
  173. /package/__mf/js/async/{392.2a915032.js.LICENSE.txt → 392.8da1804a.js.LICENSE.txt} +0 -0
  174. /package/__mf/js/async/{1490.0a9fe77f.js.LICENSE.txt → 54.4c016d3d.js.LICENSE.txt} +0 -0
  175. /package/__mf/js/async/{3664.6288aa89.js.LICENSE.txt → 7576.4a8d8b90.js.LICENSE.txt} +0 -0
  176. /package/__mf/js/async/{3849.115bcf03.js.LICENSE.txt → 7958.bd561cbd.js.LICENSE.txt} +0 -0
  177. /package/__mf/js/async/{5501.df443492.js.LICENSE.txt → 9010.85600fc4.js.LICENSE.txt} +0 -0
  178. /package/__mf/js/async/{__federation_expose_VictoriaLogsDatasource.163bb6a4.js.LICENSE.txt → __federation_expose_VictoriaLogsDatasource.9d56f698.js.LICENSE.txt} +0 -0
  179. /package/__mf/js/async/{__federation_expose_VictoriaLogsFieldNamesVariable.4a4949a1.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldNamesVariable.5bf33a62.js.LICENSE.txt} +0 -0
  180. /package/__mf/js/async/{__federation_expose_VictoriaLogsFieldValuesVariable.d95843ce.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldValuesVariable.7e86dee8.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/VictoriaLogsDatasource.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DatasourcePlugin } from '@perses-dev/plugin-system';\nimport {\n VictoriaLogsClient,\n streamQueryRange,\n statsQueryRange,\n fieldNames,\n fieldValues,\n} from '../../model/client';\nimport { VictoriaLogsDatasourceSpec } from './types';\nimport { VictoriaLogsDatasourceEditor } from './VictoriaLogsDatasourceEditor';\n\nconst createClient: DatasourcePlugin<VictoriaLogsDatasourceSpec, VictoriaLogsClient>['createClient'] = (spec, options) => {\n const { directUrl, proxy } = spec;\n const { proxyUrl } = options;\n\n const datasourceUrl = directUrl ?? proxyUrl;\n if (datasourceUrl === undefined) {\n throw new Error('No URL specified for VictoriaLogs client. You can use directUrl in the spec to configure it.');\n }\n\n const specHeaders = proxy?.spec.headers;\n\n return {\n options: {\n datasourceUrl,\n },\n streamQueryRange: (params, headers) => streamQueryRange(params, { datasourceUrl, headers: headers ?? specHeaders }),\n statsQueryRange: (params, headers) => statsQueryRange(params, { datasourceUrl, headers: headers ?? specHeaders }),\n fieldNames: (params, headers) => fieldNames(params, { datasourceUrl, headers: headers ?? specHeaders }),\n fieldValues: (params, headers) => fieldValues(params, { datasourceUrl, headers: headers ?? specHeaders }),\n };\n};\n\nexport const VictoriaLogsDatasource: DatasourcePlugin<VictoriaLogsDatasourceSpec, VictoriaLogsClient> = {\n createClient,\n OptionsEditorComponent: VictoriaLogsDatasourceEditor,\n createInitialOptions: () => ({ directUrl: '' }),\n};\n"],"names":["streamQueryRange","statsQueryRange","fieldNames","fieldValues","VictoriaLogsDatasourceEditor","createClient","spec","options","directUrl","proxy","proxyUrl","datasourceUrl","undefined","Error","specHeaders","headers","params","VictoriaLogsDatasource","OptionsEditorComponent","createInitialOptions"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAEEA,gBAAgB,EAChBC,eAAe,EACfC,UAAU,EACVC,WAAW,QACN,qBAAqB;AAE5B,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E,MAAMC,eAAiG,CAACC,MAAMC;IAC5G,MAAM,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGH;IAC7B,MAAM,EAAEI,QAAQ,EAAE,GAAGH;IAErB,MAAMI,gBAAgBH,aAAaE;IACnC,IAAIC,kBAAkBC,WAAW;QAC/B,MAAM,IAAIC,MAAM;IAClB;IAEA,MAAMC,cAAcL,OAAOH,KAAKS;IAEhC,OAAO;QACLR,SAAS;YACPI;QACF;QACAX,kBAAkB,CAACgB,QAAQD,UAAYf,iBAAiBgB,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;QACjHb,iBAAiB,CAACe,QAAQD,UAAYd,gBAAgBe,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;QAC/GZ,YAAY,CAACc,QAAQD,UAAYb,WAAWc,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;QACrGX,aAAa,CAACa,QAAQD,UAAYZ,YAAYa,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;IACzG;AACF;AAEA,OAAO,MAAMG,yBAA2F;IACtGZ;IACAa,wBAAwBd;IACxBe,sBAAsB,IAAO,CAAA;YAAEX,WAAW;QAAG,CAAA;AAC/C,EAAE"}
1
+ {"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/VictoriaLogsDatasource.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DatasourcePlugin } from '@perses-dev/plugin-system';\nimport { VictoriaLogsClient, streamQueryRange, statsQueryRange, fieldNames, fieldValues } from '../../model/client';\nimport { VictoriaLogsDatasourceSpec } from './types';\nimport { VictoriaLogsDatasourceEditor } from './VictoriaLogsDatasourceEditor';\n\nconst createClient: DatasourcePlugin<VictoriaLogsDatasourceSpec, VictoriaLogsClient>['createClient'] = (\n spec,\n options\n) => {\n const { directUrl, proxy } = spec;\n const { proxyUrl } = options;\n\n const datasourceUrl = directUrl ?? proxyUrl;\n if (datasourceUrl === undefined) {\n throw new Error('No URL specified for VictoriaLogs client. You can use directUrl in the spec to configure it.');\n }\n\n const specHeaders = proxy?.spec.headers;\n\n return {\n options: {\n datasourceUrl,\n },\n streamQueryRange: (params, headers) => streamQueryRange(params, { datasourceUrl, headers: headers ?? specHeaders }),\n statsQueryRange: (params, headers) => statsQueryRange(params, { datasourceUrl, headers: headers ?? specHeaders }),\n fieldNames: (params, headers) => fieldNames(params, { datasourceUrl, headers: headers ?? specHeaders }),\n fieldValues: (params, headers) => fieldValues(params, { datasourceUrl, headers: headers ?? specHeaders }),\n };\n};\n\nexport const VictoriaLogsDatasource: DatasourcePlugin<VictoriaLogsDatasourceSpec, VictoriaLogsClient> = {\n createClient,\n OptionsEditorComponent: VictoriaLogsDatasourceEditor,\n createInitialOptions: () => ({ directUrl: '' }),\n};\n"],"names":["streamQueryRange","statsQueryRange","fieldNames","fieldValues","VictoriaLogsDatasourceEditor","createClient","spec","options","directUrl","proxy","proxyUrl","datasourceUrl","undefined","Error","specHeaders","headers","params","VictoriaLogsDatasource","OptionsEditorComponent","createInitialOptions"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAA6BA,gBAAgB,EAAEC,eAAe,EAAEC,UAAU,EAAEC,WAAW,QAAQ,qBAAqB;AAEpH,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E,MAAMC,eAAiG,CACrGC,MACAC;IAEA,MAAM,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGH;IAC7B,MAAM,EAAEI,QAAQ,EAAE,GAAGH;IAErB,MAAMI,gBAAgBH,aAAaE;IACnC,IAAIC,kBAAkBC,WAAW;QAC/B,MAAM,IAAIC,MAAM;IAClB;IAEA,MAAMC,cAAcL,OAAOH,KAAKS;IAEhC,OAAO;QACLR,SAAS;YACPI;QACF;QACAX,kBAAkB,CAACgB,QAAQD,UAAYf,iBAAiBgB,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;QACjHb,iBAAiB,CAACe,QAAQD,UAAYd,gBAAgBe,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;QAC/GZ,YAAY,CAACc,QAAQD,UAAYb,WAAWc,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;QACrGX,aAAa,CAACa,QAAQD,UAAYZ,YAAYa,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;IACzG;AACF;AAEA,OAAO,MAAMG,yBAA2F;IACtGZ;IACAa,wBAAwBd;IACxBe,sBAAsB,IAAO,CAAA;YAAEX,WAAW;QAAG,CAAA;AAC/C,EAAE"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright 2025 The Perses Authors
2
+ // Copyright The Perses Authors
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
5
5
  // You may obtain a copy of the License at
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { HTTPSettingsEditor } from '@perses-dev/plugin-system';\nimport { ReactElement } from 'react';\nimport { VictoriaLogsDatasourceSpec } from './types';\n\nexport interface VictoriaLogsDatasourceEditorProps {\n value: VictoriaLogsDatasourceSpec;\n onChange: (next: VictoriaLogsDatasourceSpec) => void;\n isReadonly?: boolean;\n}\n\nexport function VictoriaLogsDatasourceEditor(props: VictoriaLogsDatasourceEditorProps): ReactElement {\n const { value, onChange, isReadonly } = props;\n\n const initialSpecDirect: VictoriaLogsDatasourceSpec = {\n directUrl: '',\n };\n\n const initialSpecProxy: VictoriaLogsDatasourceSpec = {\n proxy: {\n kind: 'HTTPProxy',\n spec: {\n allowedEndpoints: [\n {\n endpointPattern: '/select/logsql/stats_query',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stats_query_range',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/field_names',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/field_values',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/tail',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/query',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/hits',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/facets',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stream_ids',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/streams',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stream_field_names',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stream_field_values',\n method: 'POST',\n },\n ],\n url: '',\n },\n },\n };\n\n return (\n <HTTPSettingsEditor\n value={value}\n onChange={onChange}\n isReadonly={isReadonly}\n initialSpecDirect={initialSpecDirect}\n initialSpecProxy={initialSpecProxy}\n />\n );\n}\n"],"names":["HTTPSettingsEditor","VictoriaLogsDatasourceEditor","props","value","onChange","isReadonly","initialSpecDirect","directUrl","initialSpecProxy","proxy","kind","spec","allowedEndpoints","endpointPattern","method","url"],"mappings":";AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,kBAAkB,QAAQ,4BAA4B;AAU/D,OAAO,SAASC,6BAA6BC,KAAwC;IACnF,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAE,GAAGH;IAExC,MAAMI,oBAAgD;QACpDC,WAAW;IACb;IAEA,MAAMC,mBAA+C;QACnDC,OAAO;YACLC,MAAM;YACNC,MAAM;gBACJC,kBAAkB;oBAChB;wBACEC,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;iBACD;gBACDC,KAAK;YACP;QACF;IACF;IAEA,qBACE,KAACf;QACCG,OAAOA;QACPC,UAAUA;QACVC,YAAYA;QACZC,mBAAmBA;QACnBE,kBAAkBA;;AAGxB"}
1
+ {"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { HTTPSettingsEditor } from '@perses-dev/plugin-system';\nimport { ReactElement } from 'react';\nimport { VictoriaLogsDatasourceSpec } from './types';\n\nexport interface VictoriaLogsDatasourceEditorProps {\n value: VictoriaLogsDatasourceSpec;\n onChange: (next: VictoriaLogsDatasourceSpec) => void;\n isReadonly?: boolean;\n}\n\nexport function VictoriaLogsDatasourceEditor(props: VictoriaLogsDatasourceEditorProps): ReactElement {\n const { value, onChange, isReadonly } = props;\n\n const initialSpecDirect: VictoriaLogsDatasourceSpec = {\n directUrl: '',\n };\n\n const initialSpecProxy: VictoriaLogsDatasourceSpec = {\n proxy: {\n kind: 'HTTPProxy',\n spec: {\n allowedEndpoints: [\n {\n endpointPattern: '/select/logsql/stats_query',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stats_query_range',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/field_names',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/field_values',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/tail',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/query',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/hits',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/facets',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stream_ids',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/streams',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stream_field_names',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stream_field_values',\n method: 'POST',\n },\n ],\n url: '',\n },\n },\n };\n\n return (\n <HTTPSettingsEditor\n value={value}\n onChange={onChange}\n isReadonly={isReadonly}\n initialSpecDirect={initialSpecDirect}\n initialSpecProxy={initialSpecProxy}\n />\n );\n}\n"],"names":["HTTPSettingsEditor","VictoriaLogsDatasourceEditor","props","value","onChange","isReadonly","initialSpecDirect","directUrl","initialSpecProxy","proxy","kind","spec","allowedEndpoints","endpointPattern","method","url"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,kBAAkB,QAAQ,4BAA4B;AAU/D,OAAO,SAASC,6BAA6BC,KAAwC;IACnF,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAE,GAAGH;IAExC,MAAMI,oBAAgD;QACpDC,WAAW;IACb;IAEA,MAAMC,mBAA+C;QACnDC,OAAO;YACLC,MAAM;YACNC,MAAM;gBACJC,kBAAkB;oBAChB;wBACEC,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;iBACD;gBACDC,KAAK;YACP;QACF;IACF;IAEA,qBACE,KAACf;QACCG,OAAOA;QACPC,UAAUA;QACVC,YAAYA;QACZC,mBAAmBA;QACnBE,kBAAkBA;;AAGxB"}
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/index.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './VictoriaLogsDatasource';\nexport * from './VictoriaLogsDatasourceEditor';\nexport * from './types';\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,2BAA2B;AACzC,cAAc,iCAAiC;AAC/C,cAAc,UAAU"}
1
+ {"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './VictoriaLogsDatasource';\nexport * from './VictoriaLogsDatasourceEditor';\nexport * from './types';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,2BAA2B;AACzC,cAAc,iCAAiC;AAC/C,cAAc,UAAU"}
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/types.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { HTTPProxy } from '@perses-dev/core';\n\nexport interface VictoriaLogsDatasourceSpec {\n directUrl?: string;\n proxy?: HTTPProxy;\n}\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAIjC,WAGC"}
1
+ {"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/types.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { HTTPProxy } from '@perses-dev/core';\n\nexport interface VictoriaLogsDatasourceSpec {\n directUrl?: string;\n proxy?: HTTPProxy;\n}\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAIjC,WAGC"}
package/lib/env.d.js CHANGED
@@ -1,3 +1,15 @@
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.
1
13
  /// <reference types="@rsbuild/core/types" />
2
14
 
3
15
  //# sourceMappingURL=env.d.js.map
package/lib/env.d.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/env.d.ts"],"sourcesContent":["/// <reference types=\"@rsbuild/core/types\" />\n"],"names":[],"mappings":"AAAA,6CAA6C"}
1
+ {"version":3,"sources":["../../src/env.d.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/// <reference types=\"@rsbuild/core/types\" />\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,6CAA6C"}
@@ -1 +1 @@
1
- {"version":3,"file":"getPluginModule.d.ts","sourceRoot":"","sources":["../../src/getPluginModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAoB,MAAM,2BAA2B,CAAC;AAGnF;;GAEG;AACH,wBAAgB,eAAe,IAAI,oBAAoB,CAUtD"}
1
+ {"version":3,"file":"getPluginModule.d.ts","sourceRoot":"","sources":["../../src/getPluginModule.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAoB,MAAM,2BAA2B,CAAC;AAGnF;;GAEG;AACH,wBAAgB,eAAe,IAAI,oBAAoB,CAUtD"}
@@ -1,3 +1,15 @@
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.
1
13
  import packageJson from '../package.json';
2
14
  /**
3
15
  * Returns the plugin module information from package.json
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/getPluginModule.ts"],"sourcesContent":["import { PluginModuleResource, PluginModuleSpec } from '@perses-dev/plugin-system';\nimport packageJson from '../package.json';\n\n/**\n * Returns the plugin module information from package.json\n */\nexport function getPluginModule(): PluginModuleResource {\n const { name, version, perses } = packageJson;\n return {\n kind: 'PluginModule',\n metadata: {\n name,\n version,\n },\n spec: perses as PluginModuleSpec,\n };\n}\n"],"names":["packageJson","getPluginModule","name","version","perses","kind","metadata","spec"],"mappings":"AACA,OAAOA,iBAAiB,kBAAkB;AAE1C;;CAEC,GACD,OAAO,SAASC;IACd,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAEC,MAAM,EAAE,GAAGJ;IAClC,OAAO;QACLK,MAAM;QACNC,UAAU;YACRJ;YACAC;QACF;QACAI,MAAMH;IACR;AACF"}
1
+ {"version":3,"sources":["../../src/getPluginModule.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PluginModuleResource, PluginModuleSpec } from '@perses-dev/plugin-system';\nimport packageJson from '../package.json';\n\n/**\n * Returns the plugin module information from package.json\n */\nexport function getPluginModule(): PluginModuleResource {\n const { name, version, perses } = packageJson;\n return {\n kind: 'PluginModule',\n metadata: {\n name,\n version,\n },\n spec: perses as PluginModuleSpec,\n };\n}\n"],"names":["packageJson","getPluginModule","name","version","perses","kind","metadata","spec"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,OAAOA,iBAAiB,kBAAkB;AAE1C;;CAEC,GACD,OAAO,SAASC;IACd,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAEC,MAAM,EAAE,GAAGJ;IAClC,OAAO;QACLK,MAAM;QACNC,UAAU;YACRJ;YACAC;QACF;QACAI,MAAMH;IACR;AACF"}
@@ -1,3 +1,15 @@
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.
1
13
  import('./bootstrap');
2
14
 
3
15
  //# sourceMappingURL=index-federation.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index-federation.ts"],"sourcesContent":["import('./bootstrap');\n"],"names":[],"mappings":"AAAA,MAAM,CAAC"}
1
+ {"version":3,"sources":["../../src/index-federation.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport('./bootstrap');\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
package/lib/index.js CHANGED
@@ -1,3 +1,15 @@
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.
1
13
  export { getPluginModule } from './getPluginModule';
2
14
  export * from './model';
3
15
  export * from './queries';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export { getPluginModule } from './getPluginModule';\nexport * from './model';\nexport * from './queries';\nexport * from './datasources';\n"],"names":["getPluginModule"],"mappings":"AAAA,SAASA,eAAe,QAAQ,oBAAoB;AACpD,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,gBAAgB"}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport { getPluginModule } from './getPluginModule';\nexport * from './model';\nexport * from './queries';\nexport * from './datasources';\n"],"names":["getPluginModule"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,eAAe,QAAQ,o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AE,sBAAsB,GAC9B,OAAO,CAAC,+BAA+B,CAAC,CAoB1C"}
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -39,7 +39,7 @@ export async function streamQueryRange(params, options) {
39
39
  method: 'POST',
40
40
  headers: {
41
41
  'Content-Type': 'application/x-www-form-urlencoded',
42
- 'Accept': 'application/stream+json',
42
+ Accept: 'application/stream+json',
43
43
  ...options.headers
44
44
  },
45
45
  body: data
@@ -50,12 +50,11 @@ export async function streamQueryRange(params, options) {
50
50
  const output = [];
51
51
  if (!response?.body) return output;
52
52
  const reader = response.body.getReader();
53
- const decoder = new TextDecoder("utf-8");
53
+ const decoder = new TextDecoder('utf-8');
54
54
  let buffer = '';
55
- while(true){
56
- const { value, done } = await reader.read();
57
- if (done) break;
58
- buffer += decoder.decode(value, {
55
+ let result = await reader.read();
56
+ while(!result.done){
57
+ buffer += decoder.decode(result.value, {
59
58
  stream: true
60
59
  });
61
60
  let boundary = buffer.indexOf('\n');
@@ -65,6 +64,7 @@ export async function streamQueryRange(params, options) {
65
64
  output.push(JSON.parse(line));
66
65
  boundary = buffer.indexOf('\n');
67
66
  }
67
+ result = await reader.read();
68
68
  }
69
69
  if (buffer.trim().length > 0) {
70
70
  output.push(JSON.parse(buffer));
@@ -84,7 +84,7 @@ export async function statsQueryRange(params, options) {
84
84
  method: 'POST',
85
85
  headers: {
86
86
  'Content-Type': 'application/x-www-form-urlencoded',
87
- 'Accept': 'application/json',
87
+ Accept: 'application/json',
88
88
  ...options.headers
89
89
  },
90
90
  body: data
@@ -103,7 +103,7 @@ export async function fieldNames(params, options) {
103
103
  method: 'POST',
104
104
  headers: {
105
105
  'Content-Type': 'application/x-www-form-urlencoded',
106
- 'Accept': 'application/json',
106
+ Accept: 'application/json',
107
107
  ...options.headers
108
108
  },
109
109
  body: data
@@ -123,7 +123,7 @@ export async function fieldValues(params, options) {
123
123
  method: 'POST',
124
124
  headers: {
125
125
  'Content-Type': 'application/x-www-form-urlencoded',
126
- 'Accept': 'application/json',
126
+ Accept: 'application/json',
127
127
  ...options.headers
128
128
  },
129
129
  body: data
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/model/client.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport {\n VictoriaLogsStreamQueryRangeResponse,\n VictoriaLogsStatsQueryRangeResponse,\n VictoriaLogsFieldNamesResponse,\n VictoriaLogsFieldValuesResponse,\n VictoriaLogsIndexStatsResponse,\n VictoriaLogsRequestHeaders,\n} from './types';\n\nexport interface VictoriaLogsBaseParams {\n start: string;\n end: string;\n}\n\nexport interface VictoriaLogsStreamQueryRangeParams extends VictoriaLogsBaseParams {\n query: string;\n limit?: number;\n offset?: number;\n}\n\nexport interface VictoriaLogsStatsQueryRangeParams extends VictoriaLogsBaseParams {\n query: string;\n step?: string;\n}\n\nexport interface VictoriaLogsFieldNamesParams extends VictoriaLogsBaseParams {\n query: string;\n}\n\nexport interface VictoriaLogsFieldValuesParams extends VictoriaLogsBaseParams {\n query: string;\n field: string;\n}\n\nexport interface VictoriaLogsApiOptions {\n datasourceUrl: string;\n headers?: VictoriaLogsRequestHeaders;\n}\n\nexport interface VictoriaLogsClient {\n options: {\n datasourceUrl: string;\n };\n streamQueryRange: (params: VictoriaLogsStreamQueryRangeParams, headers?: VictoriaLogsRequestHeaders) => Promise<VictoriaLogsStreamQueryRangeResponse>;\n statsQueryRange: (params: VictoriaLogsStatsQueryRangeParams, headers?: VictoriaLogsRequestHeaders) => Promise<VictoriaLogsStatsQueryRangeResponse>;\n fieldNames: (params: VictoriaLogsFieldNamesParams, headers?: VictoriaLogsRequestHeaders) => Promise<VictoriaLogsFieldNamesResponse>;\n fieldValues: (params: VictoriaLogsFieldValuesParams, headers?: VictoriaLogsRequestHeaders) => Promise<VictoriaLogsFieldValuesResponse>;\n}\n\nfunction buildUrl(path: string, datasourceUrl: string): URL {\n if (datasourceUrl.startsWith('http://') || datasourceUrl.startsWith('https://')) {\n return new URL(path, datasourceUrl);\n }\n\n let fullPath = datasourceUrl;\n // Assume relative path, ensure no double slashes\n if (datasourceUrl.endsWith('/') && path.startsWith('/')) {\n fullPath = datasourceUrl + path.slice(1);\n } else if (!datasourceUrl.endsWith('/') && !path.startsWith('/')) {\n fullPath = datasourceUrl + '/' + path;\n } else {\n fullPath = datasourceUrl + path;\n }\n\n return new URL(fullPath, window.location.origin);\n}\n\nexport async function streamQueryRange(\n params: VictoriaLogsStreamQueryRangeParams,\n options: VictoriaLogsApiOptions\n): Promise<VictoriaLogsStreamQueryRangeResponse> {\n const url = buildUrl('/select/logsql/query', options.datasourceUrl);\n const postData: Record<string, string> = {\n query: params.query,\n start: params.start,\n end: params.end\n };\n if (params?.limit) postData['limit'] = params.limit.toString();\n if (params?.offset) postData['offset'] = params.offset.toString();\n\n const data = new URLSearchParams(postData).toString();\n const response = await fetch(url.toString(), {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Accept': 'application/stream+json',\n ...options.headers,\n },\n body: data,\n });\n if (response.status !== 200) {\n throw new Error(await response.text());\n }\n const output: VictoriaLogsStreamQueryRangeResponse = [];\n\n if (!response?.body) return output;\n const reader = response.body.getReader();\n const decoder = new TextDecoder(\"utf-8\");\n let buffer = '';\n\n while (true) {\n const { value, done } = await reader.read();\n if (done) break;\n\n buffer += decoder.decode(value, { stream: true });\n let boundary = buffer.indexOf('\\n');\n while (boundary !== -1) {\n const line = buffer.slice(0, boundary);\n buffer = buffer.slice(boundary + 1);\n output.push(JSON.parse(line));\n boundary = buffer.indexOf('\\n');\n }\n }\n if (buffer.trim().length > 0) {\n output.push(JSON.parse(buffer));\n }\n return output;\n}\n\nexport async function statsQueryRange(\n params: VictoriaLogsStatsQueryRangeParams,\n options: VictoriaLogsApiOptions\n): Promise<VictoriaLogsStatsQueryRangeResponse> {\n const url = buildUrl('/select/logsql/stats_query_range', options.datasourceUrl);\n const postData: Record<string, string> = {\n query: params.query,\n start: params.start,\n end: params.end,\n };\n if (params?.step) postData['step'] = params.step.toString();\n\n const data = new URLSearchParams(postData).toString();\n const response = await fetch(url.toString(), {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Accept': 'application/json',\n ...options.headers,\n },\n body: data,\n });\n return await response.json();\n}\n\nexport async function fieldNames(\n params: VictoriaLogsFieldNamesParams,\n options: VictoriaLogsApiOptions\n): Promise<VictoriaLogsFieldNamesResponse> {\n const url = buildUrl('/select/logsql/field_names', options.datasourceUrl);\n const postData: Record<string, string> = {\n query: params.query,\n };\n if (params.start) postData['start'] = params.start;\n if (params.end) postData['end'] = params.end;\n\n const data = new URLSearchParams(postData).toString();\n const response = await fetch(url.toString(), {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Accept': 'application/json',\n ...options.headers,\n },\n body: data,\n });\n return await response.json();\n}\n\nexport async function fieldValues(\n params: VictoriaLogsFieldValuesParams,\n options: VictoriaLogsApiOptions\n): Promise<VictoriaLogsFieldValuesResponse> {\n const url = buildUrl(`/select/logsql/field_values`, options.datasourceUrl);\n const postData: Record<string, string> = {\n query: params.query,\n field: params.field,\n };\n if (params.start) postData['start'] = params.start;\n if (params.end) postData['end'] = params.end;\n\n const data = new URLSearchParams(postData).toString();\n const response = await fetch(url.toString(), {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Accept': 'application/json',\n ...options.headers,\n },\n body: data,\n });\n return await response.json();\n}\n"],"names":["buildUrl","path","datasourceUrl","startsWith","URL","fullPath","endsWith","slice","window","location","origin","streamQueryRange","params","options","url","postData","query","start","end","limit","toString","offset","data","URLSearchParams","response","fetch","method","headers","body","status","Error","text","output","reader","getReader","decoder","TextDecoder","buffer","value","done","read","decode","stream","boundary","indexOf","line","push","JSON","parse","trim","length","statsQueryRange","step","json","fieldNames","fieldValues","field"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAmDjC,SAASA,SAASC,IAAY,EAAEC,aAAqB;IACnD,IAAIA,cAAcC,UAAU,CAAC,cAAcD,cAAcC,UAAU,CAAC,aAAa;QAC/E,OAAO,IAAIC,IAAIH,MAAMC;IACvB;IAEA,IAAIG,WAAWH;IACf,iDAAiD;IACjD,IAAIA,cAAcI,QAAQ,CAAC,QAAQL,KAAKE,UAAU,CAAC,MAAM;QACvDE,WAAWH,gBAAgBD,KAAKM,KAAK,CAAC;IACxC,OAAO,IAAI,CAACL,cAAcI,QAAQ,CAAC,QAAQ,CAACL,KAAKE,UAAU,CAAC,MAAM;QAChEE,WAAWH,gBAAgB,MAAMD;IACnC,OAAO;QACLI,WAAWH,gBAAgBD;IAC7B;IAEA,OAAO,IAAIG,IAAIC,UAAUG,OAAOC,QAAQ,CAACC,MAAM;AACjD;AAEA,OAAO,eAAeC,iBACpBC,MAA0C,EAC1CC,OAA+B;IAE/B,MAAMC,MAAMd,SAAS,wBAAwBa,QAAQX,aAAa;IAClE,MAAMa,WAAmC;QACvCC,OAAOJ,OAAOI,KAAK;QACnBC,OAAOL,OAAOK,KAAK;QACnBC,KAAKN,OAAOM,GAAG;IACjB;IACA,IAAIN,QAAQO,OAAOJ,QAAQ,CAAC,QAAQ,GAAGH,OAAOO,KAAK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AK;IAClD,IAAIL,OAAOM,GAAG,EAAEH,QAAQ,CAAC,MAAM,GAAGH,OAAOM,GAAG;IAE5C,MAAMI,OAAO,IAAIC,gBAAgBR,UAAUK,QAAQ;IACnD,MAAMI,WAAW,MAAMC,MAAMX,IAAIM,QAAQ,IAAI;QAC3CM,QAAQ;QACRC,SAAS;YACP,gBAAgB;YAChB,UAAU;YACV,GAAGd,QAAQc,OAAO;QACpB;QACAC,MAAMN;IACR;IACA,OAAO,MAAME,SAAS6B,IAAI;AAC5B"}
1
+ {"version":3,"sources":["../../../src/model/client.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport {\n VictoriaLogsStreamQueryRangeResponse,\n VictoriaLogsStatsQueryRangeResponse,\n VictoriaLogsFieldNamesResponse,\n VictoriaLogsFieldValuesResponse,\n VictoriaLogsRequestHeaders,\n} from './types';\n\nexport interface VictoriaLogsBaseParams {\n start: string;\n end: string;\n}\n\nexport interface VictoriaLogsStreamQueryRangeParams extends VictoriaLogsBaseParams {\n query: string;\n limit?: number;\n offset?: number;\n}\n\nexport interface VictoriaLogsStatsQueryRangeParams extends VictoriaLogsBaseParams {\n query: string;\n step?: string;\n}\n\nexport interface VictoriaLogsFieldNamesParams extends VictoriaLogsBaseParams {\n query: string;\n}\n\nexport interface VictoriaLogsFieldValuesParams extends VictoriaLogsBaseParams {\n query: string;\n field: string;\n}\n\nexport interface VictoriaLogsApiOptions {\n datasourceUrl: string;\n headers?: VictoriaLogsRequestHeaders;\n}\n\nexport interface VictoriaLogsClient {\n options: {\n datasourceUrl: string;\n };\n streamQueryRange: (\n params: VictoriaLogsStreamQueryRangeParams,\n headers?: VictoriaLogsRequestHeaders\n ) => Promise<VictoriaLogsStreamQueryRangeResponse>;\n statsQueryRange: (\n params: VictoriaLogsStatsQueryRangeParams,\n headers?: VictoriaLogsRequestHeaders\n ) => Promise<VictoriaLogsStatsQueryRangeResponse>;\n fieldNames: (\n params: VictoriaLogsFieldNamesParams,\n headers?: VictoriaLogsRequestHeaders\n ) => Promise<VictoriaLogsFieldNamesResponse>;\n fieldValues: (\n params: VictoriaLogsFieldValuesParams,\n headers?: VictoriaLogsRequestHeaders\n ) => Promise<VictoriaLogsFieldValuesResponse>;\n}\n\nfunction buildUrl(path: string, datasourceUrl: string): URL {\n if (datasourceUrl.startsWith('http://') || datasourceUrl.startsWith('https://')) {\n return new URL(path, datasourceUrl);\n }\n\n let fullPath = datasourceUrl;\n // Assume relative path, ensure no double slashes\n if (datasourceUrl.endsWith('/') && path.startsWith('/')) {\n fullPath = datasourceUrl + path.slice(1);\n } else if (!datasourceUrl.endsWith('/') && !path.startsWith('/')) {\n fullPath = datasourceUrl + '/' + path;\n } else {\n fullPath = datasourceUrl + path;\n }\n\n return new URL(fullPath, window.location.origin);\n}\n\nexport async function streamQueryRange(\n params: VictoriaLogsStreamQueryRangeParams,\n options: VictoriaLogsApiOptions\n): Promise<VictoriaLogsStreamQueryRangeResponse> {\n const url = buildUrl('/select/logsql/query', options.datasourceUrl);\n const postData: Record<string, string> = {\n query: params.query,\n start: params.start,\n end: params.end,\n };\n if (params?.limit) postData['limit'] = params.limit.toString();\n if (params?.offset) postData['offset'] = params.offset.toString();\n\n const data = new URLSearchParams(postData).toString();\n const response = await fetch(url.toString(), {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n Accept: 'application/stream+json',\n ...options.headers,\n },\n body: data,\n });\n if (response.status !== 200) {\n throw new Error(await response.text());\n }\n const output: VictoriaLogsStreamQueryRangeResponse = [];\n\n if (!response?.body) return output;\n const reader = response.body.getReader();\n const decoder = new TextDecoder('utf-8');\n let buffer = '';\n\n let result = await reader.read();\n while (!result.done) {\n buffer += decoder.decode(result.value, { stream: true });\n let boundary = buffer.indexOf('\\n');\n while (boundary !== -1) {\n const line = buffer.slice(0, boundary);\n buffer = buffer.slice(boundary + 1);\n output.push(JSON.parse(line));\n boundary = buffer.indexOf('\\n');\n }\n result = await reader.read();\n }\n if (buffer.trim().length > 0) {\n output.push(JSON.parse(buffer));\n }\n return output;\n}\n\nexport async function statsQueryRange(\n params: VictoriaLogsStatsQueryRangeParams,\n options: VictoriaLogsApiOptions\n): Promise<VictoriaLogsStatsQueryRangeResponse> {\n const url = buildUrl('/select/logsql/stats_query_range', options.datasourceUrl);\n const postData: Record<string, string> = {\n query: params.query,\n start: params.start,\n end: params.end,\n };\n if (params?.step) postData['step'] = params.step.toString();\n\n const data = new URLSearchParams(postData).toString();\n const response = await fetch(url.toString(), {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n Accept: 'application/json',\n ...options.headers,\n },\n body: data,\n });\n return await response.json();\n}\n\nexport async function fieldNames(\n params: VictoriaLogsFieldNamesParams,\n options: VictoriaLogsApiOptions\n): Promise<VictoriaLogsFieldNamesResponse> {\n const url = buildUrl('/select/logsql/field_names', options.datasourceUrl);\n const postData: Record<string, string> = {\n query: params.query,\n };\n if (params.start) postData['start'] = params.start;\n if (params.end) postData['end'] = params.end;\n\n const data = new URLSearchParams(postData).toString();\n const response = await fetch(url.toString(), {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n Accept: 'application/json',\n ...options.headers,\n },\n body: data,\n });\n return await response.json();\n}\n\nexport async function fieldValues(\n params: VictoriaLogsFieldValuesParams,\n options: VictoriaLogsApiOptions\n): Promise<VictoriaLogsFieldValuesResponse> {\n const url = buildUrl(`/select/logsql/field_values`, options.datasourceUrl);\n const postData: Record<string, string> = {\n query: params.query,\n field: params.field,\n };\n if (params.start) postData['start'] = params.start;\n if (params.end) postData['end'] = params.end;\n\n const data = new URLSearchParams(postData).toString();\n const response = await fetch(url.toString(), {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n Accept: 'application/json',\n ...options.headers,\n },\n body: data,\n });\n return await response.json();\n}\n"],"names":["buildUrl","path","datasourceUrl","startsWith","URL","fullPath","endsWith","slice","window","location","origin","streamQueryRange","params","options","url","postData","query","start","end","limit","toString","offset","data","URLSearchParams","response","fetch","method","headers","Accept","body","status","Error","text","output","reader","getReader","decoder","TextDecoder","buffer","result","read","done","decode","value","stream","boundary","indexOf","line","push","JSON","parse","trim","length","statsQueryRange","step","json","fieldNames","fieldValues","field"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AA8DjC,SAASA,SAASC,IAAY,EAAEC,aAAqB;IACnD,IAAIA,cAAcC,UAAU,CAAC,cAAcD,cAAcC,UAAU,CAAC,aAAa;QAC/E,OAAO,IAAIC,IAAIH,MAAMC;IACvB;IAEA,IAAIG,WAAWH;IACf,iDAAiD;IACjD,IAAIA,cAAcI,QAAQ,CAAC,QAAQL,KAAKE,UAAU,CAAC,MAAM;QACvDE,WAAWH,gBAAgBD,KAAKM,KAAK,CAAC;IACxC,OAAO,IAAI,CAACL,cAAcI,QAAQ,CAAC,QAAQ,CAACL,KAAKE,UAAU,CAAC,MAAM;QAChEE,WAAWH,gBAAgB,MAAMD;IACnC,OAAO;QACLI,WAAWH,gBAAgBD;IAC7B;IAEA,OAAO,IAAIG,IAAIC,UAAUG,OAAOC,QAAQ,CAACC,MAAM;AACjD;AAEA,OAAO,eAAeC,iBACpBC,MAA0C,EAC1CC,OAA+B;IAE/B,MAAMC,MAAMd,SAAS,wBAAwBa,QAAQX,aAAa;IAClE,MAAMa,WAAmC;QACvCC,OAAOJ,O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a,QAAQX,aAAa;IACzE,MAAMa,WAAmC;QACvCC,OAAOJ,OAAOI,KAAK;QACnB0C,OAAO9C,OAAO8C,KAAK;IACrB;IACA,IAAI9C,OAAOK,KAAK,EAAEF,QAAQ,CAAC,QAAQ,GAAGH,OAAOK,KAAK;IAClD,IAAIL,OAAOM,GAAG,EAAEH,QAAQ,CAAC,MAAM,GAAGH,OAAOM,GAAG;IAE5C,MAAMI,OAAO,IAAIC,gBAAgBR,UAAUK,QAAQ;IACnD,MAAMI,WAAW,MAAMC,MAAMX,IAAIM,QAAQ,IAAI;QAC3CM,QAAQ;QACRC,SAAS;YACP,gBAAgB;YAChBC,QAAQ;YACR,GAAGf,QAAQc,OAAO;QACpB;QACAE,MAAMP;IACR;IACA,OAAO,MAAME,SAAS+B,IAAI;AAC5B"}
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/model/index.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './client';\nexport * from './selectors';\nexport * from './types';\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,WAAW;AACzB,cAAc,cAAc;AAC5B,cAAc,UAAU"}
1
+ {"version":3,"sources":["../../../src/model/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './client';\nexport * from './selectors';\nexport * from './types';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,WAAW;AACzB,cAAc,cAAc;AAC5B,cAAc,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/model/selectors.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAwB,MAAM,2BAA2B,CAAC;AAExF,eAAO,MAAM,4BAA4B,EAAG,wBAAiC,CAAC;AAE9E,MAAM,WAAW,8BAA+B,SAAQ,kBAAkB;IACxE,IAAI,EAAE,OAAO,4BAA4B,CAAC;CAC3C;AAED,eAAO,MAAM,oBAAoB,EAAE,8BAAuE,CAAC;AAE3G,wBAAgB,6BAA6B,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,8BAA8B,CAAC,GAAG,OAAO,CAEnI;AAED,wBAAgB,gCAAgC,CAC9C,qBAAqB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,GAC/D,qBAAqB,IAAI,8BAA8B,CAEzD"}
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/model/selectors.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAwB,MAAM,2BAA2B,CAAC;AAExF,eAAO,MAAM,4BAA4B,EAAG,wBAAiC,CAAC;AAE9E,MAAM,WAAW,8BAA+B,SAAQ,kBAAkB;IACxE,IAAI,EAAE,OAAO,4BAA4B,CAAC;CAC3C;AAED,eAAO,MAAM,oBAAoB,EAAE,8BAAuE,CAAC;AAE3G,wBAAgB,6BAA6B,CAC3C,qBAAqB,EAAE,qBAAqB,CAAC,8BAA8B,CAAC,GAC3E,OAAO,CAET;AAED,wBAAgB,gCAAgC,CAC9C,qBAAqB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,GAC/D,qBAAqB,IAAI,8BAA8B,CAEzD"}
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/model/selectors.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DatasourceSelector } from '@perses-dev/core';\nimport { DatasourceSelectValue, isVariableDatasource } from '@perses-dev/plugin-system';\n\nexport const VICTORIALOGS_DATASOURCE_KIND = 'VictoriaLogsDatasource' as const;\n\nexport interface VictoriaLogsDatasourceSelector extends DatasourceSelector {\n kind: typeof VICTORIALOGS_DATASOURCE_KIND;\n}\n\nexport const DEFAULT_VICTORIALOGS: VictoriaLogsDatasourceSelector = { kind: VICTORIALOGS_DATASOURCE_KIND };\n\nexport function isDefaultVictoriaLogsSelector(datasourceSelectValue: DatasourceSelectValue<VictoriaLogsDatasourceSelector>): boolean {\n return !isVariableDatasource(datasourceSelectValue) && datasourceSelectValue.name === undefined;\n}\n\nexport function isVictoriaLogsDatasourceSelector(\n datasourceSelectValue: DatasourceSelectValue<DatasourceSelector>\n): datasourceSelectValue is VictoriaLogsDatasourceSelector {\n return isVariableDatasource(datasourceSelectValue) || datasourceSelectValue.kind === VICTORIALOGS_DATASOURCE_KIND;\n}\n"],"names":["isVariableDatasource","VICTORIALOGS_DATASOURCE_KIND","DEFAULT_VICTORIALOGS","kind","isDefaultVictoriaLogsSelector","datasourceSelectValue","name","undefined","isVictoriaLogsDatasourceSelector"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAAgCA,oBAAoB,QAAQ,4BAA4B;AAExF,OAAO,MAAMC,+BAA+B,yBAAkC;AAM9E,OAAO,MAAMC,uBAAuD;IAAEC,MAAMF;AAA6B,EAAE;AAE3G,OAAO,SAASG,8BAA8BC,qBAA4E;IACxH,OAAO,CAACL,qBAAqBK,0BAA0BA,sBAAsBC,IAAI,KAAKC;AACxF;AAEA,OAAO,SAASC,iCACdH,qBAAgE;IAEhE,OAAOL,qBAAqBK,0BAA0BA,sBAAsBF,IAAI,KAAKF;AACvF"}
1
+ {"version":3,"sources":["../../../src/model/selectors.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DatasourceSelector } from '@perses-dev/core';\nimport { DatasourceSelectValue, isVariableDatasource } from '@perses-dev/plugin-system';\n\nexport const VICTORIALOGS_DATASOURCE_KIND = 'VictoriaLogsDatasource' as const;\n\nexport interface VictoriaLogsDatasourceSelector extends DatasourceSelector {\n kind: typeof VICTORIALOGS_DATASOURCE_KIND;\n}\n\nexport const DEFAULT_VICTORIALOGS: VictoriaLogsDatasourceSelector = { kind: VICTORIALOGS_DATASOURCE_KIND };\n\nexport function isDefaultVictoriaLogsSelector(\n datasourceSelectValue: DatasourceSelectValue<VictoriaLogsDatasourceSelector>\n): boolean {\n return !isVariableDatasource(datasourceSelectValue) && datasourceSelectValue.name === undefined;\n}\n\nexport function isVictoriaLogsDatasourceSelector(\n datasourceSelectValue: DatasourceSelectValue<DatasourceSelector>\n): datasourceSelectValue is VictoriaLogsDatasourceSelector {\n return isVariableDatasource(datasourceSelectValue) || datasourceSelectValue.kind === VICTORIALOGS_DATASOURCE_KIND;\n}\n"],"names":["isVariableDatasource","VICTORIALOGS_DATASOURCE_KIND","DEFAULT_VICTORIALOGS","kind","isDefaultVictoriaLogsSelector","datasourceSelectValue","name","undefined","isVictoriaLogsDatasourceSelector"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAAgCA,oBAAoB,QAAQ,4BAA4B;AAExF,OAAO,MAAMC,+BAA+B,yBAAkC;AAM9E,OAAO,MAAMC,uBAAuD;IAAEC,MAAMF;AAA6B,EAAE;AAE3G,OAAO,SAASG,8BACdC,qBAA4E;IAE5E,OAA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MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,iCAAiC,EAAE,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,+BAA+B,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,+BAA+B;IAC9C,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/model/types.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport type VictoriaLogsResultType = 'vector' | 'matrix' | 'streams';\n\nexport interface VictoriaLogsQueryStats {\n ingester?: Record<string, unknown>;\n store?: Record<string, unknown>;\n summary?: Record<string, unknown>;\n [key: string]: unknown;\n}\n\nexport type VictoriaLogsLogEntry = {\n _msg: string;\n _time: string;\n [key: string]: string;\n}\n\nexport type VictoriaLogsStreamQueryRangeResponse = VictoriaLogsLogEntry[];\n\nexport type VictoriaLogsStatsQueryRangeResult = {\n metric: Record<string, string>;\n values: Array<[number, string]>;\n}\n\nexport type VictoriaLogsStatsQueryRangeData = {\n resultType: string;\n result: VictoriaLogsStatsQueryRangeResult[];\n}\n\nexport type VictoriaLogsStatsQueryRangeResponse = {\n status: 'success' | 'error';\n error?: string;\n data: VictoriaLogsStatsQueryRangeData;\n}\n\nexport type VictoriaLogsFieldItem = {\n value: string;\n hits: number;\n}\n\nexport interface VictoriaLogsFieldNamesResponse {\n values: VictoriaLogsFieldItem[];\n}\n\nexport interface VictoriaLogsFieldValuesResponse {\n values: VictoriaLogsFieldItem[];\n}\n\nexport interface VictoriaLogsIndexStatsResponse {\n streams: number;\n chunks: number;\n entries: number;\n bytes: number;\n}\n\nexport type VictoriaLogsRequestHeaders = Record<string, string>;\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAuDjC,WAAgE"}
1
+ {"version":3,"sources":["../../../src/model/types.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport type VictoriaLogsResultType = 'vector' | 'matrix' | 'streams';\n\nexport interface VictoriaLogsQueryStats {\n ingester?: Record<string, unknown>;\n store?: Record<string, unknown>;\n summary?: Record<string, unknown>;\n [key: string]: unknown;\n}\n\nexport type VictoriaLogsLogEntry = {\n _msg: string;\n _time: string;\n [key: string]: string;\n};\n\nexport type VictoriaLogsStreamQueryRangeResponse = VictoriaLogsLogEntry[];\n\nexport type VictoriaLogsStatsQueryRangeResult = {\n metric: Record<string, string>;\n values: Array<[number, string]>;\n};\n\nexport type VictoriaLogsStatsQueryRangeData = {\n resultType: string;\n result: VictoriaLogsStatsQueryRangeResult[];\n};\n\nexport type VictoriaLogsStatsQueryRangeResponse = {\n status: 'success' | 'error';\n error?: string;\n data: VictoriaLogsStatsQueryRangeData;\n};\n\nexport type VictoriaLogsFieldItem = {\n value: string;\n hits: number;\n};\n\nexport interface VictoriaLogsFieldNamesResponse {\n values: VictoriaLogsFieldItem[];\n}\n\nexport interface VictoriaLogsFieldValuesResponse {\n values: VictoriaLogsFieldItem[];\n}\n\nexport interface VictoriaLogsIndexStatsResponse {\n streams: number;\n chunks: number;\n entries: number;\n bytes: number;\n}\n\nexport type VictoriaLogsRequestHeaders = Record<string, string>;\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAuDjC,WAAgE"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/queries/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,kBAAkB;;CAA4B,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/queries/constants.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,kBAAkB;;CAA4B,CAAC"}
@@ -1,3 +1,15 @@
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.
1
13
  export const DATASOURCE_KIND = 'VictoriaLogsDatasource';
2
14
  export const DEFAULT_DATASOURCE = {
3
15
  kind: DATASOURCE_KIND
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/queries/constants.ts"],"sourcesContent":["export const DATASOURCE_KIND = 'VictoriaLogsDatasource';\nexport const DEFAULT_DATASOURCE = { kind: DATASOURCE_KIND };\n"],"names":["DATASOURCE_KIND","DEFAULT_DATASOURCE","kind"],"mappings":"AAAA,OAAO,MAAMA,kBAAkB,yBAAyB;AACxD,OAAO,MAAMC,qBAAqB;IAAEC,MAAMF;AAAgB,EAAE"}
1
+ {"version":3,"sources":["../../../src/queries/constants.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport const DATASOURCE_KIND = 'VictoriaLogsDatasource';\nexport const DEFAULT_DATASOURCE = { kind: DATASOURCE_KIND };\n"],"names":["DATASOURCE_KIND","DEFAULT_DATASOURCE","kind"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,MAAMA,kBAAkB,yBAAyB;AACxD,OAAO,MAAMC,qBAAqB;IAAEC,MAAMF;AAAgB,EAAE"}
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/queries/index.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './victorialogs-time-series-query';\nexport * from './victorialogs-log-query';\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,mCAAmC;AACjD,cAAc,2BAA2B"}
1
+ {"version":3,"sources":["../../../src/queries/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './victorialogs-time-series-query';\nexport * from './victorialogs-log-query';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,mCAAmC;AACjD,cAAc,2BAA2B"}
@@ -1 +1 @@
1
- {"version":3,"file":"VictoriaLogsLogQuery.d.ts","sourceRoot":"","sources":["../../../../src/queries/victorialogs-log-query/VictoriaLogsLogQuery.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,wBAAwB,CAWzE,CAAC"}
1
+ {"version":3,"file":"VictoriaLogsLogQuery.d.ts","sourceRoot":"","sources":["../../../../src/queries/victorialogs-log-query/VictoriaLogsLogQuery.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,wBAAwB,CAWzE,CAAC"}
@@ -1,3 +1,15 @@
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.
1
13
  import { parseVariables } from '@perses-dev/plugin-system';
2
14
  import { getVictoriaLogsLogData } from './query';
3
15
  import { VictoriaLogsLogQueryEditor } from './VictoriaLogsLogQueryEditor';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/queries/victorialogs-log-query/VictoriaLogsLogQuery.tsx"],"sourcesContent":["import { parseVariables } from '@perses-dev/plugin-system';\nimport { getVictoriaLogsLogData } from './query';\nimport { VictoriaLogsLogQueryEditor } from './VictoriaLogsLogQueryEditor';\nimport { VictoriaLogsLogQuerySpec } from './types';\nimport { LogQueryPlugin } from './interface';\n\nexport const VictoriaLogsLogQuery: LogQueryPlugin<VictoriaLogsLogQuerySpec> = {\n getLogData: getVictoriaLogsLogData,\n OptionsEditorComponent: VictoriaLogsLogQueryEditor,\n createInitialOptions: () => ({ query: '' }),\n dependsOn: (spec) => {\n const queryVariables = parseVariables(spec.query);\n const allVariables = [...new Set([...queryVariables])];\n return {\n variables: allVariables,\n };\n },\n};\n"],"names":["parseVariables","getVictoriaLogsLogData","VictoriaLogsLogQueryEditor","VictoriaLogsLogQuery","getLogData","OptionsEditorComponent","createInitialOptions","query","dependsOn","spec","queryVariables","allVariables","Set","variables"],"mappings":"AAAA,SAASA,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,sBAAsB,QAAQ,UAAU;AACjD,SAASC,0BAA0B,QAAQ,+BAA+B;AAI1E,OAAO,MAAMC,uBAAiE;IAC5EC,YAAYH;IACZI,wBAAwBH;IACxBI,sBAAsB,IAAO,CAAA;YAAEC,OAAO;QAAG,CAAA;IACzCC,WAAW,CAACC;QACV,MAAMC,iBAAiBV,eAAeS,KAAKF,KAAK;QAChD,MAAMI,eAAe;eAAI,IAAIC,IAAI;mBAAIF;aAAe;SAAE;QACtD,OAAO;YACLG,WAAWF;QACb;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../../src/queries/victorialogs-log-query/VictoriaLogsLogQuery.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { parseVariables } from '@perses-dev/plugin-system';\nimport { getVictoriaLogsLogData } from './query';\nimport { VictoriaLogsLogQueryEditor } from './VictoriaLogsLogQueryEditor';\nimport { VictoriaLogsLogQuerySpec } from './types';\nimport { LogQueryPlugin } from './interface';\n\nexport const VictoriaLogsLogQuery: LogQueryPlugin<VictoriaLogsLogQuerySpec> = {\n getLogData: getVictoriaLogsLogData,\n OptionsEditorComponent: VictoriaLogsLogQueryEditor,\n createInitialOptions: () => ({ query: '' }),\n dependsOn: (spec) => {\n const queryVariables = parseVariables(spec.query);\n const allVariables = [...new Set([...queryVariables])];\n return {\n variables: allVariables,\n };\n },\n};\n"],"names":["parseVariables","getVictoriaLogsLogData","VictoriaLogsLogQueryEditor","VictoriaLogsLogQuery","getLogData","OptionsEditorComponent","createInitialOptions","query","dependsOn","spec","queryVariables","allVariables","Set","variables"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,sBAAsB,QAAQ,UAAU;AACjD,SAASC,0BAA0B,QAAQ,+BAA+B;AAI1E,OAAO,MAAMC,uBAAiE;IAC5EC,YAAYH;IACZI,wBAAwBH;IACxBI,sBAAsB,IAAO,CAAA;YAAEC,OAAO;QAAG,CAAA;IACzCC,WAAW,CAACC;QACV,MAAMC,iBAAiBV,eAAeS,KAAKF,KAAK;QAChD,MAAMI,eAAe;eAAI,IAAIC,IAAI;mBAAIF;aAAe;SAAE;QACtD,OAAO;YACLG,WAAWF;QACb;IACF;AACF,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"VictoriaLogsLogQueryEditor.d.ts","sourceRoot":"","sources":["../../../../src/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.tsx"],"names":[],"mappings":"AAaA,OAAO,EAIL,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAoC,MAAM,OAAO,CAAC;AAMvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,4BAA4B,GAAG,kBAAkB,CAAC,wBAAwB,CAAC,CAAC;AAEjF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,4BAA4B,GAAG,YAAY,CAyF5F"}
1
+ {"version":3,"file":"VictoriaLogsLogQueryEditor.d.ts","sourceRoot":"","sources":["../../../../src/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.tsx"],"names":[],"mappings":"AAaA,OAAO,EAIL,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAoC,MAAM,OAAO,CAAC;AAIvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,4BAA4B,GAAG,kBAAkB,CAAC,wBAAwB,CAAC,CAAC;AAEjF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,4BAA4B,GAAG,YAAY,CAyF5F"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright 2025 The Perses Authors
2
+ // Copyright The Perses Authors
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
5
5
  // You may obtain a copy of the License at
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport {\n DatasourceSelect,\n DatasourceSelectProps,\n isVariableDatasource,\n OptionsEditorProps,\n useDatasourceSelectValueToSelector,\n} from '@perses-dev/plugin-system';\nimport { InputLabel, Stack, ToggleButton, ToggleButtonGroup } from '@mui/material';\nimport { ReactElement, useCallback, useState, useEffect } from 'react';\nimport { produce } from 'immer';\nimport { OptionsEditorControl } from '@perses-dev/components';\nimport { LogsQLEditor } from '../../components/logsql-editor';\nimport { VICTORIALOGS_DATASOURCE_KIND, VictoriaLogsDatasourceSelector } from '../../model';\nimport { DATASOURCE_KIND, DEFAULT_DATASOURCE } from '../constants';\nimport { VictoriaLogsLogQuerySpec } from './types';\n\ntype VictoriaLogsQueryEditorProps = OptionsEditorProps<VictoriaLogsLogQuerySpec>;\n\nexport function VictoriaLogsLogQueryEditor(props: VictoriaLogsQueryEditorProps): ReactElement {\n const { onChange, value } = props;\n const { datasource } = value;\n const datasourceSelectValue = datasource ?? DEFAULT_DATASOURCE;\n const selectedDatasource = useDatasourceSelectValueToSelector(\n datasourceSelectValue,\n VICTORIALOGS_DATASOURCE_KIND\n ) as VictoriaLogsDatasourceSelector;\n\n // const { data: client } = useDatasourceClient<VictoriaLogsClient>(selectedDatasource);\n // const victorialogsURL = client?.options.datasourceUrl;\n\n // Local state for editor value to prevent query_range calls on every keystroke\n const [localQuery, setLocalQuery] = useState(value.query);\n\n // Update local state when prop changes\n useEffect(() => {\n setLocalQuery(value.query);\n }, [value.query]);\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (newDatasourceSelection) => {\n if (!isVariableDatasource(newDatasourceSelection) && newDatasourceSelection.kind === DATASOURCE_KIND) {\n onChange({ ...value, datasource: newDatasourceSelection });\n return;\n }\n\n throw new Error('Got unexpected non VictoriaLogsQuery datasource selection');\n };\n\n // Debounced query change handler to prevent excessive query_range calls\n const handleQueryChange = useCallback((newQuery: string) => {\n setLocalQuery(newQuery);\n }, []);\n\n // Immediate query execution on Enter or blur\n const handleQueryExecute = useCallback(\n (query: string) => {\n onChange({ ...value, query });\n },\n [onChange, value]\n );\n\n return (\n <Stack spacing={1.5} paddingBottom={1}>\n <div>\n <InputLabel\n sx={{\n display: 'block',\n marginBottom: '4px',\n fontWeight: 500,\n }}\n >\n Datasource\n </InputLabel>\n <DatasourceSelect\n datasourcePluginKind={DATASOURCE_KIND}\n value={selectedDatasource}\n onChange={handleDatasourceChange}\n label=\"VictoriaLogs Datasource\"\n notched\n />\n </div>\n\n <div>\n <InputLabel\n sx={{\n display: 'block',\n marginBottom: '4px',\n fontWeight: 500,\n }}\n >\n LogsQL Query\n </InputLabel>\n <LogsQLEditor\n value={localQuery}\n onChange={handleQueryChange}\n onBlur={() => handleQueryExecute(localQuery)}\n onKeyDown={(event) => {\n if (event.key === 'Enter' && (event.ctrlKey || event.metaKey)) {\n event.preventDefault();\n handleQueryExecute(localQuery);\n }\n }}\n placeholder='Enter LogsQL query (e.g. {job=\"mysql\"} |= \"error\")'\n // height=\"120px\"\n />\n </div>\n </Stack>\n );\n}\n"],"names":["DatasourceSelect","isVariableDatasource","useDatasourceSelectValueToSelector","InputLabel","Stack","useCallback","useState","useEffect","LogsQLEditor","VICTORIALOGS_DATASOURCE_KIND","DATASOURCE_KIND","DEFAULT_DATASOURCE","VictoriaLogsLogQueryEditor","props","onChange","value","datasource","datasourceSelectValue","selectedDatasource","localQuery","setLocalQuery","query","handleDatasourceChange","newDatasourceSelection","kind","Error","handleQueryChange","newQuery","handleQueryExecute","spacing","paddingBottom","div","sx","display","marginBottom","fontWeight","datasourcePluginKind","label","notched","onBlur","onKeyDown","event","key","ctrlKey","metaKey","preventDefault","placeholder"],"mappings":";AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SACEA,gBAAgB,EAEhBC,oBAAoB,EAEpBC,kCAAkC,QAC7B,4BAA4B;AACnC,SAASC,UAAU,EAAEC,KAAK,QAAyC,gBAAgB;AACnF,SAAuBC,WAAW,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,QAAQ;AAGvE,SAASC,YAAY,QAAQ,iCAAiC;AAC9D,SAASC,4BAA4B,QAAwC,cAAc;AAC3F,SAASC,eAAe,EAAEC,kBAAkB,QAAQ,eAAe;AAKnE,OAAO,SAASC,2BAA2BC,KAAmC;IAC5E,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAE,GAAGF;IAC5B,MAAM,EAAEG,UAAU,EAAE,GAAGD;IACvB,MAAME,wBAAwBD,cAAcL;IAC5C,MAAMO,qBAAqBhB,mCACzBe,uBACAR;IAGF,wFAAwF;IACxF,yDAAyD;IAEzD,+EAA+E;IAC/E,MAAM,CAACU,YAAYC,cAAc,GAAGd,SAASS,MAAMM,KAAK;IAExD,uCAAuC;IACvCd,UAAU;QACRa,cAAcL,MAAMM,KAAK;IAC3B,GAAG;QAACN,MAAMM,KAAK;KAAC;IAEhB,MAAMC,yBAA4D,CAACC;QACjE,IAAI,CAACtB,qBAAqBsB,2BAA2BA,uBAAuBC,IAAI,KAAKd,iBAAiB;YACpGI,SAAS;gBAAE,GAAGC,KAAK;gBAAEC,YAAYO;YAAuB;YACxD;QACF;QAEA,MAAM,IAAIE,MAAM;IAClB;IAEA,wEAAwE;IACxE,MAAMC,oBAAoBrB,YAAY,CAACsB;QACrCP,cAAcO;IAChB,GAAG,EAAE;IAEL,6CAA6C;IAC7C,MAAMC,qBAAqBvB,YACzB,CAACgB;QACCP,SAAS;YAAE,GAAGC,KAAK;YAAEM;QAAM;IAC7B,GACA;QAACP;QAAUC;KAAM;IAGnB,qBACE,MAACX;QAAMyB,SAAS;QAAKC,eAAe;;0BAClC,MAACC;;kCACC,KAAC5B;wBACC6B,IAAI;4BACFC,SAAS;4BACTC,cAAc;4BACdC,YAAY;wBACd;kCACD;;kCAGD,KAACnC;wBACCoC,sBAAsB1B;wBACtBK,OAAOG;wBACPJ,UAAUQ;wBACVe,OAAM;wBACNC,OAAO;;;;0BAIX,MAACP;;kCACC,KAAC5B;wBACC6B,IAAI;4BACFC,SAAS;4BACTC,cAAc;4BACdC,YAAY;wBACd;kCACD;;kCAGD,KAAC3B;wBACCO,OAAOI;wBACPL,UAAUY;wBACVa,QAAQ,IAAMX,mBAAmBT;wBACjCqB,WAAW,CAACC;4BACV,IAAIA,MAAMC,GAAG,KAAK,WAAYD,CAAAA,MAAME,OAAO,IAAIF,MAAMG,OAAO,AAAD,GAAI;gCAC7DH,MAAMI,cAAc;gCACpBjB,mBAAmBT;4BACrB;wBACF;wBACA2B,aAAY;;;;;;AAMtB"}
1
+ {"version":3,"sources":["../../../../src/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport {\n DatasourceSelect,\n DatasourceSelectProps,\n isVariableDatasource,\n OptionsEditorProps,\n useDatasourceSelectValueToSelector,\n} from '@perses-dev/plugin-system';\nimport { InputLabel, Stack } from '@mui/material';\nimport { ReactElement, useCallback, useState, useEffect } from 'react';\nimport { LogsQLEditor } from '../../components/logsql-editor';\nimport { VICTORIALOGS_DATASOURCE_KIND, VictoriaLogsDatasourceSelector } from '../../model';\nimport { DATASOURCE_KIND, DEFAULT_DATASOURCE } from '../constants';\nimport { VictoriaLogsLogQuerySpec } from './types';\n\ntype VictoriaLogsQueryEditorProps = OptionsEditorProps<VictoriaLogsLogQuerySpec>;\n\nexport function VictoriaLogsLogQueryEditor(props: VictoriaLogsQueryEditorProps): ReactElement {\n const { onChange, value } = props;\n const { datasource } = value;\n const datasourceSelectValue = datasource ?? DEFAULT_DATASOURCE;\n const selectedDatasource = useDatasourceSelectValueToSelector(\n datasourceSelectValue,\n VICTORIALOGS_DATASOURCE_KIND\n ) as VictoriaLogsDatasourceSelector;\n\n // const { data: client } = useDatasourceClient<VictoriaLogsClient>(selectedDatasource);\n // const victorialogsURL = client?.options.datasourceUrl;\n\n // Local state for editor value to prevent query_range calls on every keystroke\n const [localQuery, setLocalQuery] = useState(value.query);\n\n // Update local state when prop changes\n useEffect(() => {\n setLocalQuery(value.query);\n }, [value.query]);\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (newDatasourceSelection) => {\n if (!isVariableDatasource(newDatasourceSelection) && newDatasourceSelection.kind === DATASOURCE_KIND) {\n onChange({ ...value, datasource: newDatasourceSelection });\n return;\n }\n\n throw new Error('Got unexpected non VictoriaLogsQuery datasource selection');\n };\n\n // Debounced query change handler to prevent excessive query_range calls\n const handleQueryChange = useCallback((newQuery: string) => {\n setLocalQuery(newQuery);\n }, []);\n\n // Immediate query execution on Enter or blur\n const handleQueryExecute = useCallback(\n (query: string) => {\n onChange({ ...value, query });\n },\n [onChange, value]\n );\n\n return (\n <Stack spacing={1.5} paddingBottom={1}>\n <div>\n <InputLabel\n sx={{\n display: 'block',\n marginBottom: '4px',\n fontWeight: 500,\n }}\n >\n Datasource\n </InputLabel>\n <DatasourceSelect\n datasourcePluginKind={DATASOURCE_KIND}\n value={selectedDatasource}\n onChange={handleDatasourceChange}\n label=\"VictoriaLogs Datasource\"\n notched\n />\n </div>\n\n <div>\n <InputLabel\n sx={{\n display: 'block',\n marginBottom: '4px',\n fontWeight: 500,\n }}\n >\n LogsQL Query\n </InputLabel>\n <LogsQLEditor\n value={localQuery}\n onChange={handleQueryChange}\n onBlur={() => handleQueryExecute(localQuery)}\n onKeyDown={(event) => {\n if (event.key === 'Enter' && (event.ctrlKey || event.metaKey)) {\n event.preventDefault();\n handleQueryExecute(localQuery);\n }\n }}\n placeholder='Enter LogsQL query (e.g. {job=\"mysql\"} |= \"error\")'\n // height=\"120px\"\n />\n </div>\n </Stack>\n );\n}\n"],"names":["DatasourceSelect","isVariableDatasource","useDatasourceSelectValueToSelector","InputLabel","Stack","useCallback","useState","useEffect","LogsQLEditor","VICTORIALOGS_DATASOURCE_KIND","DATASOURCE_KIND","DEFAULT_DATASOURCE","VictoriaLogsLogQueryEditor","props","onChange","value","datasource","datasourceSelectValue","selectedDatasource","localQuery","setLocalQuery","query","handleDatasourceChange","newDatasourceSelection","kind","Error","handleQueryChange","newQuery","handleQueryExecute","spacing","paddingBottom","div","sx","display","marginBottom","fontWeight","datasourcePluginKind","label","notched","onBlur","onKeyDown","event","key","ctrlKey","metaKey","preventDefault","placeholder"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SACEA,gBAAgB,EAEhBC,oBAAoB,EAEpBC,kCAAkC,QAC7B,4BAA4B;AACnC,SAASC,UAAU,EAAEC,KAAK,QAAQ,gBAAgB;AAClD,SAAu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CACC,KAAC5B;wBACC6B,IAAI;4BACFC,SAAS;4BACTC,cAAc;4BACdC,YAAY;wBACd;kCACD;;kCAGD,KAAC3B;wBACCO,OAAOI;wBACPL,UAAUY;wBACVa,QAAQ,IAAMX,mBAAmBT;wBACjCqB,WAAW,CAACC;4BACV,IAAIA,MAAMC,GAAG,KAAK,WAAYD,CAAAA,MAAME,OAAO,IAAIF,MAAMG,OAAO,AAAD,GAAI;gCAC7DH,MAAMI,cAAc;gCACpBjB,mBAAmBT;4BACrB;wBACF;wBACA2B,aAAY;;;;;;AAMtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/queries/victorialogs-log-query/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/queries/victorialogs-log-query/index.ts"],"names":[],"mappings":"AAaA,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,SAAS,CAAC"}
@@ -1,3 +1,15 @@
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.
1
13
  export * from './query';
2
14
  export * from './VictoriaLogsLogQuery';
3
15
  export * from './VictoriaLogsLogQueryEditor';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/queries/victorialogs-log-query/index.ts"],"sourcesContent":["export * from './query';\nexport * from './VictoriaLogsLogQuery';\nexport * from './VictoriaLogsLogQueryEditor';\nexport * from './types';\n"],"names":[],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,yBAAyB;AACvC,cAAc,+BAA+B;AAC7C,cAAc,UAAU"}
1
+ {"version":3,"sources":["../../../../src/queries/victorialogs-log-query/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './query';\nexport * from './VictoriaLogsLogQuery';\nexport * from './VictoriaLogsLogQueryEditor';\nexport * from './types';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,UAAU;AACxB,cAAc,yBAAyB;AACvC,cAAc,+BAA+B;AAC7C,cAAc,UAAU"}