@openfin/core 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.
- package/out/mock-alpha.d.ts +11 -5
- package/out/mock-beta.d.ts +11 -5
- package/out/mock-public.d.ts +11 -5
- package/out/mock.d.ts +11 -20
- package/out/mock.js +5 -8
- package/package.json +1 -1
package/out/mock-alpha.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> = {
|
|
@@ -3388,6 +3392,10 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
|
|
|
3388
3392
|
* @interface
|
|
3389
3393
|
*/
|
|
3390
3394
|
declare type ConstViewOptions = {
|
|
3395
|
+
/**
|
|
3396
|
+
* Configurations for API injection.
|
|
3397
|
+
*/
|
|
3398
|
+
api: Api;
|
|
3391
3399
|
/**
|
|
3392
3400
|
* The name of the view.
|
|
3393
3401
|
*/
|
|
@@ -11026,7 +11034,6 @@ declare interface PlatformProvider {
|
|
|
11026
11034
|
* @param callerIdentity
|
|
11027
11035
|
*/
|
|
11028
11036
|
getWindowSnapshot(identity: OpenFin_2.Identity, callerIdentity: OpenFin_2.Identity): Promise<OpenFin_2.WindowCreationOptions>;
|
|
11029
|
-
/* Excluded from this release type: createViewsForLayout */
|
|
11030
11037
|
/* Excluded from this release type: getViewSnapshot */
|
|
11031
11038
|
/**
|
|
11032
11039
|
* Called when a snapshot is being applied and some windows in that snapshot would be fully or partially off-screen.
|
|
@@ -17889,10 +17896,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17889
17896
|
show(force?: boolean): Promise<void>;
|
|
17890
17897
|
/**
|
|
17891
17898
|
* Shows the window if it is hidden at the specified location.
|
|
17892
|
-
*
|
|
17893
|
-
*
|
|
17894
|
-
* @param
|
|
17895
|
-
* @param top The right position of the window
|
|
17899
|
+
*
|
|
17900
|
+
* @param left The left position of the window in pixels
|
|
17901
|
+
* @param top The top position of the window in pixels
|
|
17896
17902
|
* @param force Show will be prevented from closing when force is false and
|
|
17897
17903
|
* ‘show-requested’ has been subscribed to for application’s main window
|
|
17898
17904
|
*
|
package/out/mock-beta.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> = {
|
|
@@ -3388,6 +3392,10 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
|
|
|
3388
3392
|
* @interface
|
|
3389
3393
|
*/
|
|
3390
3394
|
declare type ConstViewOptions = {
|
|
3395
|
+
/**
|
|
3396
|
+
* Configurations for API injection.
|
|
3397
|
+
*/
|
|
3398
|
+
api: Api;
|
|
3391
3399
|
/**
|
|
3392
3400
|
* The name of the view.
|
|
3393
3401
|
*/
|
|
@@ -11026,7 +11034,6 @@ declare interface PlatformProvider {
|
|
|
11026
11034
|
* @param callerIdentity
|
|
11027
11035
|
*/
|
|
11028
11036
|
getWindowSnapshot(identity: OpenFin_2.Identity, callerIdentity: OpenFin_2.Identity): Promise<OpenFin_2.WindowCreationOptions>;
|
|
11029
|
-
/* Excluded from this release type: createViewsForLayout */
|
|
11030
11037
|
/* Excluded from this release type: getViewSnapshot */
|
|
11031
11038
|
/**
|
|
11032
11039
|
* Called when a snapshot is being applied and some windows in that snapshot would be fully or partially off-screen.
|
|
@@ -17889,10 +17896,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17889
17896
|
show(force?: boolean): Promise<void>;
|
|
17890
17897
|
/**
|
|
17891
17898
|
* Shows the window if it is hidden at the specified location.
|
|
17892
|
-
*
|
|
17893
|
-
*
|
|
17894
|
-
* @param
|
|
17895
|
-
* @param top The right position of the window
|
|
17899
|
+
*
|
|
17900
|
+
* @param left The left position of the window in pixels
|
|
17901
|
+
* @param top The top position of the window in pixels
|
|
17896
17902
|
* @param force Show will be prevented from closing when force is false and
|
|
17897
17903
|
* ‘show-requested’ has been subscribed to for application’s main window
|
|
17898
17904
|
*
|
package/out/mock-public.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> = {
|
|
@@ -3388,6 +3392,10 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
|
|
|
3388
3392
|
* @interface
|
|
3389
3393
|
*/
|
|
3390
3394
|
declare type ConstViewOptions = {
|
|
3395
|
+
/**
|
|
3396
|
+
* Configurations for API injection.
|
|
3397
|
+
*/
|
|
3398
|
+
api: Api;
|
|
3391
3399
|
/**
|
|
3392
3400
|
* The name of the view.
|
|
3393
3401
|
*/
|
|
@@ -11026,7 +11034,6 @@ declare interface PlatformProvider {
|
|
|
11026
11034
|
* @param callerIdentity
|
|
11027
11035
|
*/
|
|
11028
11036
|
getWindowSnapshot(identity: OpenFin_2.Identity, callerIdentity: OpenFin_2.Identity): Promise<OpenFin_2.WindowCreationOptions>;
|
|
11029
|
-
/* Excluded from this release type: createViewsForLayout */
|
|
11030
11037
|
/* Excluded from this release type: getViewSnapshot */
|
|
11031
11038
|
/**
|
|
11032
11039
|
* Called when a snapshot is being applied and some windows in that snapshot would be fully or partially off-screen.
|
|
@@ -17889,10 +17896,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
17889
17896
|
show(force?: boolean): Promise<void>;
|
|
17890
17897
|
/**
|
|
17891
17898
|
* Shows the window if it is hidden at the specified location.
|
|
17892
|
-
*
|
|
17893
|
-
*
|
|
17894
|
-
* @param
|
|
17895
|
-
* @param top The right position of the window
|
|
17899
|
+
*
|
|
17900
|
+
* @param left The left position of the window in pixels
|
|
17901
|
+
* @param top The top position of the window in pixels
|
|
17896
17902
|
* @param force Show will be prevented from closing when force is false and
|
|
17897
17903
|
* ‘show-requested’ has been subscribed to for application’s main window
|
|
17898
17904
|
*
|
package/out/mock.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> = {
|
|
@@ -3431,6 +3435,10 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
|
|
|
3431
3435
|
* @interface
|
|
3432
3436
|
*/
|
|
3433
3437
|
declare type ConstViewOptions = {
|
|
3438
|
+
/**
|
|
3439
|
+
* Configurations for API injection.
|
|
3440
|
+
*/
|
|
3441
|
+
api: Api;
|
|
3434
3442
|
/**
|
|
3435
3443
|
* The name of the view.
|
|
3436
3444
|
*/
|
|
@@ -11358,22 +11366,6 @@ declare interface PlatformProvider {
|
|
|
11358
11366
|
* @param callerIdentity
|
|
11359
11367
|
*/
|
|
11360
11368
|
getWindowSnapshot(identity: OpenFin_2.Identity, callerIdentity: OpenFin_2.Identity): Promise<OpenFin_2.WindowCreationOptions>;
|
|
11361
|
-
/**
|
|
11362
|
-
* @experimental @internal
|
|
11363
|
-
*
|
|
11364
|
-
* **NOTE**: Internal use only. This method is reserved for Workspace Browser implementation.
|
|
11365
|
-
*
|
|
11366
|
-
* Calls platform.createView for every view in the given layout. Returns an array of promises
|
|
11367
|
-
* one promise for each view create call
|
|
11368
|
-
*
|
|
11369
|
-
* @param payload
|
|
11370
|
-
* @param callerIdentity
|
|
11371
|
-
* @returns an array of promises
|
|
11372
|
-
*/
|
|
11373
|
-
createViewsForLayout(payload: {
|
|
11374
|
-
layout: GoldenLayout.Config;
|
|
11375
|
-
target?: OpenFin_2.Identity | OpenFin_2.LayoutIdentity;
|
|
11376
|
-
}, callerIdentity: OpenFin_2.Identity): Promise<OpenFin_2.View>[];
|
|
11377
11369
|
/**
|
|
11378
11370
|
* **NOTE**: Internal use only. It is not recommended to manage the state of individual views.
|
|
11379
11371
|
* 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.
|
|
@@ -18329,10 +18321,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
18329
18321
|
show(force?: boolean): Promise<void>;
|
|
18330
18322
|
/**
|
|
18331
18323
|
* Shows the window if it is hidden at the specified location.
|
|
18332
|
-
*
|
|
18333
|
-
*
|
|
18334
|
-
* @param
|
|
18335
|
-
* @param top The right position of the window
|
|
18324
|
+
*
|
|
18325
|
+
* @param left The left position of the window in pixels
|
|
18326
|
+
* @param top The top position of the window in pixels
|
|
18336
18327
|
* @param force Show will be prevented from closing when force is false and
|
|
18337
18328
|
* ‘show-requested’ has been subscribed to for application’s main window
|
|
18338
18329
|
*
|
package/out/mock.js
CHANGED
|
@@ -2559,10 +2559,8 @@ class WebContents extends base_1$k.EmitterBase {
|
|
|
2559
2559
|
});
|
|
2560
2560
|
const { data: { willOpen, options: popupOptions } } = tryCreatePayload;
|
|
2561
2561
|
if (willOpen) {
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
entityType: 'window'
|
|
2565
|
-
});
|
|
2562
|
+
// Solve the issue where Interop in a popup window with non cross-origin url is not working(core-1076).
|
|
2563
|
+
await this.fin.Window.create(popupOptions.initialOptions);
|
|
2566
2564
|
}
|
|
2567
2565
|
const normalizePopupResult = (payload) => {
|
|
2568
2566
|
const { name, uuid, result, data } = payload;
|
|
@@ -5278,10 +5276,9 @@ function requireInstance () {
|
|
|
5278
5276
|
}
|
|
5279
5277
|
/**
|
|
5280
5278
|
* Shows the window if it is hidden at the specified location.
|
|
5281
|
-
*
|
|
5282
|
-
*
|
|
5283
|
-
* @param
|
|
5284
|
-
* @param top The right position of the window
|
|
5279
|
+
*
|
|
5280
|
+
* @param left The left position of the window in pixels
|
|
5281
|
+
* @param top The top position of the window in pixels
|
|
5285
5282
|
* @param force Show will be prevented from closing when force is false and
|
|
5286
5283
|
* ‘show-requested’ has been subscribed to for application’s main window
|
|
5287
5284
|
*
|