@openfin/node-adapter 36.79.12 → 36.79.15
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 +34 -0
- package/out/node-adapter-beta.d.ts +34 -0
- package/out/node-adapter-public.d.ts +34 -0
- package/out/node-adapter.d.ts +34 -0
- package/out/node-adapter.js +24 -3
- package/package.json +1 -1
@@ -4470,6 +4470,32 @@ declare type CreateLayoutOptions = {
|
|
4470
4470
|
container: HTMLElement;
|
4471
4471
|
layoutName: string;
|
4472
4472
|
layout: LayoutOptions;
|
4473
|
+
/**
|
4474
|
+
* @defaultValue 'default'
|
4475
|
+
*
|
4476
|
+
* Controls the View behavior for the given `layout` property. Note
|
4477
|
+
* that the selected behavior only applies to unnamed Views or
|
4478
|
+
* Views with the prefix `internal-generated-`. In all cases, if any
|
4479
|
+
* View in the `layout` does not already exist, it will be created
|
4480
|
+
* with a name that starts with `internal-generated-`.
|
4481
|
+
*
|
4482
|
+
* When set to `reparent`, Views prefixed with `internal-generated-` will
|
4483
|
+
* be reparented to the current Window and added to this new Layout.
|
4484
|
+
* Use this option when you need to transfer an existing Layout between Windows.
|
4485
|
+
*
|
4486
|
+
* When set to 'duplicate', Views prefixed with `internal-generated-` will
|
4487
|
+
* be duplicated with new generated names. Use this option when you need
|
4488
|
+
* to clone a Layout to any Window.
|
4489
|
+
*
|
4490
|
+
* When set to `default` or omitted, the Layout will attempt to re-use
|
4491
|
+
* existing Views only if they are attached to the current Window or
|
4492
|
+
* the Provider Window. Set to `default` or omit this option when creating
|
4493
|
+
* Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
|
4494
|
+
* override. Note that during applyLayoutSnapshot, Views are created and
|
4495
|
+
* attached to the Provider while the Window is being created, so it's
|
4496
|
+
* important to not 'duplicate' Views in this workflow.
|
4497
|
+
*/
|
4498
|
+
multiInstanceViewBehavior?: MultiInstanceViewBehavior;
|
4473
4499
|
};
|
4474
4500
|
|
4475
4501
|
/**
|
@@ -9413,6 +9439,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
|
|
9413
9439
|
type: 'monitor-info-changed';
|
9414
9440
|
};
|
9415
9441
|
|
9442
|
+
/**
|
9443
|
+
* @experimental
|
9444
|
+
*
|
9445
|
+
* Used to control view behavior for Layout.create API
|
9446
|
+
*/
|
9447
|
+
declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
|
9448
|
+
|
9416
9449
|
/**
|
9417
9450
|
* @interface
|
9418
9451
|
*/
|
@@ -10133,6 +10166,7 @@ declare namespace OpenFin {
|
|
10133
10166
|
LayoutManagerOverride,
|
10134
10167
|
LayoutManager,
|
10135
10168
|
CreateLayoutOptions,
|
10169
|
+
MultiInstanceViewBehavior,
|
10136
10170
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
10137
10171
|
ResultBehavior,
|
10138
10172
|
PopupBaseBehavior,
|
@@ -4470,6 +4470,32 @@ declare type CreateLayoutOptions = {
|
|
4470
4470
|
container: HTMLElement;
|
4471
4471
|
layoutName: string;
|
4472
4472
|
layout: LayoutOptions;
|
4473
|
+
/**
|
4474
|
+
* @defaultValue 'default'
|
4475
|
+
*
|
4476
|
+
* Controls the View behavior for the given `layout` property. Note
|
4477
|
+
* that the selected behavior only applies to unnamed Views or
|
4478
|
+
* Views with the prefix `internal-generated-`. In all cases, if any
|
4479
|
+
* View in the `layout` does not already exist, it will be created
|
4480
|
+
* with a name that starts with `internal-generated-`.
|
4481
|
+
*
|
4482
|
+
* When set to `reparent`, Views prefixed with `internal-generated-` will
|
4483
|
+
* be reparented to the current Window and added to this new Layout.
|
4484
|
+
* Use this option when you need to transfer an existing Layout between Windows.
|
4485
|
+
*
|
4486
|
+
* When set to 'duplicate', Views prefixed with `internal-generated-` will
|
4487
|
+
* be duplicated with new generated names. Use this option when you need
|
4488
|
+
* to clone a Layout to any Window.
|
4489
|
+
*
|
4490
|
+
* When set to `default` or omitted, the Layout will attempt to re-use
|
4491
|
+
* existing Views only if they are attached to the current Window or
|
4492
|
+
* the Provider Window. Set to `default` or omit this option when creating
|
4493
|
+
* Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
|
4494
|
+
* override. Note that during applyLayoutSnapshot, Views are created and
|
4495
|
+
* attached to the Provider while the Window is being created, so it's
|
4496
|
+
* important to not 'duplicate' Views in this workflow.
|
4497
|
+
*/
|
4498
|
+
multiInstanceViewBehavior?: MultiInstanceViewBehavior;
|
4473
4499
|
};
|
4474
4500
|
|
4475
4501
|
/**
|
@@ -9413,6 +9439,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
|
|
9413
9439
|
type: 'monitor-info-changed';
|
9414
9440
|
};
|
9415
9441
|
|
9442
|
+
/**
|
9443
|
+
* @experimental
|
9444
|
+
*
|
9445
|
+
* Used to control view behavior for Layout.create API
|
9446
|
+
*/
|
9447
|
+
declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
|
9448
|
+
|
9416
9449
|
/**
|
9417
9450
|
* @interface
|
9418
9451
|
*/
|
@@ -10133,6 +10166,7 @@ declare namespace OpenFin {
|
|
10133
10166
|
LayoutManagerOverride,
|
10134
10167
|
LayoutManager,
|
10135
10168
|
CreateLayoutOptions,
|
10169
|
+
MultiInstanceViewBehavior,
|
10136
10170
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
10137
10171
|
ResultBehavior,
|
10138
10172
|
PopupBaseBehavior,
|
@@ -4470,6 +4470,32 @@ declare type CreateLayoutOptions = {
|
|
4470
4470
|
container: HTMLElement;
|
4471
4471
|
layoutName: string;
|
4472
4472
|
layout: LayoutOptions;
|
4473
|
+
/**
|
4474
|
+
* @defaultValue 'default'
|
4475
|
+
*
|
4476
|
+
* Controls the View behavior for the given `layout` property. Note
|
4477
|
+
* that the selected behavior only applies to unnamed Views or
|
4478
|
+
* Views with the prefix `internal-generated-`. In all cases, if any
|
4479
|
+
* View in the `layout` does not already exist, it will be created
|
4480
|
+
* with a name that starts with `internal-generated-`.
|
4481
|
+
*
|
4482
|
+
* When set to `reparent`, Views prefixed with `internal-generated-` will
|
4483
|
+
* be reparented to the current Window and added to this new Layout.
|
4484
|
+
* Use this option when you need to transfer an existing Layout between Windows.
|
4485
|
+
*
|
4486
|
+
* When set to 'duplicate', Views prefixed with `internal-generated-` will
|
4487
|
+
* be duplicated with new generated names. Use this option when you need
|
4488
|
+
* to clone a Layout to any Window.
|
4489
|
+
*
|
4490
|
+
* When set to `default` or omitted, the Layout will attempt to re-use
|
4491
|
+
* existing Views only if they are attached to the current Window or
|
4492
|
+
* the Provider Window. Set to `default` or omit this option when creating
|
4493
|
+
* Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
|
4494
|
+
* override. Note that during applyLayoutSnapshot, Views are created and
|
4495
|
+
* attached to the Provider while the Window is being created, so it's
|
4496
|
+
* important to not 'duplicate' Views in this workflow.
|
4497
|
+
*/
|
4498
|
+
multiInstanceViewBehavior?: MultiInstanceViewBehavior;
|
4473
4499
|
};
|
4474
4500
|
|
4475
4501
|
/**
|
@@ -9413,6 +9439,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
|
|
9413
9439
|
type: 'monitor-info-changed';
|
9414
9440
|
};
|
9415
9441
|
|
9442
|
+
/**
|
9443
|
+
* @experimental
|
9444
|
+
*
|
9445
|
+
* Used to control view behavior for Layout.create API
|
9446
|
+
*/
|
9447
|
+
declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
|
9448
|
+
|
9416
9449
|
/**
|
9417
9450
|
* @interface
|
9418
9451
|
*/
|
@@ -10133,6 +10166,7 @@ declare namespace OpenFin {
|
|
10133
10166
|
LayoutManagerOverride,
|
10134
10167
|
LayoutManager,
|
10135
10168
|
CreateLayoutOptions,
|
10169
|
+
MultiInstanceViewBehavior,
|
10136
10170
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
10137
10171
|
ResultBehavior,
|
10138
10172
|
PopupBaseBehavior,
|
package/out/node-adapter.d.ts
CHANGED
@@ -4513,6 +4513,32 @@ declare type CreateLayoutOptions = {
|
|
4513
4513
|
container: HTMLElement;
|
4514
4514
|
layoutName: string;
|
4515
4515
|
layout: LayoutOptions;
|
4516
|
+
/**
|
4517
|
+
* @defaultValue 'default'
|
4518
|
+
*
|
4519
|
+
* Controls the View behavior for the given `layout` property. Note
|
4520
|
+
* that the selected behavior only applies to unnamed Views or
|
4521
|
+
* Views with the prefix `internal-generated-`. In all cases, if any
|
4522
|
+
* View in the `layout` does not already exist, it will be created
|
4523
|
+
* with a name that starts with `internal-generated-`.
|
4524
|
+
*
|
4525
|
+
* When set to `reparent`, Views prefixed with `internal-generated-` will
|
4526
|
+
* be reparented to the current Window and added to this new Layout.
|
4527
|
+
* Use this option when you need to transfer an existing Layout between Windows.
|
4528
|
+
*
|
4529
|
+
* When set to 'duplicate', Views prefixed with `internal-generated-` will
|
4530
|
+
* be duplicated with new generated names. Use this option when you need
|
4531
|
+
* to clone a Layout to any Window.
|
4532
|
+
*
|
4533
|
+
* When set to `default` or omitted, the Layout will attempt to re-use
|
4534
|
+
* existing Views only if they are attached to the current Window or
|
4535
|
+
* the Provider Window. Set to `default` or omit this option when creating
|
4536
|
+
* Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
|
4537
|
+
* override. Note that during applyLayoutSnapshot, Views are created and
|
4538
|
+
* attached to the Provider while the Window is being created, so it's
|
4539
|
+
* important to not 'duplicate' Views in this workflow.
|
4540
|
+
*/
|
4541
|
+
multiInstanceViewBehavior?: MultiInstanceViewBehavior;
|
4516
4542
|
};
|
4517
4543
|
|
4518
4544
|
/**
|
@@ -9712,6 +9738,13 @@ declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin.MonitorInfo & {
|
|
9712
9738
|
type: 'monitor-info-changed';
|
9713
9739
|
};
|
9714
9740
|
|
9741
|
+
/**
|
9742
|
+
* @experimental
|
9743
|
+
*
|
9744
|
+
* Used to control view behavior for Layout.create API
|
9745
|
+
*/
|
9746
|
+
declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
|
9747
|
+
|
9715
9748
|
/**
|
9716
9749
|
* @interface
|
9717
9750
|
*/
|
@@ -10454,6 +10487,7 @@ declare namespace OpenFin {
|
|
10454
10487
|
LayoutManagerOverride,
|
10455
10488
|
LayoutManager,
|
10456
10489
|
CreateLayoutOptions,
|
10490
|
+
MultiInstanceViewBehavior,
|
10457
10491
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
10458
10492
|
ResultBehavior,
|
10459
10493
|
PopupBaseBehavior,
|
package/out/node-adapter.js
CHANGED
@@ -11735,7 +11735,7 @@ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
11735
11735
|
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");
|
11736
11736
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
11737
11737
|
};
|
11738
|
-
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getSafeLayoutManager;
|
11738
|
+
var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
|
11739
11739
|
Object.defineProperty(Factory$2, "__esModule", { value: true });
|
11740
11740
|
Factory$2.LayoutModule = void 0;
|
11741
11741
|
const base_1$5 = base$1;
|
@@ -11807,10 +11807,31 @@ class LayoutModule extends base_1$5.Base {
|
|
11807
11807
|
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
11808
11808
|
const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
|
11809
11809
|
const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
|
11810
|
-
return
|
11810
|
+
return __classPrivateFieldGet$4(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity, layoutManager);
|
11811
11811
|
}
|
11812
11812
|
return this.wrapSync(this.fin.me.identity);
|
11813
11813
|
};
|
11814
|
+
_LayoutModule_getLayoutManagerSpy.set(this, (layoutIdentity, layoutManager) => {
|
11815
|
+
const msg = '[Layout] You are using a deprecated property `layoutManager` - it will be removed in v39.';
|
11816
|
+
const managerProxy = new Proxy(layoutManager, {
|
11817
|
+
get(target, key) {
|
11818
|
+
console.warn(`[Layout-mgr-proxy] accessing ${key.toString()}`);
|
11819
|
+
console.warn(msg);
|
11820
|
+
return target[key];
|
11821
|
+
}
|
11822
|
+
});
|
11823
|
+
const layout = Object.assign(this.wrapSync(layoutIdentity), { layoutManager: managerProxy });
|
11824
|
+
const layoutProxy = new Proxy(layout, {
|
11825
|
+
get(target, key) {
|
11826
|
+
if (key === 'layoutManager') {
|
11827
|
+
console.warn(`[Layout-proxy] accessing ${key.toString()}`);
|
11828
|
+
console.warn(msg);
|
11829
|
+
}
|
11830
|
+
return target[key];
|
11831
|
+
}
|
11832
|
+
});
|
11833
|
+
return layoutProxy;
|
11834
|
+
});
|
11814
11835
|
/**
|
11815
11836
|
* Returns the layout manager for the current window
|
11816
11837
|
* @returns
|
@@ -11920,7 +11941,7 @@ class LayoutModule extends base_1$5.Base {
|
|
11920
11941
|
}
|
11921
11942
|
}
|
11922
11943
|
Factory$2.LayoutModule = LayoutModule;
|
11923
|
-
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
|
11944
|
+
_LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
|
11924
11945
|
if (!__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f")) {
|
11925
11946
|
throw new Error(`You must call init before using the API ${method}`);
|
11926
11947
|
}
|