Skip to content

Commit

Permalink
release(workbench): v18.0.0-beta.6
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwiehl authored and Marcarrian committed Sep 11, 2024
1 parent bf372db commit 208b9a4
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 30 deletions.
38 changes: 38 additions & 0 deletions CHANGELOG_WORKBENCH.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
# [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/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/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'));
```



# [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)


Expand Down
56 changes: 28 additions & 28 deletions CHANGELOG_WORKBENCH_LATEST.md
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'));
```



38 changes: 38 additions & 0 deletions docs/site/changelog-workbench/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,44 @@
## [Changelog][menu-changelog] > Workbench (@scion/workbench)


# [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/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/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'));
```



# [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)


Expand Down
4 changes: 2 additions & 2 deletions projects/scion/workbench/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scion/workbench",
"version": "18.0.0-beta.5",
"version": "18.0.0-beta.6",
"description": "SCION Workbench enables the creation of Angular web applications that require a flexible layout to arrange content side-by-side or stacked, all personalizable by the user via drag & drop.",
"license": "EPL-2.0",
"private": false,
Expand Down Expand Up @@ -32,7 +32,7 @@
"@scion/components": "^18.0.0",
"@scion/toolkit": "^1.4.0",
"@scion/microfrontend-platform": "^1.3.0",
"@scion/workbench-client": "^1.0.0-beta.24",
"@scion/workbench-client": "^1.0.0-beta.26",
"rxjs": "^7.8.0"
},
"peerDependenciesMeta": {
Expand Down

0 comments on commit 208b9a4

Please sign in to comment.