feat: api report fixes

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-10-26 18:49:54 +02:00
parent fdb5e23602
commit e557084f26
4 changed files with 16 additions and 12 deletions
+2 -5
View File
@@ -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
@@ -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;
};
+9
View File
@@ -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,
@@ -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();