@backstage/core-app-api 1.11.0-next.2 → 1.11.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 +20 -0
- package/dist/index.esm.js +4 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @backstage/core-app-api
|
|
2
2
|
|
|
3
|
+
## 1.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c9d9bfeca2: URL encode some well known unsafe characters in `RouteResolver` (and therefore `useRouteRef`)
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 29e4d8b76b: Fixed bug in `AppRouter` to determine the correct `signOutTargetUrl` if `app.baseUrl` contains a `basePath`
|
|
12
|
+
- acca17e91a: Wrap entire app in `<Suspense>`, enabling support for using translations outside plugins.
|
|
13
|
+
- 1a0616fa10: Add missing resource and template app icons
|
|
14
|
+
- 9a1fce352e: Updated dependency `@testing-library/jest-dom` to `^6.0.0`.
|
|
15
|
+
- f95af4e540: Updated dependency `@testing-library/dom` to `^9.0.0`.
|
|
16
|
+
- f1b349cfba: Fixed a bug in `TranslationApi` implementation where in some cases it wouldn't notify subscribers of language changes.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @backstage/core-plugin-api@1.7.0
|
|
19
|
+
- @backstage/version-bridge@1.0.6
|
|
20
|
+
- @backstage/config@1.1.1
|
|
21
|
+
- @backstage/types@1.1.1
|
|
22
|
+
|
|
3
23
|
## 1.11.0-next.2
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
package/dist/index.esm.js
CHANGED
|
@@ -2295,7 +2295,7 @@ function SignInPageWrapper({
|
|
|
2295
2295
|
}) {
|
|
2296
2296
|
const [identityApi, setIdentityApi] = useState();
|
|
2297
2297
|
const configApi = useApi(configApiRef);
|
|
2298
|
-
const basePath =
|
|
2298
|
+
const basePath = readBasePath(configApi);
|
|
2299
2299
|
if (!identityApi) {
|
|
2300
2300
|
return /* @__PURE__ */ React.createElement(Component, { onSignInSuccess: setIdentityApi });
|
|
2301
2301
|
}
|
|
@@ -3500,7 +3500,6 @@ const _I18nextTranslationApi = class _I18nextTranslationApi {
|
|
|
3500
3500
|
__privateMethod(this, _registerDefaults, registerDefaults_fn).call(this, internalRef);
|
|
3501
3501
|
return new ObservableImpl((subscriber) => {
|
|
3502
3502
|
let loadTicket = {};
|
|
3503
|
-
let lastSnapshotWasReady = false;
|
|
3504
3503
|
const loadResource = () => {
|
|
3505
3504
|
loadTicket = {};
|
|
3506
3505
|
const ticket = loadTicket;
|
|
@@ -3508,8 +3507,7 @@ const _I18nextTranslationApi = class _I18nextTranslationApi {
|
|
|
3508
3507
|
() => {
|
|
3509
3508
|
if (ticket === loadTicket) {
|
|
3510
3509
|
const snapshot = __privateMethod(this, _createSnapshot, createSnapshot_fn).call(this, internalRef);
|
|
3511
|
-
if (snapshot.ready
|
|
3512
|
-
lastSnapshotWasReady = snapshot.ready;
|
|
3510
|
+
if (snapshot.ready) {
|
|
3513
3511
|
subscriber.next(snapshot);
|
|
3514
3512
|
}
|
|
3515
3513
|
}
|
|
@@ -3523,11 +3521,9 @@ const _I18nextTranslationApi = class _I18nextTranslationApi {
|
|
|
3523
3521
|
};
|
|
3524
3522
|
const onChange = () => {
|
|
3525
3523
|
const snapshot = __privateMethod(this, _createSnapshot, createSnapshot_fn).call(this, internalRef);
|
|
3526
|
-
if (
|
|
3527
|
-
lastSnapshotWasReady = snapshot.ready;
|
|
3524
|
+
if (snapshot.ready) {
|
|
3528
3525
|
subscriber.next(snapshot);
|
|
3529
|
-
}
|
|
3530
|
-
if (!snapshot.ready) {
|
|
3526
|
+
} else {
|
|
3531
3527
|
loadResource();
|
|
3532
3528
|
}
|
|
3533
3529
|
};
|