@openfin/remote-adapter 47.100.57 → 47.100.60

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.
@@ -6899,9 +6899,8 @@ _View_providerChannelClient = new WeakMap();
6899
6899
  * To be able to directly address this context for eventing and messaging purposes, it needs a
6900
6900
  * unique uuid name pairing. For OpenFin applications and windows this is provided via a configuration
6901
6901
  * object in the form of a manifest URL or options object, but there is no configuration object for iframes.
6902
- * Just as a call to window.open outside of our Window API returns a new window with a random GUID assigned
6903
- * for the name, each iframe that has the API injected will be assigned a GUID as its name, the UUID will be
6904
- * the same as the parent window's.
6902
+ * Each iframe that has the API injected is named by its frame token, which is unique within the runtime, and
6903
+ * its UUID is the same as the parent window's.
6905
6904
  *
6906
6905
  * The fin.Frame namespace represents a way to interact with `iframes` and facilitates the discovery of current context
6907
6906
  * (iframe or main window) as well as the ability to listen for {@link OpenFin.FrameEvents frame-specific events}.
@@ -14072,6 +14071,7 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
14072
14071
  * * layout-state-changed
14073
14072
  * * tab-closed
14074
14073
  * * tab-dropped
14074
+ * * tab-pinned-changed
14075
14075
  *
14076
14076
  * ### Layout DOM Node Events
14077
14077
  *
@@ -14146,6 +14146,21 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
14146
14146
  * url: "http://openfin.co" // The url of the view linked to the dropped tab.
14147
14147
  * }
14148
14148
  * ```
14149
+ *
14150
+ * #### tab-pinned-changed
14151
+ * Generated when a tab is pinned or unpinned via {@link Layout#setViewPinned setViewPinned}.
14152
+ * ```js
14153
+ * // The response has the following shape in event.detail:
14154
+ * {
14155
+ * containerSelector: "container-component_A",
14156
+ * name: "component_A",
14157
+ * tabSelector: "tab-component_A",
14158
+ * topic: "openfin-DOM-event",
14159
+ * type: "tab-pinned-changed",
14160
+ * uuid: "OpenFin POC",
14161
+ * pinned: true
14162
+ * }
14163
+ * ```
14149
14164
  */
14150
14165
  class Layout extends Base {
14151
14166
  /**
@@ -14433,6 +14448,33 @@ class Layout extends Base {
14433
14448
  });
14434
14449
  await __classPrivateFieldGet$9(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
14435
14450
  }
14451
+ /**
14452
+ * Pins or unpins a view's tab. When `pinned` is true, the tab moves to the leading pinned area of
14453
+ * its stack and snapshots record it as {@link OpenFin.LayoutComponent.pinned pinned: true}. When
14454
+ * false, it moves to the start of the unpinned tabs. Emits the layout DOM `tab-pinned-changed`
14455
+ * event when the pin state changes.
14456
+ *
14457
+ * @remarks Requires layout engine `'v2'` and `settings.tabOverflowBehavior: 'scroll'`.
14458
+ * Works whether or not `settings.allowUserPinning` is set. Throws if the view does not belong to this layout.
14459
+ *
14460
+ * @param viewIdentity - The identity of the view to pin or unpin.
14461
+ * @param pinned - `true` to pin; `false` to unpin.
14462
+ *
14463
+ * @example
14464
+ * ```js
14465
+ * const layout = fin.Platform.Layout.getCurrentSync();
14466
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, true);
14467
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, false);
14468
+ * ```
14469
+ * @experimental
14470
+ */
14471
+ async setViewPinned(viewIdentity, pinned) {
14472
+ this.wire.sendAction('layout-set-view-pinned').catch(() => {
14473
+ // don't expose
14474
+ });
14475
+ const client = await __classPrivateFieldGet$9(this, _Layout_layoutClient, "f").getValue();
14476
+ await client.setViewPinned(viewIdentity, pinned, 'layoutName' in this.identity ? this.identity : undefined);
14477
+ }
14436
14478
  }
14437
14479
  _Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
14438
14480
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "47.100.57",
3
+ "version": "47.100.60",
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.57"
19
+ "@openfin/core": "47.100.60"
20
20
  },
21
21
  "scripts": {
22
22
  "prebuild": "rimraf ./out",