@openfin/fdc3-api 40.83.7 → 40.83.8

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.
@@ -12459,6 +12459,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12459
12459
  response: string;
12460
12460
  };
12461
12461
  'get-focused-window': GetterCall<OpenFin.Identity | null>;
12462
+ 'get-focused-content': GetterCall<(OpenFin.Identity & {
12463
+ entityType: 'window' | 'view';
12464
+ }) | null>;
12462
12465
  'is-app-certified': {
12463
12466
  request: {
12464
12467
  manifestUrl: string;
@@ -13928,7 +13931,9 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13928
13931
  */
13929
13932
  getEnvironmentVariable(envName: string): Promise<string>;
13930
13933
  /**
13931
- * Get current focused window.
13934
+ * Get currently focused Window.
13935
+ * If a View currently has focus, returns the identity of View's parent Window.
13936
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
13932
13937
  *
13933
13938
  * @example
13934
13939
  * ```js
@@ -13936,6 +13941,17 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13936
13941
  * ```
13937
13942
  */
13938
13943
  getFocusedWindow(): Promise<OpenFin.Identity | null>;
13944
+ /**
13945
+ * Get currently focused content. Returns identity of entity with `entityType`.
13946
+ *
13947
+ * @example
13948
+ * ```js
13949
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
13950
+ * ```
13951
+ */
13952
+ getFocusedContent(): Promise<(OpenFin.Identity & {
13953
+ entityType: 'window' | 'view';
13954
+ }) | null>;
13939
13955
  /**
13940
13956
  * Returns information about the given app's certification status
13941
13957
  *
@@ -12459,6 +12459,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12459
12459
  response: string;
12460
12460
  };
12461
12461
  'get-focused-window': GetterCall<OpenFin.Identity | null>;
12462
+ 'get-focused-content': GetterCall<(OpenFin.Identity & {
12463
+ entityType: 'window' | 'view';
12464
+ }) | null>;
12462
12465
  'is-app-certified': {
12463
12466
  request: {
12464
12467
  manifestUrl: string;
@@ -13928,7 +13931,9 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13928
13931
  */
13929
13932
  getEnvironmentVariable(envName: string): Promise<string>;
13930
13933
  /**
13931
- * Get current focused window.
13934
+ * Get currently focused Window.
13935
+ * If a View currently has focus, returns the identity of View's parent Window.
13936
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
13932
13937
  *
13933
13938
  * @example
13934
13939
  * ```js
@@ -13936,6 +13941,17 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13936
13941
  * ```
13937
13942
  */
13938
13943
  getFocusedWindow(): Promise<OpenFin.Identity | null>;
13944
+ /**
13945
+ * Get currently focused content. Returns identity of entity with `entityType`.
13946
+ *
13947
+ * @example
13948
+ * ```js
13949
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
13950
+ * ```
13951
+ */
13952
+ getFocusedContent(): Promise<(OpenFin.Identity & {
13953
+ entityType: 'window' | 'view';
13954
+ }) | null>;
13939
13955
  /**
13940
13956
  * Returns information about the given app's certification status
13941
13957
  *
@@ -12459,6 +12459,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12459
12459
  response: string;
12460
12460
  };
12461
12461
  'get-focused-window': GetterCall<OpenFin.Identity | null>;
12462
+ 'get-focused-content': GetterCall<(OpenFin.Identity & {
12463
+ entityType: 'window' | 'view';
12464
+ }) | null>;
12462
12465
  'is-app-certified': {
12463
12466
  request: {
12464
12467
  manifestUrl: string;
@@ -13928,7 +13931,9 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13928
13931
  */
13929
13932
  getEnvironmentVariable(envName: string): Promise<string>;
13930
13933
  /**
13931
- * Get current focused window.
13934
+ * Get currently focused Window.
13935
+ * If a View currently has focus, returns the identity of View's parent Window.
13936
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
13932
13937
  *
13933
13938
  * @example
13934
13939
  * ```js
@@ -13936,6 +13941,17 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13936
13941
  * ```
13937
13942
  */
13938
13943
  getFocusedWindow(): Promise<OpenFin.Identity | null>;
13944
+ /**
13945
+ * Get currently focused content. Returns identity of entity with `entityType`.
13946
+ *
13947
+ * @example
13948
+ * ```js
13949
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
13950
+ * ```
13951
+ */
13952
+ getFocusedContent(): Promise<(OpenFin.Identity & {
13953
+ entityType: 'window' | 'view';
13954
+ }) | null>;
13939
13955
  /**
13940
13956
  * Returns information about the given app's certification status
13941
13957
  *
package/out/fdc3-api.d.ts CHANGED
@@ -12860,6 +12860,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12860
12860
  response: string;
12861
12861
  };
12862
12862
  'get-focused-window': GetterCall<OpenFin.Identity | null>;
12863
+ 'get-focused-content': GetterCall<(OpenFin.Identity & {
12864
+ entityType: 'window' | 'view';
12865
+ }) | null>;
12863
12866
  'is-app-certified': {
12864
12867
  request: {
12865
12868
  manifestUrl: string;
@@ -14335,7 +14338,9 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
14335
14338
  */
14336
14339
  getEnvironmentVariable(envName: string): Promise<string>;
14337
14340
  /**
14338
- * Get current focused window.
14341
+ * Get currently focused Window.
14342
+ * If a View currently has focus, returns the identity of View's parent Window.
14343
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
14339
14344
  *
14340
14345
  * @example
14341
14346
  * ```js
@@ -14343,6 +14348,17 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
14343
14348
  * ```
14344
14349
  */
14345
14350
  getFocusedWindow(): Promise<OpenFin.Identity | null>;
14351
+ /**
14352
+ * Get currently focused content. Returns identity of entity with `entityType`.
14353
+ *
14354
+ * @example
14355
+ * ```js
14356
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
14357
+ * ```
14358
+ */
14359
+ getFocusedContent(): Promise<(OpenFin.Identity & {
14360
+ entityType: 'window' | 'view';
14361
+ }) | null>;
14346
14362
  /**
14347
14363
  * Returns information about the given app's certification status
14348
14364
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "40.83.7",
3
+ "version": "40.83.8",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,