@openfin/core 33.76.31 → 33.76.38

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 (269) 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 +17104 -0
  10. package/package.json +30 -23
  11. package/LICENSE +0 -13
  12. package/NOTICE +0 -16
  13. package/openfin-core-33.76.31.tgz +0 -0
  14. package/src/OpenFin.d.ts +0 -3080
  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 -148
  33. package/src/api/application/Factory.js +0 -230
  34. package/src/api/application/Instance.d.ts +0 -321
  35. package/src/api/application/Instance.js +0 -453
  36. package/src/api/application/index.d.ts +0 -3
  37. package/src/api/application/index.js +0 -19
  38. package/src/api/base.d.ts +0 -48
  39. package/src/api/base.js +0 -177
  40. package/src/api/clipboard/index.d.ts +0 -92
  41. package/src/api/clipboard/index.js +0 -120
  42. package/src/api/events/application.d.ts +0 -146
  43. package/src/api/events/application.js +0 -2
  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 -30
  47. package/src/api/events/channel.js +0 -2
  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 -19
  53. package/src/api/events/externalApplication.js +0 -2
  54. package/src/api/events/frame.d.ts +0 -30
  55. package/src/api/events/frame.js +0 -2
  56. package/src/api/events/globalHotkey.d.ts +0 -20
  57. package/src/api/events/globalHotkey.js +0 -2
  58. package/src/api/events/platform.d.ts +0 -26
  59. package/src/api/events/platform.js +0 -2
  60. package/src/api/events/system.d.ts +0 -113
  61. package/src/api/events/system.js +0 -2
  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 -82
  65. package/src/api/events/view.js +0 -2
  66. package/src/api/events/webcontents.d.ts +0 -266
  67. package/src/api/events/webcontents.js +0 -2
  68. package/src/api/events/window.d.ts +0 -352
  69. package/src/api/events/window.js +0 -2
  70. package/src/api/external-application/Factory.d.ts +0 -27
  71. package/src/api/external-application/Factory.js +0 -40
  72. package/src/api/external-application/Instance.d.ts +0 -102
  73. package/src/api/external-application/Instance.js +0 -109
  74. package/src/api/external-application/index.d.ts +0 -3
  75. package/src/api/external-application/index.js +0 -19
  76. package/src/api/fin.d.ts +0 -51
  77. package/src/api/fin.js +0 -42
  78. package/src/api/frame/Factory.d.ts +0 -37
  79. package/src/api/frame/Factory.js +0 -69
  80. package/src/api/frame/Instance.d.ts +0 -123
  81. package/src/api/frame/Instance.js +0 -130
  82. package/src/api/frame/index.d.ts +0 -3
  83. package/src/api/frame/index.js +0 -19
  84. package/src/api/global-hotkey/index.d.ts +0 -38
  85. package/src/api/global-hotkey/index.js +0 -64
  86. package/src/api/interappbus/channel/channel.d.ts +0 -28
  87. package/src/api/interappbus/channel/channel.js +0 -77
  88. package/src/api/interappbus/channel/channels-docs.d.ts +0 -340
  89. package/src/api/interappbus/channel/channels-docs.js +0 -398
  90. package/src/api/interappbus/channel/client.d.ts +0 -24
  91. package/src/api/interappbus/channel/client.js +0 -89
  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 -25
  95. package/src/api/interappbus/channel/index.js +0 -169
  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 -34
  117. package/src/api/interappbus/channel/provider.js +0 -166
  118. package/src/api/interappbus/index.d.ts +0 -85
  119. package/src/api/interappbus/index.js +0 -175
  120. package/src/api/interop/Factory.d.ts +0 -37
  121. package/src/api/interop/Factory.js +0 -76
  122. package/src/api/interop/InteropBroker.d.ts +0 -437
  123. package/src/api/interop/InteropBroker.js +0 -1085
  124. package/src/api/interop/InteropClient.d.ts +0 -278
  125. package/src/api/interop/InteropClient.js +0 -459
  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/fdc3-1.2.d.ts +0 -208
  135. package/src/api/interop/fdc3/fdc3-1.2.js +0 -438
  136. package/src/api/interop/fdc3/fdc3-2.0.d.ts +0 -301
  137. package/src/api/interop/fdc3/fdc3-2.0.js +0 -482
  138. package/src/api/interop/fdc3/fdc3.d.ts +0 -12
  139. package/src/api/interop/fdc3/fdc3.js +0 -35
  140. package/src/api/interop/fdc3/overrideCheck.d.ts +0 -4
  141. package/src/api/interop/fdc3/overrideCheck.js +0 -32
  142. package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +0 -53
  143. package/src/api/interop/fdc3/shapes/fdc3v1.js +0 -4
  144. package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +0 -75
  145. package/src/api/interop/fdc3/shapes/fdc3v2.js +0 -2
  146. package/src/api/interop/fdc3/utils.d.ts +0 -45
  147. package/src/api/interop/fdc3/utils.js +0 -239
  148. package/src/api/interop/fdc3/versions.d.ts +0 -1
  149. package/src/api/interop/fdc3/versions.js +0 -2
  150. package/src/api/interop/index.d.ts +0 -4
  151. package/src/api/interop/index.js +0 -20
  152. package/src/api/interop/utils.d.ts +0 -18
  153. package/src/api/interop/utils.js +0 -61
  154. package/src/api/me.d.ts +0 -40
  155. package/src/api/me.js +0 -134
  156. package/src/api/platform/Factory.d.ts +0 -115
  157. package/src/api/platform/Factory.js +0 -184
  158. package/src/api/platform/Instance.d.ts +0 -150
  159. package/src/api/platform/Instance.js +0 -332
  160. package/src/api/platform/common-utils.d.ts +0 -7
  161. package/src/api/platform/common-utils.js +0 -16
  162. package/src/api/platform/index.d.ts +0 -3
  163. package/src/api/platform/index.js +0 -19
  164. package/src/api/platform/layout/Factory.d.ts +0 -114
  165. package/src/api/platform/layout/Factory.js +0 -174
  166. package/src/api/platform/layout/Instance.d.ts +0 -57
  167. package/src/api/platform/layout/Instance.js +0 -126
  168. package/src/api/platform/layout/controllers/layout-content-cache.d.ts +0 -9
  169. package/src/api/platform/layout/controllers/layout-content-cache.js +0 -54
  170. package/src/api/platform/layout/controllers/layout-entities-controller.d.ts +0 -119
  171. package/src/api/platform/layout/controllers/layout-entities-controller.js +0 -287
  172. package/src/api/platform/layout/entities/layout-entities.d.ts +0 -235
  173. package/src/api/platform/layout/entities/layout-entities.js +0 -312
  174. package/src/api/platform/layout/entities/shapes.d.ts +0 -6
  175. package/src/api/platform/layout/entities/shapes.js +0 -2
  176. package/src/api/platform/layout/index.d.ts +0 -2
  177. package/src/api/platform/layout/index.js +0 -18
  178. package/src/api/platform/layout/layout.constants.d.ts +0 -1
  179. package/src/api/platform/layout/layout.constants.js +0 -4
  180. package/src/api/platform/layout/shapes.d.ts +0 -16
  181. package/src/api/platform/layout/shapes.js +0 -2
  182. package/src/api/platform/layout/utils/layout-traversal.d.ts +0 -4
  183. package/src/api/platform/layout/utils/layout-traversal.js +0 -65
  184. package/src/api/platform/provider.d.ts +0 -163
  185. package/src/api/platform/provider.js +0 -2
  186. package/src/api/snapshot-source/Factory.d.ts +0 -38
  187. package/src/api/snapshot-source/Factory.js +0 -66
  188. package/src/api/snapshot-source/Instance.d.ts +0 -31
  189. package/src/api/snapshot-source/Instance.js +0 -132
  190. package/src/api/snapshot-source/index.d.ts +0 -3
  191. package/src/api/snapshot-source/index.js +0 -19
  192. package/src/api/snapshot-source/utils.d.ts +0 -2
  193. package/src/api/snapshot-source/utils.js +0 -6
  194. package/src/api/system/index.d.ts +0 -517
  195. package/src/api/system/index.js +0 -895
  196. package/src/api/view/Factory.d.ts +0 -50
  197. package/src/api/view/Factory.js +0 -103
  198. package/src/api/view/Instance.d.ts +0 -487
  199. package/src/api/view/Instance.js +0 -557
  200. package/src/api/view/index.d.ts +0 -3
  201. package/src/api/view/index.js +0 -19
  202. package/src/api/webcontents/main.d.ts +0 -32
  203. package/src/api/webcontents/main.js +0 -156
  204. package/src/api/window/Factory.d.ts +0 -45
  205. package/src/api/window/Factory.js +0 -91
  206. package/src/api/window/Instance.d.ts +0 -1090
  207. package/src/api/window/Instance.js +0 -1349
  208. package/src/api/window/index.d.ts +0 -3
  209. package/src/api/window/index.js +0 -19
  210. package/src/browser.d.ts +0 -10
  211. package/src/browser.js +0 -36
  212. package/src/environment/browser.d.ts +0 -29
  213. package/src/environment/browser.js +0 -60
  214. package/src/environment/environment.d.ts +0 -33
  215. package/src/environment/environment.js +0 -4
  216. package/src/environment/mockEnvironment.d.ts +0 -27
  217. package/src/environment/mockEnvironment.js +0 -61
  218. package/src/environment/node-env.d.ts +0 -29
  219. package/src/environment/node-env.js +0 -72
  220. package/src/fdc3.d.ts +0 -3
  221. package/src/fdc3.js +0 -9
  222. package/src/mock.d.ts +0 -3
  223. package/src/mock.js +0 -18
  224. package/src/namespaces.d.ts +0 -21
  225. package/src/namespaces.js +0 -24
  226. package/src/shapes/ERROR_BOX_TYPES.d.ts +0 -1
  227. package/src/shapes/ERROR_BOX_TYPES.js +0 -2
  228. package/src/shapes/WebOptions.d.ts +0 -13
  229. package/src/shapes/WebOptions.js +0 -2
  230. package/src/shapes/WindowOptions.d.ts +0 -43
  231. package/src/shapes/WindowOptions.js +0 -2
  232. package/src/shapes/protocol.d.ts +0 -200
  233. package/src/shapes/protocol.js +0 -2
  234. package/src/transport/mockWire.d.ts +0 -11
  235. package/src/transport/mockWire.js +0 -26
  236. package/src/transport/transport-errors.d.ts +0 -31
  237. package/src/transport/transport-errors.js +0 -79
  238. package/src/transport/transport.d.ts +0 -73
  239. package/src/transport/transport.js +0 -219
  240. package/src/transport/wire.d.ts +0 -77
  241. package/src/transport/wire.js +0 -36
  242. package/src/util/asyncFilter.d.ts +0 -1
  243. package/src/util/asyncFilter.js +0 -7
  244. package/src/util/channel-api-relay.d.ts +0 -13
  245. package/src/util/channel-api-relay.js +0 -47
  246. package/src/util/errors.d.ts +0 -10
  247. package/src/util/errors.js +0 -12
  248. package/src/util/exhaustive.d.ts +0 -1
  249. package/src/util/exhaustive.js +0 -7
  250. package/src/util/http.d.ts +0 -11
  251. package/src/util/http.js +0 -90
  252. package/src/util/inaccessibleObject.d.ts +0 -2
  253. package/src/util/inaccessibleObject.js +0 -49
  254. package/src/util/lazy.d.ts +0 -34
  255. package/src/util/lazy.js +0 -54
  256. package/src/util/normalize-config.d.ts +0 -3
  257. package/src/util/normalize-config.js +0 -52
  258. package/src/util/promises.d.ts +0 -5
  259. package/src/util/promises.js +0 -27
  260. package/src/util/ref-counter.d.ts +0 -7
  261. package/src/util/ref-counter.js +0 -52
  262. package/src/util/reversible-map.d.ts +0 -11
  263. package/src/util/reversible-map.js +0 -49
  264. package/src/util/runtimeVersioning.d.ts +0 -3
  265. package/src/util/runtimeVersioning.js +0 -25
  266. package/src/util/utilTypes.d.ts +0 -8
  267. package/src/util/utilTypes.js +0 -2
  268. package/src/util/validate.d.ts +0 -3
  269. package/src/util/validate.js +0 -11
@@ -1,352 +0,0 @@
1
- import type * as OpenFin from '../../OpenFin';
2
- import { NamedEvent, PropagatedEvent } from './base';
3
- import { BaseViewEvent, PropagatedViewEvent, AttachedEvent as ViewAttachedEvent } from './view';
4
- import { NonPropagatedWebContentsEvent, WillPropagateWebContentsEvent } from './webcontents';
5
- /**
6
- * Generated when an alert is fired and suppressed due to the customWindowAlert flag being true.
7
- */
8
- export type AlertRequestedEvent = NamedEvent & {
9
- type: 'alert-requested';
10
- message: string;
11
- url: string;
12
- };
13
- /**
14
- * Generated when a window within this application requires credentials from the user.
15
- * @remarks If there is a proxy, please see {@tutorial Proxy.behaviorChange} for more details.
16
- */
17
- export type AuthRequestedEvent = NamedEvent & {
18
- type: 'auth-requested';
19
- authInfo: {
20
- host: string;
21
- isProxy: boolean;
22
- port: number;
23
- realm: string;
24
- scheme: string;
25
- };
26
- };
27
- /**
28
- * Generated when a window ends loading.
29
- */
30
- export type EndLoadEvent = NamedEvent & {
31
- type: 'end-load';
32
- documentName: string;
33
- isMain: boolean;
34
- };
35
- /**
36
- * Generated when window is being redirected as per contentRedirect allowlist/denylist rules.
37
- */
38
- export type WillRedirectEvent = NamedEvent & {
39
- type: 'will-redirect';
40
- blocked: boolean;
41
- isInPlace: boolean;
42
- url: string;
43
- };
44
- /**
45
- * Generated when a window has been reloaded.
46
- */
47
- export type ReloadedEvent = NamedEvent & {
48
- type: 'reloaded';
49
- url: string;
50
- };
51
- /**
52
- * Generated after window options are changed using the window.updateOptions method.
53
- * @remarks Will not fire if the diff object is empty.
54
- */
55
- export type WindowOptionsChangedEvent = NamedEvent & {
56
- type: 'options-changed';
57
- options: OpenFin.WindowOptions;
58
- diff: OpenFin.WindowOptionDiff;
59
- };
60
- /**
61
- * Generated when an external process has exited.
62
- */
63
- export type ExternalProcessExitedEvent = NamedEvent & {
64
- type: 'external-process-exited';
65
- processUuid: string;
66
- exitCode: number;
67
- };
68
- /**
69
- * Generated when an external process has started.
70
- */
71
- export type ExternalProcessStartedEvent = NamedEvent & {
72
- type: 'external-process-started';
73
- processUuid: string;
74
- };
75
- /**
76
- * Generated when a window has been hidden.
77
- */
78
- export type HiddenEvent = NamedEvent & {
79
- type: 'hidden';
80
- reason: 'closing' | 'hide' | 'hide-on-close';
81
- };
82
- /**
83
- * Preload script running state info during the execution of a window's preload script.
84
- */
85
- export type PreloadScriptInfoRunning = {
86
- state: 'load-started' | 'load-failed' | 'load-succeeded' | 'failed' | 'succeeded';
87
- };
88
- /**
89
- * Preload script final state info after the execution of all of a window's preload scripts.
90
- */
91
- export type PreloadScriptInfo = {
92
- state: 'load-failed' | 'failed' | 'succeeded';
93
- };
94
- /**
95
- * A general preload scripts state change event without event type.
96
- */
97
- export type PreloadScriptsStateChangeEvent = NamedEvent & {
98
- preloadScripts: (PreloadScriptInfoRunning & any)[];
99
- };
100
- /**
101
- * A general user bounds change event without event type.
102
- */
103
- export type UserBoundsChangeEvent = NamedEvent & {
104
- height: number;
105
- left: number;
106
- top: number;
107
- width: number;
108
- windowState: 'minimized' | 'normal' | 'maximized';
109
- };
110
- /**
111
- * A general bounds change event without event type.
112
- */
113
- export type BoundsChangeEvent = NamedEvent & {
114
- changeType: 0 | 1 | 2;
115
- deferred: boolean;
116
- height: number;
117
- left: number;
118
- top: number;
119
- width: number;
120
- };
121
- /**
122
- * A general will-move or will-resize event without event type.
123
- */
124
- export type WillMoveOrResizeEvent = NamedEvent & {
125
- height: number;
126
- left: number;
127
- top: number;
128
- width: number;
129
- monitorScaleFactor: number;
130
- };
131
- /**
132
- * Generated when window finishes loading. Provides performance and navigation data.
133
- */
134
- export type PerformanceReportEvent = Performance & NamedEvent & {
135
- type: 'performance-report';
136
- };
137
- /**
138
- * Generated when a window has a view detached from it.
139
- * @remarks Will fire when a view is destroyed in which case `target` will be null.
140
- */
141
- export type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
142
- type: 'view-detached';
143
- previousTarget: OpenFin.Identity;
144
- };
145
- /**
146
- * Generated when the value of the element changes.
147
- */
148
- export type InputEvent = {
149
- inputType: 'keyUp' | 'keyDown';
150
- ctrlKey: boolean;
151
- shiftKey: boolean;
152
- altKey: boolean;
153
- metaKey: boolean;
154
- key: string;
155
- code: string;
156
- repeat: boolean;
157
- command?: string;
158
- };
159
- /**
160
- * Generated when a window and all of its layout's views have either finished or failed navigation.
161
- */
162
- export type LayoutInitializedEvent = NamedEvent & {
163
- type: 'layout-initialized';
164
- ofViews: (OpenFin.Identity & {
165
- entityType: 'view';
166
- })[];
167
- };
168
- /**
169
- * Generated when a window and all of its layout's views have been created and can receive API calls.
170
- */
171
- export type LayoutReadyEvent = NamedEvent & {
172
- type: 'layout-ready';
173
- views: (OpenFin.Identity & {
174
- success: boolean;
175
- })[];
176
- };
177
- /**
178
- * A Window event that does not propagate to (republish on) parent topics.
179
- */
180
- export type NonPropagatedWindowEvent = NonPropagatedWebContentsEvent;
181
- /**
182
- * Generated at the beginning of a user-driven change to a window's size or position.
183
- */
184
- export type BeginUserBoundsChangingEvent = UserBoundsChangeEvent & {
185
- type: 'begin-user-bounds-changing';
186
- };
187
- /**
188
- * Generated after changes in a window's size and/or position.
189
- */
190
- export type BoundsChangedEvent = BoundsChangeEvent & {
191
- type: 'bounds-changed';
192
- };
193
- /**
194
- * Generated during changes to a window's size and/or position.
195
- */
196
- export type BoundsChangingEvent = BoundsChangeEvent & {
197
- type: 'bounds-changing';
198
- };
199
- /**
200
- * Generated when a window has been prevented from closing.
201
- * @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.
202
- */
203
- export type WindowCloseRequestedEvent = NamedEvent & {
204
- type: 'close-requested';
205
- };
206
- /**
207
- * Generated when a window has closed.
208
- */
209
- export type WindowClosedEvent = NamedEvent & {
210
- type: 'closed';
211
- };
212
- /**
213
- * Generated when a window has initiated the closing routine.
214
- */
215
- export type WindowClosingEvent = NamedEvent & {
216
- type: 'closing';
217
- };
218
- /**
219
- * Generated after a change to a window's size and/or position is attempted while window movement is disabled.
220
- */
221
- export type DisabledMovementBoundsChangedEvent = BoundsChangeEvent & {
222
- type: 'disabled-movement-bounds-changed';
223
- };
224
- /**
225
- * Generated while a change to a window's size and/or position is attempted while window movement is disabled.
226
- */
227
- export type DisabledMovementBoundsChangingEvent = BoundsChangeEvent & {
228
- type: 'disabled-movement-bounds-changing';
229
- };
230
- /**
231
- * Generated when a window has been embedded.
232
- */
233
- export type EmbeddedEvent = NamedEvent & {
234
- type: 'embedded';
235
- };
236
- /**
237
- * Generated at the end of a user-driven change to a window's size or position.
238
- */
239
- export type EndUserBoundsChangingEvent = UserBoundsChangeEvent & {
240
- type: 'end-user-bounds-changing';
241
- };
242
- /**
243
- * Generated when a keyboard shortcut defined in the `hotkeys` array in [Window options](OpenFin.WindowOptions.html) is pressed inside the window.
244
- * @remarks For reference on keyboard event properties see [KeyboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent).
245
- */
246
- export type WindowHotkeyEvent = InputEvent & NamedEvent & {
247
- type: 'hotkey';
248
- };
249
- /**
250
- * Generated when a window is initialized.
251
- */
252
- export type WindowInitializedEvent = NamedEvent & {
253
- type: 'initialized';
254
- };
255
- /**
256
- * Generated when a window is maximized.
257
- */
258
- export type MaximizedEvent = NamedEvent & {
259
- type: 'maximized';
260
- };
261
- /**
262
- * Generated when a window is minimized.
263
- */
264
- export type MinimizedEvent = NamedEvent & {
265
- type: 'minimized';
266
- };
267
- /**
268
- * Generated after the execution of all of a window's preload scripts.
269
- * @remarks Contains information about all window's preload scripts' final states.
270
- */
271
- export type PreloadScriptsStateChangedEvent = PreloadScriptsStateChangeEvent & {
272
- type: 'preload-script-state-changed';
273
- };
274
- /**
275
- * Generated during the execution of a window's preload script.
276
- * @remarks Contains information about a single window's preload script's state, for which the event has been raised.
277
- */
278
- export type PreloadScriptsStateChangingEvent = PreloadScriptsStateChangeEvent & {
279
- type: 'preload-script-state-changing';
280
- };
281
- /**
282
- * Generated when a window is displayed after having been minimized or when a window leaves the maximize state without minimizing.
283
- */
284
- export type WindowRestoredEvent = NamedEvent & {
285
- type: 'restored';
286
- };
287
- /**
288
- * Generated when a window has been prevented from showing.
289
- * @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.
290
- */
291
- export type WindowShowRequestedEvent = NamedEvent & {
292
- type: 'show-requested';
293
- };
294
- /**
295
- * Generated when a hidden window has been shown.
296
- */
297
- export type WindowShownEvent = NamedEvent & {
298
- type: 'shown';
299
- };
300
- /**
301
- * Generated when a window's user movement becomes enabled.
302
- */
303
- export type UserMovementEnabledEvent = NamedEvent & {
304
- type: 'user-movement-enabled';
305
- };
306
- /**
307
- * Generated when a window's user movement becomes disabled.
308
- */
309
- export type UserMovementDisabledEvent = NamedEvent & {
310
- type: 'user-movement-disabled';
311
- };
312
- /**
313
- * Generated when a window is being moved by the user.
314
- * @remarks For use with monitor scaling that is not 100%. Bounds are given in DIP (adjusted for monitor scale factor).
315
- */
316
- export type WillMoveEvent = WillMoveOrResizeEvent & {
317
- type: 'will-move';
318
- };
319
- /**
320
- * Generated when a window is being resized by the user.
321
- * @remarks For use with monitor scaling that is not 100%. Bounds are given in DIP (adjusted for monitor scale factor).
322
- * 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.
323
- */
324
- export type WillResizeEvent = WillMoveOrResizeEvent & {
325
- type: 'will-resize';
326
- };
327
- /**
328
- * A propagated View event that is re-propagated from window.
329
- */
330
- export type PropagatedViewAttachedEvent = PropagatedEvent<'view', ViewAttachedEvent>;
331
- /**
332
- * A Window event that does propagate to (republish on) parent topics.
333
- */
334
- 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;
335
- /**
336
- * A Window event.
337
- */
338
- export type WindowEvent = {
339
- topic: 'window';
340
- } & (WillPropagateWindowEvent | NonPropagatedWindowEvent | PropagatedViewEvent);
341
- /**
342
- * A Window event type.
343
- */
344
- export type WindowEventType = WindowEvent['type'];
345
- /**
346
- * A propagated Window event.
347
- */
348
- export type PropagatedWindowEvent = PropagatedEvent<'window', Exclude<WillPropagateWindowEvent, WindowCloseRequestedEvent>>;
349
- /**
350
- * A propagated Window event type.
351
- */
352
- export type PropagatedWindowEventType = PropagatedWindowEvent['type'];
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,27 +0,0 @@
1
- import type * as OpenFin from '../../OpenFin';
2
- import { Base } from '../base';
3
- /**
4
- * @lends ExternalApplication
5
- */
6
- export default class ExternalApplicationModule extends Base {
7
- /**
8
- * Asynchronously returns an External Application object that represents an external application.
9
- * <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
10
- * provided its uuid is already known.
11
- * @param {string} uuid The UUID of the external application to be wrapped
12
- * @return {Promise.<ExternalApplication>}
13
- * @tutorial ExternalApplication.wrap
14
- * @static
15
- */
16
- wrap(uuid: string): Promise<OpenFin.ExternalApplication>;
17
- /**
18
- * Synchronously returns an External Application object that represents an external application.
19
- * <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
20
- * provided its uuid is already known.
21
- * @param {string} uuid The UUID of the external application to be wrapped
22
- * @return {ExternalApplication}
23
- * @tutorial ExternalApplication.wrapSync
24
- * @static
25
- */
26
- wrapSync(uuid: string): OpenFin.ExternalApplication;
27
- }
@@ -1,40 +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
- /**
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 +0,0 @@
1
- import type * as OpenFin from '../../OpenFin';
2
- import { EmitterBase } from '../base';
3
- import { Transport } from '../../transport/transport';
4
- /**
5
- * @classdesc An ExternalApplication object representing native language adapter connections to the runtime. Allows
6
- * the developer to listen to <a href="tutorial-ExternalApplication.EventEmitter.html">application events.</a>
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
- * @class
14
- * @hideconstructor
15
- */
16
- export declare class ExternalApplication extends EmitterBase<OpenFin.ExternalApplicationEvent> {
17
- identity: OpenFin.ApplicationIdentity;
18
- constructor(wire: Transport, identity: OpenFin.ApplicationIdentity);
19
- /**
20
- * Adds a listener to the end of the listeners array for the specified event.
21
- * @param { string | symbol } eventType - The type of the event.
22
- * @param { Function } listener - Called whenever an event of the specified type occurs.
23
- * @param { SubOptions } [options] - Option to support event timestamps.
24
- * @return {Promise.<this>}
25
- * @function addListener
26
- * @memberof ExternalApplication
27
- * @instance
28
- * @tutorial ExternalApplication.EventEmitter
29
- */
30
- /**
31
- * Adds a listener to the end of the listeners array for the specified event.
32
- * @param { string | symbol } eventType - The type of the event.
33
- * @param { Function } listener - Called whenever an event of the specified type occurs.
34
- * @param { SubOptions } [options] - Option to support event timestamps.
35
- * @return {Promise.<this>}
36
- * @function on
37
- * @memberof ExternalApplication
38
- * @instance
39
- * @tutorial ExternalApplication.EventEmitter
40
- */
41
- /**
42
- * 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.
43
- * @param { string | symbol } eventType - The type of the event.
44
- * @param { Function } listener - The callback function.
45
- * @param { SubOptions } [options] - Option to support event timestamps.
46
- * @return {Promise.<this>}
47
- * @function once
48
- * @memberof ExternalApplication
49
- * @instance
50
- * @tutorial ExternalApplication.EventEmitter
51
- */
52
- /**
53
- * Adds a listener to the beginning of the listeners array for the specified event.
54
- * @param { string | symbol } eventType - The type of the event.
55
- * @param { Function } listener - The callback function.
56
- * @param { SubOptions } [options] - Option to support event timestamps.
57
- * @return {Promise.<this>}
58
- * @function prependListener
59
- * @memberof ExternalApplication
60
- * @instance
61
- * @tutorial ExternalApplication.EventEmitter
62
- */
63
- /**
64
- * 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.
65
- * The listener is added to the beginning of the listeners array.
66
- * @param { string | symbol } eventType - The type of the event.
67
- * @param { Function } listener - The callback function.
68
- * @param { SubOptions } [options] - Option to support event timestamps.
69
- * @return {Promise.<this>}
70
- * @function prependOnceListener
71
- * @memberof ExternalApplication
72
- * @instance
73
- * @tutorial ExternalApplication.EventEmitter
74
- */
75
- /**
76
- * Remove a listener from the listener array for the specified event.
77
- * Caution: Calling this method changes the array indices in the listener array behind the listener.
78
- * @param { string | symbol } eventType - The type of the event.
79
- * @param { Function } listener - The callback function.
80
- * @param { SubOptions } [options] - Option to support event timestamps.
81
- * @return {Promise.<this>}
82
- * @function removeListener
83
- * @memberof ExternalApplication
84
- * @instance
85
- * @tutorial ExternalApplication.EventEmitter
86
- */
87
- /**
88
- * Removes all listeners, or those of the specified event.
89
- * @param { string | symbol } [eventType] - The type of the event.
90
- * @return {Promise.<this>}
91
- * @function removeAllListeners
92
- * @memberof ExternalApplication
93
- * @instance
94
- * @tutorial ExternalApplication.EventEmitter
95
- */
96
- /**
97
- * Retrieves information about the external application.
98
- * @return {Promise.<ExternalApplicationInfo>}
99
- * @tutorial ExternalApplication.getInfo
100
- */
101
- getInfo(): Promise<OpenFin.ExternalApplicationInfo>;
102
- }
@@ -1,109 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExternalApplication = void 0;
4
- /* eslint-disable import/prefer-default-export */
5
- const base_1 = require("../base");
6
- /**
7
- * @classdesc An ExternalApplication object representing native language adapter connections to the runtime. Allows
8
- * the developer to listen to <a href="tutorial-ExternalApplication.EventEmitter.html">application events.</a>
9
- * Discovery of connections is provided by <a href="tutorial-System.getAllExternalApplications.html">getAllExternalApplications.</a>
10
- *
11
- * Processes that can be wrapped as `ExternalApplication`s include the following:
12
- * - Processes which have connected to an OpenFin runtime via an adapter
13
- * - Processes started via `System.launchExternalApplication`
14
- * - Processes monitored via `System.monitorExternalProcess`
15
- * @class
16
- * @hideconstructor
17
- */
18
- class ExternalApplication extends base_1.EmitterBase {
19
- constructor(wire, identity) {
20
- super(wire, 'external-application', identity.uuid);
21
- this.identity = identity;
22
- }
23
- /**
24
- * Adds a listener to the end of the listeners array for the specified event.
25
- * @param { string | symbol } eventType - The type of the event.
26
- * @param { Function } listener - Called whenever an event of the specified type occurs.
27
- * @param { SubOptions } [options] - Option to support event timestamps.
28
- * @return {Promise.<this>}
29
- * @function addListener
30
- * @memberof ExternalApplication
31
- * @instance
32
- * @tutorial ExternalApplication.EventEmitter
33
- */
34
- /**
35
- * Adds a listener to the end of the listeners array for the specified event.
36
- * @param { string | symbol } eventType - The type of the event.
37
- * @param { Function } listener - Called whenever an event of the specified type occurs.
38
- * @param { SubOptions } [options] - Option to support event timestamps.
39
- * @return {Promise.<this>}
40
- * @function on
41
- * @memberof ExternalApplication
42
- * @instance
43
- * @tutorial ExternalApplication.EventEmitter
44
- */
45
- /**
46
- * 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.
47
- * @param { string | symbol } eventType - The type of the event.
48
- * @param { Function } listener - The callback function.
49
- * @param { SubOptions } [options] - Option to support event timestamps.
50
- * @return {Promise.<this>}
51
- * @function once
52
- * @memberof ExternalApplication
53
- * @instance
54
- * @tutorial ExternalApplication.EventEmitter
55
- */
56
- /**
57
- * Adds a listener to the beginning of the listeners array for the specified event.
58
- * @param { string | symbol } eventType - The type of the event.
59
- * @param { Function } listener - The callback function.
60
- * @param { SubOptions } [options] - Option to support event timestamps.
61
- * @return {Promise.<this>}
62
- * @function prependListener
63
- * @memberof ExternalApplication
64
- * @instance
65
- * @tutorial ExternalApplication.EventEmitter
66
- */
67
- /**
68
- * 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.
69
- * The listener is added to the beginning of the listeners array.
70
- * @param { string | symbol } eventType - The type of the event.
71
- * @param { Function } listener - The callback function.
72
- * @param { SubOptions } [options] - Option to support event timestamps.
73
- * @return {Promise.<this>}
74
- * @function prependOnceListener
75
- * @memberof ExternalApplication
76
- * @instance
77
- * @tutorial ExternalApplication.EventEmitter
78
- */
79
- /**
80
- * Remove a listener from the listener array for the specified event.
81
- * Caution: Calling this method changes the array indices in the listener array behind the listener.
82
- * @param { string | symbol } eventType - The type of the event.
83
- * @param { Function } listener - The callback function.
84
- * @param { SubOptions } [options] - Option to support event timestamps.
85
- * @return {Promise.<this>}
86
- * @function removeListener
87
- * @memberof ExternalApplication
88
- * @instance
89
- * @tutorial ExternalApplication.EventEmitter
90
- */
91
- /**
92
- * Removes all listeners, or those of the specified event.
93
- * @param { string | symbol } [eventType] - The type of the event.
94
- * @return {Promise.<this>}
95
- * @function removeAllListeners
96
- * @memberof ExternalApplication
97
- * @instance
98
- * @tutorial ExternalApplication.EventEmitter
99
- */
100
- /**
101
- * Retrieves information about the external application.
102
- * @return {Promise.<ExternalApplicationInfo>}
103
- * @tutorial ExternalApplication.getInfo
104
- */
105
- getInfo() {
106
- return this.wire.sendAction('get-external-application-info', this.identity).then(({ payload }) => payload.data);
107
- }
108
- }
109
- exports.ExternalApplication = ExternalApplication;
@@ -1,3 +0,0 @@
1
- import ExternalApplicationModule from './Factory';
2
- export default ExternalApplicationModule;
3
- export * from './Instance';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- const Factory_1 = require("./Factory");
18
- exports.default = Factory_1.default;
19
- __exportStar(require("./Instance"), exports);