@openfin/node-adapter 41.100.120 → 41.100.121
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.js +32 -1
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
@@ -3756,6 +3756,37 @@ function requireInstance () {
|
|
3756
3756
|
getAllFrames() {
|
3757
3757
|
return this.wire.sendAction('get-all-frames', this.identity).then(({ payload }) => payload.data);
|
3758
3758
|
}
|
3759
|
+
/**
|
3760
|
+
* Activates the current window and focuses the child entity if it exists. If this does
|
3761
|
+
* not succeed - say the child does not belong to this window, or the identity does not exist -
|
3762
|
+
* it will return false.
|
3763
|
+
*
|
3764
|
+
* @example
|
3765
|
+
* ```js
|
3766
|
+
* const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
|
3767
|
+
*
|
3768
|
+
* win.getCurrentViews()
|
3769
|
+
* .then(([view1]) => {
|
3770
|
+
* return win.activateAndFocus(view1.identity);
|
3771
|
+
* })
|
3772
|
+
* .then(success => {
|
3773
|
+
* if (success) {
|
3774
|
+
* console.log('Window activated and child focused');
|
3775
|
+
* } else {
|
3776
|
+
* console.log('Window activation failed, focus state unchanged');
|
3777
|
+
* }
|
3778
|
+
* })
|
3779
|
+
* .catch(console.error);
|
3780
|
+
* ```
|
3781
|
+
*/
|
3782
|
+
activateAndFocus(childIdentityToFocus) {
|
3783
|
+
return this.wire
|
3784
|
+
.sendAction('activate-window-and-focus', {
|
3785
|
+
winIdentity: this.identity,
|
3786
|
+
focusIdentity: childIdentityToFocus
|
3787
|
+
})
|
3788
|
+
.then(({ payload }) => payload.data);
|
3789
|
+
}
|
3759
3790
|
/**
|
3760
3791
|
* Gets the current bounds (top, bottom, right, left, width, height) of the window.
|
3761
3792
|
*
|
@@ -17792,7 +17823,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
|
|
17792
17823
|
};
|
17793
17824
|
}
|
17794
17825
|
getAdapterVersionSync() {
|
17795
|
-
return "41.100.
|
17826
|
+
return "41.100.121";
|
17796
17827
|
}
|
17797
17828
|
observeBounds(element, onChange) {
|
17798
17829
|
throw new Error('Method not implemented.');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@openfin/node-adapter",
|
3
|
-
"version": "41.100.
|
3
|
+
"version": "41.100.121",
|
4
4
|
"description": "See README.md",
|
5
5
|
"main": "out/node-adapter.js",
|
6
6
|
"types": "out/node-adapter.d.ts",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"author": "OpenFin",
|
25
25
|
"dependencies": {
|
26
26
|
"@types/node": "^20.14.2",
|
27
|
-
"@openfin/core": "41.100.
|
27
|
+
"@openfin/core": "41.100.121",
|
28
28
|
"lodash": "^4.17.21",
|
29
29
|
"ws": "^7.3.0"
|
30
30
|
}
|