@openfin/remote-adapter 40.101.1 → 40.102.1
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 +6 -31
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -4044,31 +4044,6 @@ function requireInteropBroker () {
|
|
|
4044
4044
|
if (!context.type) {
|
|
4045
4045
|
return { isValid: false, reason: 'Context must have a type property' };
|
|
4046
4046
|
}
|
|
4047
|
-
if (context.id && typeof context.id !== 'object') {
|
|
4048
|
-
return {
|
|
4049
|
-
isValid: false,
|
|
4050
|
-
reason: 'Context id must be an Object populated with key-value identifiers (if set)'
|
|
4051
|
-
};
|
|
4052
|
-
}
|
|
4053
|
-
if (context.id) {
|
|
4054
|
-
const { id } = context;
|
|
4055
|
-
const keys = Object.keys(id);
|
|
4056
|
-
let foundBadIdentifier = false;
|
|
4057
|
-
if (!keys.length) {
|
|
4058
|
-
return { isValid: false, reason: 'Context id must have at least one key-value identifier' };
|
|
4059
|
-
}
|
|
4060
|
-
keys.forEach((key) => {
|
|
4061
|
-
if (typeof key !== 'string' || typeof id[key] !== 'string') {
|
|
4062
|
-
foundBadIdentifier = true;
|
|
4063
|
-
}
|
|
4064
|
-
});
|
|
4065
|
-
if (foundBadIdentifier) {
|
|
4066
|
-
return { isValid: false, reason: 'Context id key-value identifiers must be of type string' };
|
|
4067
|
-
}
|
|
4068
|
-
}
|
|
4069
|
-
if (context.name && typeof context.name !== 'string') {
|
|
4070
|
-
return { isValid: false, reason: 'Context name must be of string type (if set)' };
|
|
4071
|
-
}
|
|
4072
4047
|
return { isValid: true };
|
|
4073
4048
|
}
|
|
4074
4049
|
// Util to check a client identity.
|
|
@@ -7257,9 +7232,9 @@ function requireInstance$1 () {
|
|
|
7257
7232
|
* getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
|
|
7258
7233
|
* ```
|
|
7259
7234
|
*/
|
|
7260
|
-
getBounds() {
|
|
7235
|
+
getBounds(options) {
|
|
7261
7236
|
return this.wire
|
|
7262
|
-
.sendAction('get-window-bounds', this.identity)
|
|
7237
|
+
.sendAction('get-window-bounds', { ...this.identity, options })
|
|
7263
7238
|
.then(({ payload }) => payload.data);
|
|
7264
7239
|
}
|
|
7265
7240
|
/**
|
|
@@ -16215,7 +16190,7 @@ const layout_constants_1$1 = layout_constants;
|
|
|
16215
16190
|
*
|
|
16216
16191
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
|
16217
16192
|
*
|
|
16218
|
-
* ####
|
|
16193
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
|
16219
16194
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
16220
16195
|
* @example
|
|
16221
16196
|
* ```js
|
|
@@ -16232,7 +16207,7 @@ const layout_constants_1$1 = layout_constants;
|
|
|
16232
16207
|
* });
|
|
16233
16208
|
* ```
|
|
16234
16209
|
*
|
|
16235
|
-
* ####
|
|
16210
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
|
16236
16211
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
16237
16212
|
* @example
|
|
16238
16213
|
* ```js
|
|
@@ -16583,7 +16558,7 @@ class Layout extends base_1$4.Base {
|
|
|
16583
16558
|
return layout_entities_1.LayoutNode.getEntity(stack, client);
|
|
16584
16559
|
}
|
|
16585
16560
|
/**
|
|
16586
|
-
* Adds a view to the platform layout. Behaves like @link
|
|
16561
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
|
16587
16562
|
*
|
|
16588
16563
|
* @param viewOptions - The options for creating the view.
|
|
16589
16564
|
* @param options - Optional parameters for adding the view.
|
|
@@ -16604,7 +16579,7 @@ class Layout extends base_1$4.Base {
|
|
|
16604
16579
|
}
|
|
16605
16580
|
/**
|
|
16606
16581
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
16607
|
-
* Behaves like @link
|
|
16582
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
|
16608
16583
|
*
|
|
16609
16584
|
* @param viewIdentity - The identity of the view to close.
|
|
16610
16585
|
* @returns A promise that resolves when the view is closed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "40.
|
|
3
|
+
"version": "40.102.1",
|
|
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": "40.
|
|
23
|
+
"@openfin/core": "40.102.1"
|
|
24
24
|
}
|
|
25
25
|
}
|