@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,50 +0,0 @@
1
- import type * as OpenFin from '../../OpenFin';
2
- import { Base } from '../base';
3
- /**
4
- * @lends View
5
- */
6
- export default class ViewModule extends Base {
7
- /**
8
- * Creates a new View.
9
- * @param { View~options } options - View creation options
10
- * @return {Promise.<View>}
11
- * @tutorial View.create
12
- * @experimental
13
- * @static
14
- */
15
- create(options: OpenFin.ViewCreationOptions): Promise<OpenFin.View>;
16
- /**
17
- * Asynchronously returns a View object that represents an existing view.
18
- * @param { Identity } identity
19
- * @return {Promise.<View>}
20
- * @tutorial View.wrap
21
- * @experimental
22
- * @static
23
- */
24
- wrap(identity: OpenFin.Identity): Promise<OpenFin.View>;
25
- /**
26
- * Synchronously returns a View object that represents an existing view.
27
- * @param { Identity } identity
28
- * @return {View}
29
- * @tutorial View.wrapSync
30
- * @experimental
31
- * @static
32
- */
33
- wrapSync(identity: OpenFin.Identity): OpenFin.View;
34
- /**
35
- * Asynchronously returns a View object that represents the current view
36
- * @return {Promise.<View>}
37
- * @tutorial View.getCurrent
38
- * @experimental
39
- * @static
40
- */
41
- getCurrent(): Promise<OpenFin.View>;
42
- /**
43
- * Synchronously returns a View object that represents the current view
44
- * @return {View}
45
- * @tutorial View.getCurrentSync
46
- * @experimental
47
- * @static
48
- */
49
- getCurrentSync(): OpenFin.View;
50
- }
@@ -1,103 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const base_1 = require("../base");
4
- const validate_1 = require("../../util/validate");
5
- const index_1 = require("./index");
6
- /**
7
- * @lends View
8
- */
9
- class ViewModule extends base_1.Base {
10
- /**
11
- * Creates a new View.
12
- * @param { View~options } options - View creation options
13
- * @return {Promise.<View>}
14
- * @tutorial View.create
15
- * @experimental
16
- * @static
17
- */
18
- async create(options) {
19
- const { uuid } = this.wire.me;
20
- if (!options.name || typeof options.name !== 'string') {
21
- throw new Error('Please provide a name property as a string in order to create a View.');
22
- }
23
- if (this.wire.environment.childViews) {
24
- await this.wire.environment.createChildContent({
25
- entityType: 'view',
26
- options: { ...options, uuid }
27
- });
28
- }
29
- else {
30
- await this.wire.sendAction('create-view', { ...options, uuid });
31
- }
32
- return this.wrapSync({ uuid, name: options.name });
33
- }
34
- /**
35
- * Asynchronously returns a View object that represents an existing view.
36
- * @param { Identity } identity
37
- * @return {Promise.<View>}
38
- * @tutorial View.wrap
39
- * @experimental
40
- * @static
41
- */
42
- async wrap(identity) {
43
- this.wire.sendAction('view-wrap');
44
- const errorMsg = (0, validate_1.validateIdentity)(identity);
45
- if (errorMsg) {
46
- throw new Error(errorMsg);
47
- }
48
- return new index_1.View(this.wire, identity);
49
- }
50
- /**
51
- * Synchronously returns a View object that represents an existing view.
52
- * @param { Identity } identity
53
- * @return {View}
54
- * @tutorial View.wrapSync
55
- * @experimental
56
- * @static
57
- */
58
- wrapSync(identity) {
59
- this.wire.sendAction('view-wrap-sync').catch((e) => {
60
- // we do not want to expose this error, just continue if this analytics-only call fails
61
- });
62
- const errorMsg = (0, validate_1.validateIdentity)(identity);
63
- if (errorMsg) {
64
- throw new Error(errorMsg);
65
- }
66
- return new index_1.View(this.wire, identity);
67
- }
68
- /**
69
- * Asynchronously returns a View object that represents the current view
70
- * @return {Promise.<View>}
71
- * @tutorial View.getCurrent
72
- * @experimental
73
- * @static
74
- */
75
- getCurrent() {
76
- this.wire.sendAction('view-get-current').catch((e) => {
77
- // we do not want to expose this error, just continue if this analytics-only call fails
78
- });
79
- if (!this.wire.me.isView) {
80
- throw new Error('You are not in a View context');
81
- }
82
- const { uuid, name } = this.wire.me;
83
- return this.wrap({ uuid, name });
84
- }
85
- /**
86
- * Synchronously returns a View object that represents the current view
87
- * @return {View}
88
- * @tutorial View.getCurrentSync
89
- * @experimental
90
- * @static
91
- */
92
- getCurrentSync() {
93
- this.wire.sendAction('view-get-current-sync').catch((e) => {
94
- // we do not want to expose this error, just continue if this analytics-only call fails
95
- });
96
- if (!this.wire.me.isView) {
97
- throw new Error('You are not in a View context');
98
- }
99
- const { uuid, name } = this.wire.me;
100
- return this.wrapSync({ uuid, name });
101
- }
102
- }
103
- exports.default = ViewModule;
@@ -1,487 +0,0 @@
1
- import type * as OpenFin from '../../OpenFin';
2
- import { Transport } from '../../transport/transport';
3
- import { WebContents } from '../webcontents/main';
4
- type UpdatableViewOptions = OpenFin.UpdatableViewOptions;
5
- type ViewEvent = OpenFin.ViewEvent;
6
- /**
7
- * @PORTED
8
- * @typedef {object} View~options
9
- * @summary View creation options.
10
- * @desc This is the options object required by {@link View.create View.create}.
11
- *
12
- * Note that `name` and `target` are the only required properties — albeit the `url` property is usually provided as well
13
- * (defaults to `"about:blank"` when omitted).
14
- *
15
- * @property {object} [experimental]
16
- * Configurations for API injection.
17
- *
18
- * @property {boolean} [experimental.childWindows] Configure if the runtime should enable child windows for views.
19
- *
20
- * @property {object} [accelerator]
21
- * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
22
- *
23
- * @property {boolean} [accelerator.devtools=false]
24
- * If `true`, enables the devtools keyboard shortcut:<br>
25
- * `Ctrl` + `Shift` + `I` _(Toggles Devtools)_
26
- *
27
- * @property {boolean} [accelerator.reload=false]
28
- * If `true`, enables the reload keyboard shortcuts:<br>
29
- * `Ctrl` + `R` _(Windows)_<br>
30
- * `F5` _(Windows)_<br>
31
- * `Command` + `R` _(Mac)_
32
- *
33
- * @property {boolean} [accelerator.reloadIgnoringCache=false]
34
- * If `true`, enables the reload-from-source keyboard shortcuts:<br>
35
- * `Ctrl` + `Shift` + `R` _(Windows)_<br>
36
- * `Shift` + `F5` _(Windows)_<br>
37
- * `Command` + `Shift` + `R` _(Mac)_
38
- *
39
- * @property {boolean} [accelerator.zoom=false]
40
- * If `true`, enables the zoom keyboard shortcuts:<br>
41
- * `Ctrl` + `+` _(Zoom In)_<br>
42
- * `Ctrl` + `Shift` + `+` _(Zoom In)_<br>
43
- * `Ctrl` + `NumPad+` _(Zoom In)_<br>
44
- * `Ctrl` + `-` _(Zoom Out)_<br>
45
- * `Ctrl` + `Shift` + `-` _(Zoom Out)_<br>
46
- * `Ctrl` + `NumPad-` _(Zoom Out)_<br>
47
- * `Ctrl` + `Scroll` _(Zoom In & Out)_<br>
48
- * `Ctrl` + `0` _(Restore to 100%)_
49
- *
50
- * @property {object} [api]
51
- * Configurations for API injection.
52
- *
53
- * @property {object} [api.iframe] Configure if the the API should be injected into iframes based on domain.
54
- *
55
- * @property {boolean} [api.iframe.crossOriginInjection=false] Controls if the `fin` API object is present for cross origin iframes.
56
- * @property {boolean} [api.iframe.sameOriginInjection=true] Controls if the `fin` API object is present for same origin iframes.
57
- *
58
- * @property {string} [autoplayPolicy="no-user-gesture-required"]
59
- * Autoplay policy to apply to content in the window, can be
60
- * `no-user-gesture-required`, `user-gesture-required`,
61
- * `document-user-activation-required`. Defaults to `no-user-gesture-required`.
62
- *
63
- * @property {object} [autoResize] AutoResize options
64
- *
65
- * @property {object} [bounds] initial bounds given relative to the window.
66
- *
67
- * @property {string} [backgroundColor="#FFF"] - _Updatable._
68
- * The view’s _backfill_ color as a hexadecimal value. Not to be confused with the content background color
69
- * (`document.body.style.backgroundColor`),
70
- * this color briefly fills a view’s (a) content area before its content is loaded as well as (b) newly exposed
71
- * areas when growing a window. Setting
72
- * this value to the anticipated content background color can help improve user experience.
73
- * Default is white.
74
- *
75
- * @property {object} [contentNavigation]
76
- * Restrict navigation to URLs that match an allowed pattern.
77
- * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
78
- * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
79
- * @property {string[]} [contentNavigation.allowlist=[]] List of allowed URLs.
80
- * @property {string[]} [contentNavigation.denylist=[]] List of denied URLs.
81
- *
82
- * @property {object} [contentRedirect]
83
- * Restrict redirects to URLs that match an allowed pattern.
84
- * In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
85
- * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
86
- * @property {string[]} [contentRedirect.allowlist=[]] List of allowed URLs.
87
- * @property {string[]} [contentRedirect.denylist=[]] List of denied URLs.
88
- *
89
- * @property {object} [contextMenuSettings] - _Updatable._
90
- * Deprecated - superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
91
- * Configure the context menu when right-clicking on a view.
92
- * @property {boolean} [contextMenuSettings.enable=true] Should the context menu display on right click.
93
- * @property {boolean} [contextMenuSettings.devtools=true] Should the context menu contain a button for opening devtools.
94
- * @property {boolean} [contextMenuSettings.reload=true] Should the context menu contain a button for reloading the page.
95
- *
96
- * @property {object} [contextMenuOptions] - _Updatable._
97
- * Configure the context menu when right-clicking on a view. Supported menu items:
98
- * 'separator'
99
- * 'cut'
100
- * 'copy'
101
- * 'copyImage',
102
- * 'paste'
103
- * 'spellCheck'
104
- * 'inspect'
105
- * 'reload'
106
- * 'navigateForward'
107
- * 'navigateBack'
108
- * 'print'
109
- * @property {boolean} [contextMenuOptions.enabled = true] Should the context menu display on right click.
110
- * @property {string[]} [contextMenuOptions.template=[]] List of context menu items to display on right-click.
111
- *
112
- * @property {any} [customData=""] - _Updatable._
113
- * A field that the user can attach serializable data to be ferried around with the view options.
114
- * _When omitted, the default value of this property is the empty string (`""`)._
115
- *
116
- * @property {any} [customContext=""] - _Updatable._
117
- * A field that the user can use to attach serializable data that will be saved when {@link Platform#getSnapshot Platform.getSnapshot}
118
- * is called.
119
- * When omitted, the default value of this property is the empty string (`""`).
120
- * As opposed to customData, this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext}
121
- *
122
- * @property {object[]} [hotkeys=[]] - _Updatable._
123
- * Defines the list of hotkeys that will be emitted as a `hotkey` event on the view. For usage example see [example]{@tutorial hotkeys}.
124
- * Within Platform, OpenFin also implements a set of pre-defined actions called
125
- * [keyboard commands]{@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands}
126
- * that can be assigned to a specific hotkey in the platform manifest.
127
- * @property {string} hotkeys.keys The key combination of the hotkey, i.e. "Ctrl+T"
128
- * @property {boolean} [hotkeys.preventDefault=false] preventDefault will prevent the page keydown/keyup events from being emitted.
129
- *
130
- * @property {boolean} [isClosable=true] **Platforms Only.** If false, the view will be persistent and can't be closed through
131
- * either UI or `Platform.closeView`. Note that the view will still be closed if the host window is closed or
132
- * if the view isn't part of the new layout when running `Layout.replace`.
133
- *
134
- * @property {string} name
135
- * The name of the view.
136
- *
137
- * @property {boolean} [detachOnClose=false] - _Updatable._
138
- * Platforms Only. If true, will hide and detach the View from the window for later use instead of closing,
139
- * allowing the state of the View to be saved and the View to be immediately shown in a new Layout.
140
- *
141
- * @property {string} [manifestUrl] **Platforms Only.** Url to a manifest that contains View Options. Properties other than manifestUrl can still be used
142
- * but the properties in the manifest will take precedence if there is any collision.
143
- *
144
- * @property {preloadScript[]} [preloadScripts] - _Inheritable_
145
- * A list of scripts that are eval'ed before other scripts in the page. When omitted, _inherits_
146
- * from the parent application.
147
- *
148
- * @property {boolean} [preventDragOut=false] **Platforms Only.** If true, the tab of the view can't be dragged out of its host window.
149
- *
150
- * @property {string} [processAffinity=<application uuid>]
151
- * A string to attempt to group renderers together. Will only be used if pages are on the same origin.
152
- *
153
- * @property {boolean} [spellCheck=false]
154
- * Enable spell check in input text fields for the view.
155
- *
156
- * @property {Identity} [target]
157
- * The identity of the window this view should be attached to.
158
- *
159
- * @property {string} [url="about:blank"]
160
- * The URL of the view.
161
- *
162
- * @property {string} [uuid=<application uuid>]
163
- * The `uuid` of the application, unique within the set of all `Application`s running in OpenFin Runtime.
164
- * If omitted, defaults to the `uuid` of the application spawning the view.
165
- * If given, must match the `uuid` of the application spawning the view.
166
- * In other words, the application's `uuid` is the only acceptable value, but is the default, so there's
167
- * really no need to provide it.
168
- */
169
- /**
170
- * @classdesc A View can be used to embed additional web content into a Window.
171
- * It is like a child window, except it is positioned relative to its owning window.
172
- * It has the ability to listen for <a href="tutorial-View.EventEmitter.html">View-specific events</a>.
173
- *
174
- * By default, a View will try to share the same renderer process as other Views owned by its parent Application.
175
- * To change that behavior, see the processAffinity {@link View~options view option}.
176
- *
177
- * A View's lifecycle is tied to its owning window and can be re-attached to a different window at any point during its lifecycle.
178
- * @class
179
- * @alias View
180
- * @hideconstructor
181
- */
182
- export declare class View extends WebContents<ViewEvent> {
183
- #private;
184
- identity: OpenFin.Identity;
185
- constructor(wire: Transport, identity: OpenFin.Identity);
186
- /**
187
- * Gets a base64 encoded image of the view or a part of it.
188
- * @function capturePage
189
- * @param { CapturePageOptions } [options] Options for the capturePage call.
190
- * @memberOf View
191
- * @instance
192
- * @return {Promise.<string>}
193
- * @tutorial View.capturePage
194
- */
195
- /**
196
- * Executes Javascript on the view, restricted to contents you own or contents owned by
197
- * applications you have created.
198
- * @param { string } code JavaScript code to be executed on the view.
199
- * @function executeJavaScript
200
- * @memberOf View
201
- * @instance
202
- * @return {Promise.<void>}
203
- * @tutorial View.executeJavaScript
204
- */
205
- /**
206
- * Focuses the view
207
- * @return {Promise.<void>}
208
- * @function focus
209
- * @memberof View
210
- * @emits focused
211
- * @instance
212
- * @tutorial View.focus
213
- * @experimental
214
- */
215
- focus({ emitSynthFocused }?: {
216
- emitSynthFocused: boolean;
217
- }): Promise<void>;
218
- /**
219
- * Returns the zoom level of the view.
220
- * @function getZoomLevel
221
- * @memberOf View
222
- * @instance
223
- * @return {Promise.<number>}
224
- * @tutorial View.getZoomLevel
225
- */
226
- /**
227
- * Sets the zoom level of the view.
228
- * @param { number } level The zoom level
229
- * @function setZoomLevel
230
- * @memberOf View
231
- * @instance
232
- * @return {Promise.<void>}
233
- * @tutorial View.setZoomLevel
234
- */
235
- /**
236
- * Find and highlight text on a page.
237
- * @param { string } searchTerm Term to find in page
238
- * @param { FindInPageOptions } options Search options
239
- * @function findInPage
240
- * @memberOf View
241
- * @instance
242
- * @return {Promise.<number>}
243
- * @tutorial View.findInPage
244
- */
245
- /**
246
- * Stops any findInPage call with the provided action.
247
- * @param {string} action
248
- * Action to execute when stopping a find in page:<br>
249
- * "clearSelection" - Clear the selection.<br>
250
- * "keepSelection" - Translate the selection into a normal selection.<br>
251
- * "activateSelection" - Focus and click the selection node.<br>
252
- * @function stopFindInPage
253
- * @memberOf View
254
- * @instance
255
- * @return {Promise.<void>}
256
- * @tutorial View.stopFindInPage
257
- */
258
- /**
259
- * Navigates the view to a specified URL. The url must contain the protocol prefix such as http:// or https://.
260
- * @param { string } url - The URL to navigate the view to.
261
- * @return {Promise.<void>}
262
- * @function navigate
263
- * @memberof View
264
- * @instance
265
- * @tutorial View.navigate
266
- * @experimental
267
- */
268
- /**
269
- * Navigates the view back one page.
270
- * @function navigateBack
271
- * @memberOf View
272
- * @instance
273
- * @return {Promise.<void>}
274
- * @tutorial View.navigateBack
275
- */
276
- /**
277
- * Navigates the view forward one page.
278
- * @function navigateForward
279
- * @memberOf View
280
- * @instance
281
- * @return {Promise.<void>}
282
- * @tutorial View.navigateForward
283
- */
284
- /**
285
- * Stops any current navigation the view is performing.
286
- * @function stopNavigation
287
- * @memberOf View
288
- * @instance
289
- * @return {Promise.<void>}
290
- * @tutorial View.stopNavigation
291
- */
292
- /**
293
- * Reloads the view current page
294
- * @function reload
295
- * @memberOf View
296
- * @instance
297
- * @return {Promise.<void>}
298
- * @tutorial View.reload
299
- */
300
- /**
301
- * Prints the view's web page
302
- * @param { PrintOptions } [options] Printer Options
303
- * @function print
304
- * @memberOf View
305
- * @instance
306
- * @return {Promise.<void>}
307
- * @tutorial View.print
308
- */
309
- /**
310
- * Returns an array with all system printers
311
- * @deprecated use System.getPrinters instead
312
- * @function getPrinters
313
- * @memberOf View
314
- * @instance
315
- * @return { Promise.Array.<PrinterInfo> }
316
- * @tutorial View.getPrinters
317
- */
318
- /**
319
- * Shows the Chromium Developer Tools
320
- * @function showDeveloperTools
321
- * @memberOf View
322
- * @instance
323
- * @return {Promise.<void>}
324
- * @tutorial View.showDeveloperTools
325
- */
326
- /**
327
- * Retrieves the process information associated with a view.
328
- * @function getProcessInfo
329
- * @memberOf View
330
- * @instance
331
- * @return {Promise.<EntityProcessDetails>}
332
- * @tutorial View.getProcessInfo
333
- */
334
- /**
335
- * Retrieves information on all Shared Workers.
336
- * @function getSharedWorkers
337
- * @memberOf View
338
- * @instance
339
- * @return {Promise.Array.<SharedWorkerInfo>}
340
- * @tutorial View.getSharedWorkers
341
- */
342
- /**
343
- * Opens the developer tools for the shared worker context.
344
- * @function inspectSharedWorker
345
- * @memberOf View
346
- * @instance
347
- * @return {Promise.<void>}
348
- * @tutorial View.inspectSharedWorker
349
- */
350
- /**
351
- * Inspects the shared worker based on its ID.
352
- * @param { string } workerId - The id of the shared worker.
353
- * @function inspectSharedWorkerById
354
- * @memberOf View
355
- * @instance
356
- * @return {Promise.<void>}
357
- * @tutorial View.inspectSharedWorkerById
358
- */
359
- /**
360
- * Opens the developer tools for the service worker context.
361
- * @function inspectServiceWorker
362
- * @memberOf View
363
- * @instance
364
- * @return {Promise.<void>}
365
- * @tutorial View.inspectServiceWorker
366
- */
367
- /**
368
- * Shows a popup window. If the window this view is currently attached to has a popup open, closes it.
369
- * @function showPopupWindow
370
- * @memberOf View
371
- * @instance
372
- * @param {PopupOptions} options
373
- * @return {Promise<PopupResult>}
374
- * @tutorial View.showPopupWindow
375
- */
376
- /**
377
- * Attaches the current view to a the given window identity.
378
- * Identity must be the identity of a window in the same application.
379
- * This detaches the view from its current window, and sets the view to be destroyed when its new window closes.
380
- * @param target {Identity}
381
- * @return {Promise.<void>}
382
- * @tutorial View.attach
383
- * @experimental
384
- */
385
- attach: (target: OpenFin.Identity) => Promise<void>;
386
- /**
387
- * Destroys the current view
388
- * @return {Promise.<void>}
389
- * @tutorial View.destroy
390
- * @experimental
391
- */
392
- destroy: () => Promise<void>;
393
- /**
394
- * Shows the current view if it is currently hidden.
395
- * @return {Promise.<void>}
396
- * @tutorial View.show
397
- * @experimental
398
- */
399
- show: () => Promise<void>;
400
- /**
401
- * Hides the current view if it is currently visible.
402
- * @return {Promise.<void>}
403
- * @tutorial View.hide
404
- * @experimental
405
- */
406
- hide: () => Promise<void>;
407
- /**
408
- * Sets the bounds (top, left, width, height) of the view relative to its window.
409
- * @param bounds {ViewBounds}
410
- * @return {Promise.<void>}
411
- * @tutorial View.setBounds
412
- * @experimental
413
- */
414
- setBounds: (bounds: OpenFin.Bounds) => Promise<void>;
415
- /**
416
- * Gets the bounds (top, left, width, height) of the view relative to its window.
417
- * @return {Promise.<ViewBounds>}
418
- * @tutorial View.getBounds
419
- * @experimental
420
- */
421
- getBounds: () => Promise<OpenFin.Bounds>;
422
- /**
423
- * Gets the View's info.
424
- * @return {Promise.<ViewInfo>}
425
- * @tutorial View.getInfo
426
- * @experimental
427
- */
428
- getInfo: () => Promise<OpenFin.ViewInfo>;
429
- /**
430
- * Retrieves the layout for the window the view is attached to.
431
- * @return {Promise.<Layout>}
432
- * @tutorial View.getParentLayout
433
- * @experimental
434
- */
435
- getParentLayout: () => Promise<OpenFin.Layout>;
436
- /**
437
- * Gets the View's options.
438
- * @return {Promise<ViewOptions>}
439
- * @tutorial View.getOptions
440
- * @experimental
441
- */
442
- getOptions: () => Promise<OpenFin.ViewOptions>;
443
- /**
444
- * Updates the view's options.
445
- * @param { Partial<ViewOptions> } options
446
- * @return {Promise.<void>}
447
- * @tutorial View.updateOptions
448
- * @experimental
449
- */
450
- updateOptions: (options: UpdatableViewOptions) => Promise<void>;
451
- /**
452
- * Retrieves the window the view is currently attached to.
453
- * @return {Promise.<_Window>}
454
- * @experimental
455
- */
456
- getCurrentWindow: () => Promise<OpenFin.Window>;
457
- /**
458
- * Retrieves the current {@link TabStack} of the view if it belongs to one.
459
- * @return {Promise<TabStack>} The {@link TabStack} this view belongs to.
460
- * @throws if this view does not belong to a TabStack or if the window has been destroyed.
461
- */
462
- getCurrentStack: () => Promise<OpenFin.TabStack>;
463
- /**
464
- * Triggers the before-unload handler for the View, if one is set. Returns `true` if the handler is trying to prevent the View from unloading, and `false` if it isn't.
465
- * Only enabled when setting enableBeforeUnload: true in your View options. If this option is not enabled it will always return false.
466
- * @returns {Promise<boolean>}
467
- * @tutorial View.triggerBeforeUnload
468
- * @experimental
469
- */
470
- triggerBeforeUnload: () => Promise<boolean>;
471
- /**
472
- * **NOTE**: Internal use only.
473
- * Attaches this view to an HTML element in the current context. The view will resize responsively when the element bounds change.
474
- *
475
- * **Known issue**: View.bindToElement does not track position changes, if the element has fixed px width and height values it is possible for the view to not update responsively.
476
- *
477
- * **Known issue**: When View.bindToElement is used on a element that takes up the entire page in a platform window, the bound view will not respond responsively when the window is resized to be smaller.
478
- *
479
- * @param {HTMLElement} element - HTML element to attach the view to.
480
- * @return {Function} - Cleanup function that will disconnect the element resize observer.
481
- * @internal
482
- * @experimental
483
- * @tutorial View.bindToElement
484
- */
485
- bindToElement: (element: HTMLElement) => Promise<() => void>;
486
- }
487
- export {};