diff --git a/.changeset/chilly-owls-punch.md b/.changeset/chilly-owls-punch.md new file mode 100644 index 0000000000..35fb581a81 --- /dev/null +++ b/.changeset/chilly-owls-punch.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog': patch +--- + +Exports `CatalogLayout` and `CreateComponentButton` for catalog customization. diff --git a/plugins/catalog/src/components/CatalogPage/CatalogLayout.tsx b/plugins/catalog/src/components/CatalogPage/CatalogLayout.tsx index a57b223afe..a604166688 100644 --- a/plugins/catalog/src/components/CatalogPage/CatalogLayout.tsx +++ b/plugins/catalog/src/components/CatalogPage/CatalogLayout.tsx @@ -21,7 +21,7 @@ type Props = { children?: React.ReactNode; }; -const CatalogLayout = ({ children }: Props) => { +export const CatalogLayout = ({ children }: Props) => { const orgName = useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage'; diff --git a/plugins/catalog/src/components/CatalogPage/index.ts b/plugins/catalog/src/components/CatalogPage/index.ts index 1adb8866c8..1e5d9d88c1 100644 --- a/plugins/catalog/src/components/CatalogPage/index.ts +++ b/plugins/catalog/src/components/CatalogPage/index.ts @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +export { CatalogLayout } from './CatalogLayout'; export { CatalogPage } from './CatalogPage'; diff --git a/plugins/catalog/src/index.ts b/plugins/catalog/src/index.ts index 0958503077..1596de0e8d 100644 --- a/plugins/catalog/src/index.ts +++ b/plugins/catalog/src/index.ts @@ -15,8 +15,10 @@ */ export * from './components/AboutCard'; +export { CatalogLayout } from './components/CatalogPage'; export { CatalogResultListItem } from './components/CatalogResultListItem'; export { CatalogTable } from './components/CatalogTable'; +export { CreateComponentButton } from './components/CreateComponentButton'; export { EntityLayout } from './components/EntityLayout'; export * from './components/EntityOrphanWarning'; export { EntityPageLayout } from './components/EntityPageLayout';