@openfin/core 40.83.7 → 40.83.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -12119,6 +12119,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12119
12119
  response: string;
12120
12120
  };
12121
12121
  'get-focused-window': GetterCall<OpenFin_2.Identity | null>;
12122
+ 'get-focused-content': GetterCall<(OpenFin_2.Identity & {
12123
+ entityType: 'window' | 'view';
12124
+ }) | null>;
12122
12125
  'is-app-certified': {
12123
12126
  request: {
12124
12127
  manifestUrl: string;
@@ -13588,7 +13591,9 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
13588
13591
  */
13589
13592
  getEnvironmentVariable(envName: string): Promise<string>;
13590
13593
  /**
13591
- * Get current focused window.
13594
+ * Get currently focused Window.
13595
+ * If a View currently has focus, returns the identity of View's parent Window.
13596
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
13592
13597
  *
13593
13598
  * @example
13594
13599
  * ```js
@@ -13596,6 +13601,17 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
13596
13601
  * ```
13597
13602
  */
13598
13603
  getFocusedWindow(): Promise<OpenFin_2.Identity | null>;
13604
+ /**
13605
+ * Get currently focused content. Returns identity of entity with `entityType`.
13606
+ *
13607
+ * @example
13608
+ * ```js
13609
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
13610
+ * ```
13611
+ */
13612
+ getFocusedContent(): Promise<(OpenFin_2.Identity & {
13613
+ entityType: 'window' | 'view';
13614
+ }) | null>;
13599
13615
  /**
13600
13616
  * Returns information about the given app's certification status
13601
13617
  *
@@ -12119,6 +12119,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12119
12119
  response: string;
12120
12120
  };
12121
12121
  'get-focused-window': GetterCall<OpenFin_2.Identity | null>;
12122
+ 'get-focused-content': GetterCall<(OpenFin_2.Identity & {
12123
+ entityType: 'window' | 'view';
12124
+ }) | null>;
12122
12125
  'is-app-certified': {
12123
12126
  request: {
12124
12127
  manifestUrl: string;
@@ -13588,7 +13591,9 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
13588
13591
  */
13589
13592
  getEnvironmentVariable(envName: string): Promise<string>;
13590
13593
  /**
13591
- * Get current focused window.
13594
+ * Get currently focused Window.
13595
+ * If a View currently has focus, returns the identity of View's parent Window.
13596
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
13592
13597
  *
13593
13598
  * @example
13594
13599
  * ```js
@@ -13596,6 +13601,17 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
13596
13601
  * ```
13597
13602
  */
13598
13603
  getFocusedWindow(): Promise<OpenFin_2.Identity | null>;
13604
+ /**
13605
+ * Get currently focused content. Returns identity of entity with `entityType`.
13606
+ *
13607
+ * @example
13608
+ * ```js
13609
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
13610
+ * ```
13611
+ */
13612
+ getFocusedContent(): Promise<(OpenFin_2.Identity & {
13613
+ entityType: 'window' | 'view';
13614
+ }) | null>;
13599
13615
  /**
13600
13616
  * Returns information about the given app's certification status
13601
13617
  *
@@ -12119,6 +12119,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12119
12119
  response: string;
12120
12120
  };
12121
12121
  'get-focused-window': GetterCall<OpenFin_2.Identity | null>;
12122
+ 'get-focused-content': GetterCall<(OpenFin_2.Identity & {
12123
+ entityType: 'window' | 'view';
12124
+ }) | null>;
12122
12125
  'is-app-certified': {
12123
12126
  request: {
12124
12127
  manifestUrl: string;
@@ -13588,7 +13591,9 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
13588
13591
  */
13589
13592
  getEnvironmentVariable(envName: string): Promise<string>;
13590
13593
  /**
13591
- * Get current focused window.
13594
+ * Get currently focused Window.
13595
+ * If a View currently has focus, returns the identity of View's parent Window.
13596
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
13592
13597
  *
13593
13598
  * @example
13594
13599
  * ```js
@@ -13596,6 +13601,17 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
13596
13601
  * ```
13597
13602
  */
13598
13603
  getFocusedWindow(): Promise<OpenFin_2.Identity | null>;
13604
+ /**
13605
+ * Get currently focused content. Returns identity of entity with `entityType`.
13606
+ *
13607
+ * @example
13608
+ * ```js
13609
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
13610
+ * ```
13611
+ */
13612
+ getFocusedContent(): Promise<(OpenFin_2.Identity & {
13613
+ entityType: 'window' | 'view';
13614
+ }) | null>;
13599
13615
  /**
13600
13616
  * Returns information about the given app's certification status
13601
13617
  *
package/out/mock.d.ts CHANGED
@@ -12520,6 +12520,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12520
12520
  response: string;
12521
12521
  };
12522
12522
  'get-focused-window': GetterCall<OpenFin_2.Identity | null>;
12523
+ 'get-focused-content': GetterCall<(OpenFin_2.Identity & {
12524
+ entityType: 'window' | 'view';
12525
+ }) | null>;
12523
12526
  'is-app-certified': {
12524
12527
  request: {
12525
12528
  manifestUrl: string;
@@ -13995,7 +13998,9 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
13995
13998
  */
13996
13999
  getEnvironmentVariable(envName: string): Promise<string>;
13997
14000
  /**
13998
- * Get current focused window.
14001
+ * Get currently focused Window.
14002
+ * If a View currently has focus, returns the identity of View's parent Window.
14003
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
13999
14004
  *
14000
14005
  * @example
14001
14006
  * ```js
@@ -14003,6 +14008,17 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14003
14008
  * ```
14004
14009
  */
14005
14010
  getFocusedWindow(): Promise<OpenFin_2.Identity | null>;
14011
+ /**
14012
+ * Get currently focused content. Returns identity of entity with `entityType`.
14013
+ *
14014
+ * @example
14015
+ * ```js
14016
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
14017
+ * ```
14018
+ */
14019
+ getFocusedContent(): Promise<(OpenFin_2.Identity & {
14020
+ entityType: 'window' | 'view';
14021
+ }) | null>;
14006
14022
  /**
14007
14023
  * Returns information about the given app's certification status
14008
14024
  *
package/out/mock.js CHANGED
@@ -5625,7 +5625,9 @@ class System extends base_1$i.EmitterBase {
5625
5625
  .then(({ payload }) => payload.data);
5626
5626
  }
5627
5627
  /**
5628
- * Get current focused window.
5628
+ * Get currently focused Window.
5629
+ * If a View currently has focus, returns the identity of View's parent Window.
5630
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
5629
5631
  *
5630
5632
  * @example
5631
5633
  * ```js
@@ -5635,6 +5637,17 @@ class System extends base_1$i.EmitterBase {
5635
5637
  getFocusedWindow() {
5636
5638
  return this.wire.sendAction('get-focused-window').then(({ payload }) => payload.data);
5637
5639
  }
5640
+ /**
5641
+ * Get currently focused content. Returns identity of entity with `entityType`.
5642
+ *
5643
+ * @example
5644
+ * ```js
5645
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
5646
+ * ```
5647
+ */
5648
+ getFocusedContent() {
5649
+ return this.wire.sendAction('get-focused-content').then(({ payload }) => payload.data);
5650
+ }
5638
5651
  /**
5639
5652
  * Returns information about the given app's certification status
5640
5653
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "40.83.7",
3
+ "version": "40.83.9",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",