diff --git a/plugins/catalog/api-report.md b/plugins/catalog/api-report.md index 98bc7ab89e..f3bec2ba43 100644 --- a/plugins/catalog/api-report.md +++ b/plugins/catalog/api-report.md @@ -64,12 +64,20 @@ export type BackstageOverrides = Overrides & { >; }; +// @public (undocumented) +export type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; + // @public (undocumented) export const CatalogEntityPage: () => JSX.Element; // @public (undocumented) export const CatalogIndexPage: (props: DefaultCatalogPageProps) => JSX.Element; +// @public (undocumented) +export type CatalogInputPluginOptions = { + createButtonTitle: string; +}; + // @public (undocumented) export function CatalogKindHeader(props: CatalogKindHeaderProps): JSX.Element; @@ -79,8 +87,6 @@ export interface CatalogKindHeaderProps { initialFilter?: string; } -// Warning: (ae-forgotten-export) The symbol "CatalogInputPluginOptions" needs to be exported by the entry point index.d.ts -// // @public (undocumented) export const catalogPlugin: BackstagePlugin< { @@ -176,6 +182,9 @@ export interface CatalogTableRow { }; } +// @public (undocumented) +export type ColumnBreakpoints = Record; + // @public export interface DefaultCatalogPageProps { // (undocumented) @@ -296,15 +305,11 @@ export type EntityLayoutRouteProps = { >; }; -// Warning: (ae-forgotten-export) The symbol "EntityLinksCard" needs to be exported by the entry point index.d.ts -// // @public (undocumented) -export const EntityLinksCard: EntityLinksCard_2; +export const EntityLinksCard: (props: EntityLinksCardProps) => JSX.Element; // @public (undocumented) export interface EntityLinksCardProps { - // Warning: (ae-forgotten-export) The symbol "ColumnBreakpoints" needs to be exported by the entry point index.d.ts - // // (undocumented) cols?: ColumnBreakpoints | number; // (undocumented) diff --git a/plugins/catalog/src/components/EntityLinksCard/EntityLinksCard.tsx b/plugins/catalog/src/components/EntityLinksCard/EntityLinksCard.tsx index 10302d7837..ebc551c29f 100644 --- a/plugins/catalog/src/components/EntityLinksCard/EntityLinksCard.tsx +++ b/plugins/catalog/src/components/EntityLinksCard/EntityLinksCard.tsx @@ -29,7 +29,7 @@ export interface EntityLinksCardProps { variant?: InfoCardVariants; } -export function EntityLinksCard(props: EntityLinksCardProps) { +export const EntityLinksCard = (props: EntityLinksCardProps) => { const { cols = undefined, variant } = props; const { entity } = useEntity(); const app = useApp(); @@ -55,4 +55,4 @@ export function EntityLinksCard(props: EntityLinksCardProps) { )} ); -} +}; diff --git a/plugins/catalog/src/components/EntityLinksCard/index.ts b/plugins/catalog/src/components/EntityLinksCard/index.ts index dcd4366066..eb3beda6ea 100644 --- a/plugins/catalog/src/components/EntityLinksCard/index.ts +++ b/plugins/catalog/src/components/EntityLinksCard/index.ts @@ -17,3 +17,4 @@ export { EntityLinksCard } from './EntityLinksCard'; export type { EntityLinksCardProps } from './EntityLinksCard'; export type { EntityLinksEmptyStateClassKey } from './EntityLinksEmptyState'; +export type { Breakpoint, ColumnBreakpoints } from './types'; diff --git a/plugins/catalog/src/components/EntityLinksCard/types.ts b/plugins/catalog/src/components/EntityLinksCard/types.ts index e3cd1a94ac..fdd9c9c07c 100644 --- a/plugins/catalog/src/components/EntityLinksCard/types.ts +++ b/plugins/catalog/src/components/EntityLinksCard/types.ts @@ -14,6 +14,8 @@ * limitations under the License. */ +/** @public */ export type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; +/** @public */ export type ColumnBreakpoints = Record; diff --git a/plugins/catalog/src/index.ts b/plugins/catalog/src/index.ts index f0f94656d5..a69d4004a1 100644 --- a/plugins/catalog/src/index.ts +++ b/plugins/catalog/src/index.ts @@ -37,6 +37,7 @@ export * from './components/EntityProcessingErrorsPanel'; export * from './components/EntitySwitch'; export * from './components/FilteredEntityLayout'; export * from './overridableComponents'; +export type { CatalogInputPluginOptions } from './options'; export { CatalogEntityPage, CatalogIndexPage, @@ -59,6 +60,8 @@ export type { DependsOnResourcesCardProps } from './components/DependsOnResource export type { EntityLinksEmptyStateClassKey, EntityLinksCardProps, + Breakpoint, + ColumnBreakpoints, } from './components/EntityLinksCard'; export type { SystemDiagramCardClassKey } from './components/SystemDiagramCard'; export type { DefaultCatalogPageProps } from './components/CatalogPage'; diff --git a/plugins/catalog/src/options.ts b/plugins/catalog/src/options.ts index 1d8b972ec2..4061f512ac 100644 --- a/plugins/catalog/src/options.ts +++ b/plugins/catalog/src/options.ts @@ -20,6 +20,7 @@ export type CatalogPluginOptions = { createButtonTitle: string; }; +/** @public */ export type CatalogInputPluginOptions = { createButtonTitle: string; };