@openfin/core 34.78.12 → 34.78.14
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 +330 -70
- package/out/mock-beta.d.ts +330 -70
- package/out/mock-public.d.ts +330 -70
- package/out/mock.d.ts +330 -70
- package/out/mock.js +100 -2
- package/package.json +1 -1
package/out/mock-beta.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;
|
|
@@ -1175,35 +1177,66 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
|
|
|
1175
1177
|
* When set to `false` it will disable the same-origin policy for the app.
|
|
1176
1178
|
*/
|
|
1177
1179
|
webSecurity: boolean;
|
|
1180
|
+
/**
|
|
1181
|
+
* Configuration for keyboard commands.
|
|
1182
|
+
* For details and usage, see {@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands Using Keyboard Commands}.
|
|
1183
|
+
*/
|
|
1178
1184
|
commands: ShortcutOverride[];
|
|
1179
1185
|
isPlatformController: boolean;
|
|
1180
1186
|
/**
|
|
1181
1187
|
* @defaultValue 1000
|
|
1182
1188
|
*
|
|
1183
|
-
* Platforms Only
|
|
1189
|
+
* **Platforms Only.** The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
|
|
1184
1190
|
* If you do not wish for views to be pooled on your platform, set this property to zero.
|
|
1185
1191
|
*/
|
|
1186
1192
|
maxViewPoolSize: number;
|
|
1187
|
-
|
|
1193
|
+
/**
|
|
1194
|
+
* **Platforms Only.** Default window options apply to all platform windows.
|
|
1195
|
+
*/
|
|
1196
|
+
defaultWindowOptions: Partial<PlatformWindowOptions>;
|
|
1197
|
+
/**
|
|
1198
|
+
* **Platforms Only.** Default view options apply to all platform views.
|
|
1199
|
+
*/
|
|
1188
1200
|
defaultViewOptions: Partial<ViewOptions>;
|
|
1201
|
+
/**
|
|
1202
|
+
* **Platforms Only.** The snapshot to be applied.
|
|
1203
|
+
*/
|
|
1189
1204
|
snapshot: Snapshot;
|
|
1190
1205
|
/**
|
|
1191
1206
|
* @defaultValue false
|
|
1192
1207
|
*
|
|
1193
|
-
* Platforms Only
|
|
1208
|
+
* **Platforms Only.** Prevent the Platform Provider from quitting automatically when the last Platform Window is closed.
|
|
1194
1209
|
* Note: if the Platform Provider is showing, it won't close automatically.
|
|
1195
1210
|
* If you want a hidden Platform Provider to remain open after the last Platform Window has been closed, set this property to true.
|
|
1196
1211
|
*/
|
|
1197
1212
|
preventQuitOnLastWindowClosed: boolean;
|
|
1213
|
+
/**
|
|
1214
|
+
* Configuration for interop broker.
|
|
1215
|
+
*/
|
|
1198
1216
|
interopBrokerConfiguration: InteropBrokerOptions;
|
|
1217
|
+
/**
|
|
1218
|
+
* @defaultValue true
|
|
1219
|
+
*
|
|
1220
|
+
* When set to `false` it will disable OpenFin Diagnostics for the app.
|
|
1221
|
+
*/
|
|
1199
1222
|
apiDiagnostics: boolean;
|
|
1223
|
+
/**
|
|
1224
|
+
* Define the file download rules.
|
|
1225
|
+
* See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
|
|
1226
|
+
*/
|
|
1200
1227
|
defaultDomainSettings: DefaultDomainSettings;
|
|
1201
1228
|
/**
|
|
1202
1229
|
* @defaultValue false
|
|
1230
|
+
*
|
|
1203
1231
|
* Enables the use of the Jumplists API and the 'pin to taskbar' functionality.
|
|
1204
1232
|
* Only relevant in Windows.
|
|
1205
1233
|
*/
|
|
1206
1234
|
enableJumpList: boolean;
|
|
1235
|
+
/**
|
|
1236
|
+
* @defaultValue false
|
|
1237
|
+
*
|
|
1238
|
+
* When set to `true`, any `beforeunload` handler set on the app will fire.
|
|
1239
|
+
*/
|
|
1207
1240
|
enableBeforeUnload: boolean;
|
|
1208
1241
|
};
|
|
1209
1242
|
|
|
@@ -1261,7 +1294,7 @@ declare type ApplicationWindowInfo_2 = {
|
|
|
1261
1294
|
childWindows: Array<WindowDetail>;
|
|
1262
1295
|
mainWindow: WindowDetail;
|
|
1263
1296
|
/**
|
|
1264
|
-
*
|
|
1297
|
+
* The uuid of the application.
|
|
1265
1298
|
*/
|
|
1266
1299
|
uuid: string;
|
|
1267
1300
|
};
|
|
@@ -1301,7 +1334,7 @@ declare type ApplySnapshotOptions = {
|
|
|
1301
1334
|
*/
|
|
1302
1335
|
declare type ApplySnapshotPayload = {
|
|
1303
1336
|
/**
|
|
1304
|
-
*
|
|
1337
|
+
* The snapshot to be applied.
|
|
1305
1338
|
*/
|
|
1306
1339
|
snapshot: Snapshot;
|
|
1307
1340
|
/**
|
|
@@ -1523,6 +1556,13 @@ declare class Base {
|
|
|
1523
1556
|
/* Excluded from this release type: wire */
|
|
1524
1557
|
/* Excluded from this release type: __constructor */
|
|
1525
1558
|
protected get fin(): OpenFin_2.Fin<OpenFin_2.EntityType>;
|
|
1559
|
+
/**
|
|
1560
|
+
* Provides access to the OpenFin representation of the current code context (usually a document
|
|
1561
|
+
* such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
|
|
1562
|
+
*
|
|
1563
|
+
* Useful for debugging in the devtools console, where this will intelligently type itself based
|
|
1564
|
+
* on the context in which the devtools panel was opened.
|
|
1565
|
+
*/
|
|
1526
1566
|
get me(): Identity;
|
|
1527
1567
|
protected isNodeEnvironment: () => boolean;
|
|
1528
1568
|
protected isOpenFinEnvironment: () => boolean;
|
|
@@ -2628,7 +2668,7 @@ declare type ChildContentOpenedInBrowserEvent = ContentCreationRulesEvent & {
|
|
|
2628
2668
|
|
|
2629
2669
|
declare interface ChildContentOptions {
|
|
2630
2670
|
options: any;
|
|
2631
|
-
entityType:
|
|
2671
|
+
entityType: EntityType_3;
|
|
2632
2672
|
}
|
|
2633
2673
|
|
|
2634
2674
|
/**
|
|
@@ -2653,11 +2693,6 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
|
|
|
2653
2693
|
* The options the child Window was created with.
|
|
2654
2694
|
*/
|
|
2655
2695
|
childOptions: OpenFin_2.WindowOptions;
|
|
2656
|
-
/**
|
|
2657
|
-
* On `child-window-created` rule may be undefined.
|
|
2658
|
-
* 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.
|
|
2659
|
-
*/
|
|
2660
|
-
rule?: OpenFin_2.ContentCreationRule;
|
|
2661
2696
|
};
|
|
2662
2697
|
|
|
2663
2698
|
declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
@@ -2704,11 +2739,16 @@ declare type ClearCacheOption = {
|
|
|
2704
2739
|
};
|
|
2705
2740
|
|
|
2706
2741
|
/**
|
|
2742
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
2743
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
2744
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
2745
|
+
* these with a "reducer" pattern.
|
|
2746
|
+
*
|
|
2707
2747
|
* @interface
|
|
2708
2748
|
*/
|
|
2709
|
-
declare type ClickedMenuResult<
|
|
2749
|
+
declare type ClickedMenuResult<Data extends unknown = unknown> = {
|
|
2710
2750
|
result: 'clicked';
|
|
2711
|
-
data:
|
|
2751
|
+
data: Data;
|
|
2712
2752
|
};
|
|
2713
2753
|
|
|
2714
2754
|
/**
|
|
@@ -2717,7 +2757,7 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
|
|
|
2717
2757
|
declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
|
|
2718
2758
|
|
|
2719
2759
|
/**
|
|
2720
|
-
* Identity of a channel client
|
|
2760
|
+
* Identity of a channel client. Includes endpointId to differentiate between different connections for an entity.
|
|
2721
2761
|
* @interface
|
|
2722
2762
|
*/
|
|
2723
2763
|
declare type ClientIdentity = Identity_5 & {
|
|
@@ -2743,7 +2783,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
|
|
|
2743
2783
|
/**
|
|
2744
2784
|
* Indicates if the client belongs to a Window, View or IFrame
|
|
2745
2785
|
*/
|
|
2746
|
-
entityType:
|
|
2786
|
+
entityType: EntityType_4;
|
|
2747
2787
|
/**
|
|
2748
2788
|
* URL of the Window, View or IFrame at the time of connection to the Channel Provider.
|
|
2749
2789
|
*/
|
|
@@ -3087,6 +3127,11 @@ declare type ConstViewOptions = {
|
|
|
3087
3127
|
zoomLevel: number;
|
|
3088
3128
|
experimental: any;
|
|
3089
3129
|
fdc3InteropApi?: string;
|
|
3130
|
+
/**
|
|
3131
|
+
* @defaultValue false
|
|
3132
|
+
*
|
|
3133
|
+
* When set to `true`, any `beforeunload` handler set on Views will fire.
|
|
3134
|
+
*/
|
|
3090
3135
|
enableBeforeUnload: boolean;
|
|
3091
3136
|
/**
|
|
3092
3137
|
* Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
|
|
@@ -3319,15 +3364,12 @@ declare type ContentCreationOptions = {
|
|
|
3319
3364
|
* A rule for creating content in OpenFin; maps a content type to the way in which
|
|
3320
3365
|
* newly-opened content of that type will be handled.
|
|
3321
3366
|
*
|
|
3322
|
-
* @property { string } behavior 'view' | 'window' | 'browser' | 'block'
|
|
3323
|
-
* @property { string[] } match List of [match patterns](https://developer.chrome.com/extensions/match_patterns).
|
|
3324
|
-
* @property { object } options Window creation options or View creation options.
|
|
3325
3367
|
*
|
|
3326
3368
|
* @interface
|
|
3327
3369
|
*/
|
|
3328
3370
|
declare type ContentCreationRule<T = ContentCreationBehaviorNames> = {
|
|
3329
3371
|
/**
|
|
3330
|
-
* Behavior to use when opening matched content.
|
|
3372
|
+
* Behavior to use when opening matched content. The value could be 'view' | 'window' | 'browser' | 'block'.
|
|
3331
3373
|
*/
|
|
3332
3374
|
behavior: T;
|
|
3333
3375
|
/**
|
|
@@ -3362,7 +3404,8 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
|
3362
3404
|
*/
|
|
3363
3405
|
frameName: string;
|
|
3364
3406
|
/**
|
|
3365
|
-
* 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.
|
|
3366
3409
|
*/
|
|
3367
3410
|
rule: OpenFin_2.ContentCreationRule;
|
|
3368
3411
|
/**
|
|
@@ -3420,6 +3463,7 @@ declare type ContextForIntent<MetadataType = any> = Context & {
|
|
|
3420
3463
|
};
|
|
3421
3464
|
|
|
3422
3465
|
/**
|
|
3466
|
+
* Information for a Context Group. Contains metadata for displaying the group properly.
|
|
3423
3467
|
* @interface
|
|
3424
3468
|
*/
|
|
3425
3469
|
declare type ContextGroupInfo = {
|
|
@@ -3439,6 +3483,9 @@ declare type ContextGroupStates = {
|
|
|
3439
3483
|
};
|
|
3440
3484
|
};
|
|
3441
3485
|
|
|
3486
|
+
/**
|
|
3487
|
+
* Subscription function for addContextHandler.
|
|
3488
|
+
*/
|
|
3442
3489
|
declare type ContextHandler = (context: Context) => void;
|
|
3443
3490
|
|
|
3444
3491
|
/**
|
|
@@ -3915,7 +3962,7 @@ declare type EntityInfo = OpenFin_2.EntityInfo;
|
|
|
3915
3962
|
declare type EntityInfo_2 = {
|
|
3916
3963
|
uuid: string;
|
|
3917
3964
|
name: string;
|
|
3918
|
-
entityType:
|
|
3965
|
+
entityType: EntityType_4;
|
|
3919
3966
|
};
|
|
3920
3967
|
|
|
3921
3968
|
/**
|
|
@@ -3933,11 +3980,9 @@ declare type EntityType_2 = OpenFin_2.EntityType;
|
|
|
3933
3980
|
|
|
3934
3981
|
declare type EntityType_3 = OpenFin_2.EntityType;
|
|
3935
3982
|
|
|
3936
|
-
declare type EntityType_4 =
|
|
3937
|
-
|
|
3938
|
-
declare type EntityType_5 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
|
|
3983
|
+
declare type EntityType_4 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
|
|
3939
3984
|
|
|
3940
|
-
declare type EntityTypeHelpers<T extends
|
|
3985
|
+
declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
3941
3986
|
isView: true;
|
|
3942
3987
|
isWindow: false;
|
|
3943
3988
|
isExternal: false;
|
|
@@ -3975,7 +4020,7 @@ declare interface Environment {
|
|
|
3975
4020
|
createChildContent(options: ChildContentOptions): Promise<any>;
|
|
3976
4021
|
getWebWindow(identity: OpenFin_2.Identity): globalThis.Window;
|
|
3977
4022
|
getCurrentEntityIdentity(): OpenFin_2.EntityInfo;
|
|
3978
|
-
getCurrentEntityType():
|
|
4023
|
+
getCurrentEntityType(): EntityType_3;
|
|
3979
4024
|
raiseEvent(eventName: string, eventArgs: any): void;
|
|
3980
4025
|
childViews: boolean;
|
|
3981
4026
|
getUrl(): string;
|
|
@@ -4397,14 +4442,14 @@ declare type FileDownloadStartedEvent = FileDownloadEvent & {
|
|
|
4397
4442
|
state: 'started';
|
|
4398
4443
|
};
|
|
4399
4444
|
|
|
4400
|
-
declare type Fin<MeType extends
|
|
4445
|
+
declare type Fin<MeType extends EntityType_4 = 'window' | 'view'> = FinApi<MeType>;
|
|
4401
4446
|
|
|
4402
4447
|
export declare const fin: OpenFin_2.Fin<"window" | "view">;
|
|
4403
4448
|
|
|
4404
4449
|
/**
|
|
4405
4450
|
* Type of the global `fin` entry point for the OpenFin API.
|
|
4406
4451
|
*/
|
|
4407
|
-
declare interface FinApi<MeType extends EntityType> {
|
|
4452
|
+
declare interface FinApi<MeType extends OpenFin_2.EntityType> {
|
|
4408
4453
|
readonly System: System;
|
|
4409
4454
|
readonly Window: _WindowModule;
|
|
4410
4455
|
readonly Application: ApplicationModule;
|
|
@@ -4683,7 +4728,7 @@ declare type FrameInfo = {
|
|
|
4683
4728
|
name: string;
|
|
4684
4729
|
uuid: string;
|
|
4685
4730
|
url: string;
|
|
4686
|
-
entityType:
|
|
4731
|
+
entityType: EntityType_4;
|
|
4687
4732
|
parent: Identity_5;
|
|
4688
4733
|
};
|
|
4689
4734
|
|
|
@@ -4782,7 +4827,7 @@ declare type GetWindowContextPayload = {
|
|
|
4782
4827
|
/**
|
|
4783
4828
|
* Entity type of the target of the context update ('view' or 'window').
|
|
4784
4829
|
*/
|
|
4785
|
-
entityType:
|
|
4830
|
+
entityType: EntityType_4;
|
|
4786
4831
|
/**
|
|
4787
4832
|
* Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
|
|
4788
4833
|
*/
|
|
@@ -5160,9 +5205,13 @@ declare type Intent<MetadataType = IntentMetadata> = {
|
|
|
5160
5205
|
metadata?: MetadataType;
|
|
5161
5206
|
};
|
|
5162
5207
|
|
|
5208
|
+
/**
|
|
5209
|
+
* Subscription function for registerIntentHandler.
|
|
5210
|
+
*/
|
|
5163
5211
|
declare type IntentHandler = (intent: Intent) => void;
|
|
5164
5212
|
|
|
5165
5213
|
/**
|
|
5214
|
+
* The type used to describe an intent within the platform.
|
|
5166
5215
|
* @interface
|
|
5167
5216
|
*/
|
|
5168
5217
|
declare type IntentMetadata<TargetType = any> = {
|
|
@@ -6470,6 +6519,7 @@ declare class InteropClient extends Base {
|
|
|
6470
6519
|
declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionEvent: InteropBrokerDisconnectionEvent) => any;
|
|
6471
6520
|
|
|
6472
6521
|
/**
|
|
6522
|
+
* Information relevant to the Interop Broker.
|
|
6473
6523
|
* @interface
|
|
6474
6524
|
*/
|
|
6475
6525
|
declare type InteropConfig = {
|
|
@@ -6582,7 +6632,7 @@ declare type JumpListTask = {
|
|
|
6582
6632
|
*/
|
|
6583
6633
|
description: string;
|
|
6584
6634
|
/**
|
|
6585
|
-
*
|
|
6635
|
+
* Deep link to a manifest, i.e: fins://path.to/manifest.json?$$param1=value1.
|
|
6586
6636
|
* See {@link https://developers.openfin.co/docs/deep-linking deep-linking} for more information.
|
|
6587
6637
|
*/
|
|
6588
6638
|
deepLink: string;
|
|
@@ -6968,7 +7018,13 @@ declare type LayoutColumn = LayoutItemConfig & {
|
|
|
6968
7018
|
* @interface
|
|
6969
7019
|
*/
|
|
6970
7020
|
declare type LayoutComponent = LayoutItemConfig & {
|
|
7021
|
+
/**
|
|
7022
|
+
* Only a component type will have this property and it should be set to view.
|
|
7023
|
+
*/
|
|
6971
7024
|
componentName: 'view';
|
|
7025
|
+
/**
|
|
7026
|
+
* Only a component type will have this property and it represents the view options of a given component.
|
|
7027
|
+
*/
|
|
6972
7028
|
componentState?: Partial<ViewCreationOptions>;
|
|
6973
7029
|
};
|
|
6974
7030
|
|
|
@@ -7010,7 +7066,7 @@ declare type LayoutInitializedEvent = NamedEvent & {
|
|
|
7010
7066
|
};
|
|
7011
7067
|
|
|
7012
7068
|
/**
|
|
7013
|
-
* Represents the arrangement of Views within a Platform window's Layout.
|
|
7069
|
+
* Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
|
|
7014
7070
|
* to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
|
|
7015
7071
|
* {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
|
|
7016
7072
|
*
|
|
@@ -7279,6 +7335,11 @@ declare type LayoutOptions = {
|
|
|
7279
7335
|
* (not to be confused with close button on every tab).
|
|
7280
7336
|
*/
|
|
7281
7337
|
showCloseIcon?: boolean;
|
|
7338
|
+
/**
|
|
7339
|
+
* @defaultValue false
|
|
7340
|
+
*
|
|
7341
|
+
* Limits the area to which tabs can be dragged. If true, stack headers are the only areas where tabs can be dropped.
|
|
7342
|
+
*/
|
|
7282
7343
|
constrainDragToHeaders?: boolean;
|
|
7283
7344
|
/**
|
|
7284
7345
|
* @defaultValue true
|
|
@@ -7307,6 +7368,11 @@ declare type LayoutOptions = {
|
|
|
7307
7368
|
*/
|
|
7308
7369
|
preventDragIn?: boolean;
|
|
7309
7370
|
};
|
|
7371
|
+
/**
|
|
7372
|
+
* Content of the layout. There can only be one top-level LayoutItem in the content array.
|
|
7373
|
+
* We do not recommend trying to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
|
|
7374
|
+
* {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
|
|
7375
|
+
*/
|
|
7310
7376
|
content?: LayoutContent;
|
|
7311
7377
|
dimensions?: {
|
|
7312
7378
|
borderWidth?: number;
|
|
@@ -7471,6 +7537,9 @@ declare type ManifestInfo = {
|
|
|
7471
7537
|
* @interface
|
|
7472
7538
|
*/
|
|
7473
7539
|
declare type Margins = {
|
|
7540
|
+
/**
|
|
7541
|
+
* The margin type. If `custom` is chosen, you will also need to specify top, bottom, left, and right.
|
|
7542
|
+
*/
|
|
7474
7543
|
marginType?: 'default' | 'none' | 'printableArea' | 'custom';
|
|
7475
7544
|
/**
|
|
7476
7545
|
* The top margin of the printed webpage, in pixels.
|
|
@@ -7500,20 +7569,36 @@ declare type MaximizedEvent = NamedEvent & {
|
|
|
7500
7569
|
type: 'maximized';
|
|
7501
7570
|
};
|
|
7502
7571
|
|
|
7503
|
-
|
|
7572
|
+
/**
|
|
7573
|
+
* Type of the OpenFin `me` API handle, which provides access to the OpenFin representation of the current
|
|
7574
|
+
* code context (usually a document such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as
|
|
7575
|
+
* to the current `Interop` context.
|
|
7576
|
+
*
|
|
7577
|
+
* Useful for debugging in the devtools console, where this will intelligently type itself based
|
|
7578
|
+
* on the context in which the devtools panel was opened.
|
|
7579
|
+
*/
|
|
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) & {
|
|
7504
7581
|
isOpenFin: boolean;
|
|
7505
7582
|
};
|
|
7506
7583
|
|
|
7507
7584
|
/**
|
|
7508
7585
|
* @interface
|
|
7586
|
+
*
|
|
7587
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
7588
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
7589
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
7590
|
+
* these with a "reducer" pattern.
|
|
7509
7591
|
*/
|
|
7510
|
-
declare type MenuItemTemplate<
|
|
7592
|
+
declare type MenuItemTemplate<Data extends unknown = unknown> = {
|
|
7511
7593
|
/**
|
|
7512
7594
|
* Can be `normal`, `separator`, `submenu`, or `checkbox`.
|
|
7513
7595
|
* Defaults to 'normal' unless a 'submenu' key exists
|
|
7514
7596
|
*/
|
|
7515
7597
|
type?: 'normal' | 'separator' | 'submenu' | 'checkbox';
|
|
7516
7598
|
role?: 'cut' | 'copy' | 'paste' | 'toggleDevTools' | 'reload';
|
|
7599
|
+
/**
|
|
7600
|
+
* The text to show on the menu item. Should be left undefined for type: 'separator'
|
|
7601
|
+
*/
|
|
7517
7602
|
label?: string;
|
|
7518
7603
|
/**
|
|
7519
7604
|
* If false, the menu item will be greyed out and unclickable.
|
|
@@ -7531,18 +7616,26 @@ declare type MenuItemTemplate<T extends unknown = unknown> = {
|
|
|
7531
7616
|
* Should be specified for `submenu` type menu items. If `submenu` is specified,
|
|
7532
7617
|
* the `type: 'submenu'` can be omitted.
|
|
7533
7618
|
*/
|
|
7534
|
-
submenu?: MenuItemTemplate<
|
|
7619
|
+
submenu?: MenuItemTemplate<Data>[];
|
|
7535
7620
|
/**
|
|
7536
7621
|
* Data to be returned if the user selects the element. Must be serializable
|
|
7537
7622
|
*/
|
|
7538
|
-
data?:
|
|
7623
|
+
data?: Data;
|
|
7539
7624
|
/**
|
|
7540
7625
|
* Image Data URI with image dimensions inferred from the encoded string
|
|
7541
7626
|
*/
|
|
7542
7627
|
icon?: string;
|
|
7543
7628
|
};
|
|
7544
7629
|
|
|
7545
|
-
|
|
7630
|
+
/**
|
|
7631
|
+
* Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
|
|
7632
|
+
*
|
|
7633
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
7634
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
7635
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
7636
|
+
* these with a "reducer" pattern.
|
|
7637
|
+
*/
|
|
7638
|
+
declare type MenuResult<Data extends unknown = unknown> = ClickedMenuResult<Data> | ClosedMenuResult;
|
|
7546
7639
|
|
|
7547
7640
|
declare interface Message<T> {
|
|
7548
7641
|
action: string;
|
|
@@ -7707,7 +7800,7 @@ declare type MutableViewOptions = {
|
|
|
7707
7800
|
/**
|
|
7708
7801
|
* @defaultValue false
|
|
7709
7802
|
*
|
|
7710
|
-
* Platforms Only
|
|
7803
|
+
* **Platforms Only.** If true, will hide and detach the View from the window for later use instead of closing,
|
|
7711
7804
|
* allowing the state of the View to be saved and the View to be immediately shown in a new Layout.
|
|
7712
7805
|
*/
|
|
7713
7806
|
detachOnClose: boolean;
|
|
@@ -7722,7 +7815,7 @@ declare type MutableViewOptions = {
|
|
|
7722
7815
|
/**
|
|
7723
7816
|
* @defaultValue false
|
|
7724
7817
|
*
|
|
7725
|
-
*
|
|
7818
|
+
* **Platforms Only.** If true, the tab of the view can't be dragged out of its host window.
|
|
7726
7819
|
*/
|
|
7727
7820
|
preventDragOut: boolean;
|
|
7728
7821
|
interop?: InteropConfig;
|
|
@@ -7956,7 +8049,7 @@ declare type MutableWindowOptions = {
|
|
|
7956
8049
|
/**
|
|
7957
8050
|
* @defaultValue false
|
|
7958
8051
|
*
|
|
7959
|
-
* Platforms Only
|
|
8052
|
+
* **Platforms Only.** If true, will show background images in the layout when the Views are hidden.
|
|
7960
8053
|
* This occurs when the window is resizing or a tab is being dragged within the layout.
|
|
7961
8054
|
*/
|
|
7962
8055
|
showBackgroundImages: boolean;
|
|
@@ -8098,7 +8191,7 @@ declare namespace OpenFin_2 {
|
|
|
8098
8191
|
ClientIdentityMultiRuntime,
|
|
8099
8192
|
ClientConnectionPayload,
|
|
8100
8193
|
EntityInfo_2 as EntityInfo,
|
|
8101
|
-
|
|
8194
|
+
EntityType_4 as EntityType,
|
|
8102
8195
|
Bounds,
|
|
8103
8196
|
WindowBounds,
|
|
8104
8197
|
Rectangle,
|
|
@@ -9232,20 +9325,20 @@ declare class PlatformModule extends Base {
|
|
|
9232
9325
|
* @interface
|
|
9233
9326
|
*/
|
|
9234
9327
|
declare type PlatformOptions = ApplicationCreationOptions & {
|
|
9235
|
-
/**
|
|
9236
|
-
* Default window options apply to all platform windows.
|
|
9237
|
-
*/
|
|
9238
|
-
defaultWindowOptions?: Partial<PlatformWindowOptions>;
|
|
9239
|
-
/**
|
|
9240
|
-
* Default view options apply to all platform views.
|
|
9241
|
-
*/
|
|
9242
|
-
defaultViewOptions?: Partial<PlatformViewCreationOptions>;
|
|
9243
9328
|
disableDefaultCommands?: boolean;
|
|
9244
9329
|
/**
|
|
9245
9330
|
* Strategy to assign views to process affinity by domain.
|
|
9331
|
+
* * `same` - The views in the same domain will have same renderer processes.
|
|
9332
|
+
* * `different` - The views in the same domain will have their own renderer processes.
|
|
9246
9333
|
*/
|
|
9247
9334
|
viewProcessAffinityStrategy?: ProcessAffinityStrategy;
|
|
9335
|
+
/**
|
|
9336
|
+
* The provider url.
|
|
9337
|
+
*/
|
|
9248
9338
|
providerUrl?: string;
|
|
9339
|
+
/**
|
|
9340
|
+
* The permissions for secured APIs.
|
|
9341
|
+
*/
|
|
9249
9342
|
permissions?: Partial<Permissions_2>;
|
|
9250
9343
|
};
|
|
9251
9344
|
|
|
@@ -9940,11 +10033,10 @@ declare type Position = TransitionBase & {
|
|
|
9940
10033
|
* - {@link OpenFin.Window.setBounds}
|
|
9941
10034
|
* - {@link OpenFin.Window.resizeBy}
|
|
9942
10035
|
* - {@link OpenFin.Window.resizeTo}
|
|
9943
|
-
* @example
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
9947
|
-
/**
|
|
10036
|
+
* @example
|
|
10037
|
+
* ```js
|
|
10038
|
+
* fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
|
|
10039
|
+
* ```
|
|
9948
10040
|
* @interface
|
|
9949
10041
|
*/
|
|
9950
10042
|
declare type PositioningOptions = {
|
|
@@ -10042,9 +10134,21 @@ declare type PrinterInfo = OpenFin_2.PrinterInfo;
|
|
|
10042
10134
|
* @interface
|
|
10043
10135
|
*/
|
|
10044
10136
|
declare type PrinterInfo_2 = {
|
|
10137
|
+
/**
|
|
10138
|
+
* Printer Name
|
|
10139
|
+
*/
|
|
10045
10140
|
name: string;
|
|
10141
|
+
/**
|
|
10142
|
+
* Printer Description
|
|
10143
|
+
*/
|
|
10046
10144
|
description: string;
|
|
10145
|
+
/**
|
|
10146
|
+
* Printer Status
|
|
10147
|
+
*/
|
|
10047
10148
|
status: number;
|
|
10149
|
+
/**
|
|
10150
|
+
* Indicates that system's default printer.
|
|
10151
|
+
*/
|
|
10048
10152
|
isDefault: boolean;
|
|
10049
10153
|
};
|
|
10050
10154
|
|
|
@@ -10056,10 +10160,14 @@ declare type PrinterInfo_2 = {
|
|
|
10056
10160
|
declare type PrintOptions = {
|
|
10057
10161
|
content?: 'self';
|
|
10058
10162
|
/**
|
|
10163
|
+
* @defaultValue false
|
|
10164
|
+
*
|
|
10059
10165
|
* Disables prompting the user for print settings.
|
|
10060
10166
|
*/
|
|
10061
10167
|
silent?: boolean;
|
|
10062
10168
|
/**
|
|
10169
|
+
* @defaultValue false
|
|
10170
|
+
*
|
|
10063
10171
|
* Includes the webpage background color and image when printing.
|
|
10064
10172
|
*/
|
|
10065
10173
|
printBackground?: boolean;
|
|
@@ -10068,6 +10176,8 @@ declare type PrintOptions = {
|
|
|
10068
10176
|
*/
|
|
10069
10177
|
deviceName?: string;
|
|
10070
10178
|
/**
|
|
10179
|
+
* @defaultValue true
|
|
10180
|
+
*
|
|
10071
10181
|
* Prints in full color (greyscale otherwise).
|
|
10072
10182
|
*/
|
|
10073
10183
|
color?: boolean;
|
|
@@ -10076,6 +10186,8 @@ declare type PrintOptions = {
|
|
|
10076
10186
|
*/
|
|
10077
10187
|
margins?: Margins;
|
|
10078
10188
|
/**
|
|
10189
|
+
* @defaultValue true
|
|
10190
|
+
*
|
|
10079
10191
|
* Prints in landscape mode (portrait otherwise).
|
|
10080
10192
|
*/
|
|
10081
10193
|
landscape?: boolean;
|
|
@@ -10854,9 +10966,12 @@ declare type RuntimeDownloadOptions = {
|
|
|
10854
10966
|
*/
|
|
10855
10967
|
declare type RuntimeDownloadProgress = {
|
|
10856
10968
|
/**
|
|
10857
|
-
*
|
|
10969
|
+
* The downloaded bytes of the download item.
|
|
10858
10970
|
*/
|
|
10859
10971
|
downloadedBytes: number;
|
|
10972
|
+
/**
|
|
10973
|
+
* The total size in bytes of the file.
|
|
10974
|
+
*/
|
|
10860
10975
|
totalBytes: number;
|
|
10861
10976
|
};
|
|
10862
10977
|
|
|
@@ -11006,12 +11121,30 @@ declare type SessionChangedEvent = {
|
|
|
11006
11121
|
};
|
|
11007
11122
|
|
|
11008
11123
|
/**
|
|
11124
|
+
* An instance of a SessionContextGroup
|
|
11009
11125
|
* @interface
|
|
11010
11126
|
*/
|
|
11011
11127
|
declare type SessionContextGroup = {
|
|
11128
|
+
/**
|
|
11129
|
+
* The SessionContextGroup's id.
|
|
11130
|
+
*/
|
|
11012
11131
|
id: string;
|
|
11132
|
+
/**
|
|
11133
|
+
* A SessionContextGroup instance method for setting a context in the SessionContextGroup.
|
|
11134
|
+
* @param context The Context to be set.
|
|
11135
|
+
*/
|
|
11013
11136
|
setContext: (context: Context) => Promise<void>;
|
|
11137
|
+
/**
|
|
11138
|
+
* A SessionContextGroup instance method for getting the current context of a certain type.
|
|
11139
|
+
* @param type The Context Type to get. If not specified the last contextType set would get used.
|
|
11140
|
+
*/
|
|
11014
11141
|
getCurrentContext: (type?: string) => Promise<Context>;
|
|
11142
|
+
/**
|
|
11143
|
+
* A SessionContextGroup instance method for adding a handler for context change.
|
|
11144
|
+
* @param handler The callback to be invoked. Is invoked when (a) the context changes or (b) immediately after getting created if the context is already set.
|
|
11145
|
+
* @param contextType The context type this handler should listen to. If not specified, a global handler for all context types will get created. Only one global handler is allowed per SessionContextGroup.
|
|
11146
|
+
*
|
|
11147
|
+
*/
|
|
11015
11148
|
addContextHandler: (handler: ContextHandler, contextType?: string) => Promise<{
|
|
11016
11149
|
unsubscribe: () => void;
|
|
11017
11150
|
}>;
|
|
@@ -11028,7 +11161,7 @@ declare type SetWindowContextPayload = {
|
|
|
11028
11161
|
/**
|
|
11029
11162
|
* Entity type of the target of the context update ('view' or 'window').
|
|
11030
11163
|
*/
|
|
11031
|
-
entityType:
|
|
11164
|
+
entityType: EntityType_4;
|
|
11032
11165
|
/**
|
|
11033
11166
|
* Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
|
|
11034
11167
|
*/
|
|
@@ -11039,7 +11172,13 @@ declare type SetWindowContextPayload = {
|
|
|
11039
11172
|
* @interface
|
|
11040
11173
|
*/
|
|
11041
11174
|
declare type SharedWorkerInfo = {
|
|
11175
|
+
/**
|
|
11176
|
+
* The unique id of the shared worker.
|
|
11177
|
+
*/
|
|
11042
11178
|
id: string;
|
|
11179
|
+
/**
|
|
11180
|
+
* The url of the shared worker.
|
|
11181
|
+
*/
|
|
11043
11182
|
url: string;
|
|
11044
11183
|
};
|
|
11045
11184
|
|
|
@@ -11077,11 +11216,27 @@ declare type ShownEvent = BaseViewEvent & {
|
|
|
11077
11216
|
};
|
|
11078
11217
|
|
|
11079
11218
|
/**
|
|
11219
|
+
* Options for showing a popup menu
|
|
11220
|
+
*
|
|
11221
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
11222
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
11223
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
11224
|
+
* these with a "reducer" pattern.
|
|
11225
|
+
*
|
|
11080
11226
|
* @interface
|
|
11081
11227
|
*/
|
|
11082
|
-
declare type ShowPopupMenuOptions<
|
|
11083
|
-
|
|
11228
|
+
declare type ShowPopupMenuOptions<Data extends unknown = unknown> = {
|
|
11229
|
+
/**
|
|
11230
|
+
* An array describing the menu to show.
|
|
11231
|
+
*/
|
|
11232
|
+
template: MenuItemTemplate<Data>[];
|
|
11233
|
+
/**
|
|
11234
|
+
* The window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.
|
|
11235
|
+
*/
|
|
11084
11236
|
x?: number;
|
|
11237
|
+
/**
|
|
11238
|
+
* The window y coordinate where to show the menu. Defaults to mouse position. If using must also use x
|
|
11239
|
+
*/
|
|
11085
11240
|
y?: number;
|
|
11086
11241
|
};
|
|
11087
11242
|
|
|
@@ -11091,12 +11246,6 @@ declare type ShowPopupMenuOptions<T extends unknown = unknown> = {
|
|
|
11091
11246
|
* @interface
|
|
11092
11247
|
*/
|
|
11093
11248
|
declare type ShowViewOnWindowResizeOptions = ViewVisibilityOption & {
|
|
11094
|
-
/**
|
|
11095
|
-
* @defaultValue false
|
|
11096
|
-
*
|
|
11097
|
-
* Enables showing Views when a Platform Window is being resized.
|
|
11098
|
-
*/
|
|
11099
|
-
enabled?: boolean;
|
|
11100
11249
|
/**
|
|
11101
11250
|
* @defaultValue 0
|
|
11102
11251
|
*
|
|
@@ -11123,6 +11272,9 @@ declare type Size = TransitionBase & {
|
|
|
11123
11272
|
* @interface
|
|
11124
11273
|
*/
|
|
11125
11274
|
declare type Snapshot = {
|
|
11275
|
+
/**
|
|
11276
|
+
* The array of window options objects
|
|
11277
|
+
*/
|
|
11126
11278
|
windows: WindowCreationOptions[];
|
|
11127
11279
|
snapshotDetails?: {
|
|
11128
11280
|
monitorInfo: MonitorInfo;
|
|
@@ -13087,8 +13239,17 @@ declare type Time = {
|
|
|
13087
13239
|
* @interface
|
|
13088
13240
|
*/
|
|
13089
13241
|
declare type Transition = {
|
|
13242
|
+
/**
|
|
13243
|
+
* The Opacity transition
|
|
13244
|
+
*/
|
|
13090
13245
|
opacity?: Opacity;
|
|
13246
|
+
/**
|
|
13247
|
+
* The Position transition
|
|
13248
|
+
*/
|
|
13091
13249
|
position?: Position;
|
|
13250
|
+
/**
|
|
13251
|
+
* The Size transition
|
|
13252
|
+
*/
|
|
13092
13253
|
size?: Size;
|
|
13093
13254
|
};
|
|
13094
13255
|
|
|
@@ -13129,7 +13290,7 @@ declare type TransitionOptions = {
|
|
|
13129
13290
|
tween?: tween;
|
|
13130
13291
|
};
|
|
13131
13292
|
|
|
13132
|
-
declare class Transport<MeType extends
|
|
13293
|
+
declare class Transport<MeType extends EntityType = EntityType> extends EventEmitter {
|
|
13133
13294
|
#private;
|
|
13134
13295
|
protected wireListeners: Map<number, {
|
|
13135
13296
|
resolve: Function;
|
|
@@ -14094,6 +14255,11 @@ declare interface ViewStatuses {
|
|
|
14094
14255
|
* @interface
|
|
14095
14256
|
*/
|
|
14096
14257
|
declare type ViewVisibilityOption = {
|
|
14258
|
+
/**
|
|
14259
|
+
* @defaultValue false
|
|
14260
|
+
*
|
|
14261
|
+
* Enables or disables showing views when the layout splitter or a tab is being dragged or a Platform Window is being resized.
|
|
14262
|
+
*/
|
|
14097
14263
|
enabled?: boolean;
|
|
14098
14264
|
};
|
|
14099
14265
|
|
|
@@ -14123,8 +14289,12 @@ declare type WebContent = View_2 | _Window;
|
|
|
14123
14289
|
|
|
14124
14290
|
declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
14125
14291
|
identity: OpenFin_2.Identity;
|
|
14126
|
-
entityType:
|
|
14127
|
-
|
|
14292
|
+
entityType: 'window' | 'view';
|
|
14293
|
+
/**
|
|
14294
|
+
* @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
|
|
14295
|
+
* @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
|
|
14296
|
+
*/
|
|
14297
|
+
constructor(wire: Transport, identity: OpenFin_2.Identity, entityType: 'window' | 'view');
|
|
14128
14298
|
/**
|
|
14129
14299
|
* Gets a base64 encoded image of all or part of the WebContents.
|
|
14130
14300
|
* @param options Options for the capturePage call.
|
|
@@ -14172,6 +14342,11 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14172
14342
|
* }
|
|
14173
14343
|
* console.log(await wnd.capturePage(options));
|
|
14174
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}.
|
|
14175
14350
|
*/
|
|
14176
14351
|
capturePage(options?: OpenFin_2.CapturePageOptions): Promise<string>;
|
|
14177
14352
|
/**
|
|
@@ -14205,6 +14380,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14205
14380
|
*
|
|
14206
14381
|
* executeJavaScript(`console.log('Hello, Openfin')`).then(() => console.log('Javascript excuted')).catch(err => console.log(err));
|
|
14207
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}.
|
|
14208
14387
|
*/
|
|
14209
14388
|
executeJavaScript(code: string): Promise<void>;
|
|
14210
14389
|
/**
|
|
@@ -14240,6 +14419,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14240
14419
|
*
|
|
14241
14420
|
* getZoomLevel().then(zoomLevel => console.log(zoomLevel)).catch(err => console.log(err));
|
|
14242
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}.
|
|
14243
14426
|
*/
|
|
14244
14427
|
getZoomLevel(): Promise<number>;
|
|
14245
14428
|
/**
|
|
@@ -14276,6 +14459,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14276
14459
|
*
|
|
14277
14460
|
* setZoomLevel(4).then(() => console.log('Setting a zoom level')).catch(err => console.log(err));
|
|
14278
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}.
|
|
14279
14466
|
*/
|
|
14280
14467
|
setZoomLevel(level: number): Promise<void>;
|
|
14281
14468
|
/**
|
|
@@ -14311,6 +14498,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14311
14498
|
* navigate().then(() => console.log('Navigate to tutorial')).catch(err => console.log(err));
|
|
14312
14499
|
* ```
|
|
14313
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}.
|
|
14314
14505
|
*/
|
|
14315
14506
|
navigate(url: string): Promise<void>;
|
|
14316
14507
|
/**
|
|
@@ -14336,6 +14527,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14336
14527
|
* }
|
|
14337
14528
|
* navigateBack().then(() => console.log('Navigated back')).catch(err => console.log(err));
|
|
14338
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}.
|
|
14339
14534
|
*/
|
|
14340
14535
|
navigateBack(): Promise<void>;
|
|
14341
14536
|
/**
|
|
@@ -14363,6 +14558,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14363
14558
|
* }
|
|
14364
14559
|
* navigateForward().then(() => console.log('Navigated forward')).catch(err => console.log(err));
|
|
14365
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}.
|
|
14366
14565
|
*/
|
|
14367
14566
|
navigateForward(): Promise<void>;
|
|
14368
14567
|
/**
|
|
@@ -14388,6 +14587,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14388
14587
|
* }
|
|
14389
14588
|
* stopNavigation().then(() => console.log('you shall not navigate')).catch(err => console.log(err));
|
|
14390
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}.
|
|
14391
14594
|
*/
|
|
14392
14595
|
stopNavigation(): Promise<void>;
|
|
14393
14596
|
/**
|
|
@@ -14423,6 +14626,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14423
14626
|
* console.log('Reloaded window')
|
|
14424
14627
|
* }).catch(err => console.log(err));
|
|
14425
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}.
|
|
14426
14633
|
*/
|
|
14427
14634
|
reload(ignoreCache?: boolean): Promise<void>;
|
|
14428
14635
|
/**
|
|
@@ -14442,6 +14649,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14442
14649
|
* console.log('print call has been sent to the system');
|
|
14443
14650
|
* });
|
|
14444
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}.
|
|
14445
14656
|
*/
|
|
14446
14657
|
print(options?: OpenFin_2.PrintOptions): Promise<void>;
|
|
14447
14658
|
/**
|
|
@@ -14484,6 +14695,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14484
14695
|
* console.log(result)
|
|
14485
14696
|
* });
|
|
14486
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}.
|
|
14487
14702
|
*/
|
|
14488
14703
|
findInPage(searchTerm: string, options?: OpenFin_2.FindInPageOptions): Promise<void>;
|
|
14489
14704
|
/**
|
|
@@ -14523,6 +14738,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14523
14738
|
* console.log(results);
|
|
14524
14739
|
* });
|
|
14525
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}.
|
|
14526
14745
|
*/
|
|
14527
14746
|
stopFindInPage(action: string): Promise<void>;
|
|
14528
14747
|
/**
|
|
@@ -14563,6 +14782,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14563
14782
|
* console.log(err);
|
|
14564
14783
|
* });
|
|
14565
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}.
|
|
14566
14789
|
*/
|
|
14567
14790
|
getPrinters(): Promise<OpenFin_2.PrinterInfo>;
|
|
14568
14791
|
/**
|
|
@@ -14583,6 +14806,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14583
14806
|
*
|
|
14584
14807
|
* focusWindow().then(() => console.log('Window focused')).catch(err => console.log(err));
|
|
14585
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}.
|
|
14586
14813
|
*/
|
|
14587
14814
|
focus({ emitSynthFocused }?: {
|
|
14588
14815
|
emitSynthFocused: boolean;
|
|
@@ -14614,6 +14841,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14614
14841
|
* .then(() => console.log('Showing dev tools'))
|
|
14615
14842
|
* .catch(err => console.error(err));
|
|
14616
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}.
|
|
14617
14848
|
*/
|
|
14618
14849
|
showDeveloperTools(): Promise<void>;
|
|
14619
14850
|
/**
|
|
@@ -14633,6 +14864,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14633
14864
|
* const win = await fin.Window.getCurrent();
|
|
14634
14865
|
* const processInfo = await win.getProcessInfo();
|
|
14635
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}.
|
|
14636
14871
|
*/
|
|
14637
14872
|
getProcessInfo(): Promise<OpenFin_2.EntityProcessDetails>;
|
|
14638
14873
|
/**
|
|
@@ -14665,6 +14900,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14665
14900
|
* const win = await fin.Window.create(winOption);
|
|
14666
14901
|
* const sharedWorkers = await win.getSharedWorkers();
|
|
14667
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}.
|
|
14668
14907
|
*/
|
|
14669
14908
|
getSharedWorkers(): Promise<OpenFin_2.SharedWorkerInfo[]>;
|
|
14670
14909
|
/**
|
|
@@ -14697,6 +14936,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14697
14936
|
* const win = await fin.Window.create(winOption);
|
|
14698
14937
|
* await win.inspectSharedWorker();
|
|
14699
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}.
|
|
14700
14943
|
*/
|
|
14701
14944
|
inspectSharedWorker(): Promise<void>;
|
|
14702
14945
|
/**
|
|
@@ -14732,6 +14975,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14732
14975
|
* const sharedWorkers = await win.getSharedWorkers();
|
|
14733
14976
|
* await win.inspectSharedWorkerById(sharedWorkers[0].id);
|
|
14734
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}.
|
|
14735
14982
|
*/
|
|
14736
14983
|
inspectSharedWorkerById(workerId: string): Promise<void>;
|
|
14737
14984
|
/**
|
|
@@ -14764,6 +15011,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14764
15011
|
* const win = await fin.Window.create(winOption);
|
|
14765
15012
|
* await win.inspectServiceWorker();
|
|
14766
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}.
|
|
14767
15018
|
*/
|
|
14768
15019
|
inspectServiceWorker(): Promise<void>;
|
|
14769
15020
|
/**
|
|
@@ -14972,6 +15223,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14972
15223
|
* onPopupReady: popupWindowCallback;
|
|
14973
15224
|
* });
|
|
14974
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}.
|
|
14975
15230
|
*/
|
|
14976
15231
|
showPopupWindow(options: OpenFin_2.PopupOptions): Promise<OpenFin_2.PopupResult>;
|
|
14977
15232
|
}
|
|
@@ -15580,7 +15835,6 @@ declare type WillResizeEvent = WillMoveOrResizeEvent & {
|
|
|
15580
15835
|
* It has the ability to listen for {@link OpenFin.WindowEvents window specific events}.
|
|
15581
15836
|
*/
|
|
15582
15837
|
declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
15583
|
-
identity: OpenFin_2.Identity;
|
|
15584
15838
|
/* Excluded from this release type: __constructor */
|
|
15585
15839
|
/* Excluded from this release type: createWindow */
|
|
15586
15840
|
/**
|
|
@@ -16453,7 +16707,10 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16453
16707
|
* Calling this method will close previously opened menus.
|
|
16454
16708
|
* @experimental
|
|
16455
16709
|
* @param options
|
|
16456
|
-
*
|
|
16710
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
16711
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
16712
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
16713
|
+
* these with a "reducer" pattern.
|
|
16457
16714
|
* @example
|
|
16458
16715
|
* This could be used to show a drop down menu over views in a platform window:
|
|
16459
16716
|
* ```js
|
|
@@ -16520,7 +16777,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16520
16777
|
* })
|
|
16521
16778
|
* ```
|
|
16522
16779
|
*/
|
|
16523
|
-
showPopupMenu<
|
|
16780
|
+
showPopupMenu<Data>(options: OpenFin_2.ShowPopupMenuOptions<Data>): Promise<OpenFin_2.MenuResult<Data>>;
|
|
16524
16781
|
/**
|
|
16525
16782
|
* Closes the window's popup menu, if one exists.
|
|
16526
16783
|
* @experimental
|
|
@@ -17049,6 +17306,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17049
17306
|
* @interface
|
|
17050
17307
|
*/
|
|
17051
17308
|
declare type WriteAnyClipboardRequest = BaseClipboardRequest & {
|
|
17309
|
+
/**
|
|
17310
|
+
* Data to be written
|
|
17311
|
+
*/
|
|
17052
17312
|
data: {
|
|
17053
17313
|
text?: string;
|
|
17054
17314
|
html?: string;
|