chore: dont export them as they're part of the unstable API, just reference inline for now
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -43,7 +43,6 @@ import {
|
||||
} from '@backstage/plugin-azure-devops';
|
||||
import { EntityBadgesDialog } from '@backstage/plugin-badges';
|
||||
import {
|
||||
EntityContextMenuOptions,
|
||||
EntityAboutCard,
|
||||
EntityDependsOnComponentsCard,
|
||||
EntityDependsOnResourcesCard,
|
||||
@@ -166,15 +165,13 @@ const EntityLayoutWrapper = (props: { children?: ReactNode }) => {
|
||||
];
|
||||
}, []);
|
||||
|
||||
const options: EntityContextMenuOptions = {
|
||||
disableUnregister: 'visible',
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<EntityLayout
|
||||
UNSTABLE_extraContextMenuItems={extraMenuItems}
|
||||
UNSTABLE_contextMenuOptions={options}
|
||||
UNSTABLE_contextMenuOptions={{
|
||||
disableUnregister: 'visible',
|
||||
}}
|
||||
>
|
||||
{props.children}
|
||||
</EntityLayout>
|
||||
|
||||
@@ -259,10 +259,10 @@ export interface EntityLayoutProps {
|
||||
children?: React_2.ReactNode;
|
||||
// (undocumented)
|
||||
NotFoundComponent?: React_2.ReactNode;
|
||||
// Warning: (ae-forgotten-export) The symbol "contextMenuOptions" needs to be exported by the entry point index.d.ts
|
||||
// Warning: (ae-forgotten-export) The symbol "EntityContextMenuOptions" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
UNSTABLE_contextMenuOptions?: contextMenuOptions;
|
||||
UNSTABLE_contextMenuOptions?: EntityContextMenuOptions;
|
||||
// Warning: (ae-forgotten-export) The symbol "ExtraContextMenuItem" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
|
||||
@@ -144,8 +144,9 @@ interface ExtraContextMenuItem {
|
||||
|
||||
type VisibleType = 'visible' | 'hidden' | 'disable';
|
||||
|
||||
// NOTE(blam): Intentionally not exported at this point, since it's part of
|
||||
// unstable context menu option, eg: disable the unregister entity menu
|
||||
export interface EntityContextMenuOptions {
|
||||
interface EntityContextMenuOptions {
|
||||
disableUnregister: boolean | VisibleType;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,8 +15,4 @@
|
||||
*/
|
||||
|
||||
export { EntityLayout } from './EntityLayout';
|
||||
export type {
|
||||
EntityLayoutProps,
|
||||
EntityLayoutRouteProps,
|
||||
EntityContextMenuOptions,
|
||||
} from './EntityLayout';
|
||||
export type { EntityLayoutProps, EntityLayoutRouteProps } from './EntityLayout';
|
||||
|
||||
Reference in New Issue
Block a user