@openfin/core 33.76.36 → 33.77.1

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.
Files changed (271) hide show
  1. package/OpenFin.d.ts +1 -1
  2. package/README.md +29 -4
  3. package/fin.d.ts +2 -2
  4. package/{src → out}/GlobalOpenFin.d.ts +1 -1
  5. package/out/mock-alpha.d.ts +16112 -0
  6. package/out/mock-beta.d.ts +16112 -0
  7. package/out/mock-public.d.ts +16112 -0
  8. package/out/mock.d.ts +16797 -0
  9. package/out/mock.js +17111 -0
  10. package/package.json +30 -23
  11. package/LICENSE +0 -13
  12. package/NOTICE +0 -16
  13. package/openfin-core-33.76.36.tgz +0 -0
  14. package/src/OpenFin.d.ts +0 -3091
  15. package/src/OpenFin.js +0 -2
  16. package/src/api/api-exposer/api-consumer.d.ts +0 -28
  17. package/src/api/api-exposer/api-consumer.js +0 -28
  18. package/src/api/api-exposer/api-exposer.d.ts +0 -35
  19. package/src/api/api-exposer/api-exposer.js +0 -38
  20. package/src/api/api-exposer/decorators.d.ts +0 -10
  21. package/src/api/api-exposer/decorators.js +0 -18
  22. package/src/api/api-exposer/index.d.ts +0 -4
  23. package/src/api/api-exposer/index.js +0 -20
  24. package/src/api/api-exposer/strategies/index.d.ts +0 -1
  25. package/src/api/api-exposer/strategies/index.js +0 -17
  26. package/src/api/api-exposer/strategies/openfin-channels/channels-consumer.d.ts +0 -14
  27. package/src/api/api-exposer/strategies/openfin-channels/channels-consumer.js +0 -20
  28. package/src/api/api-exposer/strategies/openfin-channels/channels-exposer.d.ts +0 -20
  29. package/src/api/api-exposer/strategies/openfin-channels/channels-exposer.js +0 -23
  30. package/src/api/api-exposer/strategies/openfin-channels/index.d.ts +0 -2
  31. package/src/api/api-exposer/strategies/openfin-channels/index.js +0 -18
  32. package/src/api/application/Factory.d.ts +0 -196
  33. package/src/api/application/Factory.js +0 -278
  34. package/src/api/application/Instance.d.ts +0 -692
  35. package/src/api/application/Instance.js +0 -821
  36. package/src/api/application/index.d.ts +0 -12
  37. package/src/api/application/index.js +0 -28
  38. package/src/api/base.d.ts +0 -117
  39. package/src/api/base.js +0 -246
  40. package/src/api/clipboard/index.d.ts +0 -172
  41. package/src/api/clipboard/index.js +0 -200
  42. package/src/api/events/application.d.ts +0 -158
  43. package/src/api/events/application.js +0 -14
  44. package/src/api/events/base.d.ts +0 -42
  45. package/src/api/events/base.js +0 -2
  46. package/src/api/events/channel.d.ts +0 -35
  47. package/src/api/events/channel.js +0 -7
  48. package/src/api/events/emitterMap.d.ts +0 -11
  49. package/src/api/events/emitterMap.js +0 -35
  50. package/src/api/events/eventAggregator.d.ts +0 -5
  51. package/src/api/events/eventAggregator.js +0 -35
  52. package/src/api/events/externalApplication.d.ts +0 -24
  53. package/src/api/events/externalApplication.js +0 -7
  54. package/src/api/events/frame.d.ts +0 -35
  55. package/src/api/events/frame.js +0 -2
  56. package/src/api/events/globalHotkey.d.ts +0 -25
  57. package/src/api/events/globalHotkey.js +0 -2
  58. package/src/api/events/platform.d.ts +0 -34
  59. package/src/api/events/platform.js +0 -10
  60. package/src/api/events/system.d.ts +0 -126
  61. package/src/api/events/system.js +0 -15
  62. package/src/api/events/typedEventEmitter.d.ts +0 -20
  63. package/src/api/events/typedEventEmitter.js +0 -2
  64. package/src/api/events/view.d.ts +0 -92
  65. package/src/api/events/view.js +0 -12
  66. package/src/api/events/webcontents.d.ts +0 -277
  67. package/src/api/events/webcontents.js +0 -13
  68. package/src/api/events/window.d.ts +0 -421
  69. package/src/api/events/window.js +0 -12
  70. package/src/api/external-application/Factory.d.ts +0 -34
  71. package/src/api/external-application/Factory.js +0 -47
  72. package/src/api/external-application/Instance.d.ts +0 -110
  73. package/src/api/external-application/Instance.js +0 -117
  74. package/src/api/external-application/index.d.ts +0 -12
  75. package/src/api/external-application/index.js +0 -28
  76. package/src/api/fin.d.ts +0 -54
  77. package/src/api/fin.js +0 -45
  78. package/src/api/frame/Factory.d.ts +0 -54
  79. package/src/api/frame/Factory.js +0 -86
  80. package/src/api/frame/Instance.d.ts +0 -136
  81. package/src/api/frame/Instance.js +0 -143
  82. package/src/api/frame/index.d.ts +0 -14
  83. package/src/api/frame/index.js +0 -30
  84. package/src/api/global-hotkey/index.d.ts +0 -106
  85. package/src/api/global-hotkey/index.js +0 -132
  86. package/src/api/interappbus/channel/channel.d.ts +0 -285
  87. package/src/api/interappbus/channel/channel.js +0 -334
  88. package/src/api/interappbus/channel/channels-docs.d.ts +0 -342
  89. package/src/api/interappbus/channel/channels-docs.js +0 -401
  90. package/src/api/interappbus/channel/client.d.ts +0 -117
  91. package/src/api/interappbus/channel/client.js +0 -181
  92. package/src/api/interappbus/channel/connection-manager.d.ts +0 -29
  93. package/src/api/interappbus/channel/connection-manager.js +0 -246
  94. package/src/api/interappbus/channel/index.d.ts +0 -189
  95. package/src/api/interappbus/channel/index.js +0 -333
  96. package/src/api/interappbus/channel/protocols/classic/message-receiver.d.ts +0 -13
  97. package/src/api/interappbus/channel/protocols/classic/message-receiver.js +0 -73
  98. package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +0 -24
  99. package/src/api/interappbus/channel/protocols/classic/strategy.js +0 -101
  100. package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +0 -20
  101. package/src/api/interappbus/channel/protocols/combined/strategy.js +0 -58
  102. package/src/api/interappbus/channel/protocols/index.d.ts +0 -47
  103. package/src/api/interappbus/channel/protocols/index.js +0 -2
  104. package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +0 -10
  105. package/src/api/interappbus/channel/protocols/protocol-manager.js +0 -43
  106. package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +0 -25
  107. package/src/api/interappbus/channel/protocols/rtc/endpoint.js +0 -141
  108. package/src/api/interappbus/channel/protocols/rtc/ice-manager.d.ts +0 -30
  109. package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +0 -130
  110. package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +0 -24
  111. package/src/api/interappbus/channel/protocols/rtc/strategy.js +0 -85
  112. package/src/api/interappbus/channel/protocols/strategy-types.d.ts +0 -13
  113. package/src/api/interappbus/channel/protocols/strategy-types.js +0 -2
  114. package/src/api/interappbus/channel/protocols/strategy.d.ts +0 -17
  115. package/src/api/interappbus/channel/protocols/strategy.js +0 -2
  116. package/src/api/interappbus/channel/provider.d.ts +0 -206
  117. package/src/api/interappbus/channel/provider.js +0 -338
  118. package/src/api/interappbus/index.d.ts +0 -120
  119. package/src/api/interappbus/index.js +0 -210
  120. package/src/api/interop/Factory.d.ts +0 -57
  121. package/src/api/interop/Factory.js +0 -96
  122. package/src/api/interop/InteropBroker.d.ts +0 -665
  123. package/src/api/interop/InteropBroker.js +0 -1313
  124. package/src/api/interop/InteropClient.d.ts +0 -502
  125. package/src/api/interop/InteropClient.js +0 -683
  126. package/src/api/interop/SessionContextGroupBroker.d.ts +0 -27
  127. package/src/api/interop/SessionContextGroupBroker.js +0 -108
  128. package/src/api/interop/SessionContextGroupClient.d.ts +0 -21
  129. package/src/api/interop/SessionContextGroupClient.js +0 -86
  130. package/src/api/interop/fdc3/PrivateChannelClient.d.ts +0 -20
  131. package/src/api/interop/fdc3/PrivateChannelClient.js +0 -90
  132. package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +0 -55
  133. package/src/api/interop/fdc3/PrivateChannelProvider.js +0 -276
  134. package/src/api/interop/fdc3/documentationStub.d.ts +0 -14
  135. package/src/api/interop/fdc3/documentationStub.js +0 -17
  136. package/src/api/interop/fdc3/fdc3-1.2.d.ts +0 -205
  137. package/src/api/interop/fdc3/fdc3-1.2.js +0 -435
  138. package/src/api/interop/fdc3/fdc3-2.0.d.ts +0 -298
  139. package/src/api/interop/fdc3/fdc3-2.0.js +0 -479
  140. package/src/api/interop/fdc3/fdc3.d.ts +0 -12
  141. package/src/api/interop/fdc3/fdc3.js +0 -35
  142. package/src/api/interop/fdc3/overrideCheck.d.ts +0 -4
  143. package/src/api/interop/fdc3/overrideCheck.js +0 -32
  144. package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +0 -53
  145. package/src/api/interop/fdc3/shapes/fdc3v1.js +0 -4
  146. package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +0 -75
  147. package/src/api/interop/fdc3/shapes/fdc3v2.js +0 -2
  148. package/src/api/interop/fdc3/utils.d.ts +0 -45
  149. package/src/api/interop/fdc3/utils.js +0 -239
  150. package/src/api/interop/fdc3/versions.d.ts +0 -1
  151. package/src/api/interop/fdc3/versions.js +0 -2
  152. package/src/api/interop/index.d.ts +0 -12
  153. package/src/api/interop/index.js +0 -28
  154. package/src/api/interop/utils.d.ts +0 -18
  155. package/src/api/interop/utils.js +0 -61
  156. package/src/api/me.d.ts +0 -40
  157. package/src/api/me.js +0 -134
  158. package/src/api/platform/Factory.d.ts +0 -171
  159. package/src/api/platform/Factory.js +0 -240
  160. package/src/api/platform/Instance.d.ts +0 -653
  161. package/src/api/platform/Instance.js +0 -834
  162. package/src/api/platform/common-utils.d.ts +0 -7
  163. package/src/api/platform/common-utils.js +0 -16
  164. package/src/api/platform/index.d.ts +0 -12
  165. package/src/api/platform/index.js +0 -28
  166. package/src/api/platform/layout/Factory.d.ts +0 -91
  167. package/src/api/platform/layout/Factory.js +0 -151
  168. package/src/api/platform/layout/Instance.d.ts +0 -192
  169. package/src/api/platform/layout/Instance.js +0 -224
  170. package/src/api/platform/layout/controllers/layout-content-cache.d.ts +0 -9
  171. package/src/api/platform/layout/controllers/layout-content-cache.js +0 -54
  172. package/src/api/platform/layout/controllers/layout-entities-controller.d.ts +0 -119
  173. package/src/api/platform/layout/controllers/layout-entities-controller.js +0 -287
  174. package/src/api/platform/layout/entities/layout-entities.d.ts +0 -427
  175. package/src/api/platform/layout/entities/layout-entities.js +0 -504
  176. package/src/api/platform/layout/entities/shapes.d.ts +0 -6
  177. package/src/api/platform/layout/entities/shapes.js +0 -2
  178. package/src/api/platform/layout/index.d.ts +0 -11
  179. package/src/api/platform/layout/index.js +0 -27
  180. package/src/api/platform/layout/layout.constants.d.ts +0 -1
  181. package/src/api/platform/layout/layout.constants.js +0 -4
  182. package/src/api/platform/layout/shapes.d.ts +0 -16
  183. package/src/api/platform/layout/shapes.js +0 -2
  184. package/src/api/platform/layout/utils/layout-traversal.d.ts +0 -4
  185. package/src/api/platform/layout/utils/layout-traversal.js +0 -65
  186. package/src/api/platform/provider.d.ts +0 -510
  187. package/src/api/platform/provider.js +0 -2
  188. package/src/api/snapshot-source/Factory.d.ts +0 -53
  189. package/src/api/snapshot-source/Factory.js +0 -81
  190. package/src/api/snapshot-source/Instance.d.ts +0 -53
  191. package/src/api/snapshot-source/Instance.js +0 -154
  192. package/src/api/snapshot-source/index.d.ts +0 -12
  193. package/src/api/snapshot-source/index.js +0 -28
  194. package/src/api/snapshot-source/utils.d.ts +0 -2
  195. package/src/api/snapshot-source/utils.js +0 -6
  196. package/src/api/system/index.d.ts +0 -1468
  197. package/src/api/system/index.js +0 -1851
  198. package/src/api/view/Factory.d.ts +0 -88
  199. package/src/api/view/Factory.js +0 -141
  200. package/src/api/view/Instance.d.ts +0 -601
  201. package/src/api/view/Instance.js +0 -671
  202. package/src/api/view/index.d.ts +0 -12
  203. package/src/api/view/index.js +0 -28
  204. package/src/api/webcontents/main.d.ts +0 -922
  205. package/src/api/webcontents/main.js +0 -1046
  206. package/src/api/window/Factory.d.ts +0 -96
  207. package/src/api/window/Factory.js +0 -142
  208. package/src/api/window/Instance.d.ts +0 -1598
  209. package/src/api/window/Instance.js +0 -1851
  210. package/src/api/window/index.d.ts +0 -14
  211. package/src/api/window/index.js +0 -30
  212. package/src/browser.d.ts +0 -10
  213. package/src/browser.js +0 -36
  214. package/src/environment/browser.d.ts +0 -29
  215. package/src/environment/browser.js +0 -60
  216. package/src/environment/environment.d.ts +0 -33
  217. package/src/environment/environment.js +0 -4
  218. package/src/environment/mockEnvironment.d.ts +0 -27
  219. package/src/environment/mockEnvironment.js +0 -61
  220. package/src/environment/node-env.d.ts +0 -29
  221. package/src/environment/node-env.js +0 -72
  222. package/src/fdc3.d.ts +0 -3
  223. package/src/fdc3.js +0 -9
  224. package/src/mock.d.ts +0 -3
  225. package/src/mock.js +0 -18
  226. package/src/namespaces.d.ts +0 -22
  227. package/src/namespaces.js +0 -26
  228. package/src/shapes/ERROR_BOX_TYPES.d.ts +0 -1
  229. package/src/shapes/ERROR_BOX_TYPES.js +0 -2
  230. package/src/shapes/WebOptions.d.ts +0 -13
  231. package/src/shapes/WebOptions.js +0 -2
  232. package/src/shapes/WindowOptions.d.ts +0 -43
  233. package/src/shapes/WindowOptions.js +0 -2
  234. package/src/shapes/protocol.d.ts +0 -204
  235. package/src/shapes/protocol.js +0 -2
  236. package/src/transport/mockWire.d.ts +0 -11
  237. package/src/transport/mockWire.js +0 -26
  238. package/src/transport/transport-errors.d.ts +0 -31
  239. package/src/transport/transport-errors.js +0 -79
  240. package/src/transport/transport.d.ts +0 -73
  241. package/src/transport/transport.js +0 -219
  242. package/src/transport/wire.d.ts +0 -77
  243. package/src/transport/wire.js +0 -36
  244. package/src/util/asyncFilter.d.ts +0 -1
  245. package/src/util/asyncFilter.js +0 -7
  246. package/src/util/channel-api-relay.d.ts +0 -13
  247. package/src/util/channel-api-relay.js +0 -47
  248. package/src/util/errors.d.ts +0 -10
  249. package/src/util/errors.js +0 -12
  250. package/src/util/exhaustive.d.ts +0 -1
  251. package/src/util/exhaustive.js +0 -7
  252. package/src/util/http.d.ts +0 -11
  253. package/src/util/http.js +0 -90
  254. package/src/util/inaccessibleObject.d.ts +0 -2
  255. package/src/util/inaccessibleObject.js +0 -49
  256. package/src/util/lazy.d.ts +0 -34
  257. package/src/util/lazy.js +0 -54
  258. package/src/util/normalize-config.d.ts +0 -3
  259. package/src/util/normalize-config.js +0 -52
  260. package/src/util/promises.d.ts +0 -5
  261. package/src/util/promises.js +0 -27
  262. package/src/util/ref-counter.d.ts +0 -7
  263. package/src/util/ref-counter.js +0 -52
  264. package/src/util/reversible-map.d.ts +0 -11
  265. package/src/util/reversible-map.js +0 -49
  266. package/src/util/runtimeVersioning.d.ts +0 -3
  267. package/src/util/runtimeVersioning.js +0 -25
  268. package/src/util/utilTypes.d.ts +0 -8
  269. package/src/util/utilTypes.js +0 -2
  270. package/src/util/validate.d.ts +0 -3
  271. package/src/util/validate.js +0 -11
@@ -1,421 +0,0 @@
1
- /**
2
- * Namespace for events that can be transmitted on an OpenFin Window's EventEmitter.
3
- *
4
- * Window events fall into two categories: propagated and non-propagated. Propagated events will
5
- * be re-emitted on the parent application of the target window, prefixed with "window-". For example,
6
- * a window's "reloaded" event will be re-emitted on the parent application as "window-reloaded". Non-propagated
7
- * events will not be re-emitted on the parent application.
8
- *
9
- * @packageDocumentation
10
- */
11
- import type * as OpenFin from '../../OpenFin';
12
- import { NamedEvent, PropagatedEvent } from './base';
13
- import { BaseViewEvent, PropagatedViewEvent, AttachedEvent as ViewAttachedEvent } from './view';
14
- import { NonPropagatedWebContentsEvent, WillPropagateWebContentsEvent } from './webcontents';
15
- /**
16
- * Generated when an alert is fired and suppressed due to the customWindowAlert flag being true.
17
- */
18
- export type AlertRequestedEvent = NamedEvent & {
19
- type: 'alert-requested';
20
- message: string;
21
- url: string;
22
- };
23
- /**
24
- * Generated when a window within this application requires credentials from the user.
25
- * @remarks When a proxy exists, our default behavior shows an auth dialog, and asks users to enter their username and password.
26
- * If you would like to change the default behavior, you can use the 'window-auth-requested' event to override it.
27
- *
28
- * Show customized auth dialog instead of default auth dialog:
29
- * ```js
30
- *
31
- * // Sample code to create a login window. Users can create their own login pages
32
- * async function createAuthUI(identity, loginPageUrl, authInfo) {
33
- * const winName = 'my-auth-win-' + Date.now();
34
- * const uriUuid = encodeURIComponent(identity.uuid);
35
- * const uriName = encodeURIComponent(identity.name);
36
- *
37
- * const url = `http://${authInfo.host}:${authInfo.port}`;
38
- * // login page should handle these query params
39
- * loginPageUrl = `${loginPageUrl}?uuid=${uriUuid}&name=${uriName}&url=${url}`;
40
- * await fin.Window.create({
41
- * url: loginPageUrl,
42
- * uuid: identity.uuid,
43
- * name: winName,
44
- * alwaysOnTop: true,
45
- * autoShow: true,
46
- * defaultCentered: true,
47
- * defaultHeight: 271,
48
- * defaultTop: true,
49
- * defaultWidth: 362,
50
- * frame: false,
51
- * resizable: false
52
- * });
53
- * }
54
- *
55
- * const app = fin.Application.getCurrentSync();
56
- * app.on('window-auth-requested', (event) => {
57
- * if (event.authInfo.isProxy) {
58
- * const identity = { uuid: event.uuid, name: event.name};
59
- * createAuthUI(identity, 'userLoginPageUrl', event.authInfo);
60
- * }
61
- *
62
- * });
63
- * ```
64
- *
65
- * Don't show any auth dialog:
66
- * ```js
67
- * const app = fin.Application.getCurrentSync();
68
- * app.on('window-auth-requested', event => {
69
- * if (event.authInfo.isProxy) {
70
- * console.log('no auth dialog');
71
- * }
72
- * });
73
- * ```
74
- *
75
- * User defined function. For example, showing a single dialog, alerting a support team and so on:
76
- * ```js
77
- * const app = fin.Application.getCurrentSync();
78
- * app.on('window-auth-requested', event => {
79
- * if (event.authInfo.isProxy) {
80
- * // user defined function
81
- * alert('Do whatever you like');
82
- * }
83
- * });
84
- * ```
85
- */
86
- export type AuthRequestedEvent = NamedEvent & {
87
- type: 'auth-requested';
88
- authInfo: {
89
- host: string;
90
- isProxy: boolean;
91
- port: number;
92
- realm: string;
93
- scheme: string;
94
- };
95
- };
96
- /**
97
- * Generated when a window ends loading.
98
- */
99
- export type EndLoadEvent = NamedEvent & {
100
- type: 'end-load';
101
- documentName: string;
102
- isMain: boolean;
103
- };
104
- /**
105
- * Generated when window is being redirected as per contentRedirect allowlist/denylist rules.
106
- */
107
- export type WillRedirectEvent = NamedEvent & {
108
- type: 'will-redirect';
109
- blocked: boolean;
110
- isInPlace: boolean;
111
- url: string;
112
- };
113
- /**
114
- * Generated when a window has been reloaded.
115
- */
116
- export type ReloadedEvent = NamedEvent & {
117
- type: 'reloaded';
118
- url: string;
119
- };
120
- /**
121
- * Generated after window options are changed using the window.updateOptions method.
122
- * @remarks Will not fire if the diff object is empty.
123
- */
124
- export type WindowOptionsChangedEvent = NamedEvent & {
125
- type: 'options-changed';
126
- options: OpenFin.WindowOptions;
127
- diff: OpenFin.WindowOptionDiff;
128
- };
129
- /**
130
- * Generated when an external process has exited.
131
- */
132
- export type ExternalProcessExitedEvent = NamedEvent & {
133
- type: 'external-process-exited';
134
- processUuid: string;
135
- exitCode: number;
136
- };
137
- /**
138
- * Generated when an external process has started.
139
- */
140
- export type ExternalProcessStartedEvent = NamedEvent & {
141
- type: 'external-process-started';
142
- processUuid: string;
143
- };
144
- /**
145
- * Generated when a window has been hidden.
146
- */
147
- export type HiddenEvent = NamedEvent & {
148
- type: 'hidden';
149
- reason: 'closing' | 'hide' | 'hide-on-close';
150
- };
151
- /**
152
- * Preload script running state info during the execution of a window's preload script.
153
- */
154
- export type PreloadScriptInfoRunning = {
155
- state: 'load-started' | 'load-failed' | 'load-succeeded' | 'failed' | 'succeeded';
156
- };
157
- /**
158
- * Preload script final state info after the execution of all of a window's preload scripts.
159
- */
160
- export type PreloadScriptInfo = {
161
- state: 'load-failed' | 'failed' | 'succeeded';
162
- };
163
- /**
164
- * A general preload scripts state change event without event type.
165
- */
166
- export type PreloadScriptsStateChangeEvent = NamedEvent & {
167
- preloadScripts: (PreloadScriptInfoRunning & any)[];
168
- };
169
- /**
170
- * A general user bounds change event without event type.
171
- */
172
- export type UserBoundsChangeEvent = NamedEvent & {
173
- height: number;
174
- left: number;
175
- top: number;
176
- width: number;
177
- windowState: 'minimized' | 'normal' | 'maximized';
178
- };
179
- /**
180
- * A general bounds change event without event type.
181
- */
182
- export type BoundsChangeEvent = NamedEvent & {
183
- changeType: 0 | 1 | 2;
184
- deferred: boolean;
185
- height: number;
186
- left: number;
187
- top: number;
188
- width: number;
189
- };
190
- /**
191
- * A general will-move or will-resize event without event type.
192
- */
193
- export type WillMoveOrResizeEvent = NamedEvent & {
194
- height: number;
195
- left: number;
196
- top: number;
197
- width: number;
198
- monitorScaleFactor: number;
199
- };
200
- /**
201
- * Generated when window finishes loading. Provides performance and navigation data.
202
- */
203
- export type PerformanceReportEvent = Performance & NamedEvent & {
204
- type: 'performance-report';
205
- };
206
- /**
207
- * Generated when a window has a view detached from it.
208
- * @remarks Will fire when a view is destroyed in which case `target` will be null.
209
- */
210
- export type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
211
- type: 'view-detached';
212
- previousTarget: OpenFin.Identity;
213
- };
214
- /**
215
- * Generated when the value of the element changes.
216
- */
217
- export type InputEvent = {
218
- inputType: 'keyUp' | 'keyDown';
219
- ctrlKey: boolean;
220
- shiftKey: boolean;
221
- altKey: boolean;
222
- metaKey: boolean;
223
- key: string;
224
- code: string;
225
- repeat: boolean;
226
- command?: string;
227
- };
228
- /**
229
- * Generated when a window and all of its layout's views have either finished or failed navigation.
230
- */
231
- export type LayoutInitializedEvent = NamedEvent & {
232
- type: 'layout-initialized';
233
- ofViews: (OpenFin.Identity & {
234
- entityType: 'view';
235
- })[];
236
- };
237
- /**
238
- * Generated when a window and all of its layout's views have been created and can receive API calls.
239
- */
240
- export type LayoutReadyEvent = NamedEvent & {
241
- type: 'layout-ready';
242
- views: (OpenFin.Identity & {
243
- success: boolean;
244
- })[];
245
- };
246
- /**
247
- * A Window event that does not propagate to (republish on) parent topics.
248
- */
249
- export type NonPropagatedWindowEvent = NonPropagatedWebContentsEvent;
250
- /**
251
- * Generated at the beginning of a user-driven change to a window's size or position.
252
- */
253
- export type BeginUserBoundsChangingEvent = UserBoundsChangeEvent & {
254
- type: 'begin-user-bounds-changing';
255
- };
256
- /**
257
- * Generated after changes in a window's size and/or position.
258
- */
259
- export type BoundsChangedEvent = BoundsChangeEvent & {
260
- type: 'bounds-changed';
261
- };
262
- /**
263
- * Generated during changes to a window's size and/or position.
264
- */
265
- export type BoundsChangingEvent = BoundsChangeEvent & {
266
- type: 'bounds-changing';
267
- };
268
- /**
269
- * Generated when a window has been prevented from closing.
270
- * @remarks A window will be prevented from closing by default, either through the API or by a user when ‘close-requested’ has been subscribed to and the Window.close(force) flag is false.
271
- */
272
- export type WindowCloseRequestedEvent = NamedEvent & {
273
- type: 'close-requested';
274
- };
275
- /**
276
- * Generated when a window has closed.
277
- */
278
- export type WindowClosedEvent = NamedEvent & {
279
- type: 'closed';
280
- };
281
- /**
282
- * Generated when a window has initiated the closing routine.
283
- */
284
- export type WindowClosingEvent = NamedEvent & {
285
- type: 'closing';
286
- };
287
- /**
288
- * Generated after a change to a window's size and/or position is attempted while window movement is disabled.
289
- */
290
- export type DisabledMovementBoundsChangedEvent = BoundsChangeEvent & {
291
- type: 'disabled-movement-bounds-changed';
292
- };
293
- /**
294
- * Generated while a change to a window's size and/or position is attempted while window movement is disabled.
295
- */
296
- export type DisabledMovementBoundsChangingEvent = BoundsChangeEvent & {
297
- type: 'disabled-movement-bounds-changing';
298
- };
299
- /**
300
- * Generated when a window has been embedded.
301
- */
302
- export type EmbeddedEvent = NamedEvent & {
303
- type: 'embedded';
304
- };
305
- /**
306
- * Generated at the end of a user-driven change to a window's size or position.
307
- */
308
- export type EndUserBoundsChangingEvent = UserBoundsChangeEvent & {
309
- type: 'end-user-bounds-changing';
310
- };
311
- /**
312
- * Generated when a keyboard shortcut defined in the `hotkeys` array in [Window options](OpenFin.WindowOptions.html) is pressed inside the window.
313
- * @remarks For reference on keyboard event properties see [KeyboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent).
314
- */
315
- export type WindowHotkeyEvent = InputEvent & NamedEvent & {
316
- type: 'hotkey';
317
- };
318
- /**
319
- * Generated when a window is initialized.
320
- */
321
- export type WindowInitializedEvent = NamedEvent & {
322
- type: 'initialized';
323
- };
324
- /**
325
- * Generated when a window is maximized.
326
- */
327
- export type MaximizedEvent = NamedEvent & {
328
- type: 'maximized';
329
- };
330
- /**
331
- * Generated when a window is minimized.
332
- */
333
- export type MinimizedEvent = NamedEvent & {
334
- type: 'minimized';
335
- };
336
- /**
337
- * Generated after the execution of all of a window's preload scripts.
338
- * @remarks Contains information about all window's preload scripts' final states.
339
- */
340
- export type PreloadScriptsStateChangedEvent = PreloadScriptsStateChangeEvent & {
341
- type: 'preload-script-state-changed';
342
- };
343
- /**
344
- * Generated during the execution of a window's preload script.
345
- * @remarks Contains information about a single window's preload script's state, for which the event has been raised.
346
- */
347
- export type PreloadScriptsStateChangingEvent = PreloadScriptsStateChangeEvent & {
348
- type: 'preload-script-state-changing';
349
- };
350
- /**
351
- * Generated when a window is displayed after having been minimized or when a window leaves the maximize state without minimizing.
352
- */
353
- export type WindowRestoredEvent = NamedEvent & {
354
- type: 'restored';
355
- };
356
- /**
357
- * Generated when a window has been prevented from showing.
358
- * @remarks A window will be prevented from showing by default, either through the API or by a user when ‘show-requested’ has been subscribed to on the window or 'window-show-requested' on the parent application and the Window.show(force) flag is false.
359
- */
360
- export type WindowShowRequestedEvent = NamedEvent & {
361
- type: 'show-requested';
362
- };
363
- /**
364
- * Generated when a hidden window has been shown.
365
- */
366
- export type WindowShownEvent = NamedEvent & {
367
- type: 'shown';
368
- };
369
- /**
370
- * Generated when a window's user movement becomes enabled.
371
- */
372
- export type UserMovementEnabledEvent = NamedEvent & {
373
- type: 'user-movement-enabled';
374
- };
375
- /**
376
- * Generated when a window's user movement becomes disabled.
377
- */
378
- export type UserMovementDisabledEvent = NamedEvent & {
379
- type: 'user-movement-disabled';
380
- };
381
- /**
382
- * Generated when a window is being moved by the user.
383
- * @remarks For use with monitor scaling that is not 100%. Bounds are given in DIP (adjusted for monitor scale factor).
384
- */
385
- export type WillMoveEvent = WillMoveOrResizeEvent & {
386
- type: 'will-move';
387
- };
388
- /**
389
- * Generated when a window is being resized by the user.
390
- * @remarks For use with monitor scaling that is not 100%. Bounds are given in DIP (adjusted for monitor scale factor).
391
- * The event will fire when a user resize is blocked by window options such as maxWidth or minHeight but not if the window is not resizable.
392
- */
393
- export type WillResizeEvent = WillMoveOrResizeEvent & {
394
- type: 'will-resize';
395
- };
396
- /**
397
- * A propagated View event that is re-propagated from window.
398
- */
399
- export type PropagatedViewAttachedEvent = PropagatedEvent<'view', ViewAttachedEvent>;
400
- /**
401
- * A Window event that does propagate to (republish on) parent topics.
402
- */
403
- export type WillPropagateWindowEvent = WillPropagateWebContentsEvent | PropagatedViewAttachedEvent | ViewDetachedEvent | AuthRequestedEvent | BeginUserBoundsChangingEvent | BoundsChangedEvent | BoundsChangingEvent | WindowCloseRequestedEvent | WindowClosedEvent | WindowClosingEvent | DisabledMovementBoundsChangedEvent | DisabledMovementBoundsChangingEvent | EmbeddedEvent | EndUserBoundsChangingEvent | ExternalProcessExitedEvent | ExternalProcessStartedEvent | HiddenEvent | WindowHotkeyEvent | WindowInitializedEvent | LayoutInitializedEvent | LayoutReadyEvent | MaximizedEvent | MinimizedEvent | WindowOptionsChangedEvent | PerformanceReportEvent | PreloadScriptsStateChangedEvent | PreloadScriptsStateChangingEvent | ReloadedEvent | WindowRestoredEvent | WindowShowRequestedEvent | WindowShownEvent | UserMovementDisabledEvent | UserMovementEnabledEvent | WillMoveEvent | WillRedirectEvent | WillResizeEvent;
404
- /**
405
- * A Window event.
406
- */
407
- export type WindowEvent = {
408
- topic: 'window';
409
- } & (WillPropagateWindowEvent | NonPropagatedWindowEvent | PropagatedViewEvent);
410
- /**
411
- * A Window event type.
412
- */
413
- export type WindowEventType = WindowEvent['type'];
414
- /**
415
- * A propagated Window event.
416
- */
417
- export type PropagatedWindowEvent = PropagatedEvent<'window', Exclude<WillPropagateWindowEvent, WindowCloseRequestedEvent>>;
418
- /**
419
- * A propagated Window event type.
420
- */
421
- export type PropagatedWindowEventType = PropagatedWindowEvent['type'];
@@ -1,12 +0,0 @@
1
- "use strict";
2
- /**
3
- * Namespace for events that can be transmitted on an OpenFin Window's EventEmitter.
4
- *
5
- * Window events fall into two categories: propagated and non-propagated. Propagated events will
6
- * be re-emitted on the parent application of the target window, prefixed with "window-". For example,
7
- * a window's "reloaded" event will be re-emitted on the parent application as "window-reloaded". Non-propagated
8
- * events will not be re-emitted on the parent application.
9
- *
10
- * @packageDocumentation
11
- */
12
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,34 +0,0 @@
1
- import type * as OpenFin from '../../OpenFin';
2
- import { Base } from '../base';
3
- export default class ExternalApplicationModule extends Base {
4
- /**
5
- * Asynchronously returns an External Application object that represents an external application.
6
- * <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
7
- * provided its uuid is already known.
8
- * @param uuid The UUID of the external application to be wrapped
9
- *
10
- * @example
11
- * ```js
12
- * fin.ExternalApplication.wrap('javaApp-uuid');
13
- * .then(extApp => console.log('wrapped external application'))
14
- * .catch(err => console.log(err));
15
- * ```
16
- * @static
17
- */
18
- wrap(uuid: string): Promise<OpenFin.ExternalApplication>;
19
- /**
20
- * Synchronously returns an External Application object that represents an external application.
21
- * <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
22
- * provided its uuid is already known.
23
- * @param uuid The UUID of the external application to be wrapped
24
- *
25
- * @example
26
- * ```js
27
- * const extApp = fin.ExternalApplication.wrapSync('javaApp-uuid');
28
- * const info = await extApp.getInfo();
29
- * console.log(info);
30
- * ```
31
- * @static
32
- */
33
- wrapSync(uuid: string): OpenFin.ExternalApplication;
34
- }
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const base_1 = require("../base");
4
- const Instance_1 = require("./Instance");
5
- class ExternalApplicationModule extends base_1.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 uuid The UUID of the external application to be wrapped
11
- *
12
- * @example
13
- * ```js
14
- * fin.ExternalApplication.wrap('javaApp-uuid');
15
- * .then(extApp => console.log('wrapped external application'))
16
- * .catch(err => console.log(err));
17
- * ```
18
- * @static
19
- */
20
- wrap(uuid) {
21
- this.wire.sendAction('external-application-wrap').catch((e) => {
22
- // we do not want to expose this error, just continue if this analytics-only call fails
23
- });
24
- return Promise.resolve(new Instance_1.ExternalApplication(this.wire, { uuid }));
25
- }
26
- /**
27
- * Synchronously returns an External Application object that represents an external application.
28
- * <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
29
- * provided its uuid is already known.
30
- * @param uuid The UUID of the external application to be wrapped
31
- *
32
- * @example
33
- * ```js
34
- * const extApp = fin.ExternalApplication.wrapSync('javaApp-uuid');
35
- * const info = await extApp.getInfo();
36
- * console.log(info);
37
- * ```
38
- * @static
39
- */
40
- wrapSync(uuid) {
41
- this.wire.sendAction('external-application-wrap-sync').catch((e) => {
42
- // we do not want to expose this error, just continue if this analytics-only call fails
43
- });
44
- return new Instance_1.ExternalApplication(this.wire, { uuid });
45
- }
46
- }
47
- exports.default = ExternalApplicationModule;
@@ -1,110 +0,0 @@
1
- import type * as OpenFin from '../../OpenFin';
2
- import { EmitterBase } from '../base';
3
- import { Transport } from '../../transport/transport';
4
- /**
5
- * An ExternalApplication object representing native language adapter connections to the runtime. Allows
6
- * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
7
- * Discovery of connections is provided by <a href="tutorial-System.getAllExternalApplications.html">getAllExternalApplications.</a>
8
- *
9
- * Processes that can be wrapped as `ExternalApplication`s include the following:
10
- * - Processes which have connected to an OpenFin runtime via an adapter
11
- * - Processes started via `System.launchExternalApplication`
12
- * - Processes monitored via `System.monitorExternalProcess`
13
- */
14
- export declare class ExternalApplication extends EmitterBase<OpenFin.ExternalApplicationEvent> {
15
- identity: OpenFin.ApplicationIdentity;
16
- /**
17
- * @internal
18
- */
19
- constructor(wire: Transport, identity: OpenFin.ApplicationIdentity);
20
- /**
21
- * Adds a listener to the end of the listeners array for the specified event.
22
- * @param eventType - The type of the event.
23
- * @param listener - Called whenever an event of the specified type occurs.
24
- * @param options - Option to support event timestamps.
25
- *
26
- * @function addListener
27
- * @memberof ExternalApplication
28
- * @instance
29
- * @tutorial ExternalApplication.EventEmitter
30
- */
31
- /**
32
- * Adds a listener to the end of the listeners array for the specified event.
33
- * @param eventType - The type of the event.
34
- * @param listener - Called whenever an event of the specified type occurs.
35
- * @param options - Option to support event timestamps.
36
- *
37
- * @function on
38
- * @memberof ExternalApplication
39
- * @instance
40
- * @tutorial ExternalApplication.EventEmitter
41
- */
42
- /**
43
- * 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.
44
- * @param eventType - The type of the event.
45
- * @param listener - The callback function.
46
- * @param options - Option to support event timestamps.
47
- *
48
- * @function once
49
- * @memberof ExternalApplication
50
- * @instance
51
- * @tutorial ExternalApplication.EventEmitter
52
- */
53
- /**
54
- * Adds a listener to the beginning of the listeners array for the specified event.
55
- * @param eventType - The type of the event.
56
- * @param listener - The callback function.
57
- * @param options - Option to support event timestamps.
58
- *
59
- * @function prependListener
60
- * @memberof ExternalApplication
61
- * @instance
62
- * @tutorial ExternalApplication.EventEmitter
63
- */
64
- /**
65
- * 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.
66
- * The listener is added to the beginning of the listeners array.
67
- * @param eventType - The type of the event.
68
- * @param listener - The callback function.
69
- * @param options - Option to support event timestamps.
70
- *
71
- * @function prependOnceListener
72
- * @memberof ExternalApplication
73
- * @instance
74
- * @tutorial ExternalApplication.EventEmitter
75
- */
76
- /**
77
- * Remove a listener from the listener array for the specified event.
78
- * Caution: Calling this method changes the array indices in the listener array behind the listener.
79
- * @param eventType - The type of the event.
80
- * @param listener - The callback function.
81
- * @param options - Option to support event timestamps.
82
- *
83
- * @function removeListener
84
- * @memberof ExternalApplication
85
- * @instance
86
- * @tutorial ExternalApplication.EventEmitter
87
- */
88
- /**
89
- * Removes all listeners, or those of the specified event.
90
- * @param eventType - The type of the event.
91
- *
92
- * @function removeAllListeners
93
- * @memberof ExternalApplication
94
- * @instance
95
- * @tutorial ExternalApplication.EventEmitter
96
- */
97
- /**
98
- * Retrieves information about the external application.
99
- *
100
- * @example
101
- * ```js
102
- * async function getInfo() {
103
- * const extApp = await fin.ExternalApplication.wrap('javaApp-uuid');
104
- * return await extApp.getInfo();
105
- * }
106
- * getInfo().then(info => console.log(info)).catch(err => console.log(err));
107
- * ```
108
- */
109
- getInfo(): Promise<OpenFin.ExternalApplicationInfo>;
110
- }