@openfin/fdc3-api 38.83.76 → 38.83.78

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.
@@ -12387,6 +12387,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12387
12387
  response: string;
12388
12388
  };
12389
12389
  'get-focused-window': GetterCall<OpenFin.Identity | null>;
12390
+ 'get-focused-content': GetterCall<(OpenFin.Identity & {
12391
+ entityType: 'window' | 'view';
12392
+ }) | null>;
12390
12393
  'is-app-certified': {
12391
12394
  request: {
12392
12395
  manifestUrl: string;
@@ -13856,7 +13859,9 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13856
13859
  */
13857
13860
  getEnvironmentVariable(envName: string): Promise<string>;
13858
13861
  /**
13859
- * Get current focused window.
13862
+ * Get currently focused Window.
13863
+ * If a View currently has focus, returns the identity of View's parent Window.
13864
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
13860
13865
  *
13861
13866
  * @example
13862
13867
  * ```js
@@ -13864,6 +13869,17 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13864
13869
  * ```
13865
13870
  */
13866
13871
  getFocusedWindow(): Promise<OpenFin.Identity | null>;
13872
+ /**
13873
+ * Get currently focused content. Returns identity of entity with `entityType`.
13874
+ *
13875
+ * @example
13876
+ * ```js
13877
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
13878
+ * ```
13879
+ */
13880
+ getFocusedContent(): Promise<(OpenFin.Identity & {
13881
+ entityType: 'window' | 'view';
13882
+ }) | null>;
13867
13883
  /**
13868
13884
  * Returns information about the given app's certification status
13869
13885
  *
@@ -12387,6 +12387,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12387
12387
  response: string;
12388
12388
  };
12389
12389
  'get-focused-window': GetterCall<OpenFin.Identity | null>;
12390
+ 'get-focused-content': GetterCall<(OpenFin.Identity & {
12391
+ entityType: 'window' | 'view';
12392
+ }) | null>;
12390
12393
  'is-app-certified': {
12391
12394
  request: {
12392
12395
  manifestUrl: string;
@@ -13856,7 +13859,9 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13856
13859
  */
13857
13860
  getEnvironmentVariable(envName: string): Promise<string>;
13858
13861
  /**
13859
- * Get current focused window.
13862
+ * Get currently focused Window.
13863
+ * If a View currently has focus, returns the identity of View's parent Window.
13864
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
13860
13865
  *
13861
13866
  * @example
13862
13867
  * ```js
@@ -13864,6 +13869,17 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13864
13869
  * ```
13865
13870
  */
13866
13871
  getFocusedWindow(): Promise<OpenFin.Identity | null>;
13872
+ /**
13873
+ * Get currently focused content. Returns identity of entity with `entityType`.
13874
+ *
13875
+ * @example
13876
+ * ```js
13877
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
13878
+ * ```
13879
+ */
13880
+ getFocusedContent(): Promise<(OpenFin.Identity & {
13881
+ entityType: 'window' | 'view';
13882
+ }) | null>;
13867
13883
  /**
13868
13884
  * Returns information about the given app's certification status
13869
13885
  *
@@ -12387,6 +12387,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12387
12387
  response: string;
12388
12388
  };
12389
12389
  'get-focused-window': GetterCall<OpenFin.Identity | null>;
12390
+ 'get-focused-content': GetterCall<(OpenFin.Identity & {
12391
+ entityType: 'window' | 'view';
12392
+ }) | null>;
12390
12393
  'is-app-certified': {
12391
12394
  request: {
12392
12395
  manifestUrl: string;
@@ -13856,7 +13859,9 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13856
13859
  */
13857
13860
  getEnvironmentVariable(envName: string): Promise<string>;
13858
13861
  /**
13859
- * Get current focused window.
13862
+ * Get currently focused Window.
13863
+ * If a View currently has focus, returns the identity of View's parent Window.
13864
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
13860
13865
  *
13861
13866
  * @example
13862
13867
  * ```js
@@ -13864,6 +13869,17 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13864
13869
  * ```
13865
13870
  */
13866
13871
  getFocusedWindow(): Promise<OpenFin.Identity | null>;
13872
+ /**
13873
+ * Get currently focused content. Returns identity of entity with `entityType`.
13874
+ *
13875
+ * @example
13876
+ * ```js
13877
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
13878
+ * ```
13879
+ */
13880
+ getFocusedContent(): Promise<(OpenFin.Identity & {
13881
+ entityType: 'window' | 'view';
13882
+ }) | null>;
13867
13883
  /**
13868
13884
  * Returns information about the given app's certification status
13869
13885
  *
package/out/fdc3-api.d.ts CHANGED
@@ -12780,6 +12780,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12780
12780
  response: string;
12781
12781
  };
12782
12782
  'get-focused-window': GetterCall<OpenFin.Identity | null>;
12783
+ 'get-focused-content': GetterCall<(OpenFin.Identity & {
12784
+ entityType: 'window' | 'view';
12785
+ }) | null>;
12783
12786
  'is-app-certified': {
12784
12787
  request: {
12785
12788
  manifestUrl: string;
@@ -14255,7 +14258,9 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
14255
14258
  */
14256
14259
  getEnvironmentVariable(envName: string): Promise<string>;
14257
14260
  /**
14258
- * Get current focused window.
14261
+ * Get currently focused Window.
14262
+ * If a View currently has focus, returns the identity of View's parent Window.
14263
+ * Use {@link Window._Window#getFocusedContent Window.getFocusedContent} to directly access currently focused Window or View.
14259
14264
  *
14260
14265
  * @example
14261
14266
  * ```js
@@ -14263,6 +14268,17 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
14263
14268
  * ```
14264
14269
  */
14265
14270
  getFocusedWindow(): Promise<OpenFin.Identity | null>;
14271
+ /**
14272
+ * Get currently focused content. Returns identity of entity with `entityType`.
14273
+ *
14274
+ * @example
14275
+ * ```js
14276
+ * fin.System.getFocusedContent().then(contentIdentity => console.log(contentIdentity)).catch(err => console.log(err));
14277
+ * ```
14278
+ */
14279
+ getFocusedContent(): Promise<(OpenFin.Identity & {
14280
+ entityType: 'window' | 'view';
14281
+ }) | null>;
14266
14282
  /**
14267
14283
  * Returns information about the given app's certification status
14268
14284
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "38.83.76",
3
+ "version": "38.83.78",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "private": false,