@openfin/node-adapter 38.82.62 → 38.82.64

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.
@@ -2754,9 +2754,14 @@ function requireInstance$2 () {
2754
2754
  // don't expose
2755
2755
  });
2756
2756
  const layoutWindow = await this.getCurrentWindow();
2757
+ let layoutWindowIdentity = layoutWindow.identity;
2758
+ // TODO: CORE-1857 - when we tearout active layout or drag a view out of a window, the above identity includes the whole window info.
2759
+ if (layoutWindowIdentity.identity) {
2760
+ layoutWindowIdentity = layoutWindowIdentity.identity;
2761
+ }
2757
2762
  try {
2758
2763
  const providerChannelClient = await __classPrivateFieldGet(this, _View_providerChannelClient, "f").getValue();
2759
- const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindow.identity);
2764
+ const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindowIdentity);
2760
2765
  const layoutIdentity = await client.getLayoutIdentityForViewOrThrow(this.identity);
2761
2766
  return this.fin.Platform.Layout.wrap(layoutIdentity);
2762
2767
  }
@@ -2769,7 +2774,7 @@ function requireInstance$2 () {
2769
2774
  throw e;
2770
2775
  }
2771
2776
  // fallback logic for missing endpoint
2772
- return this.fin.Platform.Layout.wrap(layoutWindow.identity);
2777
+ return this.fin.Platform.Layout.wrap(layoutWindowIdentity);
2773
2778
  }
2774
2779
  };
2775
2780
  /**
@@ -17444,7 +17449,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
17444
17449
  };
17445
17450
  }
17446
17451
  getAdapterVersionSync() {
17447
- return "38.82.62";
17452
+ return "38.82.64";
17448
17453
  }
17449
17454
  observeBounds(element, onChange) {
17450
17455
  throw new Error('Method not implemented.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "38.82.62",
3
+ "version": "38.82.64",
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": "38.82.62",
26
+ "@openfin/core": "38.82.64",
27
27
  "lodash": "^4.17.21",
28
28
  "ws": "^7.3.0"
29
29
  }