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:
@@ -240,7 +240,7 @@ const _default: OverridableFrontendPlugin<
|
||||
>;
|
||||
export default _default;
|
||||
|
||||
// @alpha (undocumented)
|
||||
// @public @deprecated (undocumented)
|
||||
export const kubernetesTranslationRef: TranslationRef<
|
||||
'kubernetes',
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@ import { BackstagePlugin } from '@backstage/core-plugin-api';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
||||
import { RouteRef } from '@backstage/core-plugin-api';
|
||||
import { TranslationRef } from '@backstage/frontend-plugin-api';
|
||||
|
||||
// Warning: (ae-missing-release-tag) "EntityKubernetesContent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
@@ -37,6 +38,19 @@ const kubernetesPlugin: BackstagePlugin<
|
||||
export { kubernetesPlugin };
|
||||
export { kubernetesPlugin as plugin };
|
||||
|
||||
// @public (undocumented)
|
||||
export const kubernetesTranslationRef: TranslationRef<
|
||||
'kubernetes',
|
||||
{
|
||||
readonly 'entityContent.title': 'Kubernetes';
|
||||
readonly 'kubernetesContentPage.title': 'Your Clusters';
|
||||
readonly 'kubernetesContentPage.emptyState.title': 'No Kubernetes resources';
|
||||
readonly 'kubernetesContentPage.emptyState.description': 'No resources on any known clusters for {{entityName}}';
|
||||
readonly 'kubernetesContentPage.permissionAlert.message': "To view Kubernetes objects, contact your portal administrator to give you the 'kubernetes.clusters.read' and 'kubernetes.resources.read' permission.";
|
||||
readonly 'kubernetesContentPage.permissionAlert.title': 'Permission required';
|
||||
}
|
||||
>;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "Router" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
|
||||
@@ -13,5 +13,11 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export { kubernetesTranslationRef } from './translation';
|
||||
import { kubernetesTranslationRef as _kubernetesTranslationRef } from './translation';
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Import from `@backstage/plugin-kubernetes` instead.
|
||||
*/
|
||||
export const kubernetesTranslationRef = _kubernetesTranslationRef;
|
||||
export { default } from './plugin';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
import { createTranslationRef } from '@backstage/core-plugin-api/alpha';
|
||||
|
||||
/** @alpha */
|
||||
/** @public */
|
||||
export const kubernetesTranslationRef = createTranslationRef({
|
||||
id: 'kubernetes',
|
||||
messages: {
|
||||
|
||||
@@ -29,3 +29,4 @@ export type { EntityKubernetesContentProps } from './plugin';
|
||||
export { Router, isKubernetesAvailable } from './Router';
|
||||
// TODO remove this re-export as a breaking change after a couple of releases
|
||||
export * from '@backstage/plugin-kubernetes-react';
|
||||
export { kubernetesTranslationRef } from './alpha/translation';
|
||||
|
||||
Reference in New Issue
Block a user