@openfin/remote-adapter 37.80.33 → 37.80.35

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.
@@ -966,7 +966,7 @@ declare type ApplicationIdentity_2 = {
966
966
  * @interface
967
967
  */
968
968
  declare type ApplicationInfo = {
969
- initialOptions: ApplicationCreationOptions;
969
+ initialOptions: ApplicationCreationOptions | PlatformOptions;
970
970
  launchMode: string;
971
971
  manifest: Manifest & {
972
972
  [key: string]: any;
@@ -8363,6 +8363,7 @@ declare type LaunchExternalProcessRule = {
8363
8363
  */
8364
8364
  declare type LaunchIntoPlatformPayload = {
8365
8365
  manifest: any;
8366
+ manifestUrl?: string;
8366
8367
  };
8367
8368
 
8368
8369
  /**
@@ -11210,6 +11211,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11210
11211
  * The provider url.
11211
11212
  */
11212
11213
  providerUrl?: string;
11214
+ /**
11215
+ * @defaultValue true
11216
+ *
11217
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11218
+ *
11219
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11220
+ */
11221
+ allowLaunchIntoPlatform?: boolean;
11213
11222
  };
11214
11223
 
11215
11224
  /**
@@ -966,7 +966,7 @@ declare type ApplicationIdentity_2 = {
966
966
  * @interface
967
967
  */
968
968
  declare type ApplicationInfo = {
969
- initialOptions: ApplicationCreationOptions;
969
+ initialOptions: ApplicationCreationOptions | PlatformOptions;
970
970
  launchMode: string;
971
971
  manifest: Manifest & {
972
972
  [key: string]: any;
@@ -8363,6 +8363,7 @@ declare type LaunchExternalProcessRule = {
8363
8363
  */
8364
8364
  declare type LaunchIntoPlatformPayload = {
8365
8365
  manifest: any;
8366
+ manifestUrl?: string;
8366
8367
  };
8367
8368
 
8368
8369
  /**
@@ -11210,6 +11211,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11210
11211
  * The provider url.
11211
11212
  */
11212
11213
  providerUrl?: string;
11214
+ /**
11215
+ * @defaultValue true
11216
+ *
11217
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11218
+ *
11219
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11220
+ */
11221
+ allowLaunchIntoPlatform?: boolean;
11213
11222
  };
11214
11223
 
11215
11224
  /**
@@ -966,7 +966,7 @@ declare type ApplicationIdentity_2 = {
966
966
  * @interface
967
967
  */
968
968
  declare type ApplicationInfo = {
969
- initialOptions: ApplicationCreationOptions;
969
+ initialOptions: ApplicationCreationOptions | PlatformOptions;
970
970
  launchMode: string;
971
971
  manifest: Manifest & {
972
972
  [key: string]: any;
@@ -8363,6 +8363,7 @@ declare type LaunchExternalProcessRule = {
8363
8363
  */
8364
8364
  declare type LaunchIntoPlatformPayload = {
8365
8365
  manifest: any;
8366
+ manifestUrl?: string;
8366
8367
  };
8367
8368
 
8368
8369
  /**
@@ -11210,6 +11211,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11210
11211
  * The provider url.
11211
11212
  */
11212
11213
  providerUrl?: string;
11214
+ /**
11215
+ * @defaultValue true
11216
+ *
11217
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11218
+ *
11219
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11220
+ */
11221
+ allowLaunchIntoPlatform?: boolean;
11213
11222
  };
11214
11223
 
11215
11224
  /**
@@ -972,7 +972,7 @@ declare type ApplicationIdentity_2 = {
972
972
  * @interface
973
973
  */
974
974
  declare type ApplicationInfo = {
975
- initialOptions: ApplicationCreationOptions;
975
+ initialOptions: ApplicationCreationOptions | PlatformOptions;
976
976
  launchMode: string;
977
977
  manifest: Manifest & {
978
978
  [key: string]: any;
@@ -8476,6 +8476,7 @@ declare type LaunchExternalProcessRule = {
8476
8476
  */
8477
8477
  declare type LaunchIntoPlatformPayload = {
8478
8478
  manifest: any;
8479
+ manifestUrl?: string;
8479
8480
  };
8480
8481
 
8481
8482
  /**
@@ -11554,6 +11555,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11554
11555
  * The provider url.
11555
11556
  */
11556
11557
  providerUrl?: string;
11558
+ /**
11559
+ * @defaultValue true
11560
+ *
11561
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11562
+ *
11563
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11564
+ */
11565
+ allowLaunchIntoPlatform?: boolean;
11557
11566
  };
11558
11567
 
11559
11568
  /**
@@ -14525,12 +14525,12 @@ class Platform extends base_1$5.EmitterBase {
14525
14525
  * @experimental
14526
14526
  */
14527
14527
  async launchContentManifest(manifestUrl) {
14528
- this.wire.sendAction('platform-launch-content-manifest', this.identity).catch((e) => {
14528
+ this.wire.sendAction('platform-launch-content-manifest', this.identity).catch(() => {
14529
14529
  // don't expose
14530
14530
  });
14531
14531
  const client = await this.getClient();
14532
14532
  const manifest = await this.fetchManifest(manifestUrl);
14533
- client.dispatch('launch-into-platform', { manifest });
14533
+ client.dispatch('launch-into-platform', { manifest, manifestUrl });
14534
14534
  return this;
14535
14535
  }
14536
14536
  /**
@@ -15165,16 +15165,16 @@ class LayoutModule extends base_1$3.Base {
15165
15165
  __classPrivateFieldSet$1(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
15166
15166
  await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$1(this, _LayoutModule_layoutManager, "f"), options);
15167
15167
  if (!options.layoutManagerOverride) {
15168
- // in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
15168
+ // CORE-1081 to be removed when we actually delete the `layoutManager` prop
15169
+ // in single-layout case, we return the undocumented layoutManager type
15169
15170
  const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
15170
- const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$1(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
15171
- return __classPrivateFieldGet$1(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
15171
+ return __classPrivateFieldGet$1(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
15172
15172
  }
15173
15173
  return this.wrapSync(this.fin.me.identity);
15174
15174
  };
15175
- _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
15175
+ _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity) => {
15176
15176
  const msg = '[Layout] You are using a deprecated property `layoutManager` - it will throw if you access it starting in v37.';
15177
- const managerProxy = new Proxy(layoutManager, {
15177
+ const managerProxy = new Proxy({}, {
15178
15178
  get(target, key) {
15179
15179
  console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
15180
15180
  throw new Error(msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "37.80.33",
3
+ "version": "37.80.35",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,