@openfin/remote-adapter 36.79.19 → 36.80.1

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;
@@ -3863,6 +3863,10 @@ declare type ConstWindowOptions = {
3863
3863
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3864
3864
  */
3865
3865
  viewVisibility?: ViewVisibilityOptions;
3866
+ /**
3867
+ * Controls whether an option is inherited from the parent application. The option is set as part of the window options for the parent application in either the {@link Manifest.startup_app} or {@link Manifest.platform} properties in the manifest or in {@link ApplicationOptions.mainWindowOptions} when calling {@link Application.ApplicationModule.start Application.start}. Use { [option]: false } to disable a specific [option]. All inheritable properties will be inherited by default if omitted.
3868
+ */
3869
+ inheritance?: Partial<InheritableOptions>;
3866
3870
  };
3867
3871
 
3868
3872
  declare interface Container extends EventEmitter_2 {
@@ -5915,6 +5919,8 @@ declare class _Frame extends EmitterBase<OpenFin.FrameEvent> {
5915
5919
  * Returns a frame info object representing the window that the referenced iframe is
5916
5920
  * currently embedded in.
5917
5921
  *
5922
+ * @remarks If the frame is embedded in a view, this will return an invalid stub with empty fields.
5923
+ *
5918
5924
  * @example
5919
5925
  * ```js
5920
5926
  * async function getParentWindow() {
@@ -6760,6 +6766,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6760
6766
  metadata?: MetadataType;
6761
6767
  };
6762
6768
 
6769
+ declare type InheritableOptions = {
6770
+ customContext: boolean;
6771
+ customData: boolean;
6772
+ icon: boolean;
6773
+ preloadScripts: boolean;
6774
+ };
6775
+
6763
6776
  /**
6764
6777
  * Initialize a remote connection as a "host" application.
6765
6778
  * @param {InitOptions} options init options
@@ -8382,6 +8395,7 @@ declare type LaunchExternalProcessRule = {
8382
8395
  */
8383
8396
  declare type LaunchIntoPlatformPayload = {
8384
8397
  manifest: any;
8398
+ manifestUrl?: string;
8385
8399
  };
8386
8400
 
8387
8401
  /**
@@ -10012,6 +10026,7 @@ declare namespace OpenFin {
10012
10026
  WindowState,
10013
10027
  AutoplayPolicyOptions,
10014
10028
  ConstWindowOptions,
10029
+ InheritableOptions,
10015
10030
  MutableWindowOptions,
10016
10031
  WorkspacePlatformOptions,
10017
10032
  WebRequestHeader,
@@ -11247,6 +11262,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11247
11262
  * The provider url.
11248
11263
  */
11249
11264
  providerUrl?: string;
11265
+ /**
11266
+ * @defaultValue true
11267
+ *
11268
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11269
+ *
11270
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11271
+ */
11272
+ allowLaunchIntoPlatform?: boolean;
11250
11273
  };
11251
11274
 
11252
11275
  /**
@@ -12006,7 +12029,7 @@ declare type PreloadScriptInfoRunning = {
12006
12029
  * @interface
12007
12030
  */
12008
12031
  declare type PreloadScriptsStateChangedEvent = PreloadScriptsStateChangeEvent & {
12009
- type: 'preload-script-state-changed';
12032
+ type: 'preload-scripts-state-changed';
12010
12033
  };
12011
12034
 
12012
12035
  /**
@@ -12023,7 +12046,7 @@ declare type PreloadScriptsStateChangeEvent = BaseEvent_5 & {
12023
12046
  * @interface
12024
12047
  */
12025
12048
  declare type PreloadScriptsStateChangingEvent = PreloadScriptsStateChangeEvent & {
12026
- type: 'preload-script-state-changing';
12049
+ type: 'preload-scripts-state-changing';
12027
12050
  };
12028
12051
 
12029
12052
  declare type PresetLayoutOptions = OpenFin.PresetLayoutOptions;
@@ -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;
@@ -3863,6 +3863,10 @@ declare type ConstWindowOptions = {
3863
3863
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3864
3864
  */
3865
3865
  viewVisibility?: ViewVisibilityOptions;
3866
+ /**
3867
+ * Controls whether an option is inherited from the parent application. The option is set as part of the window options for the parent application in either the {@link Manifest.startup_app} or {@link Manifest.platform} properties in the manifest or in {@link ApplicationOptions.mainWindowOptions} when calling {@link Application.ApplicationModule.start Application.start}. Use { [option]: false } to disable a specific [option]. All inheritable properties will be inherited by default if omitted.
3868
+ */
3869
+ inheritance?: Partial<InheritableOptions>;
3866
3870
  };
3867
3871
 
3868
3872
  declare interface Container extends EventEmitter_2 {
@@ -5915,6 +5919,8 @@ declare class _Frame extends EmitterBase<OpenFin.FrameEvent> {
5915
5919
  * Returns a frame info object representing the window that the referenced iframe is
5916
5920
  * currently embedded in.
5917
5921
  *
5922
+ * @remarks If the frame is embedded in a view, this will return an invalid stub with empty fields.
5923
+ *
5918
5924
  * @example
5919
5925
  * ```js
5920
5926
  * async function getParentWindow() {
@@ -6760,6 +6766,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6760
6766
  metadata?: MetadataType;
6761
6767
  };
6762
6768
 
6769
+ declare type InheritableOptions = {
6770
+ customContext: boolean;
6771
+ customData: boolean;
6772
+ icon: boolean;
6773
+ preloadScripts: boolean;
6774
+ };
6775
+
6763
6776
  /**
6764
6777
  * Initialize a remote connection as a "host" application.
6765
6778
  * @param {InitOptions} options init options
@@ -8382,6 +8395,7 @@ declare type LaunchExternalProcessRule = {
8382
8395
  */
8383
8396
  declare type LaunchIntoPlatformPayload = {
8384
8397
  manifest: any;
8398
+ manifestUrl?: string;
8385
8399
  };
8386
8400
 
8387
8401
  /**
@@ -10012,6 +10026,7 @@ declare namespace OpenFin {
10012
10026
  WindowState,
10013
10027
  AutoplayPolicyOptions,
10014
10028
  ConstWindowOptions,
10029
+ InheritableOptions,
10015
10030
  MutableWindowOptions,
10016
10031
  WorkspacePlatformOptions,
10017
10032
  WebRequestHeader,
@@ -11247,6 +11262,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11247
11262
  * The provider url.
11248
11263
  */
11249
11264
  providerUrl?: string;
11265
+ /**
11266
+ * @defaultValue true
11267
+ *
11268
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11269
+ *
11270
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11271
+ */
11272
+ allowLaunchIntoPlatform?: boolean;
11250
11273
  };
11251
11274
 
11252
11275
  /**
@@ -12006,7 +12029,7 @@ declare type PreloadScriptInfoRunning = {
12006
12029
  * @interface
12007
12030
  */
12008
12031
  declare type PreloadScriptsStateChangedEvent = PreloadScriptsStateChangeEvent & {
12009
- type: 'preload-script-state-changed';
12032
+ type: 'preload-scripts-state-changed';
12010
12033
  };
12011
12034
 
12012
12035
  /**
@@ -12023,7 +12046,7 @@ declare type PreloadScriptsStateChangeEvent = BaseEvent_5 & {
12023
12046
  * @interface
12024
12047
  */
12025
12048
  declare type PreloadScriptsStateChangingEvent = PreloadScriptsStateChangeEvent & {
12026
- type: 'preload-script-state-changing';
12049
+ type: 'preload-scripts-state-changing';
12027
12050
  };
12028
12051
 
12029
12052
  declare type PresetLayoutOptions = OpenFin.PresetLayoutOptions;
@@ -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;
@@ -3863,6 +3863,10 @@ declare type ConstWindowOptions = {
3863
3863
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3864
3864
  */
3865
3865
  viewVisibility?: ViewVisibilityOptions;
3866
+ /**
3867
+ * Controls whether an option is inherited from the parent application. The option is set as part of the window options for the parent application in either the {@link Manifest.startup_app} or {@link Manifest.platform} properties in the manifest or in {@link ApplicationOptions.mainWindowOptions} when calling {@link Application.ApplicationModule.start Application.start}. Use { [option]: false } to disable a specific [option]. All inheritable properties will be inherited by default if omitted.
3868
+ */
3869
+ inheritance?: Partial<InheritableOptions>;
3866
3870
  };
3867
3871
 
3868
3872
  declare interface Container extends EventEmitter_2 {
@@ -5915,6 +5919,8 @@ declare class _Frame extends EmitterBase<OpenFin.FrameEvent> {
5915
5919
  * Returns a frame info object representing the window that the referenced iframe is
5916
5920
  * currently embedded in.
5917
5921
  *
5922
+ * @remarks If the frame is embedded in a view, this will return an invalid stub with empty fields.
5923
+ *
5918
5924
  * @example
5919
5925
  * ```js
5920
5926
  * async function getParentWindow() {
@@ -6760,6 +6766,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6760
6766
  metadata?: MetadataType;
6761
6767
  };
6762
6768
 
6769
+ declare type InheritableOptions = {
6770
+ customContext: boolean;
6771
+ customData: boolean;
6772
+ icon: boolean;
6773
+ preloadScripts: boolean;
6774
+ };
6775
+
6763
6776
  /**
6764
6777
  * Initialize a remote connection as a "host" application.
6765
6778
  * @param {InitOptions} options init options
@@ -8382,6 +8395,7 @@ declare type LaunchExternalProcessRule = {
8382
8395
  */
8383
8396
  declare type LaunchIntoPlatformPayload = {
8384
8397
  manifest: any;
8398
+ manifestUrl?: string;
8385
8399
  };
8386
8400
 
8387
8401
  /**
@@ -10012,6 +10026,7 @@ declare namespace OpenFin {
10012
10026
  WindowState,
10013
10027
  AutoplayPolicyOptions,
10014
10028
  ConstWindowOptions,
10029
+ InheritableOptions,
10015
10030
  MutableWindowOptions,
10016
10031
  WorkspacePlatformOptions,
10017
10032
  WebRequestHeader,
@@ -11247,6 +11262,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11247
11262
  * The provider url.
11248
11263
  */
11249
11264
  providerUrl?: string;
11265
+ /**
11266
+ * @defaultValue true
11267
+ *
11268
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11269
+ *
11270
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11271
+ */
11272
+ allowLaunchIntoPlatform?: boolean;
11250
11273
  };
11251
11274
 
11252
11275
  /**
@@ -12006,7 +12029,7 @@ declare type PreloadScriptInfoRunning = {
12006
12029
  * @interface
12007
12030
  */
12008
12031
  declare type PreloadScriptsStateChangedEvent = PreloadScriptsStateChangeEvent & {
12009
- type: 'preload-script-state-changed';
12032
+ type: 'preload-scripts-state-changed';
12010
12033
  };
12011
12034
 
12012
12035
  /**
@@ -12023,7 +12046,7 @@ declare type PreloadScriptsStateChangeEvent = BaseEvent_5 & {
12023
12046
  * @interface
12024
12047
  */
12025
12048
  declare type PreloadScriptsStateChangingEvent = PreloadScriptsStateChangeEvent & {
12026
- type: 'preload-script-state-changing';
12049
+ type: 'preload-scripts-state-changing';
12027
12050
  };
12028
12051
 
12029
12052
  declare type PresetLayoutOptions = OpenFin.PresetLayoutOptions;
@@ -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;
@@ -3918,6 +3918,10 @@ declare type ConstWindowOptions = {
3918
3918
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3919
3919
  */
3920
3920
  viewVisibility?: ViewVisibilityOptions;
3921
+ /**
3922
+ * Controls whether an option is inherited from the parent application. The option is set as part of the window options for the parent application in either the {@link Manifest.startup_app} or {@link Manifest.platform} properties in the manifest or in {@link ApplicationOptions.mainWindowOptions} when calling {@link Application.ApplicationModule.start Application.start}. Use { [option]: false } to disable a specific [option]. All inheritable properties will be inherited by default if omitted.
3923
+ */
3924
+ inheritance?: Partial<InheritableOptions>;
3921
3925
  };
3922
3926
 
3923
3927
  declare interface Container extends EventEmitter_2 {
@@ -5999,6 +6003,8 @@ declare class _Frame extends EmitterBase<OpenFin.FrameEvent> {
5999
6003
  * Returns a frame info object representing the window that the referenced iframe is
6000
6004
  * currently embedded in.
6001
6005
  *
6006
+ * @remarks If the frame is embedded in a view, this will return an invalid stub with empty fields.
6007
+ *
6002
6008
  * @example
6003
6009
  * ```js
6004
6010
  * async function getParentWindow() {
@@ -6850,6 +6856,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6850
6856
  metadata?: MetadataType;
6851
6857
  };
6852
6858
 
6859
+ declare type InheritableOptions = {
6860
+ customContext: boolean;
6861
+ customData: boolean;
6862
+ icon: boolean;
6863
+ preloadScripts: boolean;
6864
+ };
6865
+
6853
6866
  /**
6854
6867
  * Initialize a remote connection as a "host" application.
6855
6868
  * @param {InitOptions} options init options
@@ -8495,6 +8508,7 @@ declare type LaunchExternalProcessRule = {
8495
8508
  */
8496
8509
  declare type LaunchIntoPlatformPayload = {
8497
8510
  manifest: any;
8511
+ manifestUrl?: string;
8498
8512
  };
8499
8513
 
8500
8514
  /**
@@ -10323,6 +10337,7 @@ declare namespace OpenFin {
10323
10337
  WindowState,
10324
10338
  AutoplayPolicyOptions,
10325
10339
  ConstWindowOptions,
10340
+ InheritableOptions,
10326
10341
  MutableWindowOptions,
10327
10342
  WorkspacePlatformOptions,
10328
10343
  WebRequestHeader,
@@ -11591,6 +11606,14 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11591
11606
  * The provider url.
11592
11607
  */
11593
11608
  providerUrl?: string;
11609
+ /**
11610
+ * @defaultValue true
11611
+ *
11612
+ * Controls whether it is allowed to launch content manifests into the Platform. If omitted, defaults to `true`.
11613
+ *
11614
+ * NOTE: Starting in v38, the default value will change to `false` and content launching must be explicitly opted into.
11615
+ */
11616
+ allowLaunchIntoPlatform?: boolean;
11594
11617
  };
11595
11618
 
11596
11619
  /**
@@ -12395,7 +12418,7 @@ declare type PreloadScriptInfoRunning = {
12395
12418
  * @interface
12396
12419
  */
12397
12420
  declare type PreloadScriptsStateChangedEvent = PreloadScriptsStateChangeEvent & {
12398
- type: 'preload-script-state-changed';
12421
+ type: 'preload-scripts-state-changed';
12399
12422
  };
12400
12423
 
12401
12424
  /**
@@ -12412,7 +12435,7 @@ declare type PreloadScriptsStateChangeEvent = BaseEvent_5 & {
12412
12435
  * @interface
12413
12436
  */
12414
12437
  declare type PreloadScriptsStateChangingEvent = PreloadScriptsStateChangeEvent & {
12415
- type: 'preload-script-state-changing';
12438
+ type: 'preload-scripts-state-changing';
12416
12439
  };
12417
12440
 
12418
12441
  declare type PresetLayoutOptions = OpenFin.PresetLayoutOptions;
@@ -8530,6 +8530,8 @@ class _Frame extends base_1$h.EmitterBase {
8530
8530
  * Returns a frame info object representing the window that the referenced iframe is
8531
8531
  * currently embedded in.
8532
8532
  *
8533
+ * @remarks If the frame is embedded in a view, this will return an invalid stub with empty fields.
8534
+ *
8533
8535
  * @example
8534
8536
  * ```js
8535
8537
  * async function getParentWindow() {
@@ -14471,12 +14473,12 @@ class Platform extends base_1$5.EmitterBase {
14471
14473
  * @experimental
14472
14474
  */
14473
14475
  async launchContentManifest(manifestUrl) {
14474
- this.wire.sendAction('platform-launch-content-manifest', this.identity).catch((e) => {
14476
+ this.wire.sendAction('platform-launch-content-manifest', this.identity).catch(() => {
14475
14477
  // don't expose
14476
14478
  });
14477
14479
  const client = await this.getClient();
14478
14480
  const manifest = await this.fetchManifest(manifestUrl);
14479
- client.dispatch('launch-into-platform', { manifest });
14481
+ client.dispatch('launch-into-platform', { manifest, manifestUrl });
14480
14482
  return this;
14481
14483
  }
14482
14484
  /**
@@ -15119,7 +15121,7 @@ class LayoutModule extends base_1$3.Base {
15119
15121
  return this.wrapSync(this.fin.me.identity);
15120
15122
  };
15121
15123
  _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
15122
- const msg = '[Layout] You are using a deprecated property `layoutManager` - it will be removed in v39.';
15124
+ const msg = '[Layout] You are using a deprecated property `layoutManager` - it will throw if you access it starting in v37.';
15123
15125
  const managerProxy = new Proxy(layoutManager, {
15124
15126
  get(target, key) {
15125
15127
  console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "36.79.19",
3
+ "version": "36.80.1",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,