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:
@@ -5,7 +5,7 @@
|
||||
```ts
|
||||
import { TranslationRef } from '@backstage/frontend-plugin-api';
|
||||
|
||||
// @alpha (undocumented)
|
||||
// @public @deprecated (undocumented)
|
||||
export const kubernetesClusterTranslationRef: TranslationRef<
|
||||
'kubernetes-cluster',
|
||||
{
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
```ts
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
||||
import { TranslationRef } from '@backstage/frontend-plugin-api';
|
||||
|
||||
// @public
|
||||
export const EntityKubernetesClusterContent: (
|
||||
@@ -17,6 +18,15 @@ export type EntityKubernetesClusterContentProps = {};
|
||||
// @public (undocumented)
|
||||
export const isKubernetesClusterAvailable: (entity: Entity) => boolean;
|
||||
|
||||
// @public (undocumented)
|
||||
export const kubernetesClusterTranslationRef: TranslationRef<
|
||||
'kubernetes-cluster',
|
||||
{
|
||||
readonly 'kubernetesClusterContentPage.permissionAlert.message': "To view Kubernetes objects, contact your portal administrator to give you the 'kubernetes.clusters.read' permission.";
|
||||
readonly 'kubernetesClusterContentPage.permissionAlert.title': 'Permission required';
|
||||
}
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export const Router: () => JSX_2.Element;
|
||||
```
|
||||
|
||||
@@ -14,4 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { kubernetesClusterTranslationRef } from './translation';
|
||||
import { kubernetesClusterTranslationRef as _kubernetesClusterTranslationRef } from './translation';
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Import from `@backstage/plugin-kubernetes-cluster` instead.
|
||||
*/
|
||||
export const kubernetesClusterTranslationRef = _kubernetesClusterTranslationRef;
|
||||
|
||||
@@ -25,3 +25,4 @@ export {
|
||||
type EntityKubernetesClusterContentProps,
|
||||
} from './plugin';
|
||||
export { Router, isKubernetesClusterAvailable } from './Router';
|
||||
export { kubernetesClusterTranslationRef } from './translation';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
import { createTranslationRef } from '@backstage/core-plugin-api/alpha';
|
||||
|
||||
/** @alpha */
|
||||
/** @public */
|
||||
export const kubernetesClusterTranslationRef = createTranslationRef({
|
||||
id: 'kubernetes-cluster',
|
||||
messages: {
|
||||
|
||||
Reference in New Issue
Block a user