@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/changelog.md
CHANGED
package/dist/browser.es.js
CHANGED
|
@@ -2228,21 +2228,6 @@ const appHelloSuccessDecoder = object$1({
|
|
|
2228
2228
|
const basicInstanceDataDecoder = object$1({
|
|
2229
2229
|
id: nonEmptyStringDecoder
|
|
2230
2230
|
});
|
|
2231
|
-
const applicationStartConfigDecoder = object$1({
|
|
2232
|
-
name: nonEmptyStringDecoder,
|
|
2233
|
-
waitForAGMReady: boolean$1(),
|
|
2234
|
-
id: optional$1(nonEmptyStringDecoder),
|
|
2235
|
-
context: optional$1(anyJson$1()),
|
|
2236
|
-
top: optional$1(number$1()),
|
|
2237
|
-
left: optional$1(number$1()),
|
|
2238
|
-
width: optional$1(nonNegativeNumberDecoder),
|
|
2239
|
-
height: optional$1(nonNegativeNumberDecoder),
|
|
2240
|
-
relativeTo: optional$1(nonEmptyStringDecoder),
|
|
2241
|
-
relativeDirection: optional$1(windowRelativeDirectionDecoder),
|
|
2242
|
-
forceChromeTab: optional$1(boolean$1()),
|
|
2243
|
-
layoutComponentId: optional$1(nonEmptyStringDecoder),
|
|
2244
|
-
channelId: optional$1(nonEmptyStringDecoder)
|
|
2245
|
-
});
|
|
2246
2231
|
const layoutTypeDecoder = oneOf$1(constant$1("Global"), constant$1("Activity"), constant$1("ApplicationDefault"), constant$1("Swimlane"), constant$1("Workspace"));
|
|
2247
2232
|
const componentTypeDecoder = oneOf$1(constant$1("application"), constant$1("activity"));
|
|
2248
2233
|
const windowComponentStateDecoder = object$1({
|
|
@@ -2451,6 +2436,30 @@ const intentRequestDecoder = object$1({
|
|
|
2451
2436
|
waitUserResponseIndefinitely: optional$1(boolean$1()),
|
|
2452
2437
|
clearSavedHandler: optional$1(boolean$1())
|
|
2453
2438
|
});
|
|
2439
|
+
const originAppDecoder = object$1({
|
|
2440
|
+
interopInstance: nonEmptyStringDecoder,
|
|
2441
|
+
name: optional$1(nonEmptyStringDecoder)
|
|
2442
|
+
});
|
|
2443
|
+
const startReasonDecoder = object$1({
|
|
2444
|
+
originApp: originAppDecoder,
|
|
2445
|
+
intentRequest: optional$1(intentRequestDecoder)
|
|
2446
|
+
});
|
|
2447
|
+
const applicationStartConfigDecoder = object$1({
|
|
2448
|
+
name: nonEmptyStringDecoder,
|
|
2449
|
+
waitForAGMReady: boolean$1(),
|
|
2450
|
+
id: optional$1(nonEmptyStringDecoder),
|
|
2451
|
+
context: optional$1(anyJson$1()),
|
|
2452
|
+
top: optional$1(number$1()),
|
|
2453
|
+
left: optional$1(number$1()),
|
|
2454
|
+
width: optional$1(nonNegativeNumberDecoder),
|
|
2455
|
+
height: optional$1(nonNegativeNumberDecoder),
|
|
2456
|
+
relativeTo: optional$1(nonEmptyStringDecoder),
|
|
2457
|
+
relativeDirection: optional$1(windowRelativeDirectionDecoder),
|
|
2458
|
+
forceChromeTab: optional$1(boolean$1()),
|
|
2459
|
+
layoutComponentId: optional$1(nonEmptyStringDecoder),
|
|
2460
|
+
channelId: optional$1(nonEmptyStringDecoder),
|
|
2461
|
+
startReason: startReasonDecoder
|
|
2462
|
+
});
|
|
2454
2463
|
const raiseRequestDecoder = oneOf$1(nonEmptyStringDecoder, intentRequestDecoder);
|
|
2455
2464
|
const resolverConfigDecoder = object$1({
|
|
2456
2465
|
enabled: boolean$1(),
|
|
@@ -2777,6 +2786,7 @@ const startApplicationOptionsDecoder = optional$1(object$1({
|
|
|
2777
2786
|
waitForAGMReady: optional$1(boolean$1()),
|
|
2778
2787
|
channelId: optional$1(nonEmptyStringDecoder),
|
|
2779
2788
|
reuseId: optional$1(nonEmptyStringDecoder),
|
|
2789
|
+
originIntentRequest: optional$1(intentRequestDecoder)
|
|
2780
2790
|
}));
|
|
2781
2791
|
const joinChannelDataDecoder = object$1({
|
|
2782
2792
|
channel: nonEmptyStringDecoder,
|
|
@@ -2808,6 +2818,9 @@ const getPrefsResultDecoder = object$1({
|
|
|
2808
2818
|
const getAllPrefsResultDecoder = object$1({
|
|
2809
2819
|
all: array$1(appPreferencesDecoder),
|
|
2810
2820
|
});
|
|
2821
|
+
const subscriberRegisterConfigDecoder = object$1({
|
|
2822
|
+
interopId: nonEmptyStringDecoder,
|
|
2823
|
+
});
|
|
2811
2824
|
const changePrefsDataDecoder = object$1({
|
|
2812
2825
|
app: nonEmptyStringDecoder,
|
|
2813
2826
|
data: object$1(),
|
|
@@ -3670,6 +3683,7 @@ class AppManagerController {
|
|
|
3670
3683
|
logger;
|
|
3671
3684
|
channelsController;
|
|
3672
3685
|
sessionController;
|
|
3686
|
+
interop;
|
|
3673
3687
|
handlePlatformShutdown() {
|
|
3674
3688
|
this.registry.clear();
|
|
3675
3689
|
this.applications = [];
|
|
@@ -3685,6 +3699,7 @@ class AppManagerController {
|
|
|
3685
3699
|
this.bridge = ioc.bridge;
|
|
3686
3700
|
this.channelsController = ioc.channelsController;
|
|
3687
3701
|
this.sessionController = ioc.sessionController;
|
|
3702
|
+
this.interop = coreGlue.interop;
|
|
3688
3703
|
this.platformRegistration = this.registerWithPlatform();
|
|
3689
3704
|
await this.platformRegistration;
|
|
3690
3705
|
this.logger.trace("registration with the platform successful, attaching the appManager property to glue and returning");
|
|
@@ -3734,8 +3749,17 @@ class AppManagerController {
|
|
|
3734
3749
|
id: options?.reuseId,
|
|
3735
3750
|
forceChromeTab: options?.forceTab,
|
|
3736
3751
|
layoutComponentId: options?.layoutComponentId,
|
|
3737
|
-
channelId: options?.channelId
|
|
3752
|
+
channelId: options?.channelId,
|
|
3753
|
+
startReason: {
|
|
3754
|
+
originApp: {
|
|
3755
|
+
name: this.me?.application.name,
|
|
3756
|
+
interopInstance: this.interop.instance.instance
|
|
3757
|
+
}
|
|
3758
|
+
}
|
|
3738
3759
|
};
|
|
3760
|
+
if (options?.originIntentRequest) {
|
|
3761
|
+
startOptions.startReason.intentRequest = options.originIntentRequest;
|
|
3762
|
+
}
|
|
3739
3763
|
const openResult = await this.bridge.send("appManager", operations$9.applicationStart, startOptions);
|
|
3740
3764
|
const app = this.applications.find((a) => a.name === openResult.applicationName);
|
|
3741
3765
|
return this.ioc.buildInstance(openResult, app);
|
|
@@ -6407,6 +6431,7 @@ const operations$1 = {
|
|
|
6407
6431
|
update: { name: "update", dataDecoder: changePrefsDataDecoder },
|
|
6408
6432
|
prefsChanged: { name: "prefsChanged", dataDecoder: getPrefsResultDecoder },
|
|
6409
6433
|
prefsHello: { name: "prefsHello", resultDecoder: prefsHelloSuccessDecoder },
|
|
6434
|
+
registerSubscriber: { name: "registerSubscriber", dataDecoder: subscriberRegisterConfigDecoder },
|
|
6410
6435
|
};
|
|
6411
6436
|
|
|
6412
6437
|
class PrefsController {
|
|
@@ -6417,6 +6442,8 @@ class PrefsController {
|
|
|
6417
6442
|
platformAppName;
|
|
6418
6443
|
registry = CallbackRegistryFactory$1();
|
|
6419
6444
|
validNonExistentApps;
|
|
6445
|
+
signaledSubscription = false;
|
|
6446
|
+
interopId;
|
|
6420
6447
|
handlePlatformShutdown() {
|
|
6421
6448
|
this.registry.clear();
|
|
6422
6449
|
}
|
|
@@ -6424,6 +6451,7 @@ class PrefsController {
|
|
|
6424
6451
|
this.logger = coreGlue.logger.subLogger("prefs.controller.web");
|
|
6425
6452
|
this.logger.trace("starting the web prefs controller");
|
|
6426
6453
|
this.addOperationsExecutors();
|
|
6454
|
+
this.interopId = coreGlue.interop.instance.instance;
|
|
6427
6455
|
this.bridge = ioc.bridge;
|
|
6428
6456
|
this.config = ioc.config;
|
|
6429
6457
|
this.appManagerController = ioc.appManagerController;
|
|
@@ -6520,6 +6548,14 @@ class PrefsController {
|
|
|
6520
6548
|
if (typeof callback !== "function") {
|
|
6521
6549
|
return ioError.raiseError("Cannot subscribe to prefs, because the provided callback is not a function!");
|
|
6522
6550
|
}
|
|
6551
|
+
if (!this.signaledSubscription) {
|
|
6552
|
+
this.bridge.send("prefs", operations$1.registerSubscriber, { interopId: this.interopId }, undefined, { includeOperationCheck: true })
|
|
6553
|
+
.catch((error) => {
|
|
6554
|
+
this.logger.warn("Failed to register subscriber for prefs");
|
|
6555
|
+
this.logger.error(error);
|
|
6556
|
+
});
|
|
6557
|
+
this.signaledSubscription = true;
|
|
6558
|
+
}
|
|
6523
6559
|
const subscriptionKey = this.getSubscriptionKey(verifiedApp);
|
|
6524
6560
|
this.get(verifiedApp).then(callback);
|
|
6525
6561
|
return this.registry.add(subscriptionKey, callback);
|
|
@@ -7017,7 +7053,7 @@ class IoC {
|
|
|
7017
7053
|
}
|
|
7018
7054
|
}
|
|
7019
7055
|
|
|
7020
|
-
var version$1 = "3.5.
|
|
7056
|
+
var version$1 = "3.5.9";
|
|
7021
7057
|
|
|
7022
7058
|
const createFactoryFunction = (coreFactoryFunction) => {
|
|
7023
7059
|
let cachedApiPromise;
|