frontend-plugin-api: copy SignInPageProps
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -14,10 +14,27 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ComponentType, lazy } from 'react';
|
||||
import { ComponentType, lazy, ReactNode } from 'react';
|
||||
import { createExtensionBlueprint, createExtensionDataRef } from '../wiring';
|
||||
import { SignInPageProps } from '@backstage/core-plugin-api';
|
||||
import { ExtensionBoundary } from '../components';
|
||||
import { IdentityApi } from '../apis';
|
||||
|
||||
/**
|
||||
* Props for the `SignInPage` component.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type SignInPageProps = {
|
||||
/**
|
||||
* Set the IdentityApi on successful sign-in. This should only be called once.
|
||||
*/
|
||||
onSignInSuccess(identityApi: IdentityApi): void;
|
||||
|
||||
/**
|
||||
* The children to render.
|
||||
*/
|
||||
children?: ReactNode;
|
||||
};
|
||||
|
||||
const componentDataRef = createExtensionDataRef<
|
||||
ComponentType<SignInPageProps>
|
||||
|
||||
@@ -30,7 +30,10 @@ export {
|
||||
export { NavItemBlueprint } from './NavItemBlueprint';
|
||||
export { PageBlueprint } from './PageBlueprint';
|
||||
export { RouterBlueprint } from './RouterBlueprint';
|
||||
export { SignInPageBlueprint } from './SignInPageBlueprint';
|
||||
export {
|
||||
type SignInPageProps,
|
||||
SignInPageBlueprint,
|
||||
} from './SignInPageBlueprint';
|
||||
export { ThemeBlueprint } from './ThemeBlueprint';
|
||||
export { TranslationBlueprint } from './TranslationBlueprint';
|
||||
export { SwappableComponentBlueprint } from './SwappableComponentBlueprint';
|
||||
|
||||
Reference in New Issue
Block a user