@openfin/core 34.78.11 → 34.78.13
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 +725 -69
- package/out/mock-beta.d.ts +725 -69
- package/out/mock-public.d.ts +725 -69
- package/out/mock.d.ts +728 -65
- package/out/mock.js +49 -528
- package/package.json +4 -4
package/out/mock.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { EventEmitter } from 'events';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
|
|
10
|
+
*
|
|
11
|
+
* @interface
|
|
10
12
|
*/
|
|
11
13
|
declare type Accelerator = {
|
|
12
14
|
/**
|
|
@@ -43,6 +45,9 @@ declare type Accelerator = {
|
|
|
43
45
|
zoom: boolean;
|
|
44
46
|
};
|
|
45
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @interface
|
|
50
|
+
*/
|
|
46
51
|
declare type AddViewToStackOptions = {
|
|
47
52
|
/**
|
|
48
53
|
* Optional index within the stack to insert the view. Defaults to 0
|
|
@@ -66,6 +71,8 @@ declare type AnyStrategy = ClassicStrategy | RTCStrategy | CombinedStrategy<Payl
|
|
|
66
71
|
|
|
67
72
|
/**
|
|
68
73
|
* Configurations for API injection.
|
|
74
|
+
*
|
|
75
|
+
* @interface
|
|
69
76
|
*/
|
|
70
77
|
declare type Api = {
|
|
71
78
|
/**
|
|
@@ -93,6 +100,9 @@ declare type ApiClient<T extends Record<any, any>> = {
|
|
|
93
100
|
[key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
|
|
94
101
|
};
|
|
95
102
|
|
|
103
|
+
/**
|
|
104
|
+
* @interface
|
|
105
|
+
*/
|
|
96
106
|
declare type AppAssetInfo = {
|
|
97
107
|
/**
|
|
98
108
|
* The URL to a zip file containing the package files (executables, dlls, etc…)
|
|
@@ -121,6 +131,9 @@ declare type AppAssetInfo = {
|
|
|
121
131
|
mandatory?: boolean;
|
|
122
132
|
};
|
|
123
133
|
|
|
134
|
+
/**
|
|
135
|
+
* @interface
|
|
136
|
+
*/
|
|
124
137
|
declare type AppAssetRequest = {
|
|
125
138
|
alias: string;
|
|
126
139
|
};
|
|
@@ -897,10 +910,16 @@ declare type ApplicationEventType = ApplicationEvent['type'];
|
|
|
897
910
|
|
|
898
911
|
declare type ApplicationIdentity = OpenFin_2.ApplicationIdentity;
|
|
899
912
|
|
|
913
|
+
/**
|
|
914
|
+
* @interface
|
|
915
|
+
*/
|
|
900
916
|
declare type ApplicationIdentity_2 = {
|
|
901
917
|
uuid: string;
|
|
902
918
|
};
|
|
903
919
|
|
|
920
|
+
/**
|
|
921
|
+
* @interface
|
|
922
|
+
*/
|
|
904
923
|
declare type ApplicationInfo = {
|
|
905
924
|
initialOptions: ApplicationCreationOptions;
|
|
906
925
|
launchMode: string;
|
|
@@ -1162,17 +1181,30 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
|
|
|
1162
1181
|
* When set to `false` it will disable the same-origin policy for the app.
|
|
1163
1182
|
*/
|
|
1164
1183
|
webSecurity: boolean;
|
|
1184
|
+
/**
|
|
1185
|
+
* Configuration for keyboard commands.
|
|
1186
|
+
* For details and usage, see {@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands Using Keyboard Commands}.
|
|
1187
|
+
*/
|
|
1165
1188
|
commands: ShortcutOverride[];
|
|
1166
1189
|
isPlatformController: boolean;
|
|
1167
1190
|
/**
|
|
1168
1191
|
* @defaultValue 1000
|
|
1169
1192
|
*
|
|
1170
|
-
* Platforms Only.
|
|
1193
|
+
* Platforms Only. The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
|
|
1171
1194
|
* If you do not wish for views to be pooled on your platform, set this property to zero.
|
|
1172
1195
|
*/
|
|
1173
1196
|
maxViewPoolSize: number;
|
|
1197
|
+
/**
|
|
1198
|
+
* Platforms Only. Default window options apply to all platform windows.
|
|
1199
|
+
*/
|
|
1174
1200
|
defaultWindowOptions: Partial<WindowOptions>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Platforms Only. Default view options apply to all platform views.
|
|
1203
|
+
*/
|
|
1175
1204
|
defaultViewOptions: Partial<ViewOptions>;
|
|
1205
|
+
/**
|
|
1206
|
+
* Platforms Only. The snapshot to be applied.
|
|
1207
|
+
*/
|
|
1176
1208
|
snapshot: Snapshot;
|
|
1177
1209
|
/**
|
|
1178
1210
|
* @defaultValue false
|
|
@@ -1182,18 +1214,39 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
|
|
|
1182
1214
|
* If you want a hidden Platform Provider to remain open after the last Platform Window has been closed, set this property to true.
|
|
1183
1215
|
*/
|
|
1184
1216
|
preventQuitOnLastWindowClosed: boolean;
|
|
1217
|
+
/**
|
|
1218
|
+
* Configuration for interop broker.
|
|
1219
|
+
*/
|
|
1185
1220
|
interopBrokerConfiguration: InteropBrokerOptions;
|
|
1221
|
+
/**
|
|
1222
|
+
* @defaultValue true
|
|
1223
|
+
*
|
|
1224
|
+
* When set to `false` it will disable OpenFin Diagnostics for the app.
|
|
1225
|
+
*/
|
|
1186
1226
|
apiDiagnostics: boolean;
|
|
1227
|
+
/**
|
|
1228
|
+
* Define the file download rules.
|
|
1229
|
+
* See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
|
|
1230
|
+
*/
|
|
1187
1231
|
defaultDomainSettings: DefaultDomainSettings;
|
|
1188
1232
|
/**
|
|
1189
1233
|
* @defaultValue false
|
|
1234
|
+
*
|
|
1190
1235
|
* Enables the use of the Jumplists API and the 'pin to taskbar' functionality.
|
|
1191
1236
|
* Only relevant in Windows.
|
|
1192
1237
|
*/
|
|
1193
1238
|
enableJumpList: boolean;
|
|
1239
|
+
/**
|
|
1240
|
+
* @defaultValue false
|
|
1241
|
+
*
|
|
1242
|
+
* When set to `true`, any `beforeunload` handler set on the app will fire.
|
|
1243
|
+
*/
|
|
1194
1244
|
enableBeforeUnload: boolean;
|
|
1195
1245
|
};
|
|
1196
1246
|
|
|
1247
|
+
/**
|
|
1248
|
+
* @interface
|
|
1249
|
+
*/
|
|
1197
1250
|
declare type ApplicationPermissions = {
|
|
1198
1251
|
setFileDownloadLocation: boolean;
|
|
1199
1252
|
getFileDownloadLocation: boolean;
|
|
@@ -1201,6 +1254,9 @@ declare type ApplicationPermissions = {
|
|
|
1201
1254
|
|
|
1202
1255
|
declare type ApplicationState = OpenFin_2.ApplicationState;
|
|
1203
1256
|
|
|
1257
|
+
/**
|
|
1258
|
+
* @interface
|
|
1259
|
+
*/
|
|
1204
1260
|
declare type ApplicationState_2 = {
|
|
1205
1261
|
/**
|
|
1206
1262
|
* True when the application is a Platform controller
|
|
@@ -1220,6 +1276,9 @@ declare type ApplicationState_2 = {
|
|
|
1220
1276
|
parentUuid?: string;
|
|
1221
1277
|
};
|
|
1222
1278
|
|
|
1279
|
+
/**
|
|
1280
|
+
* @interface
|
|
1281
|
+
*/
|
|
1223
1282
|
declare type ApplicationType = {
|
|
1224
1283
|
type: 'application' | 'external-app';
|
|
1225
1284
|
uuid: string;
|
|
@@ -1232,6 +1291,9 @@ declare type ApplicationWindowEvent = WindowAlertRequestedEvent | WindowCreatedE
|
|
|
1232
1291
|
|
|
1233
1292
|
declare type ApplicationWindowInfo = OpenFin_2.ApplicationWindowInfo;
|
|
1234
1293
|
|
|
1294
|
+
/**
|
|
1295
|
+
* @interface
|
|
1296
|
+
*/
|
|
1235
1297
|
declare type ApplicationWindowInfo_2 = {
|
|
1236
1298
|
childWindows: Array<WindowDetail>;
|
|
1237
1299
|
mainWindow: WindowDetail;
|
|
@@ -1241,6 +1303,9 @@ declare type ApplicationWindowInfo_2 = {
|
|
|
1241
1303
|
uuid: string;
|
|
1242
1304
|
};
|
|
1243
1305
|
|
|
1306
|
+
/**
|
|
1307
|
+
* @interface
|
|
1308
|
+
*/
|
|
1244
1309
|
declare type ApplySnapshotOptions = {
|
|
1245
1310
|
/**
|
|
1246
1311
|
* @defaultValue false
|
|
@@ -1268,10 +1333,12 @@ declare type ApplySnapshotOptions = {
|
|
|
1268
1333
|
|
|
1269
1334
|
/**
|
|
1270
1335
|
* Payload sent to Platform Provider when {@link Platform#applySnapshot Platform.applySnapshot} is called.
|
|
1336
|
+
*
|
|
1337
|
+
* @interface
|
|
1271
1338
|
*/
|
|
1272
1339
|
declare type ApplySnapshotPayload = {
|
|
1273
1340
|
/**
|
|
1274
|
-
*
|
|
1341
|
+
* The snapshot to be applied.
|
|
1275
1342
|
*/
|
|
1276
1343
|
snapshot: Snapshot;
|
|
1277
1344
|
/**
|
|
@@ -1280,6 +1347,9 @@ declare type ApplySnapshotPayload = {
|
|
|
1280
1347
|
options?: ApplySnapshotOptions;
|
|
1281
1348
|
};
|
|
1282
1349
|
|
|
1350
|
+
/**
|
|
1351
|
+
* @interface
|
|
1352
|
+
*/
|
|
1283
1353
|
declare type AppProcessInfo = {
|
|
1284
1354
|
/**
|
|
1285
1355
|
* The uuid of the application.
|
|
@@ -1299,6 +1369,9 @@ declare type AppVersionCompleteEvent = {
|
|
|
1299
1369
|
type: 'app-version-complete';
|
|
1300
1370
|
} & AppVersionProgress;
|
|
1301
1371
|
|
|
1372
|
+
/**
|
|
1373
|
+
* @interface
|
|
1374
|
+
*/
|
|
1302
1375
|
declare type AppVersionError = {
|
|
1303
1376
|
error: string;
|
|
1304
1377
|
srcManifest: string;
|
|
@@ -1327,6 +1400,9 @@ declare type AppVersionEventType = AppVersionEvent['type'];
|
|
|
1327
1400
|
*/
|
|
1328
1401
|
declare type AppVersionEventWithId = EventWithId<AppVersionEvent>;
|
|
1329
1402
|
|
|
1403
|
+
/**
|
|
1404
|
+
* @interface
|
|
1405
|
+
*/
|
|
1330
1406
|
declare type AppVersionProgress = {
|
|
1331
1407
|
manifest: string | null;
|
|
1332
1408
|
srcManifest: string;
|
|
@@ -1340,6 +1416,9 @@ declare type AppVersionProgressEvent = {
|
|
|
1340
1416
|
type: 'app-version-progress';
|
|
1341
1417
|
} & AppVersionProgress;
|
|
1342
1418
|
|
|
1419
|
+
/**
|
|
1420
|
+
* @interface
|
|
1421
|
+
*/
|
|
1343
1422
|
declare type AppVersionRuntimeInfo = {
|
|
1344
1423
|
version: string | null;
|
|
1345
1424
|
exists: boolean | null;
|
|
@@ -1459,6 +1538,9 @@ declare type AuthRequestedEvent = NamedEvent & {
|
|
|
1459
1538
|
*/
|
|
1460
1539
|
declare type AutoplayPolicyOptions = 'no-user-gesture-required' | 'user-gesture-required' | 'document-user-activation-required';
|
|
1461
1540
|
|
|
1541
|
+
/**
|
|
1542
|
+
* @interface
|
|
1543
|
+
*/
|
|
1462
1544
|
declare type AutoResizeOptions = {
|
|
1463
1545
|
/**
|
|
1464
1546
|
* If true, the view's width will grow and shrink together with the window. false
|
|
@@ -1492,6 +1574,13 @@ declare class Base {
|
|
|
1492
1574
|
*/
|
|
1493
1575
|
constructor(wire: Transport);
|
|
1494
1576
|
protected get fin(): OpenFin_2.Fin<OpenFin_2.EntityType>;
|
|
1577
|
+
/**
|
|
1578
|
+
* Provides access to the OpenFin representation of the current code context (usually a document
|
|
1579
|
+
* such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
|
|
1580
|
+
*
|
|
1581
|
+
* Useful for debugging in the devtools console, where this will intelligently type itself based
|
|
1582
|
+
* on the context in which the devtools panel was opened.
|
|
1583
|
+
*/
|
|
1495
1584
|
get me(): Identity;
|
|
1496
1585
|
protected isNodeEnvironment: () => boolean;
|
|
1497
1586
|
protected isOpenFinEnvironment: () => boolean;
|
|
@@ -1507,6 +1596,9 @@ declare type BaseChannelEvent = NamedEvent & {
|
|
|
1507
1596
|
channelId: string;
|
|
1508
1597
|
};
|
|
1509
1598
|
|
|
1599
|
+
/**
|
|
1600
|
+
* @interface
|
|
1601
|
+
*/
|
|
1510
1602
|
declare type BaseClipboardRequest = {
|
|
1511
1603
|
/**
|
|
1512
1604
|
* The type of clipboard to write to, can be 'clipboard' or 'selection'.
|
|
@@ -1597,8 +1689,9 @@ declare type BaseViewEvent = NamedEvent & {
|
|
|
1597
1689
|
|
|
1598
1690
|
/**
|
|
1599
1691
|
* User decision of whether a Window or specific View should close when trying to prevent an unload.
|
|
1692
|
+
* @interface
|
|
1600
1693
|
*/
|
|
1601
|
-
declare
|
|
1694
|
+
declare type BeforeUnloadUserDecision = {
|
|
1602
1695
|
/**
|
|
1603
1696
|
* Specifies if the Window should close.
|
|
1604
1697
|
*/
|
|
@@ -1607,7 +1700,7 @@ declare interface BeforeUnloadUserDecision {
|
|
|
1607
1700
|
* Array of views that will close.
|
|
1608
1701
|
*/
|
|
1609
1702
|
viewsToClose: Identity_5[];
|
|
1610
|
-
}
|
|
1703
|
+
};
|
|
1611
1704
|
|
|
1612
1705
|
/**
|
|
1613
1706
|
* Generated at the beginning of a user-driven change to a window's size or position.
|
|
@@ -1625,6 +1718,9 @@ declare type BlurredEvent = NamedEvent & {
|
|
|
1625
1718
|
type: 'blurred';
|
|
1626
1719
|
};
|
|
1627
1720
|
|
|
1721
|
+
/**
|
|
1722
|
+
* @interface
|
|
1723
|
+
*/
|
|
1628
1724
|
declare type Bounds = {
|
|
1629
1725
|
top: number;
|
|
1630
1726
|
left: number;
|
|
@@ -1663,8 +1759,10 @@ declare type BoundsChangingEvent = BoundsChangeEvent & {
|
|
|
1663
1759
|
|
|
1664
1760
|
/**
|
|
1665
1761
|
* Configuration for page capture.
|
|
1762
|
+
*
|
|
1763
|
+
* @interface
|
|
1666
1764
|
*/
|
|
1667
|
-
declare
|
|
1765
|
+
declare type CapturePageOptions = {
|
|
1668
1766
|
/**
|
|
1669
1767
|
* The area of the window to be captured.
|
|
1670
1768
|
*/
|
|
@@ -1681,8 +1779,11 @@ declare interface CapturePageOptions {
|
|
|
1681
1779
|
* Quality of JPEG image. Between 0 - 100.
|
|
1682
1780
|
*/
|
|
1683
1781
|
quality?: number;
|
|
1684
|
-
}
|
|
1782
|
+
};
|
|
1685
1783
|
|
|
1784
|
+
/**
|
|
1785
|
+
* @interface
|
|
1786
|
+
*/
|
|
1686
1787
|
declare type Certificate = {
|
|
1687
1788
|
data: string;
|
|
1688
1789
|
fingerprint: string;
|
|
@@ -1707,6 +1808,9 @@ declare type CertificateErrorEvent = NamedEvent & {
|
|
|
1707
1808
|
certificate: OpenFin_2.Certificate;
|
|
1708
1809
|
};
|
|
1709
1810
|
|
|
1811
|
+
/**
|
|
1812
|
+
* @interface
|
|
1813
|
+
*/
|
|
1710
1814
|
declare type CertificatePrincipal = {
|
|
1711
1815
|
commonName: string;
|
|
1712
1816
|
country: string;
|
|
@@ -1726,6 +1830,9 @@ declare type CertificateSelectionShownEvent = NamedEvent & {
|
|
|
1726
1830
|
certificates: OpenFin_2.Certificate[];
|
|
1727
1831
|
};
|
|
1728
1832
|
|
|
1833
|
+
/**
|
|
1834
|
+
* @interface
|
|
1835
|
+
*/
|
|
1729
1836
|
declare type CertificationInfo = {
|
|
1730
1837
|
serial?: string;
|
|
1731
1838
|
subject?: string;
|
|
@@ -1734,6 +1841,9 @@ declare type CertificationInfo = {
|
|
|
1734
1841
|
trusted?: boolean;
|
|
1735
1842
|
};
|
|
1736
1843
|
|
|
1844
|
+
/**
|
|
1845
|
+
* @interface
|
|
1846
|
+
*/
|
|
1737
1847
|
declare type CertifiedAppInfo = {
|
|
1738
1848
|
isRunning: boolean;
|
|
1739
1849
|
isOptedIntoCertfiedApp?: boolean;
|
|
@@ -2338,6 +2448,8 @@ declare type ChannelConnectOptions = ChannelCreateOptions & {
|
|
|
2338
2448
|
|
|
2339
2449
|
/**
|
|
2340
2450
|
* Channel provider creation options.
|
|
2451
|
+
*
|
|
2452
|
+
* @interface
|
|
2341
2453
|
*/
|
|
2342
2454
|
declare type ChannelCreateOptions = {
|
|
2343
2455
|
/**
|
|
@@ -2647,6 +2759,9 @@ declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
|
|
|
2647
2759
|
isValidEndpointPayload(payload: any): payload is EndpointPayload;
|
|
2648
2760
|
}
|
|
2649
2761
|
|
|
2762
|
+
/**
|
|
2763
|
+
* @interface
|
|
2764
|
+
*/
|
|
2650
2765
|
declare type ClearCacheOption = {
|
|
2651
2766
|
/**
|
|
2652
2767
|
* html5 application cache
|
|
@@ -2666,9 +2781,17 @@ declare type ClearCacheOption = {
|
|
|
2666
2781
|
localStorage?: boolean;
|
|
2667
2782
|
};
|
|
2668
2783
|
|
|
2669
|
-
|
|
2784
|
+
/**
|
|
2785
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
2786
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
2787
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
2788
|
+
* these with a "reducer" pattern.
|
|
2789
|
+
*
|
|
2790
|
+
* @interface
|
|
2791
|
+
*/
|
|
2792
|
+
declare type ClickedMenuResult<Data extends unknown = unknown> = {
|
|
2670
2793
|
result: 'clicked';
|
|
2671
|
-
data:
|
|
2794
|
+
data: Data;
|
|
2672
2795
|
};
|
|
2673
2796
|
|
|
2674
2797
|
/**
|
|
@@ -2677,7 +2800,7 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
|
|
|
2677
2800
|
declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
|
|
2678
2801
|
|
|
2679
2802
|
/**
|
|
2680
|
-
* Identity of a channel client
|
|
2803
|
+
* Identity of a channel client. Includes endpointId to differentiate between different connections for an entity.
|
|
2681
2804
|
* @interface
|
|
2682
2805
|
*/
|
|
2683
2806
|
declare type ClientIdentity = Identity_5 & {
|
|
@@ -2895,10 +3018,16 @@ declare type ClosedEvent = IdentityEvent & {
|
|
|
2895
3018
|
type: 'closed';
|
|
2896
3019
|
};
|
|
2897
3020
|
|
|
3021
|
+
/**
|
|
3022
|
+
* @interface
|
|
3023
|
+
*/
|
|
2898
3024
|
declare type ClosedMenuResult = {
|
|
2899
3025
|
result: 'closed';
|
|
2900
3026
|
};
|
|
2901
3027
|
|
|
3028
|
+
/**
|
|
3029
|
+
* @interface
|
|
3030
|
+
*/
|
|
2902
3031
|
declare type CloseViewPayload = {
|
|
2903
3032
|
/**
|
|
2904
3033
|
*View to be closed.
|
|
@@ -2907,6 +3036,8 @@ declare type CloseViewPayload = {
|
|
|
2907
3036
|
};
|
|
2908
3037
|
|
|
2909
3038
|
/**
|
|
3039
|
+
* @interface
|
|
3040
|
+
*
|
|
2910
3041
|
* Represents the shape of payload that contains the Window Identity and related options.
|
|
2911
3042
|
*/
|
|
2912
3043
|
declare interface CloseWindowPayload {
|
|
@@ -3039,6 +3170,8 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
|
|
|
3039
3170
|
|
|
3040
3171
|
/**
|
|
3041
3172
|
* View options that cannot be updated after creation.
|
|
3173
|
+
*
|
|
3174
|
+
* @interface
|
|
3042
3175
|
*/
|
|
3043
3176
|
declare type ConstViewOptions = {
|
|
3044
3177
|
/**
|
|
@@ -3091,6 +3224,11 @@ declare type ConstViewOptions = {
|
|
|
3091
3224
|
zoomLevel: number;
|
|
3092
3225
|
experimental: any;
|
|
3093
3226
|
fdc3InteropApi?: string;
|
|
3227
|
+
/**
|
|
3228
|
+
* @defaultValue false
|
|
3229
|
+
*
|
|
3230
|
+
* When set to `true`, any `beforeunload` handler set on Views will fire.
|
|
3231
|
+
*/
|
|
3094
3232
|
enableBeforeUnload: boolean;
|
|
3095
3233
|
/**
|
|
3096
3234
|
* Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
|
|
@@ -3106,6 +3244,8 @@ declare type ConstViewOptions = {
|
|
|
3106
3244
|
|
|
3107
3245
|
/**
|
|
3108
3246
|
* Window options that cannot be changed after creation.
|
|
3247
|
+
*
|
|
3248
|
+
* @interface
|
|
3109
3249
|
*/
|
|
3110
3250
|
declare type ConstWindowOptions = {
|
|
3111
3251
|
/**
|
|
@@ -3307,6 +3447,8 @@ declare type ContentCreationBehaviorNames = 'window' | 'view' | 'block' | 'brows
|
|
|
3307
3447
|
|
|
3308
3448
|
/**
|
|
3309
3449
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
|
3450
|
+
*
|
|
3451
|
+
* @interface
|
|
3310
3452
|
*/
|
|
3311
3453
|
declare type ContentCreationOptions = {
|
|
3312
3454
|
/**
|
|
@@ -3319,13 +3461,12 @@ declare type ContentCreationOptions = {
|
|
|
3319
3461
|
* A rule for creating content in OpenFin; maps a content type to the way in which
|
|
3320
3462
|
* newly-opened content of that type will be handled.
|
|
3321
3463
|
*
|
|
3322
|
-
*
|
|
3323
|
-
* @
|
|
3324
|
-
* @property { object } options Window creation options or View creation options.
|
|
3464
|
+
*
|
|
3465
|
+
* @interface
|
|
3325
3466
|
*/
|
|
3326
3467
|
declare type ContentCreationRule<T = ContentCreationBehaviorNames> = {
|
|
3327
3468
|
/**
|
|
3328
|
-
* Behavior to use when opening matched content.
|
|
3469
|
+
* Behavior to use when opening matched content. The value could be 'view' | 'window' | 'browser' | 'block'.
|
|
3329
3470
|
*/
|
|
3330
3471
|
behavior: T;
|
|
3331
3472
|
/**
|
|
@@ -3374,6 +3515,8 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
|
3374
3515
|
* Restrict navigation to URLs that match an allowed pattern.
|
|
3375
3516
|
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
|
3376
3517
|
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
|
3518
|
+
*
|
|
3519
|
+
* @interface
|
|
3377
3520
|
*/
|
|
3378
3521
|
declare type ContentNavigation = NavigationRules;
|
|
3379
3522
|
|
|
@@ -3381,11 +3524,15 @@ declare type ContentNavigation = NavigationRules;
|
|
|
3381
3524
|
* Restrict redirects to URLs that match an allowed pattern.
|
|
3382
3525
|
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
|
3383
3526
|
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
|
3527
|
+
*
|
|
3528
|
+
* @interface
|
|
3384
3529
|
*/
|
|
3385
3530
|
declare type ContentRedirect = NavigationRules;
|
|
3386
3531
|
|
|
3387
3532
|
/**
|
|
3388
3533
|
* Data passed between entities and applications.
|
|
3534
|
+
*
|
|
3535
|
+
* @interface
|
|
3389
3536
|
*/
|
|
3390
3537
|
declare type Context = {
|
|
3391
3538
|
/**
|
|
@@ -3411,6 +3558,12 @@ declare type ContextForIntent<MetadataType = any> = Context & {
|
|
|
3411
3558
|
metadata?: MetadataType;
|
|
3412
3559
|
};
|
|
3413
3560
|
|
|
3561
|
+
/**
|
|
3562
|
+
* Information for a Context Group. Contains metadata for displaying the group properly.
|
|
3563
|
+
*/
|
|
3564
|
+
/**
|
|
3565
|
+
* @interface
|
|
3566
|
+
*/
|
|
3414
3567
|
declare type ContextGroupInfo = {
|
|
3415
3568
|
/**
|
|
3416
3569
|
* Unique identifier of the context group.
|
|
@@ -3428,10 +3581,15 @@ declare type ContextGroupStates = {
|
|
|
3428
3581
|
};
|
|
3429
3582
|
};
|
|
3430
3583
|
|
|
3584
|
+
/**
|
|
3585
|
+
* Subscription function for addContextHandler.
|
|
3586
|
+
*/
|
|
3431
3587
|
declare type ContextHandler = (context: Context) => void;
|
|
3432
3588
|
|
|
3433
3589
|
/**
|
|
3434
3590
|
* Configure the context menu when right-clicking on a window.
|
|
3591
|
+
*
|
|
3592
|
+
* @interface
|
|
3435
3593
|
*/
|
|
3436
3594
|
declare type ContextMenuOptions = {
|
|
3437
3595
|
/**
|
|
@@ -3447,6 +3605,8 @@ declare type ContextMenuOptions = {
|
|
|
3447
3605
|
/**
|
|
3448
3606
|
* @deprecated Superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
|
|
3449
3607
|
* Configure the context menu when right-clicking on a window.
|
|
3608
|
+
*
|
|
3609
|
+
* @interface
|
|
3450
3610
|
*/
|
|
3451
3611
|
declare type ContextMenuSettings = {
|
|
3452
3612
|
/**
|
|
@@ -3463,12 +3623,18 @@ declare type ContextMenuSettings = {
|
|
|
3463
3623
|
reload?: boolean;
|
|
3464
3624
|
};
|
|
3465
3625
|
|
|
3626
|
+
/**
|
|
3627
|
+
* @interface
|
|
3628
|
+
*/
|
|
3466
3629
|
declare type CookieInfo = {
|
|
3467
3630
|
name: string;
|
|
3468
3631
|
domain: string;
|
|
3469
3632
|
path: string;
|
|
3470
3633
|
};
|
|
3471
3634
|
|
|
3635
|
+
/**
|
|
3636
|
+
* @interface
|
|
3637
|
+
*/
|
|
3472
3638
|
declare type CookieOption = {
|
|
3473
3639
|
name: string;
|
|
3474
3640
|
};
|
|
@@ -3476,6 +3642,8 @@ declare type CookieOption = {
|
|
|
3476
3642
|
/**
|
|
3477
3643
|
* Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
|
|
3478
3644
|
* average of _height_ and _width_.
|
|
3645
|
+
*
|
|
3646
|
+
* @interface
|
|
3479
3647
|
*/
|
|
3480
3648
|
declare type CornerRounding = {
|
|
3481
3649
|
/**
|
|
@@ -3492,6 +3660,9 @@ declare type CornerRounding = {
|
|
|
3492
3660
|
width: number;
|
|
3493
3661
|
};
|
|
3494
3662
|
|
|
3663
|
+
/**
|
|
3664
|
+
* @interface
|
|
3665
|
+
*/
|
|
3495
3666
|
declare type CpuInfo = {
|
|
3496
3667
|
/**
|
|
3497
3668
|
* The model of the cpu
|
|
@@ -3521,6 +3692,9 @@ declare type CrashedEvent = NamedEvent & {
|
|
|
3521
3692
|
};
|
|
3522
3693
|
};
|
|
3523
3694
|
|
|
3695
|
+
/**
|
|
3696
|
+
* @interface
|
|
3697
|
+
*/
|
|
3524
3698
|
declare type CrashReporterOptions = {
|
|
3525
3699
|
/**
|
|
3526
3700
|
* In diagnostics mode the crash reporter will send diagnostic logs to
|
|
@@ -3548,6 +3722,9 @@ declare type CreatedEvent = BaseViewEvent & {
|
|
|
3548
3722
|
type: 'created';
|
|
3549
3723
|
};
|
|
3550
3724
|
|
|
3725
|
+
/**
|
|
3726
|
+
* @interface
|
|
3727
|
+
*/
|
|
3551
3728
|
declare type CreateViewPayload = {
|
|
3552
3729
|
/**
|
|
3553
3730
|
* Options for the view to be added.
|
|
@@ -3576,6 +3753,8 @@ declare type CreateViewTarget = Identity_5 & {
|
|
|
3576
3753
|
|
|
3577
3754
|
/**
|
|
3578
3755
|
* Custom headers for requests sent by the window.
|
|
3756
|
+
*
|
|
3757
|
+
* @interface
|
|
3579
3758
|
*/
|
|
3580
3759
|
declare type CustomRequestHeaders = {
|
|
3581
3760
|
/**
|
|
@@ -3589,10 +3768,16 @@ declare type CustomRequestHeaders = {
|
|
|
3589
3768
|
headers: WebRequestHeader[];
|
|
3590
3769
|
};
|
|
3591
3770
|
|
|
3771
|
+
/**
|
|
3772
|
+
* @interface
|
|
3773
|
+
*/
|
|
3592
3774
|
declare type DefaultDomainSettings = {
|
|
3593
3775
|
rules: DefaultDomainSettingsRule[];
|
|
3594
3776
|
};
|
|
3595
3777
|
|
|
3778
|
+
/**
|
|
3779
|
+
* @interface
|
|
3780
|
+
*/
|
|
3596
3781
|
declare type DefaultDomainSettingsRule = {
|
|
3597
3782
|
match: string[];
|
|
3598
3783
|
options: {
|
|
@@ -3648,6 +3833,9 @@ declare type DipRect = RectangleByEdgePositions & {
|
|
|
3648
3833
|
scaledRect: RectangleByEdgePositions;
|
|
3649
3834
|
};
|
|
3650
3835
|
|
|
3836
|
+
/**
|
|
3837
|
+
* @interface
|
|
3838
|
+
*/
|
|
3651
3839
|
declare type DipScaleRects = {
|
|
3652
3840
|
dipRect: RectangleByEdgePositions;
|
|
3653
3841
|
scaledRect: RectangleByEdgePositions;
|
|
@@ -3671,6 +3859,8 @@ declare type DisabledMovementBoundsChangingEvent = BoundsChangeEvent & {
|
|
|
3671
3859
|
|
|
3672
3860
|
/**
|
|
3673
3861
|
* The display data for a context group.
|
|
3862
|
+
*
|
|
3863
|
+
* @interface
|
|
3674
3864
|
*/
|
|
3675
3865
|
declare type DisplayMetadata = {
|
|
3676
3866
|
/**
|
|
@@ -3689,6 +3879,8 @@ declare type DisplayMetadata = {
|
|
|
3689
3879
|
|
|
3690
3880
|
/**
|
|
3691
3881
|
* Metadata returned from a preload script download request.
|
|
3882
|
+
*
|
|
3883
|
+
* @interface
|
|
3692
3884
|
*/
|
|
3693
3885
|
declare type DownloadPreloadInfo = {
|
|
3694
3886
|
/**
|
|
@@ -3707,6 +3899,8 @@ declare type DownloadPreloadInfo = {
|
|
|
3707
3899
|
|
|
3708
3900
|
/**
|
|
3709
3901
|
* Options for downloading a preload script.
|
|
3902
|
+
*
|
|
3903
|
+
* @interface
|
|
3710
3904
|
*/
|
|
3711
3905
|
declare type DownloadPreloadOption = {
|
|
3712
3906
|
/**
|
|
@@ -3715,6 +3909,9 @@ declare type DownloadPreloadOption = {
|
|
|
3715
3909
|
url: string;
|
|
3716
3910
|
};
|
|
3717
3911
|
|
|
3912
|
+
/**
|
|
3913
|
+
* @interface
|
|
3914
|
+
*/
|
|
3718
3915
|
declare type DownloadRule = {
|
|
3719
3916
|
behavior: FileDownloadBehaviorNames;
|
|
3720
3917
|
match: string[];
|
|
@@ -3722,6 +3919,8 @@ declare type DownloadRule = {
|
|
|
3722
3919
|
|
|
3723
3920
|
/**
|
|
3724
3921
|
* DPI (dots per inch) configuration for printing.
|
|
3922
|
+
*
|
|
3923
|
+
* @interface
|
|
3725
3924
|
*/
|
|
3726
3925
|
declare type Dpi = {
|
|
3727
3926
|
/**
|
|
@@ -3784,53 +3983,35 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
3784
3983
|
protected deregisterEventListener: (eventType: EmitterEventType, options?: OpenFin_2.SubscriptionOptions) => Promise<void | EventEmitter>;
|
|
3785
3984
|
/**
|
|
3786
3985
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
3787
|
-
*
|
|
3788
|
-
* @param eventType
|
|
3789
|
-
* @param listener
|
|
3790
|
-
* @param options
|
|
3791
3986
|
*/
|
|
3792
3987
|
on<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
3793
|
-
|
|
3988
|
+
/**
|
|
3989
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
|
3990
|
+
*/
|
|
3991
|
+
addListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
3794
3992
|
/**
|
|
3795
3993
|
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
3796
|
-
*
|
|
3797
|
-
* @param eventType
|
|
3798
|
-
* @param listener
|
|
3799
|
-
* @param options
|
|
3800
3994
|
*/
|
|
3801
3995
|
once<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
3802
3996
|
/**
|
|
3803
3997
|
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
3804
|
-
*
|
|
3805
|
-
* @param eventType
|
|
3806
|
-
* @param listener
|
|
3807
|
-
* @param options
|
|
3808
3998
|
*/
|
|
3809
3999
|
prependListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
3810
4000
|
/**
|
|
3811
4001
|
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired,
|
|
3812
4002
|
* after which it is removed. The listener is added to the beginning of the listeners array.
|
|
3813
|
-
*
|
|
3814
|
-
* @param eventType
|
|
3815
|
-
* @param listener
|
|
3816
|
-
* @param options
|
|
3817
4003
|
*/
|
|
3818
4004
|
prependOnceListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
3819
4005
|
/**
|
|
3820
4006
|
* Remove a listener from the listener array for the specified event.
|
|
3821
4007
|
*
|
|
3822
4008
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
3823
|
-
*
|
|
3824
|
-
* @param eventType
|
|
3825
|
-
* @param listener
|
|
3826
|
-
* @param options
|
|
3827
4009
|
*/
|
|
3828
4010
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
3829
4011
|
protected deregisterAllListeners(eventType: EmitterEventType): Promise<EventEmitter | void>;
|
|
3830
4012
|
/**
|
|
3831
4013
|
* Removes all listeners, or those of the specified event.
|
|
3832
4014
|
*
|
|
3833
|
-
* @param eventType
|
|
3834
4015
|
*/
|
|
3835
4016
|
removeAllListeners(eventType?: EmitterEventType): Promise<this>;
|
|
3836
4017
|
private deleteEmitterIfNothingRegistered;
|
|
@@ -3873,6 +4054,9 @@ declare type Entity = OpenFin_2.ApplicationType;
|
|
|
3873
4054
|
|
|
3874
4055
|
declare type EntityInfo = OpenFin_2.EntityInfo;
|
|
3875
4056
|
|
|
4057
|
+
/**
|
|
4058
|
+
* @interface
|
|
4059
|
+
*/
|
|
3876
4060
|
declare type EntityInfo_2 = {
|
|
3877
4061
|
uuid: string;
|
|
3878
4062
|
name: string;
|
|
@@ -4000,6 +4184,9 @@ declare type ExistingConnectConfig = ConfigWithUuid & {
|
|
|
4000
4184
|
address: string;
|
|
4001
4185
|
};
|
|
4002
4186
|
|
|
4187
|
+
/**
|
|
4188
|
+
* @interface
|
|
4189
|
+
*/
|
|
4003
4190
|
declare type ExitCode = {
|
|
4004
4191
|
topic: string;
|
|
4005
4192
|
uuid: string;
|
|
@@ -4149,6 +4336,9 @@ declare namespace ExternalApplicationEvents {
|
|
|
4149
4336
|
}
|
|
4150
4337
|
}
|
|
4151
4338
|
|
|
4339
|
+
/**
|
|
4340
|
+
* @interface
|
|
4341
|
+
*/
|
|
4152
4342
|
declare type ExternalApplicationInfo = {
|
|
4153
4343
|
parent: Identity_5;
|
|
4154
4344
|
};
|
|
@@ -4187,6 +4377,9 @@ declare class ExternalApplicationModule extends Base {
|
|
|
4187
4377
|
wrapSync(uuid: string): OpenFin_2.ExternalApplication;
|
|
4188
4378
|
}
|
|
4189
4379
|
|
|
4380
|
+
/**
|
|
4381
|
+
* @interface
|
|
4382
|
+
*/
|
|
4190
4383
|
declare type ExternalConnection = {
|
|
4191
4384
|
/**
|
|
4192
4385
|
* The token to broker an external connection.
|
|
@@ -4208,11 +4401,17 @@ declare type ExternalProcessExitedEvent = NamedEvent & {
|
|
|
4208
4401
|
exitCode: number;
|
|
4209
4402
|
};
|
|
4210
4403
|
|
|
4404
|
+
/**
|
|
4405
|
+
* @interface
|
|
4406
|
+
*/
|
|
4211
4407
|
declare type ExternalProcessInfo = {
|
|
4212
4408
|
pid: number;
|
|
4213
4409
|
listener?: LaunchExternalProcessListener;
|
|
4214
4410
|
};
|
|
4215
4411
|
|
|
4412
|
+
/**
|
|
4413
|
+
* @interface
|
|
4414
|
+
*/
|
|
4216
4415
|
declare type ExternalProcessRequestType = {
|
|
4217
4416
|
/**
|
|
4218
4417
|
* The file path to where the running application resides.
|
|
@@ -4255,6 +4454,9 @@ declare type FaviconUpdatedEvent = NamedEvent & {
|
|
|
4255
4454
|
favicons: string[];
|
|
4256
4455
|
};
|
|
4257
4456
|
|
|
4457
|
+
/**
|
|
4458
|
+
* @interface
|
|
4459
|
+
*/
|
|
4258
4460
|
declare type FetchManifestPayload = {
|
|
4259
4461
|
/**
|
|
4260
4462
|
* The URL of the manifest to fetch.
|
|
@@ -4343,6 +4545,9 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
|
4343
4545
|
state: 'progressing' | 'interrupted';
|
|
4344
4546
|
};
|
|
4345
4547
|
|
|
4548
|
+
/**
|
|
4549
|
+
* @interface
|
|
4550
|
+
*/
|
|
4346
4551
|
declare type FileDownloadSettings = {
|
|
4347
4552
|
rules: DownloadRule[];
|
|
4348
4553
|
};
|
|
@@ -4381,6 +4586,8 @@ declare interface FinApi<MeType extends EntityType> {
|
|
|
4381
4586
|
|
|
4382
4587
|
/**
|
|
4383
4588
|
* Configuration for find-in-page requests.
|
|
4589
|
+
*
|
|
4590
|
+
* @interface
|
|
4384
4591
|
*/
|
|
4385
4592
|
declare type FindInPageOptions = {
|
|
4386
4593
|
/**
|
|
@@ -4416,6 +4623,9 @@ declare type FindInPageOptions = {
|
|
|
4416
4623
|
medialCapitalAsWordStart?: boolean;
|
|
4417
4624
|
};
|
|
4418
4625
|
|
|
4626
|
+
/**
|
|
4627
|
+
* @interface
|
|
4628
|
+
*/
|
|
4419
4629
|
declare type FindInPageResult = {
|
|
4420
4630
|
requestId: number;
|
|
4421
4631
|
/**
|
|
@@ -4433,6 +4643,9 @@ declare type FindInPageResult = {
|
|
|
4433
4643
|
finalUpdate: boolean;
|
|
4434
4644
|
};
|
|
4435
4645
|
|
|
4646
|
+
/**
|
|
4647
|
+
* @interface
|
|
4648
|
+
*/
|
|
4436
4649
|
declare type FindIntentsByContextOptions<MetadataType = IntentMetadata> = {
|
|
4437
4650
|
context: Context;
|
|
4438
4651
|
metadata?: MetadataType;
|
|
@@ -4630,6 +4843,9 @@ declare namespace FrameEvents {
|
|
|
4630
4843
|
*/
|
|
4631
4844
|
declare type FrameEventType = FrameEvent['type'];
|
|
4632
4845
|
|
|
4846
|
+
/**
|
|
4847
|
+
* @interface
|
|
4848
|
+
*/
|
|
4633
4849
|
declare type FrameInfo = {
|
|
4634
4850
|
name: string;
|
|
4635
4851
|
uuid: string;
|
|
@@ -4706,6 +4922,9 @@ declare type FrameProcessDetails = ProcessDetails & {
|
|
|
4706
4922
|
|
|
4707
4923
|
declare type GetLogRequestType = OpenFin_2.GetLogRequestType;
|
|
4708
4924
|
|
|
4925
|
+
/**
|
|
4926
|
+
* @interface
|
|
4927
|
+
*/
|
|
4709
4928
|
declare type GetLogRequestType_2 = {
|
|
4710
4929
|
/**
|
|
4711
4930
|
* The name of the running application
|
|
@@ -4723,6 +4942,9 @@ declare type GetLogRequestType_2 = {
|
|
|
4723
4942
|
|
|
4724
4943
|
declare type GetterCall<T> = ApiCall<void, T>;
|
|
4725
4944
|
|
|
4945
|
+
/**
|
|
4946
|
+
* @interface
|
|
4947
|
+
*/
|
|
4726
4948
|
declare type GetWindowContextPayload = {
|
|
4727
4949
|
/**
|
|
4728
4950
|
* Entity type of the target of the context update ('view' or 'window').
|
|
@@ -4858,6 +5080,9 @@ declare namespace GlobalHotkeyEvents {
|
|
|
4858
5080
|
}
|
|
4859
5081
|
}
|
|
4860
5082
|
|
|
5083
|
+
/**
|
|
5084
|
+
* @interface
|
|
5085
|
+
*/
|
|
4861
5086
|
declare type GpuInfo = {
|
|
4862
5087
|
name: string;
|
|
4863
5088
|
};
|
|
@@ -4870,6 +5095,9 @@ declare type HiddenEvent = BaseViewEvent & {
|
|
|
4870
5095
|
type: 'hidden';
|
|
4871
5096
|
};
|
|
4872
5097
|
|
|
5098
|
+
/**
|
|
5099
|
+
* @interface
|
|
5100
|
+
*/
|
|
4873
5101
|
declare type HostContextChangedPayload = {
|
|
4874
5102
|
/**
|
|
4875
5103
|
* The new context object
|
|
@@ -4883,6 +5111,9 @@ declare type HostContextChangedPayload = {
|
|
|
4883
5111
|
|
|
4884
5112
|
declare type HostContextChangedReasons = 'updated' | 'reparented';
|
|
4885
5113
|
|
|
5114
|
+
/**
|
|
5115
|
+
* @interface
|
|
5116
|
+
*/
|
|
4886
5117
|
declare type HostSpecs = {
|
|
4887
5118
|
/**
|
|
4888
5119
|
* True if Aero Glass theme is supported on Windows platforms
|
|
@@ -4916,6 +5147,8 @@ declare type HostSpecs = {
|
|
|
4916
5147
|
|
|
4917
5148
|
/**
|
|
4918
5149
|
* A hotkey binding.
|
|
5150
|
+
*
|
|
5151
|
+
* @interface
|
|
4919
5152
|
*/
|
|
4920
5153
|
declare type Hotkey = {
|
|
4921
5154
|
/**
|
|
@@ -4952,6 +5185,8 @@ declare type Identity_4 = OpenFin_2.Identity;
|
|
|
4952
5185
|
*
|
|
4953
5186
|
* @remarks The `uuid` property refers the application that owns the entity, not to the entity itself.
|
|
4954
5187
|
* The `name` property identifies the entity itself, and must be unique within the application.
|
|
5188
|
+
*
|
|
5189
|
+
* @interface
|
|
4955
5190
|
*/
|
|
4956
5191
|
declare type Identity_5 = {
|
|
4957
5192
|
/**
|
|
@@ -5002,6 +5237,9 @@ declare type ImageFormatOptions = {
|
|
|
5002
5237
|
quality?: number;
|
|
5003
5238
|
};
|
|
5004
5239
|
|
|
5240
|
+
/**
|
|
5241
|
+
* @interface
|
|
5242
|
+
*/
|
|
5005
5243
|
declare type InfoForIntentOptions<MetadataType = IntentMetadata> = {
|
|
5006
5244
|
/**
|
|
5007
5245
|
* Name of the intent to get info for.
|
|
@@ -5023,6 +5261,9 @@ declare type InitLayoutOptions = OpenFin_2.InitLayoutOptions;
|
|
|
5023
5261
|
|
|
5024
5262
|
declare type InitLayoutOptions_2 = OpenFin_2.InitLayoutOptions;
|
|
5025
5263
|
|
|
5264
|
+
/**
|
|
5265
|
+
* @interface
|
|
5266
|
+
*/
|
|
5026
5267
|
declare type InitLayoutOptions_3 = {
|
|
5027
5268
|
/**
|
|
5028
5269
|
* The id attribute of the container where the window's Layout should be initialized. If not provided
|
|
@@ -5031,6 +5272,9 @@ declare type InitLayoutOptions_3 = {
|
|
|
5031
5272
|
containerId?: string;
|
|
5032
5273
|
};
|
|
5033
5274
|
|
|
5275
|
+
/**
|
|
5276
|
+
* @interface
|
|
5277
|
+
*/
|
|
5034
5278
|
declare type InitPlatformOptions = {
|
|
5035
5279
|
/**
|
|
5036
5280
|
* A callback function or an array of constructor callbacks that can be used to extend or replace default Provider behavior.
|
|
@@ -5058,12 +5302,18 @@ declare type InputEvent_2 = {
|
|
|
5058
5302
|
command?: string;
|
|
5059
5303
|
};
|
|
5060
5304
|
|
|
5305
|
+
/**
|
|
5306
|
+
* @interface
|
|
5307
|
+
*/
|
|
5061
5308
|
declare type InstallationInfo = {
|
|
5062
5309
|
cachedManifest: any;
|
|
5063
5310
|
};
|
|
5064
5311
|
|
|
5065
5312
|
declare type InstalledApps = OpenFin_2.InstalledApps;
|
|
5066
5313
|
|
|
5314
|
+
/**
|
|
5315
|
+
* @interface
|
|
5316
|
+
*/
|
|
5067
5317
|
declare type InstalledApps_2 = {
|
|
5068
5318
|
[key: string]: InstallationInfo;
|
|
5069
5319
|
};
|
|
@@ -5083,8 +5333,17 @@ declare type Intent<MetadataType = IntentMetadata> = {
|
|
|
5083
5333
|
metadata?: MetadataType;
|
|
5084
5334
|
};
|
|
5085
5335
|
|
|
5336
|
+
/**
|
|
5337
|
+
* Subscription function for registerIntentHandler.
|
|
5338
|
+
*/
|
|
5086
5339
|
declare type IntentHandler = (intent: Intent) => void;
|
|
5087
5340
|
|
|
5341
|
+
/**
|
|
5342
|
+
* The type used to describe an intent within the platform.
|
|
5343
|
+
*/
|
|
5344
|
+
/**
|
|
5345
|
+
* @interface
|
|
5346
|
+
*/
|
|
5088
5347
|
declare type IntentMetadata<TargetType = any> = {
|
|
5089
5348
|
target?: TargetType;
|
|
5090
5349
|
resultType?: string;
|
|
@@ -5212,10 +5471,11 @@ declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
|
|
5212
5471
|
|
|
5213
5472
|
/**
|
|
5214
5473
|
* Define whether to enable interop action logging.
|
|
5474
|
+
*
|
|
5215
5475
|
*/
|
|
5216
|
-
declare
|
|
5476
|
+
declare type InteropActionLoggingOption = {
|
|
5217
5477
|
enabled: boolean;
|
|
5218
|
-
}
|
|
5478
|
+
};
|
|
5219
5479
|
|
|
5220
5480
|
/**
|
|
5221
5481
|
* {@link https://developers.openfin.co/of-docs/docs/enable-color-linking}
|
|
@@ -5884,12 +6144,18 @@ declare class InteropBroker extends Base {
|
|
|
5884
6144
|
isActionAuthorized(_action: string, _payload: any, _identity: OpenFin_2.ClientIdentity): Promise<boolean> | boolean;
|
|
5885
6145
|
}
|
|
5886
6146
|
|
|
6147
|
+
/**
|
|
6148
|
+
* @interface
|
|
6149
|
+
*/
|
|
5887
6150
|
declare type InteropBrokerDisconnectionEvent = {
|
|
5888
6151
|
type: string;
|
|
5889
6152
|
topic: string;
|
|
5890
6153
|
brokerName: string;
|
|
5891
6154
|
};
|
|
5892
6155
|
|
|
6156
|
+
/**
|
|
6157
|
+
* @interface
|
|
6158
|
+
*/
|
|
5893
6159
|
declare type InteropBrokerOptions = {
|
|
5894
6160
|
contextGroups?: ContextGroupInfo;
|
|
5895
6161
|
logging?: InteropLoggingOptions;
|
|
@@ -6395,8 +6661,17 @@ declare class InteropClient extends Base {
|
|
|
6395
6661
|
static ferryFdc3Call(interopClient: OpenFin_2.InteropClient, action: string, payload?: any): Promise<any>;
|
|
6396
6662
|
}
|
|
6397
6663
|
|
|
6664
|
+
/**
|
|
6665
|
+
* @interface
|
|
6666
|
+
*/
|
|
6398
6667
|
declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionEvent: InteropBrokerDisconnectionEvent) => any;
|
|
6399
6668
|
|
|
6669
|
+
/**
|
|
6670
|
+
* Information relevant to the Interop Broker.
|
|
6671
|
+
*/
|
|
6672
|
+
/**
|
|
6673
|
+
* @interface
|
|
6674
|
+
*/
|
|
6400
6675
|
declare type InteropConfig = {
|
|
6401
6676
|
/**
|
|
6402
6677
|
* Context Group for the client. (green, yellow, red, etc.).
|
|
@@ -6410,6 +6685,9 @@ declare type InteropConfig = {
|
|
|
6410
6685
|
|
|
6411
6686
|
declare type InteropLoggingActions = 'beforeAction' | 'afterAction';
|
|
6412
6687
|
|
|
6688
|
+
/**
|
|
6689
|
+
* @interface
|
|
6690
|
+
*/
|
|
6413
6691
|
declare type InteropLoggingOptions = Record<InteropLoggingActions, InteropActionLoggingOption>;
|
|
6414
6692
|
|
|
6415
6693
|
/**
|
|
@@ -6464,6 +6742,9 @@ declare class InteropModule extends Base {
|
|
|
6464
6742
|
connectSync(name: string, interopConfig?: OpenFin_2.InteropConfig): InteropClient;
|
|
6465
6743
|
}
|
|
6466
6744
|
|
|
6745
|
+
/**
|
|
6746
|
+
* @interface
|
|
6747
|
+
*/
|
|
6467
6748
|
declare type JumpListCategory = {
|
|
6468
6749
|
/**
|
|
6469
6750
|
* The display title for the category.
|
|
@@ -6480,10 +6761,16 @@ declare type JumpListCategory = {
|
|
|
6480
6761
|
|
|
6481
6762
|
declare type JumpListItem = JumpListTask | JumpListSeparator;
|
|
6482
6763
|
|
|
6764
|
+
/**
|
|
6765
|
+
* @interface
|
|
6766
|
+
*/
|
|
6483
6767
|
declare type JumpListSeparator = {
|
|
6484
6768
|
type: 'separator';
|
|
6485
6769
|
};
|
|
6486
6770
|
|
|
6771
|
+
/**
|
|
6772
|
+
* @interface
|
|
6773
|
+
*/
|
|
6487
6774
|
declare type JumpListTask = {
|
|
6488
6775
|
type: 'task';
|
|
6489
6776
|
/**
|
|
@@ -6575,15 +6862,19 @@ declare type JumpListTask = {
|
|
|
6575
6862
|
*/
|
|
6576
6863
|
declare type LaunchEmitter = TypedEventEmitter<AppVersionEvent>;
|
|
6577
6864
|
|
|
6578
|
-
declare type LaunchExternalProcessListener =
|
|
6579
|
-
(code: ExitCode): void;
|
|
6580
|
-
};
|
|
6865
|
+
declare type LaunchExternalProcessListener = (code: ExitCode) => void;
|
|
6581
6866
|
|
|
6867
|
+
/**
|
|
6868
|
+
* @interface
|
|
6869
|
+
*/
|
|
6582
6870
|
declare type LaunchExternalProcessRule = {
|
|
6583
6871
|
behavior: 'allow' | 'block';
|
|
6584
6872
|
match: string[];
|
|
6585
6873
|
};
|
|
6586
6874
|
|
|
6875
|
+
/**
|
|
6876
|
+
* @interface
|
|
6877
|
+
*/
|
|
6587
6878
|
declare type LaunchIntoPlatformPayload = {
|
|
6588
6879
|
manifest: any;
|
|
6589
6880
|
};
|
|
@@ -6872,14 +7163,26 @@ declare class Layout extends Base {
|
|
|
6872
7163
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
6873
7164
|
}
|
|
6874
7165
|
|
|
6875
|
-
|
|
7166
|
+
/**
|
|
7167
|
+
* @interface
|
|
7168
|
+
*/
|
|
7169
|
+
declare type LayoutColumn = LayoutItemConfig & {
|
|
6876
7170
|
type: 'column';
|
|
6877
|
-
}
|
|
7171
|
+
};
|
|
6878
7172
|
|
|
6879
|
-
|
|
7173
|
+
/**
|
|
7174
|
+
* @interface
|
|
7175
|
+
*/
|
|
7176
|
+
declare type LayoutComponent = LayoutItemConfig & {
|
|
7177
|
+
/**
|
|
7178
|
+
* Only a component type will have this property and it should be set to view.
|
|
7179
|
+
*/
|
|
6880
7180
|
componentName: 'view';
|
|
7181
|
+
/**
|
|
7182
|
+
* Only a component type will have this property and it represents the view options of a given component.
|
|
7183
|
+
*/
|
|
6881
7184
|
componentState?: Partial<ViewCreationOptions>;
|
|
6882
|
-
}
|
|
7185
|
+
};
|
|
6883
7186
|
|
|
6884
7187
|
declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
|
|
6885
7188
|
|
|
@@ -7011,6 +7314,9 @@ declare class LayoutEntitiesController {
|
|
|
7011
7314
|
setStackActiveView: (stackEntityId: string, viewIdentity: OpenFin_2.Identity) => Promise<void>;
|
|
7012
7315
|
}
|
|
7013
7316
|
|
|
7317
|
+
/**
|
|
7318
|
+
* @interface
|
|
7319
|
+
*/
|
|
7014
7320
|
declare type LayoutEntityDefinition<TLayoutEntityType extends LayoutEntityTypes = LayoutEntityTypes> = {
|
|
7015
7321
|
type: TLayoutEntityType;
|
|
7016
7322
|
entityId: string;
|
|
@@ -7030,9 +7336,11 @@ declare type LayoutInitializedEvent = NamedEvent & {
|
|
|
7030
7336
|
};
|
|
7031
7337
|
|
|
7032
7338
|
/**
|
|
7033
|
-
* Represents the arrangement of Views within a Platform window's Layout.
|
|
7339
|
+
* Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
|
|
7034
7340
|
* to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
|
|
7035
7341
|
* {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
|
|
7342
|
+
*
|
|
7343
|
+
* @interface
|
|
7036
7344
|
*/
|
|
7037
7345
|
declare type LayoutItemConfig = {
|
|
7038
7346
|
/**
|
|
@@ -7414,6 +7722,9 @@ declare abstract class LayoutNode {
|
|
|
7414
7722
|
getAdjacentStacks: (edge: OpenFin_2.LayoutPosition) => Promise<TabStack[]>;
|
|
7415
7723
|
}
|
|
7416
7724
|
|
|
7725
|
+
/**
|
|
7726
|
+
* @interface
|
|
7727
|
+
*/
|
|
7417
7728
|
declare type LayoutOptions = {
|
|
7418
7729
|
/**
|
|
7419
7730
|
* Represents a potential ways to customize behavior of your Layout
|
|
@@ -7455,6 +7766,11 @@ declare type LayoutOptions = {
|
|
|
7455
7766
|
* (not to be confused with close button on every tab).
|
|
7456
7767
|
*/
|
|
7457
7768
|
showCloseIcon?: boolean;
|
|
7769
|
+
/**
|
|
7770
|
+
* @defaultValue false
|
|
7771
|
+
*
|
|
7772
|
+
* Limits the area to which tabs can be dragged. If true, stack headers are the only areas where tabs can be dropped.
|
|
7773
|
+
*/
|
|
7458
7774
|
constrainDragToHeaders?: boolean;
|
|
7459
7775
|
/**
|
|
7460
7776
|
* @defaultValue true
|
|
@@ -7483,6 +7799,11 @@ declare type LayoutOptions = {
|
|
|
7483
7799
|
*/
|
|
7484
7800
|
preventDragIn?: boolean;
|
|
7485
7801
|
};
|
|
7802
|
+
/**
|
|
7803
|
+
* Content of the layout. There can only be one top-level LayoutItem in the content array.
|
|
7804
|
+
* We do not recommend trying to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
|
|
7805
|
+
* {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
|
|
7806
|
+
*/
|
|
7486
7807
|
content?: LayoutContent;
|
|
7487
7808
|
dimensions?: {
|
|
7488
7809
|
borderWidth?: number;
|
|
@@ -7494,6 +7815,9 @@ declare type LayoutOptions = {
|
|
|
7494
7815
|
|
|
7495
7816
|
declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
7496
7817
|
|
|
7818
|
+
/**
|
|
7819
|
+
* @interface
|
|
7820
|
+
*/
|
|
7497
7821
|
declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
|
|
7498
7822
|
|
|
7499
7823
|
/**
|
|
@@ -7507,10 +7831,16 @@ declare type LayoutReadyEvent = NamedEvent & {
|
|
|
7507
7831
|
})[];
|
|
7508
7832
|
};
|
|
7509
7833
|
|
|
7510
|
-
|
|
7834
|
+
/**
|
|
7835
|
+
* @interface
|
|
7836
|
+
*/
|
|
7837
|
+
declare type LayoutRow = LayoutItemConfig & {
|
|
7511
7838
|
type: 'row';
|
|
7512
|
-
}
|
|
7839
|
+
};
|
|
7513
7840
|
|
|
7841
|
+
/**
|
|
7842
|
+
* @interface
|
|
7843
|
+
*/
|
|
7514
7844
|
declare type LegacyWinOptionsInAppOptions = Pick<WindowCreationOptions, 'accelerator' | 'alwaysOnTop' | 'api' | 'aspectRatio' | 'autoplayPolicy' | 'autoShow' | 'backgroundColor' | 'contentNavigation' | 'contextMenu' | 'cornerRounding' | 'customData' | 'customRequestHeaders' | 'defaultCentered' | 'defaultHeight' | 'defaultLeft' | 'defaultTop' | 'defaultWidth' | 'frame' | 'hideOnClose' | 'icon' | 'maxHeight' | 'maximizable' | 'maxWidth' | 'minHeight' | 'minimizable' | 'minWidth' | 'opacity' | 'preloadScripts' | 'resizable' | 'resizeRegion' | 'saveWindowState' | 'ignoreSavedWindowState' | 'shadow' | 'showTaskbarIcon' | 'smallWindow' | 'state' | 'taskbarIconGroup' | 'waitForPageLoad' | '_internalWorkspaceData'>;
|
|
7515
7845
|
|
|
7516
7846
|
declare type Listener<T extends {
|
|
@@ -7519,6 +7849,9 @@ declare type Listener<T extends {
|
|
|
7519
7849
|
|
|
7520
7850
|
declare type LogInfo = OpenFin_2.LogInfo;
|
|
7521
7851
|
|
|
7852
|
+
/**
|
|
7853
|
+
* @interface
|
|
7854
|
+
*/
|
|
7522
7855
|
declare type LogInfo_2 = {
|
|
7523
7856
|
/**
|
|
7524
7857
|
* The filename of the log
|
|
@@ -7547,6 +7880,9 @@ declare type LogLevel = OpenFin_2.LogLevel;
|
|
|
7547
7880
|
*/
|
|
7548
7881
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
7549
7882
|
|
|
7883
|
+
/**
|
|
7884
|
+
* @interface
|
|
7885
|
+
*/
|
|
7550
7886
|
declare type Manifest = {
|
|
7551
7887
|
appAssets?: {
|
|
7552
7888
|
alias: string;
|
|
@@ -7612,6 +7948,9 @@ declare type ManifestChangedEvent = IdentityEvent & {
|
|
|
7612
7948
|
type: 'manifest-changed';
|
|
7613
7949
|
};
|
|
7614
7950
|
|
|
7951
|
+
/**
|
|
7952
|
+
* @interface
|
|
7953
|
+
*/
|
|
7615
7954
|
declare type ManifestInfo = {
|
|
7616
7955
|
/**
|
|
7617
7956
|
* The uuid of the application.
|
|
@@ -7625,8 +7964,13 @@ declare type ManifestInfo = {
|
|
|
7625
7964
|
|
|
7626
7965
|
/**
|
|
7627
7966
|
* Margins configuration for printing.
|
|
7967
|
+
*
|
|
7968
|
+
* @interface
|
|
7628
7969
|
*/
|
|
7629
7970
|
declare type Margins = {
|
|
7971
|
+
/**
|
|
7972
|
+
* The margin type. If `custom` is chosen, you will also need to specify top, bottom, left, and right.
|
|
7973
|
+
*/
|
|
7630
7974
|
marginType?: 'default' | 'none' | 'printableArea' | 'custom';
|
|
7631
7975
|
/**
|
|
7632
7976
|
* The top margin of the printed webpage, in pixels.
|
|
@@ -7656,17 +8000,36 @@ declare type MaximizedEvent = NamedEvent & {
|
|
|
7656
8000
|
type: 'maximized';
|
|
7657
8001
|
};
|
|
7658
8002
|
|
|
8003
|
+
/**
|
|
8004
|
+
* Type of the OpenFin `me` API handle, which provides access to the OpenFin representation of the current
|
|
8005
|
+
* code context (usually a document such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as
|
|
8006
|
+
* to the current `Interop` context.
|
|
8007
|
+
*
|
|
8008
|
+
* Useful for debugging in the devtools console, where this will intelligently type itself based
|
|
8009
|
+
* on the context in which the devtools panel was opened.
|
|
8010
|
+
*/
|
|
7659
8011
|
declare type Me<MeType extends EntityType_3> = 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) & {
|
|
7660
8012
|
isOpenFin: boolean;
|
|
7661
8013
|
};
|
|
7662
8014
|
|
|
7663
|
-
|
|
8015
|
+
/**
|
|
8016
|
+
* @interface
|
|
8017
|
+
*
|
|
8018
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
8019
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
8020
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
8021
|
+
* these with a "reducer" pattern.
|
|
8022
|
+
*/
|
|
8023
|
+
declare type MenuItemTemplate<Data extends unknown = unknown> = {
|
|
7664
8024
|
/**
|
|
7665
8025
|
* Can be `normal`, `separator`, `submenu`, or `checkbox`.
|
|
7666
8026
|
* Defaults to 'normal' unless a 'submenu' key exists
|
|
7667
8027
|
*/
|
|
7668
8028
|
type?: 'normal' | 'separator' | 'submenu' | 'checkbox';
|
|
7669
8029
|
role?: 'cut' | 'copy' | 'paste' | 'toggleDevTools' | 'reload';
|
|
8030
|
+
/**
|
|
8031
|
+
* The text to show on the menu item. Should be left undefined for type: 'separator'
|
|
8032
|
+
*/
|
|
7670
8033
|
label?: string;
|
|
7671
8034
|
/**
|
|
7672
8035
|
* If false, the menu item will be greyed out and unclickable.
|
|
@@ -7684,18 +8047,26 @@ declare type MenuItemTemplate<T extends unknown = unknown> = {
|
|
|
7684
8047
|
* Should be specified for `submenu` type menu items. If `submenu` is specified,
|
|
7685
8048
|
* the `type: 'submenu'` can be omitted.
|
|
7686
8049
|
*/
|
|
7687
|
-
submenu?: MenuItemTemplate<
|
|
8050
|
+
submenu?: MenuItemTemplate<Data>[];
|
|
7688
8051
|
/**
|
|
7689
8052
|
* Data to be returned if the user selects the element. Must be serializable
|
|
7690
8053
|
*/
|
|
7691
|
-
data?:
|
|
8054
|
+
data?: Data;
|
|
7692
8055
|
/**
|
|
7693
8056
|
* Image Data URI with image dimensions inferred from the encoded string
|
|
7694
8057
|
*/
|
|
7695
8058
|
icon?: string;
|
|
7696
8059
|
};
|
|
7697
8060
|
|
|
7698
|
-
|
|
8061
|
+
/**
|
|
8062
|
+
* Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
|
|
8063
|
+
*
|
|
8064
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
8065
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
8066
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
8067
|
+
* these with a "reducer" pattern.
|
|
8068
|
+
*/
|
|
8069
|
+
declare type MenuResult<Data extends unknown = unknown> = ClickedMenuResult<Data> | ClosedMenuResult;
|
|
7699
8070
|
|
|
7700
8071
|
declare interface Message<T> {
|
|
7701
8072
|
action: string;
|
|
@@ -7729,6 +8100,9 @@ declare type MinimizedEvent = NamedEvent & {
|
|
|
7729
8100
|
type: 'minimized';
|
|
7730
8101
|
};
|
|
7731
8102
|
|
|
8103
|
+
/**
|
|
8104
|
+
* @interface
|
|
8105
|
+
*/
|
|
7732
8106
|
declare type MonitorDetails = {
|
|
7733
8107
|
/**
|
|
7734
8108
|
* The available DIP scale coordinates.
|
|
@@ -7775,6 +8149,9 @@ declare type MonitorEvent = OpenFin_2.MonitorInfo & {
|
|
|
7775
8149
|
type: 'monitor-info-changed';
|
|
7776
8150
|
};
|
|
7777
8151
|
|
|
8152
|
+
/**
|
|
8153
|
+
* @interface
|
|
8154
|
+
*/
|
|
7778
8155
|
declare type MonitorInfo = {
|
|
7779
8156
|
/**
|
|
7780
8157
|
* The device scale factor.
|
|
@@ -7794,6 +8171,9 @@ declare type MonitorInfo = {
|
|
|
7794
8171
|
virtualScreen: DipRect;
|
|
7795
8172
|
};
|
|
7796
8173
|
|
|
8174
|
+
/**
|
|
8175
|
+
* @interface
|
|
8176
|
+
*/
|
|
7797
8177
|
declare type MutableViewOptions = {
|
|
7798
8178
|
autoResize: AutoResizeOptions;
|
|
7799
8179
|
/**
|
|
@@ -7879,6 +8259,8 @@ declare type MutableViewOptions = {
|
|
|
7879
8259
|
|
|
7880
8260
|
/**
|
|
7881
8261
|
* Window options that can be changed after window creation.
|
|
8262
|
+
*
|
|
8263
|
+
* @interface
|
|
7882
8264
|
*/
|
|
7883
8265
|
declare type MutableWindowOptions = {
|
|
7884
8266
|
/**
|
|
@@ -8131,6 +8513,9 @@ declare type NamedEvent = IdentityEvent & {
|
|
|
8131
8513
|
name: string;
|
|
8132
8514
|
};
|
|
8133
8515
|
|
|
8516
|
+
/**
|
|
8517
|
+
* @interface
|
|
8518
|
+
*/
|
|
8134
8519
|
declare type NativeWindowIntegrationProviderAuthorization = {
|
|
8135
8520
|
authorizedUuid: string;
|
|
8136
8521
|
};
|
|
@@ -8145,6 +8530,9 @@ declare type NavigationRejectedEvent = NamedEvent & {
|
|
|
8145
8530
|
url: string;
|
|
8146
8531
|
};
|
|
8147
8532
|
|
|
8533
|
+
/**
|
|
8534
|
+
* @interface
|
|
8535
|
+
*/
|
|
8148
8536
|
declare type NavigationRules = {
|
|
8149
8537
|
/** @deprecated Use allowlist property instead. */
|
|
8150
8538
|
whitelist?: string[];
|
|
@@ -8558,6 +8946,9 @@ declare type PerformanceReportEvent = Performance & NamedEvent & {
|
|
|
8558
8946
|
type: 'performance-report';
|
|
8559
8947
|
};
|
|
8560
8948
|
|
|
8949
|
+
/**
|
|
8950
|
+
* @interface
|
|
8951
|
+
*/
|
|
8561
8952
|
declare type Permissions_2 = {
|
|
8562
8953
|
Application?: Partial<ApplicationPermissions>;
|
|
8563
8954
|
System?: Partial<SystemPermissions>;
|
|
@@ -9420,9 +9811,17 @@ declare type PlatformOptions = ApplicationCreationOptions & {
|
|
|
9420
9811
|
disableDefaultCommands?: boolean;
|
|
9421
9812
|
/**
|
|
9422
9813
|
* Strategy to assign views to process affinity by domain.
|
|
9814
|
+
* * `same` - The views in the same domain will have same renderer processes.
|
|
9815
|
+
* * `different` - The views in the same domain will have their own renderer processes.
|
|
9423
9816
|
*/
|
|
9424
9817
|
viewProcessAffinityStrategy?: ProcessAffinityStrategy;
|
|
9818
|
+
/**
|
|
9819
|
+
* The provider url.
|
|
9820
|
+
*/
|
|
9425
9821
|
providerUrl?: string;
|
|
9822
|
+
/**
|
|
9823
|
+
* The permissions for secured APIs.
|
|
9824
|
+
*/
|
|
9426
9825
|
permissions?: Partial<Permissions_2>;
|
|
9427
9826
|
};
|
|
9428
9827
|
|
|
@@ -9958,6 +10357,9 @@ declare type PlatformSnapshotAppliedEvent = BaseEvent & {
|
|
|
9958
10357
|
type: 'platform-snapshot-applied';
|
|
9959
10358
|
};
|
|
9960
10359
|
|
|
10360
|
+
/**
|
|
10361
|
+
* @interface
|
|
10362
|
+
*/
|
|
9961
10363
|
declare type PlatformViewCreationOptions = Partial<ViewOptions>;
|
|
9962
10364
|
|
|
9963
10365
|
/**
|
|
@@ -9984,6 +10386,9 @@ declare type PlatformWindowOptions = WindowCreationOptions & {
|
|
|
9984
10386
|
stylesheetUrl: string;
|
|
9985
10387
|
};
|
|
9986
10388
|
|
|
10389
|
+
/**
|
|
10390
|
+
* @interface
|
|
10391
|
+
*/
|
|
9987
10392
|
declare type Point = {
|
|
9988
10393
|
/**
|
|
9989
10394
|
* The mouse x position
|
|
@@ -9995,6 +10400,9 @@ declare type Point = {
|
|
|
9995
10400
|
y: number;
|
|
9996
10401
|
};
|
|
9997
10402
|
|
|
10403
|
+
/**
|
|
10404
|
+
* @interface
|
|
10405
|
+
*/
|
|
9998
10406
|
declare type PointTopLeft = {
|
|
9999
10407
|
/**
|
|
10000
10408
|
* The mouse top position in virtual screen coordinates
|
|
@@ -10014,8 +10422,10 @@ declare type PopupInteraction = 'clicked' | 'dismissed';
|
|
|
10014
10422
|
|
|
10015
10423
|
/**
|
|
10016
10424
|
* Popup window options.
|
|
10425
|
+
*
|
|
10426
|
+
* @interface
|
|
10017
10427
|
*/
|
|
10018
|
-
declare
|
|
10428
|
+
declare type PopupOptions = {
|
|
10019
10429
|
/**
|
|
10020
10430
|
* Window creation options when using `showPopupWindow` to create a new window.
|
|
10021
10431
|
*/
|
|
@@ -10089,14 +10499,15 @@ declare interface PopupOptions {
|
|
|
10089
10499
|
* <br>Note: If this is defined, `showPopupWindow` will not return a `PopupResult`.
|
|
10090
10500
|
*/
|
|
10091
10501
|
onPopupResult?: (payload: PopupResult) => any;
|
|
10092
|
-
}
|
|
10502
|
+
};
|
|
10093
10503
|
|
|
10094
10504
|
/**
|
|
10095
10505
|
* The Popup result.
|
|
10096
10506
|
*
|
|
10097
10507
|
* @typeParam T - Type of data the Popup result contains
|
|
10508
|
+
* @interface
|
|
10098
10509
|
*/
|
|
10099
|
-
declare
|
|
10510
|
+
declare type PopupResult<T = any> = {
|
|
10100
10511
|
/**
|
|
10101
10512
|
* `name` and `uuid` of the popup window that called dispatched this result.
|
|
10102
10513
|
*/
|
|
@@ -10116,7 +10527,7 @@ declare interface PopupResult<T = any> {
|
|
|
10116
10527
|
* The last dispatch result.
|
|
10117
10528
|
*/
|
|
10118
10529
|
lastDispatchResult?: PopupResult;
|
|
10119
|
-
}
|
|
10530
|
+
};
|
|
10120
10531
|
|
|
10121
10532
|
declare type PopupResultBehavior = 'none' | PopupBaseBehavior;
|
|
10122
10533
|
|
|
@@ -10145,14 +10556,17 @@ declare type Position = TransitionBase & {
|
|
|
10145
10556
|
fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
|
|
10146
10557
|
```
|
|
10147
10558
|
*/
|
|
10148
|
-
|
|
10559
|
+
/**
|
|
10560
|
+
* @interface
|
|
10561
|
+
*/
|
|
10562
|
+
declare type PositioningOptions = {
|
|
10149
10563
|
/**
|
|
10150
10564
|
* Windows Only.
|
|
10151
10565
|
* If set to true, will not restore a maximized window before setting the bounds.
|
|
10152
10566
|
* This will have the effect of the maximized window staying maximized and not immediately taking this new position.
|
|
10153
10567
|
*/
|
|
10154
10568
|
skipRestore?: boolean;
|
|
10155
|
-
}
|
|
10569
|
+
};
|
|
10156
10570
|
|
|
10157
10571
|
/**
|
|
10158
10572
|
* Context menu item with an implementation provided by OpenFin.
|
|
@@ -10161,6 +10575,8 @@ declare type PrebuiltContextMenuItem = 'separator' | 'undo' | 'redo' | 'cut' | '
|
|
|
10161
10575
|
|
|
10162
10576
|
/**
|
|
10163
10577
|
* A script that is run before page load.
|
|
10578
|
+
*
|
|
10579
|
+
* @interface
|
|
10164
10580
|
*/
|
|
10165
10581
|
declare type PreloadScript = {
|
|
10166
10582
|
/**
|
|
@@ -10221,6 +10637,9 @@ declare type PreloadScriptsStateChangingEvent = PreloadScriptsStateChangeEvent &
|
|
|
10221
10637
|
|
|
10222
10638
|
declare type PresetLayoutOptions = OpenFin_2.PresetLayoutOptions;
|
|
10223
10639
|
|
|
10640
|
+
/**
|
|
10641
|
+
* @interface
|
|
10642
|
+
*/
|
|
10224
10643
|
declare type PresetLayoutOptions_2 = {
|
|
10225
10644
|
/**
|
|
10226
10645
|
* Which preset layout arrangement to use.
|
|
@@ -10231,23 +10650,44 @@ declare type PresetLayoutOptions_2 = {
|
|
|
10231
10650
|
|
|
10232
10651
|
declare type PrinterInfo = OpenFin_2.PrinterInfo;
|
|
10233
10652
|
|
|
10653
|
+
/**
|
|
10654
|
+
* @interface
|
|
10655
|
+
*/
|
|
10234
10656
|
declare type PrinterInfo_2 = {
|
|
10657
|
+
/**
|
|
10658
|
+
* Printer Name
|
|
10659
|
+
*/
|
|
10235
10660
|
name: string;
|
|
10661
|
+
/**
|
|
10662
|
+
* Printer Description
|
|
10663
|
+
*/
|
|
10236
10664
|
description: string;
|
|
10665
|
+
/**
|
|
10666
|
+
* Printer Status
|
|
10667
|
+
*/
|
|
10237
10668
|
status: number;
|
|
10669
|
+
/**
|
|
10670
|
+
* Indicates that system's default printer.
|
|
10671
|
+
*/
|
|
10238
10672
|
isDefault: boolean;
|
|
10239
10673
|
};
|
|
10240
10674
|
|
|
10241
10675
|
/**
|
|
10242
10676
|
* Options for printing a webpage in OpenFin.
|
|
10677
|
+
*
|
|
10678
|
+
* @interface
|
|
10243
10679
|
*/
|
|
10244
10680
|
declare type PrintOptions = {
|
|
10245
10681
|
content?: 'self';
|
|
10246
10682
|
/**
|
|
10683
|
+
* @defaultValue false
|
|
10684
|
+
*
|
|
10247
10685
|
* Disables prompting the user for print settings.
|
|
10248
10686
|
*/
|
|
10249
10687
|
silent?: boolean;
|
|
10250
10688
|
/**
|
|
10689
|
+
* @defaultValue false
|
|
10690
|
+
*
|
|
10251
10691
|
* Includes the webpage background color and image when printing.
|
|
10252
10692
|
*/
|
|
10253
10693
|
printBackground?: boolean;
|
|
@@ -10256,6 +10696,8 @@ declare type PrintOptions = {
|
|
|
10256
10696
|
*/
|
|
10257
10697
|
deviceName?: string;
|
|
10258
10698
|
/**
|
|
10699
|
+
* @defaultValue true
|
|
10700
|
+
*
|
|
10259
10701
|
* Prints in full color (greyscale otherwise).
|
|
10260
10702
|
*/
|
|
10261
10703
|
color?: boolean;
|
|
@@ -10264,6 +10706,8 @@ declare type PrintOptions = {
|
|
|
10264
10706
|
*/
|
|
10265
10707
|
margins?: Margins;
|
|
10266
10708
|
/**
|
|
10709
|
+
* @defaultValue true
|
|
10710
|
+
*
|
|
10267
10711
|
* Prints in landscape mode (portrait otherwise).
|
|
10268
10712
|
*/
|
|
10269
10713
|
landscape?: boolean;
|
|
@@ -10305,6 +10749,9 @@ declare type PrintOptions = {
|
|
|
10305
10749
|
*/
|
|
10306
10750
|
declare type ProcessAffinityStrategy = 'same' | 'different';
|
|
10307
10751
|
|
|
10752
|
+
/**
|
|
10753
|
+
* @interface
|
|
10754
|
+
*/
|
|
10308
10755
|
declare type ProcessDetails = {
|
|
10309
10756
|
/**
|
|
10310
10757
|
* The percentage of total CPU usage.
|
|
@@ -10352,8 +10799,10 @@ declare type ProcessDetails = {
|
|
|
10352
10799
|
|
|
10353
10800
|
/**
|
|
10354
10801
|
* Process logging options
|
|
10802
|
+
*
|
|
10803
|
+
* @interface
|
|
10355
10804
|
*/
|
|
10356
|
-
declare
|
|
10805
|
+
declare type ProcessLoggingOptions = {
|
|
10357
10806
|
/**
|
|
10358
10807
|
* Periodic Logging Interval (in seconds)
|
|
10359
10808
|
*/
|
|
@@ -10371,7 +10820,7 @@ declare interface ProcessLoggingOptions {
|
|
|
10371
10820
|
*/
|
|
10372
10821
|
entries?: number;
|
|
10373
10822
|
};
|
|
10374
|
-
}
|
|
10823
|
+
};
|
|
10375
10824
|
|
|
10376
10825
|
/**
|
|
10377
10826
|
* A propagated Application event.
|
|
@@ -10678,6 +11127,9 @@ declare type ProviderIdentity_7 = Identity_5 & {
|
|
|
10678
11127
|
|
|
10679
11128
|
declare type ProxyConfig = OpenFin_2.ProxyConfig;
|
|
10680
11129
|
|
|
11130
|
+
/**
|
|
11131
|
+
* @interface
|
|
11132
|
+
*/
|
|
10681
11133
|
declare type ProxyConfig_2 = {
|
|
10682
11134
|
/**
|
|
10683
11135
|
* The configured proxy address.
|
|
@@ -10692,11 +11144,17 @@ declare type ProxyConfig_2 = {
|
|
|
10692
11144
|
|
|
10693
11145
|
declare type ProxyInfo = OpenFin_2.ProxyInfo;
|
|
10694
11146
|
|
|
11147
|
+
/**
|
|
11148
|
+
* @interface
|
|
11149
|
+
*/
|
|
10695
11150
|
declare type ProxyInfo_2 = {
|
|
10696
11151
|
config: ProxyConfig_2;
|
|
10697
11152
|
system: ProxySystemInfo;
|
|
10698
11153
|
};
|
|
10699
11154
|
|
|
11155
|
+
/**
|
|
11156
|
+
* @interface
|
|
11157
|
+
*/
|
|
10700
11158
|
declare type ProxySystemInfo = {
|
|
10701
11159
|
/**
|
|
10702
11160
|
* The auto configuration url.
|
|
@@ -10716,6 +11174,9 @@ declare type ProxySystemInfo = {
|
|
|
10716
11174
|
proxy: string;
|
|
10717
11175
|
};
|
|
10718
11176
|
|
|
11177
|
+
/**
|
|
11178
|
+
* @interface
|
|
11179
|
+
*/
|
|
10719
11180
|
declare type QueryPermissionResult = {
|
|
10720
11181
|
/**
|
|
10721
11182
|
* The full name of a secured API.
|
|
@@ -10741,6 +11202,8 @@ declare type ReadImageClipboardRequest = BaseClipboardRequest & ImageFormatOptio
|
|
|
10741
11202
|
* A rectangular area on the screen.
|
|
10742
11203
|
*
|
|
10743
11204
|
* @remarks Origin is top-left. All numbers are in pixels.
|
|
11205
|
+
*
|
|
11206
|
+
* @interface
|
|
10744
11207
|
*/
|
|
10745
11208
|
declare type Rectangle = {
|
|
10746
11209
|
/**
|
|
@@ -10761,6 +11224,9 @@ declare type Rectangle = {
|
|
|
10761
11224
|
height: number;
|
|
10762
11225
|
};
|
|
10763
11226
|
|
|
11227
|
+
/**
|
|
11228
|
+
* @interface
|
|
11229
|
+
*/
|
|
10764
11230
|
declare type RectangleByEdgePositions = {
|
|
10765
11231
|
top: number;
|
|
10766
11232
|
left: number;
|
|
@@ -10776,6 +11242,9 @@ declare type RegisteredEvent = BaseEvent & {
|
|
|
10776
11242
|
type: 'registered';
|
|
10777
11243
|
};
|
|
10778
11244
|
|
|
11245
|
+
/**
|
|
11246
|
+
* @interface
|
|
11247
|
+
*/
|
|
10779
11248
|
declare type RegisterUsageData = {
|
|
10780
11249
|
data: unknown;
|
|
10781
11250
|
type: string;
|
|
@@ -10783,6 +11252,9 @@ declare type RegisterUsageData = {
|
|
|
10783
11252
|
|
|
10784
11253
|
declare type RegistryInfo = OpenFin_2.RegistryInfo;
|
|
10785
11254
|
|
|
11255
|
+
/**
|
|
11256
|
+
* @interface
|
|
11257
|
+
*/
|
|
10786
11258
|
declare type RegistryInfo_2 = {
|
|
10787
11259
|
data: any;
|
|
10788
11260
|
rootKey: string;
|
|
@@ -10804,6 +11276,9 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
|
10804
11276
|
token: string;
|
|
10805
11277
|
}
|
|
10806
11278
|
|
|
11279
|
+
/**
|
|
11280
|
+
* @interface
|
|
11281
|
+
*/
|
|
10807
11282
|
declare type ReplaceLayoutOpts = {
|
|
10808
11283
|
/**
|
|
10809
11284
|
* Layout config to be applied.
|
|
@@ -10811,6 +11286,9 @@ declare type ReplaceLayoutOpts = {
|
|
|
10811
11286
|
layout: LayoutOptions;
|
|
10812
11287
|
};
|
|
10813
11288
|
|
|
11289
|
+
/**
|
|
11290
|
+
* @interface
|
|
11291
|
+
*/
|
|
10814
11292
|
declare type ReplaceLayoutPayload = {
|
|
10815
11293
|
/**
|
|
10816
11294
|
* Object containing the layout to be applied.
|
|
@@ -10822,6 +11300,9 @@ declare type ReplaceLayoutPayload = {
|
|
|
10822
11300
|
target: Identity_5;
|
|
10823
11301
|
};
|
|
10824
11302
|
|
|
11303
|
+
/**
|
|
11304
|
+
* @interface
|
|
11305
|
+
*/
|
|
10825
11306
|
declare type ReplaceViewPayload = {
|
|
10826
11307
|
opts: {
|
|
10827
11308
|
viewToReplace: Identity_5;
|
|
@@ -10832,6 +11313,8 @@ declare type ReplaceViewPayload = {
|
|
|
10832
11313
|
|
|
10833
11314
|
/**
|
|
10834
11315
|
* Defines a region in pixels that will respond to user mouse interaction for resizing a frameless window.
|
|
11316
|
+
*
|
|
11317
|
+
* @interface
|
|
10835
11318
|
*/
|
|
10836
11319
|
declare type ResizeRegion = {
|
|
10837
11320
|
/**
|
|
@@ -10911,6 +11394,9 @@ declare type RespondingEvent = IdentityEvent & {
|
|
|
10911
11394
|
|
|
10912
11395
|
declare type ResultBehavior = 'close' | 'hide' | 'none';
|
|
10913
11396
|
|
|
11397
|
+
/**
|
|
11398
|
+
* @interface
|
|
11399
|
+
*/
|
|
10914
11400
|
declare type RGB = {
|
|
10915
11401
|
red: number;
|
|
10916
11402
|
blue: number;
|
|
@@ -10985,6 +11471,8 @@ declare type RuntimeConfig = {
|
|
|
10985
11471
|
|
|
10986
11472
|
/**
|
|
10987
11473
|
* The options object required by the downloadRuntime function.
|
|
11474
|
+
*
|
|
11475
|
+
* @interface
|
|
10988
11476
|
*/
|
|
10989
11477
|
declare type RuntimeDownloadOptions = {
|
|
10990
11478
|
/**
|
|
@@ -10993,6 +11481,9 @@ declare type RuntimeDownloadOptions = {
|
|
|
10993
11481
|
version: string;
|
|
10994
11482
|
};
|
|
10995
11483
|
|
|
11484
|
+
/**
|
|
11485
|
+
* @interface
|
|
11486
|
+
*/
|
|
10996
11487
|
declare type RuntimeDownloadProgress = {
|
|
10997
11488
|
/**
|
|
10998
11489
|
* @property { string } alias The name of the asset
|
|
@@ -11006,6 +11497,9 @@ declare type RuntimeErrorPayload = {
|
|
|
11006
11497
|
error?: ErrorPlainObject;
|
|
11007
11498
|
};
|
|
11008
11499
|
|
|
11500
|
+
/**
|
|
11501
|
+
* @interface
|
|
11502
|
+
*/
|
|
11009
11503
|
declare type RuntimeInfo = {
|
|
11010
11504
|
/**
|
|
11011
11505
|
* The runtime build architecture.
|
|
@@ -11036,6 +11530,9 @@ declare type RuntimeInfo = {
|
|
|
11036
11530
|
devtoolsPort?: number;
|
|
11037
11531
|
};
|
|
11038
11532
|
|
|
11533
|
+
/**
|
|
11534
|
+
* @interface
|
|
11535
|
+
*/
|
|
11039
11536
|
declare type RVMInfo = {
|
|
11040
11537
|
/**
|
|
11041
11538
|
* The name of action: "get-rvm-info".
|
|
@@ -11063,6 +11560,9 @@ declare type RVMInfo = {
|
|
|
11063
11560
|
'working-dir': string;
|
|
11064
11561
|
};
|
|
11065
11562
|
|
|
11563
|
+
/**
|
|
11564
|
+
* @interface
|
|
11565
|
+
*/
|
|
11066
11566
|
declare type RvmLaunchOptions = {
|
|
11067
11567
|
/**
|
|
11068
11568
|
* True if no UI when launching
|
|
@@ -11079,6 +11579,9 @@ declare type RvmLaunchOptions = {
|
|
|
11079
11579
|
subscribe?: (launch: LaunchEmitter) => void;
|
|
11080
11580
|
};
|
|
11081
11581
|
|
|
11582
|
+
/**
|
|
11583
|
+
* @interface
|
|
11584
|
+
*/
|
|
11082
11585
|
declare type ScreenshotPrintOptions = {
|
|
11083
11586
|
content: 'screenshot';
|
|
11084
11587
|
};
|
|
@@ -11087,6 +11590,9 @@ declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
|
|
|
11087
11590
|
data: ProtocolMap[T]['response'];
|
|
11088
11591
|
} & ProtocolMap[T]['specialResponse']>;
|
|
11089
11592
|
|
|
11593
|
+
/**
|
|
11594
|
+
* @interface
|
|
11595
|
+
*/
|
|
11090
11596
|
declare type SendApplicationLogResponse = {
|
|
11091
11597
|
logId: string;
|
|
11092
11598
|
};
|
|
@@ -11101,6 +11607,9 @@ declare type ServiceConfig = {
|
|
|
11101
11607
|
manifestUrl: string;
|
|
11102
11608
|
};
|
|
11103
11609
|
|
|
11610
|
+
/**
|
|
11611
|
+
* @interface
|
|
11612
|
+
*/
|
|
11104
11613
|
declare type ServiceConfiguration = {
|
|
11105
11614
|
config: object;
|
|
11106
11615
|
/**
|
|
@@ -11109,6 +11618,9 @@ declare type ServiceConfiguration = {
|
|
|
11109
11618
|
name: string;
|
|
11110
11619
|
};
|
|
11111
11620
|
|
|
11621
|
+
/**
|
|
11622
|
+
* @interface
|
|
11623
|
+
*/
|
|
11112
11624
|
declare type ServiceIdentifier = {
|
|
11113
11625
|
/**
|
|
11114
11626
|
* The name of the service.
|
|
@@ -11125,15 +11637,41 @@ declare type SessionChangedEvent = {
|
|
|
11125
11637
|
reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
|
|
11126
11638
|
};
|
|
11127
11639
|
|
|
11640
|
+
/**
|
|
11641
|
+
* An instance of a SessionContextGroup
|
|
11642
|
+
*/
|
|
11643
|
+
/**
|
|
11644
|
+
* @interface
|
|
11645
|
+
*/
|
|
11128
11646
|
declare type SessionContextGroup = {
|
|
11647
|
+
/**
|
|
11648
|
+
* The SessionContextGroup's id.
|
|
11649
|
+
*/
|
|
11129
11650
|
id: string;
|
|
11651
|
+
/**
|
|
11652
|
+
* A SessionContextGroup instance method for setting a context in the SessionContextGroup.
|
|
11653
|
+
* @param context The Context to be set.
|
|
11654
|
+
*/
|
|
11130
11655
|
setContext: (context: Context) => Promise<void>;
|
|
11656
|
+
/**
|
|
11657
|
+
* A SessionContextGroup instance method for getting the current context of a certain type.
|
|
11658
|
+
* @param type The Context Type to get. If not specified the last contextType set would get used.
|
|
11659
|
+
*/
|
|
11131
11660
|
getCurrentContext: (type?: string) => Promise<Context>;
|
|
11661
|
+
/**
|
|
11662
|
+
* A SessionContextGroup instance method for adding a handler for context change.
|
|
11663
|
+
* @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.
|
|
11664
|
+
* @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.
|
|
11665
|
+
*
|
|
11666
|
+
*/
|
|
11132
11667
|
addContextHandler: (handler: ContextHandler, contextType?: string) => Promise<{
|
|
11133
11668
|
unsubscribe: () => void;
|
|
11134
11669
|
}>;
|
|
11135
11670
|
};
|
|
11136
11671
|
|
|
11672
|
+
/**
|
|
11673
|
+
* @interface
|
|
11674
|
+
*/
|
|
11137
11675
|
declare type SetWindowContextPayload = {
|
|
11138
11676
|
/**
|
|
11139
11677
|
* The requested context update.
|
|
@@ -11149,11 +11687,23 @@ declare type SetWindowContextPayload = {
|
|
|
11149
11687
|
target: Identity_5;
|
|
11150
11688
|
};
|
|
11151
11689
|
|
|
11690
|
+
/**
|
|
11691
|
+
* @interface
|
|
11692
|
+
*/
|
|
11152
11693
|
declare type SharedWorkerInfo = {
|
|
11694
|
+
/**
|
|
11695
|
+
* The unique id of the shared worker.
|
|
11696
|
+
*/
|
|
11153
11697
|
id: string;
|
|
11698
|
+
/**
|
|
11699
|
+
* The url of the shared worker.
|
|
11700
|
+
*/
|
|
11154
11701
|
url: string;
|
|
11155
11702
|
};
|
|
11156
11703
|
|
|
11704
|
+
/**
|
|
11705
|
+
* @interface
|
|
11706
|
+
*/
|
|
11157
11707
|
declare type ShortCutConfig = {
|
|
11158
11708
|
/**
|
|
11159
11709
|
* True if application has a shortcut on the desktop.
|
|
@@ -11184,14 +11734,34 @@ declare type ShownEvent = BaseViewEvent & {
|
|
|
11184
11734
|
type: 'shown';
|
|
11185
11735
|
};
|
|
11186
11736
|
|
|
11187
|
-
|
|
11188
|
-
|
|
11737
|
+
/**
|
|
11738
|
+
* Options for showing a popup menu
|
|
11739
|
+
*
|
|
11740
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
11741
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
11742
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
11743
|
+
* these with a "reducer" pattern.
|
|
11744
|
+
*
|
|
11745
|
+
* @interface
|
|
11746
|
+
*/
|
|
11747
|
+
declare type ShowPopupMenuOptions<Data extends unknown = unknown> = {
|
|
11748
|
+
/**
|
|
11749
|
+
* An array describing the menu to show.
|
|
11750
|
+
*/
|
|
11751
|
+
template: MenuItemTemplate<Data>[];
|
|
11752
|
+
/**
|
|
11753
|
+
* The window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.
|
|
11754
|
+
*/
|
|
11189
11755
|
x?: number;
|
|
11756
|
+
/**
|
|
11757
|
+
* The window y coordinate where to show the menu. Defaults to mouse position. If using must also use x
|
|
11758
|
+
*/
|
|
11190
11759
|
y?: number;
|
|
11191
11760
|
};
|
|
11192
11761
|
|
|
11193
11762
|
/**
|
|
11194
11763
|
* _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user.
|
|
11764
|
+
*
|
|
11195
11765
|
* @interface
|
|
11196
11766
|
*/
|
|
11197
11767
|
declare type ShowViewOnWindowResizeOptions = ViewVisibilityOption & {
|
|
@@ -11223,7 +11793,13 @@ declare type Size = TransitionBase & {
|
|
|
11223
11793
|
height: number;
|
|
11224
11794
|
};
|
|
11225
11795
|
|
|
11796
|
+
/**
|
|
11797
|
+
* @interface
|
|
11798
|
+
*/
|
|
11226
11799
|
declare type Snapshot = {
|
|
11800
|
+
/**
|
|
11801
|
+
* The array of window options objects
|
|
11802
|
+
*/
|
|
11227
11803
|
windows: WindowCreationOptions[];
|
|
11228
11804
|
snapshotDetails?: {
|
|
11229
11805
|
monitorInfo: MonitorInfo;
|
|
@@ -11235,6 +11811,9 @@ declare type Snapshot = {
|
|
|
11235
11811
|
};
|
|
11236
11812
|
};
|
|
11237
11813
|
|
|
11814
|
+
/**
|
|
11815
|
+
* @interface
|
|
11816
|
+
*/
|
|
11238
11817
|
declare type SnapshotProvider<Snapshot = unknown> = {
|
|
11239
11818
|
getSnapshot: () => Promise<Snapshot>;
|
|
11240
11819
|
applySnapshot: (snapshot: Snapshot) => Promise<void>;
|
|
@@ -11384,6 +11963,9 @@ declare type StartedEvent = IdentityEvent & {
|
|
|
11384
11963
|
type: 'started';
|
|
11385
11964
|
};
|
|
11386
11965
|
|
|
11966
|
+
/**
|
|
11967
|
+
* @interface
|
|
11968
|
+
*/
|
|
11387
11969
|
declare type SubscriptionOptions = {
|
|
11388
11970
|
/**
|
|
11389
11971
|
* The event timestamp.
|
|
@@ -12879,6 +13461,9 @@ declare namespace SystemEvents {
|
|
|
12879
13461
|
*/
|
|
12880
13462
|
declare type SystemEventType = SystemEvent['type'];
|
|
12881
13463
|
|
|
13464
|
+
/**
|
|
13465
|
+
* @interface
|
|
13466
|
+
*/
|
|
12882
13467
|
declare type SystemPermissions = {
|
|
12883
13468
|
getAllExternalWindows: boolean;
|
|
12884
13469
|
launchExternalProcess: boolean | {
|
|
@@ -12906,6 +13491,9 @@ declare type SystemPermissions = {
|
|
|
12906
13491
|
};
|
|
12907
13492
|
};
|
|
12908
13493
|
|
|
13494
|
+
/**
|
|
13495
|
+
* @interface
|
|
13496
|
+
*/
|
|
12909
13497
|
declare type SystemProcessInfo = {
|
|
12910
13498
|
apps: AppProcessInfo[];
|
|
12911
13499
|
browserProcess: NonAppProcessDetails;
|
|
@@ -13191,6 +13779,9 @@ declare type TaskBar = DipScaleRects & {
|
|
|
13191
13779
|
rect: RectangleByEdgePositions;
|
|
13192
13780
|
};
|
|
13193
13781
|
|
|
13782
|
+
/**
|
|
13783
|
+
* @interface
|
|
13784
|
+
*/
|
|
13194
13785
|
declare type TerminateExternalRequestType = {
|
|
13195
13786
|
/**
|
|
13196
13787
|
* The uuid of the running application.
|
|
@@ -13206,6 +13797,9 @@ declare type TerminateExternalRequestType = {
|
|
|
13206
13797
|
killTree: boolean;
|
|
13207
13798
|
};
|
|
13208
13799
|
|
|
13800
|
+
/**
|
|
13801
|
+
* @interface
|
|
13802
|
+
*/
|
|
13209
13803
|
declare type Time = {
|
|
13210
13804
|
/**
|
|
13211
13805
|
* The number of milliseconds the CPU has spent in user mode.
|
|
@@ -13229,14 +13823,28 @@ declare type Time = {
|
|
|
13229
13823
|
irq: number;
|
|
13230
13824
|
};
|
|
13231
13825
|
|
|
13826
|
+
/**
|
|
13827
|
+
* @interface
|
|
13828
|
+
*/
|
|
13232
13829
|
declare type Transition = {
|
|
13830
|
+
/**
|
|
13831
|
+
* The Opacity transition
|
|
13832
|
+
*/
|
|
13233
13833
|
opacity?: Opacity;
|
|
13834
|
+
/**
|
|
13835
|
+
* The Position transition
|
|
13836
|
+
*/
|
|
13234
13837
|
position?: Position;
|
|
13838
|
+
/**
|
|
13839
|
+
* The Size transition
|
|
13840
|
+
*/
|
|
13235
13841
|
size?: Size;
|
|
13236
13842
|
};
|
|
13237
13843
|
|
|
13238
13844
|
/**
|
|
13239
13845
|
* Base configuration options needed for all types of transitions.
|
|
13846
|
+
*
|
|
13847
|
+
* @interface
|
|
13240
13848
|
*/
|
|
13241
13849
|
declare type TransitionBase = {
|
|
13242
13850
|
/**
|
|
@@ -13253,6 +13861,8 @@ declare type TransitionBase = {
|
|
|
13253
13861
|
|
|
13254
13862
|
/**
|
|
13255
13863
|
* Configuration for transition between windows.
|
|
13864
|
+
*
|
|
13865
|
+
* @interface
|
|
13256
13866
|
*/
|
|
13257
13867
|
declare type TransitionOptions = {
|
|
13258
13868
|
/**
|
|
@@ -13313,6 +13923,9 @@ declare type TrayIconClickedEvent = IdentityEvent & {
|
|
|
13313
13923
|
monitorInfo: any;
|
|
13314
13924
|
};
|
|
13315
13925
|
|
|
13926
|
+
/**
|
|
13927
|
+
* @interface
|
|
13928
|
+
*/
|
|
13316
13929
|
declare type TrayInfo = {
|
|
13317
13930
|
/**
|
|
13318
13931
|
* The bound of tray icon in virtual screen pixels.
|
|
@@ -13362,9 +13975,14 @@ declare type UnregisteredEvent = BaseEvent & {
|
|
|
13362
13975
|
|
|
13363
13976
|
/**
|
|
13364
13977
|
* View options that can be updated after creation.
|
|
13978
|
+
*
|
|
13979
|
+
* @interface
|
|
13365
13980
|
*/
|
|
13366
13981
|
declare type UpdatableViewOptions = Partial<MutableViewOptions>;
|
|
13367
13982
|
|
|
13983
|
+
/**
|
|
13984
|
+
* @interface
|
|
13985
|
+
*/
|
|
13368
13986
|
declare type UpdatableWindowOptions = Partial<MutableWindowOptions>;
|
|
13369
13987
|
|
|
13370
13988
|
/**
|
|
@@ -14068,6 +14686,9 @@ declare namespace ViewEvents {
|
|
|
14068
14686
|
*/
|
|
14069
14687
|
declare type ViewEventType = ViewEvent['type'];
|
|
14070
14688
|
|
|
14689
|
+
/**
|
|
14690
|
+
* @interface
|
|
14691
|
+
*/
|
|
14071
14692
|
declare type ViewInfo = {
|
|
14072
14693
|
canNavigateBack: boolean;
|
|
14073
14694
|
canNavigateForward: boolean;
|
|
@@ -14202,6 +14823,7 @@ declare class ViewOverlay {
|
|
|
14202
14823
|
|
|
14203
14824
|
/**
|
|
14204
14825
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
|
14826
|
+
* @interface
|
|
14205
14827
|
*/
|
|
14206
14828
|
declare interface ViewsPreventingUnloadPayload {
|
|
14207
14829
|
/**
|
|
@@ -14237,6 +14859,8 @@ declare type ViewState = ViewCreationOptions & {
|
|
|
14237
14859
|
};
|
|
14238
14860
|
|
|
14239
14861
|
/**
|
|
14862
|
+
* @interface
|
|
14863
|
+
*
|
|
14240
14864
|
* The statuses of views specifying which of them are trying to prevent an unload and which are not.
|
|
14241
14865
|
*/
|
|
14242
14866
|
declare interface ViewStatuses {
|
|
@@ -14252,13 +14876,22 @@ declare interface ViewStatuses {
|
|
|
14252
14876
|
|
|
14253
14877
|
/**
|
|
14254
14878
|
* Configuration for view visibility settings
|
|
14879
|
+
*
|
|
14880
|
+
* @interface
|
|
14255
14881
|
*/
|
|
14256
14882
|
declare type ViewVisibilityOption = {
|
|
14883
|
+
/**
|
|
14884
|
+
* @defaultValue false
|
|
14885
|
+
*
|
|
14886
|
+
* Enables or disables showing views when the layout splitter or a tab is being dragged.
|
|
14887
|
+
*/
|
|
14257
14888
|
enabled?: boolean;
|
|
14258
14889
|
};
|
|
14259
14890
|
|
|
14260
14891
|
/**
|
|
14261
14892
|
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
|
14893
|
+
*
|
|
14894
|
+
* @interface
|
|
14262
14895
|
*/
|
|
14263
14896
|
declare type ViewVisibilityOptions = {
|
|
14264
14897
|
/**
|
|
@@ -14281,8 +14914,12 @@ declare type WebContent = View_2 | _Window;
|
|
|
14281
14914
|
|
|
14282
14915
|
declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
14283
14916
|
identity: OpenFin_2.Identity;
|
|
14284
|
-
entityType:
|
|
14285
|
-
|
|
14917
|
+
entityType: 'window' | 'view';
|
|
14918
|
+
/**
|
|
14919
|
+
* @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
|
|
14920
|
+
* @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
|
|
14921
|
+
*/
|
|
14922
|
+
constructor(wire: Transport, identity: OpenFin_2.Identity, entityType: 'window' | 'view');
|
|
14286
14923
|
/**
|
|
14287
14924
|
* Gets a base64 encoded image of all or part of the WebContents.
|
|
14288
14925
|
* @param options Options for the capturePage call.
|
|
@@ -16695,7 +17332,10 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16695
17332
|
* Calling this method will close previously opened menus.
|
|
16696
17333
|
* @experimental
|
|
16697
17334
|
* @param options
|
|
16698
|
-
*
|
|
17335
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
17336
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
17337
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
17338
|
+
* these with a "reducer" pattern.
|
|
16699
17339
|
* @example
|
|
16700
17340
|
* This could be used to show a drop down menu over views in a platform window:
|
|
16701
17341
|
* ```js
|
|
@@ -16762,7 +17402,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16762
17402
|
* })
|
|
16763
17403
|
* ```
|
|
16764
17404
|
*/
|
|
16765
|
-
showPopupMenu<
|
|
17405
|
+
showPopupMenu<Data>(options: OpenFin_2.ShowPopupMenuOptions<Data>): Promise<OpenFin_2.MenuResult<Data>>;
|
|
16766
17406
|
/**
|
|
16767
17407
|
* Closes the window's popup menu, if one exists.
|
|
16768
17408
|
* @experimental
|
|
@@ -16925,6 +17565,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16925
17565
|
|
|
16926
17566
|
declare type WindowCreationReason = 'tearout' | 'create-view-without-target' | 'api-call' | 'app-creation' | 'restore' | 'apply-snapshot';
|
|
16927
17567
|
|
|
17568
|
+
/**
|
|
17569
|
+
* @interface
|
|
17570
|
+
*/
|
|
16928
17571
|
declare type WindowDetail = {
|
|
16929
17572
|
/**
|
|
16930
17573
|
* The bottom-most coordinate of the window.
|
|
@@ -17055,6 +17698,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17055
17698
|
type: 'hotkey';
|
|
17056
17699
|
};
|
|
17057
17700
|
|
|
17701
|
+
/**
|
|
17702
|
+
* @interface
|
|
17703
|
+
*/
|
|
17058
17704
|
declare type WindowInfo = {
|
|
17059
17705
|
canNavigateBack: boolean;
|
|
17060
17706
|
canNavigateForward: boolean;
|
|
@@ -17170,6 +17816,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17170
17816
|
type: 'window-not-responding';
|
|
17171
17817
|
};
|
|
17172
17818
|
|
|
17819
|
+
/**
|
|
17820
|
+
* @interface
|
|
17821
|
+
*/
|
|
17173
17822
|
declare type WindowOptionDiff = {
|
|
17174
17823
|
[key in keyof WindowOptions]: {
|
|
17175
17824
|
oldVal: WindowOptions[key];
|
|
@@ -17243,6 +17892,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17243
17892
|
*/
|
|
17244
17893
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
|
17245
17894
|
|
|
17895
|
+
/**
|
|
17896
|
+
* @interface
|
|
17897
|
+
*/
|
|
17246
17898
|
declare type WindowViewsPrintOptions = {
|
|
17247
17899
|
content: 'views';
|
|
17248
17900
|
includeSelf?: boolean;
|
|
@@ -17278,6 +17930,10 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17278
17930
|
positioningOptions?: OpenFin_2.PositioningOptions;
|
|
17279
17931
|
};
|
|
17280
17932
|
|
|
17933
|
+
/**
|
|
17934
|
+
* @internal
|
|
17935
|
+
* @interface
|
|
17936
|
+
*/
|
|
17281
17937
|
declare type WorkspacePlatformOptions = {
|
|
17282
17938
|
/** Leaving this as any for now until we figure out what the shape should look like in Workspace */
|
|
17283
17939
|
[key: string]: any;
|
|
@@ -17288,6 +17944,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17288
17944
|
* @interface
|
|
17289
17945
|
*/
|
|
17290
17946
|
declare type WriteAnyClipboardRequest = BaseClipboardRequest & {
|
|
17947
|
+
/**
|
|
17948
|
+
* Data to be written
|
|
17949
|
+
*/
|
|
17291
17950
|
data: {
|
|
17292
17951
|
text?: string;
|
|
17293
17952
|
html?: string;
|
|
@@ -17299,6 +17958,8 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17299
17958
|
* @deprecated - instead use WriteAnyClipboardRequest
|
|
17300
17959
|
*
|
|
17301
17960
|
* A generic request to write any supported data to the clipboard.
|
|
17961
|
+
*
|
|
17962
|
+
* @interface
|
|
17302
17963
|
*/
|
|
17303
17964
|
declare type WriteAnyRequestType = WriteAnyClipboardRequest;
|
|
17304
17965
|
|
|
@@ -17329,6 +17990,8 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17329
17990
|
* @deprecated - instead use OpenFin.WriteClipboardRequest
|
|
17330
17991
|
*
|
|
17331
17992
|
* A request to write data to the clipboard.
|
|
17993
|
+
*
|
|
17994
|
+
* @interface
|
|
17332
17995
|
*/
|
|
17333
17996
|
declare type WriteRequestType = WriteClipboardRequest;
|
|
17334
17997
|
|