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:
@@ -202,7 +202,7 @@ const _default: OverridableFrontendPlugin<
|
||||
>;
|
||||
export default _default;
|
||||
|
||||
// @alpha (undocumented)
|
||||
// @public @deprecated (undocumented)
|
||||
export const orgTranslationRef: TranslationRef<
|
||||
'org',
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@ import { BackstagePlugin } from '@backstage/core-plugin-api';
|
||||
import { ExternalRouteRef } from '@backstage/core-plugin-api';
|
||||
import { IconComponent } from '@backstage/core-plugin-api';
|
||||
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
||||
import { TranslationRef } from '@backstage/frontend-plugin-api';
|
||||
|
||||
// @public (undocumented)
|
||||
export type ComponentsGridClassKey =
|
||||
@@ -85,6 +86,35 @@ const orgPlugin: BackstagePlugin<
|
||||
export { orgPlugin };
|
||||
export { orgPlugin as plugin };
|
||||
|
||||
// @public (undocumented)
|
||||
export const orgTranslationRef: TranslationRef<
|
||||
'org',
|
||||
{
|
||||
readonly 'groupProfileCard.groupNotFound': 'Group not found';
|
||||
readonly 'groupProfileCard.editIconButtonTitle': 'Edit Metadata';
|
||||
readonly 'groupProfileCard.refreshIconButtonTitle': 'Schedule entity refresh';
|
||||
readonly 'groupProfileCard.refreshIconButtonAriaLabel': 'Refresh';
|
||||
readonly 'groupProfileCard.listItemTitle.email': 'Email';
|
||||
readonly 'groupProfileCard.listItemTitle.entityRef': 'Entity Ref';
|
||||
readonly 'groupProfileCard.listItemTitle.parentGroup': 'Parent Group';
|
||||
readonly 'groupProfileCard.listItemTitle.childGroups': 'Child Groups';
|
||||
readonly 'membersListCard.title': '{{groupName}} members';
|
||||
readonly 'membersListCard.cardLabel': 'User page for {{memberName}}';
|
||||
readonly 'membersListCard.noMembersDescription': 'This group has no members.';
|
||||
readonly 'membersListCard.noSearchResult': 'Found no members matching "{{searchTerm}}".';
|
||||
readonly 'membersListCard.aggregateMembersToggle.label': 'Include subgroups';
|
||||
readonly 'ownershipCard.title': 'Ownership';
|
||||
readonly 'ownershipCard.aggregateRelationsToggle.label': 'Include indirect ownership';
|
||||
readonly 'userProfileCard.editIconButtonTitle': 'Edit Metadata';
|
||||
readonly 'userProfileCard.listItemTitle.email': 'Email';
|
||||
readonly 'userProfileCard.listItemTitle.memberOf': 'Member of';
|
||||
readonly 'userProfileCard.userNotFound': 'User not found';
|
||||
readonly 'userProfileCard.moreGroupButtonTitle': '...More ({{number}})';
|
||||
readonly 'userProfileCard.allGroupDialog.title': "All {{name}}'s groups:";
|
||||
readonly 'userProfileCard.allGroupDialog.closeButtonTitle': 'Close';
|
||||
}
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export const OwnershipCard: (props: {
|
||||
entityFilterKind?: string[];
|
||||
|
||||
@@ -130,4 +130,10 @@ export default createFrontendPlugin({
|
||||
},
|
||||
});
|
||||
|
||||
export { orgTranslationRef } from './translation';
|
||||
import { orgTranslationRef as _orgTranslationRef } from './translation';
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Import from `@backstage/plugin-org` instead.
|
||||
*/
|
||||
export const orgTranslationRef = _orgTranslationRef;
|
||||
|
||||
@@ -29,3 +29,4 @@ export {
|
||||
EntityUserProfileCard,
|
||||
} from './plugin';
|
||||
export * from './components';
|
||||
export { orgTranslationRef } from './translation';
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { createTranslationRef } from '@backstage/frontend-plugin-api';
|
||||
|
||||
/**
|
||||
* @alpha
|
||||
* @public
|
||||
*/
|
||||
export const orgTranslationRef = createTranslationRef({
|
||||
id: 'org',
|
||||
|
||||
Reference in New Issue
Block a user