@openfin/remote-adapter 40.100.7 → 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.
@@ -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
  /**
@@ -11851,6 +11826,13 @@ class System extends base_1$d.EmitterBase {
11851
11826
  const { payload } = await this.wire.sendAction('get-installed-extensions');
11852
11827
  return payload.data;
11853
11828
  }
11829
+ /**
11830
+ * Used to serve an asset signed by OpenFin within the given runtime.
11831
+ * Not indended for general use, will be used by the `@openfin/workspace-platform` package.
11832
+ */
11833
+ async serveAsset(options) {
11834
+ return (await this.wire.sendAction('serve-asset', { options })).payload.data;
11835
+ }
11854
11836
  }
11855
11837
  system.System = System;
11856
11838
 
@@ -16208,7 +16190,7 @@ const layout_constants_1$1 = layout_constants;
16208
16190
  *
16209
16191
  * @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
16210
16192
  *
16211
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
16193
+ * #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
16212
16194
  * Adds a listener to the end of the listeners array for the specified event.
16213
16195
  * @example
16214
16196
  * ```js
@@ -16225,7 +16207,7 @@ const layout_constants_1$1 = layout_constants;
16225
16207
  * });
16226
16208
  * ```
16227
16209
  *
16228
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
16210
+ * #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
16229
16211
  * Adds a listener to the end of the listeners array for the specified event.
16230
16212
  * @example
16231
16213
  * ```js
@@ -16576,7 +16558,7 @@ class Layout extends base_1$4.Base {
16576
16558
  return layout_entities_1.LayoutNode.getEntity(stack, client);
16577
16559
  }
16578
16560
  /**
16579
- * Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
16561
+ * Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
16580
16562
  *
16581
16563
  * @param viewOptions - The options for creating the view.
16582
16564
  * @param options - Optional parameters for adding the view.
@@ -16597,7 +16579,7 @@ class Layout extends base_1$4.Base {
16597
16579
  }
16598
16580
  /**
16599
16581
  * Closes a view by its identity. Throws an error if the view does not belong to the current layout.
16600
- * Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
16582
+ * Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
16601
16583
  *
16602
16584
  * @param viewIdentity - The identity of the view to close.
16603
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.100.7",
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.100.7"
23
+ "@openfin/core": "40.102.1"
24
24
  }
25
25
  }