@openfin/core 43.100.22 → 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.
@@ -12330,6 +12330,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12330
12330
  transitions: OpenFin_2.Transition;
12331
12331
  options: OpenFin_2.TransitionOptions;
12332
12332
  }>;
12333
+ 'activate-window-and-focus': ApiCall<{
12334
+ winIdentity: OpenFin_2.Identity;
12335
+ focusIdentity: OpenFin_2.Identity;
12336
+ }, boolean>;
12333
12337
  'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
12334
12338
  'get-window-bounds': IdentityCall<{
12335
12339
  options?: OpenFin_2.GetBoundsOptions;
@@ -17962,6 +17966,30 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17962
17966
  * ```
17963
17967
  */
17964
17968
  getAllFrames(): Promise<Array<OpenFin_2.FrameInfo>>;
17969
+ /**
17970
+ * Activates the current window and focuses the child entity if it exists. If this does
17971
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
17972
+ * it will return false.
17973
+ *
17974
+ * @example
17975
+ * ```js
17976
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
17977
+ *
17978
+ * win.getCurrentViews()
17979
+ * .then(([view1]) => {
17980
+ * return win.activateAndFocus(view1.identity);
17981
+ * })
17982
+ * .then(success => {
17983
+ * if (success) {
17984
+ * console.log('Window activated and child focused');
17985
+ * } else {
17986
+ * console.log('Window activation failed, focus state unchanged');
17987
+ * }
17988
+ * })
17989
+ * .catch(console.error);
17990
+ * ```
17991
+ */
17992
+ activateAndFocus(childIdentityToFocus: OpenFin_2.Identity): Promise<boolean>;
17965
17993
  /**
17966
17994
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
17967
17995
  *
@@ -12330,6 +12330,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12330
12330
  transitions: OpenFin_2.Transition;
12331
12331
  options: OpenFin_2.TransitionOptions;
12332
12332
  }>;
12333
+ 'activate-window-and-focus': ApiCall<{
12334
+ winIdentity: OpenFin_2.Identity;
12335
+ focusIdentity: OpenFin_2.Identity;
12336
+ }, boolean>;
12333
12337
  'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
12334
12338
  'get-window-bounds': IdentityCall<{
12335
12339
  options?: OpenFin_2.GetBoundsOptions;
@@ -17962,6 +17966,30 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17962
17966
  * ```
17963
17967
  */
17964
17968
  getAllFrames(): Promise<Array<OpenFin_2.FrameInfo>>;
17969
+ /**
17970
+ * Activates the current window and focuses the child entity if it exists. If this does
17971
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
17972
+ * it will return false.
17973
+ *
17974
+ * @example
17975
+ * ```js
17976
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
17977
+ *
17978
+ * win.getCurrentViews()
17979
+ * .then(([view1]) => {
17980
+ * return win.activateAndFocus(view1.identity);
17981
+ * })
17982
+ * .then(success => {
17983
+ * if (success) {
17984
+ * console.log('Window activated and child focused');
17985
+ * } else {
17986
+ * console.log('Window activation failed, focus state unchanged');
17987
+ * }
17988
+ * })
17989
+ * .catch(console.error);
17990
+ * ```
17991
+ */
17992
+ activateAndFocus(childIdentityToFocus: OpenFin_2.Identity): Promise<boolean>;
17965
17993
  /**
17966
17994
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
17967
17995
  *
@@ -12330,6 +12330,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12330
12330
  transitions: OpenFin_2.Transition;
12331
12331
  options: OpenFin_2.TransitionOptions;
12332
12332
  }>;
12333
+ 'activate-window-and-focus': ApiCall<{
12334
+ winIdentity: OpenFin_2.Identity;
12335
+ focusIdentity: OpenFin_2.Identity;
12336
+ }, boolean>;
12333
12337
  'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
12334
12338
  'get-window-bounds': IdentityCall<{
12335
12339
  options?: OpenFin_2.GetBoundsOptions;
@@ -17962,6 +17966,30 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17962
17966
  * ```
17963
17967
  */
17964
17968
  getAllFrames(): Promise<Array<OpenFin_2.FrameInfo>>;
17969
+ /**
17970
+ * Activates the current window and focuses the child entity if it exists. If this does
17971
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
17972
+ * it will return false.
17973
+ *
17974
+ * @example
17975
+ * ```js
17976
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
17977
+ *
17978
+ * win.getCurrentViews()
17979
+ * .then(([view1]) => {
17980
+ * return win.activateAndFocus(view1.identity);
17981
+ * })
17982
+ * .then(success => {
17983
+ * if (success) {
17984
+ * console.log('Window activated and child focused');
17985
+ * } else {
17986
+ * console.log('Window activation failed, focus state unchanged');
17987
+ * }
17988
+ * })
17989
+ * .catch(console.error);
17990
+ * ```
17991
+ */
17992
+ activateAndFocus(childIdentityToFocus: OpenFin_2.Identity): Promise<boolean>;
17965
17993
  /**
17966
17994
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
17967
17995
  *
package/out/stub.d.ts CHANGED
@@ -12731,6 +12731,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12731
12731
  transitions: OpenFin_2.Transition;
12732
12732
  options: OpenFin_2.TransitionOptions;
12733
12733
  }>;
12734
+ 'activate-window-and-focus': ApiCall<{
12735
+ winIdentity: OpenFin_2.Identity;
12736
+ focusIdentity: OpenFin_2.Identity;
12737
+ }, boolean>;
12734
12738
  'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
12735
12739
  'get-window-bounds': IdentityCall<{
12736
12740
  options?: OpenFin_2.GetBoundsOptions;
@@ -18416,6 +18420,30 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
18416
18420
  * ```
18417
18421
  */
18418
18422
  getAllFrames(): Promise<Array<OpenFin_2.FrameInfo>>;
18423
+ /**
18424
+ * Activates the current window and focuses the child entity if it exists. If this does
18425
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
18426
+ * it will return false.
18427
+ *
18428
+ * @example
18429
+ * ```js
18430
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
18431
+ *
18432
+ * win.getCurrentViews()
18433
+ * .then(([view1]) => {
18434
+ * return win.activateAndFocus(view1.identity);
18435
+ * })
18436
+ * .then(success => {
18437
+ * if (success) {
18438
+ * console.log('Window activated and child focused');
18439
+ * } else {
18440
+ * console.log('Window activation failed, focus state unchanged');
18441
+ * }
18442
+ * })
18443
+ * .catch(console.error);
18444
+ * ```
18445
+ */
18446
+ activateAndFocus(childIdentityToFocus: OpenFin_2.Identity): Promise<boolean>;
18419
18447
  /**
18420
18448
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
18421
18449
  *
package/out/stub.js CHANGED
@@ -4044,6 +4044,37 @@ function requireInstance () {
4044
4044
  getAllFrames() {
4045
4045
  return this.wire.sendAction('get-all-frames', this.identity).then(({ payload }) => payload.data);
4046
4046
  }
4047
+ /**
4048
+ * Activates the current window and focuses the child entity if it exists. If this does
4049
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
4050
+ * it will return false.
4051
+ *
4052
+ * @example
4053
+ * ```js
4054
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
4055
+ *
4056
+ * win.getCurrentViews()
4057
+ * .then(([view1]) => {
4058
+ * return win.activateAndFocus(view1.identity);
4059
+ * })
4060
+ * .then(success => {
4061
+ * if (success) {
4062
+ * console.log('Window activated and child focused');
4063
+ * } else {
4064
+ * console.log('Window activation failed, focus state unchanged');
4065
+ * }
4066
+ * })
4067
+ * .catch(console.error);
4068
+ * ```
4069
+ */
4070
+ activateAndFocus(childIdentityToFocus) {
4071
+ return this.wire
4072
+ .sendAction('activate-window-and-focus', {
4073
+ winIdentity: this.identity,
4074
+ focusIdentity: childIdentityToFocus
4075
+ })
4076
+ .then(({ payload }) => payload.data);
4077
+ }
4047
4078
  /**
4048
4079
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
4049
4080
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "43.100.22",
3
+ "version": "43.100.26",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/stub.js",