@openfin/node-adapter 35.78.23 → 35.78.27
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
|
*/
|
@@ -11036,7 +11044,6 @@ declare interface PlatformProvider {
|
|
11036
11044
|
* @param callerIdentity
|
11037
11045
|
*/
|
11038
11046
|
getWindowSnapshot(identity: OpenFin.Identity, callerIdentity: OpenFin.Identity): Promise<OpenFin.WindowCreationOptions>;
|
11039
|
-
/* Excluded from this release type: createViewsForLayout */
|
11040
11047
|
/* Excluded from this release type: getViewSnapshot */
|
11041
11048
|
/**
|
11042
11049
|
* Called when a snapshot is being applied and some windows in that snapshot would be fully or partially off-screen.
|
@@ -17899,10 +17906,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
17899
17906
|
show(force?: boolean): Promise<void>;
|
17900
17907
|
/**
|
17901
17908
|
* Shows the window if it is hidden at the specified location.
|
17902
|
-
*
|
17903
|
-
*
|
17904
|
-
* @param
|
17905
|
-
* @param top The right position of the window
|
17909
|
+
*
|
17910
|
+
* @param left The left position of the window in pixels
|
17911
|
+
* @param top The top position of the window in pixels
|
17906
17912
|
* @param force Show will be prevented from closing when force is false and
|
17907
17913
|
* ‘show-requested’ has been subscribed to for application’s main window
|
17908
17914
|
*
|
@@ -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
|
*/
|
@@ -11036,7 +11044,6 @@ declare interface PlatformProvider {
|
|
11036
11044
|
* @param callerIdentity
|
11037
11045
|
*/
|
11038
11046
|
getWindowSnapshot(identity: OpenFin.Identity, callerIdentity: OpenFin.Identity): Promise<OpenFin.WindowCreationOptions>;
|
11039
|
-
/* Excluded from this release type: createViewsForLayout */
|
11040
11047
|
/* Excluded from this release type: getViewSnapshot */
|
11041
11048
|
/**
|
11042
11049
|
* Called when a snapshot is being applied and some windows in that snapshot would be fully or partially off-screen.
|
@@ -17899,10 +17906,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
17899
17906
|
show(force?: boolean): Promise<void>;
|
17900
17907
|
/**
|
17901
17908
|
* Shows the window if it is hidden at the specified location.
|
17902
|
-
*
|
17903
|
-
*
|
17904
|
-
* @param
|
17905
|
-
* @param top The right position of the window
|
17909
|
+
*
|
17910
|
+
* @param left The left position of the window in pixels
|
17911
|
+
* @param top The top position of the window in pixels
|
17906
17912
|
* @param force Show will be prevented from closing when force is false and
|
17907
17913
|
* ‘show-requested’ has been subscribed to for application’s main window
|
17908
17914
|
*
|
@@ -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
|
*/
|
@@ -11036,7 +11044,6 @@ declare interface PlatformProvider {
|
|
11036
11044
|
* @param callerIdentity
|
11037
11045
|
*/
|
11038
11046
|
getWindowSnapshot(identity: OpenFin.Identity, callerIdentity: OpenFin.Identity): Promise<OpenFin.WindowCreationOptions>;
|
11039
|
-
/* Excluded from this release type: createViewsForLayout */
|
11040
11047
|
/* Excluded from this release type: getViewSnapshot */
|
11041
11048
|
/**
|
11042
11049
|
* Called when a snapshot is being applied and some windows in that snapshot would be fully or partially off-screen.
|
@@ -17899,10 +17906,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
17899
17906
|
show(force?: boolean): Promise<void>;
|
17900
17907
|
/**
|
17901
17908
|
* Shows the window if it is hidden at the specified location.
|
17902
|
-
*
|
17903
|
-
*
|
17904
|
-
* @param
|
17905
|
-
* @param top The right position of the window
|
17909
|
+
*
|
17910
|
+
* @param left The left position of the window in pixels
|
17911
|
+
* @param top The top position of the window in pixels
|
17906
17912
|
* @param force Show will be prevented from closing when force is false and
|
17907
17913
|
* ‘show-requested’ has been subscribed to for application’s main window
|
17908
17914
|
*
|
package/out/node-adapter.d.ts
CHANGED
@@ -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
|
*/
|
@@ -11390,22 +11398,6 @@ declare interface PlatformProvider {
|
|
11390
11398
|
* @param callerIdentity
|
11391
11399
|
*/
|
11392
11400
|
getWindowSnapshot(identity: OpenFin.Identity, callerIdentity: OpenFin.Identity): Promise<OpenFin.WindowCreationOptions>;
|
11393
|
-
/**
|
11394
|
-
* @experimental @internal
|
11395
|
-
*
|
11396
|
-
* **NOTE**: Internal use only. This method is reserved for Workspace Browser implementation.
|
11397
|
-
*
|
11398
|
-
* Calls platform.createView for every view in the given layout. Returns an array of promises
|
11399
|
-
* one promise for each view create call
|
11400
|
-
*
|
11401
|
-
* @param payload
|
11402
|
-
* @param callerIdentity
|
11403
|
-
* @returns an array of promises
|
11404
|
-
*/
|
11405
|
-
createViewsForLayout(payload: {
|
11406
|
-
layout: GoldenLayout.Config;
|
11407
|
-
target?: OpenFin.Identity | OpenFin.LayoutIdentity;
|
11408
|
-
}, callerIdentity: OpenFin.Identity): Promise<OpenFin.View>[];
|
11409
11401
|
/**
|
11410
11402
|
* **NOTE**: Internal use only. It is not recommended to manage the state of individual views.
|
11411
11403
|
* Gets the current state of a single view and returns an object with the options needed to restore that view as part of a snapshot.
|
@@ -18361,10 +18353,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
18361
18353
|
show(force?: boolean): Promise<void>;
|
18362
18354
|
/**
|
18363
18355
|
* Shows the window if it is hidden at the specified location.
|
18364
|
-
*
|
18365
|
-
*
|
18366
|
-
* @param
|
18367
|
-
* @param top The right position of the window
|
18356
|
+
*
|
18357
|
+
* @param left The left position of the window in pixels
|
18358
|
+
* @param top The top position of the window in pixels
|
18368
18359
|
* @param force Show will be prevented from closing when force is false and
|
18369
18360
|
* ‘show-requested’ has been subscribed to for application’s main window
|
18370
18361
|
*
|
package/out/node-adapter.js
CHANGED
@@ -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
|
-
|
2343
|
-
|
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
|
-
*
|
5062
|
-
*
|
5063
|
-
* @param
|
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
Binary file
|