@openfin/core 34.78.13 → 34.78.15
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/mock-alpha.d.ts +123 -63
- package/out/mock-beta.d.ts +123 -63
- package/out/mock-public.d.ts +123 -63
- package/out/mock.d.ts +123 -63
- package/out/mock.js +85 -1
- package/package.json +1 -1
package/out/mock-public.d.ts
CHANGED
|
@@ -1154,11 +1154,13 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
|
|
|
1154
1154
|
plugins: boolean;
|
|
1155
1155
|
/**
|
|
1156
1156
|
* @defaultValue false
|
|
1157
|
+
*
|
|
1157
1158
|
* Enable spell check at the application level.
|
|
1158
1159
|
*/
|
|
1159
1160
|
spellCheck: boolean;
|
|
1160
1161
|
/**
|
|
1161
1162
|
* @defaultValue 'about:blank'
|
|
1163
|
+
*
|
|
1162
1164
|
* The url to the application (specifically the application's main window).
|
|
1163
1165
|
*/
|
|
1164
1166
|
url: string;
|
|
@@ -1184,26 +1186,26 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
|
|
|
1184
1186
|
/**
|
|
1185
1187
|
* @defaultValue 1000
|
|
1186
1188
|
*
|
|
1187
|
-
* Platforms Only
|
|
1189
|
+
* **Platforms Only.** The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
|
|
1188
1190
|
* If you do not wish for views to be pooled on your platform, set this property to zero.
|
|
1189
1191
|
*/
|
|
1190
1192
|
maxViewPoolSize: number;
|
|
1191
1193
|
/**
|
|
1192
|
-
* Platforms Only
|
|
1194
|
+
* **Platforms Only.** Default window options apply to all platform windows.
|
|
1193
1195
|
*/
|
|
1194
|
-
defaultWindowOptions: Partial<
|
|
1196
|
+
defaultWindowOptions: Partial<PlatformWindowOptions>;
|
|
1195
1197
|
/**
|
|
1196
|
-
* Platforms Only
|
|
1198
|
+
* **Platforms Only.** Default view options apply to all platform views.
|
|
1197
1199
|
*/
|
|
1198
1200
|
defaultViewOptions: Partial<ViewOptions>;
|
|
1199
1201
|
/**
|
|
1200
|
-
* Platforms Only
|
|
1202
|
+
* **Platforms Only.** The snapshot to be applied.
|
|
1201
1203
|
*/
|
|
1202
1204
|
snapshot: Snapshot;
|
|
1203
1205
|
/**
|
|
1204
1206
|
* @defaultValue false
|
|
1205
1207
|
*
|
|
1206
|
-
* Platforms Only
|
|
1208
|
+
* **Platforms Only.** Prevent the Platform Provider from quitting automatically when the last Platform Window is closed.
|
|
1207
1209
|
* Note: if the Platform Provider is showing, it won't close automatically.
|
|
1208
1210
|
* If you want a hidden Platform Provider to remain open after the last Platform Window has been closed, set this property to true.
|
|
1209
1211
|
*/
|
|
@@ -1292,7 +1294,7 @@ declare type ApplicationWindowInfo_2 = {
|
|
|
1292
1294
|
childWindows: Array<WindowDetail>;
|
|
1293
1295
|
mainWindow: WindowDetail;
|
|
1294
1296
|
/**
|
|
1295
|
-
*
|
|
1297
|
+
* The uuid of the application.
|
|
1296
1298
|
*/
|
|
1297
1299
|
uuid: string;
|
|
1298
1300
|
};
|
|
@@ -2666,7 +2668,7 @@ declare type ChildContentOpenedInBrowserEvent = ContentCreationRulesEvent & {
|
|
|
2666
2668
|
|
|
2667
2669
|
declare interface ChildContentOptions {
|
|
2668
2670
|
options: any;
|
|
2669
|
-
entityType:
|
|
2671
|
+
entityType: EntityType_3;
|
|
2670
2672
|
}
|
|
2671
2673
|
|
|
2672
2674
|
/**
|
|
@@ -2691,11 +2693,6 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
|
|
|
2691
2693
|
* The options the child Window was created with.
|
|
2692
2694
|
*/
|
|
2693
2695
|
childOptions: OpenFin_2.WindowOptions;
|
|
2694
|
-
/**
|
|
2695
|
-
* On `child-window-created` rule may be undefined.
|
|
2696
|
-
* It is only defined if the rules engine found a match for a user-supplied rule, not in the case of an api call or the default behavior.
|
|
2697
|
-
*/
|
|
2698
|
-
rule?: OpenFin_2.ContentCreationRule;
|
|
2699
2696
|
};
|
|
2700
2697
|
|
|
2701
2698
|
declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
@@ -2786,7 +2783,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
|
|
|
2786
2783
|
/**
|
|
2787
2784
|
* Indicates if the client belongs to a Window, View or IFrame
|
|
2788
2785
|
*/
|
|
2789
|
-
entityType:
|
|
2786
|
+
entityType: EntityType_4;
|
|
2790
2787
|
/**
|
|
2791
2788
|
* URL of the Window, View or IFrame at the time of connection to the Channel Provider.
|
|
2792
2789
|
*/
|
|
@@ -3407,7 +3404,8 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
|
3407
3404
|
*/
|
|
3408
3405
|
frameName: string;
|
|
3409
3406
|
/**
|
|
3410
|
-
* The rule which triggered this event. May be undefined on `child-window-created` where no rule corresponds to the child Window creation
|
|
3407
|
+
* The rule which triggered this event. May be undefined on `child-window-created` where no rule corresponds to the child Window creation.
|
|
3408
|
+
* <br>Note: It is only defined if the rules engine found a match for a user-supplied rule, not in the case of an api call or the default behavior.
|
|
3411
3409
|
*/
|
|
3412
3410
|
rule: OpenFin_2.ContentCreationRule;
|
|
3413
3411
|
/**
|
|
@@ -3466,8 +3464,6 @@ declare type ContextForIntent<MetadataType = any> = Context & {
|
|
|
3466
3464
|
|
|
3467
3465
|
/**
|
|
3468
3466
|
* Information for a Context Group. Contains metadata for displaying the group properly.
|
|
3469
|
-
*/
|
|
3470
|
-
/**
|
|
3471
3467
|
* @interface
|
|
3472
3468
|
*/
|
|
3473
3469
|
declare type ContextGroupInfo = {
|
|
@@ -3966,7 +3962,7 @@ declare type EntityInfo = OpenFin_2.EntityInfo;
|
|
|
3966
3962
|
declare type EntityInfo_2 = {
|
|
3967
3963
|
uuid: string;
|
|
3968
3964
|
name: string;
|
|
3969
|
-
entityType:
|
|
3965
|
+
entityType: EntityType_4;
|
|
3970
3966
|
};
|
|
3971
3967
|
|
|
3972
3968
|
/**
|
|
@@ -3984,11 +3980,9 @@ declare type EntityType_2 = OpenFin_2.EntityType;
|
|
|
3984
3980
|
|
|
3985
3981
|
declare type EntityType_3 = OpenFin_2.EntityType;
|
|
3986
3982
|
|
|
3987
|
-
declare type EntityType_4 =
|
|
3983
|
+
declare type EntityType_4 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
|
|
3988
3984
|
|
|
3989
|
-
declare type
|
|
3990
|
-
|
|
3991
|
-
declare type EntityTypeHelpers<T extends EntityType_3> = T extends 'view' ? {
|
|
3985
|
+
declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
3992
3986
|
isView: true;
|
|
3993
3987
|
isWindow: false;
|
|
3994
3988
|
isExternal: false;
|
|
@@ -4026,7 +4020,7 @@ declare interface Environment {
|
|
|
4026
4020
|
createChildContent(options: ChildContentOptions): Promise<any>;
|
|
4027
4021
|
getWebWindow(identity: OpenFin_2.Identity): globalThis.Window;
|
|
4028
4022
|
getCurrentEntityIdentity(): OpenFin_2.EntityInfo;
|
|
4029
|
-
getCurrentEntityType():
|
|
4023
|
+
getCurrentEntityType(): EntityType_3;
|
|
4030
4024
|
raiseEvent(eventName: string, eventArgs: any): void;
|
|
4031
4025
|
childViews: boolean;
|
|
4032
4026
|
getUrl(): string;
|
|
@@ -4448,14 +4442,14 @@ declare type FileDownloadStartedEvent = FileDownloadEvent & {
|
|
|
4448
4442
|
state: 'started';
|
|
4449
4443
|
};
|
|
4450
4444
|
|
|
4451
|
-
declare type Fin<MeType extends
|
|
4445
|
+
declare type Fin<MeType extends EntityType_4 = 'window' | 'view'> = FinApi<MeType>;
|
|
4452
4446
|
|
|
4453
4447
|
export declare const fin: OpenFin_2.Fin<"window" | "view">;
|
|
4454
4448
|
|
|
4455
4449
|
/**
|
|
4456
4450
|
* Type of the global `fin` entry point for the OpenFin API.
|
|
4457
4451
|
*/
|
|
4458
|
-
declare interface FinApi<MeType extends EntityType> {
|
|
4452
|
+
declare interface FinApi<MeType extends OpenFin_2.EntityType> {
|
|
4459
4453
|
readonly System: System;
|
|
4460
4454
|
readonly Window: _WindowModule;
|
|
4461
4455
|
readonly Application: ApplicationModule;
|
|
@@ -4734,7 +4728,7 @@ declare type FrameInfo = {
|
|
|
4734
4728
|
name: string;
|
|
4735
4729
|
uuid: string;
|
|
4736
4730
|
url: string;
|
|
4737
|
-
entityType:
|
|
4731
|
+
entityType: EntityType_4;
|
|
4738
4732
|
parent: Identity_5;
|
|
4739
4733
|
};
|
|
4740
4734
|
|
|
@@ -4833,7 +4827,7 @@ declare type GetWindowContextPayload = {
|
|
|
4833
4827
|
/**
|
|
4834
4828
|
* Entity type of the target of the context update ('view' or 'window').
|
|
4835
4829
|
*/
|
|
4836
|
-
entityType:
|
|
4830
|
+
entityType: EntityType_4;
|
|
4837
4831
|
/**
|
|
4838
4832
|
* Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
|
|
4839
4833
|
*/
|
|
@@ -5218,8 +5212,6 @@ declare type IntentHandler = (intent: Intent) => void;
|
|
|
5218
5212
|
|
|
5219
5213
|
/**
|
|
5220
5214
|
* The type used to describe an intent within the platform.
|
|
5221
|
-
*/
|
|
5222
|
-
/**
|
|
5223
5215
|
* @interface
|
|
5224
5216
|
*/
|
|
5225
5217
|
declare type IntentMetadata<TargetType = any> = {
|
|
@@ -6528,8 +6520,6 @@ declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionE
|
|
|
6528
6520
|
|
|
6529
6521
|
/**
|
|
6530
6522
|
* Information relevant to the Interop Broker.
|
|
6531
|
-
*/
|
|
6532
|
-
/**
|
|
6533
6523
|
* @interface
|
|
6534
6524
|
*/
|
|
6535
6525
|
declare type InteropConfig = {
|
|
@@ -6642,7 +6632,7 @@ declare type JumpListTask = {
|
|
|
6642
6632
|
*/
|
|
6643
6633
|
description: string;
|
|
6644
6634
|
/**
|
|
6645
|
-
*
|
|
6635
|
+
* Deep link to a manifest, i.e: fins://path.to/manifest.json?$$param1=value1.
|
|
6646
6636
|
* See {@link https://developers.openfin.co/docs/deep-linking deep-linking} for more information.
|
|
6647
6637
|
*/
|
|
6648
6638
|
deepLink: string;
|
|
@@ -7587,7 +7577,7 @@ declare type MaximizedEvent = NamedEvent & {
|
|
|
7587
7577
|
* Useful for debugging in the devtools console, where this will intelligently type itself based
|
|
7588
7578
|
* on the context in which the devtools panel was opened.
|
|
7589
7579
|
*/
|
|
7590
|
-
declare type Me<MeType extends
|
|
7580
|
+
declare type Me<MeType extends EntityType_2> = OpenFin_2.EntityInfo & (MeType extends 'view' ? EntityTypeHelpers<'view'> & OpenFin_2.View & WithInterop : MeType extends 'window' ? EntityTypeHelpers<'window'> & OpenFin_2.Window & WithInterop : MeType extends 'iframe' ? EntityTypeHelpers<'iframe'> & OpenFin_2.Frame & WithInterop : MeType extends 'external connection' ? EntityTypeHelpers<'external connection'> & OpenFin_2.ExternalApplication & WithInterop : EntityTypeHelpers<MeType> & WithInterop) & {
|
|
7591
7581
|
isOpenFin: boolean;
|
|
7592
7582
|
};
|
|
7593
7583
|
|
|
@@ -7810,7 +7800,7 @@ declare type MutableViewOptions = {
|
|
|
7810
7800
|
/**
|
|
7811
7801
|
* @defaultValue false
|
|
7812
7802
|
*
|
|
7813
|
-
* Platforms Only
|
|
7803
|
+
* **Platforms Only.** If true, will hide and detach the View from the window for later use instead of closing,
|
|
7814
7804
|
* allowing the state of the View to be saved and the View to be immediately shown in a new Layout.
|
|
7815
7805
|
*/
|
|
7816
7806
|
detachOnClose: boolean;
|
|
@@ -7825,7 +7815,7 @@ declare type MutableViewOptions = {
|
|
|
7825
7815
|
/**
|
|
7826
7816
|
* @defaultValue false
|
|
7827
7817
|
*
|
|
7828
|
-
*
|
|
7818
|
+
* **Platforms Only.** If true, the tab of the view can't be dragged out of its host window.
|
|
7829
7819
|
*/
|
|
7830
7820
|
preventDragOut: boolean;
|
|
7831
7821
|
interop?: InteropConfig;
|
|
@@ -8059,7 +8049,7 @@ declare type MutableWindowOptions = {
|
|
|
8059
8049
|
/**
|
|
8060
8050
|
* @defaultValue false
|
|
8061
8051
|
*
|
|
8062
|
-
* Platforms Only
|
|
8052
|
+
* **Platforms Only.** If true, will show background images in the layout when the Views are hidden.
|
|
8063
8053
|
* This occurs when the window is resizing or a tab is being dragged within the layout.
|
|
8064
8054
|
*/
|
|
8065
8055
|
showBackgroundImages: boolean;
|
|
@@ -8201,7 +8191,7 @@ declare namespace OpenFin_2 {
|
|
|
8201
8191
|
ClientIdentityMultiRuntime,
|
|
8202
8192
|
ClientConnectionPayload,
|
|
8203
8193
|
EntityInfo_2 as EntityInfo,
|
|
8204
|
-
|
|
8194
|
+
EntityType_4 as EntityType,
|
|
8205
8195
|
Bounds,
|
|
8206
8196
|
WindowBounds,
|
|
8207
8197
|
Rectangle,
|
|
@@ -9335,14 +9325,6 @@ declare class PlatformModule extends Base {
|
|
|
9335
9325
|
* @interface
|
|
9336
9326
|
*/
|
|
9337
9327
|
declare type PlatformOptions = ApplicationCreationOptions & {
|
|
9338
|
-
/**
|
|
9339
|
-
* Default window options apply to all platform windows.
|
|
9340
|
-
*/
|
|
9341
|
-
defaultWindowOptions?: Partial<PlatformWindowOptions>;
|
|
9342
|
-
/**
|
|
9343
|
-
* Default view options apply to all platform views.
|
|
9344
|
-
*/
|
|
9345
|
-
defaultViewOptions?: Partial<PlatformViewCreationOptions>;
|
|
9346
9328
|
disableDefaultCommands?: boolean;
|
|
9347
9329
|
/**
|
|
9348
9330
|
* Strategy to assign views to process affinity by domain.
|
|
@@ -10051,11 +10033,10 @@ declare type Position = TransitionBase & {
|
|
|
10051
10033
|
* - {@link OpenFin.Window.setBounds}
|
|
10052
10034
|
* - {@link OpenFin.Window.resizeBy}
|
|
10053
10035
|
* - {@link OpenFin.Window.resizeTo}
|
|
10054
|
-
* @example
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
/**
|
|
10036
|
+
* @example
|
|
10037
|
+
* ```js
|
|
10038
|
+
* fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
|
|
10039
|
+
* ```
|
|
10059
10040
|
* @interface
|
|
10060
10041
|
*/
|
|
10061
10042
|
declare type PositioningOptions = {
|
|
@@ -10985,9 +10966,12 @@ declare type RuntimeDownloadOptions = {
|
|
|
10985
10966
|
*/
|
|
10986
10967
|
declare type RuntimeDownloadProgress = {
|
|
10987
10968
|
/**
|
|
10988
|
-
*
|
|
10969
|
+
* The downloaded bytes of the download item.
|
|
10989
10970
|
*/
|
|
10990
10971
|
downloadedBytes: number;
|
|
10972
|
+
/**
|
|
10973
|
+
* The total size in bytes of the file.
|
|
10974
|
+
*/
|
|
10991
10975
|
totalBytes: number;
|
|
10992
10976
|
};
|
|
10993
10977
|
|
|
@@ -11138,8 +11122,6 @@ declare type SessionChangedEvent = {
|
|
|
11138
11122
|
|
|
11139
11123
|
/**
|
|
11140
11124
|
* An instance of a SessionContextGroup
|
|
11141
|
-
*/
|
|
11142
|
-
/**
|
|
11143
11125
|
* @interface
|
|
11144
11126
|
*/
|
|
11145
11127
|
declare type SessionContextGroup = {
|
|
@@ -11179,7 +11161,7 @@ declare type SetWindowContextPayload = {
|
|
|
11179
11161
|
/**
|
|
11180
11162
|
* Entity type of the target of the context update ('view' or 'window').
|
|
11181
11163
|
*/
|
|
11182
|
-
entityType:
|
|
11164
|
+
entityType: EntityType_4;
|
|
11183
11165
|
/**
|
|
11184
11166
|
* Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
|
|
11185
11167
|
*/
|
|
@@ -11264,12 +11246,6 @@ declare type ShowPopupMenuOptions<Data extends unknown = unknown> = {
|
|
|
11264
11246
|
* @interface
|
|
11265
11247
|
*/
|
|
11266
11248
|
declare type ShowViewOnWindowResizeOptions = ViewVisibilityOption & {
|
|
11267
|
-
/**
|
|
11268
|
-
* @defaultValue false
|
|
11269
|
-
*
|
|
11270
|
-
* Enables showing Views when a Platform Window is being resized.
|
|
11271
|
-
*/
|
|
11272
|
-
enabled?: boolean;
|
|
11273
11249
|
/**
|
|
11274
11250
|
* @defaultValue 0
|
|
11275
11251
|
*
|
|
@@ -13314,7 +13290,7 @@ declare type TransitionOptions = {
|
|
|
13314
13290
|
tween?: tween;
|
|
13315
13291
|
};
|
|
13316
13292
|
|
|
13317
|
-
declare class Transport<MeType extends
|
|
13293
|
+
declare class Transport<MeType extends EntityType = EntityType> extends EventEmitter {
|
|
13318
13294
|
#private;
|
|
13319
13295
|
protected wireListeners: Map<number, {
|
|
13320
13296
|
resolve: Function;
|
|
@@ -14282,7 +14258,7 @@ declare type ViewVisibilityOption = {
|
|
|
14282
14258
|
/**
|
|
14283
14259
|
* @defaultValue false
|
|
14284
14260
|
*
|
|
14285
|
-
* Enables or disables showing views when the layout splitter or a tab is being dragged.
|
|
14261
|
+
* Enables or disables showing views when the layout splitter or a tab is being dragged or a Platform Window is being resized.
|
|
14286
14262
|
*/
|
|
14287
14263
|
enabled?: boolean;
|
|
14288
14264
|
};
|
|
@@ -14366,6 +14342,11 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14366
14342
|
* }
|
|
14367
14343
|
* console.log(await wnd.capturePage(options));
|
|
14368
14344
|
* ```
|
|
14345
|
+
*
|
|
14346
|
+
* @remarks
|
|
14347
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14348
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14349
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14369
14350
|
*/
|
|
14370
14351
|
capturePage(options?: OpenFin_2.CapturePageOptions): Promise<string>;
|
|
14371
14352
|
/**
|
|
@@ -14399,6 +14380,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14399
14380
|
*
|
|
14400
14381
|
* executeJavaScript(`console.log('Hello, Openfin')`).then(() => console.log('Javascript excuted')).catch(err => console.log(err));
|
|
14401
14382
|
* ```
|
|
14383
|
+
* @remarks
|
|
14384
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14385
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14386
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14402
14387
|
*/
|
|
14403
14388
|
executeJavaScript(code: string): Promise<void>;
|
|
14404
14389
|
/**
|
|
@@ -14434,6 +14419,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14434
14419
|
*
|
|
14435
14420
|
* getZoomLevel().then(zoomLevel => console.log(zoomLevel)).catch(err => console.log(err));
|
|
14436
14421
|
* ```
|
|
14422
|
+
* @remarks
|
|
14423
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14424
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14425
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14437
14426
|
*/
|
|
14438
14427
|
getZoomLevel(): Promise<number>;
|
|
14439
14428
|
/**
|
|
@@ -14470,6 +14459,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14470
14459
|
*
|
|
14471
14460
|
* setZoomLevel(4).then(() => console.log('Setting a zoom level')).catch(err => console.log(err));
|
|
14472
14461
|
* ```
|
|
14462
|
+
* @remarks
|
|
14463
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14464
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14465
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14473
14466
|
*/
|
|
14474
14467
|
setZoomLevel(level: number): Promise<void>;
|
|
14475
14468
|
/**
|
|
@@ -14505,6 +14498,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14505
14498
|
* navigate().then(() => console.log('Navigate to tutorial')).catch(err => console.log(err));
|
|
14506
14499
|
* ```
|
|
14507
14500
|
* @experimental
|
|
14501
|
+
* @remarks
|
|
14502
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14503
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14504
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14508
14505
|
*/
|
|
14509
14506
|
navigate(url: string): Promise<void>;
|
|
14510
14507
|
/**
|
|
@@ -14530,6 +14527,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14530
14527
|
* }
|
|
14531
14528
|
* navigateBack().then(() => console.log('Navigated back')).catch(err => console.log(err));
|
|
14532
14529
|
* ```
|
|
14530
|
+
* @remarks
|
|
14531
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14532
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14533
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14533
14534
|
*/
|
|
14534
14535
|
navigateBack(): Promise<void>;
|
|
14535
14536
|
/**
|
|
@@ -14557,6 +14558,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14557
14558
|
* }
|
|
14558
14559
|
* navigateForward().then(() => console.log('Navigated forward')).catch(err => console.log(err));
|
|
14559
14560
|
* ```
|
|
14561
|
+
* @remarks
|
|
14562
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14563
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14564
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14560
14565
|
*/
|
|
14561
14566
|
navigateForward(): Promise<void>;
|
|
14562
14567
|
/**
|
|
@@ -14582,6 +14587,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14582
14587
|
* }
|
|
14583
14588
|
* stopNavigation().then(() => console.log('you shall not navigate')).catch(err => console.log(err));
|
|
14584
14589
|
* ```
|
|
14590
|
+
* @remarks
|
|
14591
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14592
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14593
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14585
14594
|
*/
|
|
14586
14595
|
stopNavigation(): Promise<void>;
|
|
14587
14596
|
/**
|
|
@@ -14617,6 +14626,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14617
14626
|
* console.log('Reloaded window')
|
|
14618
14627
|
* }).catch(err => console.log(err));
|
|
14619
14628
|
* ```
|
|
14629
|
+
* @remarks
|
|
14630
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14631
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14632
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14620
14633
|
*/
|
|
14621
14634
|
reload(ignoreCache?: boolean): Promise<void>;
|
|
14622
14635
|
/**
|
|
@@ -14636,6 +14649,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14636
14649
|
* console.log('print call has been sent to the system');
|
|
14637
14650
|
* });
|
|
14638
14651
|
* ```
|
|
14652
|
+
* @remarks
|
|
14653
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14654
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14655
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14639
14656
|
*/
|
|
14640
14657
|
print(options?: OpenFin_2.PrintOptions): Promise<void>;
|
|
14641
14658
|
/**
|
|
@@ -14678,6 +14695,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14678
14695
|
* console.log(result)
|
|
14679
14696
|
* });
|
|
14680
14697
|
* ```
|
|
14698
|
+
* @remarks
|
|
14699
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14700
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14701
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14681
14702
|
*/
|
|
14682
14703
|
findInPage(searchTerm: string, options?: OpenFin_2.FindInPageOptions): Promise<void>;
|
|
14683
14704
|
/**
|
|
@@ -14717,6 +14738,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14717
14738
|
* console.log(results);
|
|
14718
14739
|
* });
|
|
14719
14740
|
* ```
|
|
14741
|
+
* @remarks
|
|
14742
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14743
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14744
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14720
14745
|
*/
|
|
14721
14746
|
stopFindInPage(action: string): Promise<void>;
|
|
14722
14747
|
/**
|
|
@@ -14757,6 +14782,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14757
14782
|
* console.log(err);
|
|
14758
14783
|
* });
|
|
14759
14784
|
* ```
|
|
14785
|
+
* @remarks
|
|
14786
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14787
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14788
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14760
14789
|
*/
|
|
14761
14790
|
getPrinters(): Promise<OpenFin_2.PrinterInfo>;
|
|
14762
14791
|
/**
|
|
@@ -14777,6 +14806,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14777
14806
|
*
|
|
14778
14807
|
* focusWindow().then(() => console.log('Window focused')).catch(err => console.log(err));
|
|
14779
14808
|
* ```
|
|
14809
|
+
* @remarks
|
|
14810
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14811
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14812
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14780
14813
|
*/
|
|
14781
14814
|
focus({ emitSynthFocused }?: {
|
|
14782
14815
|
emitSynthFocused: boolean;
|
|
@@ -14808,6 +14841,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14808
14841
|
* .then(() => console.log('Showing dev tools'))
|
|
14809
14842
|
* .catch(err => console.error(err));
|
|
14810
14843
|
* ```
|
|
14844
|
+
* @remarks
|
|
14845
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14846
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14847
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14811
14848
|
*/
|
|
14812
14849
|
showDeveloperTools(): Promise<void>;
|
|
14813
14850
|
/**
|
|
@@ -14827,6 +14864,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14827
14864
|
* const win = await fin.Window.getCurrent();
|
|
14828
14865
|
* const processInfo = await win.getProcessInfo();
|
|
14829
14866
|
* ```
|
|
14867
|
+
* @remarks
|
|
14868
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14869
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14870
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14830
14871
|
*/
|
|
14831
14872
|
getProcessInfo(): Promise<OpenFin_2.EntityProcessDetails>;
|
|
14832
14873
|
/**
|
|
@@ -14859,6 +14900,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14859
14900
|
* const win = await fin.Window.create(winOption);
|
|
14860
14901
|
* const sharedWorkers = await win.getSharedWorkers();
|
|
14861
14902
|
* ```
|
|
14903
|
+
* @remarks
|
|
14904
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14905
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14906
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14862
14907
|
*/
|
|
14863
14908
|
getSharedWorkers(): Promise<OpenFin_2.SharedWorkerInfo[]>;
|
|
14864
14909
|
/**
|
|
@@ -14891,6 +14936,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14891
14936
|
* const win = await fin.Window.create(winOption);
|
|
14892
14937
|
* await win.inspectSharedWorker();
|
|
14893
14938
|
* ```
|
|
14939
|
+
* @remarks
|
|
14940
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14941
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14942
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14894
14943
|
*/
|
|
14895
14944
|
inspectSharedWorker(): Promise<void>;
|
|
14896
14945
|
/**
|
|
@@ -14926,6 +14975,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14926
14975
|
* const sharedWorkers = await win.getSharedWorkers();
|
|
14927
14976
|
* await win.inspectSharedWorkerById(sharedWorkers[0].id);
|
|
14928
14977
|
* ```
|
|
14978
|
+
* @remarks
|
|
14979
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
14980
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
14981
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14929
14982
|
*/
|
|
14930
14983
|
inspectSharedWorkerById(workerId: string): Promise<void>;
|
|
14931
14984
|
/**
|
|
@@ -14958,6 +15011,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14958
15011
|
* const win = await fin.Window.create(winOption);
|
|
14959
15012
|
* await win.inspectServiceWorker();
|
|
14960
15013
|
* ```
|
|
15014
|
+
* @remarks
|
|
15015
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
15016
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
15017
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
14961
15018
|
*/
|
|
14962
15019
|
inspectServiceWorker(): Promise<void>;
|
|
14963
15020
|
/**
|
|
@@ -15166,6 +15223,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
15166
15223
|
* onPopupReady: popupWindowCallback;
|
|
15167
15224
|
* });
|
|
15168
15225
|
* ```
|
|
15226
|
+
* @remarks
|
|
15227
|
+
* `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
|
|
15228
|
+
* We do not expose an explicit superclass for this functionality, but it does have its own
|
|
15229
|
+
* {@link OpenFin.WebContentsEvents event namespace}.
|
|
15169
15230
|
*/
|
|
15170
15231
|
showPopupWindow(options: OpenFin_2.PopupOptions): Promise<OpenFin_2.PopupResult>;
|
|
15171
15232
|
}
|
|
@@ -15774,7 +15835,6 @@ declare type WillResizeEvent = WillMoveOrResizeEvent & {
|
|
|
15774
15835
|
* It has the ability to listen for {@link OpenFin.WindowEvents window specific events}.
|
|
15775
15836
|
*/
|
|
15776
15837
|
declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
15777
|
-
identity: OpenFin_2.Identity;
|
|
15778
15838
|
/* Excluded from this release type: __constructor */
|
|
15779
15839
|
/* Excluded from this release type: createWindow */
|
|
15780
15840
|
/**
|