-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf372db
commit 208b9a4
Showing
4 changed files
with
106 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
# [18.0.0-beta.5](https://github.com/SchweizerischeBundesbahnen/scion-workbench/compare/18.0.0-beta.4...18.0.0-beta.5) (2024-09-02) | ||
# [18.0.0-beta.6](https://github.com/SchweizerischeBundesbahnen/scion-workbench/compare/18.0.0-beta.5...18.0.0-beta.6) (2024-09-11) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **workbench/perspective:** support browser back navigation after switching perspective ([5777728](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/57777288c740be813bdaec3f913fedc512ffa4c6)), closes [#579](https://github.com/SchweizerischeBundesbahnen/scion-workbench/issues/579) | ||
* **workbench/messagebox:** display message if opened from a `CanClose` guard of a microfrontend view ([b0829b3](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/b0829b31bd78e672ee90e37abc9ad735e46e9bd2)), closes [#591](https://github.com/SchweizerischeBundesbahnen/scion-workbench/issues/591) | ||
* **workbench/view:** restore scroll position when switching views ([9265951](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/92659517c830e36d4d819743cac4f24229e92486)), closes [#588](https://github.com/SchweizerischeBundesbahnen/scion-workbench/issues/588) | ||
* **workbench:** disable change detection during navigation to prevent inconsistent layout rendering ([68ecca7](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/68ecca76b421e23ff8fffcd3cf0b5ca573b4a852)) | ||
|
||
|
||
### Features | ||
|
||
* **workbench/popup:** support returning result on focus loss ([ce5089e](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/ce5089e57ba48f53f17fede4ffe4fa72cf74a01b)) | ||
* **workbench/view:** enable translation of built-in context menu ([9bfdf74](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/9bfdf7497ab8557b060e88cdb2bb87b7de5a5e10)) | ||
|
||
|
||
### BREAKING CHANGES | ||
|
||
* **workbench/perspective:** The active perspective is now set after navigation completes (previously before navigation), so it is unavailable during route resolution/activation. Route guards (like `canMatch`) should use the `canMatchWorkbenchPerspective` function instead of `WorkbenchService` or `WorkbenchPerspective` to determine the perspective’s activation state. | ||
|
||
**Migration Example:** | ||
|
||
**Before:** | ||
```ts | ||
import {Route} from '@angular/router'; | ||
import {inject} from '@angular/core'; | ||
import {WorkbenchService} from '@scion/workbench'; | ||
|
||
const route: Route = { | ||
canMatch: [() => inject(WorkbenchService).activePerspective()?.id === 'perspective'], | ||
// or | ||
canMatch: [() => inject(WorkbenchService).perspectives().find(perspective => perspective.id === 'perspective')?.active()], | ||
}; | ||
``` | ||
|
||
**After:** | ||
```ts | ||
import {Route} from '@angular/router'; | ||
import {canMatchWorkbenchPerspective} from '@scion/workbench'; | ||
|
||
const route: Route = { | ||
canMatch: [canMatchWorkbenchPerspective('perspective')], | ||
}; | ||
``` | ||
* **workbench/popup:** The method `closeWithError` has been removed from the `Popup` handle. Instead, pass an `Error` object to the `close` method. | ||
|
||
**Before migration:** | ||
```ts | ||
import {inject} from '@angular/core'; | ||
import {Popup} from '@scion/workbench'; | ||
|
||
inject(Popup).closeWithError('some error'); | ||
``` | ||
|
||
**After migration:** | ||
```ts | ||
import {inject} from '@angular/core'; | ||
import {Popup} from '@scion/workbench'; | ||
|
||
inject(Popup).close(new Error('some error')); | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters