diff --git a/packages/core-components/api-report.md b/packages/core-components/api-report.md index d40179dc62..495150e54b 100644 --- a/packages/core-components/api-report.md +++ b/packages/core-components/api-report.md @@ -746,16 +746,13 @@ export type MetadataTableTitleCellClassKey = 'root'; export type MicDropClassKey = 'micDrop'; // Warning: (ae-forgotten-export) The symbol "Props_3" needs to be exported by the entry point index.d.ts -// Warning: (ae-missing-release-tag) "MissingAnnotationEmptyState" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) // -// @public (undocumented) +// @public @deprecated (undocumented) export function MissingAnnotationEmptyState( props: Props_3, ): React_2.JSX.Element; -// Warning: (ae-missing-release-tag) "MissingAnnotationEmptyStateClassKey" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) -// -// @public (undocumented) +// @public @deprecated (undocumented) export type MissingAnnotationEmptyStateClassKey = 'code'; // @public diff --git a/packages/core-components/src/components/EmptyState/MissingAnnotationEmptyState.tsx b/packages/core-components/src/components/EmptyState/MissingAnnotationEmptyState.tsx index efbfdb9999..eb8b652924 100644 --- a/packages/core-components/src/components/EmptyState/MissingAnnotationEmptyState.tsx +++ b/packages/core-components/src/components/EmptyState/MissingAnnotationEmptyState.tsx @@ -43,7 +43,7 @@ const ANNOTATION_LINE = COMPONENT_YAML_TEMPLATE.split('\n').findIndex(line => ANNOTATION_REGEXP.test(line), ); -type Props = { +export type Props = { annotation: string | string[]; readMoreUrl?: string; }; diff --git a/plugins/catalog-react/api-report.md b/plugins/catalog-react/api-report.md index e2000b5658..03c97ee4c4 100644 --- a/plugins/catalog-react/api-report.md +++ b/plugins/catalog-react/api-report.md @@ -616,6 +616,15 @@ export function InspectEntityDialog(props: { onClose: () => void; }): React_2.JSX.Element | null; +// @public +export function MissingAnnotationEmptyState(props: { + annotation: string | string[]; + readMoreUrl?: string; +}): React_2.JSX.Element; + +// @public (undocumented) +export type MissingAnnotationEmptyStateClassKey = 'code'; + // @public (undocumented) export function MockEntityListContextProvider< T extends DefaultEntityFilters = DefaultEntityFilters, diff --git a/plugins/catalog-react/src/components/MissingAnnotationEmptyState/MissingAnnotationEmptyState.tsx b/plugins/catalog-react/src/components/MissingAnnotationEmptyState/MissingAnnotationEmptyState.tsx index 887cb68648..284025d8cd 100644 --- a/plugins/catalog-react/src/components/MissingAnnotationEmptyState/MissingAnnotationEmptyState.tsx +++ b/plugins/catalog-react/src/components/MissingAnnotationEmptyState/MissingAnnotationEmptyState.tsx @@ -24,11 +24,6 @@ import { CodeSnippet, Link, EmptyState } from '@backstage/core-components'; import { Entity } from '@backstage/catalog-model'; import { useEntity } from '../../hooks'; -type Props = { - annotation: string | string[]; - readMoreUrl?: string; -}; - /** @public */ export type MissingAnnotationEmptyStateClassKey = 'code'; @@ -98,7 +93,10 @@ function generateDescription(annotations: string[], entityKind = 'Component') { * @public * Renders an empty state when an annotation is missing from an entity. */ -export function MissingAnnotationEmptyState(props: Props) { +export function MissingAnnotationEmptyState(props: { + annotation: string | string[]; + readMoreUrl?: string; +}) { let entity: Entity | undefined; try { const entityContext = useEntity();