@openfin/core 35.78.5 → 35.78.11
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 +31 -33
- package/out/mock-beta.d.ts +31 -33
- package/out/mock-public.d.ts +31 -33
- package/out/mock.d.ts +31 -53
- package/out/mock.js +15 -16
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -3636,7 +3636,7 @@ declare type ConstWindowOptions = {
|
|
|
3636
3636
|
/**
|
|
3637
3637
|
* @defaultValue true
|
|
3638
3638
|
*
|
|
3639
|
-
*
|
|
3639
|
+
* Setting this to false would keep the Window alive even if all its Views were closed.
|
|
3640
3640
|
* This is meant for advanced users and should be used with caution.
|
|
3641
3641
|
* Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
|
|
3642
3642
|
* Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
|
|
@@ -3646,7 +3646,8 @@ declare type ConstWindowOptions = {
|
|
|
3646
3646
|
/**
|
|
3647
3647
|
* @defaultValue 'all'
|
|
3648
3648
|
*
|
|
3649
|
-
*
|
|
3649
|
+
* When `closeOnLastViewRemoved` is set to true, determines which views prevent closing the window.
|
|
3650
|
+
+ * Defaults to `all`. You may want to switch this to `layout` if using View closeBehavior: 'hide'.
|
|
3650
3651
|
* **NOTE:** - This option is ignored in non-Platforms apps.
|
|
3651
3652
|
*/
|
|
3652
3653
|
viewsPreventingClose: 'all' | 'layout';
|
|
@@ -4593,6 +4594,14 @@ declare type DestroyedEvent = BaseEvent_4 & {
|
|
|
4593
4594
|
type: 'destroyed';
|
|
4594
4595
|
};
|
|
4595
4596
|
|
|
4597
|
+
/**
|
|
4598
|
+
* @interface
|
|
4599
|
+
*/
|
|
4600
|
+
declare type DeviceInfo = {
|
|
4601
|
+
vendorId: string | number;
|
|
4602
|
+
productId: string | number;
|
|
4603
|
+
};
|
|
4604
|
+
|
|
4596
4605
|
/**
|
|
4597
4606
|
* Generated when a page's theme color changes. This is usually due to encountering a meta tag.
|
|
4598
4607
|
* @interface
|
|
@@ -5053,7 +5062,10 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
|
5053
5062
|
} : never;
|
|
5054
5063
|
|
|
5055
5064
|
declare interface Environment {
|
|
5056
|
-
initLayout(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<
|
|
5065
|
+
initLayout(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<{
|
|
5066
|
+
singleInstance: any | undefined;
|
|
5067
|
+
layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>;
|
|
5068
|
+
}>;
|
|
5057
5069
|
createLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.CreateLayoutOptions): Promise<void>;
|
|
5058
5070
|
destroyLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, layoutIdentity: OpenFin_2.LayoutIdentity): Promise<void>;
|
|
5059
5071
|
initPlatform(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, ...args: Parameters<OpenFin_2.Fin['Platform']['init']>): ReturnType<OpenFin_2.Fin['Platform']['init']>;
|
|
@@ -7433,7 +7445,7 @@ declare class InteropBroker extends Base {
|
|
|
7433
7445
|
* // }
|
|
7434
7446
|
* ```
|
|
7435
7447
|
*
|
|
7436
|
-
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/
|
|
7448
|
+
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/Metadata#intentresolution).
|
|
7437
7449
|
*
|
|
7438
7450
|
* @param contextForIntent Data passed between entities and applications.
|
|
7439
7451
|
* @param clientIdentity Identity of the Client making the request.
|
|
@@ -8840,8 +8852,6 @@ declare type LayoutInitializedEvent = BaseEvent_5 & {
|
|
|
8840
8852
|
})[];
|
|
8841
8853
|
};
|
|
8842
8854
|
|
|
8843
|
-
/* Excluded from this release type: LayoutInstance */
|
|
8844
|
-
|
|
8845
8855
|
/**
|
|
8846
8856
|
* Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
|
|
8847
8857
|
* to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot}.
|
|
@@ -8869,7 +8879,7 @@ declare type LayoutItemConfig = {
|
|
|
8869
8879
|
*
|
|
8870
8880
|
* **NOTE**: Internal use only. This type is reserved for Workspace Browser implementation.
|
|
8871
8881
|
*
|
|
8872
|
-
* Responsible for aggergating all layout snapshots and storing
|
|
8882
|
+
* Responsible for aggergating all layout snapshots and storing layout instances
|
|
8873
8883
|
*/
|
|
8874
8884
|
declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
8875
8885
|
/**
|
|
@@ -8893,16 +8903,6 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8893
8903
|
* @throws if Object.keys(snapshot).length > 1
|
|
8894
8904
|
*/
|
|
8895
8905
|
applyLayoutSnapshot(snapshot: T): Promise<void>;
|
|
8896
|
-
/**
|
|
8897
|
-
* Called at the start of layout initialization. Adds a new LayoutInstance if the snapshot
|
|
8898
|
-
* contains a single layout.
|
|
8899
|
-
*
|
|
8900
|
-
* Throws if the snapshot contains more than 1 layout, it is expected that the user handles calling
|
|
8901
|
-
* fin.Platform.Layout.create() once for each layout to properly connect it to their UI state.
|
|
8902
|
-
*
|
|
8903
|
-
* @param snapshot
|
|
8904
|
-
* @throws if Object.keys(snapshot).length > 1
|
|
8905
|
-
*/
|
|
8906
8906
|
/**
|
|
8907
8907
|
* @experimental
|
|
8908
8908
|
*
|
|
@@ -8923,31 +8923,28 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8923
8923
|
/**
|
|
8924
8924
|
* @experimental
|
|
8925
8925
|
*
|
|
8926
|
-
*
|
|
8927
|
-
*
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
/**
|
|
8931
|
-
* @experimental
|
|
8926
|
+
* A hook provided to the consumer when it's time to remove a layout. Use this hook to
|
|
8927
|
+
* update your local state and remove the layout for the given LayoutIdentity. Note that
|
|
8928
|
+
* this hook does not call `fin.Platform.Layout.destroy()` for you, instead it is to
|
|
8929
|
+
* signify to your application it's time to destroy this layout.
|
|
8932
8930
|
*
|
|
8933
|
-
*
|
|
8934
|
-
*
|
|
8935
|
-
* @param
|
|
8936
|
-
* @returns
|
|
8931
|
+
* Note that if the Window Option {@link WindowOptions.closeOnLastViewRemoved} is true, and the last View in this layout is closed, this hook will be called before the window closes.
|
|
8932
|
+
*
|
|
8933
|
+
* @param LayoutIdentity
|
|
8937
8934
|
*/
|
|
8938
|
-
|
|
8935
|
+
removeLayout({ layoutName }: LayoutIdentity): Promise<void>;
|
|
8939
8936
|
/**
|
|
8940
8937
|
* @experimental
|
|
8941
8938
|
*/
|
|
8942
|
-
|
|
8939
|
+
getLayoutIdentityForView(viewIdentity: Identity_5): LayoutIdentity;
|
|
8943
8940
|
/**
|
|
8944
8941
|
* @experimental
|
|
8945
8942
|
*/
|
|
8946
|
-
|
|
8943
|
+
isLayoutVisible({ layoutName }: LayoutIdentity): boolean;
|
|
8947
8944
|
/**
|
|
8948
8945
|
* @experimental
|
|
8949
8946
|
*/
|
|
8950
|
-
|
|
8947
|
+
size(): number;
|
|
8951
8948
|
}
|
|
8952
8949
|
|
|
8953
8950
|
/**
|
|
@@ -10132,6 +10129,7 @@ declare namespace OpenFin_2 {
|
|
|
10132
10129
|
WebPermission,
|
|
10133
10130
|
VerboseWebPermission,
|
|
10134
10131
|
OpenExternalPermission,
|
|
10132
|
+
DeviceInfo,
|
|
10135
10133
|
Permissions_2 as Permissions,
|
|
10136
10134
|
PlatformWindowCreationOptions,
|
|
10137
10135
|
PlatformWindowOptions,
|
|
@@ -10289,7 +10287,6 @@ declare namespace OpenFin_2 {
|
|
|
10289
10287
|
InitLayoutOptions,
|
|
10290
10288
|
LayoutManagerConstructor,
|
|
10291
10289
|
LayoutManagerOverride,
|
|
10292
|
-
LayoutInstance,
|
|
10293
10290
|
LayoutManager,
|
|
10294
10291
|
CreateLayoutOptions,
|
|
10295
10292
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
|
@@ -10481,6 +10478,7 @@ declare type Permissions_2 = {
|
|
|
10481
10478
|
Application?: Partial<ApplicationPermissions>;
|
|
10482
10479
|
System?: Partial<SystemPermissions>;
|
|
10483
10480
|
webAPIs?: WebPermission[];
|
|
10481
|
+
devices?: DeviceInfo[];
|
|
10484
10482
|
};
|
|
10485
10483
|
|
|
10486
10484
|
declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
|
|
@@ -17647,7 +17645,7 @@ declare namespace WebContentsEvents {
|
|
|
17647
17645
|
* `clipboard-read`: Request access to read from the clipboard.<br>
|
|
17648
17646
|
* `clipboard-sanitized-write`: Request access to write to the clipboard.
|
|
17649
17647
|
*/
|
|
17650
|
-
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | OpenExternalPermission;
|
|
17648
|
+
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | 'hid' | 'usb' | OpenExternalPermission;
|
|
17651
17649
|
|
|
17652
17650
|
/**
|
|
17653
17651
|
* Object representing headers and their values, where the
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -3636,7 +3636,7 @@ declare type ConstWindowOptions = {
|
|
|
3636
3636
|
/**
|
|
3637
3637
|
* @defaultValue true
|
|
3638
3638
|
*
|
|
3639
|
-
*
|
|
3639
|
+
* Setting this to false would keep the Window alive even if all its Views were closed.
|
|
3640
3640
|
* This is meant for advanced users and should be used with caution.
|
|
3641
3641
|
* Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
|
|
3642
3642
|
* Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
|
|
@@ -3646,7 +3646,8 @@ declare type ConstWindowOptions = {
|
|
|
3646
3646
|
/**
|
|
3647
3647
|
* @defaultValue 'all'
|
|
3648
3648
|
*
|
|
3649
|
-
*
|
|
3649
|
+
* When `closeOnLastViewRemoved` is set to true, determines which views prevent closing the window.
|
|
3650
|
+
+ * Defaults to `all`. You may want to switch this to `layout` if using View closeBehavior: 'hide'.
|
|
3650
3651
|
* **NOTE:** - This option is ignored in non-Platforms apps.
|
|
3651
3652
|
*/
|
|
3652
3653
|
viewsPreventingClose: 'all' | 'layout';
|
|
@@ -4593,6 +4594,14 @@ declare type DestroyedEvent = BaseEvent_4 & {
|
|
|
4593
4594
|
type: 'destroyed';
|
|
4594
4595
|
};
|
|
4595
4596
|
|
|
4597
|
+
/**
|
|
4598
|
+
* @interface
|
|
4599
|
+
*/
|
|
4600
|
+
declare type DeviceInfo = {
|
|
4601
|
+
vendorId: string | number;
|
|
4602
|
+
productId: string | number;
|
|
4603
|
+
};
|
|
4604
|
+
|
|
4596
4605
|
/**
|
|
4597
4606
|
* Generated when a page's theme color changes. This is usually due to encountering a meta tag.
|
|
4598
4607
|
* @interface
|
|
@@ -5053,7 +5062,10 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
|
5053
5062
|
} : never;
|
|
5054
5063
|
|
|
5055
5064
|
declare interface Environment {
|
|
5056
|
-
initLayout(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<
|
|
5065
|
+
initLayout(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<{
|
|
5066
|
+
singleInstance: any | undefined;
|
|
5067
|
+
layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>;
|
|
5068
|
+
}>;
|
|
5057
5069
|
createLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.CreateLayoutOptions): Promise<void>;
|
|
5058
5070
|
destroyLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, layoutIdentity: OpenFin_2.LayoutIdentity): Promise<void>;
|
|
5059
5071
|
initPlatform(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, ...args: Parameters<OpenFin_2.Fin['Platform']['init']>): ReturnType<OpenFin_2.Fin['Platform']['init']>;
|
|
@@ -7433,7 +7445,7 @@ declare class InteropBroker extends Base {
|
|
|
7433
7445
|
* // }
|
|
7434
7446
|
* ```
|
|
7435
7447
|
*
|
|
7436
|
-
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/
|
|
7448
|
+
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/Metadata#intentresolution).
|
|
7437
7449
|
*
|
|
7438
7450
|
* @param contextForIntent Data passed between entities and applications.
|
|
7439
7451
|
* @param clientIdentity Identity of the Client making the request.
|
|
@@ -8840,8 +8852,6 @@ declare type LayoutInitializedEvent = BaseEvent_5 & {
|
|
|
8840
8852
|
})[];
|
|
8841
8853
|
};
|
|
8842
8854
|
|
|
8843
|
-
/* Excluded from this release type: LayoutInstance */
|
|
8844
|
-
|
|
8845
8855
|
/**
|
|
8846
8856
|
* Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
|
|
8847
8857
|
* to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot}.
|
|
@@ -8869,7 +8879,7 @@ declare type LayoutItemConfig = {
|
|
|
8869
8879
|
*
|
|
8870
8880
|
* **NOTE**: Internal use only. This type is reserved for Workspace Browser implementation.
|
|
8871
8881
|
*
|
|
8872
|
-
* Responsible for aggergating all layout snapshots and storing
|
|
8882
|
+
* Responsible for aggergating all layout snapshots and storing layout instances
|
|
8873
8883
|
*/
|
|
8874
8884
|
declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
8875
8885
|
/**
|
|
@@ -8893,16 +8903,6 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8893
8903
|
* @throws if Object.keys(snapshot).length > 1
|
|
8894
8904
|
*/
|
|
8895
8905
|
applyLayoutSnapshot(snapshot: T): Promise<void>;
|
|
8896
|
-
/**
|
|
8897
|
-
* Called at the start of layout initialization. Adds a new LayoutInstance if the snapshot
|
|
8898
|
-
* contains a single layout.
|
|
8899
|
-
*
|
|
8900
|
-
* Throws if the snapshot contains more than 1 layout, it is expected that the user handles calling
|
|
8901
|
-
* fin.Platform.Layout.create() once for each layout to properly connect it to their UI state.
|
|
8902
|
-
*
|
|
8903
|
-
* @param snapshot
|
|
8904
|
-
* @throws if Object.keys(snapshot).length > 1
|
|
8905
|
-
*/
|
|
8906
8906
|
/**
|
|
8907
8907
|
* @experimental
|
|
8908
8908
|
*
|
|
@@ -8923,31 +8923,28 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8923
8923
|
/**
|
|
8924
8924
|
* @experimental
|
|
8925
8925
|
*
|
|
8926
|
-
*
|
|
8927
|
-
*
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
/**
|
|
8931
|
-
* @experimental
|
|
8926
|
+
* A hook provided to the consumer when it's time to remove a layout. Use this hook to
|
|
8927
|
+
* update your local state and remove the layout for the given LayoutIdentity. Note that
|
|
8928
|
+
* this hook does not call `fin.Platform.Layout.destroy()` for you, instead it is to
|
|
8929
|
+
* signify to your application it's time to destroy this layout.
|
|
8932
8930
|
*
|
|
8933
|
-
*
|
|
8934
|
-
*
|
|
8935
|
-
* @param
|
|
8936
|
-
* @returns
|
|
8931
|
+
* Note that if the Window Option {@link WindowOptions.closeOnLastViewRemoved} is true, and the last View in this layout is closed, this hook will be called before the window closes.
|
|
8932
|
+
*
|
|
8933
|
+
* @param LayoutIdentity
|
|
8937
8934
|
*/
|
|
8938
|
-
|
|
8935
|
+
removeLayout({ layoutName }: LayoutIdentity): Promise<void>;
|
|
8939
8936
|
/**
|
|
8940
8937
|
* @experimental
|
|
8941
8938
|
*/
|
|
8942
|
-
|
|
8939
|
+
getLayoutIdentityForView(viewIdentity: Identity_5): LayoutIdentity;
|
|
8943
8940
|
/**
|
|
8944
8941
|
* @experimental
|
|
8945
8942
|
*/
|
|
8946
|
-
|
|
8943
|
+
isLayoutVisible({ layoutName }: LayoutIdentity): boolean;
|
|
8947
8944
|
/**
|
|
8948
8945
|
* @experimental
|
|
8949
8946
|
*/
|
|
8950
|
-
|
|
8947
|
+
size(): number;
|
|
8951
8948
|
}
|
|
8952
8949
|
|
|
8953
8950
|
/**
|
|
@@ -10132,6 +10129,7 @@ declare namespace OpenFin_2 {
|
|
|
10132
10129
|
WebPermission,
|
|
10133
10130
|
VerboseWebPermission,
|
|
10134
10131
|
OpenExternalPermission,
|
|
10132
|
+
DeviceInfo,
|
|
10135
10133
|
Permissions_2 as Permissions,
|
|
10136
10134
|
PlatformWindowCreationOptions,
|
|
10137
10135
|
PlatformWindowOptions,
|
|
@@ -10289,7 +10287,6 @@ declare namespace OpenFin_2 {
|
|
|
10289
10287
|
InitLayoutOptions,
|
|
10290
10288
|
LayoutManagerConstructor,
|
|
10291
10289
|
LayoutManagerOverride,
|
|
10292
|
-
LayoutInstance,
|
|
10293
10290
|
LayoutManager,
|
|
10294
10291
|
CreateLayoutOptions,
|
|
10295
10292
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
|
@@ -10481,6 +10478,7 @@ declare type Permissions_2 = {
|
|
|
10481
10478
|
Application?: Partial<ApplicationPermissions>;
|
|
10482
10479
|
System?: Partial<SystemPermissions>;
|
|
10483
10480
|
webAPIs?: WebPermission[];
|
|
10481
|
+
devices?: DeviceInfo[];
|
|
10484
10482
|
};
|
|
10485
10483
|
|
|
10486
10484
|
declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
|
|
@@ -17647,7 +17645,7 @@ declare namespace WebContentsEvents {
|
|
|
17647
17645
|
* `clipboard-read`: Request access to read from the clipboard.<br>
|
|
17648
17646
|
* `clipboard-sanitized-write`: Request access to write to the clipboard.
|
|
17649
17647
|
*/
|
|
17650
|
-
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | OpenExternalPermission;
|
|
17648
|
+
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | 'hid' | 'usb' | OpenExternalPermission;
|
|
17651
17649
|
|
|
17652
17650
|
/**
|
|
17653
17651
|
* Object representing headers and their values, where the
|
package/out/mock-public.d.ts
CHANGED
|
@@ -3636,7 +3636,7 @@ declare type ConstWindowOptions = {
|
|
|
3636
3636
|
/**
|
|
3637
3637
|
* @defaultValue true
|
|
3638
3638
|
*
|
|
3639
|
-
*
|
|
3639
|
+
* Setting this to false would keep the Window alive even if all its Views were closed.
|
|
3640
3640
|
* This is meant for advanced users and should be used with caution.
|
|
3641
3641
|
* Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
|
|
3642
3642
|
* Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
|
|
@@ -3646,7 +3646,8 @@ declare type ConstWindowOptions = {
|
|
|
3646
3646
|
/**
|
|
3647
3647
|
* @defaultValue 'all'
|
|
3648
3648
|
*
|
|
3649
|
-
*
|
|
3649
|
+
* When `closeOnLastViewRemoved` is set to true, determines which views prevent closing the window.
|
|
3650
|
+
+ * Defaults to `all`. You may want to switch this to `layout` if using View closeBehavior: 'hide'.
|
|
3650
3651
|
* **NOTE:** - This option is ignored in non-Platforms apps.
|
|
3651
3652
|
*/
|
|
3652
3653
|
viewsPreventingClose: 'all' | 'layout';
|
|
@@ -4593,6 +4594,14 @@ declare type DestroyedEvent = BaseEvent_4 & {
|
|
|
4593
4594
|
type: 'destroyed';
|
|
4594
4595
|
};
|
|
4595
4596
|
|
|
4597
|
+
/**
|
|
4598
|
+
* @interface
|
|
4599
|
+
*/
|
|
4600
|
+
declare type DeviceInfo = {
|
|
4601
|
+
vendorId: string | number;
|
|
4602
|
+
productId: string | number;
|
|
4603
|
+
};
|
|
4604
|
+
|
|
4596
4605
|
/**
|
|
4597
4606
|
* Generated when a page's theme color changes. This is usually due to encountering a meta tag.
|
|
4598
4607
|
* @interface
|
|
@@ -5053,7 +5062,10 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
|
5053
5062
|
} : never;
|
|
5054
5063
|
|
|
5055
5064
|
declare interface Environment {
|
|
5056
|
-
initLayout(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<
|
|
5065
|
+
initLayout(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<{
|
|
5066
|
+
singleInstance: any | undefined;
|
|
5067
|
+
layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>;
|
|
5068
|
+
}>;
|
|
5057
5069
|
createLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.CreateLayoutOptions): Promise<void>;
|
|
5058
5070
|
destroyLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, layoutIdentity: OpenFin_2.LayoutIdentity): Promise<void>;
|
|
5059
5071
|
initPlatform(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, ...args: Parameters<OpenFin_2.Fin['Platform']['init']>): ReturnType<OpenFin_2.Fin['Platform']['init']>;
|
|
@@ -7433,7 +7445,7 @@ declare class InteropBroker extends Base {
|
|
|
7433
7445
|
* // }
|
|
7434
7446
|
* ```
|
|
7435
7447
|
*
|
|
7436
|
-
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/
|
|
7448
|
+
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/Metadata#intentresolution).
|
|
7437
7449
|
*
|
|
7438
7450
|
* @param contextForIntent Data passed between entities and applications.
|
|
7439
7451
|
* @param clientIdentity Identity of the Client making the request.
|
|
@@ -8840,8 +8852,6 @@ declare type LayoutInitializedEvent = BaseEvent_5 & {
|
|
|
8840
8852
|
})[];
|
|
8841
8853
|
};
|
|
8842
8854
|
|
|
8843
|
-
/* Excluded from this release type: LayoutInstance */
|
|
8844
|
-
|
|
8845
8855
|
/**
|
|
8846
8856
|
* Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
|
|
8847
8857
|
* to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot}.
|
|
@@ -8869,7 +8879,7 @@ declare type LayoutItemConfig = {
|
|
|
8869
8879
|
*
|
|
8870
8880
|
* **NOTE**: Internal use only. This type is reserved for Workspace Browser implementation.
|
|
8871
8881
|
*
|
|
8872
|
-
* Responsible for aggergating all layout snapshots and storing
|
|
8882
|
+
* Responsible for aggergating all layout snapshots and storing layout instances
|
|
8873
8883
|
*/
|
|
8874
8884
|
declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
8875
8885
|
/**
|
|
@@ -8893,16 +8903,6 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8893
8903
|
* @throws if Object.keys(snapshot).length > 1
|
|
8894
8904
|
*/
|
|
8895
8905
|
applyLayoutSnapshot(snapshot: T): Promise<void>;
|
|
8896
|
-
/**
|
|
8897
|
-
* Called at the start of layout initialization. Adds a new LayoutInstance if the snapshot
|
|
8898
|
-
* contains a single layout.
|
|
8899
|
-
*
|
|
8900
|
-
* Throws if the snapshot contains more than 1 layout, it is expected that the user handles calling
|
|
8901
|
-
* fin.Platform.Layout.create() once for each layout to properly connect it to their UI state.
|
|
8902
|
-
*
|
|
8903
|
-
* @param snapshot
|
|
8904
|
-
* @throws if Object.keys(snapshot).length > 1
|
|
8905
|
-
*/
|
|
8906
8906
|
/**
|
|
8907
8907
|
* @experimental
|
|
8908
8908
|
*
|
|
@@ -8923,31 +8923,28 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
8923
8923
|
/**
|
|
8924
8924
|
* @experimental
|
|
8925
8925
|
*
|
|
8926
|
-
*
|
|
8927
|
-
*
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
/**
|
|
8931
|
-
* @experimental
|
|
8926
|
+
* A hook provided to the consumer when it's time to remove a layout. Use this hook to
|
|
8927
|
+
* update your local state and remove the layout for the given LayoutIdentity. Note that
|
|
8928
|
+
* this hook does not call `fin.Platform.Layout.destroy()` for you, instead it is to
|
|
8929
|
+
* signify to your application it's time to destroy this layout.
|
|
8932
8930
|
*
|
|
8933
|
-
*
|
|
8934
|
-
*
|
|
8935
|
-
* @param
|
|
8936
|
-
* @returns
|
|
8931
|
+
* Note that if the Window Option {@link WindowOptions.closeOnLastViewRemoved} is true, and the last View in this layout is closed, this hook will be called before the window closes.
|
|
8932
|
+
*
|
|
8933
|
+
* @param LayoutIdentity
|
|
8937
8934
|
*/
|
|
8938
|
-
|
|
8935
|
+
removeLayout({ layoutName }: LayoutIdentity): Promise<void>;
|
|
8939
8936
|
/**
|
|
8940
8937
|
* @experimental
|
|
8941
8938
|
*/
|
|
8942
|
-
|
|
8939
|
+
getLayoutIdentityForView(viewIdentity: Identity_5): LayoutIdentity;
|
|
8943
8940
|
/**
|
|
8944
8941
|
* @experimental
|
|
8945
8942
|
*/
|
|
8946
|
-
|
|
8943
|
+
isLayoutVisible({ layoutName }: LayoutIdentity): boolean;
|
|
8947
8944
|
/**
|
|
8948
8945
|
* @experimental
|
|
8949
8946
|
*/
|
|
8950
|
-
|
|
8947
|
+
size(): number;
|
|
8951
8948
|
}
|
|
8952
8949
|
|
|
8953
8950
|
/**
|
|
@@ -10132,6 +10129,7 @@ declare namespace OpenFin_2 {
|
|
|
10132
10129
|
WebPermission,
|
|
10133
10130
|
VerboseWebPermission,
|
|
10134
10131
|
OpenExternalPermission,
|
|
10132
|
+
DeviceInfo,
|
|
10135
10133
|
Permissions_2 as Permissions,
|
|
10136
10134
|
PlatformWindowCreationOptions,
|
|
10137
10135
|
PlatformWindowOptions,
|
|
@@ -10289,7 +10287,6 @@ declare namespace OpenFin_2 {
|
|
|
10289
10287
|
InitLayoutOptions,
|
|
10290
10288
|
LayoutManagerConstructor,
|
|
10291
10289
|
LayoutManagerOverride,
|
|
10292
|
-
LayoutInstance,
|
|
10293
10290
|
LayoutManager,
|
|
10294
10291
|
CreateLayoutOptions,
|
|
10295
10292
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
|
@@ -10481,6 +10478,7 @@ declare type Permissions_2 = {
|
|
|
10481
10478
|
Application?: Partial<ApplicationPermissions>;
|
|
10482
10479
|
System?: Partial<SystemPermissions>;
|
|
10483
10480
|
webAPIs?: WebPermission[];
|
|
10481
|
+
devices?: DeviceInfo[];
|
|
10484
10482
|
};
|
|
10485
10483
|
|
|
10486
10484
|
declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
|
|
@@ -17647,7 +17645,7 @@ declare namespace WebContentsEvents {
|
|
|
17647
17645
|
* `clipboard-read`: Request access to read from the clipboard.<br>
|
|
17648
17646
|
* `clipboard-sanitized-write`: Request access to write to the clipboard.
|
|
17649
17647
|
*/
|
|
17650
|
-
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | OpenExternalPermission;
|
|
17648
|
+
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | 'hid' | 'usb' | OpenExternalPermission;
|
|
17651
17649
|
|
|
17652
17650
|
/**
|
|
17653
17651
|
* Object representing headers and their values, where the
|
package/out/mock.d.ts
CHANGED
|
@@ -3730,7 +3730,7 @@ declare type ConstWindowOptions = {
|
|
|
3730
3730
|
/**
|
|
3731
3731
|
* @defaultValue true
|
|
3732
3732
|
*
|
|
3733
|
-
*
|
|
3733
|
+
* Setting this to false would keep the Window alive even if all its Views were closed.
|
|
3734
3734
|
* This is meant for advanced users and should be used with caution.
|
|
3735
3735
|
* Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
|
|
3736
3736
|
* Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
|
|
@@ -3740,7 +3740,8 @@ declare type ConstWindowOptions = {
|
|
|
3740
3740
|
/**
|
|
3741
3741
|
* @defaultValue 'all'
|
|
3742
3742
|
*
|
|
3743
|
-
*
|
|
3743
|
+
* When `closeOnLastViewRemoved` is set to true, determines which views prevent closing the window.
|
|
3744
|
+
+ * Defaults to `all`. You may want to switch this to `layout` if using View closeBehavior: 'hide'.
|
|
3744
3745
|
* **NOTE:** - This option is ignored in non-Platforms apps.
|
|
3745
3746
|
*/
|
|
3746
3747
|
viewsPreventingClose: 'all' | 'layout';
|
|
@@ -4687,6 +4688,14 @@ declare type DestroyedEvent = BaseEvent_4 & {
|
|
|
4687
4688
|
type: 'destroyed';
|
|
4688
4689
|
};
|
|
4689
4690
|
|
|
4691
|
+
/**
|
|
4692
|
+
* @interface
|
|
4693
|
+
*/
|
|
4694
|
+
declare type DeviceInfo = {
|
|
4695
|
+
vendorId: string | number;
|
|
4696
|
+
productId: string | number;
|
|
4697
|
+
};
|
|
4698
|
+
|
|
4690
4699
|
/**
|
|
4691
4700
|
* Generated when a page's theme color changes. This is usually due to encountering a meta tag.
|
|
4692
4701
|
* @interface
|
|
@@ -5152,7 +5161,10 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
|
5152
5161
|
} : never;
|
|
5153
5162
|
|
|
5154
5163
|
declare interface Environment {
|
|
5155
|
-
initLayout(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<
|
|
5164
|
+
initLayout(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<{
|
|
5165
|
+
singleInstance: any | undefined;
|
|
5166
|
+
layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>;
|
|
5167
|
+
}>;
|
|
5156
5168
|
createLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.CreateLayoutOptions): Promise<void>;
|
|
5157
5169
|
destroyLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, layoutIdentity: OpenFin_2.LayoutIdentity): Promise<void>;
|
|
5158
5170
|
initPlatform(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, ...args: Parameters<OpenFin_2.Fin['Platform']['init']>): ReturnType<OpenFin_2.Fin['Platform']['init']>;
|
|
@@ -7577,7 +7589,7 @@ declare class InteropBroker extends Base {
|
|
|
7577
7589
|
* // }
|
|
7578
7590
|
* ```
|
|
7579
7591
|
*
|
|
7580
|
-
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/
|
|
7592
|
+
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/Metadata#intentresolution).
|
|
7581
7593
|
*
|
|
7582
7594
|
* @param contextForIntent Data passed between entities and applications.
|
|
7583
7595
|
* @param clientIdentity Identity of the Client making the request.
|
|
@@ -8993,28 +9005,6 @@ declare type LayoutInitializedEvent = BaseEvent_5 & {
|
|
|
8993
9005
|
})[];
|
|
8994
9006
|
};
|
|
8995
9007
|
|
|
8996
|
-
/**
|
|
8997
|
-
* @interface @experimental @internal
|
|
8998
|
-
*
|
|
8999
|
-
* **NOTE**: Internal use only. This type is reserved for Workspace Browser implementation.
|
|
9000
|
-
*
|
|
9001
|
-
* Responsible for handling all layout management and renderering
|
|
9002
|
-
*/
|
|
9003
|
-
declare type LayoutInstance = {
|
|
9004
|
-
identity: LayoutIdentity;
|
|
9005
|
-
getFrameSnapshot: () => Promise<LayoutOptions>;
|
|
9006
|
-
addView: (payload: AddViewOptions) => Promise<View_2>;
|
|
9007
|
-
closeView: (viewIdentity: Identity_5) => Promise<void>;
|
|
9008
|
-
removeView: (viewConfig: Identity_5 | ViewState) => Promise<View_2>;
|
|
9009
|
-
replaceView: (payload: ReplaceViewOptions) => Promise<View_2>;
|
|
9010
|
-
getViews: () => LayoutComponent[];
|
|
9011
|
-
getCurrentViews: () => Identity_5[];
|
|
9012
|
-
startReplaceLayout: (payload: ReplaceLayoutOptions) => Promise<void>;
|
|
9013
|
-
applyPreset: (payload: PresetLayoutOptions_2) => void;
|
|
9014
|
-
isVisible: () => boolean;
|
|
9015
|
-
destroy: () => Promise<void>;
|
|
9016
|
-
};
|
|
9017
|
-
|
|
9018
9008
|
/**
|
|
9019
9009
|
* Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
|
|
9020
9010
|
* to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot}.
|
|
@@ -9042,7 +9032,7 @@ declare type LayoutItemConfig = {
|
|
|
9042
9032
|
*
|
|
9043
9033
|
* **NOTE**: Internal use only. This type is reserved for Workspace Browser implementation.
|
|
9044
9034
|
*
|
|
9045
|
-
* Responsible for aggergating all layout snapshots and storing
|
|
9035
|
+
* Responsible for aggergating all layout snapshots and storing layout instances
|
|
9046
9036
|
*/
|
|
9047
9037
|
declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
9048
9038
|
/**
|
|
@@ -9066,16 +9056,6 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
9066
9056
|
* @throws if Object.keys(snapshot).length > 1
|
|
9067
9057
|
*/
|
|
9068
9058
|
applyLayoutSnapshot(snapshot: T): Promise<void>;
|
|
9069
|
-
/**
|
|
9070
|
-
* Called at the start of layout initialization. Adds a new LayoutInstance if the snapshot
|
|
9071
|
-
* contains a single layout.
|
|
9072
|
-
*
|
|
9073
|
-
* Throws if the snapshot contains more than 1 layout, it is expected that the user handles calling
|
|
9074
|
-
* fin.Platform.Layout.create() once for each layout to properly connect it to their UI state.
|
|
9075
|
-
*
|
|
9076
|
-
* @param snapshot
|
|
9077
|
-
* @throws if Object.keys(snapshot).length > 1
|
|
9078
|
-
*/
|
|
9079
9059
|
/**
|
|
9080
9060
|
* @experimental
|
|
9081
9061
|
*
|
|
@@ -9096,31 +9076,28 @@ declare interface LayoutManager<T extends LayoutSnapshot> {
|
|
|
9096
9076
|
/**
|
|
9097
9077
|
* @experimental
|
|
9098
9078
|
*
|
|
9099
|
-
*
|
|
9100
|
-
*
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
/**
|
|
9104
|
-
* @experimental
|
|
9079
|
+
* A hook provided to the consumer when it's time to remove a layout. Use this hook to
|
|
9080
|
+
* update your local state and remove the layout for the given LayoutIdentity. Note that
|
|
9081
|
+
* this hook does not call `fin.Platform.Layout.destroy()` for you, instead it is to
|
|
9082
|
+
* signify to your application it's time to destroy this layout.
|
|
9105
9083
|
*
|
|
9106
|
-
*
|
|
9107
|
-
*
|
|
9108
|
-
* @param
|
|
9109
|
-
* @returns
|
|
9084
|
+
* Note that if the Window Option {@link WindowOptions.closeOnLastViewRemoved} is true, and the last View in this layout is closed, this hook will be called before the window closes.
|
|
9085
|
+
*
|
|
9086
|
+
* @param LayoutIdentity
|
|
9110
9087
|
*/
|
|
9111
|
-
|
|
9088
|
+
removeLayout({ layoutName }: LayoutIdentity): Promise<void>;
|
|
9112
9089
|
/**
|
|
9113
9090
|
* @experimental
|
|
9114
9091
|
*/
|
|
9115
|
-
|
|
9092
|
+
getLayoutIdentityForView(viewIdentity: Identity_5): LayoutIdentity;
|
|
9116
9093
|
/**
|
|
9117
9094
|
* @experimental
|
|
9118
9095
|
*/
|
|
9119
|
-
|
|
9096
|
+
isLayoutVisible({ layoutName }: LayoutIdentity): boolean;
|
|
9120
9097
|
/**
|
|
9121
9098
|
* @experimental
|
|
9122
9099
|
*/
|
|
9123
|
-
|
|
9100
|
+
size(): number;
|
|
9124
9101
|
}
|
|
9125
9102
|
|
|
9126
9103
|
/**
|
|
@@ -10480,6 +10457,7 @@ declare namespace OpenFin_2 {
|
|
|
10480
10457
|
WebPermission,
|
|
10481
10458
|
VerboseWebPermission,
|
|
10482
10459
|
OpenExternalPermission,
|
|
10460
|
+
DeviceInfo,
|
|
10483
10461
|
Permissions_2 as Permissions,
|
|
10484
10462
|
PlatformWindowCreationOptions,
|
|
10485
10463
|
PlatformWindowOptions,
|
|
@@ -10637,7 +10615,6 @@ declare namespace OpenFin_2 {
|
|
|
10637
10615
|
InitLayoutOptions,
|
|
10638
10616
|
LayoutManagerConstructor,
|
|
10639
10617
|
LayoutManagerOverride,
|
|
10640
|
-
LayoutInstance,
|
|
10641
10618
|
LayoutManager,
|
|
10642
10619
|
CreateLayoutOptions,
|
|
10643
10620
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
|
@@ -10829,6 +10806,7 @@ declare type Permissions_2 = {
|
|
|
10829
10806
|
Application?: Partial<ApplicationPermissions>;
|
|
10830
10807
|
System?: Partial<SystemPermissions>;
|
|
10831
10808
|
webAPIs?: WebPermission[];
|
|
10809
|
+
devices?: DeviceInfo[];
|
|
10832
10810
|
};
|
|
10833
10811
|
|
|
10834
10812
|
declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
|
|
@@ -18188,7 +18166,7 @@ declare namespace WebContentsEvents {
|
|
|
18188
18166
|
* `clipboard-read`: Request access to read from the clipboard.<br>
|
|
18189
18167
|
* `clipboard-sanitized-write`: Request access to write to the clipboard.
|
|
18190
18168
|
*/
|
|
18191
|
-
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | OpenExternalPermission;
|
|
18169
|
+
declare type WebPermission = 'audio' | 'video' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'clipboard-read' | 'clipboard-sanitized-write' | 'hid' | 'usb' | OpenExternalPermission;
|
|
18192
18170
|
|
|
18193
18171
|
/**
|
|
18194
18172
|
* Object representing headers and their values, where the
|
package/out/mock.js
CHANGED
|
@@ -3463,7 +3463,7 @@ function requireView () {
|
|
|
3463
3463
|
* * {@link ViewModule} contains static members of the `View` API, accessible through `fin.View`.
|
|
3464
3464
|
* * {@link View} describes an instance of an OpenFin View, e.g. as returned by `fin.View.getCurrent`.
|
|
3465
3465
|
*
|
|
3466
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
3466
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
3467
3467
|
* both of these were documented on the same page.
|
|
3468
3468
|
*
|
|
3469
3469
|
* @packageDocumentation
|
|
@@ -4604,7 +4604,7 @@ function requireApplication () {
|
|
|
4604
4604
|
* * {@link ApplicationModule} contains static members of the `Application` API, accessible through `fin.Application`.
|
|
4605
4605
|
* * {@link Application} describes an instance of an OpenFin Application, e.g. as returned by `fin.Application.getCurrent`.
|
|
4606
4606
|
*
|
|
4607
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
4607
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
4608
4608
|
* both of these were documented on the same page.
|
|
4609
4609
|
*
|
|
4610
4610
|
* @packageDocumentation
|
|
@@ -6661,7 +6661,7 @@ function requireWindow () {
|
|
|
6661
6661
|
* * {@link _WindowModule} contains static members of the `Window` API, accessible through `fin.Window`.
|
|
6662
6662
|
* * {@link _Window} describes an instance of an OpenFin Window, e.g. as returned by `fin.Window.getCurrent`.
|
|
6663
6663
|
*
|
|
6664
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
6664
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
6665
6665
|
* both of these were documented on the same page.
|
|
6666
6666
|
*
|
|
6667
6667
|
* Underscore prefixing of OpenFin types that alias DOM entities will be fixed in a future version.
|
|
@@ -11415,7 +11415,7 @@ Factory$5.ExternalApplicationModule = ExternalApplicationModule;
|
|
|
11415
11415
|
* * {@link ExternalApplicationModule} contains static members of the `ExternalApplication` type, accessible through `fin.ExternalApplication`.
|
|
11416
11416
|
* * {@link ExternalApplication} describes an instance of an OpenFin ExternalApplication, e.g. as returned by `fin.ExternalApplication.getCurrent`.
|
|
11417
11417
|
*
|
|
11418
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
11418
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
11419
11419
|
* both of these were documented on the same page.
|
|
11420
11420
|
*
|
|
11421
11421
|
* @packageDocumentation
|
|
@@ -11666,7 +11666,7 @@ Factory$4._FrameModule = _FrameModule;
|
|
|
11666
11666
|
* * {@link _FrameModule} contains static members of the `Frame` API, accessible through `fin.Frame`.
|
|
11667
11667
|
* * {@link _Frame} describes an instance of an OpenFin Frame, e.g. as returned by `fin.Frame.getCurrent`.
|
|
11668
11668
|
*
|
|
11669
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
11669
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
11670
11670
|
* both of these were documented on the same page.
|
|
11671
11671
|
*
|
|
11672
11672
|
* Underscore prefixing of OpenFin types that alias DOM entities will be fixed in a future version.
|
|
@@ -13142,18 +13142,17 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13142
13142
|
throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
|
|
13143
13143
|
}
|
|
13144
13144
|
__classPrivateFieldSet$4(this, _LayoutModule_layoutInitializationAttempted, true, "f");
|
|
13145
|
-
|
|
13145
|
+
const result = await this.wire.environment.initLayout(this.fin, this.wire, options);
|
|
13146
|
+
__classPrivateFieldSet$4(this, _LayoutModule_layoutManager, result.layoutManager, "f");
|
|
13146
13147
|
// back-compat ONLY if layoutManagerOverride not provided
|
|
13147
13148
|
if (!options.layoutManagerOverride) {
|
|
13148
|
-
const
|
|
13149
|
-
|
|
13150
|
-
|
|
13151
|
-
return Object.assign(layout, { layoutManager: layoutInstance });
|
|
13149
|
+
const layout = this.wrapSync(result.singleInstance.identity);
|
|
13150
|
+
// Backward compat - undocumented / not typed openfin-layout as layoutManager
|
|
13151
|
+
return Object.assign(layout, { layoutManager: result.singleInstance });
|
|
13152
13152
|
}
|
|
13153
13153
|
// Warn user if they do not create any layouts in the next 10 seconds
|
|
13154
13154
|
setTimeout(() => {
|
|
13155
|
-
|
|
13156
|
-
if (layoutSize === 0) {
|
|
13155
|
+
if (__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").size() === 0) {
|
|
13157
13156
|
console.warn(`[Layout.init] Layout.init was called but no layouts have been created yet. Make sure you ` +
|
|
13158
13157
|
`override LayoutManager.applyLayoutSnapshot, and then call fin.Platform.Layout.create()`);
|
|
13159
13158
|
}
|
|
@@ -13286,7 +13285,7 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layou
|
|
|
13286
13285
|
* * {@link LayoutModule} contains static members of the `Layout` API, accessible through `fin.Platform.Layout`.
|
|
13287
13286
|
* * {@link Layout} describes an instance of an OpenFin Layout, e.g. as returned by `fin.Platform.Layout.getCurrent`.
|
|
13288
13287
|
*
|
|
13289
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
13288
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
13290
13289
|
* both of these were documented on the same page.
|
|
13291
13290
|
*
|
|
13292
13291
|
* @packageDocumentation
|
|
@@ -13567,7 +13566,7 @@ Factory$3.PlatformModule = PlatformModule;
|
|
|
13567
13566
|
* * {@link PlatformModule} contains static members of the `Platform` API, accessible through `fin.Platform`.
|
|
13568
13567
|
* * {@link Platform} describes an instance of an OpenFin Platform, e.g. as returned by `fin.Platform.getCurrent`.
|
|
13569
13568
|
*
|
|
13570
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
13569
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
13571
13570
|
* both of these were documented on the same page.
|
|
13572
13571
|
*
|
|
13573
13572
|
* @packageDocumentation
|
|
@@ -14974,7 +14973,7 @@ function requireInteropBroker () {
|
|
|
14974
14973
|
* // }
|
|
14975
14974
|
* ```
|
|
14976
14975
|
*
|
|
14977
|
-
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/
|
|
14976
|
+
* More information on the IntentResolution type can be found in the [FDC3 documentation](https://fdc3.finos.org/docs/api/ref/Metadata#intentresolution).
|
|
14978
14977
|
*
|
|
14979
14978
|
* @param contextForIntent Data passed between entities and applications.
|
|
14980
14979
|
* @param clientIdentity Identity of the Client making the request.
|
|
@@ -16777,7 +16776,7 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
|
16777
16776
|
* * {@link SnapshotSourceModule} contains static members of the `SnapshotSource` API, accessible through `fin.SnapshotSource`.
|
|
16778
16777
|
* * {@link SnapshotSource} describes an instance of an OpenFin SnapshotSource, e.g. as returned by `fin.SnapshotSource.wrap`.
|
|
16779
16778
|
*
|
|
16780
|
-
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/
|
|
16779
|
+
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/32.114.76.10/index.html),
|
|
16781
16780
|
* both of these were documented on the same page.
|
|
16782
16781
|
*
|
|
16783
16782
|
* @packageDocumentation
|