@genesislcap/foundation-fdc3 14.192.2-fdc3-enhancements.1 → 14.192.2-publicpath.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"fdc3-channel-event.d.ts","sourceRoot":"","sources":["../../src/fdc3-channel-event.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,iBAAiB,EAAc,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9B;;;GAGG;AACH,qBAGa,gBAAiB,SAAQ,qBAAiC;IAC/D,IAAI,EAAE,IAAI,CAAC;IACkB,SAAS,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAE7C,eAAe,EAAE,CAAC,GAAG,KAAA,KAAK,GAAG,CAAC;IAE1C,iBAAiB;IAIjB,oBAAoB;IAIX,SAAS,IAAI,IAAI;IAU1B,OAAO,CAAC,kBAAkB,CAWxB;CACH"}
1
+ {"version":3,"file":"fdc3-channel-event.d.ts","sourceRoot":"","sources":["../../src/fdc3-channel-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,iBAAiB,EAAc,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9B;;;GAGG;AACH,qBAGa,gBAAiB,SAAQ,qBAAiC;IAC/D,IAAI,EAAE,IAAI,CAAC;IACkB,SAAS,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAE7C,eAAe,EAAE,CAAC,GAAG,KAAA,KAAK,GAAG,CAAC;IAE1C,iBAAiB;IAIjB,oBAAoB;IAIX,SAAS,IAAI,IAAI;IAU1B,OAAO,CAAC,kBAAkB,CAMxB;CACH"}
@@ -2,7 +2,6 @@
2
2
  * See https://fdc3.finos.org/docs/fdc3-intro, and https://github.com/finos/FDC3/tree/master/src/api
3
3
  */
4
4
  import { AppIntent, Channel, Context, ContextHandler, Intents, IntentResolution } from '@finos/fdc3';
5
- import { Observable } from 'rxjs';
6
5
  /**
7
6
  * @public
8
7
  */
@@ -91,12 +90,6 @@ export interface FDC3 {
91
90
  * @param payload - payload sent to the channel
92
91
  */
93
92
  broadcastOnChannel(channelName: string, type: string, payload: any): Promise<void>;
94
- /**
95
- * Broadcasts a message on the current app channel
96
- * @param type - type of the channel
97
- * @param payload - payload sent to the channel
98
- */
99
- broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
100
93
  /**
101
94
  * Helper function to broadcast message on channel in response to dispatched event
102
95
  * @param channelName - name of the channel
@@ -121,8 +114,6 @@ export interface FDC3 {
121
114
  */
122
115
  export declare class DefaultFDC3 implements FDC3 {
123
116
  isReady: boolean;
124
- private _currentChannel$;
125
- currentChannel$: Observable<Channel>;
126
117
  constructor();
127
118
  private connect;
128
119
  addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
@@ -132,11 +123,9 @@ export declare class DefaultFDC3 implements FDC3 {
132
123
  joinChannel(channelId: string): Promise<void>;
133
124
  getOrCreateChannel(channelId: string): Promise<FDC3Channel>;
134
125
  broadcastOnChannel(channelName: string, type: string, payload: any): Promise<void>;
135
- broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
136
126
  broadcastOnChannelEventHandler(channelName: string, type: string): Promise<(e: any) => Promise<void>>;
137
127
  addChannelListener(channelName: string, channelType: string, callback: (any: any) => void): Promise<Channel>;
138
128
  getCurrentChannel(): Promise<Channel>;
139
- private broadcastMessageOnChannel;
140
129
  }
141
130
  /**
142
131
  * The DI token for the FDC3 interface.
@@ -1 +1 @@
1
- {"version":3,"file":"fdc3.d.ts","sourceRoot":"","sources":["../../src/fdc3.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,SAAS,EACT,OAAO,EACP,OAAO,EACP,cAAc,EAOd,OAAO,EACP,gBAAgB,EAKjB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,UAAU,EAAW,MAAM,MAAM,CAAC;AAI3C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,SAAS;CAAG;AAEnD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO;CAAG;AAE/C;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;CAAG;AAEjE;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO;CAAG;AAE/C;;;GAGG;AACH,MAAM,WAAW,IAAI;IACnB;;;OAGG;IACH,OAAO,EAAE,OA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,CAAC,IAAI,CAAC;IAalF,8BAA8B,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAC1D,GAAG;IAOT,kBAAkB,CAC7B,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI;IAOZ,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;CAGnD;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,4DAA4D,CAAC"}
@@ -14,12 +14,7 @@ let Fdc3ChannelEvent = class Fdc3ChannelEvent extends LifecycleMixin(FoundationE
14
14
  if (this.mappingFunction && typeof this.mappingFunction === 'function') {
15
15
  payload = this.mappingFunction(payload);
16
16
  }
17
- if (this.channelName) {
18
- yield this.fdc3.broadcastOnChannel(this.channelName, this.channelType, payload);
19
- }
20
- else {
21
- const channel = this.fdc3.broadcastOnCurrentChannel(payload, this.channelType);
22
- }
17
+ yield this.fdc3.broadcastOnChannel(this.channelName, this.channelType, payload);
23
18
  });
24
19
  }
25
20
  connectedCallback() {
package/dist/esm/fdc3.js CHANGED
@@ -5,7 +5,6 @@ import { __awaiter, __decorate } from "tslib";
5
5
  import { addIntentListener, fdc3Ready, findIntent, findIntentsByContext, getCurrentChannel, getOrCreateChannel, getInfo, joinChannel, raiseIntent, raiseIntentForContext, versionIsAtLeast, } from '@finos/fdc3';
6
6
  import { observable } from '@microsoft/fast-element';
7
7
  import { DI } from '@microsoft/fast-foundation';
8
- import { Subject } from 'rxjs';
9
8
  import { stripOutBigInt } from './util/fdc3-util';
10
9
  import { logger } from './utils';
11
10
  /**
@@ -15,8 +14,6 @@ import { logger } from './utils';
15
14
  export class DefaultFDC3 {
16
15
  constructor() {
17
16
  this.isReady = false;
18
- this._currentChannel$ = new Subject();
19
- this.currentChannel$ = this._currentChannel$.asObservable();
20
17
  this.connect();
21
18
  }
22
19
  connect() {
@@ -68,13 +65,12 @@ export class DefaultFDC3 {
68
65
  broadcastOnChannel(channelName, type, payload) {
69
66
  return __awaiter(this, void 0, void 0, function* () {
70
67
  const channel = yield getOrCreateChannel(channelName);
71
- this.broadcastMessageOnChannel(channel, payload, type);
72
- });
73
- }
74
- broadcastOnCurrentChannel(payload, type) {
75
- return __awaiter(this, void 0, void 0, function* () {
76
- const channel = yield getCurrentChannel();
77
- this.broadcastMessageOnChannel(channel, payload, type);
68
+ payload = stripOutBigInt(payload);
69
+ const m = {
70
+ type,
71
+ id: payload,
72
+ };
73
+ channel.broadcast(m);
78
74
  });
79
75
  }
80
76
  broadcastOnChannelEventHandler(channelName, type) {
@@ -99,14 +95,6 @@ export class DefaultFDC3 {
99
95
  return getCurrentChannel();
100
96
  });
101
97
  }
102
- broadcastMessageOnChannel(channel, payload, type) {
103
- payload = stripOutBigInt(payload);
104
- const m = {
105
- type,
106
- id: payload,
107
- };
108
- channel.broadcast(m);
109
- }
110
98
  }
111
99
  __decorate([
112
100
  observable
@@ -515,72 +515,6 @@
515
515
  ],
516
516
  "name": "broadcastOnChannelEventHandler"
517
517
  },
518
- {
519
- "kind": "MethodSignature",
520
- "canonicalReference": "@genesislcap/foundation-fdc3!FDC3#broadcastOnCurrentChannel:member(1)",
521
- "docComment": "/**\n * Broadcasts a message on the current app channel\n *\n * @param type - type of the channel\n *\n * @param payload - payload sent to the channel\n */\n",
522
- "excerptTokens": [
523
- {
524
- "kind": "Content",
525
- "text": "broadcastOnCurrentChannel(payload: "
526
- },
527
- {
528
- "kind": "Content",
529
- "text": "any"
530
- },
531
- {
532
- "kind": "Content",
533
- "text": ", type?: "
534
- },
535
- {
536
- "kind": "Content",
537
- "text": "string"
538
- },
539
- {
540
- "kind": "Content",
541
- "text": "): "
542
- },
543
- {
544
- "kind": "Reference",
545
- "text": "Promise",
546
- "canonicalReference": "!Promise:interface"
547
- },
548
- {
549
- "kind": "Content",
550
- "text": "<void>"
551
- },
552
- {
553
- "kind": "Content",
554
- "text": ";"
555
- }
556
- ],
557
- "isOptional": false,
558
- "returnTypeTokenRange": {
559
- "startIndex": 5,
560
- "endIndex": 7
561
- },
562
- "releaseTag": "Public",
563
- "overloadIndex": 1,
564
- "parameters": [
565
- {
566
- "parameterName": "payload",
567
- "parameterTypeTokenRange": {
568
- "startIndex": 1,
569
- "endIndex": 2
570
- },
571
- "isOptional": false
572
- },
573
- {
574
- "parameterName": "type",
575
- "parameterTypeTokenRange": {
576
- "startIndex": 3,
577
- "endIndex": 4
578
- },
579
- "isOptional": true
580
- }
581
- ],
582
- "name": "broadcastOnCurrentChannel"
583
- },
584
518
  {
585
519
  "kind": "MethodSignature",
586
520
  "canonicalReference": "@genesislcap/foundation-fdc3!FDC3#findIntent:member(1)",
@@ -14,7 +14,6 @@ import { IOConnectDesktop } from '@interopio/desktop';
14
14
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
15
15
  import { NotificationDataRow } from '@genesislcap/foundation-notifications';
16
16
  import { NotificationListener } from '@genesislcap/foundation-ui';
17
- import { Observable } from 'rxjs';
18
17
  import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
19
18
  import { ViewTemplate } from '@microsoft/fast-element';
20
19
 
@@ -34,8 +33,6 @@ export declare interface ChannelConfig {
34
33
  */
35
34
  export declare class DefaultFDC3 implements FDC3 {
36
35
  isReady: boolean;
37
- private _currentChannel$;
38
- currentChannel$: Observable<Channel>;
39
36
  constructor();
40
37
  private connect;
41
38
  addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
@@ -45,11 +42,9 @@ export declare class DefaultFDC3 implements FDC3 {
45
42
  joinChannel(channelId: string): Promise<void>;
46
43
  getOrCreateChannel(channelId: string): Promise<FDC3Channel>;
47
44
  broadcastOnChannel(channelName: string, type: string, payload: any): Promise<void>;
48
- broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
49
45
  broadcastOnChannelEventHandler(channelName: string, type: string): Promise<(e: any) => Promise<void>>;
50
46
  addChannelListener(channelName: string, channelType: string, callback: (any: any) => void): Promise<Channel>;
51
47
  getCurrentChannel(): Promise<Channel>;
52
- private broadcastMessageOnChannel;
53
48
  }
54
49
 
55
50
  /**
@@ -112,12 +107,6 @@ export declare interface FDC3 {
112
107
  * @param payload - payload sent to the channel
113
108
  */
114
109
  broadcastOnChannel(channelName: string, type: string, payload: any): Promise<void>;
115
- /**
116
- * Broadcasts a message on the current app channel
117
- * @param type - type of the channel
118
- * @param payload - payload sent to the channel
119
- */
120
- broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
121
110
  /**
122
111
  * Helper function to broadcast message on channel in response to dispatched event
123
112
  * @param channelName - name of the channel
@@ -26,7 +26,6 @@ export interface FDC3
26
26
  | [addIntentListeners(listeners)](./foundation-fdc3.fdc3.addintentlisteners.md) | Adds intent listeners for the specified intents. |
27
27
  | [broadcastOnChannel(channelName, type, payload)](./foundation-fdc3.fdc3.broadcastonchannel.md) | Broadcasts a message on a given channel with a given type |
28
28
  | [broadcastOnChannelEventHandler(channelName, type)](./foundation-fdc3.fdc3.broadcastonchanneleventhandler.md) | Helper function to broadcast message on channel in response to dispatched event |
29
- | [broadcastOnCurrentChannel(payload, type)](./foundation-fdc3.fdc3.broadcastoncurrentchannel.md) | Broadcasts a message on the current app channel |
30
29
  | [findIntent(intent, context)](./foundation-fdc3.fdc3.findintent.md) | Finds an app that supports the specified intent. |
31
30
  | [findIntentsByContext(context)](./foundation-fdc3.fdc3.findintentsbycontext.md) | Finds all the intents supported by the specified context. |
32
31
  | [getCurrentChannel()](./foundation-fdc3.fdc3.getcurrentchannel.md) | Helper function to get the current channel of the application |
@@ -20,7 +20,6 @@ import { IOConnectDesktop } from '@interopio/desktop';
20
20
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
21
21
  import { NotificationDataRow } from '@genesislcap/foundation-notifications';
22
22
  import { NotificationListener } from '@genesislcap/foundation-ui';
23
- import { Observable } from 'rxjs';
24
23
  import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
25
24
  import { ViewTemplate } from '@microsoft/fast-element';
26
25
 
@@ -48,10 +47,6 @@ export class DefaultFDC3 implements FDC3 {
48
47
  // (undocumented)
49
48
  broadcastOnChannelEventHandler(channelName: string, type: string): Promise<(e: any) => Promise<void>>;
50
49
  // (undocumented)
51
- broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
52
- // (undocumented)
53
- currentChannel$: Observable<Channel>;
54
- // (undocumented)
55
50
  findIntent(intent: FDC3Intents, context?: FDC3Context): Promise<FDC3AppIntent>;
56
51
  // (undocumented)
57
52
  findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
@@ -75,7 +70,6 @@ export interface FDC3 {
75
70
  addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
76
71
  broadcastOnChannel(channelName: string, type: string, payload: any): Promise<void>;
77
72
  broadcastOnChannelEventHandler(channelName: string, type: string): Promise<(e: any) => Promise<void>>;
78
- broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
79
73
  findIntent(intent: FDC3Intents, context?: FDC3Context): Promise<FDC3AppIntent>;
80
74
  findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
81
75
  getCurrentChannel(): Promise<Channel>;
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.192.2-fdc3-enhancements.1",
4
+ "version": "14.192.2-publicpath.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -59,26 +59,25 @@
59
59
  }
60
60
  },
61
61
  "devDependencies": {
62
- "@genesislcap/foundation-testing": "14.192.2-fdc3-enhancements.1",
63
- "@genesislcap/genx": "14.192.2-fdc3-enhancements.1",
64
- "@genesislcap/rollup-builder": "14.192.2-fdc3-enhancements.1",
65
- "@genesislcap/ts-builder": "14.192.2-fdc3-enhancements.1",
66
- "@genesislcap/uvu-playwright-builder": "14.192.2-fdc3-enhancements.1",
67
- "@genesislcap/vite-builder": "14.192.2-fdc3-enhancements.1",
68
- "@genesislcap/webpack-builder": "14.192.2-fdc3-enhancements.1",
62
+ "@genesislcap/foundation-testing": "14.192.2-publicpath.2",
63
+ "@genesislcap/genx": "14.192.2-publicpath.2",
64
+ "@genesislcap/rollup-builder": "14.192.2-publicpath.2",
65
+ "@genesislcap/ts-builder": "14.192.2-publicpath.2",
66
+ "@genesislcap/uvu-playwright-builder": "14.192.2-publicpath.2",
67
+ "@genesislcap/vite-builder": "14.192.2-publicpath.2",
68
+ "@genesislcap/webpack-builder": "14.192.2-publicpath.2",
69
69
  "rimraf": "^5.0.0"
70
70
  },
71
71
  "dependencies": {
72
72
  "@finos/fdc3": "^1.2.0",
73
- "@genesislcap/foundation-logger": "14.192.2-fdc3-enhancements.1",
74
- "@genesislcap/foundation-notifications": "14.192.2-fdc3-enhancements.1",
75
- "@genesislcap/foundation-ui": "14.192.2-fdc3-enhancements.1",
76
- "@genesislcap/foundation-utils": "14.192.2-fdc3-enhancements.1",
77
- "@genesislcap/web-core": "14.192.2-fdc3-enhancements.1",
73
+ "@genesislcap/foundation-logger": "14.192.2-publicpath.2",
74
+ "@genesislcap/foundation-notifications": "14.192.2-publicpath.2",
75
+ "@genesislcap/foundation-ui": "14.192.2-publicpath.2",
76
+ "@genesislcap/foundation-utils": "14.192.2-publicpath.2",
77
+ "@genesislcap/web-core": "14.192.2-publicpath.2",
78
78
  "@interopio/desktop": "^6.3.1",
79
79
  "@microsoft/fast-element": "^1.12.0",
80
80
  "@microsoft/fast-foundation": "^2.49.4",
81
- "rxjs": "^7.8.1",
82
81
  "tslib": "^2.3.1"
83
82
  },
84
83
  "repository": {
@@ -89,5 +88,5 @@
89
88
  "publishConfig": {
90
89
  "access": "public"
91
90
  },
92
- "gitHead": "36d9c2f775b72deb81a4b53074e24f463e841d32"
91
+ "gitHead": "3e95c2f2fc734bc4776df6351bd8da85a8d059a6"
93
92
  }
@@ -1,25 +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; [FDC3](./foundation-fdc3.fdc3.md) &gt; [broadcastOnCurrentChannel](./foundation-fdc3.fdc3.broadcastoncurrentchannel.md)
4
-
5
- ## FDC3.broadcastOnCurrentChannel() method
6
-
7
- Broadcasts a message on the current app channel
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- broadcastOnCurrentChannel(payload: any, type?: string): Promise<void>;
13
- ```
14
-
15
- ## Parameters
16
-
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | payload | any | payload sent to the channel |
20
- | type | string | _(Optional)_ type of the channel |
21
-
22
- **Returns:**
23
-
24
- Promise&lt;void&gt;
25
-