@openfin/node-adapter 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
  *
@@ -3726,6 +3730,10 @@ declare type ConstWindowOptions = {
3726
3730
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3727
3731
  */
3728
3732
  viewVisibility?: ViewVisibilityOptions;
3733
+ /**
3734
+ * 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.
3735
+ */
3736
+ inheritance?: Partial<InheritableOptions>;
3729
3737
  };
3730
3738
 
3731
3739
  declare interface Container extends EventEmitter_2 {
@@ -6581,6 +6589,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6581
6589
  metadata?: MetadataType;
6582
6590
  };
6583
6591
 
6592
+ declare type InheritableOptions = {
6593
+ customContext: boolean;
6594
+ customData: boolean;
6595
+ icon: boolean;
6596
+ preloadScripts: boolean;
6597
+ };
6598
+
6584
6599
  /**
6585
6600
  * Generated when an application has initialized.
6586
6601
  * @interface
@@ -9803,6 +9818,7 @@ declare namespace OpenFin {
9803
9818
  WindowState,
9804
9819
  AutoplayPolicyOptions,
9805
9820
  ConstWindowOptions,
9821
+ InheritableOptions,
9806
9822
  MutableWindowOptions,
9807
9823
  WorkspacePlatformOptions,
9808
9824
  WebRequestHeader,
@@ -11038,10 +11054,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11038
11054
  * The provider url.
11039
11055
  */
11040
11056
  providerUrl?: string;
11041
- /**
11042
- * The permissions for secured APIs.
11043
- */
11044
- permissions?: Partial<Permissions_2>;
11045
11057
  };
11046
11058
 
11047
11059
  /**
@@ -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
  *
@@ -3726,6 +3730,10 @@ declare type ConstWindowOptions = {
3726
3730
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3727
3731
  */
3728
3732
  viewVisibility?: ViewVisibilityOptions;
3733
+ /**
3734
+ * 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.
3735
+ */
3736
+ inheritance?: Partial<InheritableOptions>;
3729
3737
  };
3730
3738
 
3731
3739
  declare interface Container extends EventEmitter_2 {
@@ -6581,6 +6589,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6581
6589
  metadata?: MetadataType;
6582
6590
  };
6583
6591
 
6592
+ declare type InheritableOptions = {
6593
+ customContext: boolean;
6594
+ customData: boolean;
6595
+ icon: boolean;
6596
+ preloadScripts: boolean;
6597
+ };
6598
+
6584
6599
  /**
6585
6600
  * Generated when an application has initialized.
6586
6601
  * @interface
@@ -9803,6 +9818,7 @@ declare namespace OpenFin {
9803
9818
  WindowState,
9804
9819
  AutoplayPolicyOptions,
9805
9820
  ConstWindowOptions,
9821
+ InheritableOptions,
9806
9822
  MutableWindowOptions,
9807
9823
  WorkspacePlatformOptions,
9808
9824
  WebRequestHeader,
@@ -11038,10 +11054,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11038
11054
  * The provider url.
11039
11055
  */
11040
11056
  providerUrl?: string;
11041
- /**
11042
- * The permissions for secured APIs.
11043
- */
11044
- permissions?: Partial<Permissions_2>;
11045
11057
  };
11046
11058
 
11047
11059
  /**
@@ -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
  *
@@ -3726,6 +3730,10 @@ declare type ConstWindowOptions = {
3726
3730
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3727
3731
  */
3728
3732
  viewVisibility?: ViewVisibilityOptions;
3733
+ /**
3734
+ * 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.
3735
+ */
3736
+ inheritance?: Partial<InheritableOptions>;
3729
3737
  };
3730
3738
 
3731
3739
  declare interface Container extends EventEmitter_2 {
@@ -6581,6 +6589,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6581
6589
  metadata?: MetadataType;
6582
6590
  };
6583
6591
 
6592
+ declare type InheritableOptions = {
6593
+ customContext: boolean;
6594
+ customData: boolean;
6595
+ icon: boolean;
6596
+ preloadScripts: boolean;
6597
+ };
6598
+
6584
6599
  /**
6585
6600
  * Generated when an application has initialized.
6586
6601
  * @interface
@@ -9803,6 +9818,7 @@ declare namespace OpenFin {
9803
9818
  WindowState,
9804
9819
  AutoplayPolicyOptions,
9805
9820
  ConstWindowOptions,
9821
+ InheritableOptions,
9806
9822
  MutableWindowOptions,
9807
9823
  WorkspacePlatformOptions,
9808
9824
  WebRequestHeader,
@@ -11038,10 +11054,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11038
11054
  * The provider url.
11039
11055
  */
11040
11056
  providerUrl?: string;
11041
- /**
11042
- * The permissions for secured APIs.
11043
- */
11044
- permissions?: Partial<Permissions_2>;
11045
11057
  };
11046
11058
 
11047
11059
  /**
@@ -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
  *
@@ -3769,6 +3773,10 @@ declare type ConstWindowOptions = {
3769
3773
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
3770
3774
  */
3771
3775
  viewVisibility?: ViewVisibilityOptions;
3776
+ /**
3777
+ * 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.
3778
+ */
3779
+ inheritance?: Partial<InheritableOptions>;
3772
3780
  };
3773
3781
 
3774
3782
  declare interface Container extends EventEmitter_2 {
@@ -6681,6 +6689,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
6681
6689
  metadata?: MetadataType;
6682
6690
  };
6683
6691
 
6692
+ declare type InheritableOptions = {
6693
+ customContext: boolean;
6694
+ customData: boolean;
6695
+ icon: boolean;
6696
+ preloadScripts: boolean;
6697
+ };
6698
+
6684
6699
  /**
6685
6700
  * Generated when an application has initialized.
6686
6701
  * @interface
@@ -10124,6 +10139,7 @@ declare namespace OpenFin {
10124
10139
  WindowState,
10125
10140
  AutoplayPolicyOptions,
10126
10141
  ConstWindowOptions,
10142
+ InheritableOptions,
10127
10143
  MutableWindowOptions,
10128
10144
  WorkspacePlatformOptions,
10129
10145
  WebRequestHeader,
@@ -11392,10 +11408,6 @@ declare type PlatformOptions = ApplicationCreationOptions & {
11392
11408
  * The provider url.
11393
11409
  */
11394
11410
  providerUrl?: string;
11395
- /**
11396
- * The permissions for secured APIs.
11397
- */
11398
- permissions?: Partial<Permissions_2>;
11399
11411
  };
11400
11412
 
11401
11413
  /**
@@ -11660,7 +11660,7 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
11660
11660
  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");
11661
11661
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11662
11662
  };
11663
- var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getSafeLayoutManager;
11663
+ var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
11664
11664
  Object.defineProperty(Factory$2, "__esModule", { value: true });
11665
11665
  Factory$2.LayoutModule = void 0;
11666
11666
  const base_1$5 = base$1;
@@ -11732,10 +11732,31 @@ class LayoutModule extends base_1$5.Base {
11732
11732
  // in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
11733
11733
  const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
11734
11734
  const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
11735
- return Object.assign(this.wrapSync(layoutIdentity), { layoutManager });
11735
+ return __classPrivateFieldGet$4(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
11736
11736
  }
11737
11737
  return this.wrapSync(this.fin.me.identity);
11738
11738
  };
11739
+ _LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
11740
+ const msg = '[Layout] You are using a deprecated property `layoutManager` - it will throw if you access it starting in v37.';
11741
+ const managerProxy = new Proxy(layoutManager, {
11742
+ get(target, key) {
11743
+ console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
11744
+ console.warn(msg);
11745
+ return target[key];
11746
+ }
11747
+ });
11748
+ const layout = Object.assign(this.wrapSync(layoutIdentity), { layoutManager: managerProxy });
11749
+ const layoutProxy = new Proxy(layout, {
11750
+ get(target, key) {
11751
+ if (key === 'layoutManager') {
11752
+ console.warn(`[Layout-proxy] accessing ${key.toString()}`);
11753
+ console.warn(msg);
11754
+ }
11755
+ return target[key];
11756
+ }
11757
+ });
11758
+ return layoutProxy;
11759
+ });
11739
11760
  /**
11740
11761
  * Returns the layout manager for the current window
11741
11762
  * @returns
@@ -11845,7 +11866,7 @@ class LayoutModule extends base_1$5.Base {
11845
11866
  }
11846
11867
  }
11847
11868
  Factory$2.LayoutModule = LayoutModule;
11848
- _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
11869
+ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
11849
11870
  if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
11850
11871
  throw new Error(`You must call init before using the API ${method}`);
11851
11872
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "35.79.4",
3
+ "version": "35.79.6",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",