@openfin/remote-adapter 40.82.16 → 40.82.17
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 +15 -7
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -9712,11 +9712,8 @@ function requireInstance () {
|
|
|
9712
9712
|
// don't expose
|
|
9713
9713
|
});
|
|
9714
9714
|
try {
|
|
9715
|
-
const
|
|
9716
|
-
|
|
9717
|
-
const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindow.identity);
|
|
9718
|
-
const stackDefinition = (await client.getStackByView(this.identity));
|
|
9719
|
-
return layout_entities_1.LayoutNode.getEntity(stackDefinition, client);
|
|
9715
|
+
const layout = await this.getParentLayout();
|
|
9716
|
+
return layout.getStackByView(this.identity);
|
|
9720
9717
|
}
|
|
9721
9718
|
catch (error) {
|
|
9722
9719
|
throw new transport_errors_1.RuntimeError({ reason: 'This view does not belong to a stack.', error });
|
|
@@ -16509,6 +16506,17 @@ class Layout extends base_1$4.Base {
|
|
|
16509
16506
|
const root = await client.getRoot('layoutName' in this.identity ? this.identity : undefined);
|
|
16510
16507
|
return layout_entities_1.LayoutNode.getEntity(root, client);
|
|
16511
16508
|
}
|
|
16509
|
+
async getStackByView(identity) {
|
|
16510
|
+
this.wire.sendAction('layout-get-stack-by-view').catch(() => {
|
|
16511
|
+
// don't expose
|
|
16512
|
+
});
|
|
16513
|
+
const client = await __classPrivateFieldGet$2(this, _Layout_layoutClient, "f").getValue();
|
|
16514
|
+
const stack = await client.getStackByView(identity);
|
|
16515
|
+
if (!stack) {
|
|
16516
|
+
throw new Error(`No stack found for view: ${identity.uuid}/${identity.name}`);
|
|
16517
|
+
}
|
|
16518
|
+
return layout_entities_1.LayoutNode.getEntity(stack, client);
|
|
16519
|
+
}
|
|
16512
16520
|
}
|
|
16513
16521
|
Instance$1.Layout = Layout;
|
|
16514
16522
|
_Layout_layoutClient = new WeakMap();
|
|
@@ -16702,7 +16710,7 @@ class LayoutModule extends base_1$3.Base {
|
|
|
16702
16710
|
this.wire.sendAction('layout-get-current').catch((e) => {
|
|
16703
16711
|
// don't expose
|
|
16704
16712
|
});
|
|
16705
|
-
if (!this.fin.me.isWindow) {
|
|
16713
|
+
if (this.wire.environment.type === 'openfin' && !this.fin.me.isWindow) {
|
|
16706
16714
|
throw new Error('You are not in a Window context. Only Windows can have a Layout.');
|
|
16707
16715
|
}
|
|
16708
16716
|
const { uuid, name } = this.fin.me;
|
|
@@ -16725,7 +16733,7 @@ class LayoutModule extends base_1$3.Base {
|
|
|
16725
16733
|
this.wire.sendAction('layout-get-current-sync').catch((e) => {
|
|
16726
16734
|
// don't expose
|
|
16727
16735
|
});
|
|
16728
|
-
if (!this.fin.me.isWindow) {
|
|
16736
|
+
if (this.wire.environment.type === 'openfin' && !this.fin.me.isWindow) {
|
|
16729
16737
|
throw new Error('You are not in a Window context. Only Windows can have a Layout.');
|
|
16730
16738
|
}
|
|
16731
16739
|
const { uuid, name } = this.fin.me;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "40.82.
|
|
3
|
+
"version": "40.82.17",
|
|
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.17"
|
|
23
23
|
}
|
|
24
24
|
}
|