@openfin/core 34.78.3 → 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 +33 -175
- package/package.json +1 -1
package/out/mock-beta.d.ts
CHANGED
|
@@ -906,7 +906,6 @@ declare type ApplicationInfo = {
|
|
|
906
906
|
declare class ApplicationModule extends Base {
|
|
907
907
|
/**
|
|
908
908
|
* Asynchronously returns an Application object that represents an existing application.
|
|
909
|
-
* @param identity
|
|
910
909
|
*
|
|
911
910
|
* @example
|
|
912
911
|
*
|
|
@@ -917,12 +916,10 @@ declare class ApplicationModule extends Base {
|
|
|
917
916
|
* .catch(err => console.log(err));
|
|
918
917
|
* ```
|
|
919
918
|
*
|
|
920
|
-
* @static
|
|
921
919
|
*/
|
|
922
920
|
wrap(identity: OpenFin_2.ApplicationIdentity): Promise<OpenFin_2.Application>;
|
|
923
921
|
/**
|
|
924
922
|
* Synchronously returns an Application object that represents an existing application.
|
|
925
|
-
* @param identity
|
|
926
923
|
*
|
|
927
924
|
* @example
|
|
928
925
|
*
|
|
@@ -931,14 +928,11 @@ declare class ApplicationModule extends Base {
|
|
|
931
928
|
* await app.close();
|
|
932
929
|
* ```
|
|
933
930
|
*
|
|
934
|
-
* @static
|
|
935
931
|
*/
|
|
936
932
|
wrapSync(identity: OpenFin_2.ApplicationIdentity): OpenFin_2.Application;
|
|
937
933
|
private _create;
|
|
938
934
|
/**
|
|
939
935
|
* DEPRECATED method to create a new Application. Use {@link Application.ApplicationModule.start Application.start} instead.
|
|
940
|
-
* @param appOptions
|
|
941
|
-
*
|
|
942
936
|
*
|
|
943
937
|
* @example
|
|
944
938
|
*
|
|
@@ -961,7 +955,6 @@ declare class ApplicationModule extends Base {
|
|
|
961
955
|
create(appOptions: OpenFin_2.ApplicationCreationOptions): Promise<OpenFin_2.Application>;
|
|
962
956
|
/**
|
|
963
957
|
* Creates and starts a new Application.
|
|
964
|
-
* @param appOptions
|
|
965
958
|
*
|
|
966
959
|
* @example
|
|
967
960
|
*
|
|
@@ -977,17 +970,13 @@ declare class ApplicationModule extends Base {
|
|
|
977
970
|
* start().then(() => console.log('Application is running')).catch(err => console.log(err));
|
|
978
971
|
* ```
|
|
979
972
|
*
|
|
980
|
-
*
|
|
981
|
-
* @static
|
|
982
973
|
*/
|
|
983
974
|
start(appOptions: OpenFin_2.ApplicationCreationOptions): Promise<OpenFin_2.Application>;
|
|
984
975
|
/**
|
|
985
976
|
* Asynchronously starts a batch of applications given an array of application identifiers and manifestUrls.
|
|
986
977
|
* Returns once the RVM is finished attempting to launch the applications.
|
|
987
|
-
* @param applications
|
|
988
978
|
* @param opts - Parameters that the RVM will use.
|
|
989
979
|
*
|
|
990
|
-
* @static
|
|
991
980
|
* @example
|
|
992
981
|
*
|
|
993
982
|
* ```js
|
|
@@ -1037,8 +1026,6 @@ declare class ApplicationModule extends Base {
|
|
|
1037
1026
|
* });
|
|
1038
1027
|
*
|
|
1039
1028
|
* ```
|
|
1040
|
-
*
|
|
1041
|
-
* @static
|
|
1042
1029
|
*/
|
|
1043
1030
|
getCurrent(): Promise<OpenFin_2.Application>;
|
|
1044
1031
|
/**
|
|
@@ -1059,8 +1046,6 @@ declare class ApplicationModule extends Base {
|
|
|
1059
1046
|
* });
|
|
1060
1047
|
*
|
|
1061
1048
|
* ```
|
|
1062
|
-
*
|
|
1063
|
-
* @static
|
|
1064
1049
|
*/
|
|
1065
1050
|
getCurrentSync(): OpenFin_2.Application;
|
|
1066
1051
|
/**
|
|
@@ -1076,8 +1061,6 @@ declare class ApplicationModule extends Base {
|
|
|
1076
1061
|
* // For a local manifest file:
|
|
1077
1062
|
* fin.Application.startFromManifest('file:///C:/somefolder/app.json').then(app => console.log('App is running')).catch(err => console.log(err));
|
|
1078
1063
|
* ```
|
|
1079
|
-
*
|
|
1080
|
-
* @static
|
|
1081
1064
|
*/
|
|
1082
1065
|
startFromManifest(manifestUrl: string, opts?: OpenFin_2.RvmLaunchOptions): Promise<OpenFin_2.Application>;
|
|
1083
1066
|
/**
|
|
@@ -3996,7 +3979,6 @@ declare class ExternalApplicationModule extends Base {
|
|
|
3996
3979
|
* .then(extApp => console.log('wrapped external application'))
|
|
3997
3980
|
* .catch(err => console.log(err));
|
|
3998
3981
|
* ```
|
|
3999
|
-
* @static
|
|
4000
3982
|
*/
|
|
4001
3983
|
wrap(uuid: string): Promise<OpenFin_2.ExternalApplication>;
|
|
4002
3984
|
/**
|
|
@@ -4011,7 +3993,6 @@ declare class ExternalApplicationModule extends Base {
|
|
|
4011
3993
|
* const info = await extApp.getInfo();
|
|
4012
3994
|
* console.log(info);
|
|
4013
3995
|
* ```
|
|
4014
|
-
* @static
|
|
4015
3996
|
*/
|
|
4016
3997
|
wrapSync(uuid: string): OpenFin_2.ExternalApplication;
|
|
4017
3998
|
}
|
|
@@ -4291,7 +4272,7 @@ declare type FoundInPageEvent = NamedEvent & {
|
|
|
4291
4272
|
* The fin.Frame namespace represents a way to interact with `iframes` and facilitates the discovery of current context
|
|
4292
4273
|
* (iframe or main window) as well as the ability to listen for {@link OpenFin.FrameEvents frame-specific events}.
|
|
4293
4274
|
*/
|
|
4294
|
-
declare class _Frame extends EmitterBase<
|
|
4275
|
+
declare class _Frame extends EmitterBase<OpenFin_2.FrameEvent> {
|
|
4295
4276
|
identity: OpenFin_2.Identity;
|
|
4296
4277
|
/* Excluded from this release type: __constructor */
|
|
4297
4278
|
/**
|
|
@@ -4421,11 +4402,9 @@ declare type FrameEvent = {
|
|
|
4421
4402
|
topic: 'frame';
|
|
4422
4403
|
} & (FrameConnectedEvent | FrameDisconnectedEvent);
|
|
4423
4404
|
|
|
4424
|
-
declare type FrameEvent_2 =
|
|
4405
|
+
declare type FrameEvent_2 = FrameEvents.FrameEvent;
|
|
4425
4406
|
|
|
4426
|
-
declare
|
|
4427
|
-
|
|
4428
|
-
declare namespace FrameEvents_2 {
|
|
4407
|
+
declare namespace FrameEvents {
|
|
4429
4408
|
export {
|
|
4430
4409
|
BaseFrameEvent,
|
|
4431
4410
|
FrameConnectedEvent,
|
|
@@ -4459,7 +4438,6 @@ declare class _FrameModule extends Base {
|
|
|
4459
4438
|
* .then(frm => console.log('wrapped frame'))
|
|
4460
4439
|
* .catch(err => console.log(err));
|
|
4461
4440
|
* ```
|
|
4462
|
-
* @static
|
|
4463
4441
|
*/
|
|
4464
4442
|
wrap(identity: OpenFin_2.Identity): Promise<OpenFin_2.Frame>;
|
|
4465
4443
|
/**
|
|
@@ -4472,7 +4450,6 @@ declare class _FrameModule extends Base {
|
|
|
4472
4450
|
* const info = await frm.getInfo();
|
|
4473
4451
|
* console.log(info);
|
|
4474
4452
|
* ```
|
|
4475
|
-
* @static
|
|
4476
4453
|
*/
|
|
4477
4454
|
wrapSync(identity: OpenFin_2.Identity): OpenFin_2.Frame;
|
|
4478
4455
|
/**
|
|
@@ -4484,7 +4461,6 @@ declare class _FrameModule extends Base {
|
|
|
4484
4461
|
* .then(frm => console.log('current frame'))
|
|
4485
4462
|
* .catch(err => console.log(err));
|
|
4486
4463
|
* ```
|
|
4487
|
-
* @static
|
|
4488
4464
|
*/
|
|
4489
4465
|
getCurrent(): Promise<OpenFin_2.Frame>;
|
|
4490
4466
|
/**
|
|
@@ -4496,7 +4472,6 @@ declare class _FrameModule extends Base {
|
|
|
4496
4472
|
* const info = await frm.getInfo();
|
|
4497
4473
|
* console.log(info);
|
|
4498
4474
|
* ```
|
|
4499
|
-
* @static
|
|
4500
4475
|
*/
|
|
4501
4476
|
getCurrentSync(): OpenFin_2.Frame;
|
|
4502
4477
|
}
|
|
@@ -6212,7 +6187,6 @@ declare class InteropModule extends Base {
|
|
|
6212
6187
|
* const contextGroups = await interopBroker.getContextGroups();
|
|
6213
6188
|
* console.log(contextGroups);
|
|
6214
6189
|
* ```
|
|
6215
|
-
* @static
|
|
6216
6190
|
*/
|
|
6217
6191
|
init(name: string, override?: OpenFin_2.OverrideCallback<InteropBroker> | OpenFin_2.ConstructorOverride<InteropBroker>[]): Promise<InteropBroker>;
|
|
6218
6192
|
/**
|
|
@@ -6234,7 +6208,6 @@ declare class InteropModule extends Base {
|
|
|
6234
6208
|
* const contextGroupInfo = await client.getInfoForContextGroup();
|
|
6235
6209
|
* console.log(contextGroupInfo);
|
|
6236
6210
|
* ```
|
|
6237
|
-
* @static
|
|
6238
6211
|
*/
|
|
6239
6212
|
connectSync(name: string, interopConfig?: OpenFin_2.InteropConfig): InteropClient;
|
|
6240
6213
|
}
|
|
@@ -6664,7 +6637,6 @@ declare class LayoutModule extends Base {
|
|
|
6664
6637
|
#private;
|
|
6665
6638
|
/**
|
|
6666
6639
|
* Asynchronously returns a Layout object that represents a Window's layout.
|
|
6667
|
-
* @param identity
|
|
6668
6640
|
*
|
|
6669
6641
|
* @example
|
|
6670
6642
|
* ```js
|
|
@@ -6681,12 +6653,10 @@ declare class LayoutModule extends Base {
|
|
|
6681
6653
|
* // Use wrapped instance to control layout, e.g.:
|
|
6682
6654
|
* const layoutConfig = await layout.getConfig();
|
|
6683
6655
|
* ```
|
|
6684
|
-
* @static
|
|
6685
6656
|
*/
|
|
6686
6657
|
wrap(identity: OpenFin_2.Identity): Promise<OpenFin_2.Layout>;
|
|
6687
6658
|
/**
|
|
6688
6659
|
* Synchronously returns a Layout object that represents a Window's layout.
|
|
6689
|
-
* @param identity
|
|
6690
6660
|
*
|
|
6691
6661
|
* @example
|
|
6692
6662
|
* ```js
|
|
@@ -6703,7 +6673,6 @@ declare class LayoutModule extends Base {
|
|
|
6703
6673
|
* // Use wrapped instance to control layout, e.g.:
|
|
6704
6674
|
* const layoutConfig = await layout.getConfig();
|
|
6705
6675
|
* ```
|
|
6706
|
-
* @static
|
|
6707
6676
|
*/
|
|
6708
6677
|
wrapSync(identity: OpenFin_2.Identity): OpenFin_2.Layout;
|
|
6709
6678
|
/**
|
|
@@ -6715,7 +6684,6 @@ declare class LayoutModule extends Base {
|
|
|
6715
6684
|
* // Use wrapped instance to control layout, e.g.:
|
|
6716
6685
|
* const layoutConfig = await layout.getConfig();
|
|
6717
6686
|
* ```
|
|
6718
|
-
* @static
|
|
6719
6687
|
*/
|
|
6720
6688
|
getCurrent(): Promise<OpenFin_2.Layout>;
|
|
6721
6689
|
/**
|
|
@@ -6730,7 +6698,6 @@ declare class LayoutModule extends Base {
|
|
|
6730
6698
|
* // Use wrapped instance to control layout, e.g.:
|
|
6731
6699
|
* const layoutConfig = await layout.getConfig();
|
|
6732
6700
|
* ```
|
|
6733
|
-
* @static
|
|
6734
6701
|
*/
|
|
6735
6702
|
getCurrentSync(): OpenFin_2.Layout;
|
|
6736
6703
|
/**
|
|
@@ -6770,7 +6737,6 @@ declare class LayoutModule extends Base {
|
|
|
6770
6737
|
* // the window must have been created with a layout in its window options
|
|
6771
6738
|
* const layout = await fin.Platform.Layout.init({ containerId });
|
|
6772
6739
|
* ```
|
|
6773
|
-
* @static
|
|
6774
6740
|
*/
|
|
6775
6741
|
init: (options?: InitLayoutOptions) => Promise<OpenFin_2.Layout>;
|
|
6776
6742
|
}
|
|
@@ -7626,7 +7592,7 @@ declare namespace OpenFin_2 {
|
|
|
7626
7592
|
AutoResizeOptions,
|
|
7627
7593
|
InteropConfig,
|
|
7628
7594
|
ViewInfo,
|
|
7629
|
-
|
|
7595
|
+
UpdatableViewOptions,
|
|
7630
7596
|
ViewCreationOptions,
|
|
7631
7597
|
MutableViewOptions,
|
|
7632
7598
|
ViewOptions,
|
|
@@ -7821,7 +7787,7 @@ declare namespace OpenFin_2 {
|
|
|
7821
7787
|
WindowEvents,
|
|
7822
7788
|
ViewEvents,
|
|
7823
7789
|
GlobalHotkeyEvents,
|
|
7824
|
-
|
|
7790
|
+
FrameEvents,
|
|
7825
7791
|
PlatformEvents,
|
|
7826
7792
|
ExternalApplicationEvents,
|
|
7827
7793
|
BaseEvent_2 as BaseEvent,
|
|
@@ -7830,7 +7796,7 @@ declare namespace OpenFin_2 {
|
|
|
7830
7796
|
SystemEvent_2 as SystemEvent,
|
|
7831
7797
|
ApplicationEvent_2 as ApplicationEvent,
|
|
7832
7798
|
WindowEvent_2 as WindowEvent,
|
|
7833
|
-
|
|
7799
|
+
ViewEvent_2 as ViewEvent,
|
|
7834
7800
|
GlobalHotkeyEvent_2 as GlobalHotkeyEvent,
|
|
7835
7801
|
FrameEvent_2 as FrameEvent,
|
|
7836
7802
|
PlatformEvent_2 as PlatformEvent,
|
|
@@ -8590,12 +8556,10 @@ declare class PlatformModule extends Base {
|
|
|
8590
8556
|
* fin.Platform.init({overrideCallback});
|
|
8591
8557
|
* ```
|
|
8592
8558
|
* @experimental
|
|
8593
|
-
* @static
|
|
8594
8559
|
*/
|
|
8595
8560
|
init(options?: OpenFin_2.InitPlatformOptions): Promise<void>;
|
|
8596
8561
|
/**
|
|
8597
8562
|
* Asynchronously returns a Platform object that represents an existing platform.
|
|
8598
|
-
* @param identity
|
|
8599
8563
|
*
|
|
8600
8564
|
* @example
|
|
8601
8565
|
* ```js
|
|
@@ -8604,12 +8568,10 @@ declare class PlatformModule extends Base {
|
|
|
8604
8568
|
* // Use wrapped instance to control layout, e.g.:
|
|
8605
8569
|
* const snapshot = await platform.getSnapshot();
|
|
8606
8570
|
* ```
|
|
8607
|
-
* @static
|
|
8608
8571
|
*/
|
|
8609
8572
|
wrap(identity: OpenFin_2.ApplicationIdentity): Promise<OpenFin_2.Platform>;
|
|
8610
8573
|
/**
|
|
8611
8574
|
* Synchronously returns a Platform object that represents an existing platform.
|
|
8612
|
-
* @param identity
|
|
8613
8575
|
*
|
|
8614
8576
|
* @example
|
|
8615
8577
|
* ```js
|
|
@@ -8618,7 +8580,6 @@ declare class PlatformModule extends Base {
|
|
|
8618
8580
|
* // Use wrapped instance to control layout, e.g.:
|
|
8619
8581
|
* const snapshot = await platform.getSnapshot();
|
|
8620
8582
|
* ```
|
|
8621
|
-
* @static
|
|
8622
8583
|
*/
|
|
8623
8584
|
wrapSync(identity: OpenFin_2.ApplicationIdentity): OpenFin_2.Platform;
|
|
8624
8585
|
/**
|
|
@@ -8630,7 +8591,6 @@ declare class PlatformModule extends Base {
|
|
|
8630
8591
|
* // Use wrapped instance to control layout, e.g.:
|
|
8631
8592
|
* const snapshot = await platform.getSnapshot();
|
|
8632
8593
|
* ```
|
|
8633
|
-
* @static
|
|
8634
8594
|
*/
|
|
8635
8595
|
getCurrent(): Promise<OpenFin_2.Platform>;
|
|
8636
8596
|
/**
|
|
@@ -8642,13 +8602,11 @@ declare class PlatformModule extends Base {
|
|
|
8642
8602
|
* // Use wrapped instance to control layout, e.g.:
|
|
8643
8603
|
* const snapshot = await platform.getSnapshot();
|
|
8644
8604
|
* ```
|
|
8645
|
-
* @static
|
|
8646
8605
|
*/
|
|
8647
8606
|
getCurrentSync(): OpenFin_2.Platform;
|
|
8648
8607
|
/**
|
|
8649
8608
|
* Creates and starts a Platform and returns a wrapped and running Platform instance. The wrapped Platform methods can
|
|
8650
8609
|
* be used to launch content into the platform. Promise will reject if the platform is already running.
|
|
8651
|
-
* @param platformOptions
|
|
8652
8610
|
*
|
|
8653
8611
|
* @example
|
|
8654
8612
|
* ```js
|
|
@@ -8669,7 +8627,6 @@ declare class PlatformModule extends Base {
|
|
|
8669
8627
|
* console.error(e);
|
|
8670
8628
|
* }
|
|
8671
8629
|
* ```
|
|
8672
|
-
* @static
|
|
8673
8630
|
*/
|
|
8674
8631
|
start(platformOptions: OpenFin_2.PlatformOptions): Promise<OpenFin_2.Platform>;
|
|
8675
8632
|
/**
|
|
@@ -8694,7 +8651,6 @@ declare class PlatformModule extends Base {
|
|
|
8694
8651
|
* console.error(e);
|
|
8695
8652
|
* }
|
|
8696
8653
|
* ```
|
|
8697
|
-
* @static
|
|
8698
8654
|
*/
|
|
8699
8655
|
startFromManifest(manifestUrl: string, opts?: OpenFin_2.RvmLaunchOptions): Promise<OpenFin_2.Platform>;
|
|
8700
8656
|
}
|
|
@@ -10386,7 +10342,6 @@ declare class SnapshotSource<T = any> extends Base {
|
|
|
10386
10342
|
declare class SnapshotSourceModule extends Base {
|
|
10387
10343
|
/**
|
|
10388
10344
|
* Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
|
|
10389
|
-
* @param provider
|
|
10390
10345
|
*
|
|
10391
10346
|
* @example
|
|
10392
10347
|
* ```js
|
|
@@ -10403,12 +10358,10 @@ declare class SnapshotSourceModule extends Base {
|
|
|
10403
10358
|
*
|
|
10404
10359
|
* await fin.SnapshotSource.init(snapshotProvider);
|
|
10405
10360
|
* ```
|
|
10406
|
-
* @static
|
|
10407
10361
|
*/
|
|
10408
10362
|
init<T = any>(provider: OpenFin_2.SnapshotProvider<T>): Promise<void>;
|
|
10409
10363
|
/**
|
|
10410
10364
|
* Synchronously returns a SnapshotSource object that represents the current SnapshotSource.
|
|
10411
|
-
* @param identity
|
|
10412
10365
|
*
|
|
10413
10366
|
* @example
|
|
10414
10367
|
* ```js
|
|
@@ -10416,12 +10369,10 @@ declare class SnapshotSourceModule extends Base {
|
|
|
10416
10369
|
* // Use wrapped instance's getSnapshot method, e.g.:
|
|
10417
10370
|
* const snapshot = await snapshotSource.getSnapshot();
|
|
10418
10371
|
* ```
|
|
10419
|
-
* @static
|
|
10420
10372
|
*/
|
|
10421
10373
|
wrapSync(identity: OpenFin_2.ApplicationIdentity): SnapshotSource;
|
|
10422
10374
|
/**
|
|
10423
10375
|
* Asynchronously returns a SnapshotSource object that represents the current SnapshotSource.
|
|
10424
|
-
* @param identity
|
|
10425
10376
|
*
|
|
10426
10377
|
* @example
|
|
10427
10378
|
* ```js
|
|
@@ -10429,7 +10380,6 @@ declare class SnapshotSourceModule extends Base {
|
|
|
10429
10380
|
* // Use wrapped instance's getSnapshot method, e.g.:
|
|
10430
10381
|
* const snapshot = await snapshotSource.getSnapshot();
|
|
10431
10382
|
* ```
|
|
10432
|
-
* @static
|
|
10433
10383
|
*/
|
|
10434
10384
|
wrap(identity: OpenFin_2.ApplicationIdentity): Promise<SnapshotSource>;
|
|
10435
10385
|
}
|
|
@@ -10705,7 +10655,6 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
10705
10655
|
* ```js
|
|
10706
10656
|
* fin.System.getUniqueUserId().then(id => console.log(id)).catch(err => console.log(err));
|
|
10707
10657
|
* ```
|
|
10708
|
-
* @static
|
|
10709
10658
|
*/
|
|
10710
10659
|
getUniqueUserId(): Promise<string>;
|
|
10711
10660
|
/**
|
|
@@ -11742,7 +11691,6 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
11742
11691
|
* }
|
|
11743
11692
|
* });
|
|
11744
11693
|
* ```
|
|
11745
|
-
* @static
|
|
11746
11694
|
*/
|
|
11747
11695
|
launchManifest(manifestUrl: string, opts?: OpenFin_2.RvmLaunchOptions): Promise<OpenFin_2.Manifest>;
|
|
11748
11696
|
/**
|
|
@@ -12381,12 +12329,10 @@ declare type UnregisteredEvent = BaseEvent & {
|
|
|
12381
12329
|
type: 'unregistered';
|
|
12382
12330
|
};
|
|
12383
12331
|
|
|
12384
|
-
declare type UpdatableViewOptions = OpenFin_2.UpdatableViewOptions;
|
|
12385
|
-
|
|
12386
12332
|
/**
|
|
12387
12333
|
* View options that can be updated after creation.
|
|
12388
12334
|
*/
|
|
12389
|
-
declare type
|
|
12335
|
+
declare type UpdatableViewOptions = Partial<MutableViewOptions>;
|
|
12390
12336
|
|
|
12391
12337
|
declare type UpdatableWindowOptions = Partial<MutableWindowOptions>;
|
|
12392
12338
|
|
|
@@ -12603,17 +12549,13 @@ declare type View = OpenFin_2.View;
|
|
|
12603
12549
|
*
|
|
12604
12550
|
* 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.
|
|
12605
12551
|
*/
|
|
12606
|
-
declare class View_2 extends WebContents<ViewEvent> {
|
|
12552
|
+
declare class View_2 extends WebContents<OpenFin_2.ViewEvent> {
|
|
12607
12553
|
#private;
|
|
12608
12554
|
identity: OpenFin_2.Identity;
|
|
12609
12555
|
/* Excluded from this release type: __constructor */
|
|
12610
12556
|
/**
|
|
12611
12557
|
* Focuses the view
|
|
12612
12558
|
*
|
|
12613
|
-
* @function focus
|
|
12614
|
-
* @memberof View
|
|
12615
|
-
* @emits focused
|
|
12616
|
-
* @instance
|
|
12617
12559
|
* @example
|
|
12618
12560
|
* ```js
|
|
12619
12561
|
* const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
|
|
@@ -12897,7 +12839,6 @@ declare class View_2 extends WebContents<ViewEvent> {
|
|
|
12897
12839
|
getOptions: () => Promise<OpenFin_2.ViewOptions>;
|
|
12898
12840
|
/**
|
|
12899
12841
|
* Updates the view's options.
|
|
12900
|
-
* @param options
|
|
12901
12842
|
*
|
|
12902
12843
|
* @example
|
|
12903
12844
|
* ```js
|
|
@@ -12932,11 +12873,10 @@ declare class View_2 extends WebContents<ViewEvent> {
|
|
|
12932
12873
|
* ```
|
|
12933
12874
|
* @experimental
|
|
12934
12875
|
*/
|
|
12935
|
-
updateOptions: (options: UpdatableViewOptions) => Promise<void>;
|
|
12876
|
+
updateOptions: (options: OpenFin_2.UpdatableViewOptions) => Promise<void>;
|
|
12936
12877
|
/**
|
|
12937
12878
|
* Retrieves the window the view is currently attached to.
|
|
12938
12879
|
*
|
|
12939
|
-
* @experimental
|
|
12940
12880
|
* @example
|
|
12941
12881
|
* ```js
|
|
12942
12882
|
* const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
|
|
@@ -12944,6 +12884,7 @@ declare class View_2 extends WebContents<ViewEvent> {
|
|
|
12944
12884
|
* .then(win => console.log('current window', win))
|
|
12945
12885
|
* .catch(err => console.log(err));)
|
|
12946
12886
|
* ```
|
|
12887
|
+
* @experimental
|
|
12947
12888
|
*/
|
|
12948
12889
|
getCurrentWindow: () => Promise<OpenFin_2.Window>;
|
|
12949
12890
|
/**
|
|
@@ -13018,16 +12959,14 @@ declare type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
|
|
|
13018
12959
|
previousTarget: OpenFin_2.Identity;
|
|
13019
12960
|
};
|
|
13020
12961
|
|
|
13021
|
-
declare type ViewEvent = OpenFin_2.ViewEvent;
|
|
13022
|
-
|
|
13023
12962
|
/**
|
|
13024
12963
|
* A View event.
|
|
13025
12964
|
*/
|
|
13026
|
-
declare type
|
|
12965
|
+
declare type ViewEvent = {
|
|
13027
12966
|
topic: 'view';
|
|
13028
12967
|
} & (NonPropagatedViewEvent | WillPropagateViewEvent);
|
|
13029
12968
|
|
|
13030
|
-
declare type
|
|
12969
|
+
declare type ViewEvent_2 = ViewEvents.ViewEvent;
|
|
13031
12970
|
|
|
13032
12971
|
declare namespace ViewEvents {
|
|
13033
12972
|
export {
|
|
@@ -13041,7 +12980,7 @@ declare namespace ViewEvents {
|
|
|
13041
12980
|
HotkeyEvent,
|
|
13042
12981
|
ShownEvent,
|
|
13043
12982
|
WillPropagateViewEvent,
|
|
13044
|
-
|
|
12983
|
+
ViewEvent,
|
|
13045
12984
|
ViewEventType,
|
|
13046
12985
|
PropagatedViewEvent,
|
|
13047
12986
|
PropagatedViewEventType
|
|
@@ -13051,7 +12990,7 @@ declare namespace ViewEvents {
|
|
|
13051
12990
|
/**
|
|
13052
12991
|
* A View event type.
|
|
13053
12992
|
*/
|
|
13054
|
-
declare type ViewEventType =
|
|
12993
|
+
declare type ViewEventType = ViewEvent['type'];
|
|
13055
12994
|
|
|
13056
12995
|
declare type ViewInfo = {
|
|
13057
12996
|
canNavigateBack: boolean;
|
|
@@ -13090,12 +13029,10 @@ declare class ViewModule extends Base {
|
|
|
13090
13029
|
* ```
|
|
13091
13030
|
* Note that created views needs to navigate somewhere for them to actually render a website.
|
|
13092
13031
|
* @experimental
|
|
13093
|
-
* @static
|
|
13094
13032
|
*/
|
|
13095
13033
|
create(options: OpenFin_2.ViewCreationOptions): Promise<OpenFin_2.View>;
|
|
13096
13034
|
/**
|
|
13097
13035
|
* Asynchronously returns a View object that represents an existing view.
|
|
13098
|
-
* @param identity
|
|
13099
13036
|
*
|
|
13100
13037
|
* @example
|
|
13101
13038
|
* ```js
|
|
@@ -13104,12 +13041,10 @@ declare class ViewModule extends Base {
|
|
|
13104
13041
|
* .catch(err => console.log(err));
|
|
13105
13042
|
* ```
|
|
13106
13043
|
* @experimental
|
|
13107
|
-
* @static
|
|
13108
13044
|
*/
|
|
13109
13045
|
wrap(identity: OpenFin_2.Identity): Promise<OpenFin_2.View>;
|
|
13110
13046
|
/**
|
|
13111
13047
|
* Synchronously returns a View object that represents an existing view.
|
|
13112
|
-
* @param identity
|
|
13113
13048
|
*
|
|
13114
13049
|
* @example
|
|
13115
13050
|
* ```js
|
|
@@ -13117,7 +13052,6 @@ declare class ViewModule extends Base {
|
|
|
13117
13052
|
* await view.hide();
|
|
13118
13053
|
* ```
|
|
13119
13054
|
* @experimental
|
|
13120
|
-
* @static
|
|
13121
13055
|
*/
|
|
13122
13056
|
wrapSync(identity: OpenFin_2.Identity): OpenFin_2.View;
|
|
13123
13057
|
/**
|
|
@@ -13131,7 +13065,6 @@ declare class ViewModule extends Base {
|
|
|
13131
13065
|
*
|
|
13132
13066
|
* ```
|
|
13133
13067
|
* @experimental
|
|
13134
|
-
* @static
|
|
13135
13068
|
*/
|
|
13136
13069
|
getCurrent(): Promise<OpenFin_2.View>;
|
|
13137
13070
|
/**
|
|
@@ -13144,7 +13077,6 @@ declare class ViewModule extends Base {
|
|
|
13144
13077
|
*
|
|
13145
13078
|
* ```
|
|
13146
13079
|
* @experimental
|
|
13147
|
-
* @static
|
|
13148
13080
|
*/
|
|
13149
13081
|
getCurrentSync(): OpenFin_2.View;
|
|
13150
13082
|
}
|
|
@@ -13264,10 +13196,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13264
13196
|
constructor(wire: Transport, identity: OpenFin_2.Identity, entityType: string);
|
|
13265
13197
|
/**
|
|
13266
13198
|
* Gets a base64 encoded image of all or part of the WebContents.
|
|
13267
|
-
* @function capturePage
|
|
13268
13199
|
* @param options Options for the capturePage call.
|
|
13269
|
-
* @memberOf View
|
|
13270
|
-
* @instance
|
|
13271
13200
|
*
|
|
13272
13201
|
* @example
|
|
13273
13202
|
*
|
|
@@ -13318,9 +13247,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13318
13247
|
* Executes Javascript on the WebContents, restricted to contents you own or contents owned by
|
|
13319
13248
|
* applications you have created.
|
|
13320
13249
|
* @param code JavaScript code to be executed on the view.
|
|
13321
|
-
* @function executeJavaScript
|
|
13322
|
-
* @memberOf View
|
|
13323
|
-
* @instance
|
|
13324
13250
|
*
|
|
13325
13251
|
* @example
|
|
13326
13252
|
* View:
|
|
@@ -13352,9 +13278,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13352
13278
|
executeJavaScript(code: string): Promise<void>;
|
|
13353
13279
|
/**
|
|
13354
13280
|
* Returns the zoom level of the WebContents.
|
|
13355
|
-
* @function getZoomLevel
|
|
13356
|
-
* @memberOf View
|
|
13357
|
-
* @instance
|
|
13358
13281
|
*
|
|
13359
13282
|
* @example
|
|
13360
13283
|
* View:
|
|
@@ -13391,9 +13314,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13391
13314
|
/**
|
|
13392
13315
|
* Sets the zoom level of the WebContents.
|
|
13393
13316
|
* @param level The zoom level
|
|
13394
|
-
* @function setZoomLevel
|
|
13395
|
-
* @memberOf View
|
|
13396
|
-
* @instance
|
|
13397
13317
|
*
|
|
13398
13318
|
* @example
|
|
13399
13319
|
* View:
|
|
@@ -13433,9 +13353,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13433
13353
|
* @remarks The url must contain the protocol prefix such as http:// or https://.
|
|
13434
13354
|
* @param url - The URL to navigate the WebContents to.
|
|
13435
13355
|
*
|
|
13436
|
-
* @function navigate
|
|
13437
|
-
* @memberof View
|
|
13438
|
-
* @instance
|
|
13439
13356
|
* @example
|
|
13440
13357
|
* View:
|
|
13441
13358
|
* ```js
|
|
@@ -13467,9 +13384,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13467
13384
|
navigate(url: string): Promise<void>;
|
|
13468
13385
|
/**
|
|
13469
13386
|
* Navigates the WebContents back one page.
|
|
13470
|
-
* @function navigateBack
|
|
13471
|
-
* @memberOf View
|
|
13472
|
-
* @instance
|
|
13473
13387
|
*
|
|
13474
13388
|
* @example
|
|
13475
13389
|
* View:
|
|
@@ -13495,9 +13409,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13495
13409
|
navigateBack(): Promise<void>;
|
|
13496
13410
|
/**
|
|
13497
13411
|
* Navigates the WebContents forward one page.
|
|
13498
|
-
* @function navigateForward
|
|
13499
|
-
* @memberOf View
|
|
13500
|
-
* @instance
|
|
13501
13412
|
*
|
|
13502
13413
|
* @example
|
|
13503
13414
|
* View:
|
|
@@ -13525,9 +13436,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13525
13436
|
navigateForward(): Promise<void>;
|
|
13526
13437
|
/**
|
|
13527
13438
|
* Stops any current navigation the WebContents is performing.
|
|
13528
|
-
* @function stopNavigation
|
|
13529
|
-
* @memberOf View
|
|
13530
|
-
* @instance
|
|
13531
13439
|
*
|
|
13532
13440
|
* @example
|
|
13533
13441
|
* View:
|
|
@@ -13553,9 +13461,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13553
13461
|
stopNavigation(): Promise<void>;
|
|
13554
13462
|
/**
|
|
13555
13463
|
* Reloads the WebContents
|
|
13556
|
-
* @function reload
|
|
13557
|
-
* @memberOf View
|
|
13558
|
-
* @instance
|
|
13559
13464
|
*
|
|
13560
13465
|
* @example
|
|
13561
13466
|
* View:
|
|
@@ -13592,9 +13497,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13592
13497
|
/**
|
|
13593
13498
|
* Prints the WebContents.
|
|
13594
13499
|
* @param options Printer Options
|
|
13595
|
-
* @function print
|
|
13596
|
-
* @memberOf View
|
|
13597
|
-
* @instance
|
|
13598
13500
|
*
|
|
13599
13501
|
* @remarks When `silent` is set to `true`, the API will pick the system's default printer if deviceName
|
|
13600
13502
|
* is empty and the default settings for printing.
|
|
@@ -13615,9 +13517,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13615
13517
|
* Find and highlight text on a page.
|
|
13616
13518
|
* @param searchTerm Term to find in page
|
|
13617
13519
|
* @param options Search options
|
|
13618
|
-
* @function findInPage
|
|
13619
|
-
* @memberOf View
|
|
13620
|
-
* @instance
|
|
13621
13520
|
*
|
|
13622
13521
|
* @remarks By default, each subsequent call will highlight the next text that matches the search term.
|
|
13623
13522
|
*
|
|
@@ -13698,9 +13597,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13698
13597
|
/**
|
|
13699
13598
|
* Returns an array with all system printers
|
|
13700
13599
|
* @deprecated use System.getPrinters instead
|
|
13701
|
-
* @function getPrinters
|
|
13702
|
-
* @memberOf View
|
|
13703
|
-
* @instance
|
|
13704
13600
|
*
|
|
13705
13601
|
* @example
|
|
13706
13602
|
* View:
|
|
@@ -13741,10 +13637,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13741
13637
|
/**
|
|
13742
13638
|
* Gives focus to the WebContents.
|
|
13743
13639
|
*
|
|
13744
|
-
* @function focus
|
|
13745
|
-
* @emits focused
|
|
13746
|
-
* @memberOf Window
|
|
13747
|
-
* @instance
|
|
13748
13640
|
* @example
|
|
13749
13641
|
* ```js
|
|
13750
13642
|
* async function focusWindow() {
|
|
@@ -13766,9 +13658,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13766
13658
|
}): Promise<void>;
|
|
13767
13659
|
/**
|
|
13768
13660
|
* Shows the Chromium Developer Tools
|
|
13769
|
-
* @function showDeveloperTools
|
|
13770
|
-
* @memberOf View
|
|
13771
|
-
* @instance
|
|
13772
13661
|
*
|
|
13773
13662
|
* @example
|
|
13774
13663
|
* View:
|
|
@@ -13801,10 +13690,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13801
13690
|
*
|
|
13802
13691
|
* @remarks This includes any iframes associated with the WebContents
|
|
13803
13692
|
*
|
|
13804
|
-
* @function getProcessInfo
|
|
13805
|
-
* @memberOf View
|
|
13806
|
-
* @instance
|
|
13807
|
-
*
|
|
13808
13693
|
* @example
|
|
13809
13694
|
* View:
|
|
13810
13695
|
* ```js
|
|
@@ -13821,9 +13706,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13821
13706
|
getProcessInfo(): Promise<OpenFin_2.EntityProcessDetails>;
|
|
13822
13707
|
/**
|
|
13823
13708
|
* Retrieves information on all Shared Workers.
|
|
13824
|
-
* @function getSharedWorkers
|
|
13825
|
-
* @memberOf View
|
|
13826
|
-
* @instance
|
|
13827
13709
|
*
|
|
13828
13710
|
* @example
|
|
13829
13711
|
* View:
|
|
@@ -13856,9 +13738,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13856
13738
|
getSharedWorkers(): Promise<OpenFin_2.SharedWorkerInfo[]>;
|
|
13857
13739
|
/**
|
|
13858
13740
|
* Opens the developer tools for the shared worker context.
|
|
13859
|
-
* @function inspectSharedWorker
|
|
13860
|
-
* @memberOf View
|
|
13861
|
-
* @instance
|
|
13862
13741
|
*
|
|
13863
13742
|
* @example
|
|
13864
13743
|
* View:
|
|
@@ -13892,9 +13771,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13892
13771
|
/**
|
|
13893
13772
|
* Inspects the shared worker based on its ID.
|
|
13894
13773
|
* @param workerId - The id of the shared worker.
|
|
13895
|
-
* @function inspectSharedWorkerById
|
|
13896
|
-
* @memberOf View
|
|
13897
|
-
* @instance
|
|
13898
13774
|
*
|
|
13899
13775
|
* @example
|
|
13900
13776
|
* View:
|
|
@@ -13929,9 +13805,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
13929
13805
|
inspectSharedWorkerById(workerId: string): Promise<void>;
|
|
13930
13806
|
/**
|
|
13931
13807
|
* Opens the developer tools for the service worker context.
|
|
13932
|
-
* @function inspectServiceWorker
|
|
13933
|
-
* @memberOf View
|
|
13934
|
-
* @instance
|
|
13935
13808
|
*
|
|
13936
13809
|
* @example
|
|
13937
13810
|
* View:
|
|
@@ -14168,11 +14041,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
|
14168
14041
|
* onPopupReady: popupWindowCallback;
|
|
14169
14042
|
* });
|
|
14170
14043
|
* ```
|
|
14171
|
-
* @function showPopupWindow
|
|
14172
|
-
* @memberOf View
|
|
14173
|
-
* @instance
|
|
14174
|
-
* @param options
|
|
14175
|
-
*
|
|
14176
14044
|
*/
|
|
14177
14045
|
showPopupWindow(options: OpenFin_2.PopupOptions): Promise<OpenFin_2.PopupResult>;
|
|
14178
14046
|
}
|
|
@@ -16007,7 +15875,6 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16007
15875
|
declare class _WindowModule extends Base {
|
|
16008
15876
|
/**
|
|
16009
15877
|
* Asynchronously returns a Window object that represents an existing window.
|
|
16010
|
-
* @param identity
|
|
16011
15878
|
*
|
|
16012
15879
|
* @example
|
|
16013
15880
|
* ```js
|
|
@@ -16024,12 +15891,10 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16024
15891
|
* .then(win => console.log('wrapped window'))
|
|
16025
15892
|
* .catch(err => console.log(err));
|
|
16026
15893
|
* ```
|
|
16027
|
-
* @static
|
|
16028
15894
|
*/
|
|
16029
15895
|
wrap(identity: OpenFin_2.Identity): Promise<OpenFin_2.Window>;
|
|
16030
15896
|
/**
|
|
16031
15897
|
* Synchronously returns a Window object that represents an existing window.
|
|
16032
|
-
* @param identity
|
|
16033
15898
|
*
|
|
16034
15899
|
* @example
|
|
16035
15900
|
* ```js
|
|
@@ -16045,7 +15910,6 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16045
15910
|
* await createWin();
|
|
16046
15911
|
* let win = fin.Window.wrapSync({ uuid: 'app-1', name: 'myApp' });
|
|
16047
15912
|
* ```
|
|
16048
|
-
* @static
|
|
16049
15913
|
*/
|
|
16050
15914
|
wrapSync(identity: OpenFin_2.Identity): OpenFin_2.Window;
|
|
16051
15915
|
/**
|
|
@@ -16068,7 +15932,6 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16068
15932
|
*
|
|
16069
15933
|
* createWindow().then(() => console.log('Window is created')).catch(err => console.log(err));
|
|
16070
15934
|
* ```
|
|
16071
|
-
* @static
|
|
16072
15935
|
*/
|
|
16073
15936
|
create(options: OpenFin_2.WindowCreationOptions): Promise<OpenFin_2.Window>;
|
|
16074
15937
|
/**
|
|
@@ -16081,7 +15944,6 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16081
15944
|
* .catch(err => console.log(err));
|
|
16082
15945
|
*
|
|
16083
15946
|
* ```
|
|
16084
|
-
* @static
|
|
16085
15947
|
*/
|
|
16086
15948
|
getCurrent(): Promise<OpenFin_2.Window>;
|
|
16087
15949
|
/**
|
|
@@ -16094,7 +15956,6 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16094
15956
|
* console.log(info);
|
|
16095
15957
|
*
|
|
16096
15958
|
* ```
|
|
16097
|
-
* @static
|
|
16098
15959
|
*/
|
|
16099
15960
|
getCurrentSync(): OpenFin_2.Window;
|
|
16100
15961
|
}
|