@openfin/fdc3-api 39.81.18 → 39.82.2
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.
- package/out/fdc3-api-alpha.d.ts +69 -2
- package/out/fdc3-api-beta.d.ts +69 -2
- package/out/fdc3-api-public.d.ts +69 -2
- package/out/fdc3-api.d.ts +69 -2
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -3474,6 +3474,16 @@ declare type ConstWindowOptions = {
|
|
|
3474
3474
|
* Default is white.
|
|
3475
3475
|
*/
|
|
3476
3476
|
backgroundColor: string;
|
|
3477
|
+
/**
|
|
3478
|
+
* @defaultValue false
|
|
3479
|
+
*
|
|
3480
|
+
* Determines whether WebContents will throttle animations and timers when the page becomes backgrounded.
|
|
3481
|
+
* This also affects the Page Visibility API.
|
|
3482
|
+
*
|
|
3483
|
+
* When `true`, the page is throttled whether it is hidden or not.
|
|
3484
|
+
*
|
|
3485
|
+
*/
|
|
3486
|
+
backgroundThrottling: boolean;
|
|
3477
3487
|
/**
|
|
3478
3488
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
|
3479
3489
|
*/
|
|
@@ -8928,6 +8938,12 @@ declare type MutableViewOptions = {
|
|
|
8928
8938
|
preventDragOut: boolean;
|
|
8929
8939
|
interop?: InteropConfig;
|
|
8930
8940
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
8941
|
+
/**
|
|
8942
|
+
* {@inheritDoc ViewThrottling}
|
|
8943
|
+
*
|
|
8944
|
+
* @defaultValue 'enabled'
|
|
8945
|
+
*/
|
|
8946
|
+
throttling: ViewThrottling;
|
|
8931
8947
|
};
|
|
8932
8948
|
|
|
8933
8949
|
/**
|
|
@@ -9171,6 +9187,14 @@ declare type MutableWindowOptions = {
|
|
|
9171
9187
|
interop: InteropConfig;
|
|
9172
9188
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
9173
9189
|
/* Excluded from this release type: workspacePlatform */
|
|
9190
|
+
/**
|
|
9191
|
+
* {@inheritDoc WindowThrottling}
|
|
9192
|
+
*
|
|
9193
|
+
* @defaultValue 'enabled'
|
|
9194
|
+
*
|
|
9195
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
|
9196
|
+
*/
|
|
9197
|
+
throttling: WindowThrottling;
|
|
9174
9198
|
};
|
|
9175
9199
|
|
|
9176
9200
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
|
@@ -9374,6 +9398,8 @@ declare namespace OpenFin {
|
|
|
9374
9398
|
AutoResizeOptions,
|
|
9375
9399
|
InteropConfig,
|
|
9376
9400
|
ViewInfo,
|
|
9401
|
+
WindowThrottling,
|
|
9402
|
+
ViewThrottling,
|
|
9377
9403
|
UpdatableViewOptions,
|
|
9378
9404
|
ViewCreationOptions,
|
|
9379
9405
|
MutableViewOptions,
|
|
@@ -9621,6 +9647,7 @@ declare namespace OpenFin {
|
|
|
9621
9647
|
ChannelProviderDisconnectionListener,
|
|
9622
9648
|
RoutingInfo,
|
|
9623
9649
|
DownloadShelfOptions,
|
|
9650
|
+
ViewShowAtOptions,
|
|
9624
9651
|
ApplicationEvents,
|
|
9625
9652
|
BaseEvents,
|
|
9626
9653
|
ExternalApplicationEvents,
|
|
@@ -11748,6 +11775,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
11748
11775
|
'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
|
|
11749
11776
|
'hide-view': IdentityCall;
|
|
11750
11777
|
'show-view': IdentityCall;
|
|
11778
|
+
'show-view-at': IdentityCall<{
|
|
11779
|
+
bounds: OpenFin.Bounds;
|
|
11780
|
+
options?: OpenFin.ViewShowAtOptions;
|
|
11781
|
+
}>;
|
|
11782
|
+
'bring-view-to-front': IdentityCall;
|
|
11751
11783
|
'update-view-options': IdentityCall<{
|
|
11752
11784
|
options: OpenFin.UpdatableViewOptions;
|
|
11753
11785
|
}>;
|
|
@@ -15082,6 +15114,8 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
|
15082
15114
|
* left: 100,
|
|
15083
15115
|
* width: 300,
|
|
15084
15116
|
* height: 300
|
|
15117
|
+
* }, {
|
|
15118
|
+
* bringToFront : true
|
|
15085
15119
|
* });
|
|
15086
15120
|
* }
|
|
15087
15121
|
*
|
|
@@ -15091,7 +15125,15 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
|
15091
15125
|
* ```
|
|
15092
15126
|
* @experimental
|
|
15093
15127
|
*/
|
|
15094
|
-
showAt: (bounds: OpenFin.Bounds) => Promise<void>;
|
|
15128
|
+
showAt: (bounds: OpenFin.Bounds, options?: OpenFin.ViewShowAtOptions) => Promise<void>;
|
|
15129
|
+
/**
|
|
15130
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
|
15131
|
+
* which have overlapping bounds with it.
|
|
15132
|
+
*
|
|
15133
|
+
* 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
|
|
15134
|
+
* in the window that share bounds with it.
|
|
15135
|
+
*/
|
|
15136
|
+
bringToFront: () => Promise<void>;
|
|
15095
15137
|
/**
|
|
15096
15138
|
* Hides the current view if it is currently visible.
|
|
15097
15139
|
*
|
|
@@ -15563,6 +15605,14 @@ declare class ViewModule extends Base {
|
|
|
15563
15605
|
*/
|
|
15564
15606
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
|
15565
15607
|
|
|
15608
|
+
declare type ViewShowAtOptions = {
|
|
15609
|
+
/**
|
|
15610
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
|
15611
|
+
* @default false
|
|
15612
|
+
*/
|
|
15613
|
+
bringToFront?: true;
|
|
15614
|
+
};
|
|
15615
|
+
|
|
15566
15616
|
/**
|
|
15567
15617
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
|
15568
15618
|
* @interface
|
|
@@ -15594,7 +15644,6 @@ declare interface ViewsPreventingUnloadPayload {
|
|
|
15594
15644
|
* @interface
|
|
15595
15645
|
*/
|
|
15596
15646
|
declare type ViewState = ViewCreationOptions & {
|
|
15597
|
-
backgroundThrottling: boolean;
|
|
15598
15647
|
componentName: 'view';
|
|
15599
15648
|
initialUrl: string;
|
|
15600
15649
|
minWidth?: number;
|
|
@@ -15616,6 +15665,14 @@ declare interface ViewStatuses {
|
|
|
15616
15665
|
viewsNotPreventingUnload: Identity_5[];
|
|
15617
15666
|
}
|
|
15618
15667
|
|
|
15668
|
+
/**
|
|
15669
|
+
* View throttling state.
|
|
15670
|
+
*
|
|
15671
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
|
15672
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
|
15673
|
+
*/
|
|
15674
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
|
15675
|
+
|
|
15619
15676
|
/**
|
|
15620
15677
|
* Configuration for view visibility settings
|
|
15621
15678
|
*
|
|
@@ -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/fdc3-api-beta.d.ts
CHANGED
|
@@ -3474,6 +3474,16 @@ declare type ConstWindowOptions = {
|
|
|
3474
3474
|
* Default is white.
|
|
3475
3475
|
*/
|
|
3476
3476
|
backgroundColor: string;
|
|
3477
|
+
/**
|
|
3478
|
+
* @defaultValue false
|
|
3479
|
+
*
|
|
3480
|
+
* Determines whether WebContents will throttle animations and timers when the page becomes backgrounded.
|
|
3481
|
+
* This also affects the Page Visibility API.
|
|
3482
|
+
*
|
|
3483
|
+
* When `true`, the page is throttled whether it is hidden or not.
|
|
3484
|
+
*
|
|
3485
|
+
*/
|
|
3486
|
+
backgroundThrottling: boolean;
|
|
3477
3487
|
/**
|
|
3478
3488
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
|
3479
3489
|
*/
|
|
@@ -8928,6 +8938,12 @@ declare type MutableViewOptions = {
|
|
|
8928
8938
|
preventDragOut: boolean;
|
|
8929
8939
|
interop?: InteropConfig;
|
|
8930
8940
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
8941
|
+
/**
|
|
8942
|
+
* {@inheritDoc ViewThrottling}
|
|
8943
|
+
*
|
|
8944
|
+
* @defaultValue 'enabled'
|
|
8945
|
+
*/
|
|
8946
|
+
throttling: ViewThrottling;
|
|
8931
8947
|
};
|
|
8932
8948
|
|
|
8933
8949
|
/**
|
|
@@ -9171,6 +9187,14 @@ declare type MutableWindowOptions = {
|
|
|
9171
9187
|
interop: InteropConfig;
|
|
9172
9188
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
9173
9189
|
/* Excluded from this release type: workspacePlatform */
|
|
9190
|
+
/**
|
|
9191
|
+
* {@inheritDoc WindowThrottling}
|
|
9192
|
+
*
|
|
9193
|
+
* @defaultValue 'enabled'
|
|
9194
|
+
*
|
|
9195
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
|
9196
|
+
*/
|
|
9197
|
+
throttling: WindowThrottling;
|
|
9174
9198
|
};
|
|
9175
9199
|
|
|
9176
9200
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
|
@@ -9374,6 +9398,8 @@ declare namespace OpenFin {
|
|
|
9374
9398
|
AutoResizeOptions,
|
|
9375
9399
|
InteropConfig,
|
|
9376
9400
|
ViewInfo,
|
|
9401
|
+
WindowThrottling,
|
|
9402
|
+
ViewThrottling,
|
|
9377
9403
|
UpdatableViewOptions,
|
|
9378
9404
|
ViewCreationOptions,
|
|
9379
9405
|
MutableViewOptions,
|
|
@@ -9621,6 +9647,7 @@ declare namespace OpenFin {
|
|
|
9621
9647
|
ChannelProviderDisconnectionListener,
|
|
9622
9648
|
RoutingInfo,
|
|
9623
9649
|
DownloadShelfOptions,
|
|
9650
|
+
ViewShowAtOptions,
|
|
9624
9651
|
ApplicationEvents,
|
|
9625
9652
|
BaseEvents,
|
|
9626
9653
|
ExternalApplicationEvents,
|
|
@@ -11748,6 +11775,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
11748
11775
|
'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
|
|
11749
11776
|
'hide-view': IdentityCall;
|
|
11750
11777
|
'show-view': IdentityCall;
|
|
11778
|
+
'show-view-at': IdentityCall<{
|
|
11779
|
+
bounds: OpenFin.Bounds;
|
|
11780
|
+
options?: OpenFin.ViewShowAtOptions;
|
|
11781
|
+
}>;
|
|
11782
|
+
'bring-view-to-front': IdentityCall;
|
|
11751
11783
|
'update-view-options': IdentityCall<{
|
|
11752
11784
|
options: OpenFin.UpdatableViewOptions;
|
|
11753
11785
|
}>;
|
|
@@ -15082,6 +15114,8 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
|
15082
15114
|
* left: 100,
|
|
15083
15115
|
* width: 300,
|
|
15084
15116
|
* height: 300
|
|
15117
|
+
* }, {
|
|
15118
|
+
* bringToFront : true
|
|
15085
15119
|
* });
|
|
15086
15120
|
* }
|
|
15087
15121
|
*
|
|
@@ -15091,7 +15125,15 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
|
15091
15125
|
* ```
|
|
15092
15126
|
* @experimental
|
|
15093
15127
|
*/
|
|
15094
|
-
showAt: (bounds: OpenFin.Bounds) => Promise<void>;
|
|
15128
|
+
showAt: (bounds: OpenFin.Bounds, options?: OpenFin.ViewShowAtOptions) => Promise<void>;
|
|
15129
|
+
/**
|
|
15130
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
|
15131
|
+
* which have overlapping bounds with it.
|
|
15132
|
+
*
|
|
15133
|
+
* 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
|
|
15134
|
+
* in the window that share bounds with it.
|
|
15135
|
+
*/
|
|
15136
|
+
bringToFront: () => Promise<void>;
|
|
15095
15137
|
/**
|
|
15096
15138
|
* Hides the current view if it is currently visible.
|
|
15097
15139
|
*
|
|
@@ -15563,6 +15605,14 @@ declare class ViewModule extends Base {
|
|
|
15563
15605
|
*/
|
|
15564
15606
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
|
15565
15607
|
|
|
15608
|
+
declare type ViewShowAtOptions = {
|
|
15609
|
+
/**
|
|
15610
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
|
15611
|
+
* @default false
|
|
15612
|
+
*/
|
|
15613
|
+
bringToFront?: true;
|
|
15614
|
+
};
|
|
15615
|
+
|
|
15566
15616
|
/**
|
|
15567
15617
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
|
15568
15618
|
* @interface
|
|
@@ -15594,7 +15644,6 @@ declare interface ViewsPreventingUnloadPayload {
|
|
|
15594
15644
|
* @interface
|
|
15595
15645
|
*/
|
|
15596
15646
|
declare type ViewState = ViewCreationOptions & {
|
|
15597
|
-
backgroundThrottling: boolean;
|
|
15598
15647
|
componentName: 'view';
|
|
15599
15648
|
initialUrl: string;
|
|
15600
15649
|
minWidth?: number;
|
|
@@ -15616,6 +15665,14 @@ declare interface ViewStatuses {
|
|
|
15616
15665
|
viewsNotPreventingUnload: Identity_5[];
|
|
15617
15666
|
}
|
|
15618
15667
|
|
|
15668
|
+
/**
|
|
15669
|
+
* View throttling state.
|
|
15670
|
+
*
|
|
15671
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
|
15672
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
|
15673
|
+
*/
|
|
15674
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
|
15675
|
+
|
|
15619
15676
|
/**
|
|
15620
15677
|
* Configuration for view visibility settings
|
|
15621
15678
|
*
|
|
@@ -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/fdc3-api-public.d.ts
CHANGED
|
@@ -3474,6 +3474,16 @@ declare type ConstWindowOptions = {
|
|
|
3474
3474
|
* Default is white.
|
|
3475
3475
|
*/
|
|
3476
3476
|
backgroundColor: string;
|
|
3477
|
+
/**
|
|
3478
|
+
* @defaultValue false
|
|
3479
|
+
*
|
|
3480
|
+
* Determines whether WebContents will throttle animations and timers when the page becomes backgrounded.
|
|
3481
|
+
* This also affects the Page Visibility API.
|
|
3482
|
+
*
|
|
3483
|
+
* When `true`, the page is throttled whether it is hidden or not.
|
|
3484
|
+
*
|
|
3485
|
+
*/
|
|
3486
|
+
backgroundThrottling: boolean;
|
|
3477
3487
|
/**
|
|
3478
3488
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
|
3479
3489
|
*/
|
|
@@ -8928,6 +8938,12 @@ declare type MutableViewOptions = {
|
|
|
8928
8938
|
preventDragOut: boolean;
|
|
8929
8939
|
interop?: InteropConfig;
|
|
8930
8940
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
8941
|
+
/**
|
|
8942
|
+
* {@inheritDoc ViewThrottling}
|
|
8943
|
+
*
|
|
8944
|
+
* @defaultValue 'enabled'
|
|
8945
|
+
*/
|
|
8946
|
+
throttling: ViewThrottling;
|
|
8931
8947
|
};
|
|
8932
8948
|
|
|
8933
8949
|
/**
|
|
@@ -9171,6 +9187,14 @@ declare type MutableWindowOptions = {
|
|
|
9171
9187
|
interop: InteropConfig;
|
|
9172
9188
|
/* Excluded from this release type: _internalWorkspaceData */
|
|
9173
9189
|
/* Excluded from this release type: workspacePlatform */
|
|
9190
|
+
/**
|
|
9191
|
+
* {@inheritDoc WindowThrottling}
|
|
9192
|
+
*
|
|
9193
|
+
* @defaultValue 'enabled'
|
|
9194
|
+
*
|
|
9195
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
|
9196
|
+
*/
|
|
9197
|
+
throttling: WindowThrottling;
|
|
9174
9198
|
};
|
|
9175
9199
|
|
|
9176
9200
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
|
@@ -9374,6 +9398,8 @@ declare namespace OpenFin {
|
|
|
9374
9398
|
AutoResizeOptions,
|
|
9375
9399
|
InteropConfig,
|
|
9376
9400
|
ViewInfo,
|
|
9401
|
+
WindowThrottling,
|
|
9402
|
+
ViewThrottling,
|
|
9377
9403
|
UpdatableViewOptions,
|
|
9378
9404
|
ViewCreationOptions,
|
|
9379
9405
|
MutableViewOptions,
|
|
@@ -9621,6 +9647,7 @@ declare namespace OpenFin {
|
|
|
9621
9647
|
ChannelProviderDisconnectionListener,
|
|
9622
9648
|
RoutingInfo,
|
|
9623
9649
|
DownloadShelfOptions,
|
|
9650
|
+
ViewShowAtOptions,
|
|
9624
9651
|
ApplicationEvents,
|
|
9625
9652
|
BaseEvents,
|
|
9626
9653
|
ExternalApplicationEvents,
|
|
@@ -11748,6 +11775,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
11748
11775
|
'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
|
|
11749
11776
|
'hide-view': IdentityCall;
|
|
11750
11777
|
'show-view': IdentityCall;
|
|
11778
|
+
'show-view-at': IdentityCall<{
|
|
11779
|
+
bounds: OpenFin.Bounds;
|
|
11780
|
+
options?: OpenFin.ViewShowAtOptions;
|
|
11781
|
+
}>;
|
|
11782
|
+
'bring-view-to-front': IdentityCall;
|
|
11751
11783
|
'update-view-options': IdentityCall<{
|
|
11752
11784
|
options: OpenFin.UpdatableViewOptions;
|
|
11753
11785
|
}>;
|
|
@@ -15082,6 +15114,8 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
|
15082
15114
|
* left: 100,
|
|
15083
15115
|
* width: 300,
|
|
15084
15116
|
* height: 300
|
|
15117
|
+
* }, {
|
|
15118
|
+
* bringToFront : true
|
|
15085
15119
|
* });
|
|
15086
15120
|
* }
|
|
15087
15121
|
*
|
|
@@ -15091,7 +15125,15 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
|
15091
15125
|
* ```
|
|
15092
15126
|
* @experimental
|
|
15093
15127
|
*/
|
|
15094
|
-
showAt: (bounds: OpenFin.Bounds) => Promise<void>;
|
|
15128
|
+
showAt: (bounds: OpenFin.Bounds, options?: OpenFin.ViewShowAtOptions) => Promise<void>;
|
|
15129
|
+
/**
|
|
15130
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
|
15131
|
+
* which have overlapping bounds with it.
|
|
15132
|
+
*
|
|
15133
|
+
* 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
|
|
15134
|
+
* in the window that share bounds with it.
|
|
15135
|
+
*/
|
|
15136
|
+
bringToFront: () => Promise<void>;
|
|
15095
15137
|
/**
|
|
15096
15138
|
* Hides the current view if it is currently visible.
|
|
15097
15139
|
*
|
|
@@ -15563,6 +15605,14 @@ declare class ViewModule extends Base {
|
|
|
15563
15605
|
*/
|
|
15564
15606
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
|
15565
15607
|
|
|
15608
|
+
declare type ViewShowAtOptions = {
|
|
15609
|
+
/**
|
|
15610
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
|
15611
|
+
* @default false
|
|
15612
|
+
*/
|
|
15613
|
+
bringToFront?: true;
|
|
15614
|
+
};
|
|
15615
|
+
|
|
15566
15616
|
/**
|
|
15567
15617
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
|
15568
15618
|
* @interface
|
|
@@ -15594,7 +15644,6 @@ declare interface ViewsPreventingUnloadPayload {
|
|
|
15594
15644
|
* @interface
|
|
15595
15645
|
*/
|
|
15596
15646
|
declare type ViewState = ViewCreationOptions & {
|
|
15597
|
-
backgroundThrottling: boolean;
|
|
15598
15647
|
componentName: 'view';
|
|
15599
15648
|
initialUrl: string;
|
|
15600
15649
|
minWidth?: number;
|
|
@@ -15616,6 +15665,14 @@ declare interface ViewStatuses {
|
|
|
15616
15665
|
viewsNotPreventingUnload: Identity_5[];
|
|
15617
15666
|
}
|
|
15618
15667
|
|
|
15668
|
+
/**
|
|
15669
|
+
* View throttling state.
|
|
15670
|
+
*
|
|
15671
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
|
15672
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
|
15673
|
+
*/
|
|
15674
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
|
15675
|
+
|
|
15619
15676
|
/**
|
|
15620
15677
|
* Configuration for view visibility settings
|
|
15621
15678
|
*
|
|
@@ -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/fdc3-api.d.ts
CHANGED
|
@@ -3533,6 +3533,16 @@ declare type ConstWindowOptions = {
|
|
|
3533
3533
|
* Default is white.
|
|
3534
3534
|
*/
|
|
3535
3535
|
backgroundColor: string;
|
|
3536
|
+
/**
|
|
3537
|
+
* @defaultValue false
|
|
3538
|
+
*
|
|
3539
|
+
* Determines whether WebContents will throttle animations and timers when the page becomes backgrounded.
|
|
3540
|
+
* This also affects the Page Visibility API.
|
|
3541
|
+
*
|
|
3542
|
+
* When `true`, the page is throttled whether it is hidden or not.
|
|
3543
|
+
*
|
|
3544
|
+
*/
|
|
3545
|
+
backgroundThrottling: boolean;
|
|
3536
3546
|
/**
|
|
3537
3547
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
|
3538
3548
|
*/
|
|
@@ -9225,6 +9235,12 @@ declare type MutableViewOptions = {
|
|
|
9225
9235
|
* Used by Workspace to store custom data. Overwriting or modifying this field may impact the functionality of Workspace
|
|
9226
9236
|
*/
|
|
9227
9237
|
_internalWorkspaceData: any;
|
|
9238
|
+
/**
|
|
9239
|
+
* {@inheritDoc ViewThrottling}
|
|
9240
|
+
*
|
|
9241
|
+
* @defaultValue 'enabled'
|
|
9242
|
+
*/
|
|
9243
|
+
throttling: ViewThrottling;
|
|
9228
9244
|
};
|
|
9229
9245
|
|
|
9230
9246
|
/**
|
|
@@ -9476,6 +9492,14 @@ declare type MutableWindowOptions = {
|
|
|
9476
9492
|
* Used by workspace to stork platform specific options. Overwriting or modifying this field may impact the functionality of Workspace
|
|
9477
9493
|
*/
|
|
9478
9494
|
workspacePlatform: WorkspacePlatformOptions;
|
|
9495
|
+
/**
|
|
9496
|
+
* {@inheritDoc WindowThrottling}
|
|
9497
|
+
*
|
|
9498
|
+
* @defaultValue 'enabled'
|
|
9499
|
+
*
|
|
9500
|
+
* @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
|
|
9501
|
+
*/
|
|
9502
|
+
throttling: WindowThrottling;
|
|
9479
9503
|
};
|
|
9480
9504
|
|
|
9481
9505
|
declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
|
|
@@ -9689,6 +9713,8 @@ declare namespace OpenFin {
|
|
|
9689
9713
|
AutoResizeOptions,
|
|
9690
9714
|
InteropConfig,
|
|
9691
9715
|
ViewInfo,
|
|
9716
|
+
WindowThrottling,
|
|
9717
|
+
ViewThrottling,
|
|
9692
9718
|
UpdatableViewOptions,
|
|
9693
9719
|
ViewCreationOptions,
|
|
9694
9720
|
MutableViewOptions,
|
|
@@ -9936,6 +9962,7 @@ declare namespace OpenFin {
|
|
|
9936
9962
|
ChannelProviderDisconnectionListener,
|
|
9937
9963
|
RoutingInfo,
|
|
9938
9964
|
DownloadShelfOptions,
|
|
9965
|
+
ViewShowAtOptions,
|
|
9939
9966
|
ApplicationEvents,
|
|
9940
9967
|
BaseEvents,
|
|
9941
9968
|
ExternalApplicationEvents,
|
|
@@ -12141,6 +12168,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
12141
12168
|
'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
|
|
12142
12169
|
'hide-view': IdentityCall;
|
|
12143
12170
|
'show-view': IdentityCall;
|
|
12171
|
+
'show-view-at': IdentityCall<{
|
|
12172
|
+
bounds: OpenFin.Bounds;
|
|
12173
|
+
options?: OpenFin.ViewShowAtOptions;
|
|
12174
|
+
}>;
|
|
12175
|
+
'bring-view-to-front': IdentityCall;
|
|
12144
12176
|
'update-view-options': IdentityCall<{
|
|
12145
12177
|
options: OpenFin.UpdatableViewOptions;
|
|
12146
12178
|
}>;
|
|
@@ -15491,6 +15523,8 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
|
15491
15523
|
* left: 100,
|
|
15492
15524
|
* width: 300,
|
|
15493
15525
|
* height: 300
|
|
15526
|
+
* }, {
|
|
15527
|
+
* bringToFront : true
|
|
15494
15528
|
* });
|
|
15495
15529
|
* }
|
|
15496
15530
|
*
|
|
@@ -15500,7 +15534,15 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
|
|
15500
15534
|
* ```
|
|
15501
15535
|
* @experimental
|
|
15502
15536
|
*/
|
|
15503
|
-
showAt: (bounds: OpenFin.Bounds) => Promise<void>;
|
|
15537
|
+
showAt: (bounds: OpenFin.Bounds, options?: OpenFin.ViewShowAtOptions) => Promise<void>;
|
|
15538
|
+
/**
|
|
15539
|
+
* Brings the specified view to the front of its current window. This ensures the view will be visible on top of any other views
|
|
15540
|
+
* which have overlapping bounds with it.
|
|
15541
|
+
*
|
|
15542
|
+
* 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
|
|
15543
|
+
* in the window that share bounds with it.
|
|
15544
|
+
*/
|
|
15545
|
+
bringToFront: () => Promise<void>;
|
|
15504
15546
|
/**
|
|
15505
15547
|
* Hides the current view if it is currently visible.
|
|
15506
15548
|
*
|
|
@@ -16006,6 +16048,14 @@ declare class ViewModule extends Base {
|
|
|
16006
16048
|
*/
|
|
16007
16049
|
declare type ViewOptions = ConstViewOptions & MutableViewOptions;
|
|
16008
16050
|
|
|
16051
|
+
declare type ViewShowAtOptions = {
|
|
16052
|
+
/**
|
|
16053
|
+
* Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
|
|
16054
|
+
* @default false
|
|
16055
|
+
*/
|
|
16056
|
+
bringToFront?: true;
|
|
16057
|
+
};
|
|
16058
|
+
|
|
16009
16059
|
/**
|
|
16010
16060
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
|
16011
16061
|
* @interface
|
|
@@ -16037,7 +16087,6 @@ declare interface ViewsPreventingUnloadPayload {
|
|
|
16037
16087
|
* @interface
|
|
16038
16088
|
*/
|
|
16039
16089
|
declare type ViewState = ViewCreationOptions & {
|
|
16040
|
-
backgroundThrottling: boolean;
|
|
16041
16090
|
componentName: 'view';
|
|
16042
16091
|
initialUrl: string;
|
|
16043
16092
|
minWidth?: number;
|
|
@@ -16059,6 +16108,14 @@ declare interface ViewStatuses {
|
|
|
16059
16108
|
viewsNotPreventingUnload: Identity_5[];
|
|
16060
16109
|
}
|
|
16061
16110
|
|
|
16111
|
+
/**
|
|
16112
|
+
* View throttling state.
|
|
16113
|
+
*
|
|
16114
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
|
16115
|
+
* * `scheduler-disabled`: background throttling is true, but scheduler throttling is disabled.
|
|
16116
|
+
*/
|
|
16117
|
+
declare type ViewThrottling = 'enabled' | 'scheduler-disabled';
|
|
16118
|
+
|
|
16062
16119
|
/**
|
|
16063
16120
|
* Configuration for view visibility settings
|
|
16064
16121
|
*
|
|
@@ -18605,6 +18662,16 @@ declare type WindowStartLoadEvent = BaseEvent_3 & {
|
|
|
18605
18662
|
*/
|
|
18606
18663
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
|
18607
18664
|
|
|
18665
|
+
/**
|
|
18666
|
+
*
|
|
18667
|
+
* Window throttling state.
|
|
18668
|
+
*
|
|
18669
|
+
* * `enabled`: Both background throttling and scheduler throttling are true. It's fully throttled.
|
|
18670
|
+
* * `scheduler-disabled`: The background throttling is true, but scheduler throttling is disabled.
|
|
18671
|
+
* * `disabled`: The background throttling is false. The throttling is fully disabled.
|
|
18672
|
+
*/
|
|
18673
|
+
declare type WindowThrottling = 'enabled' | 'scheduler-disabled' | 'disabled';
|
|
18674
|
+
|
|
18608
18675
|
/**
|
|
18609
18676
|
* A view-related event that fires natively on the `Window` topic. This means that these events *do* propagate
|
|
18610
18677
|
* to the `Application` level, with the name pattern `window-view-eventname`.
|