@openfin/remote-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.
@@ -14072,6 +14072,7 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
14072
14072
  * * layout-state-changed
14073
14073
  * * tab-closed
14074
14074
  * * tab-dropped
14075
+ * * tab-pinned-changed
14075
14076
  *
14076
14077
  * ### Layout DOM Node Events
14077
14078
  *
@@ -14146,6 +14147,21 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
14146
14147
  * url: "http://openfin.co" // The url of the view linked to the dropped tab.
14147
14148
  * }
14148
14149
  * ```
14150
+ *
14151
+ * #### tab-pinned-changed
14152
+ * Generated when a tab is pinned or unpinned via {@link Layout#setViewPinned setViewPinned}.
14153
+ * ```js
14154
+ * // The response has the following shape in event.detail:
14155
+ * {
14156
+ * containerSelector: "container-component_A",
14157
+ * name: "component_A",
14158
+ * tabSelector: "tab-component_A",
14159
+ * topic: "openfin-DOM-event",
14160
+ * type: "tab-pinned-changed",
14161
+ * uuid: "OpenFin POC",
14162
+ * pinned: true
14163
+ * }
14164
+ * ```
14149
14165
  */
14150
14166
  class Layout extends Base {
14151
14167
  /**
@@ -14433,6 +14449,33 @@ class Layout extends Base {
14433
14449
  });
14434
14450
  await __classPrivateFieldGet$9(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
14435
14451
  }
14452
+ /**
14453
+ * Pins or unpins a view's tab. When `pinned` is true, the tab moves to the leading pinned area of
14454
+ * its stack and snapshots record it as {@link OpenFin.LayoutComponent.pinned pinned: true}. When
14455
+ * false, it moves to the start of the unpinned tabs. Emits the layout DOM `tab-pinned-changed`
14456
+ * event when the pin state changes.
14457
+ *
14458
+ * @remarks Requires layout engine `'v2'` and `settings.tabOverflowBehavior: 'scroll'`.
14459
+ * Works whether or not `settings.allowUserPinning` is set. Throws if the view does not belong to this layout.
14460
+ *
14461
+ * @param viewIdentity - The identity of the view to pin or unpin.
14462
+ * @param pinned - `true` to pin; `false` to unpin.
14463
+ *
14464
+ * @example
14465
+ * ```js
14466
+ * const layout = fin.Platform.Layout.getCurrentSync();
14467
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, true);
14468
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, false);
14469
+ * ```
14470
+ * @experimental
14471
+ */
14472
+ async setViewPinned(viewIdentity, pinned) {
14473
+ this.wire.sendAction('layout-set-view-pinned').catch(() => {
14474
+ // don't expose
14475
+ });
14476
+ const client = await __classPrivateFieldGet$9(this, _Layout_layoutClient, "f").getValue();
14477
+ await client.setViewPinned(viewIdentity, pinned, 'layoutName' in this.identity ? this.identity : undefined);
14478
+ }
14436
14479
  }
14437
14480
  _Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
14438
14481
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "47.100.56",
3
+ "version": "47.100.59",
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": "47.100.56"
19
+ "@openfin/core": "47.100.59"
20
20
  },
21
21
  "scripts": {
22
22
  "prebuild": "rimraf ./out",