From 031b8bed5aa50b5fdac0fddb5902cfb067b076fd Mon Sep 17 00:00:00 2001 From: josh Date: Fri, 9 Jun 2023 23:05:16 -0400 Subject: [PATCH] Remove EmbeddedRouter from public API Signed-off-by: josh --- plugins/nomad/api-report.md | 3 --- plugins/nomad/src/Router.tsx | 1 - plugins/nomad/src/index.ts | 6 +----- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/plugins/nomad/api-report.md b/plugins/nomad/api-report.md index 8420a6060e..46d3f2b81b 100644 --- a/plugins/nomad/api-report.md +++ b/plugins/nomad/api-report.md @@ -9,9 +9,6 @@ import { BackstagePlugin } from '@backstage/core-plugin-api'; import { Entity } from '@backstage/catalog-model'; import { RouteRef } from '@backstage/core-plugin-api'; -// @public (undocumented) -export const EmbeddedRouter: () => JSX.Element; - // @public export const EntityNomadAllocationListTable: () => JSX.Element; diff --git a/plugins/nomad/src/Router.tsx b/plugins/nomad/src/Router.tsx index dadeda86db..d7e6db1b44 100644 --- a/plugins/nomad/src/Router.tsx +++ b/plugins/nomad/src/Router.tsx @@ -39,7 +39,6 @@ export const isNomadAllocationsAvailable = (entity: Entity) => Boolean(entity.metadata.annotations?.[NOMAD_JOB_ID_ANNOTATION]) || Boolean(entity.metadata.annotations?.[NOMAD_GROUP_ANNOTATION]); -/** @public */ export const EmbeddedRouter = () => { const { entity } = useEntity(); diff --git a/plugins/nomad/src/index.ts b/plugins/nomad/src/index.ts index 2b95af217a..3785a5c7b5 100644 --- a/plugins/nomad/src/index.ts +++ b/plugins/nomad/src/index.ts @@ -18,8 +18,4 @@ export { EntityNomadJobVersionListCard, EntityNomadAllocationListTable, } from './plugin'; -export { - isNomadAllocationsAvailable, - isNomadJobIDAvailable, - EmbeddedRouter, -} from './Router'; +export { isNomadAllocationsAvailable, isNomadJobIDAvailable } from './Router';