@interopio/fdc3 2.0.3 → 2.1.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.
- package/changelog.md +5 -0
- package/dist/fdc3.electron.es.js +21 -16
- package/dist/fdc3.electron.umd.js +21 -16
- package/dist/fdc3.es.js +21 -16
- package/dist/fdc3.umd.js +21 -16
- package/package.json +2 -2
package/changelog.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
2.1.0
|
|
2
|
+
fix: removed Electron dependency
|
|
3
|
+
fix: Update application title to be optional in intent handler interface
|
|
4
|
+
fix: fdc3.open() rejects when the app does not add a context listener on the DesktopAgent model
|
|
5
|
+
fix: Remove custom event listener when glue initialization pass/fail
|
|
1
6
|
2.0.3
|
|
2
7
|
fix: fixed electron dependency - introduced electron bundles
|
|
3
8
|
2.0.2
|
package/dist/fdc3.electron.es.js
CHANGED
|
@@ -1982,7 +1982,7 @@ class IntentsController {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
}
|
|
1984
1984
|
|
|
1985
|
-
var version = "2.0
|
|
1985
|
+
var version = "2.1.0";
|
|
1986
1986
|
|
|
1987
1987
|
class ApplicationsController {
|
|
1988
1988
|
constructor(glueController) {
|
|
@@ -2062,7 +2062,7 @@ class ApplicationsController {
|
|
|
2062
2062
|
return {
|
|
2063
2063
|
provider: "Glue42",
|
|
2064
2064
|
providerVersion: version,
|
|
2065
|
-
fdc3Version: "2.0
|
|
2065
|
+
fdc3Version: "2.0",
|
|
2066
2066
|
optionalFeatures: {
|
|
2067
2067
|
OriginatingAppMetadata: true,
|
|
2068
2068
|
UserChannelMembershipAPIs: true
|
|
@@ -2213,7 +2213,7 @@ class ChannelsController {
|
|
|
2213
2213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2214
2214
|
yield this.initDonePromise;
|
|
2215
2215
|
this.logger.info(`[${commandId}] - addContextListener() invoked for contextType ${contextType} and channelId ${channelId}`);
|
|
2216
|
-
if (this.invokeContextHandlerWithStartupContext) {
|
|
2216
|
+
if (this.invokeContextHandlerWithStartupContext && !channelId) {
|
|
2217
2217
|
this.logger.info(`[${commandId}] - trying to invoke context handler with window context`);
|
|
2218
2218
|
this.handleWindowContextOnOpening(commandId, handler, contextType).catch((err) => this.logger.warn(`[${commandId}] - ${err}`));
|
|
2219
2219
|
}
|
|
@@ -2630,22 +2630,24 @@ class EventReceiver {
|
|
|
2630
2630
|
this.eventDispatcher.fireNotifyStarted();
|
|
2631
2631
|
}
|
|
2632
2632
|
wireCustomEventListener() {
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
if (!data || !data.glue42) {
|
|
2636
|
-
return;
|
|
2637
|
-
}
|
|
2638
|
-
const glue42Event = data.glue42.event;
|
|
2639
|
-
const foundHandler = this.events[glue42Event];
|
|
2640
|
-
if (!foundHandler) {
|
|
2641
|
-
return;
|
|
2642
|
-
}
|
|
2643
|
-
foundHandler.handle(data.glue42.message);
|
|
2644
|
-
});
|
|
2633
|
+
this._glueReceiverHandler = this.glueReceiverHandler.bind(this);
|
|
2634
|
+
window.addEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2645
2635
|
}
|
|
2646
2636
|
handleStart() {
|
|
2647
2637
|
this.eventDispatcher.fireRequestGlue();
|
|
2648
2638
|
}
|
|
2639
|
+
glueReceiverHandler(event) {
|
|
2640
|
+
const data = event.detail;
|
|
2641
|
+
if (!data || !data.glue42) {
|
|
2642
|
+
return;
|
|
2643
|
+
}
|
|
2644
|
+
const glue42Event = data.glue42.event;
|
|
2645
|
+
const foundHandler = this.events[glue42Event];
|
|
2646
|
+
if (!foundHandler) {
|
|
2647
|
+
return;
|
|
2648
|
+
}
|
|
2649
|
+
foundHandler.handle(data.glue42.message);
|
|
2650
|
+
}
|
|
2649
2651
|
handleRequestGlueResponse(data) {
|
|
2650
2652
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2651
2653
|
if (this.glueResponseReceived && this.glueInitialized) {
|
|
@@ -2655,8 +2657,11 @@ class EventReceiver {
|
|
|
2655
2657
|
const { glue } = data;
|
|
2656
2658
|
const glueValidator = this.glueController.validateGlue(glue);
|
|
2657
2659
|
if (!glueValidator.isValid) {
|
|
2658
|
-
|
|
2660
|
+
this.glueController.initializeFailed(glueValidator.error);
|
|
2661
|
+
window.removeEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2662
|
+
return;
|
|
2659
2663
|
}
|
|
2664
|
+
window.removeEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2660
2665
|
this.glueController.initialize(glue);
|
|
2661
2666
|
yield this.eventsController.initialize();
|
|
2662
2667
|
this.eventDispatcher.fireFdc3Ready();
|
|
@@ -1988,7 +1988,7 @@
|
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
1990
|
|
|
1991
|
-
var version = "2.0
|
|
1991
|
+
var version = "2.1.0";
|
|
1992
1992
|
|
|
1993
1993
|
class ApplicationsController {
|
|
1994
1994
|
constructor(glueController) {
|
|
@@ -2068,7 +2068,7 @@
|
|
|
2068
2068
|
return {
|
|
2069
2069
|
provider: "Glue42",
|
|
2070
2070
|
providerVersion: version,
|
|
2071
|
-
fdc3Version: "2.0
|
|
2071
|
+
fdc3Version: "2.0",
|
|
2072
2072
|
optionalFeatures: {
|
|
2073
2073
|
OriginatingAppMetadata: true,
|
|
2074
2074
|
UserChannelMembershipAPIs: true
|
|
@@ -2219,7 +2219,7 @@
|
|
|
2219
2219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2220
2220
|
yield this.initDonePromise;
|
|
2221
2221
|
this.logger.info(`[${commandId}] - addContextListener() invoked for contextType ${contextType} and channelId ${channelId}`);
|
|
2222
|
-
if (this.invokeContextHandlerWithStartupContext) {
|
|
2222
|
+
if (this.invokeContextHandlerWithStartupContext && !channelId) {
|
|
2223
2223
|
this.logger.info(`[${commandId}] - trying to invoke context handler with window context`);
|
|
2224
2224
|
this.handleWindowContextOnOpening(commandId, handler, contextType).catch((err) => this.logger.warn(`[${commandId}] - ${err}`));
|
|
2225
2225
|
}
|
|
@@ -2636,22 +2636,24 @@
|
|
|
2636
2636
|
this.eventDispatcher.fireNotifyStarted();
|
|
2637
2637
|
}
|
|
2638
2638
|
wireCustomEventListener() {
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
if (!data || !data.glue42) {
|
|
2642
|
-
return;
|
|
2643
|
-
}
|
|
2644
|
-
const glue42Event = data.glue42.event;
|
|
2645
|
-
const foundHandler = this.events[glue42Event];
|
|
2646
|
-
if (!foundHandler) {
|
|
2647
|
-
return;
|
|
2648
|
-
}
|
|
2649
|
-
foundHandler.handle(data.glue42.message);
|
|
2650
|
-
});
|
|
2639
|
+
this._glueReceiverHandler = this.glueReceiverHandler.bind(this);
|
|
2640
|
+
window.addEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2651
2641
|
}
|
|
2652
2642
|
handleStart() {
|
|
2653
2643
|
this.eventDispatcher.fireRequestGlue();
|
|
2654
2644
|
}
|
|
2645
|
+
glueReceiverHandler(event) {
|
|
2646
|
+
const data = event.detail;
|
|
2647
|
+
if (!data || !data.glue42) {
|
|
2648
|
+
return;
|
|
2649
|
+
}
|
|
2650
|
+
const glue42Event = data.glue42.event;
|
|
2651
|
+
const foundHandler = this.events[glue42Event];
|
|
2652
|
+
if (!foundHandler) {
|
|
2653
|
+
return;
|
|
2654
|
+
}
|
|
2655
|
+
foundHandler.handle(data.glue42.message);
|
|
2656
|
+
}
|
|
2655
2657
|
handleRequestGlueResponse(data) {
|
|
2656
2658
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2657
2659
|
if (this.glueResponseReceived && this.glueInitialized) {
|
|
@@ -2661,8 +2663,11 @@
|
|
|
2661
2663
|
const { glue } = data;
|
|
2662
2664
|
const glueValidator = this.glueController.validateGlue(glue);
|
|
2663
2665
|
if (!glueValidator.isValid) {
|
|
2664
|
-
|
|
2666
|
+
this.glueController.initializeFailed(glueValidator.error);
|
|
2667
|
+
window.removeEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2668
|
+
return;
|
|
2665
2669
|
}
|
|
2670
|
+
window.removeEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2666
2671
|
this.glueController.initialize(glue);
|
|
2667
2672
|
yield this.eventsController.initialize();
|
|
2668
2673
|
this.eventDispatcher.fireFdc3Ready();
|
package/dist/fdc3.es.js
CHANGED
|
@@ -1971,7 +1971,7 @@ class IntentsController {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
|
-
var version = "2.0
|
|
1974
|
+
var version = "2.1.0";
|
|
1975
1975
|
|
|
1976
1976
|
class ApplicationsController {
|
|
1977
1977
|
constructor(glueController) {
|
|
@@ -2051,7 +2051,7 @@ class ApplicationsController {
|
|
|
2051
2051
|
return {
|
|
2052
2052
|
provider: "Glue42",
|
|
2053
2053
|
providerVersion: version,
|
|
2054
|
-
fdc3Version: "2.0
|
|
2054
|
+
fdc3Version: "2.0",
|
|
2055
2055
|
optionalFeatures: {
|
|
2056
2056
|
OriginatingAppMetadata: true,
|
|
2057
2057
|
UserChannelMembershipAPIs: true
|
|
@@ -2202,7 +2202,7 @@ class ChannelsController {
|
|
|
2202
2202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2203
2203
|
yield this.initDonePromise;
|
|
2204
2204
|
this.logger.info(`[${commandId}] - addContextListener() invoked for contextType ${contextType} and channelId ${channelId}`);
|
|
2205
|
-
if (this.invokeContextHandlerWithStartupContext) {
|
|
2205
|
+
if (this.invokeContextHandlerWithStartupContext && !channelId) {
|
|
2206
2206
|
this.logger.info(`[${commandId}] - trying to invoke context handler with window context`);
|
|
2207
2207
|
this.handleWindowContextOnOpening(commandId, handler, contextType).catch((err) => this.logger.warn(`[${commandId}] - ${err}`));
|
|
2208
2208
|
}
|
|
@@ -2619,22 +2619,24 @@ class EventReceiver {
|
|
|
2619
2619
|
this.eventDispatcher.fireNotifyStarted();
|
|
2620
2620
|
}
|
|
2621
2621
|
wireCustomEventListener() {
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
if (!data || !data.glue42) {
|
|
2625
|
-
return;
|
|
2626
|
-
}
|
|
2627
|
-
const glue42Event = data.glue42.event;
|
|
2628
|
-
const foundHandler = this.events[glue42Event];
|
|
2629
|
-
if (!foundHandler) {
|
|
2630
|
-
return;
|
|
2631
|
-
}
|
|
2632
|
-
foundHandler.handle(data.glue42.message);
|
|
2633
|
-
});
|
|
2622
|
+
this._glueReceiverHandler = this.glueReceiverHandler.bind(this);
|
|
2623
|
+
window.addEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2634
2624
|
}
|
|
2635
2625
|
handleStart() {
|
|
2636
2626
|
this.eventDispatcher.fireRequestGlue();
|
|
2637
2627
|
}
|
|
2628
|
+
glueReceiverHandler(event) {
|
|
2629
|
+
const data = event.detail;
|
|
2630
|
+
if (!data || !data.glue42) {
|
|
2631
|
+
return;
|
|
2632
|
+
}
|
|
2633
|
+
const glue42Event = data.glue42.event;
|
|
2634
|
+
const foundHandler = this.events[glue42Event];
|
|
2635
|
+
if (!foundHandler) {
|
|
2636
|
+
return;
|
|
2637
|
+
}
|
|
2638
|
+
foundHandler.handle(data.glue42.message);
|
|
2639
|
+
}
|
|
2638
2640
|
handleRequestGlueResponse(data) {
|
|
2639
2641
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2640
2642
|
if (this.glueResponseReceived && this.glueInitialized) {
|
|
@@ -2644,8 +2646,11 @@ class EventReceiver {
|
|
|
2644
2646
|
const { glue } = data;
|
|
2645
2647
|
const glueValidator = this.glueController.validateGlue(glue);
|
|
2646
2648
|
if (!glueValidator.isValid) {
|
|
2647
|
-
|
|
2649
|
+
this.glueController.initializeFailed(glueValidator.error);
|
|
2650
|
+
window.removeEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2651
|
+
return;
|
|
2648
2652
|
}
|
|
2653
|
+
window.removeEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2649
2654
|
this.glueController.initialize(glue);
|
|
2650
2655
|
yield this.eventsController.initialize();
|
|
2651
2656
|
this.eventDispatcher.fireFdc3Ready();
|
package/dist/fdc3.umd.js
CHANGED
|
@@ -1977,7 +1977,7 @@
|
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
1979
|
|
|
1980
|
-
var version = "2.0
|
|
1980
|
+
var version = "2.1.0";
|
|
1981
1981
|
|
|
1982
1982
|
class ApplicationsController {
|
|
1983
1983
|
constructor(glueController) {
|
|
@@ -2057,7 +2057,7 @@
|
|
|
2057
2057
|
return {
|
|
2058
2058
|
provider: "Glue42",
|
|
2059
2059
|
providerVersion: version,
|
|
2060
|
-
fdc3Version: "2.0
|
|
2060
|
+
fdc3Version: "2.0",
|
|
2061
2061
|
optionalFeatures: {
|
|
2062
2062
|
OriginatingAppMetadata: true,
|
|
2063
2063
|
UserChannelMembershipAPIs: true
|
|
@@ -2208,7 +2208,7 @@
|
|
|
2208
2208
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2209
2209
|
yield this.initDonePromise;
|
|
2210
2210
|
this.logger.info(`[${commandId}] - addContextListener() invoked for contextType ${contextType} and channelId ${channelId}`);
|
|
2211
|
-
if (this.invokeContextHandlerWithStartupContext) {
|
|
2211
|
+
if (this.invokeContextHandlerWithStartupContext && !channelId) {
|
|
2212
2212
|
this.logger.info(`[${commandId}] - trying to invoke context handler with window context`);
|
|
2213
2213
|
this.handleWindowContextOnOpening(commandId, handler, contextType).catch((err) => this.logger.warn(`[${commandId}] - ${err}`));
|
|
2214
2214
|
}
|
|
@@ -2625,22 +2625,24 @@
|
|
|
2625
2625
|
this.eventDispatcher.fireNotifyStarted();
|
|
2626
2626
|
}
|
|
2627
2627
|
wireCustomEventListener() {
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
if (!data || !data.glue42) {
|
|
2631
|
-
return;
|
|
2632
|
-
}
|
|
2633
|
-
const glue42Event = data.glue42.event;
|
|
2634
|
-
const foundHandler = this.events[glue42Event];
|
|
2635
|
-
if (!foundHandler) {
|
|
2636
|
-
return;
|
|
2637
|
-
}
|
|
2638
|
-
foundHandler.handle(data.glue42.message);
|
|
2639
|
-
});
|
|
2628
|
+
this._glueReceiverHandler = this.glueReceiverHandler.bind(this);
|
|
2629
|
+
window.addEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2640
2630
|
}
|
|
2641
2631
|
handleStart() {
|
|
2642
2632
|
this.eventDispatcher.fireRequestGlue();
|
|
2643
2633
|
}
|
|
2634
|
+
glueReceiverHandler(event) {
|
|
2635
|
+
const data = event.detail;
|
|
2636
|
+
if (!data || !data.glue42) {
|
|
2637
|
+
return;
|
|
2638
|
+
}
|
|
2639
|
+
const glue42Event = data.glue42.event;
|
|
2640
|
+
const foundHandler = this.events[glue42Event];
|
|
2641
|
+
if (!foundHandler) {
|
|
2642
|
+
return;
|
|
2643
|
+
}
|
|
2644
|
+
foundHandler.handle(data.glue42.message);
|
|
2645
|
+
}
|
|
2644
2646
|
handleRequestGlueResponse(data) {
|
|
2645
2647
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2646
2648
|
if (this.glueResponseReceived && this.glueInitialized) {
|
|
@@ -2650,8 +2652,11 @@
|
|
|
2650
2652
|
const { glue } = data;
|
|
2651
2653
|
const glueValidator = this.glueController.validateGlue(glue);
|
|
2652
2654
|
if (!glueValidator.isValid) {
|
|
2653
|
-
|
|
2655
|
+
this.glueController.initializeFailed(glueValidator.error);
|
|
2656
|
+
window.removeEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2657
|
+
return;
|
|
2654
2658
|
}
|
|
2659
|
+
window.removeEventListener(GLUE42_EVENT_NAME, this._glueReceiverHandler);
|
|
2655
2660
|
this.glueController.initialize(glue);
|
|
2656
2661
|
yield this.eventsController.initialize();
|
|
2657
2662
|
this.eventDispatcher.fireFdc3Ready();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interopio/fdc3",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "IO Connect implementation of the FDC3 standard",
|
|
5
5
|
"main": "dist/fdc3.umd.js",
|
|
6
6
|
"module": "dist/fdc3.es.js",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"decoder-validate": "^0.0.2",
|
|
51
51
|
"nanoid": "^4.0.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "3cf187baeebe31c1d70f0e535ff19e7f4cce501f"
|
|
54
54
|
}
|