@openfin/remote-adapter 40.82.21 → 40.82.23
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 +44 -2
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -16132,7 +16132,7 @@ var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
16132
16132
|
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");
|
|
16133
16133
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
16134
16134
|
};
|
|
16135
|
-
var _Layout_layoutClient;
|
|
16135
|
+
var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
|
|
16136
16136
|
Object.defineProperty(Instance$1, "__esModule", { value: true });
|
|
16137
16137
|
Instance$1.Layout = void 0;
|
|
16138
16138
|
const lazy_1 = lazy;
|
|
@@ -16286,6 +16286,7 @@ class Layout extends base_1$4.Base {
|
|
|
16286
16286
|
// eslint-disable-next-line no-shadow
|
|
16287
16287
|
constructor(identity, wire) {
|
|
16288
16288
|
super(wire);
|
|
16289
|
+
_Layout_instances.add(this);
|
|
16289
16290
|
/**
|
|
16290
16291
|
* @internal
|
|
16291
16292
|
* Lazily constructed {@link LayoutEntitiesClient} bound to this platform's client and identity
|
|
@@ -16525,9 +16526,50 @@ class Layout extends base_1$4.Base {
|
|
|
16525
16526
|
}
|
|
16526
16527
|
return layout_entities_1.LayoutNode.getEntity(stack, client);
|
|
16527
16528
|
}
|
|
16529
|
+
/**
|
|
16530
|
+
* Adds a view to the platform layout. Behaves like @link{Platform#createView} with the current layout as the target.
|
|
16531
|
+
*
|
|
16532
|
+
* @param viewOptions - The options for creating the view.
|
|
16533
|
+
* @param options - Optional parameters for adding the view.
|
|
16534
|
+
* @param options.location - The location where the view should be added.
|
|
16535
|
+
* @param options.targetView - The target view to which the new view should be added.
|
|
16536
|
+
* @returns A promise that resolves to an object containing the identity of the added view.
|
|
16537
|
+
*/
|
|
16538
|
+
async addView(viewOptions, { location, targetView } = {}) {
|
|
16539
|
+
this.wire.sendAction('layout-add-view').catch((e) => {
|
|
16540
|
+
// don't expose
|
|
16541
|
+
});
|
|
16542
|
+
const { identity } = await __classPrivateFieldGet$2(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
|
|
16543
|
+
viewOptions,
|
|
16544
|
+
location,
|
|
16545
|
+
targetView
|
|
16546
|
+
});
|
|
16547
|
+
return { identity };
|
|
16548
|
+
}
|
|
16549
|
+
/**
|
|
16550
|
+
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
16551
|
+
* Behaves like @link{Platform#closeView} but only closes the view if it belongs the current layout.
|
|
16552
|
+
*
|
|
16553
|
+
* @param viewIdentity - The identity of the view to close.
|
|
16554
|
+
* @returns A promise that resolves when the view is closed.
|
|
16555
|
+
*/
|
|
16556
|
+
async closeView(viewIdentity) {
|
|
16557
|
+
this.wire.sendAction('layout-close-view').catch((e) => {
|
|
16558
|
+
// don't expose
|
|
16559
|
+
});
|
|
16560
|
+
await __classPrivateFieldGet$2(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
|
|
16561
|
+
}
|
|
16528
16562
|
}
|
|
16529
16563
|
Instance$1.Layout = Layout;
|
|
16530
|
-
_Layout_layoutClient = new WeakMap()
|
|
16564
|
+
_Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
|
|
16565
|
+
/**
|
|
16566
|
+
* @internal
|
|
16567
|
+
* Use to type-guard actions sent to the layout via the provider.
|
|
16568
|
+
*/
|
|
16569
|
+
async function _Layout_forwardLayoutAction(action, payload) {
|
|
16570
|
+
const client = await this.platform.getClient();
|
|
16571
|
+
return client.dispatch(action, { target: this.identity, opts: payload });
|
|
16572
|
+
};
|
|
16531
16573
|
|
|
16532
16574
|
var __classPrivateFieldGet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
16533
16575
|
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": "40.82.
|
|
3
|
+
"version": "40.82.23",
|
|
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": "40.82.
|
|
22
|
+
"@openfin/core": "40.82.23"
|
|
23
23
|
}
|
|
24
24
|
}
|