diff --git a/.changeset/loud-pears-marry.md b/.changeset/loud-pears-marry.md new file mode 100644 index 0000000000..d72faa7e44 --- /dev/null +++ b/.changeset/loud-pears-marry.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-bazaar': patch +--- + +Allow customisation of title and subtitle on bazaar page. diff --git a/plugins/bazaar/api-report.md b/plugins/bazaar/api-report.md index afbb7b5504..7b27969dd4 100644 --- a/plugins/bazaar/api-report.md +++ b/plugins/bazaar/api-report.md @@ -24,7 +24,7 @@ export type BazaarOverviewCardProps = { }; // @public (undocumented) -export const BazaarPage: () => JSX.Element; +export const BazaarPage: (props: HomePageProps) => JSX.Element; // @public (undocumented) export const bazaarPlugin: BackstagePlugin< @@ -38,6 +38,12 @@ export const bazaarPlugin: BackstagePlugin< // @public (undocumented) export const EntityBazaarInfoCard: () => JSX.Element | null; +// @public (undocumented) +export type HomePageProps = { + title?: string; + subtitle?: string; +}; + // @public (undocumented) export const isBazaarAvailable: ( entity: Entity, diff --git a/plugins/bazaar/src/components/HomePage/HomePage.tsx b/plugins/bazaar/src/components/HomePage/HomePage.tsx index fec2bf2d6f..73a8cd7922 100644 --- a/plugins/bazaar/src/components/HomePage/HomePage.tsx +++ b/plugins/bazaar/src/components/HomePage/HomePage.tsx @@ -19,6 +19,7 @@ import { Header, RoutedTabs } from '@backstage/core-components'; import { SortView } from '../SortView'; import { About } from '../About'; +/** @public */ export type HomePageProps = { title?: string; subtitle?: string; diff --git a/plugins/bazaar/src/components/HomePage/index.ts b/plugins/bazaar/src/components/HomePage/index.ts index 41d7bc5d03..e8219cf96a 100644 --- a/plugins/bazaar/src/components/HomePage/index.ts +++ b/plugins/bazaar/src/components/HomePage/index.ts @@ -15,3 +15,4 @@ */ export { HomePage } from './HomePage'; +export type { HomePageProps } from './HomePage'; diff --git a/plugins/bazaar/src/index.ts b/plugins/bazaar/src/index.ts index c0378e60bf..9653108e18 100644 --- a/plugins/bazaar/src/index.ts +++ b/plugins/bazaar/src/index.ts @@ -20,3 +20,4 @@ export { BazaarOverviewCard } from './components/BazaarOverviewCard'; export type { BazaarOverviewCardProps } from './components/BazaarOverviewCard'; export { EntityBazaarInfoCard } from './components/EntityBazaarInfoCard'; export { SortView } from './components/SortView'; +export type { HomePageProps } from './components/HomePage';