diff --git a/.changeset/specialized-app-apis.md b/.changeset/specialized-app-apis.md new file mode 100644 index 0000000000..4ffa18457d --- /dev/null +++ b/.changeset/specialized-app-apis.md @@ -0,0 +1,5 @@ +--- +'@backstage/frontend-app-api': patch +--- + +Added `apis` to `BootstrapSpecializedApp` and `FinalizedSpecializedApp` types. diff --git a/.patches/pr-33445.txt b/.patches/pr-33445.txt new file mode 100644 index 0000000000..bc54b3aefe --- /dev/null +++ b/.patches/pr-33445.txt @@ -0,0 +1 @@ +Add `apis` to `BootstrapSpecializedApp` and `FinalizedSpecializedApp` types \ No newline at end of file diff --git a/packages/frontend-app-api/report.api.md b/packages/frontend-app-api/report.api.md index 7795794051..b6b502e2da 100644 --- a/packages/frontend-app-api/report.api.md +++ b/packages/frontend-app-api/report.api.md @@ -167,6 +167,7 @@ export type AppErrorTypes = { // @public export type BootstrapSpecializedApp = { + apis: ApiHolder; element: JSX.Element; tree: AppTree; }; @@ -217,6 +218,7 @@ export type ExtensionFactoryMiddleware = ( // @public export type FinalizedSpecializedApp = { + apis: ApiHolder; element: JSX.Element; sessionState: SpecializedAppSessionState; tree: AppTree; diff --git a/packages/frontend-app-api/src/wiring/prepareSpecializedApp.tsx b/packages/frontend-app-api/src/wiring/prepareSpecializedApp.tsx index 13b5c8e8f0..3a09804a18 100644 --- a/packages/frontend-app-api/src/wiring/prepareSpecializedApp.tsx +++ b/packages/frontend-app-api/src/wiring/prepareSpecializedApp.tsx @@ -121,6 +121,7 @@ type SignInPageProps = { * @public */ export type BootstrapSpecializedApp = { + apis: ApiHolder; element: JSX.Element; tree: AppTree; }; @@ -131,6 +132,7 @@ export type BootstrapSpecializedApp = { * @public */ export type FinalizedSpecializedApp = { + apis: ApiHolder; element: JSX.Element; sessionState: SpecializedAppSessionState; tree: AppTree; @@ -544,7 +546,7 @@ export function prepareSpecializedApp( runtime.requiresSignIn = result.requiresSignIn; signInRuntime = runtime; - bootstrapApp = result.bootstrapApp; + bootstrapApp = { ...result.bootstrapApp, apis: phase.apis }; return bootstrapApp; } @@ -704,6 +706,7 @@ function finalizeFromSessionState(options: { } return { + apis: options.phase.apis, element, sessionState: options.finalizedSessionState, tree: options.tree, @@ -771,6 +774,7 @@ function finalizeFromBootstrapError(options: { } return { + apis: options.phase.apis, element, sessionState: finalizedSessionState, tree: options.tree,