@openfin/node-adapter 39.83.4 → 39.83.7
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 +62 -4
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
|
@@ -6811,6 +6811,22 @@ class System extends base_1$i.EmitterBase {
|
|
|
6811
6811
|
async setDomainSettings(domainSettings) {
|
|
6812
6812
|
await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
|
|
6813
6813
|
}
|
|
6814
|
+
/**
|
|
6815
|
+
* Attempts to install and enable extensions for the security realm. Users may want to call this function in response
|
|
6816
|
+
* to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
|
|
6817
|
+
* will be installed/enabled.
|
|
6818
|
+
*/
|
|
6819
|
+
async refreshExtensions() {
|
|
6820
|
+
const { payload } = await this.wire.sendAction('refresh-extensions');
|
|
6821
|
+
return payload.data;
|
|
6822
|
+
}
|
|
6823
|
+
/**
|
|
6824
|
+
* Gets the currently-installed
|
|
6825
|
+
*/
|
|
6826
|
+
async getInstalledExtensions() {
|
|
6827
|
+
const { payload } = await this.wire.sendAction('get-installed-extensions');
|
|
6828
|
+
return payload.data;
|
|
6829
|
+
}
|
|
6814
6830
|
}
|
|
6815
6831
|
system.System = System;
|
|
6816
6832
|
|
|
@@ -11447,7 +11463,7 @@ var __classPrivateFieldGet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
11447
11463
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11448
11464
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11449
11465
|
};
|
|
11450
|
-
var _Layout_layoutClient;
|
|
11466
|
+
var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
|
|
11451
11467
|
Object.defineProperty(Instance$1, "__esModule", { value: true });
|
|
11452
11468
|
Instance$1.Layout = void 0;
|
|
11453
11469
|
const lazy_1 = lazy;
|
|
@@ -11601,6 +11617,7 @@ class Layout extends base_1$5.Base {
|
|
|
11601
11617
|
// eslint-disable-next-line no-shadow
|
|
11602
11618
|
constructor(identity, wire) {
|
|
11603
11619
|
super(wire);
|
|
11620
|
+
_Layout_instances.add(this);
|
|
11604
11621
|
/**
|
|
11605
11622
|
* @internal
|
|
11606
11623
|
* Lazily constructed {@link LayoutEntitiesClient} bound to this platform's client and identity
|
|
@@ -11840,9 +11857,50 @@ class Layout extends base_1$5.Base {
|
|
|
11840
11857
|
}
|
|
11841
11858
|
return layout_entities_1.LayoutNode.getEntity(stack, client);
|
|
11842
11859
|
}
|
|
11860
|
+
/**
|
|
11861
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
11862
|
+
*
|
|
11863
|
+
* @param viewOptions - The options for creating the view.
|
|
11864
|
+
* @param options - Optional parameters for adding the view.
|
|
11865
|
+
* @param options.location - The location where the view should be added.
|
|
11866
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
11867
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
11868
|
+
*/
|
|
11869
|
+
async addView(viewOptions, { location, targetView } = {}) {
|
|
11870
|
+
this.wire.sendAction('layout-add-view').catch((e) => {
|
|
11871
|
+
// don't expose
|
|
11872
|
+
});
|
|
11873
|
+
const { identity } = await __classPrivateFieldGet$4(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
|
|
11874
|
+
viewOptions,
|
|
11875
|
+
location,
|
|
11876
|
+
targetView
|
|
11877
|
+
});
|
|
11878
|
+
return { identity };
|
|
11879
|
+
}
|
|
11880
|
+
/**
|
|
11881
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
11882
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
11883
|
+
*
|
|
11884
|
+
* @param viewIdentity - The identity of the view to close.
|
|
11885
|
+
* @returns A promise that resolves when the view is closed.
|
|
11886
|
+
*/
|
|
11887
|
+
async closeView(viewIdentity) {
|
|
11888
|
+
this.wire.sendAction('layout-close-view').catch((e) => {
|
|
11889
|
+
// don't expose
|
|
11890
|
+
});
|
|
11891
|
+
await __classPrivateFieldGet$4(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
|
|
11892
|
+
}
|
|
11843
11893
|
}
|
|
11844
11894
|
Instance$1.Layout = Layout;
|
|
11845
|
-
_Layout_layoutClient = new WeakMap()
|
|
11895
|
+
_Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
|
|
11896
|
+
/**
|
|
11897
|
+
* @internal
|
|
11898
|
+
* Use to type-guard actions sent to the layout via the provider.
|
|
11899
|
+
*/
|
|
11900
|
+
async function _Layout_forwardLayoutAction(action, payload) {
|
|
11901
|
+
const client = await this.platform.getClient();
|
|
11902
|
+
return client.dispatch(action, { target: this.identity, opts: payload });
|
|
11903
|
+
};
|
|
11846
11904
|
|
|
11847
11905
|
var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
11848
11906
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
@@ -17527,7 +17585,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
|
|
|
17527
17585
|
};
|
|
17528
17586
|
}
|
|
17529
17587
|
getAdapterVersionSync() {
|
|
17530
|
-
return "39.83.
|
|
17588
|
+
return "39.83.7";
|
|
17531
17589
|
}
|
|
17532
17590
|
observeBounds(element, onChange) {
|
|
17533
17591
|
throw new Error('Method not implemented.');
|
|
@@ -17968,7 +18026,7 @@ async function loadConfig(config) {
|
|
|
17968
18026
|
return await readLocalConfig(config.manifestUrl);
|
|
17969
18027
|
}
|
|
17970
18028
|
catch (error) {
|
|
17971
|
-
throw new Error(`Could not
|
|
18029
|
+
throw new Error(`Could not fetch and read local JSON at supplied manifestUrl: ${config.manifestUrl} Error caught: ${error.stack}`);
|
|
17972
18030
|
}
|
|
17973
18031
|
}
|
|
17974
18032
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/node-adapter",
|
|
3
|
-
"version": "39.83.
|
|
3
|
+
"version": "39.83.7",
|
|
4
4
|
"description": "See README.md",
|
|
5
5
|
"main": "out/node-adapter.js",
|
|
6
6
|
"types": "out/node-adapter.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"author": "OpenFin",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@types/node": "^20.14.2",
|
|
26
|
-
"@openfin/core": "39.83.
|
|
26
|
+
"@openfin/core": "39.83.7",
|
|
27
27
|
"lodash": "^4.17.21",
|
|
28
28
|
"ws": "^7.3.0"
|
|
29
29
|
}
|