@interopio/browser 3.5.7 → 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.
@@ -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,
@@ -3676,6 +3686,7 @@
3676
3686
  logger;
3677
3687
  channelsController;
3678
3688
  sessionController;
3689
+ interop;
3679
3690
  handlePlatformShutdown() {
3680
3691
  this.registry.clear();
3681
3692
  this.applications = [];
@@ -3691,6 +3702,7 @@
3691
3702
  this.bridge = ioc.bridge;
3692
3703
  this.channelsController = ioc.channelsController;
3693
3704
  this.sessionController = ioc.sessionController;
3705
+ this.interop = coreGlue.interop;
3694
3706
  this.platformRegistration = this.registerWithPlatform();
3695
3707
  await this.platformRegistration;
3696
3708
  this.logger.trace("registration with the platform successful, attaching the appManager property to glue and returning");
@@ -3740,8 +3752,17 @@
3740
3752
  id: options?.reuseId,
3741
3753
  forceChromeTab: options?.forceTab,
3742
3754
  layoutComponentId: options?.layoutComponentId,
3743
- channelId: options?.channelId
3755
+ channelId: options?.channelId,
3756
+ startReason: {
3757
+ originApp: {
3758
+ name: this.me?.application.name,
3759
+ interopInstance: this.interop.instance.instance
3760
+ }
3761
+ }
3744
3762
  };
3763
+ if (options?.originIntentRequest) {
3764
+ startOptions.startReason.intentRequest = options.originIntentRequest;
3765
+ }
3745
3766
  const openResult = await this.bridge.send("appManager", operations$9.applicationStart, startOptions);
3746
3767
  const app = this.applications.find((a) => a.name === openResult.applicationName);
3747
3768
  return this.ioc.buildInstance(openResult, app);
@@ -7023,7 +7044,7 @@
7023
7044
  }
7024
7045
  }
7025
7046
 
7026
- var version$1 = "3.5.7";
7047
+ var version$1 = "3.5.8";
7027
7048
 
7028
7049
  const createFactoryFunction = (coreFactoryFunction) => {
7029
7050
  let cachedApiPromise;