@openfin/core 40.101.1 → 40.102.1
Sign up to get free protection for your applications and to get access to all the features.
- package/out/mock-alpha.d.ts +34 -6
- package/out/mock-beta.d.ts +34 -6
- package/out/mock-public.d.ts +34 -6
- package/out/mock.d.ts +34 -6
- package/out/mock.js +6 -31
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -5678,6 +5678,30 @@ declare type FrameProcessDetails = ProcessDetails & {
|
|
5678
5678
|
entityType: string;
|
5679
5679
|
};
|
5680
5680
|
|
5681
|
+
/**
|
5682
|
+
* @interface
|
5683
|
+
* Options for the {@link Window._Window.getBounds} method.
|
5684
|
+
*/
|
5685
|
+
declare interface GetBoundsOptions {
|
5686
|
+
/**
|
5687
|
+
* Specifies the state of the window for which to retrieve the bounds.
|
5688
|
+
*
|
5689
|
+
* - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
|
5690
|
+
* - `'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.
|
5691
|
+
*
|
5692
|
+
* If a window is in `normal` state, `current` and `normal` will return the same bounds.
|
5693
|
+
*
|
5694
|
+
* 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.
|
5695
|
+
*
|
5696
|
+
* If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
|
5697
|
+
*
|
5698
|
+
* **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.
|
5699
|
+
*
|
5700
|
+
* @default 'normal'
|
5701
|
+
*/
|
5702
|
+
boundsType?: 'normal' | 'current';
|
5703
|
+
}
|
5704
|
+
|
5681
5705
|
/**
|
5682
5706
|
* @interface
|
5683
5707
|
*/
|
@@ -7585,7 +7609,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
7585
7609
|
*
|
7586
7610
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
7587
7611
|
*
|
7588
|
-
* ####
|
7612
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
7589
7613
|
* Adds a listener to the end of the listeners array for the specified event.
|
7590
7614
|
* @example
|
7591
7615
|
* ```js
|
@@ -7602,7 +7626,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
7602
7626
|
* });
|
7603
7627
|
* ```
|
7604
7628
|
*
|
7605
|
-
* ####
|
7629
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
7606
7630
|
* Adds a listener to the end of the listeners array for the specified event.
|
7607
7631
|
* @example
|
7608
7632
|
* ```js
|
@@ -7866,7 +7890,7 @@ declare class Layout extends Base {
|
|
7866
7890
|
*/
|
7867
7891
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
7868
7892
|
/**
|
7869
|
-
* Adds a view to the platform layout. Behaves like @link
|
7893
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
7870
7894
|
*
|
7871
7895
|
* @param viewOptions - The options for creating the view.
|
7872
7896
|
* @param options - Optional parameters for adding the view.
|
@@ -7882,7 +7906,7 @@ declare class Layout extends Base {
|
|
7882
7906
|
}>;
|
7883
7907
|
/**
|
7884
7908
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
7885
|
-
* Behaves like @link
|
7909
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
7886
7910
|
*
|
7887
7911
|
* @param viewIdentity - The identity of the view to close.
|
7888
7912
|
* @returns A promise that resolves when the view is closed.
|
@@ -9296,6 +9320,7 @@ declare namespace OpenFin_2 {
|
|
9296
9320
|
EntityType_4 as EntityType,
|
9297
9321
|
Bounds,
|
9298
9322
|
WindowBounds,
|
9323
|
+
GetBoundsOptions,
|
9299
9324
|
Rectangle,
|
9300
9325
|
ApplicationCreationOptions,
|
9301
9326
|
TimeZones,
|
@@ -11981,7 +12006,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11981
12006
|
options: OpenFin_2.TransitionOptions;
|
11982
12007
|
}>;
|
11983
12008
|
'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
|
11984
|
-
'get-window-bounds': IdentityCall<{
|
12009
|
+
'get-window-bounds': IdentityCall<{
|
12010
|
+
options?: OpenFin_2.GetBoundsOptions;
|
12011
|
+
}, OpenFin_2.WindowBounds>;
|
11985
12012
|
'center-window': IdentityCall;
|
11986
12013
|
'blur-window': IdentityCall;
|
11987
12014
|
'bring-window-to-front': IdentityCall;
|
@@ -13359,6 +13386,7 @@ declare type Snapshot = {
|
|
13359
13386
|
declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
|
13360
13387
|
topic: 'application';
|
13361
13388
|
type: 'platform-snapshot-applied';
|
13389
|
+
snapshot: Snapshot;
|
13362
13390
|
};
|
13363
13391
|
|
13364
13392
|
/**
|
@@ -17465,7 +17493,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
17465
17493
|
* getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
|
17466
17494
|
* ```
|
17467
17495
|
*/
|
17468
|
-
getBounds(): Promise<OpenFin_2.WindowBounds>;
|
17496
|
+
getBounds(options?: OpenFin_2.GetBoundsOptions): Promise<OpenFin_2.WindowBounds>;
|
17469
17497
|
/**
|
17470
17498
|
* Centers the window on its current screen.
|
17471
17499
|
*
|
package/out/mock-beta.d.ts
CHANGED
@@ -5678,6 +5678,30 @@ declare type FrameProcessDetails = ProcessDetails & {
|
|
5678
5678
|
entityType: string;
|
5679
5679
|
};
|
5680
5680
|
|
5681
|
+
/**
|
5682
|
+
* @interface
|
5683
|
+
* Options for the {@link Window._Window.getBounds} method.
|
5684
|
+
*/
|
5685
|
+
declare interface GetBoundsOptions {
|
5686
|
+
/**
|
5687
|
+
* Specifies the state of the window for which to retrieve the bounds.
|
5688
|
+
*
|
5689
|
+
* - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
|
5690
|
+
* - `'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.
|
5691
|
+
*
|
5692
|
+
* If a window is in `normal` state, `current` and `normal` will return the same bounds.
|
5693
|
+
*
|
5694
|
+
* 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.
|
5695
|
+
*
|
5696
|
+
* If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
|
5697
|
+
*
|
5698
|
+
* **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.
|
5699
|
+
*
|
5700
|
+
* @default 'normal'
|
5701
|
+
*/
|
5702
|
+
boundsType?: 'normal' | 'current';
|
5703
|
+
}
|
5704
|
+
|
5681
5705
|
/**
|
5682
5706
|
* @interface
|
5683
5707
|
*/
|
@@ -7585,7 +7609,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
7585
7609
|
*
|
7586
7610
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
7587
7611
|
*
|
7588
|
-
* ####
|
7612
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
7589
7613
|
* Adds a listener to the end of the listeners array for the specified event.
|
7590
7614
|
* @example
|
7591
7615
|
* ```js
|
@@ -7602,7 +7626,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
7602
7626
|
* });
|
7603
7627
|
* ```
|
7604
7628
|
*
|
7605
|
-
* ####
|
7629
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
7606
7630
|
* Adds a listener to the end of the listeners array for the specified event.
|
7607
7631
|
* @example
|
7608
7632
|
* ```js
|
@@ -7866,7 +7890,7 @@ declare class Layout extends Base {
|
|
7866
7890
|
*/
|
7867
7891
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
7868
7892
|
/**
|
7869
|
-
* Adds a view to the platform layout. Behaves like @link
|
7893
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
7870
7894
|
*
|
7871
7895
|
* @param viewOptions - The options for creating the view.
|
7872
7896
|
* @param options - Optional parameters for adding the view.
|
@@ -7882,7 +7906,7 @@ declare class Layout extends Base {
|
|
7882
7906
|
}>;
|
7883
7907
|
/**
|
7884
7908
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
7885
|
-
* Behaves like @link
|
7909
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
7886
7910
|
*
|
7887
7911
|
* @param viewIdentity - The identity of the view to close.
|
7888
7912
|
* @returns A promise that resolves when the view is closed.
|
@@ -9296,6 +9320,7 @@ declare namespace OpenFin_2 {
|
|
9296
9320
|
EntityType_4 as EntityType,
|
9297
9321
|
Bounds,
|
9298
9322
|
WindowBounds,
|
9323
|
+
GetBoundsOptions,
|
9299
9324
|
Rectangle,
|
9300
9325
|
ApplicationCreationOptions,
|
9301
9326
|
TimeZones,
|
@@ -11981,7 +12006,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11981
12006
|
options: OpenFin_2.TransitionOptions;
|
11982
12007
|
}>;
|
11983
12008
|
'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
|
11984
|
-
'get-window-bounds': IdentityCall<{
|
12009
|
+
'get-window-bounds': IdentityCall<{
|
12010
|
+
options?: OpenFin_2.GetBoundsOptions;
|
12011
|
+
}, OpenFin_2.WindowBounds>;
|
11985
12012
|
'center-window': IdentityCall;
|
11986
12013
|
'blur-window': IdentityCall;
|
11987
12014
|
'bring-window-to-front': IdentityCall;
|
@@ -13359,6 +13386,7 @@ declare type Snapshot = {
|
|
13359
13386
|
declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
|
13360
13387
|
topic: 'application';
|
13361
13388
|
type: 'platform-snapshot-applied';
|
13389
|
+
snapshot: Snapshot;
|
13362
13390
|
};
|
13363
13391
|
|
13364
13392
|
/**
|
@@ -17465,7 +17493,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
17465
17493
|
* getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
|
17466
17494
|
* ```
|
17467
17495
|
*/
|
17468
|
-
getBounds(): Promise<OpenFin_2.WindowBounds>;
|
17496
|
+
getBounds(options?: OpenFin_2.GetBoundsOptions): Promise<OpenFin_2.WindowBounds>;
|
17469
17497
|
/**
|
17470
17498
|
* Centers the window on its current screen.
|
17471
17499
|
*
|
package/out/mock-public.d.ts
CHANGED
@@ -5678,6 +5678,30 @@ declare type FrameProcessDetails = ProcessDetails & {
|
|
5678
5678
|
entityType: string;
|
5679
5679
|
};
|
5680
5680
|
|
5681
|
+
/**
|
5682
|
+
* @interface
|
5683
|
+
* Options for the {@link Window._Window.getBounds} method.
|
5684
|
+
*/
|
5685
|
+
declare interface GetBoundsOptions {
|
5686
|
+
/**
|
5687
|
+
* Specifies the state of the window for which to retrieve the bounds.
|
5688
|
+
*
|
5689
|
+
* - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
|
5690
|
+
* - `'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.
|
5691
|
+
*
|
5692
|
+
* If a window is in `normal` state, `current` and `normal` will return the same bounds.
|
5693
|
+
*
|
5694
|
+
* 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.
|
5695
|
+
*
|
5696
|
+
* If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
|
5697
|
+
*
|
5698
|
+
* **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.
|
5699
|
+
*
|
5700
|
+
* @default 'normal'
|
5701
|
+
*/
|
5702
|
+
boundsType?: 'normal' | 'current';
|
5703
|
+
}
|
5704
|
+
|
5681
5705
|
/**
|
5682
5706
|
* @interface
|
5683
5707
|
*/
|
@@ -7585,7 +7609,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
7585
7609
|
*
|
7586
7610
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
7587
7611
|
*
|
7588
|
-
* ####
|
7612
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
7589
7613
|
* Adds a listener to the end of the listeners array for the specified event.
|
7590
7614
|
* @example
|
7591
7615
|
* ```js
|
@@ -7602,7 +7626,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
7602
7626
|
* });
|
7603
7627
|
* ```
|
7604
7628
|
*
|
7605
|
-
* ####
|
7629
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
7606
7630
|
* Adds a listener to the end of the listeners array for the specified event.
|
7607
7631
|
* @example
|
7608
7632
|
* ```js
|
@@ -7866,7 +7890,7 @@ declare class Layout extends Base {
|
|
7866
7890
|
*/
|
7867
7891
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
7868
7892
|
/**
|
7869
|
-
* Adds a view to the platform layout. Behaves like @link
|
7893
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
7870
7894
|
*
|
7871
7895
|
* @param viewOptions - The options for creating the view.
|
7872
7896
|
* @param options - Optional parameters for adding the view.
|
@@ -7882,7 +7906,7 @@ declare class Layout extends Base {
|
|
7882
7906
|
}>;
|
7883
7907
|
/**
|
7884
7908
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
7885
|
-
* Behaves like @link
|
7909
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
7886
7910
|
*
|
7887
7911
|
* @param viewIdentity - The identity of the view to close.
|
7888
7912
|
* @returns A promise that resolves when the view is closed.
|
@@ -9296,6 +9320,7 @@ declare namespace OpenFin_2 {
|
|
9296
9320
|
EntityType_4 as EntityType,
|
9297
9321
|
Bounds,
|
9298
9322
|
WindowBounds,
|
9323
|
+
GetBoundsOptions,
|
9299
9324
|
Rectangle,
|
9300
9325
|
ApplicationCreationOptions,
|
9301
9326
|
TimeZones,
|
@@ -11981,7 +12006,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11981
12006
|
options: OpenFin_2.TransitionOptions;
|
11982
12007
|
}>;
|
11983
12008
|
'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
|
11984
|
-
'get-window-bounds': IdentityCall<{
|
12009
|
+
'get-window-bounds': IdentityCall<{
|
12010
|
+
options?: OpenFin_2.GetBoundsOptions;
|
12011
|
+
}, OpenFin_2.WindowBounds>;
|
11985
12012
|
'center-window': IdentityCall;
|
11986
12013
|
'blur-window': IdentityCall;
|
11987
12014
|
'bring-window-to-front': IdentityCall;
|
@@ -13359,6 +13386,7 @@ declare type Snapshot = {
|
|
13359
13386
|
declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
|
13360
13387
|
topic: 'application';
|
13361
13388
|
type: 'platform-snapshot-applied';
|
13389
|
+
snapshot: Snapshot;
|
13362
13390
|
};
|
13363
13391
|
|
13364
13392
|
/**
|
@@ -17465,7 +17493,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
17465
17493
|
* getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
|
17466
17494
|
* ```
|
17467
17495
|
*/
|
17468
|
-
getBounds(): Promise<OpenFin_2.WindowBounds>;
|
17496
|
+
getBounds(options?: OpenFin_2.GetBoundsOptions): Promise<OpenFin_2.WindowBounds>;
|
17469
17497
|
/**
|
17470
17498
|
* Centers the window on its current screen.
|
17471
17499
|
*
|
package/out/mock.d.ts
CHANGED
@@ -5766,6 +5766,30 @@ declare type FrameProcessDetails = ProcessDetails & {
|
|
5766
5766
|
entityType: string;
|
5767
5767
|
};
|
5768
5768
|
|
5769
|
+
/**
|
5770
|
+
* @interface
|
5771
|
+
* Options for the {@link Window._Window.getBounds} method.
|
5772
|
+
*/
|
5773
|
+
declare interface GetBoundsOptions {
|
5774
|
+
/**
|
5775
|
+
* Specifies the state of the window for which to retrieve the bounds.
|
5776
|
+
*
|
5777
|
+
* - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
|
5778
|
+
* - `'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.
|
5779
|
+
*
|
5780
|
+
* If a window is in `normal` state, `current` and `normal` will return the same bounds.
|
5781
|
+
*
|
5782
|
+
* 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.
|
5783
|
+
*
|
5784
|
+
* If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
|
5785
|
+
*
|
5786
|
+
* **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.
|
5787
|
+
*
|
5788
|
+
* @default 'normal'
|
5789
|
+
*/
|
5790
|
+
boundsType?: 'normal' | 'current';
|
5791
|
+
}
|
5792
|
+
|
5769
5793
|
/**
|
5770
5794
|
* @interface
|
5771
5795
|
*/
|
@@ -7702,7 +7726,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
7702
7726
|
*
|
7703
7727
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
7704
7728
|
*
|
7705
|
-
* ####
|
7729
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
7706
7730
|
* Adds a listener to the end of the listeners array for the specified event.
|
7707
7731
|
* @example
|
7708
7732
|
* ```js
|
@@ -7719,7 +7743,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
7719
7743
|
* });
|
7720
7744
|
* ```
|
7721
7745
|
*
|
7722
|
-
* ####
|
7746
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
7723
7747
|
* Adds a listener to the end of the listeners array for the specified event.
|
7724
7748
|
* @example
|
7725
7749
|
* ```js
|
@@ -7992,7 +8016,7 @@ declare class Layout extends Base {
|
|
7992
8016
|
*/
|
7993
8017
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
7994
8018
|
/**
|
7995
|
-
* Adds a view to the platform layout. Behaves like @link
|
8019
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
7996
8020
|
*
|
7997
8021
|
* @param viewOptions - The options for creating the view.
|
7998
8022
|
* @param options - Optional parameters for adding the view.
|
@@ -8008,7 +8032,7 @@ declare class Layout extends Base {
|
|
8008
8032
|
}>;
|
8009
8033
|
/**
|
8010
8034
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
8011
|
-
* Behaves like @link
|
8035
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
8012
8036
|
*
|
8013
8037
|
* @param viewIdentity - The identity of the view to close.
|
8014
8038
|
* @returns A promise that resolves when the view is closed.
|
@@ -9614,6 +9638,7 @@ declare namespace OpenFin_2 {
|
|
9614
9638
|
EntityType_4 as EntityType,
|
9615
9639
|
Bounds,
|
9616
9640
|
WindowBounds,
|
9641
|
+
GetBoundsOptions,
|
9617
9642
|
Rectangle,
|
9618
9643
|
ApplicationCreationOptions,
|
9619
9644
|
TimeZones,
|
@@ -12382,7 +12407,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12382
12407
|
options: OpenFin_2.TransitionOptions;
|
12383
12408
|
}>;
|
12384
12409
|
'get-all-frames': IdentityCall<{}, OpenFin_2.FrameInfo[]>;
|
12385
|
-
'get-window-bounds': IdentityCall<{
|
12410
|
+
'get-window-bounds': IdentityCall<{
|
12411
|
+
options?: OpenFin_2.GetBoundsOptions;
|
12412
|
+
}, OpenFin_2.WindowBounds>;
|
12386
12413
|
'center-window': IdentityCall;
|
12387
12414
|
'blur-window': IdentityCall;
|
12388
12415
|
'bring-window-to-front': IdentityCall;
|
@@ -13760,6 +13787,7 @@ declare type Snapshot = {
|
|
13760
13787
|
declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
|
13761
13788
|
topic: 'application';
|
13762
13789
|
type: 'platform-snapshot-applied';
|
13790
|
+
snapshot: Snapshot;
|
13763
13791
|
};
|
13764
13792
|
|
13765
13793
|
/**
|
@@ -17919,7 +17947,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
17919
17947
|
* getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
|
17920
17948
|
* ```
|
17921
17949
|
*/
|
17922
|
-
getBounds(): Promise<OpenFin_2.WindowBounds>;
|
17950
|
+
getBounds(options?: OpenFin_2.GetBoundsOptions): Promise<OpenFin_2.WindowBounds>;
|
17923
17951
|
/**
|
17924
17952
|
* Centers the window on its current screen.
|
17925
17953
|
*
|
package/out/mock.js
CHANGED
@@ -4024,9 +4024,9 @@ function requireInstance () {
|
|
4024
4024
|
* getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
|
4025
4025
|
* ```
|
4026
4026
|
*/
|
4027
|
-
getBounds() {
|
4027
|
+
getBounds(options) {
|
4028
4028
|
return this.wire
|
4029
|
-
.sendAction('get-window-bounds', this.identity)
|
4029
|
+
.sendAction('get-window-bounds', { ...this.identity, options })
|
4030
4030
|
.then(({ payload }) => payload.data);
|
4031
4031
|
}
|
4032
4032
|
/**
|
@@ -11976,7 +11976,7 @@ const layout_constants_1$1 = layout_constants;
|
|
11976
11976
|
*
|
11977
11977
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
11978
11978
|
*
|
11979
|
-
* ####
|
11979
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
11980
11980
|
* Adds a listener to the end of the listeners array for the specified event.
|
11981
11981
|
* @example
|
11982
11982
|
* ```js
|
@@ -11993,7 +11993,7 @@ const layout_constants_1$1 = layout_constants;
|
|
11993
11993
|
* });
|
11994
11994
|
* ```
|
11995
11995
|
*
|
11996
|
-
* ####
|
11996
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
11997
11997
|
* Adds a listener to the end of the listeners array for the specified event.
|
11998
11998
|
* @example
|
11999
11999
|
* ```js
|
@@ -12344,7 +12344,7 @@ class Layout extends base_1$5.Base {
|
|
12344
12344
|
return layout_entities_1.LayoutNode.getEntity(stack, client);
|
12345
12345
|
}
|
12346
12346
|
/**
|
12347
|
-
* Adds a view to the platform layout. Behaves like @link
|
12347
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
12348
12348
|
*
|
12349
12349
|
* @param viewOptions - The options for creating the view.
|
12350
12350
|
* @param options - Optional parameters for adding the view.
|
@@ -12365,7 +12365,7 @@ class Layout extends base_1$5.Base {
|
|
12365
12365
|
}
|
12366
12366
|
/**
|
12367
12367
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
12368
|
-
* Behaves like @link
|
12368
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
12369
12369
|
*
|
12370
12370
|
* @param viewIdentity - The identity of the view to close.
|
12371
12371
|
* @returns A promise that resolves when the view is closed.
|
@@ -14737,31 +14737,6 @@ function requireInteropBroker () {
|
|
14737
14737
|
if (!context.type) {
|
14738
14738
|
return { isValid: false, reason: 'Context must have a type property' };
|
14739
14739
|
}
|
14740
|
-
if (context.id && typeof context.id !== 'object') {
|
14741
|
-
return {
|
14742
|
-
isValid: false,
|
14743
|
-
reason: 'Context id must be an Object populated with key-value identifiers (if set)'
|
14744
|
-
};
|
14745
|
-
}
|
14746
|
-
if (context.id) {
|
14747
|
-
const { id } = context;
|
14748
|
-
const keys = Object.keys(id);
|
14749
|
-
let foundBadIdentifier = false;
|
14750
|
-
if (!keys.length) {
|
14751
|
-
return { isValid: false, reason: 'Context id must have at least one key-value identifier' };
|
14752
|
-
}
|
14753
|
-
keys.forEach((key) => {
|
14754
|
-
if (typeof key !== 'string' || typeof id[key] !== 'string') {
|
14755
|
-
foundBadIdentifier = true;
|
14756
|
-
}
|
14757
|
-
});
|
14758
|
-
if (foundBadIdentifier) {
|
14759
|
-
return { isValid: false, reason: 'Context id key-value identifiers must be of type string' };
|
14760
|
-
}
|
14761
|
-
}
|
14762
|
-
if (context.name && typeof context.name !== 'string') {
|
14763
|
-
return { isValid: false, reason: 'Context name must be of string type (if set)' };
|
14764
|
-
}
|
14765
14740
|
return { isValid: true };
|
14766
14741
|
}
|
14767
14742
|
// Util to check a client identity.
|