@openfin/core 34.78.20 → 34.78.21

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/mock.js CHANGED
@@ -12852,6 +12852,25 @@ class Layout extends base_1$6.Base {
12852
12852
  target: this.identity
12853
12853
  });
12854
12854
  }
12855
+ /**
12856
+ * Retrieves the attached views in current window layout.
12857
+ *
12858
+ * @example
12859
+ * ```js
12860
+ * const layout = fin.Platform.Layout.getCurrentSync();
12861
+ * const views = await layout.getCurrentViews();
12862
+ * ```
12863
+ */
12864
+ async getCurrentViews() {
12865
+ this.wire.sendAction('layout-get-views').catch((e) => {
12866
+ // don't expose
12867
+ });
12868
+ const client = await this.platform.getClient();
12869
+ const viewIdentities = await client.dispatch('get-layout-views', {
12870
+ target: this.identity
12871
+ });
12872
+ return viewIdentities.map((identity) => this.fin.View.wrapSync(identity));
12873
+ }
12855
12874
  /**
12856
12875
  * Retrieves the top level content item of the layout.
12857
12876
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "34.78.20",
3
+ "version": "34.78.21",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "main": "out/mock.js",