@openfin/node-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.
- package/out/node-adapter.js +14 -32
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
@@ -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
|
/**
|
@@ -6958,6 +6958,13 @@ class System extends base_1$i.EmitterBase {
|
|
6958
6958
|
const { payload } = await this.wire.sendAction('get-installed-extensions');
|
6959
6959
|
return payload.data;
|
6960
6960
|
}
|
6961
|
+
/**
|
6962
|
+
* Used to serve an asset signed by OpenFin within the given runtime.
|
6963
|
+
* Not indended for general use, will be used by the `@openfin/workspace-platform` package.
|
6964
|
+
*/
|
6965
|
+
async serveAsset(options) {
|
6966
|
+
return (await this.wire.sendAction('serve-asset', { options })).payload.data;
|
6967
|
+
}
|
6961
6968
|
}
|
6962
6969
|
system.System = System;
|
6963
6970
|
|
@@ -11681,7 +11688,7 @@ const layout_constants_1$1 = layout_constants;
|
|
11681
11688
|
*
|
11682
11689
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
11683
11690
|
*
|
11684
|
-
* ####
|
11691
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
11685
11692
|
* Adds a listener to the end of the listeners array for the specified event.
|
11686
11693
|
* @example
|
11687
11694
|
* ```js
|
@@ -11698,7 +11705,7 @@ const layout_constants_1$1 = layout_constants;
|
|
11698
11705
|
* });
|
11699
11706
|
* ```
|
11700
11707
|
*
|
11701
|
-
* ####
|
11708
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
11702
11709
|
* Adds a listener to the end of the listeners array for the specified event.
|
11703
11710
|
* @example
|
11704
11711
|
* ```js
|
@@ -12049,7 +12056,7 @@ class Layout extends base_1$5.Base {
|
|
12049
12056
|
return layout_entities_1.LayoutNode.getEntity(stack, client);
|
12050
12057
|
}
|
12051
12058
|
/**
|
12052
|
-
* Adds a view to the platform layout. Behaves like @link
|
12059
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
12053
12060
|
*
|
12054
12061
|
* @param viewOptions - The options for creating the view.
|
12055
12062
|
* @param options - Optional parameters for adding the view.
|
@@ -12070,7 +12077,7 @@ class Layout extends base_1$5.Base {
|
|
12070
12077
|
}
|
12071
12078
|
/**
|
12072
12079
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
12073
|
-
* Behaves like @link
|
12080
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
12074
12081
|
*
|
12075
12082
|
* @param viewIdentity - The identity of the view to close.
|
12076
12083
|
* @returns A promise that resolves when the view is closed.
|
@@ -14442,31 +14449,6 @@ function requireInteropBroker () {
|
|
14442
14449
|
if (!context.type) {
|
14443
14450
|
return { isValid: false, reason: 'Context must have a type property' };
|
14444
14451
|
}
|
14445
|
-
if (context.id && typeof context.id !== 'object') {
|
14446
|
-
return {
|
14447
|
-
isValid: false,
|
14448
|
-
reason: 'Context id must be an Object populated with key-value identifiers (if set)'
|
14449
|
-
};
|
14450
|
-
}
|
14451
|
-
if (context.id) {
|
14452
|
-
const { id } = context;
|
14453
|
-
const keys = Object.keys(id);
|
14454
|
-
let foundBadIdentifier = false;
|
14455
|
-
if (!keys.length) {
|
14456
|
-
return { isValid: false, reason: 'Context id must have at least one key-value identifier' };
|
14457
|
-
}
|
14458
|
-
keys.forEach((key) => {
|
14459
|
-
if (typeof key !== 'string' || typeof id[key] !== 'string') {
|
14460
|
-
foundBadIdentifier = true;
|
14461
|
-
}
|
14462
|
-
});
|
14463
|
-
if (foundBadIdentifier) {
|
14464
|
-
return { isValid: false, reason: 'Context id key-value identifiers must be of type string' };
|
14465
|
-
}
|
14466
|
-
}
|
14467
|
-
if (context.name && typeof context.name !== 'string') {
|
14468
|
-
return { isValid: false, reason: 'Context name must be of string type (if set)' };
|
14469
|
-
}
|
14470
14452
|
return { isValid: true };
|
14471
14453
|
}
|
14472
14454
|
// Util to check a client identity.
|
@@ -17780,7 +17762,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
|
|
17780
17762
|
};
|
17781
17763
|
}
|
17782
17764
|
getAdapterVersionSync() {
|
17783
|
-
return "40.
|
17765
|
+
return "40.102.1";
|
17784
17766
|
}
|
17785
17767
|
observeBounds(element, onChange) {
|
17786
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.
|
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.
|
27
|
+
"@openfin/core": "40.102.1",
|
28
28
|
"lodash": "^4.17.21",
|
29
29
|
"ws": "^7.3.0"
|
30
30
|
}
|