From f66ee9c89fb6128d374b42136569a9d9da7ad827 Mon Sep 17 00:00:00 2001 From: MT Lewis Date: Mon, 16 Sep 2024 11:55:37 +0100 Subject: [PATCH] techdocs: rename entity-content empty state extension Signed-off-by: MT Lewis --- .changeset/tall-taxis-flow.md | 2 +- plugins/techdocs/api-report-alpha.md | 6 +++--- plugins/techdocs/src/alpha.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.changeset/tall-taxis-flow.md b/.changeset/tall-taxis-flow.md index 2a785e7720..f5596c8c55 100644 --- a/.changeset/tall-taxis-flow.md +++ b/.changeset/tall-taxis-flow.md @@ -2,4 +2,4 @@ '@backstage/plugin-techdocs': patch --- -Add `element:techdocs/entity-content-empty-state` extension to allow overriding the empty state for the entity page techdocs tab. +Add `empty-state:techdocs/entity-content` extension to allow overriding the empty state for the entity page techdocs tab. diff --git a/plugins/techdocs/api-report-alpha.md b/plugins/techdocs/api-report-alpha.md index c1659d76f6..ce48a15e3d 100644 --- a/plugins/techdocs/api-report-alpha.md +++ b/plugins/techdocs/api-report-alpha.md @@ -224,7 +224,7 @@ const _default: FrontendPlugin< namespace: undefined; name: undefined; }>; - 'element:techdocs/entity-content-empty-state': ExtensionDefinition<{ + 'empty-state:techdocs/entity-content': ExtensionDefinition<{ config: {}; configInput: {}; output: ConfigurableExtensionDataRef< @@ -241,9 +241,9 @@ const _default: FrontendPlugin< } >; }; - kind: 'element'; + kind: 'empty-state'; namespace: undefined; - name: 'entity-content-empty-state'; + name: 'entity-content'; }>; } >; diff --git a/plugins/techdocs/src/alpha.tsx b/plugins/techdocs/src/alpha.tsx index a9b2f355f2..f443ebea02 100644 --- a/plugins/techdocs/src/alpha.tsx +++ b/plugins/techdocs/src/alpha.tsx @@ -186,8 +186,8 @@ const techDocsEntityContent = EntityContentBlueprint.makeWithOverrides({ }); const TechDocsEntityContentEmptyState = createExtension({ - kind: 'element', - name: 'entity-content-empty-state', + kind: 'empty-state', + name: 'entity-content', attachTo: { id: 'entity-content:techdocs', input: 'emptyState' }, output: [coreExtensionData.reactElement], factory: () => [