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
+3 -1
View File
@@ -125,7 +125,7 @@ export const homePageWidgetDataRef: ConfigurableExtensionDataRef<
{}
>;
// @alpha
// @public @deprecated (undocumented)
export const homeReactTranslationRef: TranslationRef<
'home-react',
{
@@ -134,4 +134,6 @@ export const homeReactTranslationRef: TranslationRef<
readonly 'cardExtension.settingsButtonTitle': 'Settings';
}
>;
// (No @packageDocumentation comment for this package)
```
+11
View File
@@ -9,6 +9,7 @@ import { JSX as JSX_3 } from 'react';
import { Overrides } from '@material-ui/core/styles/overrides';
import { RJSFSchema } from '@rjsf/utils';
import { StyleRules } from '@material-ui/core/styles/withStyles';
import { TranslationRef } from '@backstage/frontend-plugin-api';
import { UiSchema } from '@rjsf/utils';
// @public (undocumented)
@@ -81,6 +82,16 @@ export function createCardExtension<T>(options: {
settings?: CardSettings;
}): Extension<(props: CardExtensionProps<T>) => JSX_2.Element>;
// @public
export const homeReactTranslationRef: TranslationRef<
'home-react',
{
readonly 'settingsModal.title': 'Settings';
readonly 'settingsModal.closeButtonTitle': 'Close';
readonly 'cardExtension.settingsButtonTitle': 'Settings';
}
>;
// @public (undocumented)
export type PluginHomeComponentsNameToClassKey = {
PluginHomeContentModal: PluginHomeContentModalClassKey;
+7 -1
View File
@@ -23,7 +23,13 @@
*
* @packageDocumentation
*/
export { homeReactTranslationRef } from './translation';
import { homeReactTranslationRef as _homeReactTranslationRef } from './translation';
/**
* @public
* @deprecated Import from `@backstage/plugin-home-react` instead.
*/
export const homeReactTranslationRef = _homeReactTranslationRef;
export {
HomePageWidgetBlueprint,
type HomePageWidgetBlueprintParams,
+1
View File
@@ -31,3 +31,4 @@ export type {
CardConfig,
} from './extensions';
export * from './overridableComponents';
export { homeReactTranslationRef } from './translation';
+2 -2
View File
@@ -17,9 +17,9 @@ import { createTranslationRef } from '@backstage/frontend-plugin-api';
/**
* Translation reference for the home-react plugin.
* Contains localized text strings for home page components and settings modals.
* Contains localized text strings for home page components and widgets.
*
* @alpha
* @public
*/
export const homeReactTranslationRef = createTranslationRef({
id: 'home-react',