@openfin/node-adapter 46.100.94 → 46.100.96

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.
@@ -11521,6 +11521,7 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
11521
11521
  * * layout-state-changed
11522
11522
  * * tab-closed
11523
11523
  * * tab-dropped
11524
+ * * tab-pinned-changed
11524
11525
  *
11525
11526
  * ### Layout DOM Node Events
11526
11527
  *
@@ -11595,6 +11596,21 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
11595
11596
  * url: "http://openfin.co" // The url of the view linked to the dropped tab.
11596
11597
  * }
11597
11598
  * ```
11599
+ *
11600
+ * #### tab-pinned-changed
11601
+ * Generated when a tab is pinned or unpinned via {@link Layout#setViewPinned setViewPinned}.
11602
+ * ```js
11603
+ * // The response has the following shape in event.detail:
11604
+ * {
11605
+ * containerSelector: "container-component_A",
11606
+ * name: "component_A",
11607
+ * tabSelector: "tab-component_A",
11608
+ * topic: "openfin-DOM-event",
11609
+ * type: "tab-pinned-changed",
11610
+ * uuid: "OpenFin POC",
11611
+ * pinned: true
11612
+ * }
11613
+ * ```
11598
11614
  */
11599
11615
  class Layout extends Base {
11600
11616
  /**
@@ -11882,6 +11898,33 @@ class Layout extends Base {
11882
11898
  });
11883
11899
  await __classPrivateFieldGet$b(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
11884
11900
  }
11901
+ /**
11902
+ * Pins or unpins a view's tab. When `pinned` is true, the tab moves to the leading pinned area of
11903
+ * its stack and snapshots record it as {@link OpenFin.LayoutComponent.pinned pinned: true}. When
11904
+ * false, it moves to the start of the unpinned tabs. Emits the layout DOM `tab-pinned-changed`
11905
+ * event when the pin state changes.
11906
+ *
11907
+ * @remarks Requires layout engine `'v2'` and `settings.tabOverflowBehavior: 'scroll'`.
11908
+ * Works whether or not `settings.allowUserPinning` is set. Throws if the view does not belong to this layout.
11909
+ *
11910
+ * @param viewIdentity - The identity of the view to pin or unpin.
11911
+ * @param pinned - `true` to pin; `false` to unpin.
11912
+ *
11913
+ * @example
11914
+ * ```js
11915
+ * const layout = fin.Platform.Layout.getCurrentSync();
11916
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, true);
11917
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, false);
11918
+ * ```
11919
+ * @experimental
11920
+ */
11921
+ async setViewPinned(viewIdentity, pinned) {
11922
+ this.wire.sendAction('layout-set-view-pinned').catch(() => {
11923
+ // don't expose
11924
+ });
11925
+ const client = await __classPrivateFieldGet$b(this, _Layout_layoutClient, "f").getValue();
11926
+ await client.setViewPinned(viewIdentity, pinned, 'layoutName' in this.identity ? this.identity : undefined);
11927
+ }
11885
11928
  }
11886
11929
  _Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
11887
11930
  /**
@@ -17612,7 +17655,7 @@ class NodeEnvironment extends BaseEnvironment {
17612
17655
  };
17613
17656
  }
17614
17657
  getAdapterVersionSync() {
17615
- return "46.100.94";
17658
+ return "46.100.96";
17616
17659
  }
17617
17660
  observeBounds(element, onChange) {
17618
17661
  throw new Error('Method not implemented.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "46.100.94",
3
+ "version": "46.100.96",
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": "46.100.94"
23
+ "@openfin/core": "46.100.96"
24
24
  },
25
25
  "scripts": {
26
26
  "prebuild": "rimraf ./out",