@interopio/browser 3.5.6 → 3.5.8
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/browser.d.ts +19 -1
- package/changelog.md +4 -0
- package/dist/browser.es.js +38 -17
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.umd.js +38 -17
- package/dist/browser.umd.js.map +1 -1
- package/dist/browser.umd.min.js +1 -1
- package/package.json +3 -4
package/browser.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { IOConnectCore } from "@interopio/core";
|
|
|
6
6
|
import { IOConnectDesktop } from "@interopio/desktop";
|
|
7
7
|
import { IOConnectWorkspaces } from "@interopio/workspaces-api";
|
|
8
8
|
import { IOConnectSearch } from "@interopio/search-api";
|
|
9
|
-
import { Context as FDC3Context } from "@finos/fdc3";
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Factory function that creates a new ioconnect instance.
|
|
@@ -1314,6 +1313,25 @@ export namespace IOConnectBrowser {
|
|
|
1314
1313
|
data?: any;
|
|
1315
1314
|
}
|
|
1316
1315
|
|
|
1316
|
+
export interface FDC3Context {
|
|
1317
|
+
/**
|
|
1318
|
+
* Context data objects may contain equivalent key-value pairs for identifying and looking up context types, with optional identifiers to support various applications,
|
|
1319
|
+
* though some types may require at least one identifier.
|
|
1320
|
+
*/
|
|
1321
|
+
id?: {
|
|
1322
|
+
[key: string]: any;
|
|
1323
|
+
};
|
|
1324
|
+
/**
|
|
1325
|
+
* Context data objects may include a "name" property for additional information or display, with some derived types making it mandatory based on the use case.
|
|
1326
|
+
*/
|
|
1327
|
+
name?: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Required field in the FDC3 context data schema, essential for routing context data and for intent discovery within the FDC3 ecosystem.
|
|
1330
|
+
*/
|
|
1331
|
+
type: string;
|
|
1332
|
+
[property: string]: any;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1317
1335
|
/**
|
|
1318
1336
|
* Channel context object.
|
|
1319
1337
|
*/
|
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,
|
|
@@ -3670,6 +3680,7 @@ class AppManagerController {
|
|
|
3670
3680
|
logger;
|
|
3671
3681
|
channelsController;
|
|
3672
3682
|
sessionController;
|
|
3683
|
+
interop;
|
|
3673
3684
|
handlePlatformShutdown() {
|
|
3674
3685
|
this.registry.clear();
|
|
3675
3686
|
this.applications = [];
|
|
@@ -3685,6 +3696,7 @@ class AppManagerController {
|
|
|
3685
3696
|
this.bridge = ioc.bridge;
|
|
3686
3697
|
this.channelsController = ioc.channelsController;
|
|
3687
3698
|
this.sessionController = ioc.sessionController;
|
|
3699
|
+
this.interop = coreGlue.interop;
|
|
3688
3700
|
this.platformRegistration = this.registerWithPlatform();
|
|
3689
3701
|
await this.platformRegistration;
|
|
3690
3702
|
this.logger.trace("registration with the platform successful, attaching the appManager property to glue and returning");
|
|
@@ -3734,8 +3746,17 @@ class AppManagerController {
|
|
|
3734
3746
|
id: options?.reuseId,
|
|
3735
3747
|
forceChromeTab: options?.forceTab,
|
|
3736
3748
|
layoutComponentId: options?.layoutComponentId,
|
|
3737
|
-
channelId: options?.channelId
|
|
3749
|
+
channelId: options?.channelId,
|
|
3750
|
+
startReason: {
|
|
3751
|
+
originApp: {
|
|
3752
|
+
name: this.me?.application.name,
|
|
3753
|
+
interopInstance: this.interop.instance.instance
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3738
3756
|
};
|
|
3757
|
+
if (options?.originIntentRequest) {
|
|
3758
|
+
startOptions.startReason.intentRequest = options.originIntentRequest;
|
|
3759
|
+
}
|
|
3739
3760
|
const openResult = await this.bridge.send("appManager", operations$9.applicationStart, startOptions);
|
|
3740
3761
|
const app = this.applications.find((a) => a.name === openResult.applicationName);
|
|
3741
3762
|
return this.ioc.buildInstance(openResult, app);
|
|
@@ -7017,7 +7038,7 @@ class IoC {
|
|
|
7017
7038
|
}
|
|
7018
7039
|
}
|
|
7019
7040
|
|
|
7020
|
-
var version$1 = "3.5.
|
|
7041
|
+
var version$1 = "3.5.8";
|
|
7021
7042
|
|
|
7022
7043
|
const createFactoryFunction = (coreFactoryFunction) => {
|
|
7023
7044
|
let cachedApiPromise;
|