@openfin/fdc3-api 43.100.23 → 43.100.26

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.
@@ -12670,6 +12670,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12670
12670
  transitions: OpenFin.Transition;
12671
12671
  options: OpenFin.TransitionOptions;
12672
12672
  }>;
12673
+ 'activate-window-and-focus': ApiCall<{
12674
+ winIdentity: OpenFin.Identity;
12675
+ focusIdentity: OpenFin.Identity;
12676
+ }, boolean>;
12673
12677
  'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
12674
12678
  'get-window-bounds': IdentityCall<{
12675
12679
  options?: OpenFin.GetBoundsOptions;
@@ -18408,6 +18412,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
18408
18412
  * ```
18409
18413
  */
18410
18414
  getAllFrames(): Promise<Array<OpenFin.FrameInfo>>;
18415
+ /**
18416
+ * Activates the current window and focuses the child entity if it exists. If this does
18417
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
18418
+ * it will return false.
18419
+ *
18420
+ * @example
18421
+ * ```js
18422
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
18423
+ *
18424
+ * win.getCurrentViews()
18425
+ * .then(([view1]) => {
18426
+ * return win.activateAndFocus(view1.identity);
18427
+ * })
18428
+ * .then(success => {
18429
+ * if (success) {
18430
+ * console.log('Window activated and child focused');
18431
+ * } else {
18432
+ * console.log('Window activation failed, focus state unchanged');
18433
+ * }
18434
+ * })
18435
+ * .catch(console.error);
18436
+ * ```
18437
+ */
18438
+ activateAndFocus(childIdentityToFocus: OpenFin.Identity): Promise<boolean>;
18411
18439
  /**
18412
18440
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
18413
18441
  *
@@ -12670,6 +12670,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12670
12670
  transitions: OpenFin.Transition;
12671
12671
  options: OpenFin.TransitionOptions;
12672
12672
  }>;
12673
+ 'activate-window-and-focus': ApiCall<{
12674
+ winIdentity: OpenFin.Identity;
12675
+ focusIdentity: OpenFin.Identity;
12676
+ }, boolean>;
12673
12677
  'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
12674
12678
  'get-window-bounds': IdentityCall<{
12675
12679
  options?: OpenFin.GetBoundsOptions;
@@ -18408,6 +18412,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
18408
18412
  * ```
18409
18413
  */
18410
18414
  getAllFrames(): Promise<Array<OpenFin.FrameInfo>>;
18415
+ /**
18416
+ * Activates the current window and focuses the child entity if it exists. If this does
18417
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
18418
+ * it will return false.
18419
+ *
18420
+ * @example
18421
+ * ```js
18422
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
18423
+ *
18424
+ * win.getCurrentViews()
18425
+ * .then(([view1]) => {
18426
+ * return win.activateAndFocus(view1.identity);
18427
+ * })
18428
+ * .then(success => {
18429
+ * if (success) {
18430
+ * console.log('Window activated and child focused');
18431
+ * } else {
18432
+ * console.log('Window activation failed, focus state unchanged');
18433
+ * }
18434
+ * })
18435
+ * .catch(console.error);
18436
+ * ```
18437
+ */
18438
+ activateAndFocus(childIdentityToFocus: OpenFin.Identity): Promise<boolean>;
18411
18439
  /**
18412
18440
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
18413
18441
  *
@@ -12670,6 +12670,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12670
12670
  transitions: OpenFin.Transition;
12671
12671
  options: OpenFin.TransitionOptions;
12672
12672
  }>;
12673
+ 'activate-window-and-focus': ApiCall<{
12674
+ winIdentity: OpenFin.Identity;
12675
+ focusIdentity: OpenFin.Identity;
12676
+ }, boolean>;
12673
12677
  'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
12674
12678
  'get-window-bounds': IdentityCall<{
12675
12679
  options?: OpenFin.GetBoundsOptions;
@@ -18408,6 +18412,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
18408
18412
  * ```
18409
18413
  */
18410
18414
  getAllFrames(): Promise<Array<OpenFin.FrameInfo>>;
18415
+ /**
18416
+ * Activates the current window and focuses the child entity if it exists. If this does
18417
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
18418
+ * it will return false.
18419
+ *
18420
+ * @example
18421
+ * ```js
18422
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
18423
+ *
18424
+ * win.getCurrentViews()
18425
+ * .then(([view1]) => {
18426
+ * return win.activateAndFocus(view1.identity);
18427
+ * })
18428
+ * .then(success => {
18429
+ * if (success) {
18430
+ * console.log('Window activated and child focused');
18431
+ * } else {
18432
+ * console.log('Window activation failed, focus state unchanged');
18433
+ * }
18434
+ * })
18435
+ * .catch(console.error);
18436
+ * ```
18437
+ */
18438
+ activateAndFocus(childIdentityToFocus: OpenFin.Identity): Promise<boolean>;
18411
18439
  /**
18412
18440
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
18413
18441
  *
package/out/fdc3-api.d.ts CHANGED
@@ -13071,6 +13071,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13071
13071
  transitions: OpenFin.Transition;
13072
13072
  options: OpenFin.TransitionOptions;
13073
13073
  }>;
13074
+ 'activate-window-and-focus': ApiCall<{
13075
+ winIdentity: OpenFin.Identity;
13076
+ focusIdentity: OpenFin.Identity;
13077
+ }, boolean>;
13074
13078
  'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
13075
13079
  'get-window-bounds': IdentityCall<{
13076
13080
  options?: OpenFin.GetBoundsOptions;
@@ -18862,6 +18866,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
18862
18866
  * ```
18863
18867
  */
18864
18868
  getAllFrames(): Promise<Array<OpenFin.FrameInfo>>;
18869
+ /**
18870
+ * Activates the current window and focuses the child entity if it exists. If this does
18871
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
18872
+ * it will return false.
18873
+ *
18874
+ * @example
18875
+ * ```js
18876
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
18877
+ *
18878
+ * win.getCurrentViews()
18879
+ * .then(([view1]) => {
18880
+ * return win.activateAndFocus(view1.identity);
18881
+ * })
18882
+ * .then(success => {
18883
+ * if (success) {
18884
+ * console.log('Window activated and child focused');
18885
+ * } else {
18886
+ * console.log('Window activation failed, focus state unchanged');
18887
+ * }
18888
+ * })
18889
+ * .catch(console.error);
18890
+ * ```
18891
+ */
18892
+ activateAndFocus(childIdentityToFocus: OpenFin.Identity): Promise<boolean>;
18865
18893
  /**
18866
18894
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
18867
18895
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "43.100.23",
3
+ "version": "43.100.26",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,