From d10ea17c9387dc5b9cdfc9a834655f93d0b7389b Mon Sep 17 00:00:00 2001 From: Ryan Vazquez Date: Tue, 23 Mar 2021 18:41:24 -0400 Subject: [PATCH] fix missing type exports Signed-off-by: Ryan Vazquez --- .../cost-insights-short-garlics-press.md | 5 +++++ .../src/components/CostGrowth/index.ts | 6 ++--- .../src/components/LegendItem/index.ts | 2 +- plugins/cost-insights/src/index.ts | 22 ++++++++++++++++++- 4 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 .changeset/cost-insights-short-garlics-press.md diff --git a/.changeset/cost-insights-short-garlics-press.md b/.changeset/cost-insights-short-garlics-press.md new file mode 100644 index 0000000000..1c0c8c6229 --- /dev/null +++ b/.changeset/cost-insights-short-garlics-press.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-cost-insights': patch +--- + +fix missing type exports of public components diff --git a/plugins/cost-insights/src/components/CostGrowth/index.ts b/plugins/cost-insights/src/components/CostGrowth/index.ts index 569c343380..09f9991a3a 100644 --- a/plugins/cost-insights/src/components/CostGrowth/index.ts +++ b/plugins/cost-insights/src/components/CostGrowth/index.ts @@ -14,7 +14,5 @@ * limitations under the License. */ -export { CostGrowth } from './CostGrowth'; -export type { CostGrowthProps } from './CostGrowth'; -export { CostGrowthIndicator } from './CostGrowthIndicator'; -export type { CostGrowthIndicatorProps } from './CostGrowthIndicator'; +export * from './CostGrowth'; +export * from './CostGrowthIndicator'; diff --git a/plugins/cost-insights/src/components/LegendItem/index.ts b/plugins/cost-insights/src/components/LegendItem/index.ts index e97af0c97f..8deef5e51b 100644 --- a/plugins/cost-insights/src/components/LegendItem/index.ts +++ b/plugins/cost-insights/src/components/LegendItem/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { LegendItem } from './LegendItem'; +export * from './LegendItem'; diff --git a/plugins/cost-insights/src/index.ts b/plugins/cost-insights/src/index.ts index 2d12eec9d9..0a7d6388af 100644 --- a/plugins/cost-insights/src/index.ts +++ b/plugins/cost-insights/src/index.ts @@ -22,8 +22,28 @@ export { CostInsightsLabelDataflowInstructionsPage, } from './plugin'; export { ExampleCostInsightsClient } from './example'; -export { BarChart, LegendItem, CostGrowth } from './components'; +export { + BarChart, + BarChartLegend, + BarChartTooltip, + BarChartTooltipItem, + CostGrowth, + CostGrowthIndicator, + LegendItem, +} from './components'; export { MockConfigProvider, MockCurrencyProvider } from './testUtils'; export * from './api'; export * from './alerts'; export * from './types'; + +export type { + BarChartProps, + BarChartLegendOptions, + BarChartLegendProps, + BarChartTooltipProps, + BarChartTooltipItemProps, + CostGrowthProps, + CostGrowthIndicatorProps, + TooltipItem, + LegendItemProps, +} from './components';