@@ -1,15 +1,9 @@
|
||||
---
|
||||
'@backstage/core-components': patch
|
||||
'@backstage/plugin-stack-overflow': patch
|
||||
'@backstage/plugin-catalog-react': patch
|
||||
'@backstage/plugin-search-react': patch
|
||||
'@backstage/plugin-api-docs': patch
|
||||
'@backstage/plugin-techdocs': patch
|
||||
'@backstage/plugin-catalog': patch
|
||||
'@backstage/plugin-search': patch
|
||||
'@backstage/plugin-fossa': patch
|
||||
'@backstage/plugin-home': patch
|
||||
'@backstage/plugin-org': patch
|
||||
'@backstage/core-app-api': patch
|
||||
'@backstage/core-plugin-api': patch
|
||||
'@backstage/dev-utils': patch
|
||||
'@backstage/plugin-scaffolder-react': patch
|
||||
'@backstage/plugin-scaffolder': patch
|
||||
---
|
||||
|
||||
Components with empty default props now explicitly declare PropsWithChildren as type
|
||||
Add `PropsWithChildren` to usages of `ComponentType`, in preparation for React 18 where the children are no longer implicit.
|
||||
|
||||
@@ -148,9 +148,11 @@ export type AppComponents = {
|
||||
NotFoundErrorPage: ComponentType<PropsWithChildren<{}>>;
|
||||
BootErrorPage: ComponentType<BootErrorPageProps>;
|
||||
Progress: ComponentType<PropsWithChildren<{}>>;
|
||||
Router: ComponentType<{
|
||||
basename?: string;
|
||||
}>;
|
||||
Router: ComponentType<
|
||||
PropsWithChildren<{
|
||||
basename?: string;
|
||||
}>
|
||||
>;
|
||||
ErrorBoundaryFallback: ComponentType<ErrorBoundaryFallbackProps>;
|
||||
ThemeProvider?: ComponentType<PropsWithChildren<{}>>;
|
||||
SignInPage?: ComponentType<SignInPageProps>;
|
||||
@@ -316,10 +318,10 @@ export type BitbucketSession = {
|
||||
};
|
||||
|
||||
// @public
|
||||
export type BootErrorPageProps = {
|
||||
export type BootErrorPageProps = PropsWithChildren<{
|
||||
step: 'load-config' | 'load-chunk';
|
||||
error: Error;
|
||||
};
|
||||
}>;
|
||||
|
||||
export { ConfigReader };
|
||||
|
||||
@@ -359,11 +361,11 @@ export class ErrorApiForwarder implements ErrorApi {
|
||||
}
|
||||
|
||||
// @public
|
||||
export type ErrorBoundaryFallbackProps = {
|
||||
export type ErrorBoundaryFallbackProps = PropsWithChildren<{
|
||||
plugin?: BackstagePlugin;
|
||||
error: Error;
|
||||
resetError: () => void;
|
||||
};
|
||||
}>;
|
||||
|
||||
// @public
|
||||
export const FeatureFlagged: (props: FeatureFlaggedProps) => JSX.Element;
|
||||
@@ -596,9 +598,9 @@ export class SamlAuth
|
||||
}
|
||||
|
||||
// @public
|
||||
export type SignInPageProps = {
|
||||
export type SignInPageProps = PropsWithChildren<{
|
||||
onSignInSuccess(identityApi: IdentityApi): void;
|
||||
};
|
||||
}>;
|
||||
|
||||
// @public
|
||||
export class UnhandledErrorForwarder {
|
||||
|
||||
@@ -33,33 +33,33 @@ import { AppConfig } from '@backstage/config';
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type BootErrorPageProps = {
|
||||
export type BootErrorPageProps = PropsWithChildren<{
|
||||
step: 'load-config' | 'load-chunk';
|
||||
error: Error;
|
||||
};
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Props for the `SignInPage` component of {@link AppComponents}.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type SignInPageProps = {
|
||||
export type SignInPageProps = PropsWithChildren<{
|
||||
/**
|
||||
* Set the IdentityApi on successful sign-in. This should only be called once.
|
||||
*/
|
||||
onSignInSuccess(identityApi: IdentityApi): void;
|
||||
};
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Props for the fallback error boundary.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type ErrorBoundaryFallbackProps = {
|
||||
export type ErrorBoundaryFallbackProps = PropsWithChildren<{
|
||||
plugin?: BackstagePlugin;
|
||||
error: Error;
|
||||
resetError: () => void;
|
||||
};
|
||||
}>;
|
||||
|
||||
/**
|
||||
* A set of replaceable core components that are part of every Backstage app.
|
||||
@@ -70,7 +70,7 @@ export type AppComponents = {
|
||||
NotFoundErrorPage: ComponentType<PropsWithChildren<{}>>;
|
||||
BootErrorPage: ComponentType<BootErrorPageProps>;
|
||||
Progress: ComponentType<PropsWithChildren<{}>>;
|
||||
Router: ComponentType<{ basename?: string }>;
|
||||
Router: ComponentType<PropsWithChildren<{ basename?: string }>>;
|
||||
ErrorBoundaryFallback: ComponentType<ErrorBoundaryFallbackProps>;
|
||||
ThemeProvider?: ComponentType<PropsWithChildren<{}>>;
|
||||
|
||||
|
||||
@@ -141,9 +141,11 @@ export type AppComponents = {
|
||||
NotFoundErrorPage: ComponentType<PropsWithChildren<{}>>;
|
||||
BootErrorPage: ComponentType<BootErrorPageProps>;
|
||||
Progress: ComponentType<PropsWithChildren<{}>>;
|
||||
Router: ComponentType<{
|
||||
basename?: string;
|
||||
}>;
|
||||
Router: ComponentType<
|
||||
PropsWithChildren<{
|
||||
basename?: string;
|
||||
}>
|
||||
>;
|
||||
ErrorBoundaryFallback: ComponentType<ErrorBoundaryFallbackProps>;
|
||||
ThemeProvider?: ComponentType<PropsWithChildren<{}>>;
|
||||
SignInPage?: ComponentType<SignInPageProps>;
|
||||
@@ -248,10 +250,10 @@ export const bitbucketServerAuthApiRef: ApiRef<
|
||||
>;
|
||||
|
||||
// @public
|
||||
export type BootErrorPageProps = {
|
||||
export type BootErrorPageProps = PropsWithChildren<{
|
||||
step: 'load-config' | 'load-chunk';
|
||||
error: Error;
|
||||
};
|
||||
}>;
|
||||
|
||||
// @public
|
||||
export type CommonAnalyticsContext = {
|
||||
@@ -406,11 +408,11 @@ export type ErrorApiErrorContext = {
|
||||
export const errorApiRef: ApiRef<ErrorApi>;
|
||||
|
||||
// @public
|
||||
export type ErrorBoundaryFallbackProps = {
|
||||
export type ErrorBoundaryFallbackProps = PropsWithChildren<{
|
||||
plugin?: BackstagePlugin_2;
|
||||
error: Error;
|
||||
resetError: () => void;
|
||||
};
|
||||
}>;
|
||||
|
||||
// @public
|
||||
export type Extension<T> = {
|
||||
@@ -691,9 +693,9 @@ export enum SessionState {
|
||||
}
|
||||
|
||||
// @public
|
||||
export type SignInPageProps = {
|
||||
export type SignInPageProps = PropsWithChildren<{
|
||||
onSignInSuccess(identityApi: IdentityApi_2): void;
|
||||
};
|
||||
}>;
|
||||
|
||||
// @public
|
||||
export interface StorageApi {
|
||||
|
||||
Reference in New Issue
Block a user