@genesislcap/foundation-fdc3 14.214.1-openfin-notifications.3 → 14.214.1-openfin-notifications.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,5 +9,4 @@ export * from './fdc3-channel-event';
9
9
  export * from './util';
10
10
  export * from './utils';
11
11
  export * from './notifications/interop-notifications-listener';
12
- export * from './notifications/openfin-notifications-listener';
13
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,EAAE,EAAE,gBAAgB,CAAC,GAAG,CAAC;KAC1B;CACF;AAGD,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,EAAE,EAAE,gBAAgB,CAAC,GAAG,CAAC;KAC1B;CACF;AAGD,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,gDAAgD,CAAC"}
package/dist/esm/index.js CHANGED
@@ -4,4 +4,3 @@ export * from './fdc3-channel-event';
4
4
  export * from './util';
5
5
  export * from './utils';
6
6
  export * from './notifications/interop-notifications-listener';
7
- export * from './notifications/openfin-notifications-listener';
@@ -1715,283 +1715,6 @@
1715
1715
  "startIndex": 1,
1716
1716
  "endIndex": 3
1717
1717
  }
1718
- },
1719
- {
1720
- "kind": "Class",
1721
- "canonicalReference": "@genesislcap/foundation-fdc3!OpenfinNotificationsListener:class",
1722
- "docComment": "/**\n * @remarks\n *\n * This component extends the notification listener class and overrides the logic for showing the toast message to instead dispatch the event to the openfin notifications bus.\n *\n * @tagname\n *\n * openfin-notifications-listener\n *\n * @public\n */\n",
1723
- "excerptTokens": [
1724
- {
1725
- "kind": "Content",
1726
- "text": "export declare class OpenfinNotificationsListener extends "
1727
- },
1728
- {
1729
- "kind": "Reference",
1730
- "text": "NotificationListener",
1731
- "canonicalReference": "@genesislcap/foundation-ui!NotificationListener:class"
1732
- },
1733
- {
1734
- "kind": "Content",
1735
- "text": " "
1736
- }
1737
- ],
1738
- "fileUrlPath": "src/notifications/openfin-notifications-listener.ts",
1739
- "releaseTag": "Public",
1740
- "isAbstract": false,
1741
- "name": "OpenfinNotificationsListener",
1742
- "preserveMemberOrder": false,
1743
- "members": [
1744
- {
1745
- "kind": "Method",
1746
- "canonicalReference": "@genesislcap/foundation-fdc3!OpenfinNotificationsListener#connectedCallback:member(1)",
1747
- "docComment": "",
1748
- "excerptTokens": [
1749
- {
1750
- "kind": "Content",
1751
- "text": "connectedCallback(): "
1752
- },
1753
- {
1754
- "kind": "Reference",
1755
- "text": "Promise",
1756
- "canonicalReference": "!Promise:interface"
1757
- },
1758
- {
1759
- "kind": "Content",
1760
- "text": "<void>"
1761
- },
1762
- {
1763
- "kind": "Content",
1764
- "text": ";"
1765
- }
1766
- ],
1767
- "isStatic": false,
1768
- "returnTypeTokenRange": {
1769
- "startIndex": 1,
1770
- "endIndex": 3
1771
- },
1772
- "releaseTag": "Public",
1773
- "isProtected": false,
1774
- "overloadIndex": 1,
1775
- "parameters": [],
1776
- "isOptional": false,
1777
- "isAbstract": false,
1778
- "name": "connectedCallback"
1779
- },
1780
- {
1781
- "kind": "Property",
1782
- "canonicalReference": "@genesislcap/foundation-fdc3!OpenfinNotificationsListener#notificationsPlatform:member",
1783
- "docComment": "",
1784
- "excerptTokens": [
1785
- {
1786
- "kind": "Content",
1787
- "text": "notificationsPlatform: "
1788
- },
1789
- {
1790
- "kind": "Reference",
1791
- "text": "NotificationsPlatform",
1792
- "canonicalReference": "@openfin/workspace!NotificationsPlatform:interface"
1793
- },
1794
- {
1795
- "kind": "Content",
1796
- "text": ";"
1797
- }
1798
- ],
1799
- "isReadonly": false,
1800
- "isOptional": false,
1801
- "releaseTag": "Public",
1802
- "name": "notificationsPlatform",
1803
- "propertyTypeTokenRange": {
1804
- "startIndex": 1,
1805
- "endIndex": 2
1806
- },
1807
- "isStatic": false,
1808
- "isProtected": false,
1809
- "isAbstract": false
1810
- },
1811
- {
1812
- "kind": "Method",
1813
- "canonicalReference": "@genesislcap/foundation-fdc3!OpenfinNotificationsListener#showNotificationToast:member(1)",
1814
- "docComment": "",
1815
- "excerptTokens": [
1816
- {
1817
- "kind": "Content",
1818
- "text": "protected showNotificationToast(row: "
1819
- },
1820
- {
1821
- "kind": "Reference",
1822
- "text": "NotificationDataRow",
1823
- "canonicalReference": "@genesislcap/foundation-notifications!NotificationDataRow:interface"
1824
- },
1825
- {
1826
- "kind": "Content",
1827
- "text": "): "
1828
- },
1829
- {
1830
- "kind": "Reference",
1831
- "text": "Promise",
1832
- "canonicalReference": "!Promise:interface"
1833
- },
1834
- {
1835
- "kind": "Content",
1836
- "text": "<void>"
1837
- },
1838
- {
1839
- "kind": "Content",
1840
- "text": ";"
1841
- }
1842
- ],
1843
- "isStatic": false,
1844
- "returnTypeTokenRange": {
1845
- "startIndex": 3,
1846
- "endIndex": 5
1847
- },
1848
- "releaseTag": "Public",
1849
- "isProtected": true,
1850
- "overloadIndex": 1,
1851
- "parameters": [
1852
- {
1853
- "parameterName": "row",
1854
- "parameterTypeTokenRange": {
1855
- "startIndex": 1,
1856
- "endIndex": 2
1857
- },
1858
- "isOptional": false
1859
- }
1860
- ],
1861
- "isOptional": false,
1862
- "isAbstract": false,
1863
- "name": "showNotificationToast"
1864
- },
1865
- {
1866
- "kind": "Property",
1867
- "canonicalReference": "@genesislcap/foundation-fdc3!OpenfinNotificationsListener#toast:member",
1868
- "docComment": "",
1869
- "excerptTokens": [
1870
- {
1871
- "kind": "Content",
1872
- "text": "toast: "
1873
- },
1874
- {
1875
- "kind": "Content",
1876
- "text": "string"
1877
- },
1878
- {
1879
- "kind": "Content",
1880
- "text": ";"
1881
- }
1882
- ],
1883
- "isReadonly": false,
1884
- "isOptional": false,
1885
- "releaseTag": "Public",
1886
- "name": "toast",
1887
- "propertyTypeTokenRange": {
1888
- "startIndex": 1,
1889
- "endIndex": 2
1890
- },
1891
- "isStatic": false,
1892
- "isProtected": false,
1893
- "isAbstract": false
1894
- },
1895
- {
1896
- "kind": "Property",
1897
- "canonicalReference": "@genesislcap/foundation-fdc3!OpenfinNotificationsListener#toastButtons:member",
1898
- "docComment": "",
1899
- "excerptTokens": [
1900
- {
1901
- "kind": "Content",
1902
- "text": "toastButtons: "
1903
- },
1904
- {
1905
- "kind": "Reference",
1906
- "text": "OpenfinToastButton",
1907
- "canonicalReference": "@genesislcap/foundation-fdc3!OpenfinToastButton:interface"
1908
- },
1909
- {
1910
- "kind": "Content",
1911
- "text": "[]"
1912
- },
1913
- {
1914
- "kind": "Content",
1915
- "text": ";"
1916
- }
1917
- ],
1918
- "isReadonly": false,
1919
- "isOptional": false,
1920
- "releaseTag": "Public",
1921
- "name": "toastButtons",
1922
- "propertyTypeTokenRange": {
1923
- "startIndex": 1,
1924
- "endIndex": 3
1925
- },
1926
- "isStatic": false,
1927
- "isProtected": false,
1928
- "isAbstract": false
1929
- }
1930
- ],
1931
- "extendsTokenRange": {
1932
- "startIndex": 1,
1933
- "endIndex": 2
1934
- },
1935
- "implementsTokenRanges": []
1936
- },
1937
- {
1938
- "kind": "Interface",
1939
- "canonicalReference": "@genesislcap/foundation-fdc3!OpenfinToastButton:interface",
1940
- "docComment": "/**\n * @remarks\n *\n * OpenfinToastButton interface which extends ToastButton\n *\n * @public\n */\n",
1941
- "excerptTokens": [
1942
- {
1943
- "kind": "Content",
1944
- "text": "export interface OpenfinToastButton extends "
1945
- },
1946
- {
1947
- "kind": "Reference",
1948
- "text": "ToastButton",
1949
- "canonicalReference": "@genesislcap/foundation-notifications!ToastButton:interface"
1950
- },
1951
- {
1952
- "kind": "Content",
1953
- "text": " "
1954
- }
1955
- ],
1956
- "fileUrlPath": "src/notifications/openfin-notifications-listener.ts",
1957
- "releaseTag": "Public",
1958
- "name": "OpenfinToastButton",
1959
- "preserveMemberOrder": false,
1960
- "members": [
1961
- {
1962
- "kind": "PropertySignature",
1963
- "canonicalReference": "@genesislcap/foundation-fdc3!OpenfinToastButton#task:member",
1964
- "docComment": "",
1965
- "excerptTokens": [
1966
- {
1967
- "kind": "Content",
1968
- "text": "task: "
1969
- },
1970
- {
1971
- "kind": "Content",
1972
- "text": "string"
1973
- },
1974
- {
1975
- "kind": "Content",
1976
- "text": ";"
1977
- }
1978
- ],
1979
- "isReadonly": false,
1980
- "isOptional": false,
1981
- "releaseTag": "Public",
1982
- "name": "task",
1983
- "propertyTypeTokenRange": {
1984
- "startIndex": 1,
1985
- "endIndex": 2
1986
- }
1987
- }
1988
- ],
1989
- "extendsTokenRanges": [
1990
- {
1991
- "startIndex": 1,
1992
- "endIndex": 2
1993
- }
1994
- ]
1995
1718
  }
1996
1719
  ]
1997
1720
  }
@@ -19,12 +19,10 @@ import type { Listener } from '@finos/fdc3';
19
19
  import { Logger } from '@genesislcap/foundation-logger';
20
20
  import { NotificationDataRow } from '@genesislcap/foundation-notifications';
21
21
  import { NotificationListener } from '@genesislcap/foundation-ui';
22
- import { NotificationsPlatform } from '@openfin/workspace/notifications';
23
22
  import { Observable } from 'rxjs';
24
23
  import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
25
24
  import type { PrivateChannel } from '@finos/fdc3';
26
25
  import type { StandardIntent } from '@finos/fdc3';
27
- import { ToastButton } from '@genesislcap/foundation-notifications';
28
26
  import { ViewTemplate } from '@microsoft/fast-element';
29
27
 
30
28
  /**
@@ -1679,31 +1677,6 @@ export { Listener }
1679
1677
  */
1680
1678
  export declare const logger: Logger;
1681
1679
 
1682
- /**
1683
- * @tagname openfin-notifications-listener
1684
- * @public
1685
- * @remarks
1686
- * This component extends the notification listener class and overrides the logic for showing the toast message to instead dispatch the event to the openfin notifications bus.
1687
- */
1688
- export declare class OpenfinNotificationsListener extends NotificationListener {
1689
- notificationsPlatform: NotificationsPlatform;
1690
- toast: string;
1691
- toastButtons: OpenfinToastButton[];
1692
- connectedCallback(): Promise<void>;
1693
- private addButtonListeners;
1694
- protected showNotificationToast(row: NotificationDataRow): Promise<void>;
1695
- private mapToastButtons;
1696
- }
1697
-
1698
- /**
1699
- * @public
1700
- * @remarks
1701
- * OpenfinToastButton interface which extends ToastButton
1702
- */
1703
- export declare interface OpenfinToastButton extends ToastButton {
1704
- task: string;
1705
- }
1706
-
1707
1680
  export { PrivateChannel }
1708
1681
 
1709
1682
  export { StandardIntent }
@@ -9,7 +9,6 @@
9
9
  | Class | Description |
10
10
  | --- | --- |
11
11
  | [InteropNotificationsListener](./foundation-fdc3.interopnotificationslistener.md) | |
12
- | [OpenfinNotificationsListener](./foundation-fdc3.openfinnotificationslistener.md) | |
13
12
 
14
13
  ## Interfaces
15
14
 
@@ -20,7 +19,6 @@
20
19
  | [FDC3Channel](./foundation-fdc3.fdc3channel.md) | |
21
20
  | [FDC3Context](./foundation-fdc3.fdc3context.md) | |
22
21
  | [FDC3IntentResolution](./foundation-fdc3.fdc3intentresolution.md) | |
23
- | [OpenfinToastButton](./foundation-fdc3.openfintoastbutton.md) | |
24
22
 
25
23
  ## Variables
26
24
 
@@ -25,12 +25,10 @@ import type { Listener } from '@finos/fdc3';
25
25
  import { Logger } from '@genesislcap/foundation-logger';
26
26
  import { NotificationDataRow } from '@genesislcap/foundation-notifications';
27
27
  import { NotificationListener } from '@genesislcap/foundation-ui';
28
- import { NotificationsPlatform } from '@openfin/workspace/notifications';
29
28
  import { Observable } from 'rxjs';
30
29
  import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
31
30
  import type { PrivateChannel } from '@finos/fdc3';
32
31
  import type { StandardIntent } from '@finos/fdc3';
33
- import { ToastButton } from '@genesislcap/foundation-notifications';
34
32
  import { ViewTemplate } from '@microsoft/fast-element';
35
33
 
36
34
  // @alpha
@@ -266,26 +264,6 @@ export { Listener }
266
264
  // @public
267
265
  export const logger: Logger;
268
266
 
269
- // @public (undocumented)
270
- export class OpenfinNotificationsListener extends NotificationListener {
271
- // (undocumented)
272
- connectedCallback(): Promise<void>;
273
- // (undocumented)
274
- notificationsPlatform: NotificationsPlatform;
275
- // (undocumented)
276
- protected showNotificationToast(row: NotificationDataRow): Promise<void>;
277
- // (undocumented)
278
- toast: string;
279
- // (undocumented)
280
- toastButtons: OpenfinToastButton[];
281
- }
282
-
283
- // @public (undocumented)
284
- export interface OpenfinToastButton extends ToastButton {
285
- // (undocumented)
286
- task: string;
287
- }
288
-
289
267
  export { PrivateChannel }
290
268
 
291
269
  export { StandardIntent }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-fdc3",
3
3
  "description": "Genesis Foundation FDC3",
4
- "version": "14.214.1-openfin-notifications.3",
4
+ "version": "14.214.1-openfin-notifications.4",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -92,5 +92,5 @@
92
92
  "publishConfig": {
93
93
  "access": "public"
94
94
  },
95
- "gitHead": "29caa03d47e5d72c3f23090321fe6cc3ccdd5ff4"
95
+ "gitHead": "9972361e0d7d421bc08db81bc8de945985736605"
96
96
  }
@@ -1,27 +0,0 @@
1
- import { NotificationDataRow, ToastButton } from '@genesislcap/foundation-notifications';
2
- import { NotificationListener } from '@genesislcap/foundation-ui';
3
- import { NotificationsPlatform } from '@openfin/workspace/notifications';
4
- /**
5
- * @public
6
- * @remarks
7
- * OpenfinToastButton interface which extends ToastButton
8
- */
9
- export interface OpenfinToastButton extends ToastButton {
10
- task: string;
11
- }
12
- /**
13
- * @tagname openfin-notifications-listener
14
- * @public
15
- * @remarks
16
- * This component extends the notification listener class and overrides the logic for showing the toast message to instead dispatch the event to the openfin notifications bus.
17
- */
18
- export declare class OpenfinNotificationsListener extends NotificationListener {
19
- notificationsPlatform: NotificationsPlatform;
20
- toast: string;
21
- toastButtons: OpenfinToastButton[];
22
- connectedCallback(): Promise<void>;
23
- private addButtonListeners;
24
- protected showNotificationToast(row: NotificationDataRow): Promise<void>;
25
- private mapToastButtons;
26
- }
27
- //# sourceMappingURL=openfin-notifications-listener.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"openfin-notifications-listener.d.ts","sourceRoot":"","sources":["../../../src/notifications/openfin-notifications-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,WAAW,EAEZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAIlE,OAAO,EAGL,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAgB1C;;;;GAIG;AACH,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,IAAI,EAAE,MAAM,CAAC;CACd;AAUD;;;;;GAKG;AACH,qBAQa,4BAA6B,SAAQ,oBAAoB;IACpE,qBAAqB,EAAE,qBAAqB,CAAC;IAEvC,KAAK,EAAE,MAAM,CAAe;IAElC,YAAY,EAAE,kBAAkB,EAAE,CAAC;IAE7B,iBAAiB;YAMT,kBAAkB;cAqBhB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IA8B9E,OAAO,CAAC,eAAe;CAyBxB"}
@@ -1,130 +0,0 @@
1
- import { __awaiter, __decorate } from "tslib";
2
- import { NotificationListener } from '@genesislcap/foundation-ui';
3
- import { attr } from '@genesislcap/web-core';
4
- import { customElement, html, ref } from '@microsoft/fast-element';
5
- import * as Notifications from '@openfin/workspace/notifications';
6
- import { IndicatorColor, } from '@openfin/workspace/notifications';
7
- const OpenfinGenesisPriorityMap = {
8
- Information: 1,
9
- Warning: 2,
10
- Serious: 3,
11
- Critical: 4,
12
- };
13
- const OpenfinGenesisColorMap = {
14
- Information: IndicatorColor.BLUE,
15
- Warning: IndicatorColor.YELLOW,
16
- Serious: IndicatorColor.MAGENTA,
17
- Critical: IndicatorColor.RED,
18
- };
19
- function initializeNotifications(notificationsPlatformOptions) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- yield Notifications.register({
22
- notificationsPlatformOptions,
23
- });
24
- });
25
- }
26
- /**
27
- * @tagname openfin-notifications-listener
28
- * @public
29
- * @remarks
30
- * This component extends the notification listener class and overrides the logic for showing the toast message to instead dispatch the event to the openfin notifications bus.
31
- */
32
- let OpenfinNotificationsListener = class OpenfinNotificationsListener extends NotificationListener {
33
- constructor() {
34
- super(...arguments);
35
- this.toast = 'transient';
36
- }
37
- connectedCallback() {
38
- const _super = Object.create(null, {
39
- connectedCallback: { get: () => super.connectedCallback }
40
- });
41
- return __awaiter(this, void 0, void 0, function* () {
42
- yield _super.connectedCallback.call(this);
43
- yield initializeNotifications(this.notificationsPlatform);
44
- yield this.addButtonListeners();
45
- });
46
- }
47
- addButtonListeners() {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- try {
50
- yield Notifications.addEventListener('notification-action', (event) => {
51
- var _a;
52
- console.log(event, 'notification-action button clicked');
53
- const button = (_a = this.toastButtons) === null || _a === void 0 ? void 0 : _a.find((t) => t.task === event.result.task);
54
- if (!button) {
55
- return;
56
- }
57
- button.action({ details: event.result.customData.details, buttonElement: this });
58
- });
59
- }
60
- catch (e) {
61
- console.log(e);
62
- }
63
- });
64
- }
65
- showNotificationToast(row) {
66
- return __awaiter(this, void 0, void 0, function* () {
67
- const { HEADER: title, MESSAGE: body, NOTIFY_SEVERITY: type, ALERT_ID } = row;
68
- const notification = {
69
- title,
70
- body,
71
- priority: OpenfinGenesisPriorityMap[type],
72
- toast: this.toast || 'transient',
73
- category: type,
74
- template: 'markdown',
75
- id: ALERT_ID,
76
- soundOptions: {
77
- mode: 'silent',
78
- },
79
- indicator: {
80
- text: title,
81
- color: OpenfinGenesisColorMap[type],
82
- fallback: OpenfinGenesisColorMap[type],
83
- },
84
- buttons: this.mapToastButtons(this.toastButtons, row), // To Do add action buttons
85
- // platform: PLATFORM_ID
86
- };
87
- try {
88
- yield Notifications.create(notification);
89
- }
90
- catch (e) {
91
- console.error('Openfin notifications error', e);
92
- }
93
- });
94
- }
95
- mapToastButtons(toastButtons, row) {
96
- if (!toastButtons) {
97
- return null;
98
- }
99
- return toastButtons
100
- .filter((t) => !!t.condition({ details: row }))
101
- .map((t) => {
102
- return {
103
- title: t.placeholder,
104
- type: 'button',
105
- cta: true,
106
- onClick: {
107
- task: t.task,
108
- customData: {
109
- message: 'Notification button clicked',
110
- details: row,
111
- },
112
- },
113
- };
114
- });
115
- }
116
- };
117
- __decorate([
118
- attr
119
- ], OpenfinNotificationsListener.prototype, "toast", void 0);
120
- OpenfinNotificationsListener = __decorate([
121
- customElement({
122
- name: 'openfin-notifications-listener',
123
- template: html `
124
- <template ${ref('notificationListener')}>
125
- <slot></slot>
126
- </template>
127
- `,
128
- })
129
- ], OpenfinNotificationsListener);
130
- export { OpenfinNotificationsListener };
@@ -1,15 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-fdc3](./foundation-fdc3.md) &gt; [OpenfinNotificationsListener](./foundation-fdc3.openfinnotificationslistener.md) &gt; [connectedCallback](./foundation-fdc3.openfinnotificationslistener.connectedcallback.md)
4
-
5
- ## OpenfinNotificationsListener.connectedCallback() method
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- connectedCallback(): Promise<void>;
11
- ```
12
- **Returns:**
13
-
14
- Promise&lt;void&gt;
15
-
@@ -1,32 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-fdc3](./foundation-fdc3.md) &gt; [OpenfinNotificationsListener](./foundation-fdc3.openfinnotificationslistener.md)
4
-
5
- ## OpenfinNotificationsListener class
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- export declare class OpenfinNotificationsListener extends NotificationListener
11
- ```
12
- **Extends:** NotificationListener
13
-
14
- ## Remarks
15
-
16
- This component extends the notification listener class and overrides the logic for showing the toast message to instead dispatch the event to the openfin notifications bus.
17
-
18
- ## Properties
19
-
20
- | Property | Modifiers | Type | Description |
21
- | --- | --- | --- | --- |
22
- | [notificationsPlatform](./foundation-fdc3.openfinnotificationslistener.notificationsplatform.md) | | NotificationsPlatform | |
23
- | [toast](./foundation-fdc3.openfinnotificationslistener.toast.md) | | string | |
24
- | [toastButtons](./foundation-fdc3.openfinnotificationslistener.toastbuttons.md) | | [OpenfinToastButton](./foundation-fdc3.openfintoastbutton.md)<!-- -->\[\] | |
25
-
26
- ## Methods
27
-
28
- | Method | Modifiers | Description |
29
- | --- | --- | --- |
30
- | [connectedCallback()](./foundation-fdc3.openfinnotificationslistener.connectedcallback.md) | | |
31
- | [showNotificationToast(row)](./foundation-fdc3.openfinnotificationslistener.shownotificationtoast.md) | <code>protected</code> | |
32
-
@@ -1,11 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-fdc3](./foundation-fdc3.md) &gt; [OpenfinNotificationsListener](./foundation-fdc3.openfinnotificationslistener.md) &gt; [notificationsPlatform](./foundation-fdc3.openfinnotificationslistener.notificationsplatform.md)
4
-
5
- ## OpenfinNotificationsListener.notificationsPlatform property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- notificationsPlatform: NotificationsPlatform;
11
- ```
@@ -1,22 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-fdc3](./foundation-fdc3.md) &gt; [OpenfinNotificationsListener](./foundation-fdc3.openfinnotificationslistener.md) &gt; [showNotificationToast](./foundation-fdc3.openfinnotificationslistener.shownotificationtoast.md)
4
-
5
- ## OpenfinNotificationsListener.showNotificationToast() method
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- protected showNotificationToast(row: NotificationDataRow): Promise<void>;
11
- ```
12
-
13
- ## Parameters
14
-
15
- | Parameter | Type | Description |
16
- | --- | --- | --- |
17
- | row | NotificationDataRow | |
18
-
19
- **Returns:**
20
-
21
- Promise&lt;void&gt;
22
-
@@ -1,11 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-fdc3](./foundation-fdc3.md) &gt; [OpenfinNotificationsListener](./foundation-fdc3.openfinnotificationslistener.md) &gt; [toast](./foundation-fdc3.openfinnotificationslistener.toast.md)
4
-
5
- ## OpenfinNotificationsListener.toast property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- toast: string;
11
- ```
@@ -1,11 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-fdc3](./foundation-fdc3.md) &gt; [OpenfinNotificationsListener](./foundation-fdc3.openfinnotificationslistener.md) &gt; [toastButtons](./foundation-fdc3.openfinnotificationslistener.toastbuttons.md)
4
-
5
- ## OpenfinNotificationsListener.toastButtons property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- toastButtons: OpenfinToastButton[];
11
- ```
@@ -1,23 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-fdc3](./foundation-fdc3.md) &gt; [OpenfinToastButton](./foundation-fdc3.openfintoastbutton.md)
4
-
5
- ## OpenfinToastButton interface
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- export interface OpenfinToastButton extends ToastButton
11
- ```
12
- **Extends:** ToastButton
13
-
14
- ## Remarks
15
-
16
- OpenfinToastButton interface which extends ToastButton
17
-
18
- ## Properties
19
-
20
- | Property | Modifiers | Type | Description |
21
- | --- | --- | --- | --- |
22
- | [task](./foundation-fdc3.openfintoastbutton.task.md) | | string | |
23
-
@@ -1,11 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-fdc3](./foundation-fdc3.md) &gt; [OpenfinToastButton](./foundation-fdc3.openfintoastbutton.md) &gt; [task](./foundation-fdc3.openfintoastbutton.task.md)
4
-
5
- ## OpenfinToastButton.task property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- task: string;
11
- ```