@openfin/remote-adapter 43.100.23 → 43.100.27
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/out/remote-adapter.js +34 -0
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -5131,6 +5131,37 @@ function requireInstance$1 () {
|
|
|
5131
5131
|
getAllFrames() {
|
|
5132
5132
|
return this.wire.sendAction('get-all-frames', this.identity).then(({ payload }) => payload.data);
|
|
5133
5133
|
}
|
|
5134
|
+
/**
|
|
5135
|
+
* Activates the current window and focuses the child entity if it exists. If this does
|
|
5136
|
+
* not succeed - say the child does not belong to this window, or the identity does not exist -
|
|
5137
|
+
* it will return false.
|
|
5138
|
+
*
|
|
5139
|
+
* @example
|
|
5140
|
+
* ```js
|
|
5141
|
+
* const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
|
|
5142
|
+
*
|
|
5143
|
+
* win.getCurrentViews()
|
|
5144
|
+
* .then(([view1]) => {
|
|
5145
|
+
* return win.activateAndFocus(view1.identity);
|
|
5146
|
+
* })
|
|
5147
|
+
* .then(success => {
|
|
5148
|
+
* if (success) {
|
|
5149
|
+
* console.log('Window activated and child focused');
|
|
5150
|
+
* } else {
|
|
5151
|
+
* console.log('Window activation failed, focus state unchanged');
|
|
5152
|
+
* }
|
|
5153
|
+
* })
|
|
5154
|
+
* .catch(console.error);
|
|
5155
|
+
* ```
|
|
5156
|
+
*/
|
|
5157
|
+
activateAndFocus(childIdentityToFocus) {
|
|
5158
|
+
return this.wire
|
|
5159
|
+
.sendAction('activate-window-and-focus', {
|
|
5160
|
+
winIdentity: this.identity,
|
|
5161
|
+
focusIdentity: childIdentityToFocus
|
|
5162
|
+
})
|
|
5163
|
+
.then(({ payload }) => payload.data);
|
|
5164
|
+
}
|
|
5134
5165
|
/**
|
|
5135
5166
|
* Gets the current bounds (top, bottom, right, left, width, height) of the window.
|
|
5136
5167
|
*
|
|
@@ -6082,6 +6113,9 @@ function requireInstance$1 () {
|
|
|
6082
6113
|
* ```
|
|
6083
6114
|
*/
|
|
6084
6115
|
updateOptions(options) {
|
|
6116
|
+
if ('frame' in options) {
|
|
6117
|
+
console.warn(`Deprecation Warning: Starting with version 45 it will not be possible to change the frame value after window has been created.`);
|
|
6118
|
+
}
|
|
6085
6119
|
return this.wire.sendAction('update-window-options', { options, ...this.identity }).then(() => undefined);
|
|
6086
6120
|
}
|
|
6087
6121
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "43.100.
|
|
3
|
+
"version": "43.100.27",
|
|
4
4
|
"description": "Establish intermachine runtime connections using webRTC.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"private": false,
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"author": "OpenFin",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
|
-
"@openfin/core": "43.100.
|
|
23
|
+
"@openfin/core": "43.100.27"
|
|
24
24
|
}
|
|
25
25
|
}
|