@backstage/core-app-api 1.8.0 → 1.8.1-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/config.d.ts +2 -2
- package/dist/index.d.ts +16 -24
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @backstage/core-app-api
|
|
2
2
|
|
|
3
|
+
## 1.8.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 74b216ee4e50: Add `PropsWithChildren` to usages of `ComponentType`, in preparation for React 18 where the children are no longer implicit.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/core-plugin-api@1.5.2-next.0
|
|
10
|
+
- @backstage/config@1.0.7
|
|
11
|
+
- @backstage/types@1.0.2
|
|
12
|
+
- @backstage/version-bridge@1.0.4
|
|
13
|
+
|
|
3
14
|
## 1.8.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/config.d.ts
CHANGED
|
@@ -117,8 +117,8 @@ export interface Config {
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
|
|
121
|
-
*
|
|
120
|
+
* Enable redirect authentication flow type, instead of a popup for authentication.
|
|
121
|
+
* @defaultValue false
|
|
122
122
|
* @visibility frontend
|
|
123
123
|
*/
|
|
124
124
|
enableExperimentalRedirectFlow?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -661,45 +661,45 @@ declare function AppRouter(props: AppRouterProps): JSX.Element;
|
|
|
661
661
|
*
|
|
662
662
|
* @public
|
|
663
663
|
*/
|
|
664
|
-
type BootErrorPageProps = {
|
|
664
|
+
type BootErrorPageProps = PropsWithChildren<{
|
|
665
665
|
step: 'load-config' | 'load-chunk';
|
|
666
666
|
error: Error;
|
|
667
|
-
}
|
|
667
|
+
}>;
|
|
668
668
|
/**
|
|
669
669
|
* Props for the `SignInPage` component of {@link AppComponents}.
|
|
670
670
|
*
|
|
671
671
|
* @public
|
|
672
672
|
*/
|
|
673
|
-
type SignInPageProps = {
|
|
673
|
+
type SignInPageProps = PropsWithChildren<{
|
|
674
674
|
/**
|
|
675
675
|
* Set the IdentityApi on successful sign-in. This should only be called once.
|
|
676
676
|
*/
|
|
677
677
|
onSignInSuccess(identityApi: IdentityApi): void;
|
|
678
|
-
}
|
|
678
|
+
}>;
|
|
679
679
|
/**
|
|
680
680
|
* Props for the fallback error boundary.
|
|
681
681
|
*
|
|
682
682
|
* @public
|
|
683
683
|
*/
|
|
684
|
-
type ErrorBoundaryFallbackProps = {
|
|
684
|
+
type ErrorBoundaryFallbackProps = PropsWithChildren<{
|
|
685
685
|
plugin?: BackstagePlugin;
|
|
686
686
|
error: Error;
|
|
687
687
|
resetError: () => void;
|
|
688
|
-
}
|
|
688
|
+
}>;
|
|
689
689
|
/**
|
|
690
690
|
* A set of replaceable core components that are part of every Backstage app.
|
|
691
691
|
*
|
|
692
692
|
* @public
|
|
693
693
|
*/
|
|
694
694
|
type AppComponents = {
|
|
695
|
-
NotFoundErrorPage: ComponentType<{}
|
|
695
|
+
NotFoundErrorPage: ComponentType<PropsWithChildren<{}>>;
|
|
696
696
|
BootErrorPage: ComponentType<BootErrorPageProps>;
|
|
697
|
-
Progress: ComponentType<{}
|
|
698
|
-
Router: ComponentType<{
|
|
697
|
+
Progress: ComponentType<PropsWithChildren<{}>>;
|
|
698
|
+
Router: ComponentType<PropsWithChildren<{
|
|
699
699
|
basename?: string;
|
|
700
|
-
}
|
|
700
|
+
}>>;
|
|
701
701
|
ErrorBoundaryFallback: ComponentType<ErrorBoundaryFallbackProps>;
|
|
702
|
-
ThemeProvider?: ComponentType<{}
|
|
702
|
+
ThemeProvider?: ComponentType<PropsWithChildren<{}>>;
|
|
703
703
|
/**
|
|
704
704
|
* An optional sign-in page that will be rendered instead of the AppRouter at startup.
|
|
705
705
|
*
|
|
@@ -841,21 +841,13 @@ type AppOptions = {
|
|
|
841
841
|
* title: 'Light Theme',
|
|
842
842
|
* variant: 'light',
|
|
843
843
|
* icon: <LightIcon />,
|
|
844
|
-
* Provider: ({ children }) =>
|
|
845
|
-
* <ThemeProvider theme={lightTheme}>
|
|
846
|
-
* <CssBaseline>{children}</CssBaseline>
|
|
847
|
-
* </ThemeProvider>
|
|
848
|
-
* ),
|
|
844
|
+
* Provider: ({ children }) => <UnifiedThemeProvider theme={themes.light} />,
|
|
849
845
|
* }, {
|
|
850
846
|
* id: 'dark',
|
|
851
847
|
* title: 'Dark Theme',
|
|
852
848
|
* variant: 'dark',
|
|
853
849
|
* icon: <DarkIcon />,
|
|
854
|
-
* Provider: ({ children }) =>
|
|
855
|
-
* <ThemeProvider theme={darkTheme}>
|
|
856
|
-
* <CssBaseline>{children}</CssBaseline>
|
|
857
|
-
* </ThemeProvider>
|
|
858
|
-
* ),
|
|
850
|
+
* Provider: ({ children }) => <UnifiedThemeProvider theme={themes.dark} />,
|
|
859
851
|
* }]
|
|
860
852
|
* ```
|
|
861
853
|
*/
|
|
@@ -929,21 +921,21 @@ type BackstageApp = {
|
|
|
929
921
|
* );
|
|
930
922
|
* ```
|
|
931
923
|
*/
|
|
932
|
-
createRoot(element: JSX.Element): ComponentType<{}
|
|
924
|
+
createRoot(element: JSX.Element): ComponentType<PropsWithChildren<{}>>;
|
|
933
925
|
/**
|
|
934
926
|
* Provider component that should wrap the Router created with getRouter()
|
|
935
927
|
* and any other components that need to be within the app context.
|
|
936
928
|
*
|
|
937
929
|
* @deprecated Use {@link BackstageApp.createRoot} instead.
|
|
938
930
|
*/
|
|
939
|
-
getProvider(): ComponentType<{}
|
|
931
|
+
getProvider(): ComponentType<PropsWithChildren<{}>>;
|
|
940
932
|
/**
|
|
941
933
|
* Router component that should wrap the App Routes create with getRoutes()
|
|
942
934
|
* and any other components that should only be available while signed in.
|
|
943
935
|
*
|
|
944
936
|
* @deprecated Import and use the {@link AppRouter} component from `@backstage/core-app-api` instead
|
|
945
937
|
*/
|
|
946
|
-
getRouter(): ComponentType<{}
|
|
938
|
+
getRouter(): ComponentType<PropsWithChildren<{}>>;
|
|
947
939
|
};
|
|
948
940
|
/**
|
|
949
941
|
* The central context providing runtime app specific state that plugin views
|