From bd382f2bc2aa2460cc6a9e53c245107825105386 Mon Sep 17 00:00:00 2001 From: Brian Fletcher Date: Thu, 12 Jan 2023 07:59:25 +0000 Subject: [PATCH] api reports and changeset Signed-off-by: Brian Fletcher --- .changeset/forty-ligers-teach.md | 5 +++++ plugins/catalog/api-report.md | 12 ++++++++++++ .../catalog/src/components/EntityLabelsCard/index.ts | 1 + 3 files changed, 18 insertions(+) create mode 100644 .changeset/forty-ligers-teach.md diff --git a/.changeset/forty-ligers-teach.md b/.changeset/forty-ligers-teach.md new file mode 100644 index 0000000000..31abd1895d --- /dev/null +++ b/.changeset/forty-ligers-teach.md @@ -0,0 +1,5 @@ +--- +'@backstage/catalog-model': patch +--- + +Add labels to one of the example entities. diff --git a/plugins/catalog/api-report.md b/plugins/catalog/api-report.md index 74f64882a8..ada173fd5d 100644 --- a/plugins/catalog/api-report.md +++ b/plugins/catalog/api-report.md @@ -277,6 +277,15 @@ export const EntityHasSubcomponentsCard: ( // @public (undocumented) export const EntityHasSystemsCard: (props: HasSystemsCardProps) => JSX.Element; +// @public (undocumented) +export const EntityLabelsCard: (props: EntityLabelsCardProps) => JSX.Element; + +// @public (undocumented) +export interface EntityLabelsCardProps { + // (undocumented) + variant?: InfoCardVariants; +} + // @public export const EntityLayout: { (props: EntityLayoutProps): JSX.Element; @@ -385,6 +394,9 @@ export interface HasComponentsCardProps { variant?: InfoCardVariants; } +// @public +export function hasLabels(entity: Entity): boolean; + // @public (undocumented) export interface HasResourcesCardProps { // (undocumented) diff --git a/plugins/catalog/src/components/EntityLabelsCard/index.ts b/plugins/catalog/src/components/EntityLabelsCard/index.ts index bb8570d67c..870819f9a7 100644 --- a/plugins/catalog/src/components/EntityLabelsCard/index.ts +++ b/plugins/catalog/src/components/EntityLabelsCard/index.ts @@ -16,3 +16,4 @@ export { EntityLabelsCard } from './EntityLabelsCard'; export * from './conditions'; +export type { EntityLabelsCardProps } from './EntityLabelsCard';