@openfin/core 35.79.4 → 35.79.6

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.
@@ -1192,6 +1192,10 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1192
1192
  * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1193
1193
  */
1194
1194
  domainSettings: DomainSettings;
1195
+ /**
1196
+ * The permissions for secured APIs.
1197
+ */
1198
+ permissions?: Partial<Permissions_2>;
1195
1199
  /**
1196
1200
  * @defaultValue false
1197
1201
  *
@@ -3722,6 +3726,10 @@ declare type ConstWindowOptions = {
3722
3726
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3723
3727
  */
3724
3728
  viewVisibility?: ViewVisibilityOptions;
3729
+ /**
3730
+ * 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.
3731
+ */
3732
+ inheritance?: Partial<InheritableOptions>;
3725
3733
  };
3726
3734
 
3727
3735
  declare interface Container extends EventEmitter_2 {
@@ -6573,6 +6581,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6573
6581
  metadata?: MetadataType;
6574
6582
  };
6575
6583
 
6584
+ declare type InheritableOptions = {
6585
+ customContext: boolean;
6586
+ customData: boolean;
6587
+ icon: boolean;
6588
+ preloadScripts: boolean;
6589
+ };
6590
+
6576
6591
  /**
6577
6592
  * Generated when an application has initialized.
6578
6593
  * @interface
@@ -9793,6 +9808,7 @@ declare namespace OpenFin_2 {
9793
9808
  WindowState,
9794
9809
  AutoplayPolicyOptions,
9795
9810
  ConstWindowOptions,
9811
+ InheritableOptions,
9796
9812
  MutableWindowOptions,
9797
9813
  WorkspacePlatformOptions,
9798
9814
  WebRequestHeader,
@@ -11028,10 +11044,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11028
11044
  * The provider url.
11029
11045
  */
11030
11046
  providerUrl?: string;
11031
- /**
11032
- * The permissions for secured APIs.
11033
- */
11034
- permissions?: Partial<Permissions_2>;
11035
11047
  };
11036
11048
 
11037
11049
  /**
@@ -1192,6 +1192,10 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1192
1192
  * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1193
1193
  */
1194
1194
  domainSettings: DomainSettings;
1195
+ /**
1196
+ * The permissions for secured APIs.
1197
+ */
1198
+ permissions?: Partial<Permissions_2>;
1195
1199
  /**
1196
1200
  * @defaultValue false
1197
1201
  *
@@ -3722,6 +3726,10 @@ declare type ConstWindowOptions = {
3722
3726
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3723
3727
  */
3724
3728
  viewVisibility?: ViewVisibilityOptions;
3729
+ /**
3730
+ * 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.
3731
+ */
3732
+ inheritance?: Partial<InheritableOptions>;
3725
3733
  };
3726
3734
 
3727
3735
  declare interface Container extends EventEmitter_2 {
@@ -6573,6 +6581,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6573
6581
  metadata?: MetadataType;
6574
6582
  };
6575
6583
 
6584
+ declare type InheritableOptions = {
6585
+ customContext: boolean;
6586
+ customData: boolean;
6587
+ icon: boolean;
6588
+ preloadScripts: boolean;
6589
+ };
6590
+
6576
6591
  /**
6577
6592
  * Generated when an application has initialized.
6578
6593
  * @interface
@@ -9793,6 +9808,7 @@ declare namespace OpenFin_2 {
9793
9808
  WindowState,
9794
9809
  AutoplayPolicyOptions,
9795
9810
  ConstWindowOptions,
9811
+ InheritableOptions,
9796
9812
  MutableWindowOptions,
9797
9813
  WorkspacePlatformOptions,
9798
9814
  WebRequestHeader,
@@ -11028,10 +11044,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11028
11044
  * The provider url.
11029
11045
  */
11030
11046
  providerUrl?: string;
11031
- /**
11032
- * The permissions for secured APIs.
11033
- */
11034
- permissions?: Partial<Permissions_2>;
11035
11047
  };
11036
11048
 
11037
11049
  /**
@@ -1192,6 +1192,10 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1192
1192
  * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1193
1193
  */
1194
1194
  domainSettings: DomainSettings;
1195
+ /**
1196
+ * The permissions for secured APIs.
1197
+ */
1198
+ permissions?: Partial<Permissions_2>;
1195
1199
  /**
1196
1200
  * @defaultValue false
1197
1201
  *
@@ -3722,6 +3726,10 @@ declare type ConstWindowOptions = {
3722
3726
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3723
3727
  */
3724
3728
  viewVisibility?: ViewVisibilityOptions;
3729
+ /**
3730
+ * 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.
3731
+ */
3732
+ inheritance?: Partial<InheritableOptions>;
3725
3733
  };
3726
3734
 
3727
3735
  declare interface Container extends EventEmitter_2 {
@@ -6573,6 +6581,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6573
6581
  metadata?: MetadataType;
6574
6582
  };
6575
6583
 
6584
+ declare type InheritableOptions = {
6585
+ customContext: boolean;
6586
+ customData: boolean;
6587
+ icon: boolean;
6588
+ preloadScripts: boolean;
6589
+ };
6590
+
6576
6591
  /**
6577
6592
  * Generated when an application has initialized.
6578
6593
  * @interface
@@ -9793,6 +9808,7 @@ declare namespace OpenFin_2 {
9793
9808
  WindowState,
9794
9809
  AutoplayPolicyOptions,
9795
9810
  ConstWindowOptions,
9811
+ InheritableOptions,
9796
9812
  MutableWindowOptions,
9797
9813
  WorkspacePlatformOptions,
9798
9814
  WebRequestHeader,
@@ -11028,10 +11044,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11028
11044
  * The provider url.
11029
11045
  */
11030
11046
  providerUrl?: string;
11031
- /**
11032
- * The permissions for secured APIs.
11033
- */
11034
- permissions?: Partial<Permissions_2>;
11035
11047
  };
11036
11048
 
11037
11049
  /**
package/out/mock.d.ts CHANGED
@@ -1198,6 +1198,10 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1198
1198
  * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1199
1199
  */
1200
1200
  domainSettings: DomainSettings;
1201
+ /**
1202
+ * The permissions for secured APIs.
1203
+ */
1204
+ permissions?: Partial<Permissions_2>;
1201
1205
  /**
1202
1206
  * @defaultValue false
1203
1207
  *
@@ -3765,6 +3769,10 @@ declare type ConstWindowOptions = {
3765
3769
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3766
3770
  */
3767
3771
  viewVisibility?: ViewVisibilityOptions;
3772
+ /**
3773
+ * 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.
3774
+ */
3775
+ inheritance?: Partial<InheritableOptions>;
3768
3776
  };
3769
3777
 
3770
3778
  declare interface Container extends EventEmitter_2 {
@@ -6651,6 +6659,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6651
6659
  metadata?: MetadataType;
6652
6660
  };
6653
6661
 
6662
+ declare type InheritableOptions = {
6663
+ customContext: boolean;
6664
+ customData: boolean;
6665
+ icon: boolean;
6666
+ preloadScripts: boolean;
6667
+ };
6668
+
6654
6669
  /**
6655
6670
  * Generated when an application has initialized.
6656
6671
  * @interface
@@ -10092,6 +10107,7 @@ declare namespace OpenFin_2 {
10092
10107
  WindowState,
10093
10108
  AutoplayPolicyOptions,
10094
10109
  ConstWindowOptions,
10110
+ InheritableOptions,
10095
10111
  MutableWindowOptions,
10096
10112
  WorkspacePlatformOptions,
10097
10113
  WebRequestHeader,
@@ -11360,10 +11376,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11360
11376
  * The provider url.
11361
11377
  */
11362
11378
  providerUrl?: string;
11363
- /**
11364
- * The permissions for secured APIs.
11365
- */
11366
- permissions?: Partial<Permissions_2>;
11367
11379
  };
11368
11380
 
11369
11381
  /**
package/out/mock.js CHANGED
@@ -11880,7 +11880,7 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
11880
11880
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
11881
11881
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11882
11882
  };
11883
- var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getSafeLayoutManager;
11883
+ var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
11884
11884
  Object.defineProperty(Factory$2, "__esModule", { value: true });
11885
11885
  Factory$2.LayoutModule = void 0;
11886
11886
  const base_1$5 = base;
@@ -11952,10 +11952,31 @@ class LayoutModule extends base_1$5.Base {
11952
11952
  // in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
11953
11953
  const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
11954
11954
  const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
11955
- return Object.assign(this.wrapSync(layoutIdentity), { layoutManager });
11955
+ return __classPrivateFieldGet$4(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
11956
11956
  }
11957
11957
  return this.wrapSync(this.fin.me.identity);
11958
11958
  };
11959
+ _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
11960
+ const msg = '[Layout] You are using a deprecated property `layoutManager` - it will throw if you access it starting in v37.';
11961
+ const managerProxy = new Proxy(layoutManager, {
11962
+ get(target, key) {
11963
+ console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
11964
+ console.warn(msg);
11965
+ return target[key];
11966
+ }
11967
+ });
11968
+ const layout = Object.assign(this.wrapSync(layoutIdentity), { layoutManager: managerProxy });
11969
+ const layoutProxy = new Proxy(layout, {
11970
+ get(target, key) {
11971
+ if (key === 'layoutManager') {
11972
+ console.warn(`[Layout-proxy] accessing ${key.toString()}`);
11973
+ console.warn(msg);
11974
+ }
11975
+ return target[key];
11976
+ }
11977
+ });
11978
+ return layoutProxy;
11979
+ });
11959
11980
  /**
11960
11981
  * Returns the layout manager for the current window
11961
11982
  * @returns
@@ -12065,7 +12086,7 @@ class LayoutModule extends base_1$5.Base {
12065
12086
  }
12066
12087
  }
12067
12088
  Factory$2.LayoutModule = LayoutModule;
12068
- _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12089
+ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12069
12090
  if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
12070
12091
  throw new Error(`You must call init before using the API ${method}`);
12071
12092
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "35.79.4",
3
+ "version": "35.79.6",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",