@openfin/core 40.101.1 → 40.102.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
- import OpenFin from './mock';
1
+ // eslint-disable-next-line import/no-named-as-default
2
+ import OpenFin from './stub';
2
3
 
3
4
  export = OpenFin;
4
5
  export as namespace OpenFin;
@@ -4601,6 +4601,15 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4601
4601
  eventNames: () => (string | symbol)[];
4602
4602
  /* Excluded from this release type: emit */
4603
4603
  private hasEmitter;
4604
+ /**
4605
+ * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
4606
+ * `once` subscription.
4607
+ *
4608
+ * @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
4609
+ * on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
4610
+ * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
4611
+ */
4612
+ private cleanUpRemovedListener;
4604
4613
  private getOrCreateEmitter;
4605
4614
  listeners: (type: string | symbol) => Function[];
4606
4615
  listenerCount: (type: string | symbol) => number;
@@ -5678,6 +5687,30 @@ declare type FrameProcessDetails = ProcessDetails & {
5678
5687
  entityType: string;
5679
5688
  };
5680
5689
 
5690
+ /**
5691
+ * @interface
5692
+ * Options for the {@link Window._Window.getBounds} method.
5693
+ */
5694
+ declare interface GetBoundsOptions {
5695
+ /**
5696
+ * Specifies the state of the window for which to retrieve the bounds.
5697
+ *
5698
+ * - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
5699
+ * - `'current'`: Returns the bounds of the window in its current state. For a minimized window, this returns the bounds from its previous state before being minimized.
5700
+ *
5701
+ * If a window is in `normal` state, `current` and `normal` will return the same bounds.
5702
+ *
5703
+ * If a window is `maximized`, `current` will return the dimensions of the screen while `normal` will return the bounds the window will be restored to.
5704
+ *
5705
+ * If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
5706
+ *
5707
+ * **Edge case:** On MacOS, if a window is maximized, then minimized, calling `getBounds` with `boundsType: 'current'` will return the bounds of the window when it was maximized while `normal` will return the normal bounds.
5708
+ *
5709
+ * @default 'normal'
5710
+ */
5711
+ boundsType?: 'normal' | 'current';
5712
+ }
5713
+
5681
5714
  /**
5682
5715
  * @interface
5683
5716
  */
@@ -7585,7 +7618,7 @@ declare type LaunchIntoPlatformPayload = {
7585
7618
  *
7586
7619
  * @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
7587
7620
  *
7588
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
7621
+ * #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
7589
7622
  * Adds a listener to the end of the listeners array for the specified event.
7590
7623
  * @example
7591
7624
  * ```js
@@ -7602,7 +7635,7 @@ declare type LaunchIntoPlatformPayload = {
7602
7635
  * });
7603
7636
  * ```
7604
7637
  *
7605
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
7638
+ * #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
7606
7639
  * Adds a listener to the end of the listeners array for the specified event.
7607
7640
  * @example
7608
7641
  * ```js
@@ -7866,7 +7899,7 @@ declare class Layout extends Base {
7866
7899
  */
7867
7900
  applyPreset: (options: PresetLayoutOptions) => Promise<void>;
7868
7901
  /**
7869
- * Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
7902
+ * Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
7870
7903
  *
7871
7904
  * @param viewOptions - The options for creating the view.
7872
7905
  * @param options - Optional parameters for adding the view.
@@ -7882,7 +7915,7 @@ declare class Layout extends Base {
7882
7915
  }>;
7883
7916
  /**
7884
7917
  * Closes a view by its identity. Throws an error if the view does not belong to the current layout.
7885
- * Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
7918
+ * Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
7886
7919
  *
7887
7920
  * @param viewIdentity - The identity of the view to close.
7888
7921
  * @returns A promise that resolves when the view is closed.
@@ -9296,6 +9329,7 @@ declare namespace OpenFin_2 {
9296
9329
  EntityType_4 as EntityType,
9297
9330
  Bounds,
9298
9331
  WindowBounds,
9332
+ GetBoundsOptions,
9299
9333
  Rectangle,
9300
9334
  ApplicationCreationOptions,
9301
9335
  TimeZones,
@@ -11981,7 +12015,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
11981
12015
  options: OpenFin_2.TransitionOptions;
11982
12016
  }>;
11983
12017
  'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
11984
- 'get-window-bounds': IdentityCall<{}, OpenFin_2.WindowBounds>;
12018
+ 'get-window-bounds': IdentityCall<{
12019
+ options?: OpenFin_2.GetBoundsOptions;
12020
+ }, OpenFin_2.WindowBounds>;
11985
12021
  'center-window': IdentityCall;
11986
12022
  'blur-window': IdentityCall;
11987
12023
  'bring-window-to-front': IdentityCall;
@@ -13359,6 +13395,7 @@ declare type Snapshot = {
13359
13395
  declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
13360
13396
  topic: 'application';
13361
13397
  type: 'platform-snapshot-applied';
13398
+ snapshot: Snapshot;
13362
13399
  };
13363
13400
 
13364
13401
  /**
@@ -17465,7 +17502,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17465
17502
  * getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
17466
17503
  * ```
17467
17504
  */
17468
- getBounds(): Promise<OpenFin_2.WindowBounds>;
17505
+ getBounds(options?: OpenFin_2.GetBoundsOptions): Promise<OpenFin_2.WindowBounds>;
17469
17506
  /**
17470
17507
  * Centers the window on its current screen.
17471
17508
  *
@@ -4601,6 +4601,15 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4601
4601
  eventNames: () => (string | symbol)[];
4602
4602
  /* Excluded from this release type: emit */
4603
4603
  private hasEmitter;
4604
+ /**
4605
+ * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
4606
+ * `once` subscription.
4607
+ *
4608
+ * @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
4609
+ * on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
4610
+ * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
4611
+ */
4612
+ private cleanUpRemovedListener;
4604
4613
  private getOrCreateEmitter;
4605
4614
  listeners: (type: string | symbol) => Function[];
4606
4615
  listenerCount: (type: string | symbol) => number;
@@ -5678,6 +5687,30 @@ declare type FrameProcessDetails = ProcessDetails & {
5678
5687
  entityType: string;
5679
5688
  };
5680
5689
 
5690
+ /**
5691
+ * @interface
5692
+ * Options for the {@link Window._Window.getBounds} method.
5693
+ */
5694
+ declare interface GetBoundsOptions {
5695
+ /**
5696
+ * Specifies the state of the window for which to retrieve the bounds.
5697
+ *
5698
+ * - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
5699
+ * - `'current'`: Returns the bounds of the window in its current state. For a minimized window, this returns the bounds from its previous state before being minimized.
5700
+ *
5701
+ * If a window is in `normal` state, `current` and `normal` will return the same bounds.
5702
+ *
5703
+ * If a window is `maximized`, `current` will return the dimensions of the screen while `normal` will return the bounds the window will be restored to.
5704
+ *
5705
+ * If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
5706
+ *
5707
+ * **Edge case:** On MacOS, if a window is maximized, then minimized, calling `getBounds` with `boundsType: 'current'` will return the bounds of the window when it was maximized while `normal` will return the normal bounds.
5708
+ *
5709
+ * @default 'normal'
5710
+ */
5711
+ boundsType?: 'normal' | 'current';
5712
+ }
5713
+
5681
5714
  /**
5682
5715
  * @interface
5683
5716
  */
@@ -7585,7 +7618,7 @@ declare type LaunchIntoPlatformPayload = {
7585
7618
  *
7586
7619
  * @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
7587
7620
  *
7588
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
7621
+ * #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
7589
7622
  * Adds a listener to the end of the listeners array for the specified event.
7590
7623
  * @example
7591
7624
  * ```js
@@ -7602,7 +7635,7 @@ declare type LaunchIntoPlatformPayload = {
7602
7635
  * });
7603
7636
  * ```
7604
7637
  *
7605
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
7638
+ * #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
7606
7639
  * Adds a listener to the end of the listeners array for the specified event.
7607
7640
  * @example
7608
7641
  * ```js
@@ -7866,7 +7899,7 @@ declare class Layout extends Base {
7866
7899
  */
7867
7900
  applyPreset: (options: PresetLayoutOptions) => Promise<void>;
7868
7901
  /**
7869
- * Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
7902
+ * Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
7870
7903
  *
7871
7904
  * @param viewOptions - The options for creating the view.
7872
7905
  * @param options - Optional parameters for adding the view.
@@ -7882,7 +7915,7 @@ declare class Layout extends Base {
7882
7915
  }>;
7883
7916
  /**
7884
7917
  * Closes a view by its identity. Throws an error if the view does not belong to the current layout.
7885
- * Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
7918
+ * Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
7886
7919
  *
7887
7920
  * @param viewIdentity - The identity of the view to close.
7888
7921
  * @returns A promise that resolves when the view is closed.
@@ -9296,6 +9329,7 @@ declare namespace OpenFin_2 {
9296
9329
  EntityType_4 as EntityType,
9297
9330
  Bounds,
9298
9331
  WindowBounds,
9332
+ GetBoundsOptions,
9299
9333
  Rectangle,
9300
9334
  ApplicationCreationOptions,
9301
9335
  TimeZones,
@@ -11981,7 +12015,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
11981
12015
  options: OpenFin_2.TransitionOptions;
11982
12016
  }>;
11983
12017
  'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
11984
- 'get-window-bounds': IdentityCall<{}, OpenFin_2.WindowBounds>;
12018
+ 'get-window-bounds': IdentityCall<{
12019
+ options?: OpenFin_2.GetBoundsOptions;
12020
+ }, OpenFin_2.WindowBounds>;
11985
12021
  'center-window': IdentityCall;
11986
12022
  'blur-window': IdentityCall;
11987
12023
  'bring-window-to-front': IdentityCall;
@@ -13359,6 +13395,7 @@ declare type Snapshot = {
13359
13395
  declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
13360
13396
  topic: 'application';
13361
13397
  type: 'platform-snapshot-applied';
13398
+ snapshot: Snapshot;
13362
13399
  };
13363
13400
 
13364
13401
  /**
@@ -17465,7 +17502,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17465
17502
  * getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
17466
17503
  * ```
17467
17504
  */
17468
- getBounds(): Promise<OpenFin_2.WindowBounds>;
17505
+ getBounds(options?: OpenFin_2.GetBoundsOptions): Promise<OpenFin_2.WindowBounds>;
17469
17506
  /**
17470
17507
  * Centers the window on its current screen.
17471
17508
  *
@@ -4601,6 +4601,15 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4601
4601
  eventNames: () => (string | symbol)[];
4602
4602
  /* Excluded from this release type: emit */
4603
4603
  private hasEmitter;
4604
+ /**
4605
+ * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
4606
+ * `once` subscription.
4607
+ *
4608
+ * @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
4609
+ * on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
4610
+ * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
4611
+ */
4612
+ private cleanUpRemovedListener;
4604
4613
  private getOrCreateEmitter;
4605
4614
  listeners: (type: string | symbol) => Function[];
4606
4615
  listenerCount: (type: string | symbol) => number;
@@ -5678,6 +5687,30 @@ declare type FrameProcessDetails = ProcessDetails & {
5678
5687
  entityType: string;
5679
5688
  };
5680
5689
 
5690
+ /**
5691
+ * @interface
5692
+ * Options for the {@link Window._Window.getBounds} method.
5693
+ */
5694
+ declare interface GetBoundsOptions {
5695
+ /**
5696
+ * Specifies the state of the window for which to retrieve the bounds.
5697
+ *
5698
+ * - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
5699
+ * - `'current'`: Returns the bounds of the window in its current state. For a minimized window, this returns the bounds from its previous state before being minimized.
5700
+ *
5701
+ * If a window is in `normal` state, `current` and `normal` will return the same bounds.
5702
+ *
5703
+ * If a window is `maximized`, `current` will return the dimensions of the screen while `normal` will return the bounds the window will be restored to.
5704
+ *
5705
+ * If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
5706
+ *
5707
+ * **Edge case:** On MacOS, if a window is maximized, then minimized, calling `getBounds` with `boundsType: 'current'` will return the bounds of the window when it was maximized while `normal` will return the normal bounds.
5708
+ *
5709
+ * @default 'normal'
5710
+ */
5711
+ boundsType?: 'normal' | 'current';
5712
+ }
5713
+
5681
5714
  /**
5682
5715
  * @interface
5683
5716
  */
@@ -7585,7 +7618,7 @@ declare type LaunchIntoPlatformPayload = {
7585
7618
  *
7586
7619
  * @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
7587
7620
  *
7588
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
7621
+ * #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
7589
7622
  * Adds a listener to the end of the listeners array for the specified event.
7590
7623
  * @example
7591
7624
  * ```js
@@ -7602,7 +7635,7 @@ declare type LaunchIntoPlatformPayload = {
7602
7635
  * });
7603
7636
  * ```
7604
7637
  *
7605
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
7638
+ * #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
7606
7639
  * Adds a listener to the end of the listeners array for the specified event.
7607
7640
  * @example
7608
7641
  * ```js
@@ -7866,7 +7899,7 @@ declare class Layout extends Base {
7866
7899
  */
7867
7900
  applyPreset: (options: PresetLayoutOptions) => Promise<void>;
7868
7901
  /**
7869
- * Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
7902
+ * Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
7870
7903
  *
7871
7904
  * @param viewOptions - The options for creating the view.
7872
7905
  * @param options - Optional parameters for adding the view.
@@ -7882,7 +7915,7 @@ declare class Layout extends Base {
7882
7915
  }>;
7883
7916
  /**
7884
7917
  * Closes a view by its identity. Throws an error if the view does not belong to the current layout.
7885
- * Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
7918
+ * Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
7886
7919
  *
7887
7920
  * @param viewIdentity - The identity of the view to close.
7888
7921
  * @returns A promise that resolves when the view is closed.
@@ -9296,6 +9329,7 @@ declare namespace OpenFin_2 {
9296
9329
  EntityType_4 as EntityType,
9297
9330
  Bounds,
9298
9331
  WindowBounds,
9332
+ GetBoundsOptions,
9299
9333
  Rectangle,
9300
9334
  ApplicationCreationOptions,
9301
9335
  TimeZones,
@@ -11981,7 +12015,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
11981
12015
  options: OpenFin_2.TransitionOptions;
11982
12016
  }>;
11983
12017
  'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
11984
- 'get-window-bounds': IdentityCall<{}, OpenFin_2.WindowBounds>;
12018
+ 'get-window-bounds': IdentityCall<{
12019
+ options?: OpenFin_2.GetBoundsOptions;
12020
+ }, OpenFin_2.WindowBounds>;
11985
12021
  'center-window': IdentityCall;
11986
12022
  'blur-window': IdentityCall;
11987
12023
  'bring-window-to-front': IdentityCall;
@@ -13359,6 +13395,7 @@ declare type Snapshot = {
13359
13395
  declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
13360
13396
  topic: 'application';
13361
13397
  type: 'platform-snapshot-applied';
13398
+ snapshot: Snapshot;
13362
13399
  };
13363
13400
 
13364
13401
  /**
@@ -17465,7 +17502,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17465
17502
  * getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
17466
17503
  * ```
17467
17504
  */
17468
- getBounds(): Promise<OpenFin_2.WindowBounds>;
17505
+ getBounds(options?: OpenFin_2.GetBoundsOptions): Promise<OpenFin_2.WindowBounds>;
17469
17506
  /**
17470
17507
  * Centers the window on its current screen.
17471
17508
  *
@@ -4665,6 +4665,15 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4665
4665
  type: EventType;
4666
4666
  }>, ...args: any[]) => boolean;
4667
4667
  private hasEmitter;
4668
+ /**
4669
+ * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
4670
+ * `once` subscription.
4671
+ *
4672
+ * @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
4673
+ * on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
4674
+ * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
4675
+ */
4676
+ private cleanUpRemovedListener;
4668
4677
  private getOrCreateEmitter;
4669
4678
  listeners: (type: string | symbol) => Function[];
4670
4679
  listenerCount: (type: string | symbol) => number;
@@ -5766,6 +5775,30 @@ declare type FrameProcessDetails = ProcessDetails & {
5766
5775
  entityType: string;
5767
5776
  };
5768
5777
 
5778
+ /**
5779
+ * @interface
5780
+ * Options for the {@link Window._Window.getBounds} method.
5781
+ */
5782
+ declare interface GetBoundsOptions {
5783
+ /**
5784
+ * Specifies the state of the window for which to retrieve the bounds.
5785
+ *
5786
+ * - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
5787
+ * - `'current'`: Returns the bounds of the window in its current state. For a minimized window, this returns the bounds from its previous state before being minimized.
5788
+ *
5789
+ * If a window is in `normal` state, `current` and `normal` will return the same bounds.
5790
+ *
5791
+ * If a window is `maximized`, `current` will return the dimensions of the screen while `normal` will return the bounds the window will be restored to.
5792
+ *
5793
+ * If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
5794
+ *
5795
+ * **Edge case:** On MacOS, if a window is maximized, then minimized, calling `getBounds` with `boundsType: 'current'` will return the bounds of the window when it was maximized while `normal` will return the normal bounds.
5796
+ *
5797
+ * @default 'normal'
5798
+ */
5799
+ boundsType?: 'normal' | 'current';
5800
+ }
5801
+
5769
5802
  /**
5770
5803
  * @interface
5771
5804
  */
@@ -7702,7 +7735,7 @@ declare type LaunchIntoPlatformPayload = {
7702
7735
  *
7703
7736
  * @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
7704
7737
  *
7705
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
7738
+ * #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
7706
7739
  * Adds a listener to the end of the listeners array for the specified event.
7707
7740
  * @example
7708
7741
  * ```js
@@ -7719,7 +7752,7 @@ declare type LaunchIntoPlatformPayload = {
7719
7752
  * });
7720
7753
  * ```
7721
7754
  *
7722
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
7755
+ * #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
7723
7756
  * Adds a listener to the end of the listeners array for the specified event.
7724
7757
  * @example
7725
7758
  * ```js
@@ -7992,7 +8025,7 @@ declare class Layout extends Base {
7992
8025
  */
7993
8026
  applyPreset: (options: PresetLayoutOptions) => Promise<void>;
7994
8027
  /**
7995
- * Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
8028
+ * Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
7996
8029
  *
7997
8030
  * @param viewOptions - The options for creating the view.
7998
8031
  * @param options - Optional parameters for adding the view.
@@ -8008,7 +8041,7 @@ declare class Layout extends Base {
8008
8041
  }>;
8009
8042
  /**
8010
8043
  * Closes a view by its identity. Throws an error if the view does not belong to the current layout.
8011
- * Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
8044
+ * Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
8012
8045
  *
8013
8046
  * @param viewIdentity - The identity of the view to close.
8014
8047
  * @returns A promise that resolves when the view is closed.
@@ -9614,6 +9647,7 @@ declare namespace OpenFin_2 {
9614
9647
  EntityType_4 as EntityType,
9615
9648
  Bounds,
9616
9649
  WindowBounds,
9650
+ GetBoundsOptions,
9617
9651
  Rectangle,
9618
9652
  ApplicationCreationOptions,
9619
9653
  TimeZones,
@@ -12382,7 +12416,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12382
12416
  options: OpenFin_2.TransitionOptions;
12383
12417
  }>;
12384
12418
  'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
12385
- 'get-window-bounds': IdentityCall<{}, OpenFin_2.WindowBounds>;
12419
+ 'get-window-bounds': IdentityCall<{
12420
+ options?: OpenFin_2.GetBoundsOptions;
12421
+ }, OpenFin_2.WindowBounds>;
12386
12422
  'center-window': IdentityCall;
12387
12423
  'blur-window': IdentityCall;
12388
12424
  'bring-window-to-front': IdentityCall;
@@ -13760,6 +13796,7 @@ declare type Snapshot = {
13760
13796
  declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
13761
13797
  topic: 'application';
13762
13798
  type: 'platform-snapshot-applied';
13799
+ snapshot: Snapshot;
13763
13800
  };
13764
13801
 
13765
13802
  /**
@@ -17919,7 +17956,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17919
17956
  * getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
17920
17957
  * ```
17921
17958
  */
17922
- getBounds(): Promise<OpenFin_2.WindowBounds>;
17959
+ getBounds(options?: OpenFin_2.GetBoundsOptions): Promise<OpenFin_2.WindowBounds>;
17923
17960
  /**
17924
17961
  * Centers the window on its current screen.
17925
17962
  *