@@ -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;
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
+4
-6
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user