@openfin/node-adapter 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.
- package/out/node-adapter-alpha.d.ts +12 -0
- package/out/node-adapter-beta.d.ts +12 -0
- package/out/node-adapter-public.d.ts +12 -0
- package/out/node-adapter.d.ts +12 -0
- package/out/node-adapter.js +24 -3
- package/package.json +1 -1
@@ -3848,6 +3848,10 @@ declare type ConstWindowOptions = {
|
|
3848
3848
|
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
3849
3849
|
*/
|
3850
3850
|
viewVisibility?: ViewVisibilityOptions;
|
3851
|
+
/**
|
3852
|
+
* 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."
|
3853
|
+
*/
|
3854
|
+
inheritance?: Partial<InheritableOptions>;
|
3851
3855
|
};
|
3852
3856
|
|
3853
3857
|
declare interface Container extends EventEmitter_2 {
|
@@ -6842,6 +6846,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
|
|
6842
6846
|
metadata?: MetadataType;
|
6843
6847
|
};
|
6844
6848
|
|
6849
|
+
declare type InheritableOptions = {
|
6850
|
+
customContext: boolean;
|
6851
|
+
customData: boolean;
|
6852
|
+
icon: boolean;
|
6853
|
+
preloadScripts: boolean;
|
6854
|
+
};
|
6855
|
+
|
6845
6856
|
/**
|
6846
6857
|
* Generated when an application has initialized.
|
6847
6858
|
* @interface
|
@@ -10203,6 +10214,7 @@ declare namespace OpenFin {
|
|
10203
10214
|
WindowState,
|
10204
10215
|
AutoplayPolicyOptions,
|
10205
10216
|
ConstWindowOptions,
|
10217
|
+
InheritableOptions,
|
10206
10218
|
MutableWindowOptions,
|
10207
10219
|
WorkspacePlatformOptions,
|
10208
10220
|
WebRequestHeader,
|
@@ -3848,6 +3848,10 @@ declare type ConstWindowOptions = {
|
|
3848
3848
|
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
3849
3849
|
*/
|
3850
3850
|
viewVisibility?: ViewVisibilityOptions;
|
3851
|
+
/**
|
3852
|
+
* 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."
|
3853
|
+
*/
|
3854
|
+
inheritance?: Partial<InheritableOptions>;
|
3851
3855
|
};
|
3852
3856
|
|
3853
3857
|
declare interface Container extends EventEmitter_2 {
|
@@ -6842,6 +6846,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
|
|
6842
6846
|
metadata?: MetadataType;
|
6843
6847
|
};
|
6844
6848
|
|
6849
|
+
declare type InheritableOptions = {
|
6850
|
+
customContext: boolean;
|
6851
|
+
customData: boolean;
|
6852
|
+
icon: boolean;
|
6853
|
+
preloadScripts: boolean;
|
6854
|
+
};
|
6855
|
+
|
6845
6856
|
/**
|
6846
6857
|
* Generated when an application has initialized.
|
6847
6858
|
* @interface
|
@@ -10203,6 +10214,7 @@ declare namespace OpenFin {
|
|
10203
10214
|
WindowState,
|
10204
10215
|
AutoplayPolicyOptions,
|
10205
10216
|
ConstWindowOptions,
|
10217
|
+
InheritableOptions,
|
10206
10218
|
MutableWindowOptions,
|
10207
10219
|
WorkspacePlatformOptions,
|
10208
10220
|
WebRequestHeader,
|
@@ -3848,6 +3848,10 @@ declare type ConstWindowOptions = {
|
|
3848
3848
|
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
3849
3849
|
*/
|
3850
3850
|
viewVisibility?: ViewVisibilityOptions;
|
3851
|
+
/**
|
3852
|
+
* 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."
|
3853
|
+
*/
|
3854
|
+
inheritance?: Partial<InheritableOptions>;
|
3851
3855
|
};
|
3852
3856
|
|
3853
3857
|
declare interface Container extends EventEmitter_2 {
|
@@ -6842,6 +6846,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
|
|
6842
6846
|
metadata?: MetadataType;
|
6843
6847
|
};
|
6844
6848
|
|
6849
|
+
declare type InheritableOptions = {
|
6850
|
+
customContext: boolean;
|
6851
|
+
customData: boolean;
|
6852
|
+
icon: boolean;
|
6853
|
+
preloadScripts: boolean;
|
6854
|
+
};
|
6855
|
+
|
6845
6856
|
/**
|
6846
6857
|
* Generated when an application has initialized.
|
6847
6858
|
* @interface
|
@@ -10203,6 +10214,7 @@ declare namespace OpenFin {
|
|
10203
10214
|
WindowState,
|
10204
10215
|
AutoplayPolicyOptions,
|
10205
10216
|
ConstWindowOptions,
|
10217
|
+
InheritableOptions,
|
10206
10218
|
MutableWindowOptions,
|
10207
10219
|
WorkspacePlatformOptions,
|
10208
10220
|
WebRequestHeader,
|
package/out/node-adapter.d.ts
CHANGED
@@ -3891,6 +3891,10 @@ declare type ConstWindowOptions = {
|
|
3891
3891
|
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
3892
3892
|
*/
|
3893
3893
|
viewVisibility?: ViewVisibilityOptions;
|
3894
|
+
/**
|
3895
|
+
* 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."
|
3896
|
+
*/
|
3897
|
+
inheritance?: Partial<InheritableOptions>;
|
3894
3898
|
};
|
3895
3899
|
|
3896
3900
|
declare interface Container extends EventEmitter_2 {
|
@@ -6942,6 +6946,13 @@ declare type InfoForIntentOptions<MetadataType = IntentMetadata_3> = {
|
|
6942
6946
|
metadata?: MetadataType;
|
6943
6947
|
};
|
6944
6948
|
|
6949
|
+
declare type InheritableOptions = {
|
6950
|
+
customContext: boolean;
|
6951
|
+
customData: boolean;
|
6952
|
+
icon: boolean;
|
6953
|
+
preloadScripts: boolean;
|
6954
|
+
};
|
6955
|
+
|
6945
6956
|
/**
|
6946
6957
|
* Generated when an application has initialized.
|
6947
6958
|
* @interface
|
@@ -10524,6 +10535,7 @@ declare namespace OpenFin {
|
|
10524
10535
|
WindowState,
|
10525
10536
|
AutoplayPolicyOptions,
|
10526
10537
|
ConstWindowOptions,
|
10538
|
+
InheritableOptions,
|
10527
10539
|
MutableWindowOptions,
|
10528
10540
|
WorkspacePlatformOptions,
|
10529
10541
|
WebRequestHeader,
|
package/out/node-adapter.js
CHANGED
@@ -12755,7 +12755,7 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
12755
12755
|
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");
|
12756
12756
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
12757
12757
|
};
|
12758
|
-
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_throwIfLayoutManagerNotInitialized;
|
12758
|
+
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_throwIfLayoutManagerNotInitialized;
|
12759
12759
|
Object.defineProperty(Factory$2, "__esModule", { value: true });
|
12760
12760
|
Factory$2.LayoutModule = void 0;
|
12761
12761
|
const base_1$5 = base$1;
|
@@ -12827,10 +12827,31 @@ class LayoutModule extends base_1$5.Base {
|
|
12827
12827
|
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
12828
12828
|
const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
|
12829
12829
|
const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
|
12830
|
-
return
|
12830
|
+
return __classPrivateFieldGet$4(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
|
12831
12831
|
}
|
12832
12832
|
return this.wrapSync(this.fin.me.identity);
|
12833
12833
|
};
|
12834
|
+
_LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
|
12835
|
+
const msg = '[Layout] You are using a deprecated property `layoutManager` - it will throw if you access it starting in v37.';
|
12836
|
+
const managerProxy = new Proxy(layoutManager, {
|
12837
|
+
get(target, key) {
|
12838
|
+
console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
|
12839
|
+
console.warn(msg);
|
12840
|
+
return target[key];
|
12841
|
+
}
|
12842
|
+
});
|
12843
|
+
const layout = Object.assign(this.wrapSync(layoutIdentity), { layoutManager: managerProxy });
|
12844
|
+
const layoutProxy = new Proxy(layout, {
|
12845
|
+
get(target, key) {
|
12846
|
+
if (key === 'layoutManager') {
|
12847
|
+
console.warn(`[Layout-proxy] accessing ${key.toString()}`);
|
12848
|
+
console.warn(msg);
|
12849
|
+
}
|
12850
|
+
return target[key];
|
12851
|
+
}
|
12852
|
+
});
|
12853
|
+
return layoutProxy;
|
12854
|
+
});
|
12834
12855
|
/**
|
12835
12856
|
* Returns the layout manager for the current window
|
12836
12857
|
* @returns
|
@@ -12944,7 +12965,7 @@ class LayoutModule extends base_1$5.Base {
|
|
12944
12965
|
}
|
12945
12966
|
}
|
12946
12967
|
Factory$2.LayoutModule = LayoutModule;
|
12947
|
-
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_throwIfLayoutManagerNotInitialized = function _LayoutModule_throwIfLayoutManagerNotInitialized(method) {
|
12968
|
+
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_throwIfLayoutManagerNotInitialized = function _LayoutModule_throwIfLayoutManagerNotInitialized(method) {
|
12948
12969
|
if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
|
12949
12970
|
throw new Error(`You must call init before using the API ${method}`);
|
12950
12971
|
}
|