catalog, but just partial

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-08-19 14:03:47 +02:00
parent 2fc41ebf07
commit 7f7cbf1796
6 changed files with 21 additions and 9 deletions
+12 -7
View File
@@ -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<Breakpoint, number>;
// @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)
@@ -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) {
)}
</InfoCard>
);
}
};
@@ -17,3 +17,4 @@
export { EntityLinksCard } from './EntityLinksCard';
export type { EntityLinksCardProps } from './EntityLinksCard';
export type { EntityLinksEmptyStateClassKey } from './EntityLinksEmptyState';
export type { Breakpoint, ColumnBreakpoints } from './types';
@@ -14,6 +14,8 @@
* limitations under the License.
*/
/** @public */
export type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
/** @public */
export type ColumnBreakpoints = Record<Breakpoint, number>;
+3
View File
@@ -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';
+1
View File
@@ -20,6 +20,7 @@ export type CatalogPluginOptions = {
createButtonTitle: string;
};
/** @public */
export type CatalogInputPluginOptions = {
createButtonTitle: string;
};