From 5ea9509e6a048101a9d029b80e9a95b8debb416b Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Fri, 4 Mar 2022 11:23:47 +0100 Subject: [PATCH] catalog: Remove CatalogResultListItem Signed-off-by: Johan Haals --- .changeset/fifty-brooms-whisper.md | 5 +++++ .../CatalogSearchResultListItem.tsx | 12 ------------ .../components/CatalogSearchResultListItem/index.ts | 10 ++-------- 3 files changed, 7 insertions(+), 20 deletions(-) create mode 100644 .changeset/fifty-brooms-whisper.md diff --git a/.changeset/fifty-brooms-whisper.md b/.changeset/fifty-brooms-whisper.md new file mode 100644 index 0000000000..b4c45555a3 --- /dev/null +++ b/.changeset/fifty-brooms-whisper.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog': minor +--- + +**BREAKING**: Removed `CatalogResultListItemProps` and `CatalogResultListItem`, replaced by `CatalogSearchResultListItemProps` and `CatalogSearchResultListItem`. diff --git a/plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx b/plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx index 54cfe43364..9762eb3da9 100644 --- a/plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx +++ b/plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx @@ -73,15 +73,3 @@ export function CatalogSearchResultListItem( ); } - -/** - * @public - * @deprecated use {@link CatalogSearchResultListItemProps} instead - */ -export type CatalogResultListItemProps = CatalogSearchResultListItemProps; - -/** - * @public - * @deprecated use {@link CatalogSearchResultListItem} instead - */ -export const CatalogResultListItem = CatalogSearchResultListItem; diff --git a/plugins/catalog/src/components/CatalogSearchResultListItem/index.ts b/plugins/catalog/src/components/CatalogSearchResultListItem/index.ts index 0396117825..ba0e6d29be 100644 --- a/plugins/catalog/src/components/CatalogSearchResultListItem/index.ts +++ b/plugins/catalog/src/components/CatalogSearchResultListItem/index.ts @@ -14,11 +14,5 @@ * limitations under the License. */ -export { - CatalogSearchResultListItem, - CatalogResultListItem, -} from './CatalogSearchResultListItem'; -export type { - CatalogSearchResultListItemProps, - CatalogResultListItemProps, -} from './CatalogSearchResultListItem'; +export { CatalogSearchResultListItem } from './CatalogSearchResultListItem'; +export type { CatalogSearchResultListItemProps } from './CatalogSearchResultListItem';