@openfin/core 34.78.20 → 34.78.22

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
@@ -37,6 +37,11 @@ Object.defineProperty(application$1, "__esModule", { value: true });
37
37
 
38
38
  var base$1 = {};
39
39
 
40
+ /**
41
+ * Namespace for shared event payloads and utility types common to all event emitters.
42
+ *
43
+ * @packageDocumentation
44
+ */
40
45
  Object.defineProperty(base$1, "__esModule", { value: true });
41
46
 
42
47
  var externalApplication$1 = {};
@@ -12852,6 +12857,25 @@ class Layout extends base_1$6.Base {
12852
12857
  target: this.identity
12853
12858
  });
12854
12859
  }
12860
+ /**
12861
+ * Retrieves the attached views in current window layout.
12862
+ *
12863
+ * @example
12864
+ * ```js
12865
+ * const layout = fin.Platform.Layout.getCurrentSync();
12866
+ * const views = await layout.getCurrentViews();
12867
+ * ```
12868
+ */
12869
+ async getCurrentViews() {
12870
+ this.wire.sendAction('layout-get-views').catch((e) => {
12871
+ // don't expose
12872
+ });
12873
+ const client = await this.platform.getClient();
12874
+ const viewIdentities = await client.dispatch('get-layout-views', {
12875
+ target: this.identity
12876
+ });
12877
+ return viewIdentities.map((identity) => this.fin.View.wrapSync(identity));
12878
+ }
12855
12879
  /**
12856
12880
  * Retrieves the top level content item of the layout.
12857
12881
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "34.78.20",
3
+ "version": "34.78.22",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "main": "out/mock.js",