diff --git a/plugins/catalog/api-report.md b/plugins/catalog/api-report.md index ec2aeafd00..689c617158 100644 --- a/plugins/catalog/api-report.md +++ b/plugins/catalog/api-report.md @@ -114,6 +114,14 @@ export const CatalogIndexPage: ({ initiallySelectedFilter, }: CatalogPageProps) => JSX.Element; +// Warning: (ae-forgotten-export) The symbol "CatalogKindHeaderProps" needs to be exported by the entry point index.d.ts +// Warning: (ae-missing-release-tag) "CatalogKindHeader" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export const CatalogKindHeader: ({ + initialFilter, +}: CatalogKindHeaderProps) => JSX.Element; + // Warning: (ae-missing-release-tag) "catalogPlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // // @public (undocumented) diff --git a/plugins/catalog/src/components/CatalogPage/CatalogKindHeader.test.tsx b/plugins/catalog/src/components/CatalogKindHeader/CatalogKindHeader.test.tsx similarity index 100% rename from plugins/catalog/src/components/CatalogPage/CatalogKindHeader.test.tsx rename to plugins/catalog/src/components/CatalogKindHeader/CatalogKindHeader.test.tsx diff --git a/plugins/catalog/src/components/CatalogPage/CatalogKindHeader.tsx b/plugins/catalog/src/components/CatalogKindHeader/CatalogKindHeader.tsx similarity index 100% rename from plugins/catalog/src/components/CatalogPage/CatalogKindHeader.tsx rename to plugins/catalog/src/components/CatalogKindHeader/CatalogKindHeader.tsx diff --git a/plugins/catalog/src/components/CatalogKindHeader/index.ts b/plugins/catalog/src/components/CatalogKindHeader/index.ts new file mode 100644 index 0000000000..0078207d58 --- /dev/null +++ b/plugins/catalog/src/components/CatalogKindHeader/index.ts @@ -0,0 +1,16 @@ +/* + * Copyright 2021 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export { CatalogKindHeader } from './CatalogKindHeader'; diff --git a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx index 27a1414f27..ec29d3839b 100644 --- a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx @@ -42,7 +42,7 @@ import { EntityListContainer, FilterContainer, } from '../FilteredEntityLayout'; -import { CatalogKindHeader } from './CatalogKindHeader'; +import { CatalogKindHeader } from '../CatalogKindHeader'; export type CatalogPageProps = { initiallySelectedFilter?: UserListFilterKind; diff --git a/plugins/catalog/src/index.ts b/plugins/catalog/src/index.ts index c5cc69f609..31184204a9 100644 --- a/plugins/catalog/src/index.ts +++ b/plugins/catalog/src/index.ts @@ -16,6 +16,7 @@ export { CatalogClientWrapper } from './CatalogClientWrapper'; export * from './components/AboutCard'; +export * from './components/CatalogKindHeader'; export * from './components/CatalogResultListItem'; export { CatalogTable } from './components/CatalogTable'; export type { EntityRow as CatalogTableRow } from './components/CatalogTable';