@openfin/remote-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/remote-adapter.js +60 -2
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -11697,6 +11697,22 @@ class System extends base_1$d.EmitterBase {
|
|
|
11697
11697
|
async setDomainSettings(domainSettings) {
|
|
11698
11698
|
await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
|
|
11699
11699
|
}
|
|
11700
|
+
/**
|
|
11701
|
+
* Attempts to install and enable extensions for the security realm. Users may want to call this function in response
|
|
11702
|
+
* to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
|
|
11703
|
+
* will be installed/enabled.
|
|
11704
|
+
*/
|
|
11705
|
+
async refreshExtensions() {
|
|
11706
|
+
const { payload } = await this.wire.sendAction('refresh-extensions');
|
|
11707
|
+
return payload.data;
|
|
11708
|
+
}
|
|
11709
|
+
/**
|
|
11710
|
+
* Gets the currently-installed
|
|
11711
|
+
*/
|
|
11712
|
+
async getInstalledExtensions() {
|
|
11713
|
+
const { payload } = await this.wire.sendAction('get-installed-extensions');
|
|
11714
|
+
return payload.data;
|
|
11715
|
+
}
|
|
11700
11716
|
}
|
|
11701
11717
|
system.System = System;
|
|
11702
11718
|
|
|
@@ -15971,7 +15987,7 @@ var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
15971
15987
|
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");
|
|
15972
15988
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15973
15989
|
};
|
|
15974
|
-
var _Layout_layoutClient;
|
|
15990
|
+
var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
|
|
15975
15991
|
Object.defineProperty(Instance$1, "__esModule", { value: true });
|
|
15976
15992
|
Instance$1.Layout = void 0;
|
|
15977
15993
|
const lazy_1 = lazy;
|
|
@@ -16125,6 +16141,7 @@ class Layout extends base_1$4.Base {
|
|
|
16125
16141
|
// eslint-disable-next-line no-shadow
|
|
16126
16142
|
constructor(identity, wire) {
|
|
16127
16143
|
super(wire);
|
|
16144
|
+
_Layout_instances.add(this);
|
|
16128
16145
|
/**
|
|
16129
16146
|
* @internal
|
|
16130
16147
|
* Lazily constructed {@link LayoutEntitiesClient} bound to this platform's client and identity
|
|
@@ -16364,9 +16381,50 @@ class Layout extends base_1$4.Base {
|
|
|
16364
16381
|
}
|
|
16365
16382
|
return layout_entities_1.LayoutNode.getEntity(stack, client);
|
|
16366
16383
|
}
|
|
16384
|
+
/**
|
|
16385
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
16386
|
+
*
|
|
16387
|
+
* @param viewOptions - The options for creating the view.
|
|
16388
|
+
* @param options - Optional parameters for adding the view.
|
|
16389
|
+
* @param options.location - The location where the view should be added.
|
|
16390
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
16391
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
16392
|
+
*/
|
|
16393
|
+
async addView(viewOptions, { location, targetView } = {}) {
|
|
16394
|
+
this.wire.sendAction('layout-add-view').catch((e) => {
|
|
16395
|
+
// don't expose
|
|
16396
|
+
});
|
|
16397
|
+
const { identity } = await __classPrivateFieldGet$2(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
|
|
16398
|
+
viewOptions,
|
|
16399
|
+
location,
|
|
16400
|
+
targetView
|
|
16401
|
+
});
|
|
16402
|
+
return { identity };
|
|
16403
|
+
}
|
|
16404
|
+
/**
|
|
16405
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
16406
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
16407
|
+
*
|
|
16408
|
+
* @param viewIdentity - The identity of the view to close.
|
|
16409
|
+
* @returns A promise that resolves when the view is closed.
|
|
16410
|
+
*/
|
|
16411
|
+
async closeView(viewIdentity) {
|
|
16412
|
+
this.wire.sendAction('layout-close-view').catch((e) => {
|
|
16413
|
+
// don't expose
|
|
16414
|
+
});
|
|
16415
|
+
await __classPrivateFieldGet$2(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
|
|
16416
|
+
}
|
|
16367
16417
|
}
|
|
16368
16418
|
Instance$1.Layout = Layout;
|
|
16369
|
-
_Layout_layoutClient = new WeakMap()
|
|
16419
|
+
_Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
|
|
16420
|
+
/**
|
|
16421
|
+
* @internal
|
|
16422
|
+
* Use to type-guard actions sent to the layout via the provider.
|
|
16423
|
+
*/
|
|
16424
|
+
async function _Layout_forwardLayoutAction(action, payload) {
|
|
16425
|
+
const client = await this.platform.getClient();
|
|
16426
|
+
return client.dispatch(action, { target: this.identity, opts: payload });
|
|
16427
|
+
};
|
|
16370
16428
|
|
|
16371
16429
|
var __classPrivateFieldGet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
16372
16430
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "39.83.
|
|
3
|
+
"version": "39.83.7",
|
|
4
4
|
"description": "Establish intermachine runtime connections using webRTC.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"private": false,
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"author": "OpenFin",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
|
-
"@openfin/core": "39.83.
|
|
22
|
+
"@openfin/core": "39.83.7"
|
|
23
23
|
}
|
|
24
24
|
}
|