@openfin/node-adapter 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/node-adapter-alpha.d.ts +14 -153
- package/out/node-adapter-beta.d.ts +14 -153
- package/out/node-adapter-public.d.ts +14 -153
- package/out/node-adapter.d.ts +14 -153
- package/out/node-adapter.js +33 -175
- package/package.json +1 -1
@@ -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.ApplicationIdentity): Promise<OpenFin.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.ApplicationIdentity): OpenFin.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.ApplicationCreationOptions): Promise<OpenFin.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.ApplicationCreationOptions): Promise<OpenFin.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.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.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.RvmLaunchOptions): Promise<OpenFin.Application>;
|
1083
1066
|
/**
|
@@ -4000,7 +3983,6 @@ declare class ExternalApplicationModule extends Base {
|
|
4000
3983
|
* .then(extApp => console.log('wrapped external application'))
|
4001
3984
|
* .catch(err => console.log(err));
|
4002
3985
|
* ```
|
4003
|
-
* @static
|
4004
3986
|
*/
|
4005
3987
|
wrap(uuid: string): Promise<OpenFin.ExternalApplication>;
|
4006
3988
|
/**
|
@@ -4015,7 +3997,6 @@ declare class ExternalApplicationModule extends Base {
|
|
4015
3997
|
* const info = await extApp.getInfo();
|
4016
3998
|
* console.log(info);
|
4017
3999
|
* ```
|
4018
|
-
* @static
|
4019
4000
|
*/
|
4020
4001
|
wrapSync(uuid: string): OpenFin.ExternalApplication;
|
4021
4002
|
}
|
@@ -4315,7 +4296,7 @@ declare type FoundInPageEvent = NamedEvent & {
|
|
4315
4296
|
* The fin.Frame namespace represents a way to interact with `iframes` and facilitates the discovery of current context
|
4316
4297
|
* (iframe or main window) as well as the ability to listen for {@link OpenFin.FrameEvents frame-specific events}.
|
4317
4298
|
*/
|
4318
|
-
declare class _Frame extends EmitterBase<
|
4299
|
+
declare class _Frame extends EmitterBase<OpenFin.FrameEvent> {
|
4319
4300
|
identity: OpenFin.Identity;
|
4320
4301
|
/* Excluded from this release type: __constructor */
|
4321
4302
|
/**
|
@@ -4445,11 +4426,9 @@ declare type FrameEvent = {
|
|
4445
4426
|
topic: 'frame';
|
4446
4427
|
} & (FrameConnectedEvent | FrameDisconnectedEvent);
|
4447
4428
|
|
4448
|
-
declare type FrameEvent_2 =
|
4429
|
+
declare type FrameEvent_2 = FrameEvents.FrameEvent;
|
4449
4430
|
|
4450
|
-
declare
|
4451
|
-
|
4452
|
-
declare namespace FrameEvents_2 {
|
4431
|
+
declare namespace FrameEvents {
|
4453
4432
|
export {
|
4454
4433
|
BaseFrameEvent,
|
4455
4434
|
FrameConnectedEvent,
|
@@ -4483,7 +4462,6 @@ declare class _FrameModule extends Base {
|
|
4483
4462
|
* .then(frm => console.log('wrapped frame'))
|
4484
4463
|
* .catch(err => console.log(err));
|
4485
4464
|
* ```
|
4486
|
-
* @static
|
4487
4465
|
*/
|
4488
4466
|
wrap(identity: OpenFin.Identity): Promise<OpenFin.Frame>;
|
4489
4467
|
/**
|
@@ -4496,7 +4474,6 @@ declare class _FrameModule extends Base {
|
|
4496
4474
|
* const info = await frm.getInfo();
|
4497
4475
|
* console.log(info);
|
4498
4476
|
* ```
|
4499
|
-
* @static
|
4500
4477
|
*/
|
4501
4478
|
wrapSync(identity: OpenFin.Identity): OpenFin.Frame;
|
4502
4479
|
/**
|
@@ -4508,7 +4485,6 @@ declare class _FrameModule extends Base {
|
|
4508
4485
|
* .then(frm => console.log('current frame'))
|
4509
4486
|
* .catch(err => console.log(err));
|
4510
4487
|
* ```
|
4511
|
-
* @static
|
4512
4488
|
*/
|
4513
4489
|
getCurrent(): Promise<OpenFin.Frame>;
|
4514
4490
|
/**
|
@@ -4520,7 +4496,6 @@ declare class _FrameModule extends Base {
|
|
4520
4496
|
* const info = await frm.getInfo();
|
4521
4497
|
* console.log(info);
|
4522
4498
|
* ```
|
4523
|
-
* @static
|
4524
4499
|
*/
|
4525
4500
|
getCurrentSync(): OpenFin.Frame;
|
4526
4501
|
}
|
@@ -6236,7 +6211,6 @@ declare class InteropModule extends Base {
|
|
6236
6211
|
* const contextGroups = await interopBroker.getContextGroups();
|
6237
6212
|
* console.log(contextGroups);
|
6238
6213
|
* ```
|
6239
|
-
* @static
|
6240
6214
|
*/
|
6241
6215
|
init(name: string, override?: OpenFin.OverrideCallback<InteropBroker> | OpenFin.ConstructorOverride<InteropBroker>[]): Promise<InteropBroker>;
|
6242
6216
|
/**
|
@@ -6258,7 +6232,6 @@ declare class InteropModule extends Base {
|
|
6258
6232
|
* const contextGroupInfo = await client.getInfoForContextGroup();
|
6259
6233
|
* console.log(contextGroupInfo);
|
6260
6234
|
* ```
|
6261
|
-
* @static
|
6262
6235
|
*/
|
6263
6236
|
connectSync(name: string, interopConfig?: OpenFin.InteropConfig): InteropClient;
|
6264
6237
|
}
|
@@ -6690,7 +6663,6 @@ declare class LayoutModule extends Base {
|
|
6690
6663
|
#private;
|
6691
6664
|
/**
|
6692
6665
|
* Asynchronously returns a Layout object that represents a Window's layout.
|
6693
|
-
* @param identity
|
6694
6666
|
*
|
6695
6667
|
* @example
|
6696
6668
|
* ```js
|
@@ -6707,12 +6679,10 @@ declare class LayoutModule extends Base {
|
|
6707
6679
|
* // Use wrapped instance to control layout, e.g.:
|
6708
6680
|
* const layoutConfig = await layout.getConfig();
|
6709
6681
|
* ```
|
6710
|
-
* @static
|
6711
6682
|
*/
|
6712
6683
|
wrap(identity: OpenFin.Identity): Promise<OpenFin.Layout>;
|
6713
6684
|
/**
|
6714
6685
|
* Synchronously returns a Layout object that represents a Window's layout.
|
6715
|
-
* @param identity
|
6716
6686
|
*
|
6717
6687
|
* @example
|
6718
6688
|
* ```js
|
@@ -6729,7 +6699,6 @@ declare class LayoutModule extends Base {
|
|
6729
6699
|
* // Use wrapped instance to control layout, e.g.:
|
6730
6700
|
* const layoutConfig = await layout.getConfig();
|
6731
6701
|
* ```
|
6732
|
-
* @static
|
6733
6702
|
*/
|
6734
6703
|
wrapSync(identity: OpenFin.Identity): OpenFin.Layout;
|
6735
6704
|
/**
|
@@ -6741,7 +6710,6 @@ declare class LayoutModule extends Base {
|
|
6741
6710
|
* // Use wrapped instance to control layout, e.g.:
|
6742
6711
|
* const layoutConfig = await layout.getConfig();
|
6743
6712
|
* ```
|
6744
|
-
* @static
|
6745
6713
|
*/
|
6746
6714
|
getCurrent(): Promise<OpenFin.Layout>;
|
6747
6715
|
/**
|
@@ -6756,7 +6724,6 @@ declare class LayoutModule extends Base {
|
|
6756
6724
|
* // Use wrapped instance to control layout, e.g.:
|
6757
6725
|
* const layoutConfig = await layout.getConfig();
|
6758
6726
|
* ```
|
6759
|
-
* @static
|
6760
6727
|
*/
|
6761
6728
|
getCurrentSync(): OpenFin.Layout;
|
6762
6729
|
/**
|
@@ -6796,7 +6763,6 @@ declare class LayoutModule extends Base {
|
|
6796
6763
|
* // the window must have been created with a layout in its window options
|
6797
6764
|
* const layout = await fin.Platform.Layout.init({ containerId });
|
6798
6765
|
* ```
|
6799
|
-
* @static
|
6800
6766
|
*/
|
6801
6767
|
init: (options?: InitLayoutOptions) => Promise<OpenFin.Layout>;
|
6802
6768
|
}
|
@@ -7652,7 +7618,7 @@ declare namespace OpenFin {
|
|
7652
7618
|
AutoResizeOptions,
|
7653
7619
|
InteropConfig,
|
7654
7620
|
ViewInfo,
|
7655
|
-
|
7621
|
+
UpdatableViewOptions,
|
7656
7622
|
ViewCreationOptions,
|
7657
7623
|
MutableViewOptions,
|
7658
7624
|
ViewOptions,
|
@@ -7847,7 +7813,7 @@ declare namespace OpenFin {
|
|
7847
7813
|
WindowEvents,
|
7848
7814
|
ViewEvents,
|
7849
7815
|
GlobalHotkeyEvents,
|
7850
|
-
|
7816
|
+
FrameEvents,
|
7851
7817
|
PlatformEvents,
|
7852
7818
|
ExternalApplicationEvents,
|
7853
7819
|
BaseEvent_2 as BaseEvent,
|
@@ -7856,7 +7822,7 @@ declare namespace OpenFin {
|
|
7856
7822
|
SystemEvent_2 as SystemEvent,
|
7857
7823
|
ApplicationEvent_2 as ApplicationEvent,
|
7858
7824
|
WindowEvent_2 as WindowEvent,
|
7859
|
-
|
7825
|
+
ViewEvent_2 as ViewEvent,
|
7860
7826
|
GlobalHotkeyEvent_2 as GlobalHotkeyEvent,
|
7861
7827
|
FrameEvent_2 as FrameEvent,
|
7862
7828
|
PlatformEvent_2 as PlatformEvent,
|
@@ -8616,12 +8582,10 @@ declare class PlatformModule extends Base {
|
|
8616
8582
|
* fin.Platform.init({overrideCallback});
|
8617
8583
|
* ```
|
8618
8584
|
* @experimental
|
8619
|
-
* @static
|
8620
8585
|
*/
|
8621
8586
|
init(options?: OpenFin.InitPlatformOptions): Promise<void>;
|
8622
8587
|
/**
|
8623
8588
|
* Asynchronously returns a Platform object that represents an existing platform.
|
8624
|
-
* @param identity
|
8625
8589
|
*
|
8626
8590
|
* @example
|
8627
8591
|
* ```js
|
@@ -8630,12 +8594,10 @@ declare class PlatformModule extends Base {
|
|
8630
8594
|
* // Use wrapped instance to control layout, e.g.:
|
8631
8595
|
* const snapshot = await platform.getSnapshot();
|
8632
8596
|
* ```
|
8633
|
-
* @static
|
8634
8597
|
*/
|
8635
8598
|
wrap(identity: OpenFin.ApplicationIdentity): Promise<OpenFin.Platform>;
|
8636
8599
|
/**
|
8637
8600
|
* Synchronously returns a Platform object that represents an existing platform.
|
8638
|
-
* @param identity
|
8639
8601
|
*
|
8640
8602
|
* @example
|
8641
8603
|
* ```js
|
@@ -8644,7 +8606,6 @@ declare class PlatformModule extends Base {
|
|
8644
8606
|
* // Use wrapped instance to control layout, e.g.:
|
8645
8607
|
* const snapshot = await platform.getSnapshot();
|
8646
8608
|
* ```
|
8647
|
-
* @static
|
8648
8609
|
*/
|
8649
8610
|
wrapSync(identity: OpenFin.ApplicationIdentity): OpenFin.Platform;
|
8650
8611
|
/**
|
@@ -8656,7 +8617,6 @@ declare class PlatformModule extends Base {
|
|
8656
8617
|
* // Use wrapped instance to control layout, e.g.:
|
8657
8618
|
* const snapshot = await platform.getSnapshot();
|
8658
8619
|
* ```
|
8659
|
-
* @static
|
8660
8620
|
*/
|
8661
8621
|
getCurrent(): Promise<OpenFin.Platform>;
|
8662
8622
|
/**
|
@@ -8668,13 +8628,11 @@ declare class PlatformModule extends Base {
|
|
8668
8628
|
* // Use wrapped instance to control layout, e.g.:
|
8669
8629
|
* const snapshot = await platform.getSnapshot();
|
8670
8630
|
* ```
|
8671
|
-
* @static
|
8672
8631
|
*/
|
8673
8632
|
getCurrentSync(): OpenFin.Platform;
|
8674
8633
|
/**
|
8675
8634
|
* Creates and starts a Platform and returns a wrapped and running Platform instance. The wrapped Platform methods can
|
8676
8635
|
* be used to launch content into the platform. Promise will reject if the platform is already running.
|
8677
|
-
* @param platformOptions
|
8678
8636
|
*
|
8679
8637
|
* @example
|
8680
8638
|
* ```js
|
@@ -8695,7 +8653,6 @@ declare class PlatformModule extends Base {
|
|
8695
8653
|
* console.error(e);
|
8696
8654
|
* }
|
8697
8655
|
* ```
|
8698
|
-
* @static
|
8699
8656
|
*/
|
8700
8657
|
start(platformOptions: OpenFin.PlatformOptions): Promise<OpenFin.Platform>;
|
8701
8658
|
/**
|
@@ -8720,7 +8677,6 @@ declare class PlatformModule extends Base {
|
|
8720
8677
|
* console.error(e);
|
8721
8678
|
* }
|
8722
8679
|
* ```
|
8723
|
-
* @static
|
8724
8680
|
*/
|
8725
8681
|
startFromManifest(manifestUrl: string, opts?: OpenFin.RvmLaunchOptions): Promise<OpenFin.Platform>;
|
8726
8682
|
}
|
@@ -10412,7 +10368,6 @@ declare class SnapshotSource<T = any> extends Base {
|
|
10412
10368
|
declare class SnapshotSourceModule extends Base {
|
10413
10369
|
/**
|
10414
10370
|
* Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
|
10415
|
-
* @param provider
|
10416
10371
|
*
|
10417
10372
|
* @example
|
10418
10373
|
* ```js
|
@@ -10429,12 +10384,10 @@ declare class SnapshotSourceModule extends Base {
|
|
10429
10384
|
*
|
10430
10385
|
* await fin.SnapshotSource.init(snapshotProvider);
|
10431
10386
|
* ```
|
10432
|
-
* @static
|
10433
10387
|
*/
|
10434
10388
|
init<T = any>(provider: OpenFin.SnapshotProvider<T>): Promise<void>;
|
10435
10389
|
/**
|
10436
10390
|
* Synchronously returns a SnapshotSource object that represents the current SnapshotSource.
|
10437
|
-
* @param identity
|
10438
10391
|
*
|
10439
10392
|
* @example
|
10440
10393
|
* ```js
|
@@ -10442,12 +10395,10 @@ declare class SnapshotSourceModule extends Base {
|
|
10442
10395
|
* // Use wrapped instance's getSnapshot method, e.g.:
|
10443
10396
|
* const snapshot = await snapshotSource.getSnapshot();
|
10444
10397
|
* ```
|
10445
|
-
* @static
|
10446
10398
|
*/
|
10447
10399
|
wrapSync(identity: OpenFin.ApplicationIdentity): SnapshotSource;
|
10448
10400
|
/**
|
10449
10401
|
* Asynchronously returns a SnapshotSource object that represents the current SnapshotSource.
|
10450
|
-
* @param identity
|
10451
10402
|
*
|
10452
10403
|
* @example
|
10453
10404
|
* ```js
|
@@ -10455,7 +10406,6 @@ declare class SnapshotSourceModule extends Base {
|
|
10455
10406
|
* // Use wrapped instance's getSnapshot method, e.g.:
|
10456
10407
|
* const snapshot = await snapshotSource.getSnapshot();
|
10457
10408
|
* ```
|
10458
|
-
* @static
|
10459
10409
|
*/
|
10460
10410
|
wrap(identity: OpenFin.ApplicationIdentity): Promise<SnapshotSource>;
|
10461
10411
|
}
|
@@ -10731,7 +10681,6 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
10731
10681
|
* ```js
|
10732
10682
|
* fin.System.getUniqueUserId().then(id => console.log(id)).catch(err => console.log(err));
|
10733
10683
|
* ```
|
10734
|
-
* @static
|
10735
10684
|
*/
|
10736
10685
|
getUniqueUserId(): Promise<string>;
|
10737
10686
|
/**
|
@@ -11768,7 +11717,6 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
11768
11717
|
* }
|
11769
11718
|
* });
|
11770
11719
|
* ```
|
11771
|
-
* @static
|
11772
11720
|
*/
|
11773
11721
|
launchManifest(manifestUrl: string, opts?: OpenFin.RvmLaunchOptions): Promise<OpenFin.Manifest>;
|
11774
11722
|
/**
|
@@ -12407,12 +12355,10 @@ declare type UnregisteredEvent = BaseEvent & {
|
|
12407
12355
|
type: 'unregistered';
|
12408
12356
|
};
|
12409
12357
|
|
12410
|
-
declare type UpdatableViewOptions = OpenFin.UpdatableViewOptions;
|
12411
|
-
|
12412
12358
|
/**
|
12413
12359
|
* View options that can be updated after creation.
|
12414
12360
|
*/
|
12415
|
-
declare type
|
12361
|
+
declare type UpdatableViewOptions = Partial<MutableViewOptions>;
|
12416
12362
|
|
12417
12363
|
declare type UpdatableWindowOptions = Partial<MutableWindowOptions>;
|
12418
12364
|
|
@@ -12629,17 +12575,13 @@ declare type View = OpenFin.View;
|
|
12629
12575
|
*
|
12630
12576
|
* 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.
|
12631
12577
|
*/
|
12632
|
-
declare class View_2 extends WebContents<ViewEvent> {
|
12578
|
+
declare class View_2 extends WebContents<OpenFin.ViewEvent> {
|
12633
12579
|
#private;
|
12634
12580
|
identity: OpenFin.Identity;
|
12635
12581
|
/* Excluded from this release type: __constructor */
|
12636
12582
|
/**
|
12637
12583
|
* Focuses the view
|
12638
12584
|
*
|
12639
|
-
* @function focus
|
12640
|
-
* @memberof View
|
12641
|
-
* @emits focused
|
12642
|
-
* @instance
|
12643
12585
|
* @example
|
12644
12586
|
* ```js
|
12645
12587
|
* const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
|
@@ -12923,7 +12865,6 @@ declare class View_2 extends WebContents<ViewEvent> {
|
|
12923
12865
|
getOptions: () => Promise<OpenFin.ViewOptions>;
|
12924
12866
|
/**
|
12925
12867
|
* Updates the view's options.
|
12926
|
-
* @param options
|
12927
12868
|
*
|
12928
12869
|
* @example
|
12929
12870
|
* ```js
|
@@ -12958,11 +12899,10 @@ declare class View_2 extends WebContents<ViewEvent> {
|
|
12958
12899
|
* ```
|
12959
12900
|
* @experimental
|
12960
12901
|
*/
|
12961
|
-
updateOptions: (options: UpdatableViewOptions) => Promise<void>;
|
12902
|
+
updateOptions: (options: OpenFin.UpdatableViewOptions) => Promise<void>;
|
12962
12903
|
/**
|
12963
12904
|
* Retrieves the window the view is currently attached to.
|
12964
12905
|
*
|
12965
|
-
* @experimental
|
12966
12906
|
* @example
|
12967
12907
|
* ```js
|
12968
12908
|
* const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
|
@@ -12970,6 +12910,7 @@ declare class View_2 extends WebContents<ViewEvent> {
|
|
12970
12910
|
* .then(win => console.log('current window', win))
|
12971
12911
|
* .catch(err => console.log(err));)
|
12972
12912
|
* ```
|
12913
|
+
* @experimental
|
12973
12914
|
*/
|
12974
12915
|
getCurrentWindow: () => Promise<OpenFin.Window>;
|
12975
12916
|
/**
|
@@ -13044,16 +12985,14 @@ declare type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
|
|
13044
12985
|
previousTarget: OpenFin.Identity;
|
13045
12986
|
};
|
13046
12987
|
|
13047
|
-
declare type ViewEvent = OpenFin.ViewEvent;
|
13048
|
-
|
13049
12988
|
/**
|
13050
12989
|
* A View event.
|
13051
12990
|
*/
|
13052
|
-
declare type
|
12991
|
+
declare type ViewEvent = {
|
13053
12992
|
topic: 'view';
|
13054
12993
|
} & (NonPropagatedViewEvent | WillPropagateViewEvent);
|
13055
12994
|
|
13056
|
-
declare type
|
12995
|
+
declare type ViewEvent_2 = ViewEvents.ViewEvent;
|
13057
12996
|
|
13058
12997
|
declare namespace ViewEvents {
|
13059
12998
|
export {
|
@@ -13067,7 +13006,7 @@ declare namespace ViewEvents {
|
|
13067
13006
|
HotkeyEvent,
|
13068
13007
|
ShownEvent,
|
13069
13008
|
WillPropagateViewEvent,
|
13070
|
-
|
13009
|
+
ViewEvent,
|
13071
13010
|
ViewEventType,
|
13072
13011
|
PropagatedViewEvent,
|
13073
13012
|
PropagatedViewEventType
|
@@ -13077,7 +13016,7 @@ declare namespace ViewEvents {
|
|
13077
13016
|
/**
|
13078
13017
|
* A View event type.
|
13079
13018
|
*/
|
13080
|
-
declare type ViewEventType =
|
13019
|
+
declare type ViewEventType = ViewEvent['type'];
|
13081
13020
|
|
13082
13021
|
declare type ViewInfo = {
|
13083
13022
|
canNavigateBack: boolean;
|
@@ -13116,12 +13055,10 @@ declare class ViewModule extends Base {
|
|
13116
13055
|
* ```
|
13117
13056
|
* Note that created views needs to navigate somewhere for them to actually render a website.
|
13118
13057
|
* @experimental
|
13119
|
-
* @static
|
13120
13058
|
*/
|
13121
13059
|
create(options: OpenFin.ViewCreationOptions): Promise<OpenFin.View>;
|
13122
13060
|
/**
|
13123
13061
|
* Asynchronously returns a View object that represents an existing view.
|
13124
|
-
* @param identity
|
13125
13062
|
*
|
13126
13063
|
* @example
|
13127
13064
|
* ```js
|
@@ -13130,12 +13067,10 @@ declare class ViewModule extends Base {
|
|
13130
13067
|
* .catch(err => console.log(err));
|
13131
13068
|
* ```
|
13132
13069
|
* @experimental
|
13133
|
-
* @static
|
13134
13070
|
*/
|
13135
13071
|
wrap(identity: OpenFin.Identity): Promise<OpenFin.View>;
|
13136
13072
|
/**
|
13137
13073
|
* Synchronously returns a View object that represents an existing view.
|
13138
|
-
* @param identity
|
13139
13074
|
*
|
13140
13075
|
* @example
|
13141
13076
|
* ```js
|
@@ -13143,7 +13078,6 @@ declare class ViewModule extends Base {
|
|
13143
13078
|
* await view.hide();
|
13144
13079
|
* ```
|
13145
13080
|
* @experimental
|
13146
|
-
* @static
|
13147
13081
|
*/
|
13148
13082
|
wrapSync(identity: OpenFin.Identity): OpenFin.View;
|
13149
13083
|
/**
|
@@ -13157,7 +13091,6 @@ declare class ViewModule extends Base {
|
|
13157
13091
|
*
|
13158
13092
|
* ```
|
13159
13093
|
* @experimental
|
13160
|
-
* @static
|
13161
13094
|
*/
|
13162
13095
|
getCurrent(): Promise<OpenFin.View>;
|
13163
13096
|
/**
|
@@ -13170,7 +13103,6 @@ declare class ViewModule extends Base {
|
|
13170
13103
|
*
|
13171
13104
|
* ```
|
13172
13105
|
* @experimental
|
13173
|
-
* @static
|
13174
13106
|
*/
|
13175
13107
|
getCurrentSync(): OpenFin.View;
|
13176
13108
|
}
|
@@ -13290,10 +13222,7 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13290
13222
|
constructor(wire: Transport, identity: OpenFin.Identity, entityType: string);
|
13291
13223
|
/**
|
13292
13224
|
* Gets a base64 encoded image of all or part of the WebContents.
|
13293
|
-
* @function capturePage
|
13294
13225
|
* @param options Options for the capturePage call.
|
13295
|
-
* @memberOf View
|
13296
|
-
* @instance
|
13297
13226
|
*
|
13298
13227
|
* @example
|
13299
13228
|
*
|
@@ -13344,9 +13273,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13344
13273
|
* Executes Javascript on the WebContents, restricted to contents you own or contents owned by
|
13345
13274
|
* applications you have created.
|
13346
13275
|
* @param code JavaScript code to be executed on the view.
|
13347
|
-
* @function executeJavaScript
|
13348
|
-
* @memberOf View
|
13349
|
-
* @instance
|
13350
13276
|
*
|
13351
13277
|
* @example
|
13352
13278
|
* View:
|
@@ -13378,9 +13304,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13378
13304
|
executeJavaScript(code: string): Promise<void>;
|
13379
13305
|
/**
|
13380
13306
|
* Returns the zoom level of the WebContents.
|
13381
|
-
* @function getZoomLevel
|
13382
|
-
* @memberOf View
|
13383
|
-
* @instance
|
13384
13307
|
*
|
13385
13308
|
* @example
|
13386
13309
|
* View:
|
@@ -13417,9 +13340,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13417
13340
|
/**
|
13418
13341
|
* Sets the zoom level of the WebContents.
|
13419
13342
|
* @param level The zoom level
|
13420
|
-
* @function setZoomLevel
|
13421
|
-
* @memberOf View
|
13422
|
-
* @instance
|
13423
13343
|
*
|
13424
13344
|
* @example
|
13425
13345
|
* View:
|
@@ -13459,9 +13379,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13459
13379
|
* @remarks The url must contain the protocol prefix such as http:// or https://.
|
13460
13380
|
* @param url - The URL to navigate the WebContents to.
|
13461
13381
|
*
|
13462
|
-
* @function navigate
|
13463
|
-
* @memberof View
|
13464
|
-
* @instance
|
13465
13382
|
* @example
|
13466
13383
|
* View:
|
13467
13384
|
* ```js
|
@@ -13493,9 +13410,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13493
13410
|
navigate(url: string): Promise<void>;
|
13494
13411
|
/**
|
13495
13412
|
* Navigates the WebContents back one page.
|
13496
|
-
* @function navigateBack
|
13497
|
-
* @memberOf View
|
13498
|
-
* @instance
|
13499
13413
|
*
|
13500
13414
|
* @example
|
13501
13415
|
* View:
|
@@ -13521,9 +13435,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13521
13435
|
navigateBack(): Promise<void>;
|
13522
13436
|
/**
|
13523
13437
|
* Navigates the WebContents forward one page.
|
13524
|
-
* @function navigateForward
|
13525
|
-
* @memberOf View
|
13526
|
-
* @instance
|
13527
13438
|
*
|
13528
13439
|
* @example
|
13529
13440
|
* View:
|
@@ -13551,9 +13462,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13551
13462
|
navigateForward(): Promise<void>;
|
13552
13463
|
/**
|
13553
13464
|
* Stops any current navigation the WebContents is performing.
|
13554
|
-
* @function stopNavigation
|
13555
|
-
* @memberOf View
|
13556
|
-
* @instance
|
13557
13465
|
*
|
13558
13466
|
* @example
|
13559
13467
|
* View:
|
@@ -13579,9 +13487,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13579
13487
|
stopNavigation(): Promise<void>;
|
13580
13488
|
/**
|
13581
13489
|
* Reloads the WebContents
|
13582
|
-
* @function reload
|
13583
|
-
* @memberOf View
|
13584
|
-
* @instance
|
13585
13490
|
*
|
13586
13491
|
* @example
|
13587
13492
|
* View:
|
@@ -13618,9 +13523,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13618
13523
|
/**
|
13619
13524
|
* Prints the WebContents.
|
13620
13525
|
* @param options Printer Options
|
13621
|
-
* @function print
|
13622
|
-
* @memberOf View
|
13623
|
-
* @instance
|
13624
13526
|
*
|
13625
13527
|
* @remarks When `silent` is set to `true`, the API will pick the system's default printer if deviceName
|
13626
13528
|
* is empty and the default settings for printing.
|
@@ -13641,9 +13543,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13641
13543
|
* Find and highlight text on a page.
|
13642
13544
|
* @param searchTerm Term to find in page
|
13643
13545
|
* @param options Search options
|
13644
|
-
* @function findInPage
|
13645
|
-
* @memberOf View
|
13646
|
-
* @instance
|
13647
13546
|
*
|
13648
13547
|
* @remarks By default, each subsequent call will highlight the next text that matches the search term.
|
13649
13548
|
*
|
@@ -13724,9 +13623,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13724
13623
|
/**
|
13725
13624
|
* Returns an array with all system printers
|
13726
13625
|
* @deprecated use System.getPrinters instead
|
13727
|
-
* @function getPrinters
|
13728
|
-
* @memberOf View
|
13729
|
-
* @instance
|
13730
13626
|
*
|
13731
13627
|
* @example
|
13732
13628
|
* View:
|
@@ -13767,10 +13663,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13767
13663
|
/**
|
13768
13664
|
* Gives focus to the WebContents.
|
13769
13665
|
*
|
13770
|
-
* @function focus
|
13771
|
-
* @emits focused
|
13772
|
-
* @memberOf Window
|
13773
|
-
* @instance
|
13774
13666
|
* @example
|
13775
13667
|
* ```js
|
13776
13668
|
* async function focusWindow() {
|
@@ -13792,9 +13684,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13792
13684
|
}): Promise<void>;
|
13793
13685
|
/**
|
13794
13686
|
* Shows the Chromium Developer Tools
|
13795
|
-
* @function showDeveloperTools
|
13796
|
-
* @memberOf View
|
13797
|
-
* @instance
|
13798
13687
|
*
|
13799
13688
|
* @example
|
13800
13689
|
* View:
|
@@ -13827,10 +13716,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13827
13716
|
*
|
13828
13717
|
* @remarks This includes any iframes associated with the WebContents
|
13829
13718
|
*
|
13830
|
-
* @function getProcessInfo
|
13831
|
-
* @memberOf View
|
13832
|
-
* @instance
|
13833
|
-
*
|
13834
13719
|
* @example
|
13835
13720
|
* View:
|
13836
13721
|
* ```js
|
@@ -13847,9 +13732,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13847
13732
|
getProcessInfo(): Promise<OpenFin.EntityProcessDetails>;
|
13848
13733
|
/**
|
13849
13734
|
* Retrieves information on all Shared Workers.
|
13850
|
-
* @function getSharedWorkers
|
13851
|
-
* @memberOf View
|
13852
|
-
* @instance
|
13853
13735
|
*
|
13854
13736
|
* @example
|
13855
13737
|
* View:
|
@@ -13882,9 +13764,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13882
13764
|
getSharedWorkers(): Promise<OpenFin.SharedWorkerInfo[]>;
|
13883
13765
|
/**
|
13884
13766
|
* Opens the developer tools for the shared worker context.
|
13885
|
-
* @function inspectSharedWorker
|
13886
|
-
* @memberOf View
|
13887
|
-
* @instance
|
13888
13767
|
*
|
13889
13768
|
* @example
|
13890
13769
|
* View:
|
@@ -13918,9 +13797,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13918
13797
|
/**
|
13919
13798
|
* Inspects the shared worker based on its ID.
|
13920
13799
|
* @param workerId - The id of the shared worker.
|
13921
|
-
* @function inspectSharedWorkerById
|
13922
|
-
* @memberOf View
|
13923
|
-
* @instance
|
13924
13800
|
*
|
13925
13801
|
* @example
|
13926
13802
|
* View:
|
@@ -13955,9 +13831,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
13955
13831
|
inspectSharedWorkerById(workerId: string): Promise<void>;
|
13956
13832
|
/**
|
13957
13833
|
* Opens the developer tools for the service worker context.
|
13958
|
-
* @function inspectServiceWorker
|
13959
|
-
* @memberOf View
|
13960
|
-
* @instance
|
13961
13834
|
*
|
13962
13835
|
* @example
|
13963
13836
|
* View:
|
@@ -14194,11 +14067,6 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
14194
14067
|
* onPopupReady: popupWindowCallback;
|
14195
14068
|
* });
|
14196
14069
|
* ```
|
14197
|
-
* @function showPopupWindow
|
14198
|
-
* @memberOf View
|
14199
|
-
* @instance
|
14200
|
-
* @param options
|
14201
|
-
*
|
14202
14070
|
*/
|
14203
14071
|
showPopupWindow(options: OpenFin.PopupOptions): Promise<OpenFin.PopupResult>;
|
14204
14072
|
}
|
@@ -16033,7 +15901,6 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16033
15901
|
declare class _WindowModule extends Base {
|
16034
15902
|
/**
|
16035
15903
|
* Asynchronously returns a Window object that represents an existing window.
|
16036
|
-
* @param identity
|
16037
15904
|
*
|
16038
15905
|
* @example
|
16039
15906
|
* ```js
|
@@ -16050,12 +15917,10 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16050
15917
|
* .then(win => console.log('wrapped window'))
|
16051
15918
|
* .catch(err => console.log(err));
|
16052
15919
|
* ```
|
16053
|
-
* @static
|
16054
15920
|
*/
|
16055
15921
|
wrap(identity: OpenFin.Identity): Promise<OpenFin.Window>;
|
16056
15922
|
/**
|
16057
15923
|
* Synchronously returns a Window object that represents an existing window.
|
16058
|
-
* @param identity
|
16059
15924
|
*
|
16060
15925
|
* @example
|
16061
15926
|
* ```js
|
@@ -16071,7 +15936,6 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16071
15936
|
* await createWin();
|
16072
15937
|
* let win = fin.Window.wrapSync({ uuid: 'app-1', name: 'myApp' });
|
16073
15938
|
* ```
|
16074
|
-
* @static
|
16075
15939
|
*/
|
16076
15940
|
wrapSync(identity: OpenFin.Identity): OpenFin.Window;
|
16077
15941
|
/**
|
@@ -16094,7 +15958,6 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16094
15958
|
*
|
16095
15959
|
* createWindow().then(() => console.log('Window is created')).catch(err => console.log(err));
|
16096
15960
|
* ```
|
16097
|
-
* @static
|
16098
15961
|
*/
|
16099
15962
|
create(options: OpenFin.WindowCreationOptions): Promise<OpenFin.Window>;
|
16100
15963
|
/**
|
@@ -16107,7 +15970,6 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16107
15970
|
* .catch(err => console.log(err));
|
16108
15971
|
*
|
16109
15972
|
* ```
|
16110
|
-
* @static
|
16111
15973
|
*/
|
16112
15974
|
getCurrent(): Promise<OpenFin.Window>;
|
16113
15975
|
/**
|
@@ -16120,7 +15982,6 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16120
15982
|
* console.log(info);
|
16121
15983
|
*
|
16122
15984
|
* ```
|
16123
|
-
* @static
|
16124
15985
|
*/
|
16125
15986
|
getCurrentSync(): OpenFin.Window;
|
16126
15987
|
}
|