Merge pull request #9632 from backstage/rugvip/maybe
maybe rename CatalogResultListItem
This commit is contained in:
@@ -102,13 +102,19 @@ export const catalogPlugin: BackstagePlugin<
|
||||
}
|
||||
>;
|
||||
|
||||
// @public @deprecated (undocumented)
|
||||
export const CatalogResultListItem: typeof CatalogSearchResultListItem;
|
||||
|
||||
// @public @deprecated (undocumented)
|
||||
export type CatalogResultListItemProps = CatalogSearchResultListItemProps;
|
||||
|
||||
// @public (undocumented)
|
||||
export function CatalogResultListItem(
|
||||
props: CatalogResultListItemProps,
|
||||
export function CatalogSearchResultListItem(
|
||||
props: CatalogSearchResultListItemProps,
|
||||
): JSX.Element;
|
||||
|
||||
// @public
|
||||
export interface CatalogResultListItemProps {
|
||||
export interface CatalogSearchResultListItemProps {
|
||||
// (undocumented)
|
||||
result: IndexableDocument;
|
||||
}
|
||||
|
||||
+17
-3
@@ -38,16 +38,18 @@ const useStyles = makeStyles({
|
||||
});
|
||||
|
||||
/**
|
||||
* Props for {@link CatalogResultListItem}.
|
||||
* Props for {@link CatalogSearchResultListItem}.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export interface CatalogResultListItemProps {
|
||||
export interface CatalogSearchResultListItemProps {
|
||||
result: IndexableDocument;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export function CatalogResultListItem(props: CatalogResultListItemProps) {
|
||||
export function CatalogSearchResultListItem(
|
||||
props: CatalogSearchResultListItemProps,
|
||||
) {
|
||||
const result = props.result as any;
|
||||
|
||||
const classes = useStyles();
|
||||
@@ -71,3 +73,15 @@ export function CatalogResultListItem(props: CatalogResultListItemProps) {
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated use {@link CatalogSearchResultListItemProps} instead
|
||||
*/
|
||||
export type CatalogResultListItemProps = CatalogSearchResultListItemProps;
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated use {@link CatalogSearchResultListItem} instead
|
||||
*/
|
||||
export const CatalogResultListItem = CatalogSearchResultListItem;
|
||||
+8
-2
@@ -14,5 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { CatalogResultListItem } from './CatalogResultListItem';
|
||||
export type { CatalogResultListItemProps } from './CatalogResultListItem';
|
||||
export {
|
||||
CatalogSearchResultListItem,
|
||||
CatalogResultListItem,
|
||||
} from './CatalogSearchResultListItem';
|
||||
export type {
|
||||
CatalogSearchResultListItemProps,
|
||||
CatalogResultListItemProps,
|
||||
} from './CatalogSearchResultListItem';
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
export * from './components/AboutCard';
|
||||
export * from './components/CatalogKindHeader';
|
||||
export * from './components/CatalogResultListItem';
|
||||
export * from './components/CatalogSearchResultListItem';
|
||||
export * from './components/CatalogTable';
|
||||
export * from './components/CatalogTable/columns';
|
||||
export * from './components/EntityLayout';
|
||||
|
||||
Reference in New Issue
Block a user