@openfin/node-adapter 40.83.7 → 40.83.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -5337,7 +5337,9 @@ class System extends base_1$i.EmitterBase {
5337
5337
  .then(({ payload }) => payload.data);
5338
5338
  }
5339
5339
  /**
5340
- * Get current focused window.
5340
+ * Get currently focused Window.
5341
+ * If a View currently has focus, returns the identity of View's parent Window.
5342
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
5341
5343
  *
5342
5344
  * @example
5343
5345
  * ```js
@@ -5347,6 +5349,17 @@ class System extends base_1$i.EmitterBase {
5347
5349
  getFocusedWindow() {
5348
5350
  return this.wire.sendAction('get-focused-window').then(({ payload }) => payload.data);
5349
5351
  }
5352
+ /**
5353
+ * Get currently focused content. Returns identity of entity with `entityType`.
5354
+ *
5355
+ * @example
5356
+ * ```js
5357
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
5358
+ * ```
5359
+ */
5360
+ getFocusedContent() {
5361
+ return this.wire.sendAction('get-focused-content').then(({ payload }) => payload.data);
5362
+ }
5350
5363
  /**
5351
5364
  * Returns information about the given app's certification status
5352
5365
  *
@@ -17747,7 +17760,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
17747
17760
  };
17748
17761
  }
17749
17762
  getAdapterVersionSync() {
17750
- return "40.83.7";
17763
+ return "40.83.9";
17751
17764
  }
17752
17765
  observeBounds(element, onChange) {
17753
17766
  throw new Error('Method not implemented.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "40.83.7",
3
+ "version": "40.83.9",
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": "40.83.7",
26
+ "@openfin/core": "40.83.9",
27
27
  "lodash": "^4.17.21",
28
28
  "ws": "^7.3.0"
29
29
  }