@openfin/core 25.68.30 → 25.70.2
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/OpenFin.d.ts +30 -826
- package/README.md +12 -2
- package/package.json +1 -1
- package/src/api/application/Factory.d.ts +145 -145
- package/src/api/application/Factory.js +229 -229
- package/src/api/application/Instance.d.ts +301 -302
- package/src/api/application/Instance.js +412 -412
- package/src/api/application/index.d.ts +3 -3
- package/src/api/application/index.js +15 -15
- package/src/api/base.d.ts +43 -43
- package/src/api/base.js +177 -177
- package/src/api/clipboard/index.d.ts +69 -69
- package/src/api/clipboard/index.js +88 -88
- package/src/api/events/application.d.ts +69 -0
- package/src/api/events/application.js +2 -0
- package/src/api/events/base.d.ts +17 -0
- package/src/api/events/base.js +2 -0
- package/src/api/events/channel.d.ts +10 -11
- package/src/api/events/channel.js +2 -2
- package/src/api/events/emitterMap.d.ts +11 -11
- package/src/api/events/emitterMap.js +35 -35
- package/src/api/events/eventAggregator.d.ts +5 -5
- package/src/api/events/eventAggregator.js +43 -43
- package/src/api/events/externalApplication.d.ts +5 -0
- package/src/api/events/externalApplication.js +2 -0
- package/src/api/events/frame.d.ts +9 -0
- package/src/api/events/frame.js +2 -0
- package/src/api/events/globalHotkey.d.ts +10 -0
- package/src/api/events/globalHotkey.js +2 -0
- package/src/api/events/platform.d.ts +18 -0
- package/src/api/events/platform.js +2 -0
- package/src/api/events/system.d.ts +22 -0
- package/src/api/events/system.js +2 -0
- package/src/api/events/view.d.ts +56 -0
- package/src/api/events/view.js +2 -0
- package/src/api/events/webcontents.d.ts +48 -0
- package/src/api/events/webcontents.js +2 -0
- package/src/api/events/window.d.ts +176 -0
- package/src/api/events/window.js +2 -0
- package/src/api/external-application/Factory.d.ts +26 -26
- package/src/api/external-application/Factory.js +40 -40
- package/src/api/external-application/Instance.d.ts +101 -102
- package/src/api/external-application/Instance.js +109 -109
- package/src/api/external-application/index.d.ts +3 -3
- package/src/api/external-application/index.js +15 -15
- package/src/api/fin.d.ts +49 -49
- package/src/api/fin.js +43 -43
- package/src/api/frame/Factory.d.ts +36 -36
- package/src/api/frame/Factory.js +69 -69
- package/src/api/frame/Instance.d.ts +121 -121
- package/src/api/frame/Instance.js +130 -130
- package/src/api/frame/index.d.ts +3 -3
- package/src/api/frame/index.js +15 -15
- package/src/api/global-hotkey/index.d.ts +38 -38
- package/src/api/global-hotkey/index.js +58 -58
- package/src/api/interappbus/channel/channel.d.ts +26 -26
- package/src/api/interappbus/channel/channel.js +77 -77
- package/src/api/interappbus/channel/channels-docs.d.ts +318 -318
- package/src/api/interappbus/channel/channels-docs.js +376 -376
- package/src/api/interappbus/channel/client.d.ts +22 -22
- package/src/api/interappbus/channel/client.js +84 -84
- package/src/api/interappbus/channel/connection-manager.d.ts +28 -28
- package/src/api/interappbus/channel/connection-manager.js +244 -244
- package/src/api/interappbus/channel/index.d.ts +22 -23
- package/src/api/interappbus/channel/index.js +121 -121
- package/src/api/interappbus/channel/protocols/classic/message-receiver.d.ts +13 -13
- package/src/api/interappbus/channel/protocols/classic/message-receiver.js +73 -73
- package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +22 -22
- package/src/api/interappbus/channel/protocols/classic/strategy.js +84 -84
- package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +20 -20
- package/src/api/interappbus/channel/protocols/combined/strategy.js +58 -58
- package/src/api/interappbus/channel/protocols/index.d.ts +44 -44
- package/src/api/interappbus/channel/protocols/index.js +2 -2
- package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +10 -10
- package/src/api/interappbus/channel/protocols/protocol-manager.js +43 -43
- package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +23 -23
- package/src/api/interappbus/channel/protocols/rtc/endpoint.js +135 -135
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.d.ts +30 -30
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +131 -131
- package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +22 -22
- package/src/api/interappbus/channel/protocols/rtc/strategy.js +87 -87
- package/src/api/interappbus/channel/protocols/strategy-types.d.ts +13 -13
- package/src/api/interappbus/channel/protocols/strategy-types.js +2 -2
- package/src/api/interappbus/channel/protocols/strategy.d.ts +15 -15
- package/src/api/interappbus/channel/protocols/strategy.js +2 -2
- package/src/api/interappbus/channel/provider.d.ts +31 -31
- package/src/api/interappbus/channel/provider.js +160 -160
- package/src/api/interappbus/index.d.ts +85 -86
- package/src/api/interappbus/index.js +175 -175
- package/src/api/interop/Factory.d.ts +37 -37
- package/src/api/interop/Factory.js +54 -54
- package/src/api/interop/InteropBroker.d.ts +363 -363
- package/src/api/interop/InteropBroker.js +914 -914
- package/src/api/interop/InteropClient.d.ts +268 -268
- package/src/api/interop/InteropClient.js +450 -450
- package/src/api/interop/SessionContextGroupBroker.d.ts +26 -26
- package/src/api/interop/SessionContextGroupBroker.js +107 -107
- package/src/api/interop/SessionContextGroupClient.d.ts +20 -20
- package/src/api/interop/SessionContextGroupClient.js +85 -85
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +187 -187
- package/src/api/interop/fdc3/fdc3-1.2.js +385 -385
- package/src/api/interop/fdc3/fdc3.js +17 -17
- package/src/api/interop/fdc3/utils.d.ts +6 -6
- package/src/api/interop/fdc3/utils.js +17 -17
- package/src/api/interop/index.d.ts +4 -4
- package/src/api/interop/index.js +16 -16
- package/src/api/interop/utils.d.ts +11 -11
- package/src/api/interop/utils.js +36 -36
- package/src/api/me.d.ts +38 -35
- package/src/api/me.js +128 -60
- package/src/api/platform/Factory.d.ts +109 -109
- package/src/api/platform/Factory.js +188 -188
- package/src/api/platform/Instance.d.ts +122 -122
- package/src/api/platform/Instance.js +298 -298
- package/src/api/platform/common-utils.d.ts +6 -6
- package/src/api/platform/common-utils.js +16 -16
- package/src/api/platform/index.d.ts +3 -3
- package/src/api/platform/index.js +15 -15
- package/src/api/platform/layout/Factory.d.ts +108 -108
- package/src/api/platform/layout/Factory.js +189 -189
- package/src/api/platform/layout/Instance.d.ts +49 -49
- package/src/api/platform/layout/Instance.js +99 -99
- package/src/api/platform/layout/index.d.ts +2 -2
- package/src/api/platform/layout/index.js +14 -14
- package/src/api/platform/layout/shapes.d.ts +11 -0
- package/src/api/{window → platform/layout}/shapes.js +2 -2
- package/src/api/snapshot-source/Factory.d.ts +36 -36
- package/src/api/snapshot-source/Factory.js +65 -65
- package/src/api/snapshot-source/Instance.d.ts +30 -30
- package/src/api/snapshot-source/Instance.js +134 -134
- package/src/api/snapshot-source/index.d.ts +3 -3
- package/src/api/snapshot-source/index.js +15 -15
- package/src/api/snapshot-source/utils.d.ts +1 -1
- package/src/api/snapshot-source/utils.js +5 -5
- package/src/api/system/index.d.ts +960 -961
- package/src/api/system/index.js +1241 -1241
- package/src/api/view/Factory.d.ts +49 -49
- package/src/api/view/Factory.js +103 -103
- package/src/api/view/Instance.d.ts +387 -380
- package/src/api/view/Instance.js +422 -415
- package/src/api/view/index.d.ts +3 -3
- package/src/api/view/index.js +15 -15
- package/src/api/webcontents/main.d.ts +36 -36
- package/src/api/webcontents/main.js +82 -82
- package/src/api/window/Factory.d.ts +44 -44
- package/src/api/window/Factory.js +91 -91
- package/src/api/window/Instance.d.ts +972 -966
- package/src/api/window/Instance.js +1209 -1202
- package/src/api/window/index.d.ts +3 -5
- package/src/api/window/index.js +15 -17
- package/src/environment/environment.d.ts +28 -25
- package/src/environment/environment.js +4 -4
- package/src/environment/node-env.d.ts +25 -26
- package/src/environment/node-env.js +64 -64
- package/src/environment/openfin-env.d.ts +29 -30
- package/src/environment/openfin-env.js +107 -107
- package/src/mock.d.ts +3 -3
- package/src/mock.js +91 -90
- package/src/shapes/ERROR_BOX_TYPES.d.ts +1 -0
- package/src/shapes/ERROR_BOX_TYPES.js +2 -0
- package/src/shapes/WebOptions.d.ts +12 -0
- package/src/shapes/WebOptions.js +2 -0
- package/src/shapes/WindowOptions.d.ts +42 -0
- package/src/shapes/WindowOptions.js +2 -0
- package/src/shapes/protocol.d.ts +178 -0
- package/src/shapes/protocol.js +2 -0
- package/src/transport/fin_store.d.ts +4 -4
- package/src/transport/fin_store.js +16 -16
- package/src/transport/transport-errors.d.ts +18 -18
- package/src/transport/transport-errors.js +37 -37
- package/src/transport/transport.d.ts +56 -43
- package/src/transport/transport.js +181 -181
- package/src/transport/wire.d.ts +71 -11
- package/src/transport/wire.js +32 -32
- package/src/util/asyncFilter.d.ts +1 -1
- package/src/util/asyncFilter.js +7 -7
- package/src/util/errors.d.ts +9 -5
- package/src/util/errors.js +11 -11
- package/src/util/exhaustive.d.ts +1 -1
- package/src/util/exhaustive.js +7 -7
- package/src/util/http.d.ts +11 -11
- package/src/util/http.js +83 -83
- package/src/util/normalize-config.d.ts +3 -5
- package/src/util/normalize-config.js +47 -47
- package/src/util/promises.d.ts +5 -5
- package/src/util/promises.js +27 -27
- package/src/util/ref-counter.d.ts +7 -7
- package/src/util/ref-counter.js +51 -51
- package/src/util/runtimeVersioning.d.ts +3 -3
- package/src/util/runtimeVersioning.js +25 -25
- package/src/util/utilTypes.d.ts +8 -8
- package/src/util/utilTypes.js +2 -2
- package/src/util/validate.d.ts +3 -3
- package/src/util/validate.js +11 -11
- package/docs.README(OLD).md +0 -82
- package/resources/win/OpenFinRVM.exe +0 -0
- package/src/api/window/bounds-changed.d.ts +0 -10
- package/src/api/window/bounds-changed.js +0 -6
- package/src/api/window/shapes.d.ts +0 -13
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BaseEventMap, WindowEvent } from './base';
|
|
2
|
+
import { CrashedEvent } from './application';
|
|
3
|
+
import { WindowNavigationRejectedEvent } from './window';
|
|
4
|
+
export interface WindowResourceLoadFailedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
5
|
+
errorCode: number;
|
|
6
|
+
errorDescription: string;
|
|
7
|
+
validatedURL: string;
|
|
8
|
+
isMainFrame: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface WindowResourceResponseReceivedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
11
|
+
status: boolean;
|
|
12
|
+
newUrl: string;
|
|
13
|
+
originalUrl: string;
|
|
14
|
+
httpResponseCode: number;
|
|
15
|
+
requestMethod: string;
|
|
16
|
+
referrer: string;
|
|
17
|
+
headers: any;
|
|
18
|
+
resourceType: 'mainFrame' | 'subFrame' | 'styleSheet' | 'script' | 'image' | 'object' | 'xhr' | 'other';
|
|
19
|
+
}
|
|
20
|
+
export interface PageTitleUpdatedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
21
|
+
title: string;
|
|
22
|
+
}
|
|
23
|
+
export interface CertificateErrorEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
24
|
+
error: string;
|
|
25
|
+
url: string;
|
|
26
|
+
certificate: OpenFin.Certificate;
|
|
27
|
+
}
|
|
28
|
+
export interface CertificateSelectionShownEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
29
|
+
url: string;
|
|
30
|
+
certificates: OpenFin.Certificate[];
|
|
31
|
+
}
|
|
32
|
+
export interface FaviconUpdatedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
33
|
+
favicons: string[];
|
|
34
|
+
}
|
|
35
|
+
export interface WebContentsEventMapping<Topic = string, Type = string> extends BaseEventMap {
|
|
36
|
+
'blurred': WindowEvent<Topic, Type>;
|
|
37
|
+
'certificate-error': CertificateErrorEvent<Topic, Type>;
|
|
38
|
+
'certificate-selection-shown': CertificateSelectionShownEvent<Topic, Type>;
|
|
39
|
+
'crashed': CrashedEvent & WindowEvent<Topic, Type>;
|
|
40
|
+
'did-change-theme-color': WindowEvent<Topic, Type>;
|
|
41
|
+
'focused': WindowEvent<Topic, Type>;
|
|
42
|
+
'found-in-page': WindowEvent<Topic, Type>;
|
|
43
|
+
'navigation-rejected': WindowNavigationRejectedEvent<Topic, Type>;
|
|
44
|
+
'page-favicon-updated': FaviconUpdatedEvent<Topic, Type>;
|
|
45
|
+
'page-title-updated': PageTitleUpdatedEvent<Topic, Type>;
|
|
46
|
+
'resource-load-failed': WindowResourceLoadFailedEvent<Topic, Type>;
|
|
47
|
+
'resource-response-received': WindowResourceResponseReceivedEvent<Topic, Type>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { CrashedEvent } from './application';
|
|
2
|
+
import { WindowEvent, BaseEventMap } from './base';
|
|
3
|
+
import { WebContentsEventMapping, WindowResourceLoadFailedEvent, WindowResourceResponseReceivedEvent, CertificateSelectionShownEvent } from './webcontents';
|
|
4
|
+
import { PropagatedViewEventMapping, InputEvent } from './view';
|
|
5
|
+
export interface WindowAlertRequestedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
6
|
+
message: string;
|
|
7
|
+
url: string;
|
|
8
|
+
}
|
|
9
|
+
export interface WindowAuthRequestedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
10
|
+
authInfo: {
|
|
11
|
+
host: string;
|
|
12
|
+
isProxy: boolean;
|
|
13
|
+
port: number;
|
|
14
|
+
realm: string;
|
|
15
|
+
scheme: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface WindowEndLoadEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
19
|
+
documentName: string;
|
|
20
|
+
isMain: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface WindowNavigationRejectedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
23
|
+
sourceName?: string;
|
|
24
|
+
url: string;
|
|
25
|
+
}
|
|
26
|
+
export interface WillRedirectEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
27
|
+
blocked: boolean;
|
|
28
|
+
isInPlace: boolean;
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
31
|
+
export interface WindowReloadedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
32
|
+
url: string;
|
|
33
|
+
}
|
|
34
|
+
export interface WindowOptionsChangedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
35
|
+
options: OpenFin.WindowOptions;
|
|
36
|
+
diff: OpenFin.WindowOptionDiff;
|
|
37
|
+
}
|
|
38
|
+
export interface WindowExternalProcessExitedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
39
|
+
processUuid: string;
|
|
40
|
+
exitCode: number;
|
|
41
|
+
}
|
|
42
|
+
export interface WindowExternalProcessStartedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
43
|
+
processUuid: string;
|
|
44
|
+
}
|
|
45
|
+
export interface WindowHiddenEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
46
|
+
reason: 'closing' | 'hide' | 'hide-on-close';
|
|
47
|
+
}
|
|
48
|
+
export interface PreloadScriptInfoRunning {
|
|
49
|
+
state: 'load-started' | 'load-failed' | 'load-succeeded' | 'failed' | 'succeeded';
|
|
50
|
+
}
|
|
51
|
+
export interface PreloadScriptInfo {
|
|
52
|
+
state: 'load-failed' | 'failed' | 'succeeded';
|
|
53
|
+
}
|
|
54
|
+
export interface WindowPreloadScriptsStateChangeEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
55
|
+
preloadScripts: (PreloadScriptInfoRunning & any)[];
|
|
56
|
+
}
|
|
57
|
+
export interface WindowPreloadScriptsStateChangedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
58
|
+
preloadScripts: (PreloadScriptInfoRunning & any)[];
|
|
59
|
+
}
|
|
60
|
+
export interface WindowBeginBoundsChangingEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
61
|
+
height: number;
|
|
62
|
+
left: number;
|
|
63
|
+
top: number;
|
|
64
|
+
width: number;
|
|
65
|
+
windowState: 'minimized' | 'normal' | 'maximized';
|
|
66
|
+
}
|
|
67
|
+
export interface WindowEndBoundsChangingEvent<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
68
|
+
height: number;
|
|
69
|
+
left: number;
|
|
70
|
+
top: number;
|
|
71
|
+
width: number;
|
|
72
|
+
windowState: 'minimized' | 'normal' | 'maximized';
|
|
73
|
+
}
|
|
74
|
+
export interface WindowBoundsChange<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
75
|
+
changeType: 0 | 1 | 2;
|
|
76
|
+
deferred: boolean;
|
|
77
|
+
height: number;
|
|
78
|
+
left: number;
|
|
79
|
+
top: number;
|
|
80
|
+
width: number;
|
|
81
|
+
}
|
|
82
|
+
export interface WillMoveOrResize<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
83
|
+
height: number;
|
|
84
|
+
left: number;
|
|
85
|
+
top: number;
|
|
86
|
+
width: number;
|
|
87
|
+
monitorScaleFactor: number;
|
|
88
|
+
}
|
|
89
|
+
export declare type WindowPerformanceReport<Topic, Type> = Performance & WindowEvent<Topic, Type>;
|
|
90
|
+
export interface ViewDetached<Topic, Type> extends WindowEvent<Topic, Type> {
|
|
91
|
+
previousTarget: OpenFin.Identity;
|
|
92
|
+
target: OpenFin.Identity;
|
|
93
|
+
viewIdentity: OpenFin.Identity;
|
|
94
|
+
}
|
|
95
|
+
export interface WindowEventMapping<Topic = string, Type = string> extends WebContentsEventMapping {
|
|
96
|
+
'auth-requested': WindowAuthRequestedEvent<Topic, Type>;
|
|
97
|
+
'begin-user-bounds-changing': WindowBeginBoundsChangingEvent<Topic, Type>;
|
|
98
|
+
'bounds-changed': WindowBoundsChange<Topic, Type>;
|
|
99
|
+
'bounds-changing': WindowBoundsChange<Topic, Type>;
|
|
100
|
+
'close-requested': WindowEvent<Topic, Type>;
|
|
101
|
+
'closed': WindowEvent<Topic, Type>;
|
|
102
|
+
'closing': WindowEvent<Topic, Type>;
|
|
103
|
+
'disabled-movement-bounds-changed': WindowBoundsChange<Topic, Type>;
|
|
104
|
+
'disabled-movement-bounds-changing': WindowBoundsChange<Topic, Type>;
|
|
105
|
+
'embedded': WindowEvent<Topic, Type>;
|
|
106
|
+
'end-user-bounds-changing': WindowEndBoundsChangingEvent<Topic, Type>;
|
|
107
|
+
'external-process-exited': WindowExternalProcessExitedEvent<Topic, Type>;
|
|
108
|
+
'external-process-started': WindowExternalProcessStartedEvent<Topic, Type>;
|
|
109
|
+
'hidden': WindowHiddenEvent<Topic, Type>;
|
|
110
|
+
'hotkey': InputEvent & WindowEvent<Topic, Type>;
|
|
111
|
+
'initialized': WindowEvent<Topic, Type>;
|
|
112
|
+
'layout-initialized': WindowEvent<Topic, Type>;
|
|
113
|
+
'layout-ready': WindowEvent<Topic, Type>;
|
|
114
|
+
'maximized': WindowEvent<Topic, Type>;
|
|
115
|
+
'minimized': WindowEvent<Topic, Type>;
|
|
116
|
+
'options-changed': WindowOptionsChangedEvent<Topic, Type>;
|
|
117
|
+
'performance-report': WindowPerformanceReport<Topic, Type>;
|
|
118
|
+
'preload-scripts-state-changed': WindowPreloadScriptsStateChangeEvent<Topic, Type>;
|
|
119
|
+
'preload-scripts-state-changing': WindowPreloadScriptsStateChangeEvent<Topic, Type>;
|
|
120
|
+
'reloaded': WindowReloadedEvent<Topic, Type>;
|
|
121
|
+
'restored': WindowEvent<Topic, Type>;
|
|
122
|
+
'show-requested': WindowEvent<Topic, Type>;
|
|
123
|
+
'shown': WindowEvent<Topic, Type>;
|
|
124
|
+
'user-movement-disabled': WindowEvent<Topic, Type>;
|
|
125
|
+
'user-movement-enabled': WindowEvent<Topic, Type>;
|
|
126
|
+
'view-attached': WindowEvent<Topic, Type>;
|
|
127
|
+
'view-detached': ViewDetached<Topic, Type>;
|
|
128
|
+
'will-move': WillMoveOrResize<Topic, Type>;
|
|
129
|
+
'will-redirect': WillRedirectEvent<Topic, Type>;
|
|
130
|
+
'will-resize': WillMoveOrResize<Topic, Type>;
|
|
131
|
+
}
|
|
132
|
+
export interface PropagatedWindowEventMapping<Topic = string, Type = string> extends BaseEventMap {
|
|
133
|
+
'window-begin-user-bounds-changing': WindowBeginBoundsChangingEvent<Topic, Type>;
|
|
134
|
+
'window-blurred': WindowEvent<Topic, Type>;
|
|
135
|
+
'window-bounds-changed': WindowBoundsChange<Topic, Type>;
|
|
136
|
+
'window-bounds-changing': WindowBoundsChange<Topic, Type>;
|
|
137
|
+
'window-certificate-selection-shown': CertificateSelectionShownEvent<Topic, Type>;
|
|
138
|
+
'window-closed': WindowEvent<Topic, Type>;
|
|
139
|
+
'window-closing': WindowEvent<Topic, Type>;
|
|
140
|
+
'window-crashed': CrashedEvent & WindowEvent<Topic, Type>;
|
|
141
|
+
'window-disabled-movement-bounds-changed': WindowBoundsChange<Topic, Type>;
|
|
142
|
+
'window-disabled-movement-bounds-changing': WindowBoundsChange<Topic, Type>;
|
|
143
|
+
'window-embedded': WindowEvent<Topic, Type>;
|
|
144
|
+
'window-end-user-bounds-changing': WindowBeginBoundsChangingEvent<Topic, Type>;
|
|
145
|
+
'window-external-process-exited': WindowExternalProcessExitedEvent<Topic, Type>;
|
|
146
|
+
'window-external-process-started': WindowExternalProcessStartedEvent<Topic, Type>;
|
|
147
|
+
'window-focused': WindowEvent<Topic, Type>;
|
|
148
|
+
'window-hidden': WindowHiddenEvent<Topic, Type>;
|
|
149
|
+
'window-hotkey': InputEvent & WindowEvent<Topic, Type>;
|
|
150
|
+
'window-initialized': WindowEvent<Topic, Type>;
|
|
151
|
+
'window-layout-initialized': WindowEvent<Topic, Type>;
|
|
152
|
+
'window-layout-ready': WindowEvent<Topic, Type>;
|
|
153
|
+
'window-maximized': WindowEvent<Topic, Type>;
|
|
154
|
+
'window-minimized': WindowEvent<Topic, Type>;
|
|
155
|
+
'window-navigation-rejected': WindowNavigationRejectedEvent<Topic, Type>;
|
|
156
|
+
'window-options-changed': WindowOptionsChangedEvent<Topic, Type>;
|
|
157
|
+
'window-performance-report': WindowPerformanceReport<Topic, Type>;
|
|
158
|
+
'window-preload-scripts-state-changed': WindowPreloadScriptsStateChangeEvent<Topic, Type>;
|
|
159
|
+
'window-preload-scripts-state-changing': WindowPreloadScriptsStateChangedEvent<Topic, Type>;
|
|
160
|
+
'window-resource-load-failed': WindowResourceLoadFailedEvent<Topic, Type>;
|
|
161
|
+
'window-resource-response-received': WindowResourceResponseReceivedEvent<Topic, Type>;
|
|
162
|
+
'window-reloaded': WindowReloadedEvent<Topic, Type>;
|
|
163
|
+
'window-restored': WindowEvent<Topic, Type>;
|
|
164
|
+
'window-shown': WindowEvent<Topic, Type>;
|
|
165
|
+
'window-user-movement-disabled': WindowEvent<Topic, Type>;
|
|
166
|
+
'window-user-movement-enabled': WindowEvent<Topic, Type>;
|
|
167
|
+
'window-will-move': WillMoveOrResize<Topic, Type>;
|
|
168
|
+
'window-will-redirect': WillRedirectEvent<Topic, Type>;
|
|
169
|
+
'window-will-resize': WillMoveOrResize<Topic, Type>;
|
|
170
|
+
}
|
|
171
|
+
export declare type WindowEvents = PropagatedViewEventMapping<'window'> & {
|
|
172
|
+
[Type in keyof WindowEventMapping]: WindowEventMapping<'window', Type>[Type];
|
|
173
|
+
};
|
|
174
|
+
export declare type PropagatedWindowEvents<Topic> = {
|
|
175
|
+
[Type in keyof PropagatedWindowEventMapping]: PropagatedWindowEventMapping<Topic, Type>[Type];
|
|
176
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Base } from '../base';
|
|
2
|
-
/**
|
|
3
|
-
* @lends ExternalApplication
|
|
4
|
-
*/
|
|
5
|
-
export default class ExternalApplicationModule extends Base {
|
|
6
|
-
/**
|
|
7
|
-
* Asynchronously returns an External Application object that represents an external application.
|
|
8
|
-
* <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
|
|
9
|
-
* provided its uuid is already known.
|
|
10
|
-
* @param {string} uuid The UUID of the external application to be wrapped
|
|
11
|
-
* @return {Promise.<ExternalApplication>}
|
|
12
|
-
* @tutorial ExternalApplication.wrap
|
|
13
|
-
* @static
|
|
14
|
-
*/
|
|
15
|
-
wrap(uuid: string): Promise<OpenFin.ExternalApplication>;
|
|
16
|
-
/**
|
|
17
|
-
* Synchronously returns an External Application object that represents an external application.
|
|
18
|
-
* <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
|
|
19
|
-
* provided its uuid is already known.
|
|
20
|
-
* @param {string} uuid The UUID of the external application to be wrapped
|
|
21
|
-
* @return {ExternalApplication}
|
|
22
|
-
* @tutorial ExternalApplication.wrapSync
|
|
23
|
-
* @static
|
|
24
|
-
*/
|
|
25
|
-
wrapSync(uuid: string): OpenFin.ExternalApplication;
|
|
26
|
-
}
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
/**
|
|
3
|
+
* @lends ExternalApplication
|
|
4
|
+
*/
|
|
5
|
+
export default class ExternalApplicationModule extends Base {
|
|
6
|
+
/**
|
|
7
|
+
* Asynchronously returns an External Application object that represents an external application.
|
|
8
|
+
* <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
|
|
9
|
+
* provided its uuid is already known.
|
|
10
|
+
* @param {string} uuid The UUID of the external application to be wrapped
|
|
11
|
+
* @return {Promise.<ExternalApplication>}
|
|
12
|
+
* @tutorial ExternalApplication.wrap
|
|
13
|
+
* @static
|
|
14
|
+
*/
|
|
15
|
+
wrap(uuid: string): Promise<OpenFin.ExternalApplication>;
|
|
16
|
+
/**
|
|
17
|
+
* Synchronously returns an External Application object that represents an external application.
|
|
18
|
+
* <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
|
|
19
|
+
* provided its uuid is already known.
|
|
20
|
+
* @param {string} uuid The UUID of the external application to be wrapped
|
|
21
|
+
* @return {ExternalApplication}
|
|
22
|
+
* @tutorial ExternalApplication.wrapSync
|
|
23
|
+
* @static
|
|
24
|
+
*/
|
|
25
|
+
wrapSync(uuid: string): OpenFin.ExternalApplication;
|
|
26
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const base_1 = require("../base");
|
|
4
|
-
const Instance_1 = require("./Instance");
|
|
5
|
-
/**
|
|
6
|
-
* @lends ExternalApplication
|
|
7
|
-
*/
|
|
8
|
-
class ExternalApplicationModule extends base_1.Base {
|
|
9
|
-
/**
|
|
10
|
-
* Asynchronously returns an External Application object that represents an external application.
|
|
11
|
-
* <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
|
|
12
|
-
* provided its uuid is already known.
|
|
13
|
-
* @param {string} uuid The UUID of the external application to be wrapped
|
|
14
|
-
* @return {Promise.<ExternalApplication>}
|
|
15
|
-
* @tutorial ExternalApplication.wrap
|
|
16
|
-
* @static
|
|
17
|
-
*/
|
|
18
|
-
wrap(uuid) {
|
|
19
|
-
this.wire.sendAction('external-application-wrap').catch((e) => {
|
|
20
|
-
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
21
|
-
});
|
|
22
|
-
return Promise.resolve(new Instance_1.ExternalApplication(this.wire, { uuid }));
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Synchronously returns an External Application object that represents an external application.
|
|
26
|
-
* <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
|
|
27
|
-
* provided its uuid is already known.
|
|
28
|
-
* @param {string} uuid The UUID of the external application to be wrapped
|
|
29
|
-
* @return {ExternalApplication}
|
|
30
|
-
* @tutorial ExternalApplication.wrapSync
|
|
31
|
-
* @static
|
|
32
|
-
*/
|
|
33
|
-
wrapSync(uuid) {
|
|
34
|
-
this.wire.sendAction('external-application-wrap-sync').catch((e) => {
|
|
35
|
-
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
36
|
-
});
|
|
37
|
-
return new Instance_1.ExternalApplication(this.wire, { uuid });
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.default = ExternalApplicationModule;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const base_1 = require("../base");
|
|
4
|
+
const Instance_1 = require("./Instance");
|
|
5
|
+
/**
|
|
6
|
+
* @lends ExternalApplication
|
|
7
|
+
*/
|
|
8
|
+
class ExternalApplicationModule extends base_1.Base {
|
|
9
|
+
/**
|
|
10
|
+
* Asynchronously returns an External Application object that represents an external application.
|
|
11
|
+
* <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
|
|
12
|
+
* provided its uuid is already known.
|
|
13
|
+
* @param {string} uuid The UUID of the external application to be wrapped
|
|
14
|
+
* @return {Promise.<ExternalApplication>}
|
|
15
|
+
* @tutorial ExternalApplication.wrap
|
|
16
|
+
* @static
|
|
17
|
+
*/
|
|
18
|
+
wrap(uuid) {
|
|
19
|
+
this.wire.sendAction('external-application-wrap').catch((e) => {
|
|
20
|
+
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
21
|
+
});
|
|
22
|
+
return Promise.resolve(new Instance_1.ExternalApplication(this.wire, { uuid }));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Synchronously returns an External Application object that represents an external application.
|
|
26
|
+
* <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
|
|
27
|
+
* provided its uuid is already known.
|
|
28
|
+
* @param {string} uuid The UUID of the external application to be wrapped
|
|
29
|
+
* @return {ExternalApplication}
|
|
30
|
+
* @tutorial ExternalApplication.wrapSync
|
|
31
|
+
* @static
|
|
32
|
+
*/
|
|
33
|
+
wrapSync(uuid) {
|
|
34
|
+
this.wire.sendAction('external-application-wrap-sync').catch((e) => {
|
|
35
|
+
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
36
|
+
});
|
|
37
|
+
return new Instance_1.ExternalApplication(this.wire, { uuid });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.default = ExternalApplicationModule;
|
|
@@ -1,102 +1,101 @@
|
|
|
1
|
-
import { EmitterBase } from '../base';
|
|
2
|
-
import Transport from '../../transport/transport';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Processes
|
|
10
|
-
* - Processes
|
|
11
|
-
* - Processes
|
|
12
|
-
*
|
|
13
|
-
* @
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
identity: OpenFin.ApplicationIdentity;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
* @param {
|
|
22
|
-
* @param {
|
|
23
|
-
* @
|
|
24
|
-
* @
|
|
25
|
-
* @
|
|
26
|
-
* @
|
|
27
|
-
* @
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*
|
|
32
|
-
* @param {
|
|
33
|
-
* @param {
|
|
34
|
-
* @
|
|
35
|
-
* @
|
|
36
|
-
* @
|
|
37
|
-
* @
|
|
38
|
-
* @
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*
|
|
43
|
-
* @param {
|
|
44
|
-
* @param {
|
|
45
|
-
* @
|
|
46
|
-
* @
|
|
47
|
-
* @
|
|
48
|
-
* @
|
|
49
|
-
* @
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
*
|
|
54
|
-
* @param {
|
|
55
|
-
* @param {
|
|
56
|
-
* @
|
|
57
|
-
* @
|
|
58
|
-
* @
|
|
59
|
-
* @
|
|
60
|
-
* @
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* @param {
|
|
67
|
-
* @param {
|
|
68
|
-
* @
|
|
69
|
-
* @
|
|
70
|
-
* @
|
|
71
|
-
* @
|
|
72
|
-
* @
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* @param {
|
|
79
|
-
* @param {
|
|
80
|
-
* @
|
|
81
|
-
* @
|
|
82
|
-
* @
|
|
83
|
-
* @
|
|
84
|
-
* @
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
*
|
|
89
|
-
* @
|
|
90
|
-
* @
|
|
91
|
-
* @
|
|
92
|
-
* @
|
|
93
|
-
* @
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
*
|
|
98
|
-
* @
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
1
|
+
import { EmitterBase } from '../base';
|
|
2
|
+
import Transport from '../../transport/transport';
|
|
3
|
+
/**
|
|
4
|
+
* @classdesc An ExternalApplication object representing native language adapter connections to the runtime. Allows
|
|
5
|
+
* the developer to listen to <a href="tutorial-ExternalApplication.EventEmitter.html">application events.</a>
|
|
6
|
+
* Discovery of connections is provided by <a href="tutorial-System.getAllExternalApplications.html">getAllExternalApplications.</a>
|
|
7
|
+
*
|
|
8
|
+
* Processes that can be wrapped as `ExternalApplication`s include the following:
|
|
9
|
+
* - Processes which have connected to an OpenFin runtime via an adapter
|
|
10
|
+
* - Processes started via `System.launchExternalApplication`
|
|
11
|
+
* - Processes monitored via `System.monitorExternalProcess`
|
|
12
|
+
* @class
|
|
13
|
+
* @hideconstructor
|
|
14
|
+
*/
|
|
15
|
+
export declare class ExternalApplication extends EmitterBase<OpenFin.ExternalApplicationEvents> {
|
|
16
|
+
identity: OpenFin.ApplicationIdentity;
|
|
17
|
+
constructor(wire: Transport, identity: OpenFin.ApplicationIdentity);
|
|
18
|
+
/**
|
|
19
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
|
20
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
21
|
+
* @param { Function } listener - Called whenever an event of the specified type occurs.
|
|
22
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
23
|
+
* @return {Promise.<this>}
|
|
24
|
+
* @function addListener
|
|
25
|
+
* @memberof ExternalApplication
|
|
26
|
+
* @instance
|
|
27
|
+
* @tutorial ExternalApplication.EventEmitter
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
|
31
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
32
|
+
* @param { Function } listener - Called whenever an event of the specified type occurs.
|
|
33
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
34
|
+
* @return {Promise.<this>}
|
|
35
|
+
* @function on
|
|
36
|
+
* @memberof ExternalApplication
|
|
37
|
+
* @instance
|
|
38
|
+
* @tutorial ExternalApplication.EventEmitter
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
42
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
43
|
+
* @param { Function } listener - The callback function.
|
|
44
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
45
|
+
* @return {Promise.<this>}
|
|
46
|
+
* @function once
|
|
47
|
+
* @memberof ExternalApplication
|
|
48
|
+
* @instance
|
|
49
|
+
* @tutorial ExternalApplication.EventEmitter
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
53
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
54
|
+
* @param { Function } listener - The callback function.
|
|
55
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
56
|
+
* @return {Promise.<this>}
|
|
57
|
+
* @function prependListener
|
|
58
|
+
* @memberof ExternalApplication
|
|
59
|
+
* @instance
|
|
60
|
+
* @tutorial ExternalApplication.EventEmitter
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
64
|
+
* The listener is added to the beginning of the listeners array.
|
|
65
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
66
|
+
* @param { Function } listener - The callback function.
|
|
67
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
68
|
+
* @return {Promise.<this>}
|
|
69
|
+
* @function prependOnceListener
|
|
70
|
+
* @memberof ExternalApplication
|
|
71
|
+
* @instance
|
|
72
|
+
* @tutorial ExternalApplication.EventEmitter
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Remove a listener from the listener array for the specified event.
|
|
76
|
+
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
77
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
78
|
+
* @param { Function } listener - The callback function.
|
|
79
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
80
|
+
* @return {Promise.<this>}
|
|
81
|
+
* @function removeListener
|
|
82
|
+
* @memberof ExternalApplication
|
|
83
|
+
* @instance
|
|
84
|
+
* @tutorial ExternalApplication.EventEmitter
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* Removes all listeners, or those of the specified event.
|
|
88
|
+
* @param { string | symbol } [eventType] - The type of the event.
|
|
89
|
+
* @return {Promise.<this>}
|
|
90
|
+
* @function removeAllListeners
|
|
91
|
+
* @memberof ExternalApplication
|
|
92
|
+
* @instance
|
|
93
|
+
* @tutorial ExternalApplication.EventEmitter
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
96
|
+
* Retrieves information about the external application.
|
|
97
|
+
* @return {Promise.<ExternalApplicationInfo>}
|
|
98
|
+
* @tutorial ExternalApplication.getInfo
|
|
99
|
+
*/
|
|
100
|
+
getInfo(): Promise<OpenFin.ExternalApplicationInfo>;
|
|
101
|
+
}
|