diff --git a/packages/grafana-schema/src/raw/composable/alertgroups/panelcfg/x/AlertGroupsPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/alertgroups/panelcfg/x/AlertGroupsPanelCfg_types.gen.ts index 9b57ff7751b..f939bc22714 100644 --- a/packages/grafana-schema/src/raw/composable/alertgroups/panelcfg/x/AlertGroupsPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/alertgroups/panelcfg/x/AlertGroupsPanelCfg_types.gen.ts @@ -9,6 +9,8 @@ // // Run 'make gen-cue' from repository root to regenerate. +export const pluginVersion = "10.1.0-pre"; + export interface Options { /** * Name of the alertmanager used as a source for alerts diff --git a/packages/grafana-schema/src/raw/composable/annotationslist/panelcfg/x/AnnotationsListPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/annotationslist/panelcfg/x/AnnotationsListPanelCfg_types.gen.ts index db1b6c6f2cb..a95d1392ffb 100644 --- a/packages/grafana-schema/src/raw/composable/annotationslist/panelcfg/x/AnnotationsListPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/annotationslist/panelcfg/x/AnnotationsListPanelCfg_types.gen.ts @@ -9,6 +9,8 @@ // // Run 'make gen-cue' from repository root to regenerate. +export const pluginVersion = "10.1.0-pre"; + export interface Options { limit: number; navigateAfter: string; diff --git a/packages/grafana-schema/src/raw/composable/azuremonitor/dataquery/x/AzureMonitorDataQuery_types.gen.ts b/packages/grafana-schema/src/raw/composable/azuremonitor/dataquery/x/AzureMonitorDataQuery_types.gen.ts index f6b5761e158..96239df72f0 100644 --- a/packages/grafana-schema/src/raw/composable/azuremonitor/dataquery/x/AzureMonitorDataQuery_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/azuremonitor/dataquery/x/AzureMonitorDataQuery_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "1.0.0"; + export interface AzureMonitorQuery extends common.DataQuery { /** * Azure Monitor Logs sub-query properties. diff --git a/packages/grafana-schema/src/raw/composable/barchart/panelcfg/x/BarChartPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/barchart/panelcfg/x/BarChartPanelCfg_types.gen.ts index 0e8effd779a..bb81fbbbea7 100644 --- a/packages/grafana-schema/src/raw/composable/barchart/panelcfg/x/BarChartPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/barchart/panelcfg/x/BarChartPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options extends common.OptionsWithLegend, common.OptionsWithTooltip, common.OptionsWithTextFormatting { /** * Controls the radius of each bar. diff --git a/packages/grafana-schema/src/raw/composable/bargauge/panelcfg/x/BarGaugePanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/bargauge/panelcfg/x/BarGaugePanelCfg_types.gen.ts index a135d80c519..f9077c0cf9f 100644 --- a/packages/grafana-schema/src/raw/composable/bargauge/panelcfg/x/BarGaugePanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/bargauge/panelcfg/x/BarGaugePanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options extends common.SingleStatBaseOptions { displayMode: common.BarGaugeDisplayMode; minVizHeight: number; diff --git a/packages/grafana-schema/src/raw/composable/candlestick/panelcfg/x/CandlestickPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/candlestick/panelcfg/x/CandlestickPanelCfg_types.gen.ts index c360a8a0e39..aa093eed0b5 100644 --- a/packages/grafana-schema/src/raw/composable/candlestick/panelcfg/x/CandlestickPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/candlestick/panelcfg/x/CandlestickPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export enum VizDisplayMode { Candles = 'candles', CandlesVolume = 'candles+volume', diff --git a/packages/grafana-schema/src/raw/composable/canvas/panelcfg/x/CanvasPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/canvas/panelcfg/x/CanvasPanelCfg_types.gen.ts index 8013d4160f7..9897755f069 100644 --- a/packages/grafana-schema/src/raw/composable/canvas/panelcfg/x/CanvasPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/canvas/panelcfg/x/CanvasPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as ui from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export enum HorizontalConstraint { Center = 'center', Left = 'left', diff --git a/packages/grafana-schema/src/raw/composable/cloudwatch/dataquery/x/CloudWatchDataQuery_types.gen.ts b/packages/grafana-schema/src/raw/composable/cloudwatch/dataquery/x/CloudWatchDataQuery_types.gen.ts index 13685f4e450..ff037e763af 100644 --- a/packages/grafana-schema/src/raw/composable/cloudwatch/dataquery/x/CloudWatchDataQuery_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/cloudwatch/dataquery/x/CloudWatchDataQuery_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface MetricStat { /** * The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. diff --git a/packages/grafana-schema/src/raw/composable/dashboardlist/panelcfg/x/DashboardListPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/dashboardlist/panelcfg/x/DashboardListPanelCfg_types.gen.ts index 2d833bbea35..7b0e46da0ab 100644 --- a/packages/grafana-schema/src/raw/composable/dashboardlist/panelcfg/x/DashboardListPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/dashboardlist/panelcfg/x/DashboardListPanelCfg_types.gen.ts @@ -9,6 +9,8 @@ // // Run 'make gen-cue' from repository root to regenerate. +export const pluginVersion = "10.1.0-pre"; + export interface Options { folderId?: number; includeVars: boolean; diff --git a/packages/grafana-schema/src/raw/composable/datagrid/panelcfg/x/DatagridPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/datagrid/panelcfg/x/DatagridPanelCfg_types.gen.ts index a4c4f228fa6..03c7052393c 100644 --- a/packages/grafana-schema/src/raw/composable/datagrid/panelcfg/x/DatagridPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/datagrid/panelcfg/x/DatagridPanelCfg_types.gen.ts @@ -9,6 +9,8 @@ // // Run 'make gen-cue' from repository root to regenerate. +export const pluginVersion = "10.1.0-pre"; + export interface Options { selectedSeries: number; } diff --git a/packages/grafana-schema/src/raw/composable/debug/panelcfg/x/DebugPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/debug/panelcfg/x/DebugPanelCfg_types.gen.ts index 40122fa55f3..5faa988a6ac 100644 --- a/packages/grafana-schema/src/raw/composable/debug/panelcfg/x/DebugPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/debug/panelcfg/x/DebugPanelCfg_types.gen.ts @@ -9,6 +9,8 @@ // // Run 'make gen-cue' from repository root to regenerate. +export const pluginVersion = "10.1.0-pre"; + export type UpdateConfig = { render: boolean, dataChanged: boolean, diff --git a/packages/grafana-schema/src/raw/composable/elasticsearch/dataquery/x/ElasticsearchDataQuery_types.gen.ts b/packages/grafana-schema/src/raw/composable/elasticsearch/dataquery/x/ElasticsearchDataQuery_types.gen.ts index f9deac2a62a..fe56cc74a8e 100644 --- a/packages/grafana-schema/src/raw/composable/elasticsearch/dataquery/x/ElasticsearchDataQuery_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/elasticsearch/dataquery/x/ElasticsearchDataQuery_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export type BucketAggregation = (DateHistogram | Histogram | Terms | Filters | GeoHashGrid | Nested); export type MetricAggregation = (Count | PipelineMetricAggregation | MetricAggregationWithSettings); diff --git a/packages/grafana-schema/src/raw/composable/gauge/panelcfg/x/GaugePanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/gauge/panelcfg/x/GaugePanelCfg_types.gen.ts index e5d7c1887f0..7e1c8ac7848 100644 --- a/packages/grafana-schema/src/raw/composable/gauge/panelcfg/x/GaugePanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/gauge/panelcfg/x/GaugePanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options extends common.SingleStatBaseOptions { showThresholdLabels: boolean; showThresholdMarkers: boolean; diff --git a/packages/grafana-schema/src/raw/composable/geomap/panelcfg/x/GeomapPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/geomap/panelcfg/x/GeomapPanelCfg_types.gen.ts index 7d6aba23c2d..233b1f4dfa5 100644 --- a/packages/grafana-schema/src/raw/composable/geomap/panelcfg/x/GeomapPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/geomap/panelcfg/x/GeomapPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as ui from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options { basemap: ui.MapLayerOptions; controls: ControlsOptions; diff --git a/packages/grafana-schema/src/raw/composable/googlecloudmonitoring/dataquery/x/GoogleCloudMonitoringDataQuery_types.gen.ts b/packages/grafana-schema/src/raw/composable/googlecloudmonitoring/dataquery/x/GoogleCloudMonitoringDataQuery_types.gen.ts index 3cd76f5ac57..810846a8221 100644 --- a/packages/grafana-schema/src/raw/composable/googlecloudmonitoring/dataquery/x/GoogleCloudMonitoringDataQuery_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/googlecloudmonitoring/dataquery/x/GoogleCloudMonitoringDataQuery_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "1.0.0"; + export interface CloudMonitoringQuery extends common.DataQuery { /** * Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail. diff --git a/packages/grafana-schema/src/raw/composable/grafanapyroscope/dataquery/x/GrafanaPyroscopeDataQuery_types.gen.ts b/packages/grafana-schema/src/raw/composable/grafanapyroscope/dataquery/x/GrafanaPyroscopeDataQuery_types.gen.ts index 29fe78fd4f2..dab93eb8a54 100644 --- a/packages/grafana-schema/src/raw/composable/grafanapyroscope/dataquery/x/GrafanaPyroscopeDataQuery_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/grafanapyroscope/dataquery/x/GrafanaPyroscopeDataQuery_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export type PhlareQueryType = ('metrics' | 'profile' | 'both'); export const defaultPhlareQueryType: PhlareQueryType = 'both'; diff --git a/packages/grafana-schema/src/raw/composable/heatmap/panelcfg/x/HeatmapPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/heatmap/panelcfg/x/HeatmapPanelCfg_types.gen.ts index 614c04c7ae5..d4f7eee6879 100644 --- a/packages/grafana-schema/src/raw/composable/heatmap/panelcfg/x/HeatmapPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/heatmap/panelcfg/x/HeatmapPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as ui from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + /** * Controls the color mode of the heatmap */ diff --git a/packages/grafana-schema/src/raw/composable/histogram/panelcfg/x/HistogramPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/histogram/panelcfg/x/HistogramPanelCfg_types.gen.ts index 476c0648a8c..5e3bd8dabc1 100644 --- a/packages/grafana-schema/src/raw/composable/histogram/panelcfg/x/HistogramPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/histogram/panelcfg/x/HistogramPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options extends common.OptionsWithLegend, common.OptionsWithTooltip { /** * Offset buckets by this amount diff --git a/packages/grafana-schema/src/raw/composable/logs/panelcfg/x/LogsPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/logs/panelcfg/x/LogsPanelCfg_types.gen.ts index 45bc014f50c..7b67028fabe 100644 --- a/packages/grafana-schema/src/raw/composable/logs/panelcfg/x/LogsPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/logs/panelcfg/x/LogsPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options { dedupStrategy: common.LogsDedupStrategy; enableLogDetails: boolean; diff --git a/packages/grafana-schema/src/raw/composable/loki/dataquery/x/LokiDataQuery_types.gen.ts b/packages/grafana-schema/src/raw/composable/loki/dataquery/x/LokiDataQuery_types.gen.ts index 2d20869d32f..88b865f15f5 100644 --- a/packages/grafana-schema/src/raw/composable/loki/dataquery/x/LokiDataQuery_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/loki/dataquery/x/LokiDataQuery_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export enum QueryEditorMode { Builder = 'builder', Code = 'code', diff --git a/packages/grafana-schema/src/raw/composable/news/panelcfg/x/NewsPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/news/panelcfg/x/NewsPanelCfg_types.gen.ts index 88eae275c7b..2996ab2ec96 100644 --- a/packages/grafana-schema/src/raw/composable/news/panelcfg/x/NewsPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/news/panelcfg/x/NewsPanelCfg_types.gen.ts @@ -9,6 +9,8 @@ // // Run 'make gen-cue' from repository root to regenerate. +export const pluginVersion = "10.1.0-pre"; + export interface Options { /** * empty/missing will default to grafana blog diff --git a/packages/grafana-schema/src/raw/composable/nodegraph/panelcfg/x/NodeGraphPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/nodegraph/panelcfg/x/NodeGraphPanelCfg_types.gen.ts index 7b0ff125733..cdb2a684265 100644 --- a/packages/grafana-schema/src/raw/composable/nodegraph/panelcfg/x/NodeGraphPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/nodegraph/panelcfg/x/NodeGraphPanelCfg_types.gen.ts @@ -9,6 +9,8 @@ // // Run 'make gen-cue' from repository root to regenerate. +export const pluginVersion = "10.1.0-pre"; + export interface ArcOption { /** * The color of the arc. diff --git a/packages/grafana-schema/src/raw/composable/parca/dataquery/x/ParcaDataQuery_types.gen.ts b/packages/grafana-schema/src/raw/composable/parca/dataquery/x/ParcaDataQuery_types.gen.ts index 9a3565a0018..066215e8ba8 100644 --- a/packages/grafana-schema/src/raw/composable/parca/dataquery/x/ParcaDataQuery_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/parca/dataquery/x/ParcaDataQuery_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export type ParcaQueryType = ('metrics' | 'profile' | 'both'); export const defaultParcaQueryType: ParcaQueryType = 'both'; diff --git a/packages/grafana-schema/src/raw/composable/piechart/panelcfg/x/PieChartPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/piechart/panelcfg/x/PieChartPanelCfg_types.gen.ts index 6c83f27d3b0..24f88b84fec 100644 --- a/packages/grafana-schema/src/raw/composable/piechart/panelcfg/x/PieChartPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/piechart/panelcfg/x/PieChartPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + /** * Select the pie chart display style. */ diff --git a/packages/grafana-schema/src/raw/composable/prometheus/dataquery/x/PrometheusDataQuery_types.gen.ts b/packages/grafana-schema/src/raw/composable/prometheus/dataquery/x/PrometheusDataQuery_types.gen.ts index f694a637ba5..b29c4332ecb 100644 --- a/packages/grafana-schema/src/raw/composable/prometheus/dataquery/x/PrometheusDataQuery_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/prometheus/dataquery/x/PrometheusDataQuery_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export enum QueryEditorMode { Builder = 'builder', Code = 'code', diff --git a/packages/grafana-schema/src/raw/composable/stat/panelcfg/x/StatPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/stat/panelcfg/x/StatPanelCfg_types.gen.ts index f8343c29a16..ffe4d06603e 100644 --- a/packages/grafana-schema/src/raw/composable/stat/panelcfg/x/StatPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/stat/panelcfg/x/StatPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options extends common.SingleStatBaseOptions { colorMode: common.BigValueColorMode; graphMode: common.BigValueGraphMode; diff --git a/packages/grafana-schema/src/raw/composable/statetimeline/panelcfg/x/StateTimelinePanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/statetimeline/panelcfg/x/StateTimelinePanelCfg_types.gen.ts index 7b062e82487..776d3d3297c 100644 --- a/packages/grafana-schema/src/raw/composable/statetimeline/panelcfg/x/StateTimelinePanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/statetimeline/panelcfg/x/StateTimelinePanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as ui from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui.OptionsWithTimezones { /** * Controls value alignment on the timelines diff --git a/packages/grafana-schema/src/raw/composable/statushistory/panelcfg/x/StatusHistoryPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/statushistory/panelcfg/x/StatusHistoryPanelCfg_types.gen.ts index cb4828b8293..2da6e92acb9 100644 --- a/packages/grafana-schema/src/raw/composable/statushistory/panelcfg/x/StatusHistoryPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/statushistory/panelcfg/x/StatusHistoryPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as ui from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui.OptionsWithTimezones { /** * Controls the column width diff --git a/packages/grafana-schema/src/raw/composable/table/panelcfg/x/TablePanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/table/panelcfg/x/TablePanelCfg_types.gen.ts index 61174a54237..c81ef10cc6e 100644 --- a/packages/grafana-schema/src/raw/composable/table/panelcfg/x/TablePanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/table/panelcfg/x/TablePanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as ui from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options { /** * Controls the height of the rows diff --git a/packages/grafana-schema/src/raw/composable/tempo/dataquery/x/TempoDataQuery_types.gen.ts b/packages/grafana-schema/src/raw/composable/tempo/dataquery/x/TempoDataQuery_types.gen.ts index cbf8213391f..85a4311946c 100644 --- a/packages/grafana-schema/src/raw/composable/tempo/dataquery/x/TempoDataQuery_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/tempo/dataquery/x/TempoDataQuery_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface TempoQuery extends common.DataQuery { filters: Array; /** diff --git a/packages/grafana-schema/src/raw/composable/testdata/dataquery/x/TestDataDataQuery_types.gen.ts b/packages/grafana-schema/src/raw/composable/testdata/dataquery/x/TestDataDataQuery_types.gen.ts index fbb811b9416..9379847c977 100644 --- a/packages/grafana-schema/src/raw/composable/testdata/dataquery/x/TestDataDataQuery_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/testdata/dataquery/x/TestDataDataQuery_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export enum TestDataQueryType { Annotations = 'annotations', Arrow = 'arrow', diff --git a/packages/grafana-schema/src/raw/composable/text/panelcfg/x/TextPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/text/panelcfg/x/TextPanelCfg_types.gen.ts index 0ed0c81c0f5..cde543411d7 100644 --- a/packages/grafana-schema/src/raw/composable/text/panelcfg/x/TextPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/text/panelcfg/x/TextPanelCfg_types.gen.ts @@ -9,6 +9,8 @@ // // Run 'make gen-cue' from repository root to regenerate. +export const pluginVersion = "10.1.0-pre"; + export enum TextMode { Code = 'code', HTML = 'html', diff --git a/packages/grafana-schema/src/raw/composable/timeseries/panelcfg/x/TimeSeriesPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/timeseries/panelcfg/x/TimeSeriesPanelCfg_types.gen.ts index 1d026ce4b6a..34579cbf4c3 100644 --- a/packages/grafana-schema/src/raw/composable/timeseries/panelcfg/x/TimeSeriesPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/timeseries/panelcfg/x/TimeSeriesPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export interface Options extends common.OptionsWithTimezones { legend: common.VizLegendOptions; tooltip: common.VizTooltipOptions; diff --git a/packages/grafana-schema/src/raw/composable/trend/panelcfg/x/TrendPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/trend/panelcfg/x/TrendPanelCfg_types.gen.ts index ce68db42c61..efa9e95a8da 100644 --- a/packages/grafana-schema/src/raw/composable/trend/panelcfg/x/TrendPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/trend/panelcfg/x/TrendPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + /** * Identical to timeseries... except it does not have timezone settings */ diff --git a/packages/grafana-schema/src/raw/composable/xychart/panelcfg/x/XYChartPanelCfg_types.gen.ts b/packages/grafana-schema/src/raw/composable/xychart/panelcfg/x/XYChartPanelCfg_types.gen.ts index acb86974c61..482ac5440c9 100644 --- a/packages/grafana-schema/src/raw/composable/xychart/panelcfg/x/XYChartPanelCfg_types.gen.ts +++ b/packages/grafana-schema/src/raw/composable/xychart/panelcfg/x/XYChartPanelCfg_types.gen.ts @@ -11,6 +11,8 @@ import * as common from '@grafana/schema'; +export const pluginVersion = "10.1.0-pre"; + export enum SeriesMapping { Auto = 'auto', Manual = 'manual', diff --git a/pkg/build/version.go b/pkg/build/version.go index d01e16ea368..bf66e13a865 100644 --- a/pkg/build/version.go +++ b/pkg/build/version.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "os" + "path/filepath" "strings" "time" ) @@ -14,7 +15,7 @@ type PackageJSON struct { // Opens the package.json file in the provided directory and returns a struct that represents its contents func OpenPackageJSON(dir string) (PackageJSON, error) { - reader, err := os.Open("package.json") + reader, err := os.Open(filepath.Clean(dir + "/package.json")) if err != nil { return PackageJSON{}, err } diff --git a/pkg/plugins/codegen/jenny_pluginseachmajor.go b/pkg/plugins/codegen/jenny_pluginseachmajor.go index 5e1759c8c7f..6d3e6d26821 100644 --- a/pkg/plugins/codegen/jenny_pluginseachmajor.go +++ b/pkg/plugins/codegen/jenny_pluginseachmajor.go @@ -1,10 +1,14 @@ package codegen import ( + "fmt" + "os" + "path" "path/filepath" "github.com/grafana/codejen" tsast "github.com/grafana/cuetsy/ts/ast" + "github.com/grafana/grafana/pkg/build" corecodegen "github.com/grafana/grafana/pkg/codegen" "github.com/grafana/grafana/pkg/cuectx" "github.com/grafana/grafana/pkg/plugins/pfs" @@ -37,6 +41,13 @@ func (j *pleJenny) Generate(decl *pfs.PluginDecl) (codejen.Files, error) { return nil, err } + version := "export const pluginVersion = \"%s\";" + if decl.PluginMeta.Info.Version != nil { + version = fmt.Sprintf(version, *decl.PluginMeta.Info.Version) + } else { + version = fmt.Sprintf(version, getGrafanaVersion()) + } + files := make(codejen.Files, len(jf)) for i, file := range jf { tsf := &tsast.File{} @@ -48,6 +59,10 @@ func (j *pleJenny) Generate(decl *pfs.PluginDecl) (codejen.Files, error) { } } + tsf.Nodes = append(tsf.Nodes, tsast.Raw{ + Data: version, + }) + tsf.Nodes = append(tsf.Nodes, tsast.Raw{ Data: string(file.Data), }) @@ -70,3 +85,17 @@ func kinds2pd(rt *thema.Runtime, j codejen.OneToMany[kindsys.Kind]) codejen.OneT return kd }) } + +func getGrafanaVersion() string { + dir, err := os.Getwd() + if err != nil { + return "" + } + + pkg, err := build.OpenPackageJSON(path.Join(dir, "../../../")) + if err != nil { + return "" + } + + return pkg.Version +} diff --git a/pkg/plugins/codegen/jenny_plugintstypes.go b/pkg/plugins/codegen/jenny_plugintstypes.go index 248c0905c22..1bedbaea727 100644 --- a/pkg/plugins/codegen/jenny_plugintstypes.go +++ b/pkg/plugins/codegen/jenny_plugintstypes.go @@ -42,12 +42,6 @@ func (j *ptsJenny) Generate(decl *pfs.PluginDecl) (*codejen.File, error) { } } - v := decl.Lineage.Latest().Version() - - tsf.Nodes = append(tsf.Nodes, tsast.Raw{ - Data: fmt.Sprintf("export const %sModelVersion = Object.freeze([%v, %v]);", decl.SchemaInterface.Name(), v[0], v[1]), - }) - jf, err := j.inner.Generate(decl) if err != nil { return nil, err diff --git a/public/app/plugins/datasource/azuremonitor/dataquery.gen.ts b/public/app/plugins/datasource/azuremonitor/dataquery.gen.ts index 1a33491b3f5..d4d51b737cf 100644 --- a/public/app/plugins/datasource/azuremonitor/dataquery.gen.ts +++ b/public/app/plugins/datasource/azuremonitor/dataquery.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const DataQueryModelVersion = Object.freeze([0, 0]); - export interface AzureMonitorQuery extends common.DataQuery { /** * Azure Monitor Logs sub-query properties. diff --git a/public/app/plugins/datasource/cloud-monitoring/dataquery.gen.ts b/public/app/plugins/datasource/cloud-monitoring/dataquery.gen.ts index 2ca334bdb7e..3feddb3310d 100644 --- a/public/app/plugins/datasource/cloud-monitoring/dataquery.gen.ts +++ b/public/app/plugins/datasource/cloud-monitoring/dataquery.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const DataQueryModelVersion = Object.freeze([0, 0]); - export interface CloudMonitoringQuery extends common.DataQuery { /** * Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail. diff --git a/public/app/plugins/datasource/cloudwatch/dataquery.gen.ts b/public/app/plugins/datasource/cloudwatch/dataquery.gen.ts index 417958e0a06..ba62f4b1297 100644 --- a/public/app/plugins/datasource/cloudwatch/dataquery.gen.ts +++ b/public/app/plugins/datasource/cloudwatch/dataquery.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const DataQueryModelVersion = Object.freeze([0, 0]); - export interface MetricStat { /** * The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. diff --git a/public/app/plugins/datasource/elasticsearch/dataquery.gen.ts b/public/app/plugins/datasource/elasticsearch/dataquery.gen.ts index edc0d5eaf8a..f9f394294f6 100644 --- a/public/app/plugins/datasource/elasticsearch/dataquery.gen.ts +++ b/public/app/plugins/datasource/elasticsearch/dataquery.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const DataQueryModelVersion = Object.freeze([0, 0]); - export type BucketAggregation = (DateHistogram | Histogram | Terms | Filters | GeoHashGrid | Nested); export type MetricAggregation = (Count | PipelineMetricAggregation | MetricAggregationWithSettings); diff --git a/public/app/plugins/datasource/grafana-pyroscope-datasource/dataquery.gen.ts b/public/app/plugins/datasource/grafana-pyroscope-datasource/dataquery.gen.ts index 7be23baa6a2..db302708b67 100644 --- a/public/app/plugins/datasource/grafana-pyroscope-datasource/dataquery.gen.ts +++ b/public/app/plugins/datasource/grafana-pyroscope-datasource/dataquery.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const DataQueryModelVersion = Object.freeze([0, 0]); - export type PhlareQueryType = ('metrics' | 'profile' | 'both'); export const defaultPhlareQueryType: PhlareQueryType = 'both'; diff --git a/public/app/plugins/datasource/loki/dataquery.gen.ts b/public/app/plugins/datasource/loki/dataquery.gen.ts index 26e11db25de..0a3ffb479e8 100644 --- a/public/app/plugins/datasource/loki/dataquery.gen.ts +++ b/public/app/plugins/datasource/loki/dataquery.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const DataQueryModelVersion = Object.freeze([0, 0]); - export enum QueryEditorMode { Builder = 'builder', Code = 'code', diff --git a/public/app/plugins/datasource/parca/dataquery.gen.ts b/public/app/plugins/datasource/parca/dataquery.gen.ts index 783972a4cca..7542d11ac44 100644 --- a/public/app/plugins/datasource/parca/dataquery.gen.ts +++ b/public/app/plugins/datasource/parca/dataquery.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const DataQueryModelVersion = Object.freeze([0, 0]); - export type ParcaQueryType = ('metrics' | 'profile' | 'both'); export const defaultParcaQueryType: ParcaQueryType = 'both'; diff --git a/public/app/plugins/datasource/prometheus/dataquery.gen.ts b/public/app/plugins/datasource/prometheus/dataquery.gen.ts index d9db8753230..65e4714dfbd 100644 --- a/public/app/plugins/datasource/prometheus/dataquery.gen.ts +++ b/public/app/plugins/datasource/prometheus/dataquery.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const DataQueryModelVersion = Object.freeze([0, 0]); - export enum QueryEditorMode { Builder = 'builder', Code = 'code', diff --git a/public/app/plugins/datasource/tempo/dataquery.gen.ts b/public/app/plugins/datasource/tempo/dataquery.gen.ts index 548bc3e78b1..edea071fe9a 100644 --- a/public/app/plugins/datasource/tempo/dataquery.gen.ts +++ b/public/app/plugins/datasource/tempo/dataquery.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const DataQueryModelVersion = Object.freeze([0, 0]); - export interface TempoQuery extends common.DataQuery { filters: Array; /** diff --git a/public/app/plugins/datasource/testdata/dataquery.gen.ts b/public/app/plugins/datasource/testdata/dataquery.gen.ts index 1098fd8932d..ba3aa247829 100644 --- a/public/app/plugins/datasource/testdata/dataquery.gen.ts +++ b/public/app/plugins/datasource/testdata/dataquery.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const DataQueryModelVersion = Object.freeze([0, 0]); - export enum TestDataQueryType { Annotations = 'annotations', Arrow = 'arrow', diff --git a/public/app/plugins/panel/alertGroups/panelcfg.gen.ts b/public/app/plugins/panel/alertGroups/panelcfg.gen.ts index 25eaf3015bb..dccaa7be815 100644 --- a/public/app/plugins/panel/alertGroups/panelcfg.gen.ts +++ b/public/app/plugins/panel/alertGroups/panelcfg.gen.ts @@ -8,8 +8,6 @@ // // Run 'make gen-cue' from repository root to regenerate. -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options { /** * Name of the alertmanager used as a source for alerts diff --git a/public/app/plugins/panel/annolist/panelcfg.gen.ts b/public/app/plugins/panel/annolist/panelcfg.gen.ts index 8f7cd82849b..fd2a9274205 100644 --- a/public/app/plugins/panel/annolist/panelcfg.gen.ts +++ b/public/app/plugins/panel/annolist/panelcfg.gen.ts @@ -8,8 +8,6 @@ // // Run 'make gen-cue' from repository root to regenerate. -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options { limit: number; navigateAfter: string; diff --git a/public/app/plugins/panel/barchart/panelcfg.gen.ts b/public/app/plugins/panel/barchart/panelcfg.gen.ts index 7761573aa27..841dee4a260 100644 --- a/public/app/plugins/panel/barchart/panelcfg.gen.ts +++ b/public/app/plugins/panel/barchart/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options extends common.OptionsWithLegend, common.OptionsWithTooltip, common.OptionsWithTextFormatting { /** * Controls the radius of each bar. diff --git a/public/app/plugins/panel/bargauge/panelcfg.gen.ts b/public/app/plugins/panel/bargauge/panelcfg.gen.ts index fdf1509e89b..cd5c0b60d6f 100644 --- a/public/app/plugins/panel/bargauge/panelcfg.gen.ts +++ b/public/app/plugins/panel/bargauge/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options extends common.SingleStatBaseOptions { displayMode: common.BarGaugeDisplayMode; minVizHeight: number; diff --git a/public/app/plugins/panel/candlestick/panelcfg.gen.ts b/public/app/plugins/panel/candlestick/panelcfg.gen.ts index 5fdf83724c6..8c704e366fe 100644 --- a/public/app/plugins/panel/candlestick/panelcfg.gen.ts +++ b/public/app/plugins/panel/candlestick/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export enum VizDisplayMode { Candles = 'candles', CandlesVolume = 'candles+volume', diff --git a/public/app/plugins/panel/candlestick/types.ts b/public/app/plugins/panel/candlestick/types.ts index 5dce27d67fa..81253afa1a5 100644 --- a/public/app/plugins/panel/candlestick/types.ts +++ b/public/app/plugins/panel/candlestick/types.ts @@ -10,7 +10,6 @@ import { VizDisplayMode, CandlestickFieldMap, FieldConfig, - PanelCfgModelVersion, } from './panelcfg.gen'; export const defaultOptions: Partial = { @@ -33,5 +32,4 @@ export { VizDisplayMode, CandlestickFieldMap, FieldConfig, - PanelCfgModelVersion, }; diff --git a/public/app/plugins/panel/canvas/panelcfg.gen.ts b/public/app/plugins/panel/canvas/panelcfg.gen.ts index 8fb9f8d6571..69ba86ea266 100644 --- a/public/app/plugins/panel/canvas/panelcfg.gen.ts +++ b/public/app/plugins/panel/canvas/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as ui from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export enum HorizontalConstraint { Center = 'center', Left = 'left', diff --git a/public/app/plugins/panel/dashlist/panelcfg.gen.ts b/public/app/plugins/panel/dashlist/panelcfg.gen.ts index e7aa0eeb633..7b0b071a719 100644 --- a/public/app/plugins/panel/dashlist/panelcfg.gen.ts +++ b/public/app/plugins/panel/dashlist/panelcfg.gen.ts @@ -8,8 +8,6 @@ // // Run 'make gen-cue' from repository root to regenerate. -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options { folderId?: number; includeVars: boolean; diff --git a/public/app/plugins/panel/datagrid/panelcfg.gen.ts b/public/app/plugins/panel/datagrid/panelcfg.gen.ts index b626519b3f0..40269576d72 100644 --- a/public/app/plugins/panel/datagrid/panelcfg.gen.ts +++ b/public/app/plugins/panel/datagrid/panelcfg.gen.ts @@ -8,8 +8,6 @@ // // Run 'make gen-cue' from repository root to regenerate. -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options { selectedSeries: number; } diff --git a/public/app/plugins/panel/debug/panelcfg.gen.ts b/public/app/plugins/panel/debug/panelcfg.gen.ts index 48baed3aa58..436fb0cd671 100644 --- a/public/app/plugins/panel/debug/panelcfg.gen.ts +++ b/public/app/plugins/panel/debug/panelcfg.gen.ts @@ -8,8 +8,6 @@ // // Run 'make gen-cue' from repository root to regenerate. -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export type UpdateConfig = { render: boolean, dataChanged: boolean, diff --git a/public/app/plugins/panel/gauge/panelcfg.gen.ts b/public/app/plugins/panel/gauge/panelcfg.gen.ts index b8d68e28cb7..dc70c8e5c4c 100644 --- a/public/app/plugins/panel/gauge/panelcfg.gen.ts +++ b/public/app/plugins/panel/gauge/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options extends common.SingleStatBaseOptions { showThresholdLabels: boolean; showThresholdMarkers: boolean; diff --git a/public/app/plugins/panel/geomap/panelcfg.gen.ts b/public/app/plugins/panel/geomap/panelcfg.gen.ts index f210114861e..6c3f83f18b4 100644 --- a/public/app/plugins/panel/geomap/panelcfg.gen.ts +++ b/public/app/plugins/panel/geomap/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as ui from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options { basemap: ui.MapLayerOptions; controls: ControlsOptions; diff --git a/public/app/plugins/panel/heatmap/panelcfg.gen.ts b/public/app/plugins/panel/heatmap/panelcfg.gen.ts index 6663726407c..f54b0829897 100644 --- a/public/app/plugins/panel/heatmap/panelcfg.gen.ts +++ b/public/app/plugins/panel/heatmap/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as ui from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - /** * Controls the color mode of the heatmap */ diff --git a/public/app/plugins/panel/histogram/panelcfg.gen.ts b/public/app/plugins/panel/histogram/panelcfg.gen.ts index 1e85c2751d2..93c7b868bc0 100644 --- a/public/app/plugins/panel/histogram/panelcfg.gen.ts +++ b/public/app/plugins/panel/histogram/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options extends common.OptionsWithLegend, common.OptionsWithTooltip { /** * Offset buckets by this amount diff --git a/public/app/plugins/panel/logs/panelcfg.gen.ts b/public/app/plugins/panel/logs/panelcfg.gen.ts index f4100a4b7c7..decbc6140a0 100644 --- a/public/app/plugins/panel/logs/panelcfg.gen.ts +++ b/public/app/plugins/panel/logs/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options { dedupStrategy: common.LogsDedupStrategy; enableLogDetails: boolean; diff --git a/public/app/plugins/panel/news/panelcfg.gen.ts b/public/app/plugins/panel/news/panelcfg.gen.ts index c81cfd4373d..8475aaa2f4e 100644 --- a/public/app/plugins/panel/news/panelcfg.gen.ts +++ b/public/app/plugins/panel/news/panelcfg.gen.ts @@ -8,8 +8,6 @@ // // Run 'make gen-cue' from repository root to regenerate. -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options { /** * empty/missing will default to grafana blog diff --git a/public/app/plugins/panel/nodeGraph/panelcfg.gen.ts b/public/app/plugins/panel/nodeGraph/panelcfg.gen.ts index 2627b8a8f04..672953359c3 100644 --- a/public/app/plugins/panel/nodeGraph/panelcfg.gen.ts +++ b/public/app/plugins/panel/nodeGraph/panelcfg.gen.ts @@ -8,8 +8,6 @@ // // Run 'make gen-cue' from repository root to regenerate. -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface ArcOption { /** * The color of the arc. diff --git a/public/app/plugins/panel/piechart/panelcfg.gen.ts b/public/app/plugins/panel/piechart/panelcfg.gen.ts index 90eddb63d08..6d64ec8f2de 100644 --- a/public/app/plugins/panel/piechart/panelcfg.gen.ts +++ b/public/app/plugins/panel/piechart/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - /** * Select the pie chart display style. */ diff --git a/public/app/plugins/panel/stat/panelcfg.gen.ts b/public/app/plugins/panel/stat/panelcfg.gen.ts index 1967112431b..03bf666935c 100644 --- a/public/app/plugins/panel/stat/panelcfg.gen.ts +++ b/public/app/plugins/panel/stat/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options extends common.SingleStatBaseOptions { colorMode: common.BigValueColorMode; graphMode: common.BigValueGraphMode; diff --git a/public/app/plugins/panel/state-timeline/panelcfg.gen.ts b/public/app/plugins/panel/state-timeline/panelcfg.gen.ts index 4579a7c234f..12d089f6761 100644 --- a/public/app/plugins/panel/state-timeline/panelcfg.gen.ts +++ b/public/app/plugins/panel/state-timeline/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as ui from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui.OptionsWithTimezones { /** * Controls value alignment on the timelines diff --git a/public/app/plugins/panel/status-history/panelcfg.gen.ts b/public/app/plugins/panel/status-history/panelcfg.gen.ts index 7d981a4fe09..ef8b01455de 100644 --- a/public/app/plugins/panel/status-history/panelcfg.gen.ts +++ b/public/app/plugins/panel/status-history/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as ui from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui.OptionsWithTimezones { /** * Controls the column width diff --git a/public/app/plugins/panel/table/panelcfg.gen.ts b/public/app/plugins/panel/table/panelcfg.gen.ts index c73008002cd..aed2e330def 100644 --- a/public/app/plugins/panel/table/panelcfg.gen.ts +++ b/public/app/plugins/panel/table/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as ui from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options { /** * Controls the height of the rows diff --git a/public/app/plugins/panel/text/panelcfg.gen.ts b/public/app/plugins/panel/text/panelcfg.gen.ts index 4c12d4cd2f4..8b35a85ed20 100644 --- a/public/app/plugins/panel/text/panelcfg.gen.ts +++ b/public/app/plugins/panel/text/panelcfg.gen.ts @@ -8,8 +8,6 @@ // // Run 'make gen-cue' from repository root to regenerate. -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export enum TextMode { Code = 'code', HTML = 'html', diff --git a/public/app/plugins/panel/timeseries/panelcfg.gen.ts b/public/app/plugins/panel/timeseries/panelcfg.gen.ts index b3a27e06108..ff2394dc7d1 100644 --- a/public/app/plugins/panel/timeseries/panelcfg.gen.ts +++ b/public/app/plugins/panel/timeseries/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export interface Options extends common.OptionsWithTimezones { legend: common.VizLegendOptions; tooltip: common.VizTooltipOptions; diff --git a/public/app/plugins/panel/trend/panelcfg.gen.ts b/public/app/plugins/panel/trend/panelcfg.gen.ts index 1d09fab109a..af1edc3126d 100644 --- a/public/app/plugins/panel/trend/panelcfg.gen.ts +++ b/public/app/plugins/panel/trend/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - /** * Identical to timeseries... except it does not have timezone settings */ diff --git a/public/app/plugins/panel/xychart/panelcfg.gen.ts b/public/app/plugins/panel/xychart/panelcfg.gen.ts index a2cc5e51569..21b8d86114d 100644 --- a/public/app/plugins/panel/xychart/panelcfg.gen.ts +++ b/public/app/plugins/panel/xychart/panelcfg.gen.ts @@ -10,8 +10,6 @@ import * as common from '@grafana/schema'; -export const PanelCfgModelVersion = Object.freeze([0, 0]); - export enum SeriesMapping { Auto = 'auto', Manual = 'manual',