@openfin/core 33.76.31 → 33.76.36

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 (116) hide show
  1. package/openfin-core-33.76.36.tgz +0 -0
  2. package/package.json +1 -1
  3. package/src/OpenFin.d.ts +27 -16
  4. package/src/api/application/Factory.d.ts +148 -100
  5. package/src/api/application/Factory.js +148 -100
  6. package/src/api/application/Instance.d.ts +477 -106
  7. package/src/api/application/Instance.js +474 -106
  8. package/src/api/application/index.d.ts +9 -0
  9. package/src/api/application/index.js +9 -0
  10. package/src/api/base.d.ts +69 -0
  11. package/src/api/base.js +69 -0
  12. package/src/api/clipboard/index.d.ts +111 -31
  13. package/src/api/clipboard/index.js +111 -31
  14. package/src/api/events/application.d.ts +12 -0
  15. package/src/api/events/application.js +12 -0
  16. package/src/api/events/channel.d.ts +5 -0
  17. package/src/api/events/channel.js +5 -0
  18. package/src/api/events/externalApplication.d.ts +5 -0
  19. package/src/api/events/externalApplication.js +5 -0
  20. package/src/api/events/frame.d.ts +5 -0
  21. package/src/api/events/globalHotkey.d.ts +5 -0
  22. package/src/api/events/platform.d.ts +9 -1
  23. package/src/api/events/platform.js +8 -0
  24. package/src/api/events/system.d.ts +13 -0
  25. package/src/api/events/system.js +13 -0
  26. package/src/api/events/view.d.ts +19 -9
  27. package/src/api/events/view.js +10 -0
  28. package/src/api/events/webcontents.d.ts +21 -10
  29. package/src/api/events/webcontents.js +11 -0
  30. package/src/api/events/window.d.ts +70 -1
  31. package/src/api/events/window.js +10 -0
  32. package/src/api/external-application/Factory.d.ts +16 -9
  33. package/src/api/external-application/Factory.js +16 -9
  34. package/src/api/external-application/Instance.d.ts +40 -32
  35. package/src/api/external-application/Instance.js +40 -32
  36. package/src/api/external-application/index.d.ts +9 -0
  37. package/src/api/external-application/index.js +9 -0
  38. package/src/api/fin.d.ts +3 -0
  39. package/src/api/fin.js +3 -0
  40. package/src/api/frame/Factory.d.ts +30 -13
  41. package/src/api/frame/Factory.js +30 -13
  42. package/src/api/frame/Instance.d.ts +51 -38
  43. package/src/api/frame/Instance.js +51 -38
  44. package/src/api/frame/index.d.ts +11 -0
  45. package/src/api/frame/index.js +11 -0
  46. package/src/api/global-hotkey/index.d.ts +81 -13
  47. package/src/api/global-hotkey/index.js +81 -13
  48. package/src/api/interappbus/channel/channel.d.ts +257 -0
  49. package/src/api/interappbus/channel/channel.js +257 -0
  50. package/src/api/interappbus/channel/channels-docs.d.ts +59 -57
  51. package/src/api/interappbus/channel/channels-docs.js +71 -68
  52. package/src/api/interappbus/channel/client.d.ts +93 -0
  53. package/src/api/interappbus/channel/client.js +93 -1
  54. package/src/api/interappbus/channel/index.d.ts +164 -0
  55. package/src/api/interappbus/channel/index.js +165 -1
  56. package/src/api/interappbus/channel/provider.d.ts +172 -0
  57. package/src/api/interappbus/channel/provider.js +172 -0
  58. package/src/api/interappbus/index.d.ts +55 -20
  59. package/src/api/interappbus/index.js +55 -20
  60. package/src/api/interop/Factory.d.ts +30 -10
  61. package/src/api/interop/Factory.js +30 -10
  62. package/src/api/interop/InteropBroker.d.ts +298 -70
  63. package/src/api/interop/InteropBroker.js +298 -70
  64. package/src/api/interop/InteropClient.d.ts +286 -62
  65. package/src/api/interop/InteropClient.js +286 -62
  66. package/src/api/interop/SessionContextGroupClient.d.ts +2 -2
  67. package/src/api/interop/SessionContextGroupClient.js +2 -2
  68. package/src/api/interop/fdc3/documentationStub.d.ts +14 -0
  69. package/src/api/interop/fdc3/documentationStub.js +17 -0
  70. package/src/api/interop/fdc3/fdc3-1.2.d.ts +31 -34
  71. package/src/api/interop/fdc3/fdc3-1.2.js +31 -34
  72. package/src/api/interop/fdc3/fdc3-2.0.d.ts +48 -51
  73. package/src/api/interop/fdc3/fdc3-2.0.js +48 -51
  74. package/src/api/interop/index.d.ts +8 -0
  75. package/src/api/interop/index.js +8 -0
  76. package/src/api/platform/Factory.d.ts +121 -65
  77. package/src/api/platform/Factory.js +122 -66
  78. package/src/api/platform/Instance.d.ts +551 -48
  79. package/src/api/platform/Instance.js +551 -49
  80. package/src/api/platform/index.d.ts +9 -0
  81. package/src/api/platform/index.js +9 -0
  82. package/src/api/platform/layout/Factory.d.ts +53 -76
  83. package/src/api/platform/layout/Factory.js +53 -76
  84. package/src/api/platform/layout/Instance.d.ts +158 -23
  85. package/src/api/platform/layout/Instance.js +118 -20
  86. package/src/api/platform/layout/entities/layout-entities.d.ts +222 -30
  87. package/src/api/platform/layout/entities/layout-entities.js +222 -30
  88. package/src/api/platform/layout/index.d.ts +9 -0
  89. package/src/api/platform/layout/index.js +9 -0
  90. package/src/api/platform/provider.d.ts +398 -51
  91. package/src/api/snapshot-source/Factory.d.ts +33 -18
  92. package/src/api/snapshot-source/Factory.js +33 -18
  93. package/src/api/snapshot-source/Instance.d.ts +30 -8
  94. package/src/api/snapshot-source/Instance.js +30 -8
  95. package/src/api/snapshot-source/index.d.ts +9 -0
  96. package/src/api/snapshot-source/index.js +9 -0
  97. package/src/api/system/index.d.ts +1137 -186
  98. package/src/api/system/index.js +1142 -186
  99. package/src/api/view/Factory.d.ts +54 -16
  100. package/src/api/view/Factory.js +54 -16
  101. package/src/api/view/Instance.d.ts +330 -216
  102. package/src/api/view/Instance.js +331 -217
  103. package/src/api/view/index.d.ts +9 -0
  104. package/src/api/view/index.js +9 -0
  105. package/src/api/webcontents/main.d.ts +890 -0
  106. package/src/api/webcontents/main.js +890 -0
  107. package/src/api/window/Factory.d.ts +67 -16
  108. package/src/api/window/Factory.js +67 -16
  109. package/src/api/window/Instance.d.ts +824 -316
  110. package/src/api/window/Instance.js +822 -320
  111. package/src/api/window/index.d.ts +11 -0
  112. package/src/api/window/index.js +11 -0
  113. package/src/namespaces.d.ts +1 -0
  114. package/src/namespaces.js +3 -1
  115. package/src/shapes/protocol.d.ts +4 -0
  116. package/openfin-core-33.76.31.tgz +0 -0
@@ -1,48 +1,86 @@
1
1
  import type * as OpenFin from '../../OpenFin';
2
2
  import { Base } from '../base';
3
- /**
4
- * @lends View
5
- */
6
3
  export default class ViewModule extends Base {
7
4
  /**
8
5
  * Creates a new View.
9
- * @param { View~options } options - View creation options
10
- * @return {Promise.<View>}
11
- * @tutorial View.create
6
+ * @param options - View creation options
7
+ *
8
+ * @example
9
+ * ```js
10
+ * let view;
11
+ * async function createView() {
12
+ * const me = await fin.Window.getCurrent();
13
+ * return fin.View.create({
14
+ * name: 'viewNameCreate',
15
+ * target: me.identity,
16
+ * bounds: {top: 10, left: 10, width: 200, height: 200}
17
+ * });
18
+ * }
19
+ *
20
+ * createView()
21
+ * .then((createdView) => {
22
+ * view = createdView;
23
+ * console.log('View created.', view);
24
+ * view.navigate('https://google.com');
25
+ * console.log('View navigated to given url.');
26
+ * })
27
+ * .catch(err => console.log(err));
28
+ * ```
29
+ * Note that created views needs to navigate somewhere for them to actually render a website.
12
30
  * @experimental
13
31
  * @static
14
32
  */
15
33
  create(options: OpenFin.ViewCreationOptions): Promise<OpenFin.View>;
16
34
  /**
17
35
  * Asynchronously returns a View object that represents an existing view.
18
- * @param { Identity } identity
19
- * @return {Promise.<View>}
20
- * @tutorial View.wrap
36
+ * @param identity
37
+ *
38
+ * @example
39
+ * ```js
40
+ * fin.View.wrap({ uuid: 'testViewUuid', name: 'testViewName' }))
41
+ * .then(view => console.log('wrapped view', view))
42
+ * .catch(err => console.log(err));
43
+ * ```
21
44
  * @experimental
22
45
  * @static
23
46
  */
24
47
  wrap(identity: OpenFin.Identity): Promise<OpenFin.View>;
25
48
  /**
26
49
  * Synchronously returns a View object that represents an existing view.
27
- * @param { Identity } identity
28
- * @return {View}
29
- * @tutorial View.wrapSync
50
+ * @param identity
51
+ *
52
+ * @example
53
+ * ```js
54
+ * const view = fin.View.wrapSync({ uuid: 'testView', name: 'testViewName' });
55
+ * await view.hide();
56
+ * ```
30
57
  * @experimental
31
58
  * @static
32
59
  */
33
60
  wrapSync(identity: OpenFin.Identity): OpenFin.View;
34
61
  /**
35
62
  * Asynchronously returns a View object that represents the current view
36
- * @return {Promise.<View>}
37
- * @tutorial View.getCurrent
63
+ *
64
+ * @example
65
+ * ```js
66
+ * fin.View.getCurrent()
67
+ * .then(view => console.log('current view', view))
68
+ * .catch(err => console.log(err));
69
+ *
70
+ * ```
38
71
  * @experimental
39
72
  * @static
40
73
  */
41
74
  getCurrent(): Promise<OpenFin.View>;
42
75
  /**
43
76
  * Synchronously returns a View object that represents the current view
44
- * @return {View}
45
- * @tutorial View.getCurrentSync
77
+ *
78
+ * @example
79
+ * ```js
80
+ * const view = fin.View.getCurrentSync();
81
+ * console.log(view);
82
+ *
83
+ * ```
46
84
  * @experimental
47
85
  * @static
48
86
  */
@@ -3,15 +3,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const base_1 = require("../base");
4
4
  const validate_1 = require("../../util/validate");
5
5
  const index_1 = require("./index");
6
- /**
7
- * @lends View
8
- */
9
6
  class ViewModule extends base_1.Base {
10
7
  /**
11
8
  * Creates a new View.
12
- * @param { View~options } options - View creation options
13
- * @return {Promise.<View>}
14
- * @tutorial View.create
9
+ * @param options - View creation options
10
+ *
11
+ * @example
12
+ * ```js
13
+ * let view;
14
+ * async function createView() {
15
+ * const me = await fin.Window.getCurrent();
16
+ * return fin.View.create({
17
+ * name: 'viewNameCreate',
18
+ * target: me.identity,
19
+ * bounds: {top: 10, left: 10, width: 200, height: 200}
20
+ * });
21
+ * }
22
+ *
23
+ * createView()
24
+ * .then((createdView) => {
25
+ * view = createdView;
26
+ * console.log('View created.', view);
27
+ * view.navigate('https://google.com');
28
+ * console.log('View navigated to given url.');
29
+ * })
30
+ * .catch(err => console.log(err));
31
+ * ```
32
+ * Note that created views needs to navigate somewhere for them to actually render a website.
15
33
  * @experimental
16
34
  * @static
17
35
  */
@@ -33,9 +51,14 @@ class ViewModule extends base_1.Base {
33
51
  }
34
52
  /**
35
53
  * Asynchronously returns a View object that represents an existing view.
36
- * @param { Identity } identity
37
- * @return {Promise.<View>}
38
- * @tutorial View.wrap
54
+ * @param identity
55
+ *
56
+ * @example
57
+ * ```js
58
+ * fin.View.wrap({ uuid: 'testViewUuid', name: 'testViewName' }))
59
+ * .then(view => console.log('wrapped view', view))
60
+ * .catch(err => console.log(err));
61
+ * ```
39
62
  * @experimental
40
63
  * @static
41
64
  */
@@ -49,9 +72,13 @@ class ViewModule extends base_1.Base {
49
72
  }
50
73
  /**
51
74
  * Synchronously returns a View object that represents an existing view.
52
- * @param { Identity } identity
53
- * @return {View}
54
- * @tutorial View.wrapSync
75
+ * @param identity
76
+ *
77
+ * @example
78
+ * ```js
79
+ * const view = fin.View.wrapSync({ uuid: 'testView', name: 'testViewName' });
80
+ * await view.hide();
81
+ * ```
55
82
  * @experimental
56
83
  * @static
57
84
  */
@@ -67,8 +94,14 @@ class ViewModule extends base_1.Base {
67
94
  }
68
95
  /**
69
96
  * Asynchronously returns a View object that represents the current view
70
- * @return {Promise.<View>}
71
- * @tutorial View.getCurrent
97
+ *
98
+ * @example
99
+ * ```js
100
+ * fin.View.getCurrent()
101
+ * .then(view => console.log('current view', view))
102
+ * .catch(err => console.log(err));
103
+ *
104
+ * ```
72
105
  * @experimental
73
106
  * @static
74
107
  */
@@ -84,8 +117,13 @@ class ViewModule extends base_1.Base {
84
117
  }
85
118
  /**
86
119
  * Synchronously returns a View object that represents the current view
87
- * @return {View}
88
- * @tutorial View.getCurrentSync
120
+ *
121
+ * @example
122
+ * ```js
123
+ * const view = fin.View.getCurrentSync();
124
+ * console.log(view);
125
+ *
126
+ * ```
89
127
  * @experimental
90
128
  * @static
91
129
  */