@openfin/core 34.78.77 → 34.78.79

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.
@@ -3844,6 +3844,10 @@ declare type ConstWindowOptions = {
3844
3844
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3845
3845
  */
3846
3846
  viewVisibility?: ViewVisibilityOptions;
3847
+ /**
3848
+ * Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
3849
+ */
3850
+ inheritance?: Partial<InheritableOptions>;
3847
3851
  };
3848
3852
 
3849
3853
  declare interface Container extends EventEmitter_2 {
@@ -6834,6 +6838,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6834
6838
  metadata?: MetadataType;
6835
6839
  };
6836
6840
 
6841
+ declare type InheritableOptions = {
6842
+ customContext: boolean;
6843
+ customData: boolean;
6844
+ icon: boolean;
6845
+ preloadScripts: boolean;
6846
+ };
6847
+
6837
6848
  /**
6838
6849
  * Generated when an application has initialized.
6839
6850
  * @interface
@@ -10193,6 +10204,7 @@ declare namespace OpenFin_2 {
10193
10204
  WindowState,
10194
10205
  AutoplayPolicyOptions,
10195
10206
  ConstWindowOptions,
10207
+ InheritableOptions,
10196
10208
  MutableWindowOptions,
10197
10209
  WorkspacePlatformOptions,
10198
10210
  WebRequestHeader,
@@ -3844,6 +3844,10 @@ declare type ConstWindowOptions = {
3844
3844
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3845
3845
  */
3846
3846
  viewVisibility?: ViewVisibilityOptions;
3847
+ /**
3848
+ * Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
3849
+ */
3850
+ inheritance?: Partial<InheritableOptions>;
3847
3851
  };
3848
3852
 
3849
3853
  declare interface Container extends EventEmitter_2 {
@@ -6834,6 +6838,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6834
6838
  metadata?: MetadataType;
6835
6839
  };
6836
6840
 
6841
+ declare type InheritableOptions = {
6842
+ customContext: boolean;
6843
+ customData: boolean;
6844
+ icon: boolean;
6845
+ preloadScripts: boolean;
6846
+ };
6847
+
6837
6848
  /**
6838
6849
  * Generated when an application has initialized.
6839
6850
  * @interface
@@ -10193,6 +10204,7 @@ declare namespace OpenFin_2 {
10193
10204
  WindowState,
10194
10205
  AutoplayPolicyOptions,
10195
10206
  ConstWindowOptions,
10207
+ InheritableOptions,
10196
10208
  MutableWindowOptions,
10197
10209
  WorkspacePlatformOptions,
10198
10210
  WebRequestHeader,
@@ -3844,6 +3844,10 @@ declare type ConstWindowOptions = {
3844
3844
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3845
3845
  */
3846
3846
  viewVisibility?: ViewVisibilityOptions;
3847
+ /**
3848
+ * Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
3849
+ */
3850
+ inheritance?: Partial<InheritableOptions>;
3847
3851
  };
3848
3852
 
3849
3853
  declare interface Container extends EventEmitter_2 {
@@ -6834,6 +6838,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6834
6838
  metadata?: MetadataType;
6835
6839
  };
6836
6840
 
6841
+ declare type InheritableOptions = {
6842
+ customContext: boolean;
6843
+ customData: boolean;
6844
+ icon: boolean;
6845
+ preloadScripts: boolean;
6846
+ };
6847
+
6837
6848
  /**
6838
6849
  * Generated when an application has initialized.
6839
6850
  * @interface
@@ -10193,6 +10204,7 @@ declare namespace OpenFin_2 {
10193
10204
  WindowState,
10194
10205
  AutoplayPolicyOptions,
10195
10206
  ConstWindowOptions,
10207
+ InheritableOptions,
10196
10208
  MutableWindowOptions,
10197
10209
  WorkspacePlatformOptions,
10198
10210
  WebRequestHeader,
package/out/mock.d.ts CHANGED
@@ -3887,6 +3887,10 @@ declare type ConstWindowOptions = {
3887
3887
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3888
3888
  */
3889
3889
  viewVisibility?: ViewVisibilityOptions;
3890
+ /**
3891
+ * Controls whether an option is inherited from the parent application. Use { <option>: false } to disable a specific <option>. All inheritable properties will be inherited by default if omitted."
3892
+ */
3893
+ inheritance?: Partial<InheritableOptions>;
3890
3894
  };
3891
3895
 
3892
3896
  declare interface Container extends EventEmitter_2 {
@@ -6912,6 +6916,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6912
6916
  metadata?: MetadataType;
6913
6917
  };
6914
6918
 
6919
+ declare type InheritableOptions = {
6920
+ customContext: boolean;
6921
+ customData: boolean;
6922
+ icon: boolean;
6923
+ preloadScripts: boolean;
6924
+ };
6925
+
6915
6926
  /**
6916
6927
  * Generated when an application has initialized.
6917
6928
  * @interface
@@ -10492,6 +10503,7 @@ declare namespace OpenFin_2 {
10492
10503
  WindowState,
10493
10504
  AutoplayPolicyOptions,
10494
10505
  ConstWindowOptions,
10506
+ InheritableOptions,
10495
10507
  MutableWindowOptions,
10496
10508
  WorkspacePlatformOptions,
10497
10509
  WebRequestHeader,
package/out/mock.js CHANGED
@@ -12982,7 +12982,7 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
12982
12982
  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");
12983
12983
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12984
12984
  };
12985
- var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_throwIfLayoutManagerNotInitialized;
12985
+ var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_throwIfLayoutManagerNotInitialized;
12986
12986
  Object.defineProperty(Factory$2, "__esModule", { value: true });
12987
12987
  Factory$2.LayoutModule = void 0;
12988
12988
  const base_1$5 = base;
@@ -13054,10 +13054,31 @@ class LayoutModule extends base_1$5.Base {
13054
13054
  // in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
13055
13055
  const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
13056
13056
  const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
13057
- return Object.assign(this.wrapSync(layoutIdentity), { layoutManager });
13057
+ return __classPrivateFieldGet$4(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
13058
13058
  }
13059
13059
  return this.wrapSync(this.fin.me.identity);
13060
13060
  };
13061
+ _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
13062
+ const msg = '[Layout] You are using a deprecated property `layoutManager` - it will throw if you access it starting in v37.';
13063
+ const managerProxy = new Proxy(layoutManager, {
13064
+ get(target, key) {
13065
+ console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
13066
+ console.warn(msg);
13067
+ return target[key];
13068
+ }
13069
+ });
13070
+ const layout = Object.assign(this.wrapSync(layoutIdentity), { layoutManager: managerProxy });
13071
+ const layoutProxy = new Proxy(layout, {
13072
+ get(target, key) {
13073
+ if (key === 'layoutManager') {
13074
+ console.warn(`[Layout-proxy] accessing ${key.toString()}`);
13075
+ console.warn(msg);
13076
+ }
13077
+ return target[key];
13078
+ }
13079
+ });
13080
+ return layoutProxy;
13081
+ });
13061
13082
  /**
13062
13083
  * Returns the layout manager for the current window
13063
13084
  * @returns
@@ -13171,7 +13192,7 @@ class LayoutModule extends base_1$5.Base {
13171
13192
  }
13172
13193
  }
13173
13194
  Factory$2.LayoutModule = LayoutModule;
13174
- _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_throwIfLayoutManagerNotInitialized = function _LayoutModule_throwIfLayoutManagerNotInitialized(method) {
13195
+ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_throwIfLayoutManagerNotInitialized = function _LayoutModule_throwIfLayoutManagerNotInitialized(method) {
13175
13196
  if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
13176
13197
  throw new Error(`You must call init before using the API ${method}`);
13177
13198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "34.78.77",
3
+ "version": "34.78.79",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",