@openfin/core 33.76.27 → 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.
- package/openfin-core-33.76.36.tgz +0 -0
- package/package.json +1 -1
- package/src/OpenFin.d.ts +27 -16
- package/src/api/application/Factory.d.ts +148 -100
- package/src/api/application/Factory.js +148 -100
- package/src/api/application/Instance.d.ts +477 -106
- package/src/api/application/Instance.js +474 -106
- package/src/api/application/index.d.ts +9 -0
- package/src/api/application/index.js +9 -0
- package/src/api/base.d.ts +69 -0
- package/src/api/base.js +69 -0
- package/src/api/clipboard/index.d.ts +111 -31
- package/src/api/clipboard/index.js +111 -31
- package/src/api/events/application.d.ts +12 -0
- package/src/api/events/application.js +12 -0
- package/src/api/events/channel.d.ts +5 -0
- package/src/api/events/channel.js +5 -0
- package/src/api/events/externalApplication.d.ts +5 -0
- package/src/api/events/externalApplication.js +5 -0
- package/src/api/events/frame.d.ts +5 -0
- package/src/api/events/globalHotkey.d.ts +5 -0
- package/src/api/events/platform.d.ts +9 -1
- package/src/api/events/platform.js +8 -0
- package/src/api/events/system.d.ts +13 -0
- package/src/api/events/system.js +13 -0
- package/src/api/events/view.d.ts +19 -9
- package/src/api/events/view.js +10 -0
- package/src/api/events/webcontents.d.ts +21 -10
- package/src/api/events/webcontents.js +11 -0
- package/src/api/events/window.d.ts +70 -1
- package/src/api/events/window.js +10 -0
- package/src/api/external-application/Factory.d.ts +16 -9
- package/src/api/external-application/Factory.js +16 -9
- package/src/api/external-application/Instance.d.ts +40 -32
- package/src/api/external-application/Instance.js +40 -32
- package/src/api/external-application/index.d.ts +9 -0
- package/src/api/external-application/index.js +9 -0
- package/src/api/fin.d.ts +3 -0
- package/src/api/fin.js +3 -0
- package/src/api/frame/Factory.d.ts +30 -13
- package/src/api/frame/Factory.js +30 -13
- package/src/api/frame/Instance.d.ts +51 -38
- package/src/api/frame/Instance.js +51 -38
- package/src/api/frame/index.d.ts +11 -0
- package/src/api/frame/index.js +11 -0
- package/src/api/global-hotkey/index.d.ts +81 -13
- package/src/api/global-hotkey/index.js +81 -13
- package/src/api/interappbus/channel/channel.d.ts +257 -0
- package/src/api/interappbus/channel/channel.js +257 -0
- package/src/api/interappbus/channel/channels-docs.d.ts +59 -57
- package/src/api/interappbus/channel/channels-docs.js +71 -68
- package/src/api/interappbus/channel/client.d.ts +93 -0
- package/src/api/interappbus/channel/client.js +93 -1
- package/src/api/interappbus/channel/index.d.ts +164 -0
- package/src/api/interappbus/channel/index.js +165 -1
- package/src/api/interappbus/channel/provider.d.ts +172 -0
- package/src/api/interappbus/channel/provider.js +172 -0
- package/src/api/interappbus/index.d.ts +55 -20
- package/src/api/interappbus/index.js +55 -20
- package/src/api/interop/Factory.d.ts +30 -10
- package/src/api/interop/Factory.js +30 -10
- package/src/api/interop/InteropBroker.d.ts +298 -70
- package/src/api/interop/InteropBroker.js +298 -70
- package/src/api/interop/InteropClient.d.ts +286 -62
- package/src/api/interop/InteropClient.js +286 -62
- package/src/api/interop/SessionContextGroupClient.d.ts +2 -2
- package/src/api/interop/SessionContextGroupClient.js +2 -2
- package/src/api/interop/fdc3/documentationStub.d.ts +14 -0
- package/src/api/interop/fdc3/documentationStub.js +17 -0
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +31 -34
- package/src/api/interop/fdc3/fdc3-1.2.js +31 -34
- package/src/api/interop/fdc3/fdc3-2.0.d.ts +48 -51
- package/src/api/interop/fdc3/fdc3-2.0.js +48 -51
- package/src/api/interop/index.d.ts +8 -0
- package/src/api/interop/index.js +8 -0
- package/src/api/platform/Factory.d.ts +121 -65
- package/src/api/platform/Factory.js +122 -66
- package/src/api/platform/Instance.d.ts +551 -48
- package/src/api/platform/Instance.js +551 -49
- package/src/api/platform/index.d.ts +9 -0
- package/src/api/platform/index.js +9 -0
- package/src/api/platform/layout/Factory.d.ts +53 -76
- package/src/api/platform/layout/Factory.js +53 -76
- package/src/api/platform/layout/Instance.d.ts +158 -23
- package/src/api/platform/layout/Instance.js +118 -20
- package/src/api/platform/layout/entities/layout-entities.d.ts +222 -30
- package/src/api/platform/layout/entities/layout-entities.js +222 -30
- package/src/api/platform/layout/index.d.ts +9 -0
- package/src/api/platform/layout/index.js +9 -0
- package/src/api/platform/provider.d.ts +398 -51
- package/src/api/snapshot-source/Factory.d.ts +33 -18
- package/src/api/snapshot-source/Factory.js +33 -18
- package/src/api/snapshot-source/Instance.d.ts +30 -8
- package/src/api/snapshot-source/Instance.js +30 -8
- package/src/api/snapshot-source/index.d.ts +9 -0
- package/src/api/snapshot-source/index.js +9 -0
- package/src/api/system/index.d.ts +1137 -186
- package/src/api/system/index.js +1142 -186
- package/src/api/view/Factory.d.ts +54 -16
- package/src/api/view/Factory.js +54 -16
- package/src/api/view/Instance.d.ts +330 -216
- package/src/api/view/Instance.js +331 -217
- package/src/api/view/index.d.ts +9 -0
- package/src/api/view/index.js +9 -0
- package/src/api/webcontents/main.d.ts +890 -0
- package/src/api/webcontents/main.js +890 -0
- package/src/api/window/Factory.d.ts +67 -16
- package/src/api/window/Factory.js +67 -16
- package/src/api/window/Instance.d.ts +824 -316
- package/src/api/window/Instance.js +822 -320
- package/src/api/window/index.d.ts +11 -0
- package/src/api/window/index.js +11 -0
- package/src/namespaces.d.ts +1 -0
- package/src/namespaces.js +3 -1
- package/src/shapes/protocol.d.ts +4 -0
- package/openfin-core-33.76.27.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
|
|
10
|
-
*
|
|
11
|
-
* @
|
|
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
|
|
19
|
-
*
|
|
20
|
-
* @
|
|
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
|
|
28
|
-
*
|
|
29
|
-
* @
|
|
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
|
-
*
|
|
37
|
-
* @
|
|
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
|
-
*
|
|
45
|
-
* @
|
|
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
|
*/
|
package/src/api/view/Factory.js
CHANGED
|
@@ -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
|
|
13
|
-
*
|
|
14
|
-
* @
|
|
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
|
|
37
|
-
*
|
|
38
|
-
* @
|
|
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
|
|
53
|
-
*
|
|
54
|
-
* @
|
|
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
|
-
*
|
|
71
|
-
* @
|
|
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
|
-
*
|
|
88
|
-
* @
|
|
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
|
*/
|