@openfin/node-adapter 47.100.56 → 47.100.59

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.
@@ -11675,6 +11675,7 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
11675
11675
  * * layout-state-changed
11676
11676
  * * tab-closed
11677
11677
  * * tab-dropped
11678
+ * * tab-pinned-changed
11678
11679
  *
11679
11680
  * ### Layout DOM Node Events
11680
11681
  *
@@ -11749,6 +11750,21 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
11749
11750
  * url: "http://openfin.co" // The url of the view linked to the dropped tab.
11750
11751
  * }
11751
11752
  * ```
11753
+ *
11754
+ * #### tab-pinned-changed
11755
+ * Generated when a tab is pinned or unpinned via {@link Layout#setViewPinned setViewPinned}.
11756
+ * ```js
11757
+ * // The response has the following shape in event.detail:
11758
+ * {
11759
+ * containerSelector: "container-component_A",
11760
+ * name: "component_A",
11761
+ * tabSelector: "tab-component_A",
11762
+ * topic: "openfin-DOM-event",
11763
+ * type: "tab-pinned-changed",
11764
+ * uuid: "OpenFin POC",
11765
+ * pinned: true
11766
+ * }
11767
+ * ```
11752
11768
  */
11753
11769
  class Layout extends Base {
11754
11770
  /**
@@ -12036,6 +12052,33 @@ class Layout extends Base {
12036
12052
  });
12037
12053
  await __classPrivateFieldGet$b(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
12038
12054
  }
12055
+ /**
12056
+ * Pins or unpins a view's tab. When `pinned` is true, the tab moves to the leading pinned area of
12057
+ * its stack and snapshots record it as {@link OpenFin.LayoutComponent.pinned pinned: true}. When
12058
+ * false, it moves to the start of the unpinned tabs. Emits the layout DOM `tab-pinned-changed`
12059
+ * event when the pin state changes.
12060
+ *
12061
+ * @remarks Requires layout engine `'v2'` and `settings.tabOverflowBehavior: 'scroll'`.
12062
+ * Works whether or not `settings.allowUserPinning` is set. Throws if the view does not belong to this layout.
12063
+ *
12064
+ * @param viewIdentity - The identity of the view to pin or unpin.
12065
+ * @param pinned - `true` to pin; `false` to unpin.
12066
+ *
12067
+ * @example
12068
+ * ```js
12069
+ * const layout = fin.Platform.Layout.getCurrentSync();
12070
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, true);
12071
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, false);
12072
+ * ```
12073
+ * @experimental
12074
+ */
12075
+ async setViewPinned(viewIdentity, pinned) {
12076
+ this.wire.sendAction('layout-set-view-pinned').catch(() => {
12077
+ // don't expose
12078
+ });
12079
+ const client = await __classPrivateFieldGet$b(this, _Layout_layoutClient, "f").getValue();
12080
+ await client.setViewPinned(viewIdentity, pinned, 'layoutName' in this.identity ? this.identity : undefined);
12081
+ }
12039
12082
  }
12040
12083
  _Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
12041
12084
  /**
@@ -17766,7 +17809,7 @@ class NodeEnvironment extends BaseEnvironment {
17766
17809
  };
17767
17810
  }
17768
17811
  getAdapterVersionSync() {
17769
- return "47.100.56";
17812
+ return "47.100.59";
17770
17813
  }
17771
17814
  observeBounds(element, onChange) {
17772
17815
  throw new Error('Method not implemented.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "47.100.56",
3
+ "version": "47.100.59",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",
@@ -20,7 +20,7 @@
20
20
  "es-toolkit": "^1.39.3",
21
21
  "ws": "^7.5.11",
22
22
  "tslib": "2.8.1",
23
- "@openfin/core": "47.100.56"
23
+ "@openfin/core": "47.100.59"
24
24
  },
25
25
  "scripts": {
26
26
  "prebuild": "rimraf ./out",