@openfin/core 34.78.2 → 34.78.5
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 +14 -153
- package/out/mock-beta.d.ts +14 -153
- package/out/mock-public.d.ts +14 -153
- package/out/mock.d.ts +14 -153
- package/out/mock.js +142 -265
- package/package.json +1 -1
package/out/mock.d.ts
CHANGED
|
@@ -912,7 +912,6 @@ declare type ApplicationInfo = {
|
|
|
912
912
|
declare class ApplicationModule extends Base {
|
|
913
913
|
/**
|
|
914
914
|
* Asynchronously returns an Application object that represents an existing application.
|
|
915
|
-
* @param identity
|
|
916
915
|
*
|
|
917
916
|
* @example
|
|
918
917
|
*
|
|
@@ -923,12 +922,10 @@ declare class ApplicationModule extends Base {
|
|
|
923
922
|
* .catch(err => console.log(err));
|
|
924
923
|
* ```
|
|
925
924
|
*
|
|
926
|
-
* @static
|
|
927
925
|
*/
|
|
928
926
|
wrap(identity: OpenFin_2.ApplicationIdentity): Promise<OpenFin_2.Application>;
|
|
929
927
|
/**
|
|
930
928
|
* Synchronously returns an Application object that represents an existing application.
|
|
931
|
-
* @param identity
|
|
932
929
|
*
|
|
933
930
|
* @example
|
|
934
931
|
*
|
|
@@ -937,14 +934,11 @@ declare class ApplicationModule extends Base {
|
|
|
937
934
|
* await app.close();
|
|
938
935
|
* ```
|
|
939
936
|
*
|
|
940
|
-
* @static
|
|
941
937
|
*/
|
|
942
938
|
wrapSync(identity: OpenFin_2.ApplicationIdentity): OpenFin_2.Application;
|
|
943
939
|
private _create;
|
|
944
940
|
/**
|
|
945
941
|
* DEPRECATED method to create a new Application. Use {@link Application.ApplicationModule.start Application.start} instead.
|
|
946
|
-
* @param appOptions
|
|
947
|
-
*
|
|
948
942
|
*
|
|
949
943
|
* @example
|
|
950
944
|
*
|
|
@@ -967,7 +961,6 @@ declare class ApplicationModule extends Base {
|
|
|
967
961
|
create(appOptions: OpenFin_2.ApplicationCreationOptions): Promise<OpenFin_2.Application>;
|
|
968
962
|
/**
|
|
969
963
|
* Creates and starts a new Application.
|
|
970
|
-
* @param appOptions
|
|
971
964
|
*
|
|
972
965
|
* @example
|
|
973
966
|
*
|
|
@@ -983,17 +976,13 @@ declare class ApplicationModule extends Base {
|
|
|
983
976
|
* start().then(() => console.log('Application is running')).catch(err => console.log(err));
|
|
984
977
|
* ```
|
|
985
978
|
*
|
|
986
|
-
*
|
|
987
|
-
* @static
|
|
988
979
|
*/
|
|
989
980
|
start(appOptions: OpenFin_2.ApplicationCreationOptions): Promise<OpenFin_2.Application>;
|
|
990
981
|
/**
|
|
991
982
|
* Asynchronously starts a batch of applications given an array of application identifiers and manifestUrls.
|
|
992
983
|
* Returns once the RVM is finished attempting to launch the applications.
|
|
993
|
-
* @param applications
|
|
994
984
|
* @param opts - Parameters that the RVM will use.
|
|
995
985
|
*
|
|
996
|
-
* @static
|
|
997
986
|
* @example
|
|
998
987
|
*
|
|
999
988
|
* ```js
|
|
@@ -1043,8 +1032,6 @@ declare class ApplicationModule extends Base {
|
|
|
1043
1032
|
* });
|
|
1044
1033
|
*
|
|
1045
1034
|
* ```
|
|
1046
|
-
*
|
|
1047
|
-
* @static
|
|
1048
1035
|
*/
|
|
1049
1036
|
getCurrent(): Promise<OpenFin_2.Application>;
|
|
1050
1037
|
/**
|
|
@@ -1065,8 +1052,6 @@ declare class ApplicationModule extends Base {
|
|
|
1065
1052
|
* });
|
|
1066
1053
|
*
|
|
1067
1054
|
* ```
|
|
1068
|
-
*
|
|
1069
|
-
* @static
|
|
1070
1055
|
*/
|
|
1071
1056
|
getCurrentSync(): OpenFin_2.Application;
|
|
1072
1057
|
/**
|
|
@@ -1082,8 +1067,6 @@ declare class ApplicationModule extends Base {
|
|
|
1082
1067
|
* // For a local manifest file:
|
|
1083
1068
|
* fin.Application.startFromManifest('file:///C:/somefolder/app.json').then(app => console.log('App is running')).catch(err => console.log(err));
|
|
1084
1069
|
* ```
|
|
1085
|
-
*
|
|
1086
|
-
* @static
|
|
1087
1070
|
*/
|
|
1088
1071
|
startFromManifest(manifestUrl: string, opts?: OpenFin_2.RvmLaunchOptions): Promise<OpenFin_2.Application>;
|
|
1089
1072
|
/**
|
|
@@ -4106,7 +4089,6 @@ declare class ExternalApplicationModule extends Base {
|
|
|
4106
4089
|
* .then(extApp => console.log('wrapped external application'))
|
|
4107
4090
|
* .catch(err => console.log(err));
|
|
4108
4091
|
* ```
|
|
4109
|
-
* @static
|
|
4110
4092
|
*/
|
|
4111
4093
|
wrap(uuid: string): Promise<OpenFin_2.ExternalApplication>;
|
|
4112
4094
|
/**
|
|
@@ -4121,7 +4103,6 @@ declare class ExternalApplicationModule extends Base {
|
|
|
4121
4103
|
* const info = await extApp.getInfo();
|
|
4122
4104
|
* console.log(info);
|
|
4123
4105
|
* ```
|
|
4124
|
-
* @static
|
|
4125
4106
|
*/
|
|
4126
4107
|
wrapSync(uuid: string): OpenFin_2.ExternalApplication;
|
|
4127
4108
|
}
|
|
@@ -4401,7 +4382,7 @@ declare type FoundInPageEvent = NamedEvent & {
|
|
|
4401
4382
|
* The fin.Frame namespace represents a way to interact with `iframes` and facilitates the discovery of current context
|
|
4402
4383
|
* (iframe or main window) as well as the ability to listen for {@link OpenFin.FrameEvents frame-specific events}.
|
|
4403
4384
|
*/
|
|
4404
|
-
declare class _Frame extends EmitterBase<
|
|
4385
|
+
declare class _Frame extends EmitterBase<OpenFin_2.FrameEvent> {
|
|
4405
4386
|
identity: OpenFin_2.Identity;
|
|
4406
4387
|
/**
|
|
4407
4388
|
* @internal
|
|
@@ -4534,11 +4515,9 @@ declare type FrameEvent = {
|
|
|
4534
4515
|
topic: 'frame';
|
|
4535
4516
|
} & (FrameConnectedEvent | FrameDisconnectedEvent);
|
|
4536
4517
|
|
|
4537
|
-
declare type FrameEvent_2 =
|
|
4538
|
-
|
|
4539
|
-
declare type FrameEvents = OpenFin_2.FrameEvent;
|
|
4518
|
+
declare type FrameEvent_2 = FrameEvents.FrameEvent;
|
|
4540
4519
|
|
|
4541
|
-
declare namespace
|
|
4520
|
+
declare namespace FrameEvents {
|
|
4542
4521
|
export {
|
|
4543
4522
|
BaseFrameEvent,
|
|
4544
4523
|
FrameConnectedEvent,
|
|
@@ -4572,7 +4551,6 @@ declare class _FrameModule extends Base {
|
|
|
4572
4551
|
* .then(frm => console.log('wrapped frame'))
|
|
4573
4552
|
* .catch(err => console.log(err));
|
|
4574
4553
|
* ```
|
|
4575
|
-
* @static
|
|
4576
4554
|
*/
|
|
4577
4555
|
wrap(identity: OpenFin_2.Identity): Promise<OpenFin_2.Frame>;
|
|
4578
4556
|
/**
|
|
@@ -4585,7 +4563,6 @@ declare class _FrameModule extends Base {
|
|
|
4585
4563
|
* const info = await frm.getInfo();
|
|
4586
4564
|
* console.log(info);
|
|
4587
4565
|
* ```
|
|
4588
|
-
* @static
|
|
4589
4566
|
*/
|
|
4590
4567
|
wrapSync(identity: OpenFin_2.Identity): OpenFin_2.Frame;
|
|
4591
4568
|
/**
|
|
@@ -4597,7 +4574,6 @@ declare class _FrameModule extends Base {
|
|
|
4597
4574
|
* .then(frm => console.log('current frame'))
|
|
4598
4575
|
* .catch(err => console.log(err));
|
|
4599
4576
|
* ```
|
|
4600
|
-
* @static
|
|
4601
4577
|
*/
|
|
4602
4578
|
getCurrent(): Promise<OpenFin_2.Frame>;
|
|
4603
4579
|
/**
|
|
@@ -4609,7 +4585,6 @@ declare class _FrameModule extends Base {
|
|
|
4609
4585
|
* const info = await frm.getInfo();
|
|
4610
4586
|
* console.log(info);
|
|
4611
4587
|
* ```
|
|
4612
|
-
* @static
|
|
4613
4588
|
*/
|
|
4614
4589
|
getCurrentSync(): OpenFin_2.Frame;
|
|
4615
4590
|
}
|
|
@@ -6349,7 +6324,6 @@ declare class InteropModule extends Base {
|
|
|
6349
6324
|
* const contextGroups = await interopBroker.getContextGroups();
|
|
6350
6325
|
* console.log(contextGroups);
|
|
6351
6326
|
* ```
|
|
6352
|
-
* @static
|
|
6353
6327
|
*/
|
|
6354
6328
|
init(name: string, override?: OpenFin_2.OverrideCallback<InteropBroker> | OpenFin_2.ConstructorOverride<InteropBroker>[]): Promise<InteropBroker>;
|
|
6355
6329
|
/**
|
|
@@ -6371,7 +6345,6 @@ declare class InteropModule extends Base {
|
|
|
6371
6345
|
* const contextGroupInfo = await client.getInfoForContextGroup();
|
|
6372
6346
|
* console.log(contextGroupInfo);
|
|
6373
6347
|
* ```
|
|
6374
|
-
* @static
|
|
6375
6348
|
*/
|
|
6376
6349
|
connectSync(name: string, interopConfig?: OpenFin_2.InteropConfig): InteropClient;
|
|
6377
6350
|
}
|
|
@@ -6925,7 +6898,6 @@ declare class LayoutModule extends Base {
|
|
|
6925
6898
|
#private;
|
|
6926
6899
|
/**
|
|
6927
6900
|
* Asynchronously returns a Layout object that represents a Window's layout.
|
|
6928
|
-
* @param identity
|
|
6929
6901
|
*
|
|
6930
6902
|
* @example
|
|
6931
6903
|
* ```js
|
|
@@ -6942,12 +6914,10 @@ declare class LayoutModule extends Base {
|
|
|
6942
6914
|
* // Use wrapped instance to control layout, e.g.:
|
|
6943
6915
|
* const layoutConfig = await layout.getConfig();
|
|
6944
6916
|
* ```
|
|
6945
|
-
* @static
|
|
6946
6917
|
*/
|
|
6947
6918
|
wrap(identity: OpenFin_2.Identity): Promise<OpenFin_2.Layout>;
|
|
6948
6919
|
/**
|
|
6949
6920
|
* Synchronously returns a Layout object that represents a Window's layout.
|
|
6950
|
-
* @param identity
|
|
6951
6921
|
*
|
|
6952
6922
|
* @example
|
|
6953
6923
|
* ```js
|
|
@@ -6964,7 +6934,6 @@ declare class LayoutModule extends Base {
|
|
|
6964
6934
|
* // Use wrapped instance to control layout, e.g.:
|
|
6965
6935
|
* const layoutConfig = await layout.getConfig();
|
|
6966
6936
|
* ```
|
|
6967
|
-
* @static
|
|
6968
6937
|
*/
|
|
6969
6938
|
wrapSync(identity: OpenFin_2.Identity): OpenFin_2.Layout;
|
|
6970
6939
|
/**
|
|
@@ -6976,7 +6945,6 @@ declare class LayoutModule extends Base {
|
|
|
6976
6945
|
* // Use wrapped instance to control layout, e.g.:
|
|
6977
6946
|
* const layoutConfig = await layout.getConfig();
|
|
6978
6947
|
* ```
|
|
6979
|
-
* @static
|
|
6980
6948
|
*/
|
|
6981
6949
|
getCurrent(): Promise<OpenFin_2.Layout>;
|
|
6982
6950
|
/**
|
|
@@ -6991,7 +6959,6 @@ declare class LayoutModule extends Base {
|
|
|
6991
6959
|
* // Use wrapped instance to control layout, e.g.:
|
|
6992
6960
|
* const layoutConfig = await layout.getConfig();
|
|
6993
6961
|
* ```
|
|
6994
|
-
* @static
|
|
6995
6962
|
*/
|
|
6996
6963
|
getCurrentSync(): OpenFin_2.Layout;
|
|
6997
6964
|
/**
|
|
@@ -7031,7 +6998,6 @@ declare class LayoutModule extends Base {
|
|
|
7031
6998
|
* // the window must have been created with a layout in its window options
|
|
7032
6999
|
* const layout = await fin.Platform.Layout.init({ containerId });
|
|
7033
7000
|
* ```
|
|
7034
|
-
* @static
|
|
7035
7001
|
*/
|
|
7036
7002
|
init: (options?: InitLayoutOptions) => Promise<OpenFin_2.Layout>;
|
|
7037
7003
|
}
|
|
@@ -8055,7 +8021,7 @@ declare namespace OpenFin_2 {
|
|
|
8055
8021
|
AutoResizeOptions,
|
|
8056
8022
|
InteropConfig,
|
|
8057
8023
|
ViewInfo,
|
|
8058
|
-
|
|
8024
|
+
UpdatableViewOptions,
|
|
8059
8025
|
ViewCreationOptions,
|
|
8060
8026
|
MutableViewOptions,
|
|
8061
8027
|
ViewOptions,
|
|
@@ -8250,7 +8216,7 @@ declare namespace OpenFin_2 {
|
|
|
8250
8216
|
WindowEvents,
|
|
8251
8217
|
ViewEvents,
|
|
8252
8218
|
GlobalHotkeyEvents,
|
|
8253
|
-
|
|
8219
|
+
FrameEvents,
|
|
8254
8220
|
PlatformEvents,
|
|
8255
8221
|
ExternalApplicationEvents,
|
|
8256
8222
|
BaseEvent_2 as BaseEvent,
|
|
@@ -8259,7 +8225,7 @@ declare namespace OpenFin_2 {
|
|
|
8259
8225
|
SystemEvent_2 as SystemEvent,
|
|
8260
8226
|
ApplicationEvent_2 as ApplicationEvent,
|
|
8261
8227
|
WindowEvent_2 as WindowEvent,
|
|
8262
|
-
|
|
8228
|
+
ViewEvent_2 as ViewEvent,
|
|
8263
8229
|
GlobalHotkeyEvent_2 as GlobalHotkeyEvent,
|
|
8264
8230
|
FrameEvent_2 as FrameEvent,
|
|
8265
8231
|
PlatformEvent_2 as PlatformEvent,
|
|
@@ -9052,12 +9018,10 @@ declare class PlatformModule extends Base {
|
|
|
9052
9018
|
* fin.Platform.init({overrideCallback});
|
|
9053
9019
|
* ```
|
|
9054
9020
|
* @experimental
|
|
9055
|
-
* @static
|
|
9056
9021
|
*/
|
|
9057
9022
|
init(options?: OpenFin_2.InitPlatformOptions): Promise<void>;
|
|
9058
9023
|
/**
|
|
9059
9024
|
* Asynchronously returns a Platform object that represents an existing platform.
|
|
9060
|
-
* @param identity
|
|
9061
9025
|
*
|
|
9062
9026
|
* @example
|
|
9063
9027
|
* ```js
|
|
@@ -9066,12 +9030,10 @@ declare class PlatformModule extends Base {
|
|
|
9066
9030
|
* // Use wrapped instance to control layout, e.g.:
|
|
9067
9031
|
* const snapshot = await platform.getSnapshot();
|
|
9068
9032
|
* ```
|
|
9069
|
-
* @static
|
|
9070
9033
|
*/
|
|
9071
9034
|
wrap(identity: OpenFin_2.ApplicationIdentity): Promise<OpenFin_2.Platform>;
|
|
9072
9035
|
/**
|
|
9073
9036
|
* Synchronously returns a Platform object that represents an existing platform.
|
|
9074
|
-
* @param identity
|
|
9075
9037
|
*
|
|
9076
9038
|
* @example
|
|
9077
9039
|
* ```js
|
|
@@ -9080,7 +9042,6 @@ declare class PlatformModule extends Base {
|
|
|
9080
9042
|
* // Use wrapped instance to control layout, e.g.:
|
|
9081
9043
|
* const snapshot = await platform.getSnapshot();
|
|
9082
9044
|
* ```
|
|
9083
|
-
* @static
|
|
9084
9045
|
*/
|
|
9085
9046
|
wrapSync(identity: OpenFin_2.ApplicationIdentity): OpenFin_2.Platform;
|
|
9086
9047
|
/**
|
|
@@ -9092,7 +9053,6 @@ declare class PlatformModule extends Base {
|
|
|
9092
9053
|
* // Use wrapped instance to control layout, e.g.:
|
|
9093
9054
|
* const snapshot = await platform.getSnapshot();
|
|
9094
9055
|
* ```
|
|
9095
|
-
* @static
|
|
9096
9056
|
*/
|
|
9097
9057
|
getCurrent(): Promise<OpenFin_2.Platform>;
|
|
9098
9058
|
/**
|
|
@@ -9104,13 +9064,11 @@ declare class PlatformModule extends Base {
|
|
|
9104
9064
|
* // Use wrapped instance to control layout, e.g.:
|
|
9105
9065
|
* const snapshot = await platform.getSnapshot();
|
|
9106
9066
|
* ```
|
|
9107
|
-
* @static
|
|
9108
9067
|
*/
|
|
9109
9068
|
getCurrentSync(): OpenFin_2.Platform;
|
|
9110
9069
|
/**
|
|
9111
9070
|
* Creates and starts a Platform and returns a wrapped and running Platform instance. The wrapped Platform methods can
|
|
9112
9071
|
* be used to launch content into the platform. Promise will reject if the platform is already running.
|
|
9113
|
-
* @param platformOptions
|
|
9114
9072
|
*
|
|
9115
9073
|
* @example
|
|
9116
9074
|
* ```js
|
|
@@ -9131,7 +9089,6 @@ declare class PlatformModule extends Base {
|
|
|
9131
9089
|
* console.error(e);
|
|
9132
9090
|
* }
|
|
9133
9091
|
* ```
|
|
9134
|
-
* @static
|
|
9135
9092
|
*/
|
|
9136
9093
|
start(platformOptions: OpenFin_2.PlatformOptions): Promise<OpenFin_2.Platform>;
|
|
9137
9094
|
/**
|
|
@@ -9156,7 +9113,6 @@ declare class PlatformModule extends Base {
|
|
|
9156
9113
|
* console.error(e);
|
|
9157
9114
|
* }
|
|
9158
9115
|
* ```
|
|
9159
|
-
* @static
|
|
9160
9116
|
*/
|
|
9161
9117
|
startFromManifest(manifestUrl: string, opts?: OpenFin_2.RvmLaunchOptions): Promise<OpenFin_2.Platform>;
|
|
9162
9118
|
}
|
|
@@ -10887,7 +10843,6 @@ declare class SnapshotSource<T = any> extends Base {
|
|
|
10887
10843
|
declare class SnapshotSourceModule extends Base {
|
|
10888
10844
|
/**
|
|
10889
10845
|
* Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
|
|
10890
|
-
* @param provider
|
|
10891
10846
|
*
|
|
10892
10847
|
* @example
|
|
10893
10848
|
* ```js
|
|
@@ -10904,12 +10859,10 @@ declare class SnapshotSourceModule extends Base {
|
|
|
10904
10859
|
*
|
|
10905
10860
|
* await fin.SnapshotSource.init(snapshotProvider);
|
|
10906
10861
|
* ```
|
|
10907
|
-
* @static
|
|
10908
10862
|
*/
|
|
10909
10863
|
init<T = any>(provider: OpenFin_2.SnapshotProvider<T>): Promise<void>;
|
|
10910
10864
|
/**
|
|
10911
10865
|
* Synchronously returns a SnapshotSource object that represents the current SnapshotSource.
|
|
10912
|
-
* @param identity
|
|
10913
10866
|
*
|
|
10914
10867
|
* @example
|
|
10915
10868
|
* ```js
|
|
@@ -10917,12 +10870,10 @@ declare class SnapshotSourceModule extends Base {
|
|
|
10917
10870
|
* // Use wrapped instance's getSnapshot method, e.g.:
|
|
10918
10871
|
* const snapshot = await snapshotSource.getSnapshot();
|
|
10919
10872
|
* ```
|
|
10920
|
-
* @static
|
|
10921
10873
|
*/
|
|
10922
10874
|
wrapSync(identity: OpenFin_2.ApplicationIdentity): SnapshotSource;
|
|
10923
10875
|
/**
|
|
10924
10876
|
* Asynchronously returns a SnapshotSource object that represents the current SnapshotSource.
|
|
10925
|
-
* @param identity
|
|
10926
10877
|
*
|
|
10927
10878
|
* @example
|
|
10928
10879
|
* ```js
|
|
@@ -10930,7 +10881,6 @@ declare class SnapshotSourceModule extends Base {
|
|
|
10930
10881
|
* // Use wrapped instance's getSnapshot method, e.g.:
|
|
10931
10882
|
* const snapshot = await snapshotSource.getSnapshot();
|
|
10932
10883
|
* ```
|
|
10933
|
-
* @static
|
|
10934
10884
|
*/
|
|
10935
10885
|
wrap(identity: OpenFin_2.ApplicationIdentity): Promise<SnapshotSource>;
|
|
10936
10886
|
}
|
|
@@ -11209,7 +11159,6 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
11209
11159
|
* ```js
|
|
11210
11160
|
* fin.System.getUniqueUserId().then(id => console.log(id)).catch(err => console.log(err));
|
|
11211
11161
|
* ```
|
|
11212
|
-
* @static
|
|
11213
11162
|
*/
|
|
11214
11163
|
getUniqueUserId(): Promise<string>;
|
|
11215
11164
|
/**
|
|
@@ -12246,7 +12195,6 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
12246
12195
|
* }
|
|
12247
12196
|
* });
|
|
12248
12197
|
* ```
|
|
12249
|
-
* @static
|
|
12250
12198
|
*/
|
|
12251
12199
|
launchManifest(manifestUrl: string, opts?: OpenFin_2.RvmLaunchOptions): Promise<OpenFin_2.Manifest>;
|
|
12252
12200
|
/**
|
|
@@ -12942,12 +12890,10 @@ declare type UnregisteredEvent = BaseEvent & {
|
|
|
12942
12890
|
type: 'unregistered';
|
|
12943
12891
|
};
|
|
12944
12892
|
|
|
12945
|
-
declare type UpdatableViewOptions = OpenFin_2.UpdatableViewOptions;
|
|
12946
|
-
|
|
12947
12893
|
/**
|
|
12948
12894
|
* View options that can be updated after creation.
|
|
12949
12895
|
*/
|
|
12950
|
-
declare type
|
|
12896
|
+
declare type UpdatableViewOptions = Partial<MutableViewOptions>;
|
|
12951
12897
|
|
|
12952
12898
|
declare type UpdatableWindowOptions = Partial<MutableWindowOptions>;
|
|
12953
12899
|
|
|
@@ -13164,7 +13110,7 @@ declare type View = OpenFin_2.View;
|
|
|
13164
13110
|
*
|
|
13165
13111
|
* A View's lifecycle is tied to its owning window and can be re-attached to a different window at any point during its lifecycle.
|
|
13166
13112
|
*/
|
|
13167
|
-
declare class View_2 extends WebContents<ViewEvent> {
|
|
13113
|
+
declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
13168
13114
|
#private;
|
|
13169
13115
|
identity: OpenFin_2.Identity;
|
|
13170
13116
|
/**
|
|
@@ -13174,10 +13120,6 @@ declare class View_2 extends WebContents<ViewEvent> {
|
|
|
13174
13120
|
/**
|
|
13175
13121
|
* Focuses the view
|
|
13176
13122
|
*
|
|
13177
|
-
* @function focus
|
|
13178
|
-
* @memberof View
|
|
13179
|
-
* @emits focused
|
|
13180
|
-
* @instance
|
|
13181
13123
|
* @example
|
|
13182
13124
|
* ```js
|
|
13183
13125
|
* const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
|
|
@@ -13461,7 +13403,6 @@ declare class View_2 extends WebContents<ViewEvent> {
|
|
|
13461
13403
|
getOptions: () => Promise<OpenFin_2.ViewOptions>;
|
|
13462
13404
|
/**
|
|
13463
13405
|
* Updates the view's options.
|
|
13464
|
-
* @param options
|
|
13465
13406
|
*
|
|
13466
13407
|
* @example
|
|
13467
13408
|
* ```js
|
|
@@ -13496,11 +13437,10 @@ declare class View_2 extends WebContents<ViewEvent> {
|
|
|
13496
13437
|
* ```
|
|
13497
13438
|
* @experimental
|
|
13498
13439
|
*/
|
|
13499
|
-
updateOptions: (options: UpdatableViewOptions) => Promise<void>;
|
|
13440
|
+
updateOptions: (options: OpenFin_2.UpdatableViewOptions) => Promise<void>;
|
|
13500
13441
|
/**
|
|
13501
13442
|
* Retrieves the window the view is currently attached to.
|
|
13502
13443
|
*
|
|
13503
|
-
* @experimental
|
|
13504
13444
|
* @example
|
|
13505
13445
|
* ```js
|
|
13506
13446
|
* const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
|
|
@@ -13508,6 +13448,7 @@ declare class View_2 extends WebContents<ViewEvent> {
|
|
|
13508
13448
|
* .then(win => console.log('current window', win))
|
|
13509
13449
|
* .catch(err => console.log(err));)
|
|
13510
13450
|
* ```
|
|
13451
|
+
* @experimental
|
|
13511
13452
|
*/
|
|
13512
13453
|
getCurrentWindow: () => Promise<OpenFin_2.Window>;
|
|
13513
13454
|
/**
|
|
@@ -13616,16 +13557,14 @@ declare type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
|
|
|
13616
13557
|
previousTarget: OpenFin_2.Identity;
|
|
13617
13558
|
};
|
|
13618
13559
|
|
|
13619
|
-
declare type ViewEvent = OpenFin_2.ViewEvent;
|
|
13620
|
-
|
|
13621
13560
|
/**
|
|
13622
13561
|
* A View event.
|
|
13623
13562
|
*/
|
|
13624
|
-
declare type
|
|
13563
|
+
declare type ViewEvent = {
|
|
13625
13564
|
topic: 'view';
|
|
13626
13565
|
} & (NonPropagatedViewEvent | WillPropagateViewEvent);
|
|
13627
13566
|
|
|
13628
|
-
declare type
|
|
13567
|
+
declare type ViewEvent_2 = ViewEvents.ViewEvent;
|
|
13629
13568
|
|
|
13630
13569
|
declare namespace ViewEvents {
|
|
13631
13570
|
export {
|
|
@@ -13639,7 +13578,7 @@ declare namespace ViewEvents {
|
|
|
13639
13578
|
HotkeyEvent,
|
|
13640
13579
|
ShownEvent,
|
|
13641
13580
|
WillPropagateViewEvent,
|
|
13642
|
-
|
|
13581
|
+
ViewEvent,
|
|
13643
13582
|
ViewEventType,
|
|
13644
13583
|
PropagatedViewEvent,
|
|
13645
13584
|
PropagatedViewEventType
|
|
@@ -13649,7 +13588,7 @@ declare namespace ViewEvents {
|
|
|
13649
13588
|
/**
|
|
13650
13589
|
* A View event type.
|
|
13651
13590
|
*/
|
|
13652
|
-
declare type ViewEventType =
|
|
13591
|
+
declare type ViewEventType = ViewEvent['type'];
|
|
13653
13592
|
|
|
13654
13593
|
declare type ViewInfo = {
|
|
13655
13594
|
canNavigateBack: boolean;
|
|
@@ -13688,12 +13627,10 @@ declare class ViewModule extends Base {
|
|
|
13688
13627
|
* ```
|
|
13689
13628
|
* Note that created views needs to navigate somewhere for them to actually render a website.
|
|
13690
13629
|
* @experimental
|
|
13691
|
-
* @static
|
|
13692
13630
|
*/
|
|
13693
13631
|
create(options: OpenFin_2.ViewCreationOptions): Promise<OpenFin_2.View>;
|
|
13694
13632
|
/**
|
|
13695
13633
|
* Asynchronously returns a View object that represents an existing view.
|
|
13696
|
-
* @param identity
|
|
13697
13634
|
*
|
|
13698
13635
|
* @example
|
|
13699
13636
|
* ```js
|
|
@@ -13702,12 +13639,10 @@ declare class ViewModule extends Base {
|
|
|
13702
13639
|
* .catch(err => console.log(err));
|
|
13703
13640
|
* ```
|
|
13704
13641
|
* @experimental
|
|
13705
|
-
* @static
|
|
13706
13642
|
*/
|
|
13707
13643
|
wrap(identity: OpenFin_2.Identity): Promise<OpenFin_2.View>;
|
|
13708
13644
|
/**
|
|
13709
13645
|
* Synchronously returns a View object that represents an existing view.
|
|
13710
|
-
* @param identity
|
|
13711
13646
|
*
|
|
13712
13647
|
* @example
|
|
13713
13648
|
* ```js
|
|
@@ -13715,7 +13650,6 @@ declare class ViewModule extends Base {
|
|
|
13715
13650
|
* await view.hide();
|
|
13716
13651
|
* ```
|
|
13717
13652
|
* @experimental
|
|
13718
|
-
* @static
|
|
13719
13653
|
*/
|
|
13720
13654
|
wrapSync(identity: OpenFin_2.Identity): OpenFin_2.View;
|
|
13721
13655
|
/**
|
|
@@ -13729,7 +13663,6 @@ declare class ViewModule extends Base {
|
|
|
13729
13663
|
*
|
|
13730
13664
|
* ```
|
|
13731
13665
|
* @experimental
|
|
13732
|
-
* @static
|
|
13733
13666
|
*/
|
|
13734
13667
|
getCurrent(): Promise<OpenFin_2.View>;
|
|
13735
13668
|
/**
|
|
@@ -13742,7 +13675,6 @@ declare class ViewModule extends Base {
|
|
|
13742
13675
|
*
|
|
13743
13676
|
* ```
|
|
13744
13677
|
* @experimental
|
|
13745
|
-
* @static
|
|
13746
13678
|
*/
|
|
13747
13679
|
getCurrentSync(): OpenFin_2.View;
|
|
13748
13680
|
}
|
|
@@ -13862,10 +13794,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13862
13794
|
constructor(wire: Transport, identity: OpenFin_2.Identity, entityType: string);
|
|
13863
13795
|
/**
|
|
13864
13796
|
* Gets a base64 encoded image of all or part of the WebContents.
|
|
13865
|
-
* @function capturePage
|
|
13866
13797
|
* @param options Options for the capturePage call.
|
|
13867
|
-
* @memberOf View
|
|
13868
|
-
* @instance
|
|
13869
13798
|
*
|
|
13870
13799
|
* @example
|
|
13871
13800
|
*
|
|
@@ -13916,9 +13845,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13916
13845
|
* Executes Javascript on the WebContents, restricted to contents you own or contents owned by
|
|
13917
13846
|
* applications you have created.
|
|
13918
13847
|
* @param code JavaScript code to be executed on the view.
|
|
13919
|
-
* @function executeJavaScript
|
|
13920
|
-
* @memberOf View
|
|
13921
|
-
* @instance
|
|
13922
13848
|
*
|
|
13923
13849
|
* @example
|
|
13924
13850
|
* View:
|
|
@@ -13950,9 +13876,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13950
13876
|
executeJavaScript(code: string): Promise<void>;
|
|
13951
13877
|
/**
|
|
13952
13878
|
* Returns the zoom level of the WebContents.
|
|
13953
|
-
* @function getZoomLevel
|
|
13954
|
-
* @memberOf View
|
|
13955
|
-
* @instance
|
|
13956
13879
|
*
|
|
13957
13880
|
* @example
|
|
13958
13881
|
* View:
|
|
@@ -13989,9 +13912,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13989
13912
|
/**
|
|
13990
13913
|
* Sets the zoom level of the WebContents.
|
|
13991
13914
|
* @param level The zoom level
|
|
13992
|
-
* @function setZoomLevel
|
|
13993
|
-
* @memberOf View
|
|
13994
|
-
* @instance
|
|
13995
13915
|
*
|
|
13996
13916
|
* @example
|
|
13997
13917
|
* View:
|
|
@@ -14031,9 +13951,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14031
13951
|
* @remarks The url must contain the protocol prefix such as http:// or https://.
|
|
14032
13952
|
* @param url - The URL to navigate the WebContents to.
|
|
14033
13953
|
*
|
|
14034
|
-
* @function navigate
|
|
14035
|
-
* @memberof View
|
|
14036
|
-
* @instance
|
|
14037
13954
|
* @example
|
|
14038
13955
|
* View:
|
|
14039
13956
|
* ```js
|
|
@@ -14065,9 +13982,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14065
13982
|
navigate(url: string): Promise<void>;
|
|
14066
13983
|
/**
|
|
14067
13984
|
* Navigates the WebContents back one page.
|
|
14068
|
-
* @function navigateBack
|
|
14069
|
-
* @memberOf View
|
|
14070
|
-
* @instance
|
|
14071
13985
|
*
|
|
14072
13986
|
* @example
|
|
14073
13987
|
* View:
|
|
@@ -14093,9 +14007,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14093
14007
|
navigateBack(): Promise<void>;
|
|
14094
14008
|
/**
|
|
14095
14009
|
* Navigates the WebContents forward one page.
|
|
14096
|
-
* @function navigateForward
|
|
14097
|
-
* @memberOf View
|
|
14098
|
-
* @instance
|
|
14099
14010
|
*
|
|
14100
14011
|
* @example
|
|
14101
14012
|
* View:
|
|
@@ -14123,9 +14034,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14123
14034
|
navigateForward(): Promise<void>;
|
|
14124
14035
|
/**
|
|
14125
14036
|
* Stops any current navigation the WebContents is performing.
|
|
14126
|
-
* @function stopNavigation
|
|
14127
|
-
* @memberOf View
|
|
14128
|
-
* @instance
|
|
14129
14037
|
*
|
|
14130
14038
|
* @example
|
|
14131
14039
|
* View:
|
|
@@ -14151,9 +14059,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14151
14059
|
stopNavigation(): Promise<void>;
|
|
14152
14060
|
/**
|
|
14153
14061
|
* Reloads the WebContents
|
|
14154
|
-
* @function reload
|
|
14155
|
-
* @memberOf View
|
|
14156
|
-
* @instance
|
|
14157
14062
|
*
|
|
14158
14063
|
* @example
|
|
14159
14064
|
* View:
|
|
@@ -14190,9 +14095,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14190
14095
|
/**
|
|
14191
14096
|
* Prints the WebContents.
|
|
14192
14097
|
* @param options Printer Options
|
|
14193
|
-
* @function print
|
|
14194
|
-
* @memberOf View
|
|
14195
|
-
* @instance
|
|
14196
14098
|
*
|
|
14197
14099
|
* @remarks When `silent` is set to `true`, the API will pick the system's default printer if deviceName
|
|
14198
14100
|
* is empty and the default settings for printing.
|
|
@@ -14213,9 +14115,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14213
14115
|
* Find and highlight text on a page.
|
|
14214
14116
|
* @param searchTerm Term to find in page
|
|
14215
14117
|
* @param options Search options
|
|
14216
|
-
* @function findInPage
|
|
14217
|
-
* @memberOf View
|
|
14218
|
-
* @instance
|
|
14219
14118
|
*
|
|
14220
14119
|
* @remarks By default, each subsequent call will highlight the next text that matches the search term.
|
|
14221
14120
|
*
|
|
@@ -14296,9 +14195,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14296
14195
|
/**
|
|
14297
14196
|
* Returns an array with all system printers
|
|
14298
14197
|
* @deprecated use System.getPrinters instead
|
|
14299
|
-
* @function getPrinters
|
|
14300
|
-
* @memberOf View
|
|
14301
|
-
* @instance
|
|
14302
14198
|
*
|
|
14303
14199
|
* @example
|
|
14304
14200
|
* View:
|
|
@@ -14339,10 +14235,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14339
14235
|
/**
|
|
14340
14236
|
* Gives focus to the WebContents.
|
|
14341
14237
|
*
|
|
14342
|
-
* @function focus
|
|
14343
|
-
* @emits focused
|
|
14344
|
-
* @memberOf Window
|
|
14345
|
-
* @instance
|
|
14346
14238
|
* @example
|
|
14347
14239
|
* ```js
|
|
14348
14240
|
* async function focusWindow() {
|
|
@@ -14364,9 +14256,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14364
14256
|
}): Promise<void>;
|
|
14365
14257
|
/**
|
|
14366
14258
|
* Shows the Chromium Developer Tools
|
|
14367
|
-
* @function showDeveloperTools
|
|
14368
|
-
* @memberOf View
|
|
14369
|
-
* @instance
|
|
14370
14259
|
*
|
|
14371
14260
|
* @example
|
|
14372
14261
|
* View:
|
|
@@ -14399,10 +14288,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14399
14288
|
*
|
|
14400
14289
|
* @remarks This includes any iframes associated with the WebContents
|
|
14401
14290
|
*
|
|
14402
|
-
* @function getProcessInfo
|
|
14403
|
-
* @memberOf View
|
|
14404
|
-
* @instance
|
|
14405
|
-
*
|
|
14406
14291
|
* @example
|
|
14407
14292
|
* View:
|
|
14408
14293
|
* ```js
|
|
@@ -14419,9 +14304,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14419
14304
|
getProcessInfo(): Promise<OpenFin_2.EntityProcessDetails>;
|
|
14420
14305
|
/**
|
|
14421
14306
|
* Retrieves information on all Shared Workers.
|
|
14422
|
-
* @function getSharedWorkers
|
|
14423
|
-
* @memberOf View
|
|
14424
|
-
* @instance
|
|
14425
14307
|
*
|
|
14426
14308
|
* @example
|
|
14427
14309
|
* View:
|
|
@@ -14454,9 +14336,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14454
14336
|
getSharedWorkers(): Promise<OpenFin_2.SharedWorkerInfo[]>;
|
|
14455
14337
|
/**
|
|
14456
14338
|
* Opens the developer tools for the shared worker context.
|
|
14457
|
-
* @function inspectSharedWorker
|
|
14458
|
-
* @memberOf View
|
|
14459
|
-
* @instance
|
|
14460
14339
|
*
|
|
14461
14340
|
* @example
|
|
14462
14341
|
* View:
|
|
@@ -14490,9 +14369,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14490
14369
|
/**
|
|
14491
14370
|
* Inspects the shared worker based on its ID.
|
|
14492
14371
|
* @param workerId - The id of the shared worker.
|
|
14493
|
-
* @function inspectSharedWorkerById
|
|
14494
|
-
* @memberOf View
|
|
14495
|
-
* @instance
|
|
14496
14372
|
*
|
|
14497
14373
|
* @example
|
|
14498
14374
|
* View:
|
|
@@ -14527,9 +14403,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14527
14403
|
inspectSharedWorkerById(workerId: string): Promise<void>;
|
|
14528
14404
|
/**
|
|
14529
14405
|
* Opens the developer tools for the service worker context.
|
|
14530
|
-
* @function inspectServiceWorker
|
|
14531
|
-
* @memberOf View
|
|
14532
|
-
* @instance
|
|
14533
14406
|
*
|
|
14534
14407
|
* @example
|
|
14535
14408
|
* View:
|
|
@@ -14766,11 +14639,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14766
14639
|
* onPopupReady: popupWindowCallback;
|
|
14767
14640
|
* });
|
|
14768
14641
|
* ```
|
|
14769
|
-
* @function showPopupWindow
|
|
14770
|
-
* @memberOf View
|
|
14771
|
-
* @instance
|
|
14772
|
-
* @param options
|
|
14773
|
-
*
|
|
14774
14642
|
*/
|
|
14775
14643
|
showPopupWindow(options: OpenFin_2.PopupOptions): Promise<OpenFin_2.PopupResult>;
|
|
14776
14644
|
}
|
|
@@ -16689,7 +16557,6 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16689
16557
|
declare class _WindowModule extends Base {
|
|
16690
16558
|
/**
|
|
16691
16559
|
* Asynchronously returns a Window object that represents an existing window.
|
|
16692
|
-
* @param identity
|
|
16693
16560
|
*
|
|
16694
16561
|
* @example
|
|
16695
16562
|
* ```js
|
|
@@ -16706,12 +16573,10 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16706
16573
|
* .then(win => console.log('wrapped window'))
|
|
16707
16574
|
* .catch(err => console.log(err));
|
|
16708
16575
|
* ```
|
|
16709
|
-
* @static
|
|
16710
16576
|
*/
|
|
16711
16577
|
wrap(identity: OpenFin_2.Identity): Promise<OpenFin_2.Window>;
|
|
16712
16578
|
/**
|
|
16713
16579
|
* Synchronously returns a Window object that represents an existing window.
|
|
16714
|
-
* @param identity
|
|
16715
16580
|
*
|
|
16716
16581
|
* @example
|
|
16717
16582
|
* ```js
|
|
@@ -16727,7 +16592,6 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16727
16592
|
* await createWin();
|
|
16728
16593
|
* let win = fin.Window.wrapSync({ uuid: 'app-1', name: 'myApp' });
|
|
16729
16594
|
* ```
|
|
16730
|
-
* @static
|
|
16731
16595
|
*/
|
|
16732
16596
|
wrapSync(identity: OpenFin_2.Identity): OpenFin_2.Window;
|
|
16733
16597
|
/**
|
|
@@ -16750,7 +16614,6 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16750
16614
|
*
|
|
16751
16615
|
* createWindow().then(() => console.log('Window is created')).catch(err => console.log(err));
|
|
16752
16616
|
* ```
|
|
16753
|
-
* @static
|
|
16754
16617
|
*/
|
|
16755
16618
|
create(options: OpenFin_2.WindowCreationOptions): Promise<OpenFin_2.Window>;
|
|
16756
16619
|
/**
|
|
@@ -16763,7 +16626,6 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16763
16626
|
* .catch(err => console.log(err));
|
|
16764
16627
|
*
|
|
16765
16628
|
* ```
|
|
16766
|
-
* @static
|
|
16767
16629
|
*/
|
|
16768
16630
|
getCurrent(): Promise<OpenFin_2.Window>;
|
|
16769
16631
|
/**
|
|
@@ -16776,7 +16638,6 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16776
16638
|
* console.log(info);
|
|
16777
16639
|
*
|
|
16778
16640
|
* ```
|
|
16779
|
-
* @static
|
|
16780
16641
|
*/
|
|
16781
16642
|
getCurrentSync(): OpenFin_2.Window;
|
|
16782
16643
|
}
|