@openfin/core 39.81.18 → 39.82.2
Sign up to get free protection for your applications and to get access to all the features.
- package/out/mock-alpha.d.ts +69 -2
- package/out/mock-beta.d.ts +69 -2
- package/out/mock-public.d.ts +69 -2
- package/out/mock.d.ts +69 -2
- package/out/mock.js +14 -2
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -3477,6 +3477,16 @@ declare type ConstWindowOptions = {
|
|
3477
3477
|
* Default is white.
|
3478
3478
|
*/
|
3479
3479
|
backgroundColor: string;
|
3480
|
+
/**
|
3481
|
+
* @defaultValue false
|
3482
|
+
*
|
3483
|
+
* Determines whether WebContents will throttle animations and timers when the page becomes backgrounded.
|
3484
|
+
* This also affects the Page Visibility API.
|
3485
|
+
*
|
3486
|
+
* When `true`, the page is throttled whether it is hidden or not.
|
3487
|
+
*
|
3488
|
+
*/
|
3489
|
+
backgroundThrottling: boolean;
|
3480
3490
|
/**
|
3481
3491
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
3482
3492
|
*/
|
@@ -8586,6 +8596,12 @@ declare type MutableViewOptions = {
|
|
8586
8596
|
preventDragOut: boolean;
|
8587
8597
|
interop?: InteropConfig;
|
8588
8598
|
/* Excluded from this release type: _internalWorkspaceData */
|
8599
|
+
/**
|
8600
|
+
* {@inheritDoc ViewThrottling}
|
8601
|
+
*
|
8602
|
+
* @defaultValue 'enabled'
|
8603
|
+
*/
|
8604
|
+
throttling: ViewThrottling;
|
8589
8605
|
};
|
8590
8606
|
|
8591
8607
|
/**
|
@@ -8829,6 +8845,14 @@ declare type MutableWindowOptions = {
|
|
8829
8845
|
interop: InteropConfig;
|
8830
8846
|
/* Excluded from this release type: _internalWorkspaceData */
|
8831
8847
|
/* Excluded from this release type: workspacePlatform */
|
8848
|
+
/**
|
8849
|
+
* {@inheritDoc WindowThrottling}
|
8850
|
+
*
|
8851
|
+
* @defaultValue 'enabled'
|
8852
|
+
*
|
8853
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
8854
|
+
*/
|
8855
|
+
throttling: WindowThrottling;
|
8832
8856
|
};
|
8833
8857
|
|
8834
8858
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
@@ -9032,6 +9056,8 @@ declare namespace OpenFin_2 {
|
|
9032
9056
|
AutoResizeOptions,
|
9033
9057
|
InteropConfig,
|
9034
9058
|
ViewInfo,
|
9059
|
+
WindowThrottling,
|
9060
|
+
ViewThrottling,
|
9035
9061
|
UpdatableViewOptions,
|
9036
9062
|
ViewCreationOptions,
|
9037
9063
|
MutableViewOptions,
|
@@ -9279,6 +9305,7 @@ declare namespace OpenFin_2 {
|
|
9279
9305
|
ChannelProviderDisconnectionListener,
|
9280
9306
|
RoutingInfo,
|
9281
9307
|
DownloadShelfOptions,
|
9308
|
+
ViewShowAtOptions,
|
9282
9309
|
ApplicationEvents,
|
9283
9310
|
BaseEvents,
|
9284
9311
|
ExternalApplicationEvents,
|
@@ -11408,6 +11435,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11408
11435
|
'get-view-options': IdentityCall<{}, OpenFin_2.ViewOptions>;
|
11409
11436
|
'hide-view': IdentityCall;
|
11410
11437
|
'show-view': IdentityCall;
|
11438
|
+
'show-view-at': IdentityCall<{
|
11439
|
+
bounds: OpenFin_2.Bounds;
|
11440
|
+
options?: OpenFin_2.ViewShowAtOptions;
|
11441
|
+
}>;
|
11442
|
+
'bring-view-to-front': IdentityCall;
|
11411
11443
|
'update-view-options': IdentityCall<{
|
11412
11444
|
options: OpenFin_2.UpdatableViewOptions;
|
11413
11445
|
}>;
|
@@ -14636,6 +14668,8 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14636
14668
|
* left: 100,
|
14637
14669
|
* width: 300,
|
14638
14670
|
* height: 300
|
14671
|
+
* }, {
|
14672
|
+
* bringToFront : true
|
14639
14673
|
* });
|
14640
14674
|
* }
|
14641
14675
|
*
|
@@ -14645,7 +14679,15 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14645
14679
|
* ```
|
14646
14680
|
* @experimental
|
14647
14681
|
*/
|
14648
|
-
showAt: (bounds: OpenFin_2.Bounds) => Promise<void>;
|
14682
|
+
showAt: (bounds: OpenFin_2.Bounds, options?: OpenFin_2.ViewShowAtOptions) => Promise<void>;
|
14683
|
+
/**
|
14684
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
14685
|
+
* which have overlapping bounds with it.
|
14686
|
+
*
|
14687
|
+
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
14688
|
+
* in the window that share bounds with it.
|
14689
|
+
*/
|
14690
|
+
bringToFront: () => Promise<void>;
|
14649
14691
|
/**
|
14650
14692
|
* Hides the current view if it is currently visible.
|
14651
14693
|
*
|
@@ -15117,6 +15159,14 @@ declare class ViewModule extends Base {
|
|
15117
15159
|
*/
|
15118
15160
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
15119
15161
|
|
15162
|
+
declare type ViewShowAtOptions = {
|
15163
|
+
/**
|
15164
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
15165
|
+
* @default false
|
15166
|
+
*/
|
15167
|
+
bringToFront?: true;
|
15168
|
+
};
|
15169
|
+
|
15120
15170
|
/**
|
15121
15171
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
15122
15172
|
* @interface
|
@@ -15148,7 +15198,6 @@ declare interface ViewsPreventingUnloadPayload {
|
|
15148
15198
|
* @interface
|
15149
15199
|
*/
|
15150
15200
|
declare type ViewState = ViewCreationOptions & {
|
15151
|
-
backgroundThrottling: boolean;
|
15152
15201
|
componentName: 'view';
|
15153
15202
|
initialUrl: string;
|
15154
15203
|
minWidth?: number;
|
@@ -15170,6 +15219,14 @@ declare interface ViewStatuses {
|
|
15170
15219
|
viewsNotPreventingUnload: Identity_5[];
|
15171
15220
|
}
|
15172
15221
|
|
15222
|
+
/**
|
15223
|
+
* View throttling state.
|
15224
|
+
*
|
15225
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
15226
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
15227
|
+
*/
|
15228
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
15229
|
+
|
15173
15230
|
/**
|
15174
15231
|
* Configuration for view visibility settings
|
15175
15232
|
*
|
@@ -17713,6 +17770,16 @@ declare type WindowStartLoadEvent = BaseEvent_3 & {
|
|
17713
17770
|
*/
|
17714
17771
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
17715
17772
|
|
17773
|
+
/**
|
17774
|
+
*
|
17775
|
+
* Window throttling state.
|
17776
|
+
*
|
17777
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
17778
|
+
* * `scheduler-disabled`: The background throttling is true, but scheduler throttling is disabled.
|
17779
|
+
* * `disabled`: The background throttling is false. The throttling is fully disabled.
|
17780
|
+
*/
|
17781
|
+
declare type WindowThrottling = 'enabled' | 'scheduler-disabled' | 'disabled';
|
17782
|
+
|
17716
17783
|
/**
|
17717
17784
|
* A view-related event that fires natively on the `Window` topic. This means that these events *do* propagate
|
17718
17785
|
* to the `Application` level, with the name pattern `window-view-eventname`.
|
package/out/mock-beta.d.ts
CHANGED
@@ -3477,6 +3477,16 @@ declare type ConstWindowOptions = {
|
|
3477
3477
|
* Default is white.
|
3478
3478
|
*/
|
3479
3479
|
backgroundColor: string;
|
3480
|
+
/**
|
3481
|
+
* @defaultValue false
|
3482
|
+
*
|
3483
|
+
* Determines whether WebContents will throttle animations and timers when the page becomes backgrounded.
|
3484
|
+
* This also affects the Page Visibility API.
|
3485
|
+
*
|
3486
|
+
* When `true`, the page is throttled whether it is hidden or not.
|
3487
|
+
*
|
3488
|
+
*/
|
3489
|
+
backgroundThrottling: boolean;
|
3480
3490
|
/**
|
3481
3491
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
3482
3492
|
*/
|
@@ -8586,6 +8596,12 @@ declare type MutableViewOptions = {
|
|
8586
8596
|
preventDragOut: boolean;
|
8587
8597
|
interop?: InteropConfig;
|
8588
8598
|
/* Excluded from this release type: _internalWorkspaceData */
|
8599
|
+
/**
|
8600
|
+
* {@inheritDoc ViewThrottling}
|
8601
|
+
*
|
8602
|
+
* @defaultValue 'enabled'
|
8603
|
+
*/
|
8604
|
+
throttling: ViewThrottling;
|
8589
8605
|
};
|
8590
8606
|
|
8591
8607
|
/**
|
@@ -8829,6 +8845,14 @@ declare type MutableWindowOptions = {
|
|
8829
8845
|
interop: InteropConfig;
|
8830
8846
|
/* Excluded from this release type: _internalWorkspaceData */
|
8831
8847
|
/* Excluded from this release type: workspacePlatform */
|
8848
|
+
/**
|
8849
|
+
* {@inheritDoc WindowThrottling}
|
8850
|
+
*
|
8851
|
+
* @defaultValue 'enabled'
|
8852
|
+
*
|
8853
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
8854
|
+
*/
|
8855
|
+
throttling: WindowThrottling;
|
8832
8856
|
};
|
8833
8857
|
|
8834
8858
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
@@ -9032,6 +9056,8 @@ declare namespace OpenFin_2 {
|
|
9032
9056
|
AutoResizeOptions,
|
9033
9057
|
InteropConfig,
|
9034
9058
|
ViewInfo,
|
9059
|
+
WindowThrottling,
|
9060
|
+
ViewThrottling,
|
9035
9061
|
UpdatableViewOptions,
|
9036
9062
|
ViewCreationOptions,
|
9037
9063
|
MutableViewOptions,
|
@@ -9279,6 +9305,7 @@ declare namespace OpenFin_2 {
|
|
9279
9305
|
ChannelProviderDisconnectionListener,
|
9280
9306
|
RoutingInfo,
|
9281
9307
|
DownloadShelfOptions,
|
9308
|
+
ViewShowAtOptions,
|
9282
9309
|
ApplicationEvents,
|
9283
9310
|
BaseEvents,
|
9284
9311
|
ExternalApplicationEvents,
|
@@ -11408,6 +11435,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11408
11435
|
'get-view-options': IdentityCall<{}, OpenFin_2.ViewOptions>;
|
11409
11436
|
'hide-view': IdentityCall;
|
11410
11437
|
'show-view': IdentityCall;
|
11438
|
+
'show-view-at': IdentityCall<{
|
11439
|
+
bounds: OpenFin_2.Bounds;
|
11440
|
+
options?: OpenFin_2.ViewShowAtOptions;
|
11441
|
+
}>;
|
11442
|
+
'bring-view-to-front': IdentityCall;
|
11411
11443
|
'update-view-options': IdentityCall<{
|
11412
11444
|
options: OpenFin_2.UpdatableViewOptions;
|
11413
11445
|
}>;
|
@@ -14636,6 +14668,8 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14636
14668
|
* left: 100,
|
14637
14669
|
* width: 300,
|
14638
14670
|
* height: 300
|
14671
|
+
* }, {
|
14672
|
+
* bringToFront : true
|
14639
14673
|
* });
|
14640
14674
|
* }
|
14641
14675
|
*
|
@@ -14645,7 +14679,15 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14645
14679
|
* ```
|
14646
14680
|
* @experimental
|
14647
14681
|
*/
|
14648
|
-
showAt: (bounds: OpenFin_2.Bounds) => Promise<void>;
|
14682
|
+
showAt: (bounds: OpenFin_2.Bounds, options?: OpenFin_2.ViewShowAtOptions) => Promise<void>;
|
14683
|
+
/**
|
14684
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
14685
|
+
* which have overlapping bounds with it.
|
14686
|
+
*
|
14687
|
+
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
14688
|
+
* in the window that share bounds with it.
|
14689
|
+
*/
|
14690
|
+
bringToFront: () => Promise<void>;
|
14649
14691
|
/**
|
14650
14692
|
* Hides the current view if it is currently visible.
|
14651
14693
|
*
|
@@ -15117,6 +15159,14 @@ declare class ViewModule extends Base {
|
|
15117
15159
|
*/
|
15118
15160
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
15119
15161
|
|
15162
|
+
declare type ViewShowAtOptions = {
|
15163
|
+
/**
|
15164
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
15165
|
+
* @default false
|
15166
|
+
*/
|
15167
|
+
bringToFront?: true;
|
15168
|
+
};
|
15169
|
+
|
15120
15170
|
/**
|
15121
15171
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
15122
15172
|
* @interface
|
@@ -15148,7 +15198,6 @@ declare interface ViewsPreventingUnloadPayload {
|
|
15148
15198
|
* @interface
|
15149
15199
|
*/
|
15150
15200
|
declare type ViewState = ViewCreationOptions & {
|
15151
|
-
backgroundThrottling: boolean;
|
15152
15201
|
componentName: 'view';
|
15153
15202
|
initialUrl: string;
|
15154
15203
|
minWidth?: number;
|
@@ -15170,6 +15219,14 @@ declare interface ViewStatuses {
|
|
15170
15219
|
viewsNotPreventingUnload: Identity_5[];
|
15171
15220
|
}
|
15172
15221
|
|
15222
|
+
/**
|
15223
|
+
* View throttling state.
|
15224
|
+
*
|
15225
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
15226
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
15227
|
+
*/
|
15228
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
15229
|
+
|
15173
15230
|
/**
|
15174
15231
|
* Configuration for view visibility settings
|
15175
15232
|
*
|
@@ -17713,6 +17770,16 @@ declare type WindowStartLoadEvent = BaseEvent_3 & {
|
|
17713
17770
|
*/
|
17714
17771
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
17715
17772
|
|
17773
|
+
/**
|
17774
|
+
*
|
17775
|
+
* Window throttling state.
|
17776
|
+
*
|
17777
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
17778
|
+
* * `scheduler-disabled`: The background throttling is true, but scheduler throttling is disabled.
|
17779
|
+
* * `disabled`: The background throttling is false. The throttling is fully disabled.
|
17780
|
+
*/
|
17781
|
+
declare type WindowThrottling = 'enabled' | 'scheduler-disabled' | 'disabled';
|
17782
|
+
|
17716
17783
|
/**
|
17717
17784
|
* A view-related event that fires natively on the `Window` topic. This means that these events *do* propagate
|
17718
17785
|
* to the `Application` level, with the name pattern `window-view-eventname`.
|
package/out/mock-public.d.ts
CHANGED
@@ -3477,6 +3477,16 @@ declare type ConstWindowOptions = {
|
|
3477
3477
|
* Default is white.
|
3478
3478
|
*/
|
3479
3479
|
backgroundColor: string;
|
3480
|
+
/**
|
3481
|
+
* @defaultValue false
|
3482
|
+
*
|
3483
|
+
* Determines whether WebContents will throttle animations and timers when the page becomes backgrounded.
|
3484
|
+
* This also affects the Page Visibility API.
|
3485
|
+
*
|
3486
|
+
* When `true`, the page is throttled whether it is hidden or not.
|
3487
|
+
*
|
3488
|
+
*/
|
3489
|
+
backgroundThrottling: boolean;
|
3480
3490
|
/**
|
3481
3491
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
3482
3492
|
*/
|
@@ -8586,6 +8596,12 @@ declare type MutableViewOptions = {
|
|
8586
8596
|
preventDragOut: boolean;
|
8587
8597
|
interop?: InteropConfig;
|
8588
8598
|
/* Excluded from this release type: _internalWorkspaceData */
|
8599
|
+
/**
|
8600
|
+
* {@inheritDoc ViewThrottling}
|
8601
|
+
*
|
8602
|
+
* @defaultValue 'enabled'
|
8603
|
+
*/
|
8604
|
+
throttling: ViewThrottling;
|
8589
8605
|
};
|
8590
8606
|
|
8591
8607
|
/**
|
@@ -8829,6 +8845,14 @@ declare type MutableWindowOptions = {
|
|
8829
8845
|
interop: InteropConfig;
|
8830
8846
|
/* Excluded from this release type: _internalWorkspaceData */
|
8831
8847
|
/* Excluded from this release type: workspacePlatform */
|
8848
|
+
/**
|
8849
|
+
* {@inheritDoc WindowThrottling}
|
8850
|
+
*
|
8851
|
+
* @defaultValue 'enabled'
|
8852
|
+
*
|
8853
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
8854
|
+
*/
|
8855
|
+
throttling: WindowThrottling;
|
8832
8856
|
};
|
8833
8857
|
|
8834
8858
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
@@ -9032,6 +9056,8 @@ declare namespace OpenFin_2 {
|
|
9032
9056
|
AutoResizeOptions,
|
9033
9057
|
InteropConfig,
|
9034
9058
|
ViewInfo,
|
9059
|
+
WindowThrottling,
|
9060
|
+
ViewThrottling,
|
9035
9061
|
UpdatableViewOptions,
|
9036
9062
|
ViewCreationOptions,
|
9037
9063
|
MutableViewOptions,
|
@@ -9279,6 +9305,7 @@ declare namespace OpenFin_2 {
|
|
9279
9305
|
ChannelProviderDisconnectionListener,
|
9280
9306
|
RoutingInfo,
|
9281
9307
|
DownloadShelfOptions,
|
9308
|
+
ViewShowAtOptions,
|
9282
9309
|
ApplicationEvents,
|
9283
9310
|
BaseEvents,
|
9284
9311
|
ExternalApplicationEvents,
|
@@ -11408,6 +11435,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11408
11435
|
'get-view-options': IdentityCall<{}, OpenFin_2.ViewOptions>;
|
11409
11436
|
'hide-view': IdentityCall;
|
11410
11437
|
'show-view': IdentityCall;
|
11438
|
+
'show-view-at': IdentityCall<{
|
11439
|
+
bounds: OpenFin_2.Bounds;
|
11440
|
+
options?: OpenFin_2.ViewShowAtOptions;
|
11441
|
+
}>;
|
11442
|
+
'bring-view-to-front': IdentityCall;
|
11411
11443
|
'update-view-options': IdentityCall<{
|
11412
11444
|
options: OpenFin_2.UpdatableViewOptions;
|
11413
11445
|
}>;
|
@@ -14636,6 +14668,8 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14636
14668
|
* left: 100,
|
14637
14669
|
* width: 300,
|
14638
14670
|
* height: 300
|
14671
|
+
* }, {
|
14672
|
+
* bringToFront : true
|
14639
14673
|
* });
|
14640
14674
|
* }
|
14641
14675
|
*
|
@@ -14645,7 +14679,15 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
14645
14679
|
* ```
|
14646
14680
|
* @experimental
|
14647
14681
|
*/
|
14648
|
-
showAt: (bounds: OpenFin_2.Bounds) => Promise<void>;
|
14682
|
+
showAt: (bounds: OpenFin_2.Bounds, options?: OpenFin_2.ViewShowAtOptions) => Promise<void>;
|
14683
|
+
/**
|
14684
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
14685
|
+
* which have overlapping bounds with it.
|
14686
|
+
*
|
14687
|
+
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
14688
|
+
* in the window that share bounds with it.
|
14689
|
+
*/
|
14690
|
+
bringToFront: () => Promise<void>;
|
14649
14691
|
/**
|
14650
14692
|
* Hides the current view if it is currently visible.
|
14651
14693
|
*
|
@@ -15117,6 +15159,14 @@ declare class ViewModule extends Base {
|
|
15117
15159
|
*/
|
15118
15160
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
15119
15161
|
|
15162
|
+
declare type ViewShowAtOptions = {
|
15163
|
+
/**
|
15164
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
15165
|
+
* @default false
|
15166
|
+
*/
|
15167
|
+
bringToFront?: true;
|
15168
|
+
};
|
15169
|
+
|
15120
15170
|
/**
|
15121
15171
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
15122
15172
|
* @interface
|
@@ -15148,7 +15198,6 @@ declare interface ViewsPreventingUnloadPayload {
|
|
15148
15198
|
* @interface
|
15149
15199
|
*/
|
15150
15200
|
declare type ViewState = ViewCreationOptions & {
|
15151
|
-
backgroundThrottling: boolean;
|
15152
15201
|
componentName: 'view';
|
15153
15202
|
initialUrl: string;
|
15154
15203
|
minWidth?: number;
|
@@ -15170,6 +15219,14 @@ declare interface ViewStatuses {
|
|
15170
15219
|
viewsNotPreventingUnload: Identity_5[];
|
15171
15220
|
}
|
15172
15221
|
|
15222
|
+
/**
|
15223
|
+
* View throttling state.
|
15224
|
+
*
|
15225
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
15226
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
15227
|
+
*/
|
15228
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
15229
|
+
|
15173
15230
|
/**
|
15174
15231
|
* Configuration for view visibility settings
|
15175
15232
|
*
|
@@ -17713,6 +17770,16 @@ declare type WindowStartLoadEvent = BaseEvent_3 & {
|
|
17713
17770
|
*/
|
17714
17771
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
17715
17772
|
|
17773
|
+
/**
|
17774
|
+
*
|
17775
|
+
* Window throttling state.
|
17776
|
+
*
|
17777
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
17778
|
+
* * `scheduler-disabled`: The background throttling is true, but scheduler throttling is disabled.
|
17779
|
+
* * `disabled`: The background throttling is false. The throttling is fully disabled.
|
17780
|
+
*/
|
17781
|
+
declare type WindowThrottling = 'enabled' | 'scheduler-disabled' | 'disabled';
|
17782
|
+
|
17716
17783
|
/**
|
17717
17784
|
* A view-related event that fires natively on the `Window` topic. This means that these events *do* propagate
|
17718
17785
|
* to the `Application` level, with the name pattern `window-view-eventname`.
|
package/out/mock.d.ts
CHANGED
@@ -3536,6 +3536,16 @@ declare type ConstWindowOptions = {
|
|
3536
3536
|
* Default is white.
|
3537
3537
|
*/
|
3538
3538
|
backgroundColor: string;
|
3539
|
+
/**
|
3540
|
+
* @defaultValue false
|
3541
|
+
*
|
3542
|
+
* Determines whether WebContents will throttle animations and timers when the page becomes backgrounded.
|
3543
|
+
* This also affects the Page Visibility API.
|
3544
|
+
*
|
3545
|
+
* When `true`, the page is throttled whether it is hidden or not.
|
3546
|
+
*
|
3547
|
+
*/
|
3548
|
+
backgroundThrottling: boolean;
|
3539
3549
|
/**
|
3540
3550
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
3541
3551
|
*/
|
@@ -8883,6 +8893,12 @@ declare type MutableViewOptions = {
|
|
8883
8893
|
* Used by Workspace to store custom data. Overwriting or modifying this field may impact the functionality of Workspace
|
8884
8894
|
*/
|
8885
8895
|
_internalWorkspaceData: any;
|
8896
|
+
/**
|
8897
|
+
* {@inheritDoc ViewThrottling}
|
8898
|
+
*
|
8899
|
+
* @defaultValue 'enabled'
|
8900
|
+
*/
|
8901
|
+
throttling: ViewThrottling;
|
8886
8902
|
};
|
8887
8903
|
|
8888
8904
|
/**
|
@@ -9134,6 +9150,14 @@ declare type MutableWindowOptions = {
|
|
9134
9150
|
* Used by workspace to stork platform specific options. Overwriting or modifying this field may impact the functionality of Workspace
|
9135
9151
|
*/
|
9136
9152
|
workspacePlatform: WorkspacePlatformOptions;
|
9153
|
+
/**
|
9154
|
+
* {@inheritDoc WindowThrottling}
|
9155
|
+
*
|
9156
|
+
* @defaultValue 'enabled'
|
9157
|
+
*
|
9158
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
9159
|
+
*/
|
9160
|
+
throttling: WindowThrottling;
|
9137
9161
|
};
|
9138
9162
|
|
9139
9163
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
@@ -9347,6 +9371,8 @@ declare namespace OpenFin_2 {
|
|
9347
9371
|
AutoResizeOptions,
|
9348
9372
|
InteropConfig,
|
9349
9373
|
ViewInfo,
|
9374
|
+
WindowThrottling,
|
9375
|
+
ViewThrottling,
|
9350
9376
|
UpdatableViewOptions,
|
9351
9377
|
ViewCreationOptions,
|
9352
9378
|
MutableViewOptions,
|
@@ -9594,6 +9620,7 @@ declare namespace OpenFin_2 {
|
|
9594
9620
|
ChannelProviderDisconnectionListener,
|
9595
9621
|
RoutingInfo,
|
9596
9622
|
DownloadShelfOptions,
|
9623
|
+
ViewShowAtOptions,
|
9597
9624
|
ApplicationEvents,
|
9598
9625
|
BaseEvents,
|
9599
9626
|
ExternalApplicationEvents,
|
@@ -11801,6 +11828,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11801
11828
|
'get-view-options': IdentityCall<{}, OpenFin_2.ViewOptions>;
|
11802
11829
|
'hide-view': IdentityCall;
|
11803
11830
|
'show-view': IdentityCall;
|
11831
|
+
'show-view-at': IdentityCall<{
|
11832
|
+
bounds: OpenFin_2.Bounds;
|
11833
|
+
options?: OpenFin_2.ViewShowAtOptions;
|
11834
|
+
}>;
|
11835
|
+
'bring-view-to-front': IdentityCall;
|
11804
11836
|
'update-view-options': IdentityCall<{
|
11805
11837
|
options: OpenFin_2.UpdatableViewOptions;
|
11806
11838
|
}>;
|
@@ -15045,6 +15077,8 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
15045
15077
|
* left: 100,
|
15046
15078
|
* width: 300,
|
15047
15079
|
* height: 300
|
15080
|
+
* }, {
|
15081
|
+
* bringToFront : true
|
15048
15082
|
* });
|
15049
15083
|
* }
|
15050
15084
|
*
|
@@ -15054,7 +15088,15 @@ declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
15054
15088
|
* ```
|
15055
15089
|
* @experimental
|
15056
15090
|
*/
|
15057
|
-
showAt: (bounds: OpenFin_2.Bounds) => Promise<void>;
|
15091
|
+
showAt: (bounds: OpenFin_2.Bounds, options?: OpenFin_2.ViewShowAtOptions) => Promise<void>;
|
15092
|
+
/**
|
15093
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
15094
|
+
* which have overlapping bounds with it.
|
15095
|
+
*
|
15096
|
+
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
15097
|
+
* in the window that share bounds with it.
|
15098
|
+
*/
|
15099
|
+
bringToFront: () => Promise<void>;
|
15058
15100
|
/**
|
15059
15101
|
* Hides the current view if it is currently visible.
|
15060
15102
|
*
|
@@ -15560,6 +15602,14 @@ declare class ViewModule extends Base {
|
|
15560
15602
|
*/
|
15561
15603
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
15562
15604
|
|
15605
|
+
declare type ViewShowAtOptions = {
|
15606
|
+
/**
|
15607
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
15608
|
+
* @default false
|
15609
|
+
*/
|
15610
|
+
bringToFront?: true;
|
15611
|
+
};
|
15612
|
+
|
15563
15613
|
/**
|
15564
15614
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
15565
15615
|
* @interface
|
@@ -15591,7 +15641,6 @@ declare interface ViewsPreventingUnloadPayload {
|
|
15591
15641
|
* @interface
|
15592
15642
|
*/
|
15593
15643
|
declare type ViewState = ViewCreationOptions & {
|
15594
|
-
backgroundThrottling: boolean;
|
15595
15644
|
componentName: 'view';
|
15596
15645
|
initialUrl: string;
|
15597
15646
|
minWidth?: number;
|
@@ -15613,6 +15662,14 @@ declare interface ViewStatuses {
|
|
15613
15662
|
viewsNotPreventingUnload: Identity_5[];
|
15614
15663
|
}
|
15615
15664
|
|
15665
|
+
/**
|
15666
|
+
* View throttling state.
|
15667
|
+
*
|
15668
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
15669
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
15670
|
+
*/
|
15671
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
15672
|
+
|
15616
15673
|
/**
|
15617
15674
|
* Configuration for view visibility settings
|
15618
15675
|
*
|
@@ -18159,6 +18216,16 @@ declare type WindowStartLoadEvent = BaseEvent_3 & {
|
|
18159
18216
|
*/
|
18160
18217
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
18161
18218
|
|
18219
|
+
/**
|
18220
|
+
*
|
18221
|
+
* Window throttling state.
|
18222
|
+
*
|
18223
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
18224
|
+
* * `scheduler-disabled`: The background throttling is true, but scheduler throttling is disabled.
|
18225
|
+
* * `disabled`: The background throttling is false. The throttling is fully disabled.
|
18226
|
+
*/
|
18227
|
+
declare type WindowThrottling = 'enabled' | 'scheduler-disabled' | 'disabled';
|
18228
|
+
|
18162
18229
|
/**
|
18163
18230
|
* A view-related event that fires natively on the `Window` topic. This means that these events *do* propagate
|
18164
18231
|
* to the `Application` level, with the name pattern `window-view-eventname`.
|
package/out/mock.js
CHANGED
@@ -2818,6 +2818,8 @@ function requireInstance$2 () {
|
|
2818
2818
|
* left: 100,
|
2819
2819
|
* width: 300,
|
2820
2820
|
* height: 300
|
2821
|
+
* }, {
|
2822
|
+
* bringToFront : true
|
2821
2823
|
* });
|
2822
2824
|
* }
|
2823
2825
|
*
|
@@ -2827,8 +2829,18 @@ function requireInstance$2 () {
|
|
2827
2829
|
* ```
|
2828
2830
|
* @experimental
|
2829
2831
|
*/
|
2830
|
-
this.showAt = async (bounds) => {
|
2831
|
-
await this.wire.sendAction('show-view-at', { bounds, ...this.identity });
|
2832
|
+
this.showAt = async (bounds, options = {}) => {
|
2833
|
+
await this.wire.sendAction('show-view-at', { bounds, ...this.identity, options });
|
2834
|
+
};
|
2835
|
+
/**
|
2836
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
2837
|
+
* which have overlapping bounds with it.
|
2838
|
+
*
|
2839
|
+
* Please note, this is not a permanent action - when a new view is created or attached to the window, it will display on top of all other views
|
2840
|
+
* in the window that share bounds with it.
|
2841
|
+
*/
|
2842
|
+
this.bringToFront = async () => {
|
2843
|
+
await this.wire.sendAction('bring-view-to-front', { ...this.identity });
|
2832
2844
|
};
|
2833
2845
|
/**
|
2834
2846
|
* Hides the current view if it is currently visible.
|