@openfin/node-adapter 34.78.25 → 34.78.26

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.
@@ -8324,7 +8324,7 @@ declare class LayoutManager {
8324
8324
  private setupWindowListeners;
8325
8325
  private setupResizeObservers;
8326
8326
  /**
8327
- * Shows/hides a view depending on use case
8327
+ * Shows/hides a view depending on use case (used by browser)
8328
8328
  * @ignore
8329
8329
  */
8330
8330
  private updateViewVisibility;
@@ -11636,6 +11636,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
11636
11636
  'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
11637
11637
  'hide-view': IdentityCall;
11638
11638
  'show-view': IdentityCall;
11639
+ 'show-view-at': IdentityCall<{
11640
+ bounds: OpenFin.Bounds;
11641
+ }>;
11639
11642
  'update-view-options': IdentityCall<{
11640
11643
  options: OpenFin.UpdatableViewOptions;
11641
11644
  }>;
@@ -15158,6 +15161,13 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
15158
15161
  * @experimental
15159
15162
  */
15160
15163
  show: () => Promise<void>;
15164
+ /**
15165
+ * Shows the views at the given bounds.
15166
+ * If the view is hidden, showAt behaves like calling both setBounds and show.
15167
+ * If the view is visible, showAt behaves like calling setBounds.
15168
+ * @experimental
15169
+ */
15170
+ showAt: (bounds: OpenFin.Bounds) => Promise<void>;
15161
15171
  /**
15162
15172
  * Hides the current view if it is currently visible.
15163
15173
  *
@@ -8324,7 +8324,7 @@ declare class LayoutManager {
8324
8324
  private setupWindowListeners;
8325
8325
  private setupResizeObservers;
8326
8326
  /**
8327
- * Shows/hides a view depending on use case
8327
+ * Shows/hides a view depending on use case (used by browser)
8328
8328
  * @ignore
8329
8329
  */
8330
8330
  private updateViewVisibility;
@@ -11636,6 +11636,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
11636
11636
  'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
11637
11637
  'hide-view': IdentityCall;
11638
11638
  'show-view': IdentityCall;
11639
+ 'show-view-at': IdentityCall<{
11640
+ bounds: OpenFin.Bounds;
11641
+ }>;
11639
11642
  'update-view-options': IdentityCall<{
11640
11643
  options: OpenFin.UpdatableViewOptions;
11641
11644
  }>;
@@ -15158,6 +15161,13 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
15158
15161
  * @experimental
15159
15162
  */
15160
15163
  show: () => Promise<void>;
15164
+ /**
15165
+ * Shows the views at the given bounds.
15166
+ * If the view is hidden, showAt behaves like calling both setBounds and show.
15167
+ * If the view is visible, showAt behaves like calling setBounds.
15168
+ * @experimental
15169
+ */
15170
+ showAt: (bounds: OpenFin.Bounds) => Promise<void>;
15161
15171
  /**
15162
15172
  * Hides the current view if it is currently visible.
15163
15173
  *
@@ -8324,7 +8324,7 @@ declare class LayoutManager {
8324
8324
  private setupWindowListeners;
8325
8325
  private setupResizeObservers;
8326
8326
  /**
8327
- * Shows/hides a view depending on use case
8327
+ * Shows/hides a view depending on use case (used by browser)
8328
8328
  * @ignore
8329
8329
  */
8330
8330
  private updateViewVisibility;
@@ -11636,6 +11636,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
11636
11636
  'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
11637
11637
  'hide-view': IdentityCall;
11638
11638
  'show-view': IdentityCall;
11639
+ 'show-view-at': IdentityCall<{
11640
+ bounds: OpenFin.Bounds;
11641
+ }>;
11639
11642
  'update-view-options': IdentityCall<{
11640
11643
  options: OpenFin.UpdatableViewOptions;
11641
11644
  }>;
@@ -15158,6 +15161,13 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
15158
15161
  * @experimental
15159
15162
  */
15160
15163
  show: () => Promise<void>;
15164
+ /**
15165
+ * Shows the views at the given bounds.
15166
+ * If the view is hidden, showAt behaves like calling both setBounds and show.
15167
+ * If the view is visible, showAt behaves like calling setBounds.
15168
+ * @experimental
15169
+ */
15170
+ showAt: (bounds: OpenFin.Bounds) => Promise<void>;
15161
15171
  /**
15162
15172
  * Hides the current view if it is currently visible.
15163
15173
  *
@@ -8615,7 +8615,7 @@ declare class LayoutManager {
8615
8615
  private setupWindowListeners;
8616
8616
  private setupResizeObservers;
8617
8617
  /**
8618
- * Shows/hides a view depending on use case
8618
+ * Shows/hides a view depending on use case (used by browser)
8619
8619
  * @ignore
8620
8620
  */
8621
8621
  private updateViewVisibility;
@@ -12164,6 +12164,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12164
12164
  'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
12165
12165
  'hide-view': IdentityCall;
12166
12166
  'show-view': IdentityCall;
12167
+ 'show-view-at': IdentityCall<{
12168
+ bounds: OpenFin.Bounds;
12169
+ }>;
12167
12170
  'update-view-options': IdentityCall<{
12168
12171
  options: OpenFin.UpdatableViewOptions;
12169
12172
  }>;
@@ -15752,6 +15755,13 @@ declare class View_2 extends WebContents<OpenFin.ViewEvent> {
15752
15755
  * @experimental
15753
15756
  */
15754
15757
  show: () => Promise<void>;
15758
+ /**
15759
+ * Shows the views at the given bounds.
15760
+ * If the view is hidden, showAt behaves like calling both setBounds and show.
15761
+ * If the view is visible, showAt behaves like calling setBounds.
15762
+ * @experimental
15763
+ */
15764
+ showAt: (bounds: OpenFin.Bounds) => Promise<void>;
15755
15765
  /**
15756
15766
  * Hides the current view if it is currently visible.
15757
15767
  *
@@ -2768,6 +2768,15 @@ function requireInstance$2 () {
2768
2768
  this.show = async () => {
2769
2769
  await this.wire.sendAction('show-view', { ...this.identity });
2770
2770
  };
2771
+ /**
2772
+ * Shows the views at the given bounds.
2773
+ * If the view is hidden, showAt behaves like calling both setBounds and show.
2774
+ * If the view is visible, showAt behaves like calling setBounds.
2775
+ * @experimental
2776
+ */
2777
+ this.showAt = async (bounds) => {
2778
+ await this.wire.sendAction('show-view-at', { bounds, ...this.identity });
2779
+ };
2771
2780
  /**
2772
2781
  * Hides the current view if it is currently visible.
2773
2782
  *
@@ -15919,38 +15928,45 @@ class InteropClient extends base_1$2.Base {
15919
15928
  InteropClient$1.InteropClient = InteropClient;
15920
15929
  _InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
15921
15930
 
15922
- var overrideCheck$1 = {};
15931
+ var overrideCheck = {};
15923
15932
 
15924
- Object.defineProperty(overrideCheck$1, "__esModule", { value: true });
15925
- overrideCheck$1.overrideCheck = overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = void 0;
15926
- const InteropBroker_1 = requireInteropBroker();
15927
- function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
15928
- const setVersion = manifest.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
15929
- return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
15930
- }
15931
- overrideCheck$1.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
15932
- // TODO: Unit test this
15933
- function overrideCheck(overriddenBroker, fdc3InteropApi) {
15934
- if (fdc3InteropApi && fdc3InteropApi === '2.0') {
15935
- const mustOverrideAPIs = [
15936
- 'fdc3HandleFindInstances',
15937
- 'handleInfoForIntent',
15938
- 'handleInfoForIntentsByContext',
15939
- 'fdc3HandleGetAppMetadata',
15940
- 'fdc3HandleGetInfo',
15941
- 'fdc3HandleOpen',
15942
- 'handleFiredIntent',
15943
- 'handleFiredIntentForContext'
15944
- ];
15945
- const notOverridden = mustOverrideAPIs.filter((api) => {
15946
- return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
15947
- });
15948
- if (notOverridden.length > 0) {
15949
- console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
15950
- }
15951
- }
15933
+ var hasRequiredOverrideCheck;
15934
+
15935
+ function requireOverrideCheck () {
15936
+ if (hasRequiredOverrideCheck) return overrideCheck;
15937
+ hasRequiredOverrideCheck = 1;
15938
+ Object.defineProperty(overrideCheck, "__esModule", { value: true });
15939
+ overrideCheck.overrideCheck = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
15940
+ const InteropBroker_1 = requireInteropBroker();
15941
+ function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
15942
+ const setVersion = manifest.platform?.defaultViewOptions?.fdc3InteropApi ?? initialOptions.defaultViewOptions?.fdc3InteropApi;
15943
+ return ['1.2', '2.0'].includes(setVersion ?? '') ? setVersion : undefined;
15944
+ }
15945
+ overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
15946
+ // TODO: Unit test this
15947
+ function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
15948
+ if (fdc3InteropApi && fdc3InteropApi === '2.0') {
15949
+ const mustOverrideAPIs = [
15950
+ 'fdc3HandleFindInstances',
15951
+ 'handleInfoForIntent',
15952
+ 'handleInfoForIntentsByContext',
15953
+ 'fdc3HandleGetAppMetadata',
15954
+ 'fdc3HandleGetInfo',
15955
+ 'fdc3HandleOpen',
15956
+ 'handleFiredIntent',
15957
+ 'handleFiredIntentForContext'
15958
+ ];
15959
+ const notOverridden = mustOverrideAPIs.filter((api) => {
15960
+ return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
15961
+ });
15962
+ if (notOverridden.length > 0) {
15963
+ console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
15964
+ }
15965
+ }
15966
+ }
15967
+ overrideCheck.overrideCheck = overrideCheck$1;
15968
+ return overrideCheck;
15952
15969
  }
15953
- overrideCheck$1.overrideCheck = overrideCheck;
15954
15970
 
15955
15971
  var hasRequiredFactory;
15956
15972
 
@@ -15964,7 +15980,7 @@ function requireFactory () {
15964
15980
  const base_1 = base$1;
15965
15981
  const InteropBroker_1 = requireInteropBroker();
15966
15982
  const InteropClient_1 = InteropClient$1;
15967
- const overrideCheck_1 = overrideCheck$1;
15983
+ const overrideCheck_1 = requireOverrideCheck();
15968
15984
  const common_utils_1 = commonUtils;
15969
15985
  const defaultOverride = (Class) => new Class();
15970
15986
  const BrokerParamAccessError = 'You have attempted to use or modify InteropBroker parameters, which is not allowed. You are likely using an older InteropBroker override scheme. Please consult our Interop docs for guidance on migrating to the new override scheme.';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "34.78.25",
3
+ "version": "34.78.26",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",