@openfin/remote-adapter 46.100.95 → 46.100.97

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.
@@ -13918,6 +13918,7 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
13918
13918
  * * layout-state-changed
13919
13919
  * * tab-closed
13920
13920
  * * tab-dropped
13921
+ * * tab-pinned-changed
13921
13922
  *
13922
13923
  * ### Layout DOM Node Events
13923
13924
  *
@@ -13992,6 +13993,21 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
13992
13993
  * url: "http://openfin.co" // The url of the view linked to the dropped tab.
13993
13994
  * }
13994
13995
  * ```
13996
+ *
13997
+ * #### tab-pinned-changed
13998
+ * Generated when a tab is pinned or unpinned via {@link Layout#setViewPinned setViewPinned}.
13999
+ * ```js
14000
+ * // The response has the following shape in event.detail:
14001
+ * {
14002
+ * containerSelector: "container-component_A",
14003
+ * name: "component_A",
14004
+ * tabSelector: "tab-component_A",
14005
+ * topic: "openfin-DOM-event",
14006
+ * type: "tab-pinned-changed",
14007
+ * uuid: "OpenFin POC",
14008
+ * pinned: true
14009
+ * }
14010
+ * ```
13995
14011
  */
13996
14012
  class Layout extends Base {
13997
14013
  /**
@@ -14279,6 +14295,33 @@ class Layout extends Base {
14279
14295
  });
14280
14296
  await __classPrivateFieldGet$9(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
14281
14297
  }
14298
+ /**
14299
+ * Pins or unpins a view's tab. When `pinned` is true, the tab moves to the leading pinned area of
14300
+ * its stack and snapshots record it as {@link OpenFin.LayoutComponent.pinned pinned: true}. When
14301
+ * false, it moves to the start of the unpinned tabs. Emits the layout DOM `tab-pinned-changed`
14302
+ * event when the pin state changes.
14303
+ *
14304
+ * @remarks Requires layout engine `'v2'` and `settings.tabOverflowBehavior: 'scroll'`.
14305
+ * Works whether or not `settings.allowUserPinning` is set. Throws if the view does not belong to this layout.
14306
+ *
14307
+ * @param viewIdentity - The identity of the view to pin or unpin.
14308
+ * @param pinned - `true` to pin; `false` to unpin.
14309
+ *
14310
+ * @example
14311
+ * ```js
14312
+ * const layout = fin.Platform.Layout.getCurrentSync();
14313
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, true);
14314
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, false);
14315
+ * ```
14316
+ * @experimental
14317
+ */
14318
+ async setViewPinned(viewIdentity, pinned) {
14319
+ this.wire.sendAction('layout-set-view-pinned').catch(() => {
14320
+ // don't expose
14321
+ });
14322
+ const client = await __classPrivateFieldGet$9(this, _Layout_layoutClient, "f").getValue();
14323
+ await client.setViewPinned(viewIdentity, pinned, 'layoutName' in this.identity ? this.identity : undefined);
14324
+ }
14282
14325
  }
14283
14326
  _Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
14284
14327
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "46.100.95",
3
+ "version": "46.100.97",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "es-toolkit": "^1.39.3",
18
18
  "tslib": "2.8.1",
19
- "@openfin/core": "46.100.95"
19
+ "@openfin/core": "46.100.97"
20
20
  },
21
21
  "scripts": {
22
22
  "prebuild": "rimraf ./out",