@backstage/core-app-api 1.11.0 → 1.11.1

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 CHANGED
@@ -1,5 +1,31 @@
1
1
  # @backstage/core-app-api
2
2
 
3
+ ## 1.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6c2b872153: Add official support for React 18.
8
+ - 89d13e5618: Add current and default scopes when refreshing session
9
+ - 9ab0572217: Add component data `core.type` marker for `AppRouter` and `FlatRoutes`.
10
+ - Updated dependencies
11
+ - @backstage/core-plugin-api@1.8.0
12
+ - @backstage/version-bridge@1.0.7
13
+ - @backstage/config@1.1.1
14
+ - @backstage/types@1.1.1
15
+
16
+ ## 1.11.1-next.0
17
+
18
+ ### Patch Changes
19
+
20
+ - 6c2b872153: Add official support for React 18.
21
+ - 89d13e5618: Add current and default scopes when refreshing session
22
+ - 9ab0572217: Add component data `core.type` marker for `AppRouter` and `FlatRoutes`.
23
+ - Updated dependencies
24
+ - @backstage/core-plugin-api@1.8.0-next.0
25
+ - @backstage/version-bridge@1.0.7-next.0
26
+ - @backstage/config@1.1.1
27
+ - @backstage/types@1.1.1
28
+
3
29
  ## 1.11.0
4
30
 
5
31
  ### Minor Changes
package/dist/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import React, { useContext, createContext, useEffect, useState, Children, isVali
2
2
  import PropTypes from 'prop-types';
3
3
  import { createVersionedContext, createVersionedValueMap, getOrCreateGlobalSingleton } from '@backstage/version-bridge';
4
4
  import ObservableImpl from 'zen-observable';
5
- import { SessionState, FeatureFlagState, AnalyticsContext, useAnalytics, useApp, useApi, configApiRef, getComponentData, attachComponentData, featureFlagsApiRef, appThemeApiRef, identityApiRef, useElementFilter } from '@backstage/core-plugin-api';
5
+ import { SessionState, FeatureFlagState, AnalyticsContext, useAnalytics, attachComponentData, useApp, useApi, configApiRef, getComponentData, featureFlagsApiRef, appThemeApiRef, identityApiRef, useElementFilter } from '@backstage/core-plugin-api';
6
6
  import { z } from 'zod';
7
7
  import { ConfigReader } from '@backstage/config';
8
8
  export { ConfigReader } from '@backstage/config';
@@ -734,7 +734,9 @@ class RefreshingAuthSessionManager {
734
734
  if (this.refreshPromise) {
735
735
  return this.refreshPromise;
736
736
  }
737
- this.refreshPromise = this.connector.refreshSession(scopes);
737
+ this.refreshPromise = this.connector.refreshSession(
738
+ this.helper.getExtendedScope(this.currentSession, scopes)
739
+ );
738
740
  try {
739
741
  const session = await this.refreshPromise;
740
742
  this.stateTracker.setIsSignedIn(true);
@@ -2362,6 +2364,7 @@ function AppRouter(props) {
2362
2364
  props.children
2363
2365
  ));
2364
2366
  }
2367
+ attachComponentData(AppRouter, "core.type", "AppRouter");
2365
2368
 
2366
2369
  function traverseElementTree(options) {
2367
2370
  const collectors = {};
@@ -4020,6 +4023,7 @@ const FlatRoutes = (props) => {
4020
4023
  ];
4021
4024
  return useRoutes(withNotFound);
4022
4025
  };
4026
+ attachComponentData(FlatRoutes, "core.type", "FlatRoutes");
4023
4027
 
4024
4028
  export { AlertApiForwarder, ApiFactoryRegistry, ApiProvider, ApiResolver, AppRouter, AppThemeSelector, AtlassianAuth, BitbucketAuth, BitbucketServerAuth, ErrorAlerter, ErrorApiForwarder, FeatureFlagged, FetchMiddlewares, FlatRoutes, FrontendHostDiscovery, GithubAuth, GitlabAuth, GoogleAuth, LocalStorageFeatureFlags, MicrosoftAuth, MultipleAnalyticsApi, NoOpAnalyticsApi, OAuth2, OAuthRequestManager, OktaAuth, OneLoginAuth, SamlAuth, UnhandledErrorForwarder, UrlPatternDiscovery, WebStorage, createFetchApi, createSpecializedApp, defaultConfigLoader };
4025
4029
  //# sourceMappingURL=index.esm.js.map