@interopio/browser 3.5.7 → 3.5.9
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 +4 -0
- package/dist/browser.es.js +53 -17
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.umd.js +53 -17
- package/dist/browser.umd.js.map +1 -1
- package/dist/browser.umd.min.js +1 -1
- package/package.json +2 -2
package/dist/browser.umd.js
CHANGED
|
@@ -2234,21 +2234,6 @@
|
|
|
2234
2234
|
const basicInstanceDataDecoder = object$1({
|
|
2235
2235
|
id: nonEmptyStringDecoder
|
|
2236
2236
|
});
|
|
2237
|
-
const applicationStartConfigDecoder = object$1({
|
|
2238
|
-
name: nonEmptyStringDecoder,
|
|
2239
|
-
waitForAGMReady: boolean$1(),
|
|
2240
|
-
id: optional$1(nonEmptyStringDecoder),
|
|
2241
|
-
context: optional$1(anyJson$1()),
|
|
2242
|
-
top: optional$1(number$1()),
|
|
2243
|
-
left: optional$1(number$1()),
|
|
2244
|
-
width: optional$1(nonNegativeNumberDecoder),
|
|
2245
|
-
height: optional$1(nonNegativeNumberDecoder),
|
|
2246
|
-
relativeTo: optional$1(nonEmptyStringDecoder),
|
|
2247
|
-
relativeDirection: optional$1(windowRelativeDirectionDecoder),
|
|
2248
|
-
forceChromeTab: optional$1(boolean$1()),
|
|
2249
|
-
layoutComponentId: optional$1(nonEmptyStringDecoder),
|
|
2250
|
-
channelId: optional$1(nonEmptyStringDecoder)
|
|
2251
|
-
});
|
|
2252
2237
|
const layoutTypeDecoder = oneOf$1(constant$1("Global"), constant$1("Activity"), constant$1("ApplicationDefault"), constant$1("Swimlane"), constant$1("Workspace"));
|
|
2253
2238
|
const componentTypeDecoder = oneOf$1(constant$1("application"), constant$1("activity"));
|
|
2254
2239
|
const windowComponentStateDecoder = object$1({
|
|
@@ -2457,6 +2442,30 @@
|
|
|
2457
2442
|
waitUserResponseIndefinitely: optional$1(boolean$1()),
|
|
2458
2443
|
clearSavedHandler: optional$1(boolean$1())
|
|
2459
2444
|
});
|
|
2445
|
+
const originAppDecoder = object$1({
|
|
2446
|
+
interopInstance: nonEmptyStringDecoder,
|
|
2447
|
+
name: optional$1(nonEmptyStringDecoder)
|
|
2448
|
+
});
|
|
2449
|
+
const startReasonDecoder = object$1({
|
|
2450
|
+
originApp: originAppDecoder,
|
|
2451
|
+
intentRequest: optional$1(intentRequestDecoder)
|
|
2452
|
+
});
|
|
2453
|
+
const applicationStartConfigDecoder = object$1({
|
|
2454
|
+
name: nonEmptyStringDecoder,
|
|
2455
|
+
waitForAGMReady: boolean$1(),
|
|
2456
|
+
id: optional$1(nonEmptyStringDecoder),
|
|
2457
|
+
context: optional$1(anyJson$1()),
|
|
2458
|
+
top: optional$1(number$1()),
|
|
2459
|
+
left: optional$1(number$1()),
|
|
2460
|
+
width: optional$1(nonNegativeNumberDecoder),
|
|
2461
|
+
height: optional$1(nonNegativeNumberDecoder),
|
|
2462
|
+
relativeTo: optional$1(nonEmptyStringDecoder),
|
|
2463
|
+
relativeDirection: optional$1(windowRelativeDirectionDecoder),
|
|
2464
|
+
forceChromeTab: optional$1(boolean$1()),
|
|
2465
|
+
layoutComponentId: optional$1(nonEmptyStringDecoder),
|
|
2466
|
+
channelId: optional$1(nonEmptyStringDecoder),
|
|
2467
|
+
startReason: startReasonDecoder
|
|
2468
|
+
});
|
|
2460
2469
|
const raiseRequestDecoder = oneOf$1(nonEmptyStringDecoder, intentRequestDecoder);
|
|
2461
2470
|
const resolverConfigDecoder = object$1({
|
|
2462
2471
|
enabled: boolean$1(),
|
|
@@ -2783,6 +2792,7 @@
|
|
|
2783
2792
|
waitForAGMReady: optional$1(boolean$1()),
|
|
2784
2793
|
channelId: optional$1(nonEmptyStringDecoder),
|
|
2785
2794
|
reuseId: optional$1(nonEmptyStringDecoder),
|
|
2795
|
+
originIntentRequest: optional$1(intentRequestDecoder)
|
|
2786
2796
|
}));
|
|
2787
2797
|
const joinChannelDataDecoder = object$1({
|
|
2788
2798
|
channel: nonEmptyStringDecoder,
|
|
@@ -2814,6 +2824,9 @@
|
|
|
2814
2824
|
const getAllPrefsResultDecoder = object$1({
|
|
2815
2825
|
all: array$1(appPreferencesDecoder),
|
|
2816
2826
|
});
|
|
2827
|
+
const subscriberRegisterConfigDecoder = object$1({
|
|
2828
|
+
interopId: nonEmptyStringDecoder,
|
|
2829
|
+
});
|
|
2817
2830
|
const changePrefsDataDecoder = object$1({
|
|
2818
2831
|
app: nonEmptyStringDecoder,
|
|
2819
2832
|
data: object$1(),
|
|
@@ -3676,6 +3689,7 @@
|
|
|
3676
3689
|
logger;
|
|
3677
3690
|
channelsController;
|
|
3678
3691
|
sessionController;
|
|
3692
|
+
interop;
|
|
3679
3693
|
handlePlatformShutdown() {
|
|
3680
3694
|
this.registry.clear();
|
|
3681
3695
|
this.applications = [];
|
|
@@ -3691,6 +3705,7 @@
|
|
|
3691
3705
|
this.bridge = ioc.bridge;
|
|
3692
3706
|
this.channelsController = ioc.channelsController;
|
|
3693
3707
|
this.sessionController = ioc.sessionController;
|
|
3708
|
+
this.interop = coreGlue.interop;
|
|
3694
3709
|
this.platformRegistration = this.registerWithPlatform();
|
|
3695
3710
|
await this.platformRegistration;
|
|
3696
3711
|
this.logger.trace("registration with the platform successful, attaching the appManager property to glue and returning");
|
|
@@ -3740,8 +3755,17 @@
|
|
|
3740
3755
|
id: options?.reuseId,
|
|
3741
3756
|
forceChromeTab: options?.forceTab,
|
|
3742
3757
|
layoutComponentId: options?.layoutComponentId,
|
|
3743
|
-
channelId: options?.channelId
|
|
3758
|
+
channelId: options?.channelId,
|
|
3759
|
+
startReason: {
|
|
3760
|
+
originApp: {
|
|
3761
|
+
name: this.me?.application.name,
|
|
3762
|
+
interopInstance: this.interop.instance.instance
|
|
3763
|
+
}
|
|
3764
|
+
}
|
|
3744
3765
|
};
|
|
3766
|
+
if (options?.originIntentRequest) {
|
|
3767
|
+
startOptions.startReason.intentRequest = options.originIntentRequest;
|
|
3768
|
+
}
|
|
3745
3769
|
const openResult = await this.bridge.send("appManager", operations$9.applicationStart, startOptions);
|
|
3746
3770
|
const app = this.applications.find((a) => a.name === openResult.applicationName);
|
|
3747
3771
|
return this.ioc.buildInstance(openResult, app);
|
|
@@ -6413,6 +6437,7 @@
|
|
|
6413
6437
|
update: { name: "update", dataDecoder: changePrefsDataDecoder },
|
|
6414
6438
|
prefsChanged: { name: "prefsChanged", dataDecoder: getPrefsResultDecoder },
|
|
6415
6439
|
prefsHello: { name: "prefsHello", resultDecoder: prefsHelloSuccessDecoder },
|
|
6440
|
+
registerSubscriber: { name: "registerSubscriber", dataDecoder: subscriberRegisterConfigDecoder },
|
|
6416
6441
|
};
|
|
6417
6442
|
|
|
6418
6443
|
class PrefsController {
|
|
@@ -6423,6 +6448,8 @@
|
|
|
6423
6448
|
platformAppName;
|
|
6424
6449
|
registry = CallbackRegistryFactory$1();
|
|
6425
6450
|
validNonExistentApps;
|
|
6451
|
+
signaledSubscription = false;
|
|
6452
|
+
interopId;
|
|
6426
6453
|
handlePlatformShutdown() {
|
|
6427
6454
|
this.registry.clear();
|
|
6428
6455
|
}
|
|
@@ -6430,6 +6457,7 @@
|
|
|
6430
6457
|
this.logger = coreGlue.logger.subLogger("prefs.controller.web");
|
|
6431
6458
|
this.logger.trace("starting the web prefs controller");
|
|
6432
6459
|
this.addOperationsExecutors();
|
|
6460
|
+
this.interopId = coreGlue.interop.instance.instance;
|
|
6433
6461
|
this.bridge = ioc.bridge;
|
|
6434
6462
|
this.config = ioc.config;
|
|
6435
6463
|
this.appManagerController = ioc.appManagerController;
|
|
@@ -6526,6 +6554,14 @@
|
|
|
6526
6554
|
if (typeof callback !== "function") {
|
|
6527
6555
|
return ioError.raiseError("Cannot subscribe to prefs, because the provided callback is not a function!");
|
|
6528
6556
|
}
|
|
6557
|
+
if (!this.signaledSubscription) {
|
|
6558
|
+
this.bridge.send("prefs", operations$1.registerSubscriber, { interopId: this.interopId }, undefined, { includeOperationCheck: true })
|
|
6559
|
+
.catch((error) => {
|
|
6560
|
+
this.logger.warn("Failed to register subscriber for prefs");
|
|
6561
|
+
this.logger.error(error);
|
|
6562
|
+
});
|
|
6563
|
+
this.signaledSubscription = true;
|
|
6564
|
+
}
|
|
6529
6565
|
const subscriptionKey = this.getSubscriptionKey(verifiedApp);
|
|
6530
6566
|
this.get(verifiedApp).then(callback);
|
|
6531
6567
|
return this.registry.add(subscriptionKey, callback);
|
|
@@ -7023,7 +7059,7 @@
|
|
|
7023
7059
|
}
|
|
7024
7060
|
}
|
|
7025
7061
|
|
|
7026
|
-
var version$1 = "3.5.
|
|
7062
|
+
var version$1 = "3.5.9";
|
|
7027
7063
|
|
|
7028
7064
|
const createFactoryFunction = (coreFactoryFunction) => {
|
|
7029
7065
|
let cachedApiPromise;
|