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:
@@ -359,7 +359,7 @@ export const searchPage: OverridableExtensionDefinition<{
|
||||
};
|
||||
}>;
|
||||
|
||||
// @alpha (undocumented)
|
||||
// @public @deprecated (undocumented)
|
||||
export const searchTranslationRef: TranslationRef<
|
||||
'search',
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -51,3 +51,4 @@ export {
|
||||
searchPlugin as plugin,
|
||||
searchPlugin,
|
||||
} from './plugin';
|
||||
export { searchTranslationRef } from './translation';
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { createTranslationRef } from '@backstage/core-plugin-api/alpha';
|
||||
|
||||
/**
|
||||
* @alpha
|
||||
* @public
|
||||
*/
|
||||
export const searchTranslationRef = createTranslationRef({
|
||||
id: 'search',
|
||||
|
||||
Reference in New Issue
Block a user