@backstage/frontend-app-api 0.6.4-next.1 → 0.6.4
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 +19 -0
- package/dist/index.esm.js +5 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @backstage/frontend-app-api
|
|
2
2
|
|
|
3
|
+
## 0.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 83f24f6: add `@backstage/no-top-level-material-ui-4-imports` lint rule
|
|
8
|
+
- c884b9a: The app is now aware of if it is being served from the `app-backend` with a separate public and protected bundles. When in protected mode the app will now continuously refresh the session cookie, as well as clear the cookie if the user signs out.
|
|
9
|
+
- 7ef7cc8: Fix duplicated subpath on routes resolved by the `useRouteRef` hook.
|
|
10
|
+
- abfbcfc: Updated dependency `@testing-library/react` to `^15.0.0`.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/core-components@0.14.4
|
|
13
|
+
- @backstage/core-app-api@1.12.4
|
|
14
|
+
- @backstage/core-plugin-api@1.9.2
|
|
15
|
+
- @backstage/frontend-plugin-api@0.6.4
|
|
16
|
+
- @backstage/theme@0.5.3
|
|
17
|
+
- @backstage/version-bridge@1.0.8
|
|
18
|
+
- @backstage/config@1.2.0
|
|
19
|
+
- @backstage/errors@1.2.4
|
|
20
|
+
- @backstage/types@1.1.1
|
|
21
|
+
|
|
3
22
|
## 0.6.4-next.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,8 @@ import { ConfigReader } from '@backstage/config';
|
|
|
3
3
|
import { createExtension, createExtensionInput, createApiExtension, createThemeExtension, createComponentExtension, createTranslationExtension, coreExtensionData, ExtensionBoundary, useComponentRef, coreComponentRefs, createNavItemExtension, createNavLogoExtension, useRouteRef, createAppRootElementExtension, createSchemaFromZod, AnalyticsContext, useAnalytics, createRouterExtension, createSignInPageExtension, createAppRootWrapperExtension, appTreeApiRef, routeResolutionApiRef, componentsApiRef, iconsApiRef } from '@backstage/frontend-plugin-api';
|
|
4
4
|
import { useRoutes, BrowserRouter, useInRouterContext, MemoryRouter, matchRoutes, generatePath, useLocation } from 'react-router-dom';
|
|
5
5
|
import { SidebarPage, sidebarConfig, Sidebar, SidebarDivider, useSidebarOpenState, Link, SidebarItem, Progress, ErrorPage, ErrorPanel, OAuthRequestDialog, AlertDisplay } from '@backstage/core-components';
|
|
6
|
-
import { makeStyles
|
|
6
|
+
import { makeStyles as makeStyles$1 } from '@material-ui/core/styles';
|
|
7
|
+
import { makeStyles } from '@material-ui/core';
|
|
7
8
|
import { useApi, appThemeApiRef, FeatureFlagState, createApiFactory, discoveryApiRef, configApiRef, alertApiRef, analyticsApiRef, errorApiRef, storageApiRef, fetchApiRef, identityApiRef, oauthRequestApiRef, googleAuthApiRef, microsoftAuthApiRef, githubAuthApiRef, oktaAuthApiRef, gitlabAuthApiRef, oneloginAuthApiRef, bitbucketAuthApiRef, bitbucketServerAuthApiRef, atlassianAuthApiRef, vmwareCloudAuthApiRef, featureFlagsApiRef } from '@backstage/core-plugin-api';
|
|
8
9
|
import { UrlPatternDiscovery, AlertApiForwarder, NoOpAnalyticsApi, ErrorAlerter, ErrorApiForwarder, UnhandledErrorForwarder, WebStorage, createFetchApi, FetchMiddlewares, OAuthRequestManager, GoogleAuth, MicrosoftAuth, GithubAuth, OktaAuth, GitlabAuth, OneLoginAuth, BitbucketAuth, BitbucketServerAuth, AtlassianAuth, VMwareCloudAuth, ApiFactoryRegistry, AppThemeSelector, ApiResolver, ApiProvider } from '@backstage/core-app-api';
|
|
9
10
|
import useObservable from 'react-use/esm/useObservable';
|
|
@@ -195,7 +196,7 @@ const LogoFull = () => {
|
|
|
195
196
|
);
|
|
196
197
|
};
|
|
197
198
|
|
|
198
|
-
const useSidebarLogoStyles = makeStyles({
|
|
199
|
+
const useSidebarLogoStyles = makeStyles$1({
|
|
199
200
|
root: {
|
|
200
201
|
width: sidebarConfig.drawerWidthClosed,
|
|
201
202
|
height: 3 * sidebarConfig.logoHeight,
|
|
@@ -1823,7 +1824,7 @@ class RouteResolver {
|
|
|
1823
1824
|
return void 0;
|
|
1824
1825
|
}
|
|
1825
1826
|
const relativeSourceLocation = this.trimPath((_a = options == null ? void 0 : options.sourcePath) != null ? _a : "");
|
|
1826
|
-
const basePath =
|
|
1827
|
+
const basePath = resolveBasePath(
|
|
1827
1828
|
targetRef,
|
|
1828
1829
|
relativeSourceLocation,
|
|
1829
1830
|
this.routePaths,
|
|
@@ -2506,7 +2507,7 @@ const DefaultErrorBoundaryComponent = createComponentExtension({
|
|
|
2506
2507
|
sync: () => (props) => {
|
|
2507
2508
|
const { plugin, error, resetError } = props;
|
|
2508
2509
|
const title = `Error in ${plugin == null ? void 0 : plugin.id}`;
|
|
2509
|
-
return /* @__PURE__ */ React.createElement(ErrorPanel, { title, error, defaultExpanded: true }, /* @__PURE__ */ React.createElement(Button
|
|
2510
|
+
return /* @__PURE__ */ React.createElement(ErrorPanel, { title, error, defaultExpanded: true }, /* @__PURE__ */ React.createElement(Button, { variant: "outlined", onClick: resetError }, "Retry"));
|
|
2510
2511
|
}
|
|
2511
2512
|
}
|
|
2512
2513
|
});
|