@openfin/node-adapter 38.82.1 → 38.82.53

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/README.md CHANGED
@@ -4,7 +4,7 @@ Allows the use of the OpenFin API from node.js. Please note that the `launch` an
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- - Node.js 16 or greater
7
+ - Node.js 20 or greater
8
8
 
9
9
  # Usage
10
10
 
@@ -2570,6 +2570,8 @@ function requireInstance$2 () {
2570
2570
  * left: 100,
2571
2571
  * width: 300,
2572
2572
  * height: 300
2573
+ * }, {
2574
+ * bringToFront : true
2573
2575
  * });
2574
2576
  * }
2575
2577
  *
@@ -2579,8 +2581,18 @@ function requireInstance$2 () {
2579
2581
  * ```
2580
2582
  * @experimental
2581
2583
  */
2582
- this.showAt = async (bounds) => {
2583
- await this.wire.sendAction('show-view-at', { bounds, ...this.identity });
2584
+ this.showAt = async (bounds, options = {}) => {
2585
+ await this.wire.sendAction('show-view-at', { bounds, ...this.identity, options });
2586
+ };
2587
+ /**
2588
+ * Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
2589
+ * which have overlapping bounds with it.
2590
+ *
2591
+ * Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
2592
+ * in the window that share bounds with it.
2593
+ */
2594
+ this.bringToFront = async () => {
2595
+ await this.wire.sendAction('bring-view-to-front', { ...this.identity });
2584
2596
  };
2585
2597
  /**
2586
2598
  * Hides the current view if it is currently visible.
@@ -17416,7 +17428,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
17416
17428
  };
17417
17429
  }
17418
17430
  getAdapterVersionSync() {
17419
- return "38.82.1";
17431
+ return "38.82.53";
17420
17432
  }
17421
17433
  observeBounds(element, onChange) {
17422
17434
  throw new Error('Method not implemented.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "38.82.1",
3
+ "version": "38.82.53",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",
@@ -22,8 +22,8 @@
22
22
  ],
23
23
  "author": "OpenFin",
24
24
  "dependencies": {
25
- "@types/node": "^16.0.0",
26
- "@openfin/core": "38.82.1",
25
+ "@types/node": "^20.14.2",
26
+ "@openfin/core": "38.82.53",
27
27
  "lodash": "^4.17.21",
28
28
  "ws": "^7.3.0"
29
29
  }