From 5cd6c73ff556d4d90f5c989150a77872fdf65aa1 Mon Sep 17 00:00:00 2001 From: Dominik Henneke Date: Wed, 22 Sep 2021 12:26:39 +0200 Subject: [PATCH] Export the `DomainCard` to be able to customize the explorer page Signed-off-by: Dominik Henneke --- .changeset/brown-brooms-destroy.md | 5 +++++ plugins/explore/api-report.md | 7 +++++++ plugins/explore/src/components/index.ts | 1 + plugins/explore/src/index.ts | 2 +- 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .changeset/brown-brooms-destroy.md diff --git a/.changeset/brown-brooms-destroy.md b/.changeset/brown-brooms-destroy.md new file mode 100644 index 0000000000..8de31f9cf5 --- /dev/null +++ b/.changeset/brown-brooms-destroy.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-explore': patch +--- + +Export the `DomainCard` to be able to customize the explorer page. diff --git a/plugins/explore/api-report.md b/plugins/explore/api-report.md index 5691707e0e..e985297035 100644 --- a/plugins/explore/api-report.md +++ b/plugins/explore/api-report.md @@ -7,6 +7,7 @@ import { BackstagePlugin } from '@backstage/core-plugin-api'; import { default as default_2 } from 'react'; +import { DomainEntity } from '@backstage/catalog-model'; import { ExternalRouteRef } from '@backstage/core-plugin-api'; import { RouteRef } from '@backstage/core-plugin-api'; import { TabProps } from '@material-ui/core'; @@ -23,6 +24,12 @@ export const catalogEntityRouteRef: ExternalRouteRef< false >; +// Warning: (ae-forgotten-export) The symbol "DomainCardProps" needs to be exported by the entry point index.d.ts +// Warning: (ae-missing-release-tag) "DomainCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export const DomainCard: ({ entity }: DomainCardProps) => JSX.Element; + // Warning: (ae-missing-release-tag) "DomainExplorerContent" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // // @public (undocumented) diff --git a/plugins/explore/src/components/index.ts b/plugins/explore/src/components/index.ts index fa98ec78da..cefc549684 100644 --- a/plugins/explore/src/components/index.ts +++ b/plugins/explore/src/components/index.ts @@ -14,4 +14,5 @@ * limitations under the License. */ +export { DomainCard } from './DomainCard'; export { ExploreLayout } from './ExploreLayout'; diff --git a/plugins/explore/src/index.ts b/plugins/explore/src/index.ts index cc1b097bfe..04f0240968 100644 --- a/plugins/explore/src/index.ts +++ b/plugins/explore/src/index.ts @@ -20,7 +20,7 @@ * @packageDocumentation */ -export { ExploreLayout } from './components'; +export * from './components'; export * from './extensions'; export { explorePlugin, explorePlugin as plugin } from './plugin'; export * from './routes';