@openfin/node-adapter 40.101.1 → 40.102.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3736,9 +3736,9 @@ function requireInstance () {
3736
3736
  * getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
3737
3737
  * ```
3738
3738
  */
3739
- getBounds() {
3739
+ getBounds(options) {
3740
3740
  return this.wire
3741
- .sendAction('get-window-bounds', this.identity)
3741
+ .sendAction('get-window-bounds', { ...this.identity, options })
3742
3742
  .then(({ payload }) => payload.data);
3743
3743
  }
3744
3744
  /**
@@ -11688,7 +11688,7 @@ const layout_constants_1$1 = layout_constants;
11688
11688
  *
11689
11689
  * @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
11690
11690
  *
11691
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener addEventListener(type, listener [, options]);}
11691
+ * #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
11692
11692
  * Adds a listener to the end of the listeners array for the specified event.
11693
11693
  * @example
11694
11694
  * ```js
@@ -11705,7 +11705,7 @@ const layout_constants_1$1 = layout_constants;
11705
11705
  * });
11706
11706
  * ```
11707
11707
  *
11708
- * #### {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener removeEventListener(type, listener [, options]);}
11708
+ * #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
11709
11709
  * Adds a listener to the end of the listeners array for the specified event.
11710
11710
  * @example
11711
11711
  * ```js
@@ -12056,7 +12056,7 @@ class Layout extends base_1$5.Base {
12056
12056
  return layout_entities_1.LayoutNode.getEntity(stack, client);
12057
12057
  }
12058
12058
  /**
12059
- * Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
12059
+ * Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
12060
12060
  *
12061
12061
  * @param viewOptions - The options for creating the view.
12062
12062
  * @param options - Optional parameters for adding the view.
@@ -12077,7 +12077,7 @@ class Layout extends base_1$5.Base {
12077
12077
  }
12078
12078
  /**
12079
12079
  * Closes a view by its identity. Throws an error if the view does not belong to the current layout.
12080
- * Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
12080
+ * Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
12081
12081
  *
12082
12082
  * @param viewIdentity - The identity of the view to close.
12083
12083
  * @returns A promise that resolves when the view is closed.
@@ -14449,31 +14449,6 @@ function requireInteropBroker () {
14449
14449
  if (!context.type) {
14450
14450
  return { isValid: false, reason: 'Context must have a type property' };
14451
14451
  }
14452
- if (context.id && typeof context.id !== 'object') {
14453
- return {
14454
- isValid: false,
14455
- reason: 'Context id must be an Object populated with key-value identifiers (if set)'
14456
- };
14457
- }
14458
- if (context.id) {
14459
- const { id } = context;
14460
- const keys = Object.keys(id);
14461
- let foundBadIdentifier = false;
14462
- if (!keys.length) {
14463
- return { isValid: false, reason: 'Context id must have at least one key-value identifier' };
14464
- }
14465
- keys.forEach((key) => {
14466
- if (typeof key !== 'string' || typeof id[key] !== 'string') {
14467
- foundBadIdentifier = true;
14468
- }
14469
- });
14470
- if (foundBadIdentifier) {
14471
- return { isValid: false, reason: 'Context id key-value identifiers must be of type string' };
14472
- }
14473
- }
14474
- if (context.name && typeof context.name !== 'string') {
14475
- return { isValid: false, reason: 'Context name must be of string type (if set)' };
14476
- }
14477
14452
  return { isValid: true };
14478
14453
  }
14479
14454
  // Util to check a client identity.
@@ -17787,7 +17762,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
17787
17762
  };
17788
17763
  }
17789
17764
  getAdapterVersionSync() {
17790
- return "40.101.1";
17765
+ return "40.102.1";
17791
17766
  }
17792
17767
  observeBounds(element, onChange) {
17793
17768
  throw new Error('Method not implemented.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "40.101.1",
3
+ "version": "40.102.1",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",
@@ -24,7 +24,7 @@
24
24
  "author": "OpenFin",
25
25
  "dependencies": {
26
26
  "@types/node": "^20.14.2",
27
- "@openfin/core": "40.101.1",
27
+ "@openfin/core": "40.102.1",
28
28
  "lodash": "^4.17.21",
29
29
  "ws": "^7.3.0"
30
30
  }