Skip to content

Commit 6ec605b

Browse files
authored
Merge pull request #32 from built-on-openfin/frameworks/v21.0.0
v21 release versions
2 parents a94a088 + 8236d85 commit 6ec605b

File tree

25 files changed

+4265
-11555
lines changed

25 files changed

+4265
-11555
lines changed

frameworks/angular/container/package-lock.json

Lines changed: 349 additions & 2244 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/angular/container/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-container-starter",
3-
"version": "19.2.0",
3+
"version": "21.0.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
@@ -21,8 +21,8 @@
2121
"@angular/platform-browser-dynamic": "^19.0.0",
2222
"@angular/router": "^19.0.0",
2323
"@finos/fdc3": "2.0.3",
24-
"@openfin/core": "38.83.80",
25-
"@openfin/workspace": "19.2.12",
24+
"@openfin/core": "41.102.7",
25+
"@openfin/workspace": "21.0.18",
2626
"rxjs": "~7.8.1",
2727
"tslib": "^2.3.0",
2828
"zone.js": "~0.15.0"
@@ -31,7 +31,7 @@
3131
"@angular-devkit/build-angular": "^19.0.1",
3232
"@angular/cli": "^19.0.1",
3333
"@angular/compiler-cli": "^19.0.0",
34-
"@openfin/node-adapter": "38.83.80",
34+
"@openfin/node-adapter": "41.102.7",
3535
"@types/jasmine": "~5.1.4",
3636
"angular-eslint": "18.3.1",
3737
"eslint": "^9.9.1",

frameworks/angular/container/public/manifest.fin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"runtime": {
33
"arguments": "--v=1 --inspect",
4-
"version": "38.126.83.80"
4+
"version": "41.134.102.6"
55
},
66
"platform": {
77
"uuid": "angular-container-starter",

frameworks/angular/container/src/app/view1/view1.component.ts

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CommonModule } from "@angular/common";
2-
import { ChangeDetectionStrategy, Component } from "@angular/core";
3-
import { create } from "@openfin/workspace/notifications";
2+
import { ChangeDetectionStrategy, Component, type OnInit, signal } from "@angular/core";
3+
import { addEventListener, create, register } from "@openfin/workspace/notifications";
44

55
@Component({
66
selector: "app-view1",
@@ -23,17 +23,39 @@ import { create } from "@openfin/workspace/notifications";
2323
<button (click)="broadcastFDC3ContextAppChannel()">
2424
Broadcast FDC3 Context on App Channel
2525
</button>
26+
<div>{{ notificationActionMessage() }}</div>
2627
</main>
2728
</div>
2829
`,
2930
})
30-
export class View1Component {
31+
export class View1Component implements OnInit {
32+
notificationActionMessage = signal("");
33+
34+
ngOnInit(): void {
35+
register().then(() => {
36+
addEventListener("notification-action", (event) => {
37+
console.log("Notification clicked:", event.result["customData"]);
38+
this.notificationActionMessage.set(event.result["customData"]);
39+
});
40+
});
41+
}
42+
3143
showNotification(): void {
3244
create({
3345
platform: fin.me.identity.uuid,
3446
title: "Simple Notification",
3547
body: "This is a simple notification",
3648
toast: "transient",
49+
buttons: [
50+
{
51+
title: "Click me",
52+
type: "button",
53+
cta: true,
54+
onClick: {
55+
customData: "Notification action data",
56+
},
57+
},
58+
],
3759
});
3860
}
3961

frameworks/angular/creating-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class AppComponent {
102102
{
103103
"runtime": {
104104
"arguments": "--v=1 --inspect",
105-
"version": "38.126.83.80"
105+
"version": "41.134.102.6"
106106
},
107107
"platform": {
108108
"uuid": "angular-container-starter",

frameworks/angular/creating-workspace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class AppComponent {
112112
"licenseKey": "openfin-demo-license-key",
113113
"runtime": {
114114
"arguments": "--v=1 --inspect",
115-
"version": "38.126.83.80"
115+
"version": "41.134.102.6"
116116
},
117117
"platform": {
118118
"uuid": "angular-workspace-starter",

0 commit comments

Comments
 (0)