@backstage/core-app-api 1.10.0-next.2 → 1.10.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 +31 -0
- package/dist/index.d.ts +11 -21
- package/dist/index.esm.js +480 -66
- package/dist/index.esm.js.map +1 -1
- package/package.json +9 -16
- package/alpha/package.json +0 -7
- package/dist/alpha.d.ts +0 -49
- package/dist/alpha.esm.js +0 -11
- package/dist/alpha.esm.js.map +0 -1
- package/dist/esm/AppTranslationImpl-8560b672.esm.js +0 -132
- package/dist/esm/AppTranslationImpl-8560b672.esm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @backstage/core-app-api
|
|
2
2
|
|
|
3
|
+
## 1.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 18619f793c94: Fixed two bugs in how the `OAuth2Session` type represents the underlying data. The `expiresAt` and `backstageIdentity` are now both optional, since that's what they are in practice. This is not considered a breaking change since it was effectively a bug in the modelling of the state that this type represents, and the type was not used in any other external contract.
|
|
8
|
+
- 18619f793c94: The `OAuth` class which is used by all OAuth providers will now consider both the session expiration of both the Backstage identity as well as the upstream identity provider, and refresh the session with either of them is about to expire.
|
|
9
|
+
- 6e30769cc627: Introduced experimental support for internationalization.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 406b786a2a2c: Mark package as being free of side effects, allowing more optimized Webpack builds.
|
|
14
|
+
- 9fe827b380e1: Internal refactor
|
|
15
|
+
- 8cec7664e146: Removed `@types/node` dependency
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @backstage/config@1.1.0
|
|
18
|
+
- @backstage/core-plugin-api@1.6.0
|
|
19
|
+
- @backstage/types@1.1.1
|
|
20
|
+
- @backstage/version-bridge@1.0.5
|
|
21
|
+
|
|
22
|
+
## 1.10.0-next.3
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- 406b786a2a2c: Mark package as being free of side effects, allowing more optimized Webpack builds.
|
|
27
|
+
- 9fe827b380e1: Internal refactor
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
- @backstage/config@1.1.0-next.2
|
|
30
|
+
- @backstage/core-plugin-api@1.6.0-next.3
|
|
31
|
+
- @backstage/types@1.1.1-next.0
|
|
32
|
+
- @backstage/version-bridge@1.0.5-next.0
|
|
33
|
+
|
|
3
34
|
## 1.10.0-next.2
|
|
4
35
|
|
|
5
36
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import * as _backstage_types from '@backstage/types';
|
|
|
6
6
|
import { Observable, JsonValue } from '@backstage/types';
|
|
7
7
|
import { Config, AppConfig } from '@backstage/config';
|
|
8
8
|
export { ConfigReader } from '@backstage/config';
|
|
9
|
-
import { TranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Prop types for the ApiProvider component.
|
|
@@ -803,13 +802,6 @@ type TargetRouteMap<ExternalRoutes extends {
|
|
|
803
802
|
type AppRouteBinder = <ExternalRoutes extends {
|
|
804
803
|
[name: string]: ExternalRouteRef;
|
|
805
804
|
}>(externalRoutes: ExternalRoutes, targetRoutes: PartialKeys<TargetRouteMap<ExternalRoutes>, KeysWithType<ExternalRoutes, ExternalRouteRef<any, true>>>) => void;
|
|
806
|
-
/**
|
|
807
|
-
* TODO: To be remove when TranslationMessages in packages/core-app-api/src/app/TranslationResource.ts
|
|
808
|
-
* come to be public
|
|
809
|
-
*
|
|
810
|
-
* @ignore
|
|
811
|
-
* */
|
|
812
|
-
type TranslationMessages<T> = T extends TranslationRef<infer R> ? Record<string, Partial<R>> : never;
|
|
813
805
|
/**
|
|
814
806
|
* The options accepted by {@link createSpecializedApp}.
|
|
815
807
|
*
|
|
@@ -908,19 +900,17 @@ type AppOptions = {
|
|
|
908
900
|
bindRoutes?(context: {
|
|
909
901
|
bind: AppRouteBinder;
|
|
910
902
|
}): void;
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
messages: TranslationMessages<TranslationRef>;
|
|
923
|
-
}>>;
|
|
903
|
+
__experimentalTranslations?: {
|
|
904
|
+
defaultLanguage?: string;
|
|
905
|
+
availableLanguages?: string[];
|
|
906
|
+
resources?: Array<{
|
|
907
|
+
$$type: '@backstage/TranslationResource';
|
|
908
|
+
id: string;
|
|
909
|
+
} | {
|
|
910
|
+
$$type: '@backstage/TranslationMessages';
|
|
911
|
+
id: string;
|
|
912
|
+
full: boolean;
|
|
913
|
+
messages: Record<string, string>;
|
|
924
914
|
}>;
|
|
925
915
|
};
|
|
926
916
|
};
|