@openfin/node-adapter 35.78.23 → 35.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.
@@ -96,6 +96,10 @@ declare type Api = {
96
96
  sameOriginInjection?: boolean;
97
97
  enableDeprecatedSharedName?: boolean;
98
98
  };
99
+ /**
100
+ * Prevent fin API injection. If true `fin` won't be available in this context.
101
+ */
102
+ preventInjection?: boolean;
99
103
  };
100
104
 
101
105
  declare type ApiCall<Request, Response> = {
@@ -3392,6 +3396,10 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
3392
3396
  * @interface
3393
3397
  */
3394
3398
  declare type ConstViewOptions = {
3399
+ /**
3400
+ * Configurations for API injection.
3401
+ */
3402
+ api: Api;
3395
3403
  /**
3396
3404
  * The name of the view.
3397
3405
  */
@@ -17899,10 +17907,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
17899
17907
  show(force?: boolean): Promise<void>;
17900
17908
  /**
17901
17909
  * Shows the window if it is hidden at the specified location.
17902
- * If the toggle parameter is set to true, the window will
17903
- * alternate between showing and hiding.
17904
- * @param left The left position of the window
17905
- * @param top The right position of the window
17910
+ *
17911
+ * @param left The left position of the window in pixels
17912
+ * @param top The top position of the window in pixels
17906
17913
  * @param force Show will be prevented from closing when force is false and
17907
17914
  * ‘show-requested’ has been subscribed to for application’s main window
17908
17915
  *
@@ -96,6 +96,10 @@ declare type Api = {
96
96
  sameOriginInjection?: boolean;
97
97
  enableDeprecatedSharedName?: boolean;
98
98
  };
99
+ /**
100
+ * Prevent fin API injection. If true `fin` won't be available in this context.
101
+ */
102
+ preventInjection?: boolean;
99
103
  };
100
104
 
101
105
  declare type ApiCall<Request, Response> = {
@@ -3392,6 +3396,10 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
3392
3396
  * @interface
3393
3397
  */
3394
3398
  declare type ConstViewOptions = {
3399
+ /**
3400
+ * Configurations for API injection.
3401
+ */
3402
+ api: Api;
3395
3403
  /**
3396
3404
  * The name of the view.
3397
3405
  */
@@ -17899,10 +17907,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
17899
17907
  show(force?: boolean): Promise<void>;
17900
17908
  /**
17901
17909
  * Shows the window if it is hidden at the specified location.
17902
- * If the toggle parameter is set to true, the window will
17903
- * alternate between showing and hiding.
17904
- * @param left The left position of the window
17905
- * @param top The right position of the window
17910
+ *
17911
+ * @param left The left position of the window in pixels
17912
+ * @param top The top position of the window in pixels
17906
17913
  * @param force Show will be prevented from closing when force is false and
17907
17914
  * ‘show-requested’ has been subscribed to for application’s main window
17908
17915
  *
@@ -96,6 +96,10 @@ declare type Api = {
96
96
  sameOriginInjection?: boolean;
97
97
  enableDeprecatedSharedName?: boolean;
98
98
  };
99
+ /**
100
+ * Prevent fin API injection. If true `fin` won't be available in this context.
101
+ */
102
+ preventInjection?: boolean;
99
103
  };
100
104
 
101
105
  declare type ApiCall<Request, Response> = {
@@ -3392,6 +3396,10 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
3392
3396
  * @interface
3393
3397
  */
3394
3398
  declare type ConstViewOptions = {
3399
+ /**
3400
+ * Configurations for API injection.
3401
+ */
3402
+ api: Api;
3395
3403
  /**
3396
3404
  * The name of the view.
3397
3405
  */
@@ -17899,10 +17907,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
17899
17907
  show(force?: boolean): Promise<void>;
17900
17908
  /**
17901
17909
  * Shows the window if it is hidden at the specified location.
17902
- * If the toggle parameter is set to true, the window will
17903
- * alternate between showing and hiding.
17904
- * @param left The left position of the window
17905
- * @param top The right position of the window
17910
+ *
17911
+ * @param left The left position of the window in pixels
17912
+ * @param top The top position of the window in pixels
17906
17913
  * @param force Show will be prevented from closing when force is false and
17907
17914
  * ‘show-requested’ has been subscribed to for application’s main window
17908
17915
  *
@@ -96,6 +96,10 @@ declare type Api = {
96
96
  sameOriginInjection?: boolean;
97
97
  enableDeprecatedSharedName?: boolean;
98
98
  };
99
+ /**
100
+ * Prevent fin API injection. If true `fin` won't be available in this context.
101
+ */
102
+ preventInjection?: boolean;
99
103
  };
100
104
 
101
105
  declare type ApiCall<Request, Response> = {
@@ -3435,6 +3439,10 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
3435
3439
  * @interface
3436
3440
  */
3437
3441
  declare type ConstViewOptions = {
3442
+ /**
3443
+ * Configurations for API injection.
3444
+ */
3445
+ api: Api;
3438
3446
  /**
3439
3447
  * The name of the view.
3440
3448
  */
@@ -18361,10 +18369,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
18361
18369
  show(force?: boolean): Promise<void>;
18362
18370
  /**
18363
18371
  * Shows the window if it is hidden at the specified location.
18364
- * If the toggle parameter is set to true, the window will
18365
- * alternate between showing and hiding.
18366
- * @param left The left position of the window
18367
- * @param top The right position of the window
18372
+ *
18373
+ * @param left The left position of the window in pixels
18374
+ * @param top The top position of the window in pixels
18368
18375
  * @param force Show will be prevented from closing when force is false and
18369
18376
  * ‘show-requested’ has been subscribed to for application’s main window
18370
18377
  *
@@ -2339,10 +2339,8 @@ class WebContents extends base_1$k.EmitterBase {
2339
2339
  });
2340
2340
  const { data: { willOpen, options: popupOptions } } = tryCreatePayload;
2341
2341
  if (willOpen) {
2342
- await this.wire.environment.createChildContent({
2343
- options: popupOptions.initialOptions,
2344
- entityType: 'window'
2345
- });
2342
+ // Solve the issue where Interop in a popup window with non cross-origin url is not working(core-1076).
2343
+ await this.fin.Window.create(popupOptions.initialOptions);
2346
2344
  }
2347
2345
  const normalizePopupResult = (payload) => {
2348
2346
  const { name, uuid, result, data } = payload;
@@ -5058,10 +5056,9 @@ function requireInstance () {
5058
5056
  }
5059
5057
  /**
5060
5058
  * Shows the window if it is hidden at the specified location.
5061
- * If the toggle parameter is set to true, the window will
5062
- * alternate between showing and hiding.
5063
- * @param left The left position of the window
5064
- * @param top The right position of the window
5059
+ *
5060
+ * @param left The left position of the window in pixels
5061
+ * @param top The top position of the window in pixels
5065
5062
  * @param force Show will be prevented from closing when force is false and
5066
5063
  * ‘show-requested’ has been subscribed to for application’s main window
5067
5064
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "35.78.23",
3
+ "version": "35.78.26",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",
Binary file