diff --git a/.changeset/metal-garlics-fetch.md b/.changeset/metal-garlics-fetch.md index 1cc4fd0353..076b5f34a5 100644 --- a/.changeset/metal-garlics-fetch.md +++ b/.changeset/metal-garlics-fetch.md @@ -3,4 +3,4 @@ '@backstage/frontend-app-api': patch --- -Move implementations for some APIs to `ApiExtensions` instead that are discovered from the tree +Moved several implementations of built-in APIs from being hardcoded in the app to instead be provided as API extensions. This moves all API-related inputs from the `app` extension to the respective API extensions. For example, extensions created with `ThemeBlueprint` are now attached to the `themes` input of `api:app-theme` rather than the `app` extension. diff --git a/packages/frontend-app-api/src/extensions/AppThemeApi.tsx b/packages/frontend-app-api/src/extensions/AppThemeApi.tsx index 375b9e666b..d0dcad34e8 100644 --- a/packages/frontend-app-api/src/extensions/AppThemeApi.tsx +++ b/packages/frontend-app-api/src/extensions/AppThemeApi.tsx @@ -32,8 +32,6 @@ import { AppThemeSelector } from '@backstage/core-app-api'; /** * Contains the themes installed into the app. - * - * @public */ export const AppThemeApi = ApiBlueprint.makeWithOverrides({ name: 'app-theme', diff --git a/packages/frontend-app-api/src/extensions/ComponentsApi.tsx b/packages/frontend-app-api/src/extensions/ComponentsApi.tsx index 2949e686f8..5803aacf95 100644 --- a/packages/frontend-app-api/src/extensions/ComponentsApi.tsx +++ b/packages/frontend-app-api/src/extensions/ComponentsApi.tsx @@ -25,8 +25,6 @@ import { DefaultComponentsApi } from '../apis/implementations/ComponentsApi'; /** * Contains the shareable components installed into the app. - * - * @public */ export const ComponentsApi = ApiBlueprint.makeWithOverrides({ name: 'components', diff --git a/packages/frontend-app-api/src/extensions/FeatureFlagsApi.ts b/packages/frontend-app-api/src/extensions/FeatureFlagsApi.ts index 3acc6e52be..8016521539 100644 --- a/packages/frontend-app-api/src/extensions/FeatureFlagsApi.ts +++ b/packages/frontend-app-api/src/extensions/FeatureFlagsApi.ts @@ -24,8 +24,6 @@ import { LocalStorageFeatureFlags } from '../../../core-app-api/src/apis/impleme /** * Contains the shareable icons installed into the app. - * - * @public */ export const FeatureFlagsApi = ApiBlueprint.make({ name: 'feature-flags', diff --git a/packages/frontend-app-api/src/extensions/IconsApi.ts b/packages/frontend-app-api/src/extensions/IconsApi.ts index f7cb25de96..7a0ecebb40 100644 --- a/packages/frontend-app-api/src/extensions/IconsApi.ts +++ b/packages/frontend-app-api/src/extensions/IconsApi.ts @@ -26,8 +26,6 @@ import { DefaultIconsApi } from '../apis/implementations/IconsApi'; /** * Contains the shareable icons installed into the app. - * - * @public */ export const IconsApi = ApiBlueprint.makeWithOverrides({ name: 'icons', diff --git a/packages/frontend-app-api/src/extensions/TranslationsApi.tsx b/packages/frontend-app-api/src/extensions/TranslationsApi.tsx index 16defdde10..9c13c3b063 100644 --- a/packages/frontend-app-api/src/extensions/TranslationsApi.tsx +++ b/packages/frontend-app-api/src/extensions/TranslationsApi.tsx @@ -29,8 +29,6 @@ import { I18nextTranslationApi } from '../../../core-app-api/src/apis/implementa /** * Contains translations that are installed in the app. - * - * @public */ export const TranslationsApi = ApiBlueprint.makeWithOverrides({ name: 'translations',