@openfin/node-adapter 43.100.23 → 43.100.27

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.
@@ -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
  *
@@ -4707,6 +4738,9 @@ function requireInstance () {
4707
4738
  * ```
4708
4739
  */
4709
4740
  updateOptions(options) {
4741
+ if ('frame' in options) {
4742
+ console.warn(`Deprecation Warning: Starting with version 45 it will not be possible to change the frame value after window has been created.`);
4743
+ }
4710
4744
  return this.wire.sendAction('update-window-options', { options, ...this.identity }).then(() => undefined);
4711
4745
  }
4712
4746
  /**
@@ -17759,7 +17793,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
17759
17793
  };
17760
17794
  }
17761
17795
  getAdapterVersionSync() {
17762
- return "43.100.23";
17796
+ return "43.100.27";
17763
17797
  }
17764
17798
  observeBounds(element, onChange) {
17765
17799
  throw new Error('Method not implemented.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "43.100.23",
3
+ "version": "43.100.27",
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": "43.100.23",
27
+ "@openfin/core": "43.100.27",
28
28
  "lodash": "^4.17.21",
29
29
  "ws": "^7.3.0"
30
30
  }