@openfin/node-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.
@@ -10028,9 +10028,8 @@ class ExternalApplicationModule extends Base {
10028
10028
  * To be able to directly address this context for eventing and messaging purposes, it needs a
10029
10029
  * unique uuid name pairing. For OpenFin applications and windows this is provided via a configuration
10030
10030
  * object in the form of a manifest URL or options object, but there is no configuration object for iframes.
10031
- * Just as a call to window.open outside of our Window API returns a new window with a random GUID assigned
10032
- * for the name, each iframe that has the API injected will be assigned a GUID as its name, the UUID will be
10033
- * the same as the parent window's.
10031
+ * Each iframe that has the API injected is named by its frame token, which is unique within the runtime, and
10032
+ * its UUID is the same as the parent window's.
10034
10033
  *
10035
10034
  * The fin.Frame namespace represents a way to interact with `iframes` and facilitates the discovery of current context
10036
10035
  * (iframe or main window) as well as the ability to listen for {@link OpenFin.FrameEvents frame-specific events}.
@@ -11675,6 +11674,7 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
11675
11674
  * * layout-state-changed
11676
11675
  * * tab-closed
11677
11676
  * * tab-dropped
11677
+ * * tab-pinned-changed
11678
11678
  *
11679
11679
  * ### Layout DOM Node Events
11680
11680
  *
@@ -11749,6 +11749,21 @@ var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
11749
11749
  * url: "http://openfin.co" // The url of the view linked to the dropped tab.
11750
11750
  * }
11751
11751
  * ```
11752
+ *
11753
+ * #### tab-pinned-changed
11754
+ * Generated when a tab is pinned or unpinned via {@link Layout#setViewPinned setViewPinned}.
11755
+ * ```js
11756
+ * // The response has the following shape in event.detail:
11757
+ * {
11758
+ * containerSelector: "container-component_A",
11759
+ * name: "component_A",
11760
+ * tabSelector: "tab-component_A",
11761
+ * topic: "openfin-DOM-event",
11762
+ * type: "tab-pinned-changed",
11763
+ * uuid: "OpenFin POC",
11764
+ * pinned: true
11765
+ * }
11766
+ * ```
11752
11767
  */
11753
11768
  class Layout extends Base {
11754
11769
  /**
@@ -12036,6 +12051,33 @@ class Layout extends Base {
12036
12051
  });
12037
12052
  await __classPrivateFieldGet$b(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
12038
12053
  }
12054
+ /**
12055
+ * Pins or unpins a view's tab. When `pinned` is true, the tab moves to the leading pinned area of
12056
+ * its stack and snapshots record it as {@link OpenFin.LayoutComponent.pinned pinned: true}. When
12057
+ * false, it moves to the start of the unpinned tabs. Emits the layout DOM `tab-pinned-changed`
12058
+ * event when the pin state changes.
12059
+ *
12060
+ * @remarks Requires layout engine `'v2'` and `settings.tabOverflowBehavior: 'scroll'`.
12061
+ * Works whether or not `settings.allowUserPinning` is set. Throws if the view does not belong to this layout.
12062
+ *
12063
+ * @param viewIdentity - The identity of the view to pin or unpin.
12064
+ * @param pinned - `true` to pin; `false` to unpin.
12065
+ *
12066
+ * @example
12067
+ * ```js
12068
+ * const layout = fin.Platform.Layout.getCurrentSync();
12069
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, true);
12070
+ * await layout.setViewPinned({ uuid: fin.me.identity.uuid, name: 'my-view' }, false);
12071
+ * ```
12072
+ * @experimental
12073
+ */
12074
+ async setViewPinned(viewIdentity, pinned) {
12075
+ this.wire.sendAction('layout-set-view-pinned').catch(() => {
12076
+ // don't expose
12077
+ });
12078
+ const client = await __classPrivateFieldGet$b(this, _Layout_layoutClient, "f").getValue();
12079
+ await client.setViewPinned(viewIdentity, pinned, 'layoutName' in this.identity ? this.identity : undefined);
12080
+ }
12039
12081
  }
12040
12082
  _Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
12041
12083
  /**
@@ -17766,7 +17808,7 @@ class NodeEnvironment extends BaseEnvironment {
17766
17808
  };
17767
17809
  }
17768
17810
  getAdapterVersionSync() {
17769
- return "47.100.57";
17811
+ return "47.100.60";
17770
17812
  }
17771
17813
  observeBounds(element, onChange) {
17772
17814
  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.57",
3
+ "version": "47.100.60",
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.57"
23
+ "@openfin/core": "47.100.60"
24
24
  },
25
25
  "scripts": {
26
26
  "prebuild": "rimraf ./out",