Promote translation refs from alpha to stable entry points

Add each plugin and package translation ref to the corresponding stable
entry point, changing the JSDoc tag from @alpha to @public. The alpha
entry points now re-export with a @deprecated annotation so existing
consumers continue to work.

Affected packages: core-components, api-docs, catalog, catalog-graph,
catalog-import, catalog-react, home, home-react, kubernetes,
kubernetes-cluster, kubernetes-react, notifications, org, scaffolder,
scaffolder-react, search, search-react, user-settings.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-17 13:02:06 +01:00
parent f60c2673ce
commit 0be2541b5c
92 changed files with 1171 additions and 67 deletions
+1 -1
View File
@@ -359,7 +359,7 @@ export const searchPage: OverridableExtensionDefinition<{
};
}>;
// @alpha (undocumented)
// @public @deprecated (undocumented)
export const searchTranslationRef: TranslationRef<
'search',
{
+15
View File
@@ -10,6 +10,7 @@ import { ReactNode } from 'react';
import { RouteRef } from '@backstage/core-plugin-api';
import { SearchBarBaseProps } from '@backstage/plugin-search-react';
import { SearchResultSet } from '@backstage/plugin-search-common';
import { TranslationRef } from '@backstage/frontend-plugin-api';
// @public (undocumented)
export const HomePageSearchBar: (
@@ -78,6 +79,20 @@ const searchPlugin: BackstagePlugin<
export { searchPlugin as plugin };
export { searchPlugin };
// @public (undocumented)
export const searchTranslationRef: TranslationRef<
'search',
{
readonly 'searchModal.viewFullResults': 'View Full Results';
readonly 'searchType.tabs.allTitle': 'All';
readonly 'searchType.allResults': 'All Results';
readonly 'searchType.accordion.collapse': 'Collapse';
readonly 'searchType.accordion.numberOfResults': '{{number}} results';
readonly 'searchType.accordion.allTitle': 'All';
readonly 'sidebarSearchModal.title': 'Search';
}
>;
// @public (undocumented)
export const SearchType: {
(props: SearchTypeProps): JSX_2.Element;
+7 -2
View File
@@ -285,5 +285,10 @@ export default createFrontendPlugin({
},
});
/** @alpha */
export { searchTranslationRef } from './translation';
import { searchTranslationRef as _searchTranslationRef } from './translation';
/**
* @public
* @deprecated Import from `@backstage/plugin-search` instead.
*/
export const searchTranslationRef = _searchTranslationRef;
+1
View File
@@ -51,3 +51,4 @@ export {
searchPlugin as plugin,
searchPlugin,
} from './plugin';
export { searchTranslationRef } from './translation';
+1 -1
View File
@@ -17,7 +17,7 @@
import { createTranslationRef } from '@backstage/core-plugin-api/alpha';
/**
* @alpha
* @public
*/
export const searchTranslationRef = createTranslationRef({
id: 'search',