core-compat-api: export new legacy converts + update API report

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-08-16 14:36:57 +02:00
parent 3f734557ac
commit 448d62ae88
2 changed files with 23 additions and 0 deletions
+21
View File
@@ -8,6 +8,10 @@ import { AnalyticsApi as AnalyticsApi_2 } from '@backstage/frontend-plugin-api';
import { AnalyticsEvent } from '@backstage/core-plugin-api';
import { AnalyticsEvent as AnalyticsEvent_2 } from '@backstage/frontend-plugin-api';
import { AnyRouteRefParams } from '@backstage/core-plugin-api';
import { BackstagePlugin } from '@backstage/core-plugin-api';
import { BackstagePlugin as BackstagePlugin_2 } from '@backstage/frontend-plugin-api';
import { ComponentType } from 'react';
import { ExtensionDefinition } from '@backstage/frontend-plugin-api';
import { ExternalRouteRef } from '@backstage/core-plugin-api';
import { ExternalRouteRef as ExternalRouteRef_2 } from '@backstage/frontend-plugin-api';
import { FrontendFeature } from '@backstage/frontend-plugin-api';
@@ -26,6 +30,23 @@ export function convertLegacyApp(
rootElement: React_2.JSX.Element,
): FrontendFeature[];
// @public (undocumented)
export function convertLegacyPageExtension(
LegacyExtension: ComponentType<{}>,
overrides?: {
name?: string;
defaultPath?: string;
},
): ExtensionDefinition<any>;
// @public (undocumented)
export function convertLegacyPlugin(
legacyPlugin: BackstagePlugin,
options: {
extensions: ExtensionDefinition<any, any>[];
},
): BackstagePlugin_2;
// @public
export function convertLegacyRouteRef<TParams extends AnyRouteRefParams>(
ref: RouteRef<TParams>,
+2
View File
@@ -18,6 +18,8 @@ export * from './compatWrapper';
export * from './apis';
export { convertLegacyApp } from './convertLegacyApp';
export { convertLegacyPlugin } from './convertLegacyPlugin';
export { convertLegacyPageExtension } from './convertLegacyPageExtension';
export {
convertLegacyRouteRef,
convertLegacyRouteRefs,