Merge pull request #30703 from backstage/rugvip/element

frontend-plugin-api: AppRootElementBlueprint now only accepts an element
This commit is contained in:
Patrik Oldsberg
2025-08-04 16:57:29 +02:00
committed by GitHub
10 changed files with 27 additions and 11 deletions
+3 -3
View File
@@ -812,7 +812,7 @@ const appPlugin: FrontendPlugin<
kind: 'app-root-element';
name: 'alert-display';
params: {
element: JSX.Element | (() => JSX.Element);
element: JSX.Element;
};
}>;
'app-root-element:app/dialog-display': ExtensionDefinition<{
@@ -835,7 +835,7 @@ const appPlugin: FrontendPlugin<
kind: 'app-root-element';
name: 'dialog-display';
params: {
element: JSX.Element | (() => JSX.Element);
element: JSX.Element;
};
}>;
'app-root-element:app/oauth-request-dialog': ExtensionDefinition<{
@@ -850,7 +850,7 @@ const appPlugin: FrontendPlugin<
>;
inputs: {};
params: {
element: JSX.Element | (() => JSX.Element);
element: JSX.Element;
};
}>;
'sign-in-page:app': ExtensionDefinition<{
+1 -1
View File
@@ -41,7 +41,7 @@ export const alertDisplayAppRootElement =
},
factory: (originalFactory, { config }) => {
return originalFactory({
element: () => <AlertDisplay {...config} />,
element: <AlertDisplay {...config} />,
});
},
});