@openfin/node-adapter 38.83.76 → 38.83.77

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.
@@ -5937,7 +5937,9 @@ class System extends base_1$i.EmitterBase {
5937
5937
  .then(({ payload }) => payload.data);
5938
5938
  }
5939
5939
  /**
5940
- * Get current focused window.
5940
+ * Get currently focused Window.
5941
+ * If a View currently has focus, returns the identity of View's parent Window.
5942
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
5941
5943
  *
5942
5944
  * @example
5943
5945
  * ```js
@@ -5947,6 +5949,17 @@ class System extends base_1$i.EmitterBase {
5947
5949
  getFocusedWindow() {
5948
5950
  return this.wire.sendAction('get-focused-window').then(({ payload }) => payload.data);
5949
5951
  }
5952
+ /**
5953
+ * Get currently focused content. Returns identity of entity with `entityType`.
5954
+ *
5955
+ * @example
5956
+ * ```js
5957
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
5958
+ * ```
5959
+ */
5960
+ getFocusedContent() {
5961
+ return this.wire.sendAction('get-focused-content').then(({ payload }) => payload.data);
5962
+ }
5950
5963
  /**
5951
5964
  * Returns information about the given app's certification status
5952
5965
  *
@@ -17509,7 +17522,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
17509
17522
  };
17510
17523
  }
17511
17524
  getAdapterVersionSync() {
17512
- return "38.83.76";
17525
+ return "38.83.77";
17513
17526
  }
17514
17527
  observeBounds(element, onChange) {
17515
17528
  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.83.76",
3
+ "version": "38.83.77",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",
@@ -23,7 +23,7 @@
23
23
  "author": "OpenFin",
24
24
  "dependencies": {
25
25
  "@types/node": "^20.14.2",
26
- "@openfin/core": "38.83.76",
26
+ "@openfin/core": "38.83.77",
27
27
  "lodash": "^4.17.21",
28
28
  "ws": "^7.3.0"
29
29
  }