@openfin/core 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;
@@ -8320,6 +8320,7 @@ declare type LaunchExternalProcessRule = {
8320
8320
  */
8321
8321
  declare type LaunchIntoPlatformPayload = {
8322
8322
  manifest: any;
8323
+ manifestUrl?: string;
8323
8324
  };
8324
8325
 
8325
8326
  /**
@@ -11168,6 +11169,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11168
11169
  * The provider url.
11169
11170
  */
11170
11171
  providerUrl?: string;
11172
+ /**
11173
+ * @defaultValue true
11174
+ *
11175
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11176
+ *
11177
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11178
+ */
11179
+ allowLaunchIntoPlatform?: boolean;
11171
11180
  };
11172
11181
 
11173
11182
  /**
@@ -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;
@@ -8320,6 +8320,7 @@ declare type LaunchExternalProcessRule = {
8320
8320
  */
8321
8321
  declare type LaunchIntoPlatformPayload = {
8322
8322
  manifest: any;
8323
+ manifestUrl?: string;
8323
8324
  };
8324
8325
 
8325
8326
  /**
@@ -11168,6 +11169,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11168
11169
  * The provider url.
11169
11170
  */
11170
11171
  providerUrl?: string;
11172
+ /**
11173
+ * @defaultValue true
11174
+ *
11175
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11176
+ *
11177
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11178
+ */
11179
+ allowLaunchIntoPlatform?: boolean;
11171
11180
  };
11172
11181
 
11173
11182
  /**
@@ -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;
@@ -8320,6 +8320,7 @@ declare type LaunchExternalProcessRule = {
8320
8320
  */
8321
8321
  declare type LaunchIntoPlatformPayload = {
8322
8322
  manifest: any;
8323
+ manifestUrl?: string;
8323
8324
  };
8324
8325
 
8325
8326
  /**
@@ -11168,6 +11169,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11168
11169
  * The provider url.
11169
11170
  */
11170
11171
  providerUrl?: string;
11172
+ /**
11173
+ * @defaultValue true
11174
+ *
11175
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11176
+ *
11177
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11178
+ */
11179
+ allowLaunchIntoPlatform?: boolean;
11171
11180
  };
11172
11181
 
11173
11182
  /**
package/out/mock.d.ts CHANGED
@@ -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;
@@ -8433,6 +8433,7 @@ declare type LaunchExternalProcessRule = {
8433
8433
  */
8434
8434
  declare type LaunchIntoPlatformPayload = {
8435
8435
  manifest: any;
8436
+ manifestUrl?: string;
8436
8437
  };
8437
8438
 
8438
8439
  /**
@@ -11512,6 +11513,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11512
11513
  * The provider url.
11513
11514
  */
11514
11515
  providerUrl?: string;
11516
+ /**
11517
+ * @defaultValue true
11518
+ *
11519
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11520
+ *
11521
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11522
+ */
11523
+ allowLaunchIntoPlatform?: boolean;
11515
11524
  };
11516
11525
 
11517
11526
  /**
package/out/mock.js CHANGED
@@ -11433,12 +11433,12 @@ class Platform extends base_1$7.EmitterBase {
11433
11433
  * @experimental
11434
11434
  */
11435
11435
  async launchContentManifest(manifestUrl) {
11436
- this.wire.sendAction('platform-launch-content-manifest', this.identity).catch((e) => {
11436
+ this.wire.sendAction('platform-launch-content-manifest', this.identity).catch(() => {
11437
11437
  // don't expose
11438
11438
  });
11439
11439
  const client = await this.getClient();
11440
11440
  const manifest = await this.fetchManifest(manifestUrl);
11441
- client.dispatch('launch-into-platform', { manifest });
11441
+ client.dispatch('launch-into-platform', { manifest, manifestUrl });
11442
11442
  return this;
11443
11443
  }
11444
11444
  /**
@@ -12095,16 +12095,16 @@ class LayoutModule extends base_1$5.Base {
12095
12095
  __classPrivateFieldSet$4(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
12096
12096
  await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), options);
12097
12097
  if (!options.layoutManagerOverride) {
12098
- // in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
12098
+ // CORE-1081 to be removed when we actually delete the `layoutManager` prop
12099
+ // in single-layout case, we return the undocumented layoutManager type
12099
12100
  const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
12100
- const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
12101
- return __classPrivateFieldGet$4(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
12101
+ return __classPrivateFieldGet$4(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
12102
12102
  }
12103
12103
  return this.wrapSync(this.fin.me.identity);
12104
12104
  };
12105
- _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
12105
+ _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity) => {
12106
12106
  const msg = '[Layout] You are using a deprecated property `layoutManager` - it will throw if you access it starting in v37.';
12107
- const managerProxy = new Proxy(layoutManager, {
12107
+ const managerProxy = new Proxy({}, {
12108
12108
  get(target, key) {
12109
12109
  console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
12110
12110
  throw new Error(msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "37.80.33",
3
+ "version": "37.80.35",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",