@morgan-stanley/composeui-fdc3 0.1.0-alpha.12 → 0.1.0-alpha.13
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.
package/dist/fdc3-iife-bundle.js
CHANGED
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
/**
|
|
136
136
|
* @license
|
|
137
137
|
* author: Morgan Stanley
|
|
138
|
-
* composeui-messaging-abstractions.js v0.1.0-alpha.
|
|
138
|
+
* composeui-messaging-abstractions.js v0.1.0-alpha.13
|
|
139
139
|
* Released under the Apache-2.0 license.
|
|
140
140
|
*/
|
|
141
141
|
|
|
@@ -402,10 +402,10 @@
|
|
|
402
402
|
static joinUserChannel() {
|
|
403
403
|
return `${this.topicRoot}/${this.joinUserChannelSuffix}`;
|
|
404
404
|
}
|
|
405
|
-
static
|
|
405
|
+
static notifyUserChannelChangedViaUIInteraction(instanceId) {
|
|
406
406
|
return `${this.topicRoot}/channelSelector/UI/${instanceId}`;
|
|
407
407
|
}
|
|
408
|
-
static
|
|
408
|
+
static notifyUserChannelChangedViaAPI(instanceId) {
|
|
409
409
|
return `${this.topicRoot}/channelSelector/API/${instanceId}`;
|
|
410
410
|
}
|
|
411
411
|
static getInfo() {
|
|
@@ -1243,7 +1243,7 @@
|
|
|
1243
1243
|
: Promise.resolve();
|
|
1244
1244
|
}
|
|
1245
1245
|
async configureChannelSelectorFromUI() {
|
|
1246
|
-
this.channelSelector = await this.jsonMessaging.registerService(ComposeUITopic.
|
|
1246
|
+
this.channelSelector = await this.jsonMessaging.registerService(ComposeUITopic.notifyUserChannelChangedViaUIInteraction(this.fdc3instanceId), this.selectUserChannelFromUIHandler);
|
|
1247
1247
|
console.debug("Configured channel selector for module: ", this.fdc3instanceId);
|
|
1248
1248
|
}
|
|
1249
1249
|
async getChannel(channelId, channelType) {
|
|
@@ -1329,7 +1329,7 @@
|
|
|
1329
1329
|
}
|
|
1330
1330
|
async triggerChannelJoinedEvent(id) {
|
|
1331
1331
|
try {
|
|
1332
|
-
var result = await this.jsonMessaging.invokeService(ComposeUITopic.
|
|
1332
|
+
var result = await this.jsonMessaging.invokeService(ComposeUITopic.notifyUserChannelChangedViaAPI(this.fdc3instanceId), id);
|
|
1333
1333
|
console.debug("Triggered channel selector of container: ", this.fdc3instanceId, ", with: ", id, ", and got result:", result);
|
|
1334
1334
|
}
|
|
1335
1335
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morgan-stanley/composeui-fdc3",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "FDC3 DesktopAgent implementation for Compose UI",
|
|
6
6
|
"type": "module",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"provenance": true
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@rollup/plugin-commonjs": "29.0.
|
|
33
|
+
"@rollup/plugin-commonjs": "29.0.2",
|
|
34
34
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
35
35
|
"@types/node": "^24.5.2",
|
|
36
36
|
"jsdom": "^28.1.0",
|
|
37
37
|
"rimraf": "6.1.3",
|
|
38
|
-
"rollup": "4.
|
|
38
|
+
"rollup": "4.60.2",
|
|
39
39
|
"ts-node": "10.9.2",
|
|
40
40
|
"tslib": "2.8.1",
|
|
41
41
|
"typescript": "5.9.3",
|
|
42
42
|
"vitest": "4.0.18"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "6599a2e1e40b079af04b30206bf20c025575be12"
|
|
45
45
|
}
|
|
@@ -107,11 +107,11 @@ export class ComposeUITopic {
|
|
|
107
107
|
return `${this.topicRoot}/${this.joinUserChannelSuffix}`;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
public static
|
|
110
|
+
public static notifyUserChannelChangedViaUIInteraction(instanceId: string): string {
|
|
111
111
|
return `${this.topicRoot}/channelSelector/UI/${instanceId}`;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
public static
|
|
114
|
+
public static notifyUserChannelChangedViaAPI(instanceId: string): string {
|
|
115
115
|
return `${this.topicRoot}/channelSelector/API/${instanceId}`;
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -55,7 +55,7 @@ export class MessagingChannelHandler implements ChannelHandler {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
public async configureChannelSelectorFromUI(): Promise<void> {
|
|
58
|
-
this.channelSelector = await this.jsonMessaging.registerService(ComposeUITopic.
|
|
58
|
+
this.channelSelector = await this.jsonMessaging.registerService(ComposeUITopic.notifyUserChannelChangedViaUIInteraction(this.fdc3instanceId), this.selectUserChannelFromUIHandler);
|
|
59
59
|
console.debug("Configured channel selector for module: ", this.fdc3instanceId);
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -161,7 +161,7 @@ export class MessagingChannelHandler implements ChannelHandler {
|
|
|
161
161
|
|
|
162
162
|
private async triggerChannelJoinedEvent(id: string | undefined) : Promise<void> {
|
|
163
163
|
try {
|
|
164
|
-
var result = await this.jsonMessaging.invokeService(ComposeUITopic.
|
|
164
|
+
var result = await this.jsonMessaging.invokeService(ComposeUITopic.notifyUserChannelChangedViaAPI(this.fdc3instanceId), id);
|
|
165
165
|
console.debug("Triggered channel selector of container: ", this.fdc3instanceId, ", with: ", id, ", and got result:", result);
|
|
166
166
|
} catch (error) {
|
|
167
167
|
console.error("Error triggering channel joined event for module: ", this.fdc3instanceId, ", with channel id: ", id, ", error: ", error);
|