From 5a1c6a35f5d8ffcc946ddb34beb2a9cd2e1cae88 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 12 Sep 2023 17:57:30 +0200 Subject: [PATCH] core-app-api: stop exporting AppTranslationApi implementation Signed-off-by: Patrik Oldsberg --- packages/core-app-api/alpha-api-report.md | 36 ----------------------- packages/core-app-api/package.json | 4 --- packages/core-app-api/src/alpha.ts | 16 ---------- 3 files changed, 56 deletions(-) delete mode 100644 packages/core-app-api/alpha-api-report.md delete mode 100644 packages/core-app-api/src/alpha.ts diff --git a/packages/core-app-api/alpha-api-report.md b/packages/core-app-api/alpha-api-report.md deleted file mode 100644 index 9b6ffea91e..0000000000 --- a/packages/core-app-api/alpha-api-report.md +++ /dev/null @@ -1,36 +0,0 @@ -## API Report File for "@backstage/core-app-api" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts -import { AppTranslationApi } from '@backstage/core-plugin-api/alpha'; -import { i18n } from 'i18next'; -import { TranslationMessages } from '@backstage/core-plugin-api/alpha'; -import { TranslationRef } from '@backstage/core-plugin-api/alpha'; -import { TranslationResource } from '@backstage/core-plugin-api/alpha'; - -// @alpha (undocumented) -export class AppTranslationApiImpl implements AppTranslationApi { - // (undocumented) - addLazyResources(resource: TranslationResource): void; - // (undocumented) - addMessages(messages: TranslationMessages): void; - // (undocumented) - addResource(translationRef: TranslationRef): void; - // (undocumented) - static create(options?: ExperimentalI18n): AppTranslationApiImpl; - // (undocumented) - getI18n(): i18n; - // (undocumented) - initMessages(options?: ExperimentalI18n): void; -} - -// @alpha (undocumented) -export type ExperimentalI18n = { - fallbackLanguage?: string | string[]; - supportedLanguages?: string[]; - resources?: Array; -}; - -// (No @packageDocumentation comment for this package) -``` diff --git a/packages/core-app-api/package.json b/packages/core-app-api/package.json index 0509af9bd4..c63f64c1ce 100644 --- a/packages/core-app-api/package.json +++ b/packages/core-app-api/package.json @@ -7,14 +7,10 @@ }, "exports": { ".": "./src/index.ts", - "./alpha": "./src/alpha.ts", "./package.json": "./package.json" }, "typesVersions": { "*": { - "alpha": [ - "src/alpha.ts" - ], "package.json": [ "package.json" ] diff --git a/packages/core-app-api/src/alpha.ts b/packages/core-app-api/src/alpha.ts deleted file mode 100644 index 41037a539c..0000000000 --- a/packages/core-app-api/src/alpha.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright 2023 The Backstage Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export * from './apis/implementations/AppTranslationApi';