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
@@ -96,7 +96,7 @@ export interface SearchFilterResultTypeBlueprintParams {
value: string;
}
// @alpha (undocumented)
// @public @deprecated (undocumented)
export const searchReactTranslationRef: TranslationRef<
'search-react',
{
+19
View File
@@ -28,6 +28,7 @@ import { SearchResult as SearchResult_2 } from '@backstage/plugin-search-common'
import { SearchResultSet } from '@backstage/plugin-search-common';
import { SetStateAction } from 'react';
import { TextFieldProps } from '@material-ui/core/TextField';
import { TranslationRef } from '@backstage/frontend-plugin-api';
import { TypographyProps } from '@material-ui/core/Typography';
// @public (undocumented)
@@ -296,6 +297,24 @@ export type SearchPaginationProps = Omit<
| 'hasNextPage'
>;
// @public (undocumented)
export const searchReactTranslationRef: TranslationRef<
'search-react',
{
readonly 'searchBar.title': 'Search';
readonly 'searchBar.placeholder': 'Search in {{org}}';
readonly 'searchBar.clearButtonTitle': 'Clear';
readonly 'searchFilter.allOptionTitle': 'All';
readonly 'searchPagination.limitLabel': 'Results per page:';
readonly 'searchPagination.limitText': 'of {{num}}';
readonly noResultsDescription: 'Sorry, no results were found';
readonly 'searchResultGroup.linkTitle': 'See All';
readonly 'searchResultGroup.addFilterButtonTitle': 'Add filter';
readonly 'searchResultPager.next': 'Next';
readonly 'searchResultPager.previous': 'Previous';
}
>;
// @public
export const SearchResult: (props: SearchResultProps) => JSX_2.Element;
+7 -1
View File
@@ -14,4 +14,10 @@
* limitations under the License.
*/
export * from './blueprints';
export { searchReactTranslationRef } from '../translation';
import { searchReactTranslationRef as _searchReactTranslationRef } from '../translation';
/**
* @public
* @deprecated Import from `@backstage/plugin-search-react` instead.
*/
export const searchReactTranslationRef = _searchReactTranslationRef;
+1
View File
@@ -34,3 +34,4 @@ export type {
SearchContextState,
SearchContextValue,
} from './context';
export { searchReactTranslationRef } from './translation';
+1 -1
View File
@@ -17,7 +17,7 @@
import { createTranslationRef } from '@backstage/core-plugin-api/alpha';
/**
* @alpha
* @public
*/
export const searchReactTranslationRef = createTranslationRef({
id: 'search-react',