panels: Remove redundant import package from cue defs (#61949)

This commit is contained in:
sam boyer 2023-01-23 14:28:44 -05:00 committed by GitHub
parent 856abe1281
commit 17aaf9f0d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 89 additions and 89 deletions

View File

@ -15,7 +15,7 @@
package grafanaplugin package grafanaplugin
import ( import (
ui "github.com/grafana/grafana/packages/grafana-schema/src/common" "github.com/grafana/grafana/packages/grafana-schema/src/common"
) )
composableKinds: PanelCfg: { composableKinds: PanelCfg: {
@ -28,16 +28,16 @@ composableKinds: PanelCfg: {
// v0.0 // v0.0
{ {
PanelOptions: { PanelOptions: {
ui.OptionsWithLegend common.OptionsWithLegend
ui.OptionsWithTooltip common.OptionsWithTooltip
ui.OptionsWithTextFormatting common.OptionsWithTextFormatting
// Manually select which field from the dataset to represent the x field. // Manually select which field from the dataset to represent the x field.
xField?: string xField?: string
// Use the color value for a sibling field to color each bar value. // Use the color value for a sibling field to color each bar value.
colorByField?: string colorByField?: string
// Controls the orientation of the bar chart, either vertical or horizontal. // Controls the orientation of the bar chart, either vertical or horizontal.
orientation: ui.VizOrientation | *"auto" orientation: common.VizOrientation | *"auto"
// Controls the radius of each bar. // Controls the radius of each bar.
barRadius?: float64 & >=0 & <=0.5 | *0 barRadius?: float64 & >=0 & <=0.5 | *0
// Controls the rotation of the x axis labels. // Controls the rotation of the x axis labels.
@ -48,9 +48,9 @@ composableKinds: PanelCfg: {
// negative values indicate backwards skipping behavior // negative values indicate backwards skipping behavior
xTickLabelSpacing?: int32 | *0 xTickLabelSpacing?: int32 | *0
// Controls whether bars are stacked or not, either normally or in percent mode. // Controls whether bars are stacked or not, either normally or in percent mode.
stacking: ui.StackingMode | *"none" stacking: common.StackingMode | *"none"
// This controls whether values are shown on top or to the left of bars. // This controls whether values are shown on top or to the left of bars.
showValue: ui.VisibilityMode | *"auto" showValue: common.VisibilityMode | *"auto"
// Controls the width of bars. 1 = Max width, 0 = Min width. // Controls the width of bars. 1 = Max width, 0 = Min width.
barWidth: float64 & >=0 & <=1 | *0.97 barWidth: float64 & >=0 & <=1 | *0.97
// Controls the width of groups. 1 = max with, 0 = min width. // Controls the width of groups. 1 = max with, 0 = min width.
@ -60,8 +60,8 @@ composableKinds: PanelCfg: {
fullHighlight: bool | *false fullHighlight: bool | *false
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
PanelFieldConfig: { PanelFieldConfig: {
ui.AxisConfig common.AxisConfig
ui.HideableFieldConfig common.HideableFieldConfig
// Controls line width of the bars. // Controls line width of the bars.
lineWidth?: int32 & >=0 & <=10 | *1 lineWidth?: int32 & >=0 & <=10 | *1
@ -69,9 +69,9 @@ composableKinds: PanelCfg: {
fillOpacity?: int32 & >=0 & <=100 | *80 fillOpacity?: int32 & >=0 & <=100 | *80
// Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option. // Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.
// Gradient appearance is influenced by the Fill opacity setting. // Gradient appearance is influenced by the Fill opacity setting.
gradientMode?: ui.GraphGradientMode | *"none" gradientMode?: common.GraphGradientMode | *"none"
// Threshold rendering // Threshold rendering
thresholdsStyle?: ui.GraphThresholdsStyleConfig thresholdsStyle?: common.GraphThresholdsStyleConfig
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
}, },
] ]

View File

@ -8,11 +8,11 @@
// //
// Run 'make gen-cue' from repository root to regenerate. // Run 'make gen-cue' from repository root to regenerate.
import * as ui from '@grafana/schema'; import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]); export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface PanelOptions extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui.OptionsWithTextFormatting { export interface PanelOptions extends common.OptionsWithLegend, common.OptionsWithTooltip, common.OptionsWithTextFormatting {
/** /**
* Controls the radius of each bar. * Controls the radius of each bar.
*/ */
@ -37,15 +37,15 @@ export interface PanelOptions extends ui.OptionsWithLegend, ui.OptionsWithToolti
/** /**
* Controls the orientation of the bar chart, either vertical or horizontal. * Controls the orientation of the bar chart, either vertical or horizontal.
*/ */
orientation: ui.VizOrientation; orientation: common.VizOrientation;
/** /**
* This controls whether values are shown on top or to the left of bars. * This controls whether values are shown on top or to the left of bars.
*/ */
showValue: ui.VisibilityMode; showValue: common.VisibilityMode;
/** /**
* Controls whether bars are stacked or not, either normally or in percent mode. * Controls whether bars are stacked or not, either normally or in percent mode.
*/ */
stacking: ui.StackingMode; stacking: common.StackingMode;
/** /**
* Manually select which field from the dataset to represent the x field. * Manually select which field from the dataset to represent the x field.
*/ */
@ -70,14 +70,14 @@ export const defaultPanelOptions: Partial<PanelOptions> = {
barWidth: 0.97, barWidth: 0.97,
fullHighlight: false, fullHighlight: false,
groupWidth: 0.7, groupWidth: 0.7,
orientation: ui.VizOrientation.Auto, orientation: common.VizOrientation.Auto,
showValue: ui.VisibilityMode.Auto, showValue: common.VisibilityMode.Auto,
stacking: ui.StackingMode.None, stacking: common.StackingMode.None,
xTickLabelRotation: 0, xTickLabelRotation: 0,
xTickLabelSpacing: 0, xTickLabelSpacing: 0,
}; };
export interface PanelFieldConfig extends ui.AxisConfig, ui.HideableFieldConfig { export interface PanelFieldConfig extends common.AxisConfig, common.HideableFieldConfig {
/** /**
* Controls the fill opacity of the bars. * Controls the fill opacity of the bars.
*/ */
@ -86,7 +86,7 @@ export interface PanelFieldConfig extends ui.AxisConfig, ui.HideableFieldConfig
* Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option. * Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.
* Gradient appearance is influenced by the Fill opacity setting. * Gradient appearance is influenced by the Fill opacity setting.
*/ */
gradientMode?: ui.GraphGradientMode; gradientMode?: common.GraphGradientMode;
/** /**
* Controls line width of the bars. * Controls line width of the bars.
*/ */
@ -94,11 +94,11 @@ export interface PanelFieldConfig extends ui.AxisConfig, ui.HideableFieldConfig
/** /**
* Threshold rendering * Threshold rendering
*/ */
thresholdsStyle?: ui.GraphThresholdsStyleConfig; thresholdsStyle?: common.GraphThresholdsStyleConfig;
} }
export const defaultPanelFieldConfig: Partial<PanelFieldConfig> = { export const defaultPanelFieldConfig: Partial<PanelFieldConfig> = {
fillOpacity: 80, fillOpacity: 80,
gradientMode: ui.GraphGradientMode.None, gradientMode: common.GraphGradientMode.None,
lineWidth: 1, lineWidth: 1,
}; };

View File

@ -15,7 +15,7 @@
package grafanaplugin package grafanaplugin
import ( import (
ui "github.com/grafana/grafana/packages/grafana-schema/src/common" "github.com/grafana/grafana/packages/grafana-schema/src/common"
) )
composableKinds: PanelCfg: { composableKinds: PanelCfg: {
@ -27,8 +27,8 @@ composableKinds: PanelCfg: {
schemas: [ schemas: [
{ {
PanelOptions: { PanelOptions: {
ui.SingleStatBaseOptions common.SingleStatBaseOptions
displayMode: ui.BarGaugeDisplayMode | *"gradient" displayMode: common.BarGaugeDisplayMode | *"gradient"
showUnfilled: bool | *true showUnfilled: bool | *true
minVizWidth: uint32 | *0 minVizWidth: uint32 | *0
minVizHeight: uint32 | *10 minVizHeight: uint32 | *10

View File

@ -8,19 +8,19 @@
// //
// Run 'make gen-cue' from repository root to regenerate. // Run 'make gen-cue' from repository root to regenerate.
import * as ui from '@grafana/schema'; import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]); export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface PanelOptions extends ui.SingleStatBaseOptions { export interface PanelOptions extends common.SingleStatBaseOptions {
displayMode: ui.BarGaugeDisplayMode; displayMode: common.BarGaugeDisplayMode;
minVizHeight: number; minVizHeight: number;
minVizWidth: number; minVizWidth: number;
showUnfilled: boolean; showUnfilled: boolean;
} }
export const defaultPanelOptions: Partial<PanelOptions> = { export const defaultPanelOptions: Partial<PanelOptions> = {
displayMode: ui.BarGaugeDisplayMode.Gradient, displayMode: common.BarGaugeDisplayMode.Gradient,
minVizHeight: 10, minVizHeight: 10,
minVizWidth: 0, minVizWidth: 0,
showUnfilled: true, showUnfilled: true,

View File

@ -15,7 +15,7 @@
package grafanaplugin package grafanaplugin
import ( import (
ui "github.com/grafana/grafana/packages/grafana-schema/src/common" "github.com/grafana/grafana/packages/grafana-schema/src/common"
) )
composableKinds: PanelCfg: { composableKinds: PanelCfg: {
@ -27,7 +27,7 @@ composableKinds: PanelCfg: {
schemas: [ schemas: [
{ {
PanelOptions: { PanelOptions: {
ui.SingleStatBaseOptions common.SingleStatBaseOptions
showThresholdLabels: bool | *false showThresholdLabels: bool | *false
showThresholdMarkers: bool | *true showThresholdMarkers: bool | *true
} @cuetsy(kind="interface") } @cuetsy(kind="interface")

View File

@ -8,11 +8,11 @@
// //
// Run 'make gen-cue' from repository root to regenerate. // Run 'make gen-cue' from repository root to regenerate.
import * as ui from '@grafana/schema'; import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]); export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface PanelOptions extends ui.SingleStatBaseOptions { export interface PanelOptions extends common.SingleStatBaseOptions {
showThresholdLabels: boolean; showThresholdLabels: boolean;
showThresholdMarkers: boolean; showThresholdMarkers: boolean;
} }

View File

@ -15,7 +15,7 @@
package grafanaplugin package grafanaplugin
import ( import (
ui "github.com/grafana/grafana/packages/grafana-schema/src/common" "github.com/grafana/grafana/packages/grafana-schema/src/common"
) )
composableKinds: PanelCfg: { composableKinds: PanelCfg: {
@ -27,8 +27,8 @@ composableKinds: PanelCfg: {
schemas: [ schemas: [
{ {
PanelOptions: { PanelOptions: {
ui.OptionsWithLegend common.OptionsWithLegend
ui.OptionsWithTooltip common.OptionsWithTooltip
//Size of each bucket //Size of each bucket
bucketSize?: int32 bucketSize?: int32
@ -39,8 +39,8 @@ composableKinds: PanelCfg: {
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
PanelFieldConfig: { PanelFieldConfig: {
ui.AxisConfig common.AxisConfig
ui.HideableFieldConfig common.HideableFieldConfig
// Controls line width of the bars. // Controls line width of the bars.
lineWidth?: uint32 & <=10 | *1 lineWidth?: uint32 & <=10 | *1
@ -48,7 +48,7 @@ composableKinds: PanelCfg: {
fillOpacity?: uint32 & <=100 | *80 fillOpacity?: uint32 & <=100 | *80
// Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option. // Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.
// Gradient appearance is influenced by the Fill opacity setting. // Gradient appearance is influenced by the Fill opacity setting.
gradientMode?: ui.GraphGradientMode | *"none" gradientMode?: common.GraphGradientMode | *"none"
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
}, },
] ]

View File

@ -8,11 +8,11 @@
// //
// Run 'make gen-cue' from repository root to regenerate. // Run 'make gen-cue' from repository root to regenerate.
import * as ui from '@grafana/schema'; import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]); export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface PanelOptions extends ui.OptionsWithLegend, ui.OptionsWithTooltip { export interface PanelOptions extends common.OptionsWithLegend, common.OptionsWithTooltip {
/** /**
* Offset buckets by this amount * Offset buckets by this amount
*/ */
@ -31,7 +31,7 @@ export const defaultPanelOptions: Partial<PanelOptions> = {
bucketOffset: 0, bucketOffset: 0,
}; };
export interface PanelFieldConfig extends ui.AxisConfig, ui.HideableFieldConfig { export interface PanelFieldConfig extends common.AxisConfig, common.HideableFieldConfig {
/** /**
* Controls the fill opacity of the bars. * Controls the fill opacity of the bars.
*/ */
@ -40,7 +40,7 @@ export interface PanelFieldConfig extends ui.AxisConfig, ui.HideableFieldConfig
* Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option. * Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.
* Gradient appearance is influenced by the Fill opacity setting. * Gradient appearance is influenced by the Fill opacity setting.
*/ */
gradientMode?: ui.GraphGradientMode; gradientMode?: common.GraphGradientMode;
/** /**
* Controls line width of the bars. * Controls line width of the bars.
*/ */
@ -49,6 +49,6 @@ export interface PanelFieldConfig extends ui.AxisConfig, ui.HideableFieldConfig
export const defaultPanelFieldConfig: Partial<PanelFieldConfig> = { export const defaultPanelFieldConfig: Partial<PanelFieldConfig> = {
fillOpacity: 80, fillOpacity: 80,
gradientMode: ui.GraphGradientMode.None, gradientMode: common.GraphGradientMode.None,
lineWidth: 1, lineWidth: 1,
}; };

View File

@ -15,7 +15,7 @@
package grafanaplugin package grafanaplugin
import ( import (
ui "github.com/grafana/grafana/packages/grafana-schema/src/common" "github.com/grafana/grafana/packages/grafana-schema/src/common"
) )
composableKinds: PanelCfg: { composableKinds: PanelCfg: {
@ -39,17 +39,17 @@ composableKinds: PanelCfg: {
// - Value: The raw numerical value. // - Value: The raw numerical value.
PieChartLegendValues: "value" | "percent" @cuetsy(kind="enum") PieChartLegendValues: "value" | "percent" @cuetsy(kind="enum")
PieChartLegendOptions: { PieChartLegendOptions: {
ui.VizLegendOptions common.VizLegendOptions
values: [...PieChartLegendValues] values: [...PieChartLegendValues]
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
PanelOptions: { PanelOptions: {
ui.OptionsWithTooltip common.OptionsWithTooltip
ui.SingleStatBaseOptions common.SingleStatBaseOptions
pieType: PieChartType pieType: PieChartType
displayLabels: [...PieChartLabels] displayLabels: [...PieChartLabels]
legend: PieChartLegendOptions legend: PieChartLegendOptions
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
PanelFieldConfig: ui.HideableFieldConfig @cuetsy(kind="interface") PanelFieldConfig: common.HideableFieldConfig @cuetsy(kind="interface")
}, },
] ]
}, },

View File

@ -8,7 +8,7 @@
// //
// Run 'make gen-cue' from repository root to regenerate. // Run 'make gen-cue' from repository root to regenerate.
import * as ui from '@grafana/schema'; import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]); export const PanelCfgModelVersion = Object.freeze([0, 0]);
@ -42,7 +42,7 @@ export enum PieChartLegendValues {
Value = 'value', Value = 'value',
} }
export interface PieChartLegendOptions extends ui.VizLegendOptions { export interface PieChartLegendOptions extends common.VizLegendOptions {
values: Array<PieChartLegendValues>; values: Array<PieChartLegendValues>;
} }
@ -50,7 +50,7 @@ export const defaultPieChartLegendOptions: Partial<PieChartLegendOptions> = {
values: [], values: [],
}; };
export interface PanelOptions extends ui.OptionsWithTooltip, ui.SingleStatBaseOptions { export interface PanelOptions extends common.OptionsWithTooltip, common.SingleStatBaseOptions {
displayLabels: Array<PieChartLabels>; displayLabels: Array<PieChartLabels>;
legend: PieChartLegendOptions; legend: PieChartLegendOptions;
pieType: PieChartType; pieType: PieChartType;
@ -60,4 +60,4 @@ export const defaultPanelOptions: Partial<PanelOptions> = {
displayLabels: [], displayLabels: [],
}; };
export interface PanelFieldConfig extends ui.HideableFieldConfig {} export interface PanelFieldConfig extends common.HideableFieldConfig {}

View File

@ -15,7 +15,7 @@
package grafanaplugin package grafanaplugin
import ( import (
ui "github.com/grafana/grafana/packages/grafana-schema/src/common" "github.com/grafana/grafana/packages/grafana-schema/src/common"
) )
composableKinds: PanelCfg: { composableKinds: PanelCfg: {
@ -27,11 +27,11 @@ composableKinds: PanelCfg: {
schemas: [ schemas: [
{ {
PanelOptions: { PanelOptions: {
ui.SingleStatBaseOptions common.SingleStatBaseOptions
graphMode: ui.BigValueGraphMode | *"area" graphMode: common.BigValueGraphMode | *"area"
colorMode: ui.BigValueColorMode | *"value" colorMode: common.BigValueColorMode | *"value"
justifyMode: ui.BigValueJustifyMode | *"auto" justifyMode: common.BigValueJustifyMode | *"auto"
textMode: ui.BigValueTextMode | *"auto" textMode: common.BigValueTextMode | *"auto"
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
}, },
] ]

View File

@ -8,20 +8,20 @@
// //
// Run 'make gen-cue' from repository root to regenerate. // Run 'make gen-cue' from repository root to regenerate.
import * as ui from '@grafana/schema'; import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]); export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface PanelOptions extends ui.SingleStatBaseOptions { export interface PanelOptions extends common.SingleStatBaseOptions {
colorMode: ui.BigValueColorMode; colorMode: common.BigValueColorMode;
graphMode: ui.BigValueGraphMode; graphMode: common.BigValueGraphMode;
justifyMode: ui.BigValueJustifyMode; justifyMode: common.BigValueJustifyMode;
textMode: ui.BigValueTextMode; textMode: common.BigValueTextMode;
} }
export const defaultPanelOptions: Partial<PanelOptions> = { export const defaultPanelOptions: Partial<PanelOptions> = {
colorMode: ui.BigValueColorMode.Value, colorMode: common.BigValueColorMode.Value,
graphMode: ui.BigValueGraphMode.Area, graphMode: common.BigValueGraphMode.Area,
justifyMode: ui.BigValueJustifyMode.Auto, justifyMode: common.BigValueJustifyMode.Auto,
textMode: ui.BigValueTextMode.Auto, textMode: common.BigValueTextMode.Auto,
}; };

View File

@ -15,7 +15,7 @@
package grafanaplugin package grafanaplugin
import ( import (
ui "github.com/grafana/grafana/packages/grafana-schema/src/common" "github.com/grafana/grafana/packages/grafana-schema/src/common"
) )
composableKinds: PanelCfg: { composableKinds: PanelCfg: {
@ -29,17 +29,17 @@ composableKinds: PanelCfg: {
PanelOptions: { PanelOptions: {
// FIXME ts comments indicate this shouldn't be in the saved model, but currently is emitted // FIXME ts comments indicate this shouldn't be in the saved model, but currently is emitted
mode?: TimelineMode mode?: TimelineMode
ui.OptionsWithLegend common.OptionsWithLegend
ui.OptionsWithTooltip common.OptionsWithTooltip
ui.OptionsWithTimezones common.OptionsWithTimezones
showValue: ui.VisibilityMode | *"auto" showValue: common.VisibilityMode | *"auto"
rowHeight: number | *0.9 rowHeight: number | *0.9
colWidth?: number colWidth?: number
mergeValues?: bool | *true mergeValues?: bool | *true
alignValue?: TimelineValueAlignment | *"left" alignValue?: TimelineValueAlignment | *"left"
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
PanelFieldConfig: { PanelFieldConfig: {
ui.HideableFieldConfig common.HideableFieldConfig
lineWidth?: number | *0 lineWidth?: number | *0
fillOpacity?: number | *70 fillOpacity?: number | *70
} @cuetsy(kind="interface") } @cuetsy(kind="interface")

View File

@ -15,7 +15,7 @@
package grafanaplugin package grafanaplugin
import ( import (
ui "github.com/grafana/grafana/packages/grafana-schema/src/common" "github.com/grafana/grafana/packages/grafana-schema/src/common"
) )
composableKinds: PanelCfg: { composableKinds: PanelCfg: {
@ -25,16 +25,16 @@ composableKinds: PanelCfg: {
schemas: [ schemas: [
{ {
PanelOptions: { PanelOptions: {
ui.OptionsWithLegend common.OptionsWithLegend
ui.OptionsWithTooltip common.OptionsWithTooltip
ui.OptionsWithTimezones common.OptionsWithTimezones
showValue: ui.VisibilityMode showValue: common.VisibilityMode
rowHeight: number rowHeight: number
colWidth?: number colWidth?: number
alignValue: "center" | *"left" | "right" alignValue: "center" | *"left" | "right"
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
PanelFieldConfig: { PanelFieldConfig: {
ui.HideableFieldConfig common.HideableFieldConfig
lineWidth?: number | *1 lineWidth?: number | *1
fillOpacity?: number | *70 fillOpacity?: number | *70
} @cuetsy(kind="interface") } @cuetsy(kind="interface")

View File

@ -15,7 +15,7 @@
package grafanaplugin package grafanaplugin
import ( import (
ui "github.com/grafana/grafana/packages/grafana-schema/src/common" "github.com/grafana/grafana/packages/grafana-schema/src/common"
) )
composableKinds: PanelCfg: { composableKinds: PanelCfg: {
@ -28,9 +28,9 @@ composableKinds: PanelCfg: {
frameIndex: number | *0 frameIndex: number | *0
showHeader: bool | *true showHeader: bool | *true
showTypeIcons: bool | *false showTypeIcons: bool | *false
sortBy?: [...ui.TableSortByFieldState] sortBy?: [...common.TableSortByFieldState]
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
PanelFieldConfig: ui.TableFieldOptions & {} @cuetsy(kind="interface") PanelFieldConfig: common.TableFieldOptions & {} @cuetsy(kind="interface")
}, },
] ]
}, },

View File

@ -15,7 +15,7 @@
package grafanaplugin package grafanaplugin
import ( import (
ui "github.com/grafana/grafana/packages/grafana-schema/src/common" "github.com/grafana/grafana/packages/grafana-schema/src/common"
) )
composableKinds: PanelCfg: { composableKinds: PanelCfg: {
@ -25,10 +25,10 @@ composableKinds: PanelCfg: {
schemas: [ schemas: [
{ {
PanelOptions: { PanelOptions: {
legend: ui.VizLegendOptions legend: common.VizLegendOptions
tooltip: ui.VizTooltipOptions tooltip: common.VizTooltipOptions
} @cuetsy(kind="interface") } @cuetsy(kind="interface")
PanelFieldConfig: ui.GraphFieldConfig & {} @cuetsy(kind="interface") PanelFieldConfig: common.GraphFieldConfig & {} @cuetsy(kind="interface")
}, },
] ]
}, },