@genesislcap/foundation-openfin 14.417.1-alpha-83eabbf.0 → 14.418.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.
@@ -15,10 +15,7 @@ export interface OpenfinToastButton extends ToastButton {
15
15
  /**
16
16
  * @public
17
17
  * @remarks
18
- * OpenFin Notifications custom element. Extends `NotificationListener` from `@genesislcap/foundation-ui` and routes
19
- * Genesis notification rows to OpenFin Workspace `create`. Toast button tasks are delivered via OpenFin
20
- * `addEventListener('notification-action', ...)` — this host does not define additional Genesis-style `CustomEvent` names
21
- * beyond the base notification listener integration.
18
+ * Openfin Notifications custom element
22
19
  */
23
20
  export declare class OpenfinNotificationListener extends NotificationListener {
24
21
  /**
@@ -73,7 +70,7 @@ export declare class OpenfinNotificationListener extends NotificationListener {
73
70
  * condition: ({details}) => details.HEADER === 'Trade added',
74
71
  * action: ({details, buttonElement }) => {
75
72
  * Route.path.push('/some-route') // redirect to a route
76
- * // Forward the entity id to your store (e.g. custom event or app-specific API)
73
+ * buttonElement.$emit('some-store-event', details.TABLE_ENTITY_ID); //emit the entity id to the store
77
74
  * }
78
75
  * },
79
76
  * placeholder: 'View Trade',
@@ -1 +1 @@
1
- {"version":3,"file":"openfin-notifications-listener.d.ts","sourceRoot":"","sources":["../../../src/notifications/openfin-notifications-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGlE,OAAO,EAOL,qBAAqB,EAEtB,MAAM,kCAAkC,CAAC;AAgB1C;;;;;GAKG;AACH,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAUD;;;;;;;GAOG;AACH,qBAQa,2BAA4B,SAAQ,oBAAoB;IACnE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,qBAAqB,EAAE,qBAAqB,CAAC;IAE7C;;;;OAIG;IACG,KAAK,EAAE,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAe;IAE3D;;;;OAIG;IACG,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAY;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6DG;IACH,YAAY,EAAE,kBAAkB,EAAE,CAAM;IAElC,iBAAiB;YAMT,kBAAkB;cAiBhB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IA8B9E,OAAO,CAAC,eAAe;CA+BxB"}
1
+ {"version":3,"file":"openfin-notifications-listener.d.ts","sourceRoot":"","sources":["../../../src/notifications/openfin-notifications-listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGlE,OAAO,EAOL,qBAAqB,EAEtB,MAAM,kCAAkC,CAAC;AAgB1C;;;;;GAKG;AACH,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAUD;;;;GAIG;AACH,qBAQa,2BAA4B,SAAQ,oBAAoB;IACnE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,qBAAqB,EAAE,qBAAqB,CAAC;IAE7C;;;;OAIG;IACG,KAAK,EAAE,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAe;IAE3D;;;;OAIG;IACG,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAY;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6DG;IACH,YAAY,EAAE,kBAAkB,EAAE,CAAM;IAElC,iBAAiB;YAMT,kBAAkB;cAiBhB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IA8B9E,OAAO,CAAC,eAAe;CA+BxB"}
@@ -25,10 +25,7 @@ function initializeNotifications(notificationsPlatformOptions) {
25
25
  /**
26
26
  * @public
27
27
  * @remarks
28
- * OpenFin Notifications custom element. Extends `NotificationListener` from `@genesislcap/foundation-ui` and routes
29
- * Genesis notification rows to OpenFin Workspace `create`. Toast button tasks are delivered via OpenFin
30
- * `addEventListener('notification-action', ...)` — this host does not define additional Genesis-style `CustomEvent` names
31
- * beyond the base notification listener integration.
28
+ * Openfin Notifications custom element
32
29
  */
33
30
  let OpenfinNotificationListener = class OpenfinNotificationListener extends NotificationListener {
34
31
  constructor() {
@@ -62,7 +59,7 @@ let OpenfinNotificationListener = class OpenfinNotificationListener extends Noti
62
59
  * condition: ({details}) => details.HEADER === 'Trade added',
63
60
  * action: ({details, buttonElement }) => {
64
61
  * Route.path.push('/some-route') // redirect to a route
65
- * // Forward the entity id to your store (e.g. custom event or app-specific API)
62
+ * buttonElement.$emit('some-store-event', details.TABLE_ENTITY_ID); //emit the entity id to the store
66
63
  * }
67
64
  * },
68
65
  * placeholder: 'View Trade',
@@ -211,7 +211,7 @@
211
211
  {
212
212
  "kind": "Class",
213
213
  "canonicalReference": "@genesislcap/foundation-openfin!OpenfinNotificationListener:class",
214
- "docComment": "/**\n * @remarks\n *\n * OpenFin Notifications custom element. Extends `NotificationListener` from `@genesislcap/foundation-ui` and routes Genesis notification rows to OpenFin Workspace `create`. Toast button tasks are delivered via OpenFin `addEventListener('notification-action', ...)` — this host does not define additional Genesis-style `CustomEvent` names beyond the base notification listener integration.\n *\n * @public\n */\n",
214
+ "docComment": "/**\n * @remarks\n *\n * Openfin Notifications custom element\n *\n * @public\n */\n",
215
215
  "excerptTokens": [
216
216
  {
217
217
  "kind": "Content",
@@ -417,7 +417,7 @@
417
417
  {
418
418
  "kind": "Property",
419
419
  "canonicalReference": "@genesislcap/foundation-openfin!OpenfinNotificationListener#toastButtons:member",
420
- "docComment": "/**\n * Array of button configs for openfin notification toasts\n *\n * @example\n *\n * In these examples you could 1. View a trade, this is done by routing to the corresponding route. Dispatching the highlighted record id to the store and retrieving it in the view from the store. 2. Call an endpoint to approve a trade 3. Call an endpoint to reject a trade\n * ```html\n * <openfin-notifications-listener\n * ...\n * :toastButtons=\"${x => [\n * {\n * {\n * condition: ({details}) => details.HEADER === 'Trade added',\n * action: ({details, buttonElement }) => {\n * Route.path.push('/some-route') // redirect to a route\n * // Forward the entity id to your store (e.g. custom event or app-specific API)\n * }\n * },\n * placeholder: 'View Trade',\n * task: 'view-trade'\n * },\n * {\n * {\n * condition: ({details}) => details.HEADER === 'Trade added',\n * action: ({details, buttonElement }) => {\n * const connect = getConnect();\n * connect.commitEvent('approve-trade', {\n * DETAILS: {\n * TRADE_ID: details.TABLE_ENTITY_ID,\n * APPROVED: true\n * }\n * })\n * }\n * },\n * placeholder: 'Approve Trade',\n * task: 'approve-trade'\n * },\n * {\n * {\n * condition: ({details}) => details.HEADER === 'Trade added',\n * action: ({details, buttonElement }) => {\n * const connect = getConnect();\n * connect.commitEvent('approve-trade', {\n * DETAILS: {\n * TRADE_ID: details.TABLE_ENTITY_ID,\n * APPROVED: false\n * }\n * })\n * }\n * },\n * placeholder: 'Reject Trade',\n * task: 'reject-trade'\n * },\n *\n * ]\n * >\n * </openfin-notifications-listener>\n * ```\n *\n * @public\n */\n",
420
+ "docComment": "/**\n * Array of button configs for openfin notification toasts\n *\n * @example\n *\n * In these examples you could 1. View a trade, this is done by routing to the corresponding route. Dispatching the highlighted record id to the store and retrieving it in the view from the store. 2. Call an endpoint to approve a trade 3. Call an endpoint to reject a trade\n * ```html\n * <openfin-notifications-listener\n * ...\n * :toastButtons=\"${x => [\n * {\n * {\n * condition: ({details}) => details.HEADER === 'Trade added',\n * action: ({details, buttonElement }) => {\n * Route.path.push('/some-route') // redirect to a route\n * buttonElement.$emit('some-store-event', details.TABLE_ENTITY_ID); //emit the entity id to the store\n * }\n * },\n * placeholder: 'View Trade',\n * task: 'view-trade'\n * },\n * {\n * {\n * condition: ({details}) => details.HEADER === 'Trade added',\n * action: ({details, buttonElement }) => {\n * const connect = getConnect();\n * connect.commitEvent('approve-trade', {\n * DETAILS: {\n * TRADE_ID: details.TABLE_ENTITY_ID,\n * APPROVED: true\n * }\n * })\n * }\n * },\n * placeholder: 'Approve Trade',\n * task: 'approve-trade'\n * },\n * {\n * {\n * condition: ({details}) => details.HEADER === 'Trade added',\n * action: ({details, buttonElement }) => {\n * const connect = getConnect();\n * connect.commitEvent('approve-trade', {\n * DETAILS: {\n * TRADE_ID: details.TABLE_ENTITY_ID,\n * APPROVED: false\n * }\n * })\n * }\n * },\n * placeholder: 'Reject Trade',\n * task: 'reject-trade'\n * },\n *\n * ]\n * >\n * </openfin-notifications-listener>\n * ```\n *\n * @public\n */\n",
421
421
  "excerptTokens": [
422
422
  {
423
423
  "kind": "Content",
@@ -13,10 +13,7 @@ export declare const isOpenFin: () => boolean;
13
13
  /**
14
14
  * @public
15
15
  * @remarks
16
- * OpenFin Notifications custom element. Extends `NotificationListener` from `@genesislcap/foundation-ui` and routes
17
- * Genesis notification rows to OpenFin Workspace `create`. Toast button tasks are delivered via OpenFin
18
- * `addEventListener('notification-action', ...)` — this host does not define additional Genesis-style `CustomEvent` names
19
- * beyond the base notification listener integration.
16
+ * Openfin Notifications custom element
20
17
  */
21
18
  export declare class OpenfinNotificationListener extends NotificationListener {
22
19
  /**
@@ -71,7 +68,7 @@ export declare class OpenfinNotificationListener extends NotificationListener {
71
68
  * condition: ({details}) => details.HEADER === 'Trade added',
72
69
  * action: ({details, buttonElement }) => {
73
70
  * Route.path.push('/some-route') // redirect to a route
74
- * // Forward the entity id to your store (e.g. custom event or app-specific API)
71
+ * buttonElement.$emit('some-store-event', details.TABLE_ENTITY_ID); //emit the entity id to the store
75
72
  * }
76
73
  * },
77
74
  * placeholder: 'View Trade',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-openfin",
3
3
  "description": "Genesis Foundation Openfin",
4
- "version": "14.417.1-alpha-83eabbf.0",
4
+ "version": "14.418.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -61,22 +61,22 @@
61
61
  }
62
62
  },
63
63
  "devDependencies": {
64
- "@genesislcap/foundation-testing": "14.417.1-alpha-83eabbf.0",
65
- "@genesislcap/genx": "14.417.1-alpha-83eabbf.0",
66
- "@genesislcap/rollup-builder": "14.417.1-alpha-83eabbf.0",
67
- "@genesislcap/ts-builder": "14.417.1-alpha-83eabbf.0",
68
- "@genesislcap/uvu-playwright-builder": "14.417.1-alpha-83eabbf.0",
69
- "@genesislcap/vite-builder": "14.417.1-alpha-83eabbf.0",
70
- "@genesislcap/webpack-builder": "14.417.1-alpha-83eabbf.0",
64
+ "@genesislcap/foundation-testing": "14.418.0",
65
+ "@genesislcap/genx": "14.418.0",
66
+ "@genesislcap/rollup-builder": "14.418.0",
67
+ "@genesislcap/ts-builder": "14.418.0",
68
+ "@genesislcap/uvu-playwright-builder": "14.418.0",
69
+ "@genesislcap/vite-builder": "14.418.0",
70
+ "@genesislcap/webpack-builder": "14.418.0",
71
71
  "sinon": "^17.0.1"
72
72
  },
73
73
  "dependencies": {
74
74
  "@finos/fdc3": "2.1.1",
75
- "@genesislcap/foundation-logger": "14.417.1-alpha-83eabbf.0",
76
- "@genesislcap/foundation-notifications": "14.417.1-alpha-83eabbf.0",
77
- "@genesislcap/foundation-ui": "14.417.1-alpha-83eabbf.0",
78
- "@genesislcap/foundation-utils": "14.417.1-alpha-83eabbf.0",
79
- "@genesislcap/web-core": "14.417.1-alpha-83eabbf.0",
75
+ "@genesislcap/foundation-logger": "14.418.0",
76
+ "@genesislcap/foundation-notifications": "14.418.0",
77
+ "@genesislcap/foundation-ui": "14.418.0",
78
+ "@genesislcap/foundation-utils": "14.418.0",
79
+ "@genesislcap/web-core": "14.418.0",
80
80
  "@interopio/desktop": "^6.3.1",
81
81
  "@openfin/workspace": "^20.4.0",
82
82
  "@openfin/workspace-platform": "^20.4.0",
@@ -90,5 +90,5 @@
90
90
  "publishConfig": {
91
91
  "access": "public"
92
92
  },
93
- "gitHead": "eec85009ab3c6ae8d2c3bbcd8edd19f8697a0579"
93
+ "gitHead": "68fd71f55a50ce36c71a9635972e6384e2214f67"
94
94
  }