@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,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const emitterMap_1 = require("./emitterMap");
4
- function isEventMessage(message) {
5
- return message.action === 'process-desktop-event';
6
- }
7
- function mapKeyFromEvent(event) {
8
- const { topic } = event;
9
- if (topic === 'frame' || topic === 'window' || topic === 'view') {
10
- const { uuid, name } = event;
11
- return [topic, uuid, name];
12
- }
13
- if (topic === 'application') {
14
- const { uuid } = event;
15
- return [topic, uuid];
16
- }
17
- return [topic];
18
- }
19
- class EventAggregator extends emitterMap_1.EmitterMap {
20
- constructor() {
21
- super(...arguments);
22
- this.dispatchEvent = (message) => {
23
- if (isEventMessage(message)) {
24
- const { payload } = message;
25
- const accessor = mapKeyFromEvent(payload);
26
- if (this.has(accessor)) {
27
- this.getOrCreate(accessor).emit(payload.type, payload);
28
- return true;
29
- }
30
- }
31
- return false;
32
- };
33
- }
34
- }
35
- exports.default = EventAggregator;
@@ -1,19 +0,0 @@
1
- import { BaseEvent } from './base';
2
- /**
3
- * Generated when an external application has authenticated and is connected.
4
- */
5
- export type ExternalApplicationConnectedEvent = BaseEvent & {
6
- type: 'connected';
7
- };
8
- /**
9
- * Generated when an external application has disconnected.
10
- */
11
- export type ExternalApplicationDisconnectedEvent = BaseEvent & {
12
- type: 'disconnected';
13
- };
14
- /**
15
- * An external application event.
16
- */
17
- export type ExternalApplicationEvent = {
18
- topic: 'externalapplication';
19
- } & (ExternalApplicationConnectedEvent | ExternalApplicationDisconnectedEvent);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,30 +0,0 @@
1
- import { NamedEvent } from './base';
2
- /**
3
- * The base frame event.
4
- */
5
- export type BaseFrameEvent = NamedEvent & {
6
- entityType: 'iframe';
7
- frameName: string;
8
- };
9
- /**
10
- * Generated when a frame is connected.
11
- */
12
- export type FrameConnectedEvent = BaseFrameEvent & {
13
- type: 'connected';
14
- };
15
- /**
16
- * Generated when a frame has disconnected.
17
- */
18
- export type FrameDisconnectedEvent = BaseFrameEvent & {
19
- type: 'disconnected';
20
- };
21
- /**
22
- * A Frame event.
23
- */
24
- export type FrameEvent = {
25
- topic: 'frame';
26
- } & (FrameConnectedEvent | FrameDisconnectedEvent);
27
- /**
28
- * A Frame event type.
29
- */
30
- export type FrameEventType = FrameEvent['type'];
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- import { BaseEvent } from './base';
2
- /**
3
- * Generated when a hotkey has been registered with the operating system.
4
- */
5
- export type RegisteredEvent = BaseEvent & {
6
- type: 'registered';
7
- };
8
- /**
9
- * Generated when a hotkey has been unregistered with the operating system.
10
- */
11
- export type UnregisteredEvent = BaseEvent & {
12
- type: 'unregistered';
13
- };
14
- /**
15
- * A global hotkey event.
16
- */
17
- export type GlobalHotkeyEvent = {
18
- topic: 'global-hotkey';
19
- hotkey: 'string';
20
- } & (RegisteredEvent | UnregisteredEvent);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,26 +0,0 @@
1
- import { ApplicationEvent } from './application';
2
- import { BaseEvent } from './base';
3
- /**
4
- * Generated when a new Platform's API becomes responsive.
5
- */
6
- export type PlatformApiReadyEvent = BaseEvent & {
7
- topic: 'application';
8
- type: 'platform-api-ready';
9
- };
10
- /**
11
- * Generated when a <a href="tutorial-Platform.applySnapshot.html">platform.ApplySnapshot</a> call is resolved.
12
- * @remarks The call is resolved when the following conditions are met for all windows in the snapshot:
13
- * 1. The window has been created
14
- * 2. The window has a responsive API
15
- * 3. If a window has a layout property, the 'layout-ready' event has fired
16
- *
17
- * _Note_ - In the case of using a custom provider, if a window has a layout property but does not call _Layout.init_ this event may not fire.
18
- */
19
- export type PlatformSnapshotAppliedEvent = BaseEvent & {
20
- topic: 'application';
21
- type: 'platform-snapshot-applied';
22
- };
23
- /**
24
- * A Platform event.
25
- */
26
- export type PlatformEvent = ApplicationEvent | PlatformApiReadyEvent | PlatformSnapshotAppliedEvent;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,113 +0,0 @@
1
- import type * as OpenFin from '../../OpenFin';
2
- import { PropagatedApplicationEvent } from './application';
3
- import { BaseEvent, IdentityEvent } from './base';
4
- import { PropagatedViewEvent } from './view';
5
- import { PropagatedWindowEvent } from './window';
6
- import { AppVersionCompleteEvent, AppVersionErrorEvent, AppVersionProgressEvent, AppVersionRuntimeStatusEvent } from '../../OpenFin';
7
- /**
8
- * @internal
9
- */
10
- export type NotRequested<EventType> = EventType extends `${infer U}-requested` ? never : EventType;
11
- /**
12
- * @internal
13
- */
14
- export type ExcludeRequested<Event extends {
15
- type: string;
16
- }> = Extract<Event, {
17
- type: NotRequested<Event['type']>;
18
- }>;
19
- /**
20
- * Generated when a user enters or returns from idle state.
21
- * @remarks This method is continuously generated every minute while the user is in idle.
22
- * A user enters idle state when the computer is locked or when there has been no keyboard/mouse activity for 1 minute.
23
- * A user returns from idle state when the computer is unlocked or keyboard/mouse activity has resumed.
24
- */
25
- export type IdleEvent = {
26
- type: 'idle-state-changed';
27
- elapsedTime: number;
28
- isIdle: boolean;
29
- };
30
- /**
31
- * Generated on changes of a monitor's size/location.
32
- * @remarks A monitor's size changes when the taskbar is resized or relocated.
33
- * The available space of a monitor defines a rectangle that is not occupied by the taskbar
34
- */
35
- export type MonitorEvent = OpenFin.MonitorInfo & {
36
- type: 'monitor-info-changed';
37
- };
38
- /**
39
- * Generated on changes to a user’s local computer session.
40
- */
41
- export type SessionChangedEvent = {
42
- type: 'session-changed';
43
- reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
44
- };
45
- /**
46
- * An app versioning event.
47
- */
48
- export type AppVersionEvent = AppVersionProgressEvent | AppVersionRuntimeStatusEvent | AppVersionCompleteEvent | AppVersionErrorEvent;
49
- /**
50
- * An app versioning event type.
51
- */
52
- export type AppVersionEventType = AppVersionEvent['type'];
53
- /**
54
- * @internal
55
- */
56
- export type IdEventType = WithId<AppVersionEventType>;
57
- /**
58
- * @internal
59
- */
60
- export type WithId<T extends AppVersionEventType> = `${T}.${string}`;
61
- /**
62
- * @internal
63
- */
64
- export type WithoutId<T extends string> = T extends WithId<infer U> ? U : never;
65
- /**
66
- * @internal
67
- */
68
- export type AppVersionTypeFromIdEvent<T extends IdEventType> = Extract<AppVersionEvent, {
69
- type: WithoutId<T>;
70
- }>;
71
- /**
72
- * @internal
73
- */
74
- export type EventWithId<Event extends AppVersionEvent> = Event extends infer E extends {
75
- type: AppVersionEventType;
76
- } ? Omit<E, 'type'> & {
77
- type: WithId<E['type']>;
78
- topic: 'system';
79
- appVersionId: string;
80
- } : never;
81
- /**
82
- * @internal
83
- */
84
- export type AppVersionEventWithId = EventWithId<AppVersionEvent>;
85
- /**
86
- * Generated when an application is created.
87
- */
88
- export type ApplicationCreatedEvent = IdentityEvent & {
89
- type: 'application-created';
90
- };
91
- /**
92
- * Generated when the desktop icon is clicked while it's already running.
93
- */
94
- export type DesktopIconClickedEvent = BaseEvent & {
95
- type: 'desktop-icon-clicked';
96
- };
97
- /**
98
- * Generated when system shutdown or log off.
99
- * @internal
100
- */
101
- export type SystemShutdownEvent = BaseEvent & {
102
- type: 'system-shutdown';
103
- };
104
- /**
105
- * A system event.
106
- */
107
- export type SystemEvent = {
108
- topic: 'system';
109
- } & (ExcludeRequested<PropagatedWindowEvent> | PropagatedViewEvent | PropagatedApplicationEvent | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleEvent | MonitorEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent);
110
- /**
111
- * A system event type.
112
- */
113
- export type SystemEventType = SystemEvent['type'];
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- export type Listener<T extends {
2
- type: string;
3
- }> = (payload: T) => void;
4
- export interface TypedEventEmitter<Event extends {
5
- type: string;
6
- }, EmitterEventType = Event['type']> {
7
- on<EventType extends EmitterEventType>(event: EventType, listener: Listener<Extract<Event, {
8
- type: EventType;
9
- }>>): this;
10
- addListener<EventType extends EmitterEventType>(event: EventType, listener: Listener<Extract<Event, {
11
- type: EventType;
12
- }>>): this;
13
- removeListener<EventType extends EmitterEventType>(event: EventType, listener: Listener<Extract<Event, {
14
- type: EventType;
15
- }>>): this;
16
- removeAllListeners<EventType extends EmitterEventType>(event?: EmitterEventType): this;
17
- emit<EventType extends EmitterEventType>(event: EventType, payload: Extract<Event, {
18
- type: EventType;
19
- }>): boolean;
20
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,82 +0,0 @@
1
- import type * as OpenFin from '../../OpenFin';
2
- import { NonPropagatedWebContentsEvent, WillPropagateWebContentsEvent } from './webcontents';
3
- import { NamedEvent, PropagatedEvent } from './base';
4
- /**
5
- * A base View event.
6
- */
7
- export type BaseViewEvent = {
8
- target: OpenFin.Identity;
9
- viewIdentity: OpenFin.Identity;
10
- };
11
- /**
12
- * Generated when a View changes its window target.
13
- * @remarks This event will fire during creation of a View.
14
- * In that case, previousTarget identity will be the same as target identity.
15
- */
16
- export type TargetChangedEvent = NamedEvent & {
17
- type: 'target-changed';
18
- previousTarget: OpenFin.Identity;
19
- };
20
- /**
21
- * A View event that does not propagate to (republish on) parent topics.
22
- */
23
- export type NonPropagatedViewEvent = BaseViewEvent & NonPropagatedWebContentsEvent;
24
- /**
25
- * Generated when a View is attached to a window.
26
- */
27
- export type AttachedEvent = NamedEvent & {
28
- type: 'attached';
29
- };
30
- /**
31
- * Generated when a View is created.
32
- */
33
- export type CreatedEvent = NamedEvent & {
34
- type: 'created';
35
- };
36
- /**
37
- * Generated when a View is destroyed.
38
- */
39
- export type DestroyedEvent = NamedEvent & {
40
- type: 'destroyed';
41
- };
42
- /**
43
- * Generated when a View is hidden.
44
- */
45
- export type HiddenEvent = NamedEvent & {
46
- type: 'hidden';
47
- };
48
- /**
49
- * Generated when a keyboard shortcut defined in the `hotkeys` array in [View options](OpenFin.ViewOptions.html) is pressed inside the view.
50
- * @remarks For reference on keyboard event properties see [KeyboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent).
51
- */
52
- export type HotkeyEvent = NamedEvent & {
53
- type: 'hotkey';
54
- };
55
- /**
56
- * Generated when a View is shown. This event will fire during creation of a View.
57
- */
58
- export type ShownEvent = NamedEvent & {
59
- type: 'shown';
60
- };
61
- /**
62
- * A View event that does propagate to (republish on) parent topics.
63
- */
64
- export type WillPropagateViewEvent = BaseViewEvent & (WillPropagateWebContentsEvent | AttachedEvent | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent);
65
- /**
66
- * A View event.
67
- */
68
- export type ViewEvent = {
69
- topic: 'view';
70
- } & (NonPropagatedViewEvent | WillPropagateViewEvent);
71
- /**
72
- * A View event type.
73
- */
74
- export type ViewEventType = ViewEvent['type'];
75
- /**
76
- * A propagated View event.
77
- */
78
- export type PropagatedViewEvent = PropagatedEvent<'view', WillPropagateViewEvent>;
79
- /**
80
- * A propagated View event type.
81
- */
82
- export type PropagatedViewEventType = PropagatedViewEvent['type'];
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,266 +0,0 @@
1
- import type * as OpenFin from '../../OpenFin';
2
- import { NamedEvent } from './base';
3
- import { CrashedEvent } from './application';
4
- type BaseLoadFailedEvent = NamedEvent & {
5
- errorCode: number;
6
- errorDescription: string;
7
- validatedURL: string;
8
- isMainFrame: boolean;
9
- };
10
- /**
11
- * Generated when an HTTP load was cancelled or failed.
12
- */
13
- export type ResourceLoadFailedEvent = BaseLoadFailedEvent & {
14
- type: 'resource-load-failed';
15
- };
16
- /**
17
- * Generated when an HTTP resource request has received response details.
18
- */
19
- export type ResourceResponseReceivedEvent = NamedEvent & {
20
- type: 'resource-response-received';
21
- status: boolean;
22
- newUrl: string;
23
- originalUrl: string;
24
- httpResponseCode: number;
25
- requestMethod: string;
26
- referrer: string;
27
- headers: any;
28
- resourceType: 'mainFrame' | 'subFrame' | 'styleSheet' | 'script' | 'image' | 'object' | 'xhr' | 'other';
29
- };
30
- /**
31
- * Generated when page title is set during navigation.
32
- * @remarks explicitSet is false when title is synthesized from file url.
33
- */
34
- export type PageTitleUpdatedEvent = NamedEvent & {
35
- type: 'page-title-updated';
36
- title: string;
37
- };
38
- /**
39
- * Generated when navigating to a URL that fails certificate validation.
40
- */
41
- export type CertificateErrorEvent = NamedEvent & {
42
- type: 'certificate-error';
43
- error: string;
44
- url: string;
45
- certificate: OpenFin.Certificate;
46
- };
47
- /**
48
- * Generated when the certificate selection dialog is shown.
49
- */
50
- export type CertificateSelectionShownEvent = NamedEvent & {
51
- type: 'certificate-selection-shown';
52
- url: string;
53
- certificates: OpenFin.Certificate[];
54
- };
55
- /**
56
- * Generated when page receives favicon urls.
57
- */
58
- export type FaviconUpdatedEvent = NamedEvent & {
59
- type: 'page-favicon-updated';
60
- favicons: string[];
61
- };
62
- /**
63
- * Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules.
64
- */
65
- export type NavigationRejectedEvent = NamedEvent & {
66
- type: 'navigation-rejected';
67
- sourceName?: string;
68
- url: string;
69
- };
70
- type BaseUrlEvent = NamedEvent & {
71
- type: 'url-changed';
72
- url: string;
73
- };
74
- /**
75
- * Generated when navigation or redirect is completed.
76
- * @remarks Also emitted for in-page navigations, examples of this occurring are when anchor links are clicked or when the DOM hashchange event is triggered, indicated by isInPage=true.
77
- * Note that navigating to a url with an anchor in it like http://openfin.co/#my-inpage-anchor will fire 2 events indicating the original navigation (isInPage=false) and then the in-page navigation event (isInPage=true).
78
- */
79
- export type UrlChangedEvent = BaseUrlEvent & ({
80
- isInPage: true;
81
- } | {
82
- isInPage: false;
83
- httpResponseCode: number;
84
- httpStatusText: string;
85
- });
86
- /**
87
- * Generated when the navigation is done, i.e. the spinner of the tab will stop spinning, and the onload event is dispatched.
88
- */
89
- export type DidFinishLoadEvent = NamedEvent & {
90
- type: 'did-finish-load';
91
- };
92
- /**
93
- * Generated when load failed.
94
- */
95
- export type DidFailLoadEvent = BaseLoadFailedEvent & {
96
- type: 'did-fail-load';
97
- };
98
- /**
99
- * Generated when a result is available when calling findInPage.
100
- */
101
- export type FoundInPageEvent = NamedEvent & {
102
- type: 'found-in-page';
103
- } & {
104
- result: OpenFin.FindInPageResult;
105
- };
106
- /**
107
- * Generated when a WebContents loses focus.
108
- */
109
- export type BlurredEvent = NamedEvent & {
110
- type: 'blurred';
111
- };
112
- /**
113
- * Generated when a page's theme color changes. This is usually due to encountering a meta tag.
114
- */
115
- export type DidChangeThemeColorEvent = NamedEvent & {
116
- type: 'did-change-theme-color';
117
- };
118
- /**
119
- * Generated when a WebContents gains focus.
120
- */
121
- export type FocusedEvent = NamedEvent & {
122
- type: 'focused';
123
- };
124
- export type ContentCreationRulesEvent = NamedEvent & {
125
- /**
126
- * The absolute url which triggered this event.
127
- */
128
- url: string;
129
- /**
130
- * The features string passed to `window.open()`
131
- */
132
- features: string;
133
- /**
134
- * The frame name passed to `window.open()`
135
- */
136
- frameName: string;
137
- /**
138
- * The rule which triggered this event. May be undefined on `child-window-created` where no rule corresponds to the child Window creation
139
- */
140
- rule: OpenFin.ContentCreationRule;
141
- /**
142
- * The features string passed to `window.open()` converted to OpenFin window options
143
- */
144
- parsedFeatures: Partial<OpenFin.WindowOptions>;
145
- disposition: string;
146
- };
147
- /**
148
- * Generated when a child content is blocked to load.
149
- */
150
- export type ChildContentBlockedEvent = ContentCreationRulesEvent & {
151
- type: 'child-content-blocked';
152
- };
153
- /**
154
- * Generated when a child content is loaded into a browser.
155
- */
156
- export type ChildContentOpenedInBrowserEvent = ContentCreationRulesEvent & {
157
- type: 'child-content-opened-in-browser';
158
- };
159
- /**
160
- * Generated when a child View is created.
161
- */
162
- export type ChildViewCreatedEvent = ContentCreationRulesEvent & {
163
- type: 'child-view-created';
164
- /**
165
- * The options the child View was created with.
166
- */
167
- childOptions: OpenFin.ViewOptions;
168
- };
169
- /**
170
- * Generated when a child Window is created.
171
- */
172
- export type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
173
- type: 'child-window-created';
174
- /**
175
- * The options the child Window was created with.
176
- */
177
- childOptions: OpenFin.WindowOptions;
178
- /**
179
- * On `child-window-created` rule may be undefined.
180
- * It is only defined if the rules engine found a match for a user-supplied rule, not in the case of an api call or the default behavior.
181
- */
182
- rule?: OpenFin.ContentCreationRule;
183
- };
184
- /**
185
- * A general file download event without event type.
186
- */
187
- export type FileDownloadEvent = {
188
- /**
189
- * The file download state.
190
- */
191
- state: 'started' | 'progressing' | 'cancelled' | 'interrupted' | 'completed';
192
- /**
193
- * The url from which the file is being downloaded.
194
- */
195
- url: string;
196
- /**
197
- * The file mime type.
198
- */
199
- mimeType: string;
200
- /**
201
- * The name used to save the file locally.
202
- */
203
- fileName: string;
204
- /**
205
- * The original name of the file.
206
- */
207
- originalFileName: string;
208
- /**
209
- * The total size in bytes of the file.
210
- */
211
- totalBytes: number;
212
- /**
213
- * The number of seconds since the UNIX epoch when the download was started.
214
- */
215
- startTime: number;
216
- /**
217
- * The value of the Content-Disposition field from the response header.
218
- */
219
- contentDisposition: string;
220
- /**
221
- * The value of the Last-Modified header.
222
- */
223
- lastModifiedTime: Date;
224
- /**
225
- * The value of the ETag header.
226
- */
227
- eTag: string;
228
- /**
229
- * The number of bytes of the item that have already been downloaded.
230
- */
231
- downloadedBytes: number;
232
- } & NamedEvent;
233
- /**
234
- * Generated when a file download has started.
235
- */
236
- export type FileDownloadStartedEvent = FileDownloadEvent & {
237
- type: 'file-download-started';
238
- state: 'started';
239
- };
240
- /**
241
- * Generated during file download progress.
242
- */
243
- export type FileDownloadProgressEvent = FileDownloadEvent & {
244
- type: 'file-download-progress';
245
- state: 'progressing' | 'interrupted';
246
- };
247
- /**
248
- * Generated when a file download has completed.
249
- */
250
- export type FileDownloadCompletedEvent = FileDownloadEvent & {
251
- type: 'file-download-completed';
252
- state: 'completed' | 'interrupted' | 'cancelled';
253
- };
254
- /**
255
- * A WebContents event that does propagate to (republish on) parent topics.
256
- */
257
- export type WillPropagateWebContentsEvent = BlurredEvent | CertificateSelectionShownEvent | CrashedEvent | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | FaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent | ChildWindowCreatedEvent | FileDownloadStartedEvent | FileDownloadProgressEvent | FileDownloadCompletedEvent;
258
- /**
259
- * A WebContents event that does not propagate to (republish on) parent topics.
260
- */
261
- export type NonPropagatedWebContentsEvent = FoundInPageEvent | CertificateErrorEvent;
262
- /**
263
- * A WebContents event.
264
- */
265
- export type WebContentsEvent = NonPropagatedWebContentsEvent | WillPropagateWebContentsEvent;
266
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });