@openfin/remote-adapter 37.81.30 → 38.81.22

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.
@@ -934,7 +934,7 @@ declare type ApplicationIdentity_2 = {
934
934
  * @interface
935
935
  */
936
936
  declare type ApplicationInfo = {
937
- initialOptions: WithUserAppConfigArgs & (ApplicationCreationOptions | PlatformOptions);
937
+ initialOptions: ApplicationCreationOptions | PlatformOptions;
938
938
  launchMode: string;
939
939
  manifest: Manifest & {
940
940
  [key: string]: any;
@@ -1161,14 +1161,9 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1161
1161
  */
1162
1162
  mainWindowOptions: WindowCreationOptions;
1163
1163
  /**
1164
- * The name of the application.
1164
+ * The name of the application (and the application's main window).
1165
1165
  *
1166
- * @remarks
1167
- * This property is only used for naming the application logging folder, which will be sanitized to remove
1168
- * any special characters, spaces or international characters. Otherwise it's not used and it will be overwritten
1169
- * during startup with the UUID of the application.
1170
- *
1171
- * This property will be deprecated in the future.
1166
+ * If provided, _must_ match `uuid`.
1172
1167
  */
1173
1168
  name: string;
1174
1169
  /**
@@ -1198,7 +1193,9 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1198
1193
  url: string;
1199
1194
  /**
1200
1195
  * The _Unique Universal Identifier_ (UUID) of the application, unique within the set of all other applications
1201
- * running in the OpenFin Runtime.
1196
+ * running in the OpenFin Runtime.
1197
+ *
1198
+ * Note that `name` and `uuid` must match.
1202
1199
  */
1203
1200
  uuid: string;
1204
1201
  /**
@@ -1907,6 +1904,48 @@ declare type BrowserContentCreationRule = BaseContentCreationRule & {
1907
1904
  behavior: 'browser';
1908
1905
  };
1909
1906
 
1907
+ declare interface BrowserWindow {
1908
+ /**
1909
+ * True if the window has been opened and its GoldenLayout instance initialised.
1910
+ */
1911
+ isInitialised: boolean;
1912
+
1913
+ /**
1914
+ * Creates a window configuration object from the Popout.
1915
+ */
1916
+ toConfig(): {
1917
+ dimensions: {
1918
+ width: number;
1919
+ height: number;
1920
+ left: number;
1921
+ top: number;
1922
+ };
1923
+ content: Config;
1924
+ parentId: string;
1925
+ indexInParent: number;
1926
+ };
1927
+
1928
+ /**
1929
+ * Returns the GoldenLayout instance from the child window
1930
+ */
1931
+ getGlInstance(): GoldenLayout_2;
1932
+
1933
+ /**
1934
+ * Returns the native Window object
1935
+ */
1936
+ getWindow(): Window;
1937
+
1938
+ /**
1939
+ * Closes the popout
1940
+ */
1941
+ close(): void;
1942
+
1943
+ /**
1944
+ * Returns the popout to its original position as specified in parentId and indexInParent
1945
+ */
1946
+ popIn(): void;
1947
+ }
1948
+
1910
1949
  /**
1911
1950
  * Extracts a single event type matching the given key from the View {@link Event} union.
1912
1951
  *
@@ -1979,6 +2018,15 @@ declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
1979
2018
  */
1980
2019
  declare type ByType_8<Type extends EventType_8> = Payload_9<Type>;
1981
2020
 
2021
+ /**
2022
+ * Extracts a single event type matching the given key from the Layout DOM {@link Event} union.
2023
+ *
2024
+ * Alias for {@link Payload}, which may read better in source.
2025
+ *
2026
+ * @typeParam Type String key specifying the event to extract
2027
+ */
2028
+ declare type ByType_9<Type extends EventType_9> = Payload_10<Type>;
2029
+
1982
2030
  /**
1983
2031
  * Configuration for page capture.
1984
2032
  *
@@ -3278,6 +3326,31 @@ declare class ColumnOrRow extends LayoutNode {
3278
3326
  getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
3279
3327
  }
3280
3328
 
3329
+ declare interface ComponentConfig extends ItemConfig {
3330
+ /**
3331
+ * The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
3332
+ */
3333
+ componentName: string;
3334
+
3335
+ /**
3336
+ * A serialisable object. Will be passed to the component constructor function and will be the value returned by
3337
+ * container.getState().
3338
+ */
3339
+ componentState?: any;
3340
+ }
3341
+
3342
+ declare interface Config {
3343
+ settings?: Settings;
3344
+ dimensions?: Dimensions;
3345
+ labels?: Labels;
3346
+ content?: ItemConfigType[];
3347
+ /**
3348
+ * (Only on layout config object)
3349
+ * Id of the currently maximised content item
3350
+ */
3351
+ maximisedItemId?: string;
3352
+ }
3353
+
3281
3354
  declare type ConfigWithRuntime = BaseConfig & {
3282
3355
  runtime: RuntimeConfig;
3283
3356
  };
@@ -3679,6 +3752,111 @@ declare type ConstWindowOptions = {
3679
3752
  inheritance?: Partial<InheritableOptions>;
3680
3753
  };
3681
3754
 
3755
+ declare interface Container extends EventEmitter_2 {
3756
+ /**
3757
+ * The current width of the container in pixel
3758
+ */
3759
+ width: number;
3760
+
3761
+ /**
3762
+ * The current height of the container in pixel
3763
+ */
3764
+ height: number;
3765
+
3766
+ /**
3767
+ * A reference to the component-item that controls this container
3768
+ */
3769
+ parent: ContentItem;
3770
+
3771
+ /**
3772
+ * A reference to the tab that controls this container. Will initially be null
3773
+ * (and populated once a tab event has been fired).
3774
+ */
3775
+ tab: Tab;
3776
+
3777
+ /**
3778
+ * The current title of the container
3779
+ */
3780
+ title: string;
3781
+
3782
+ /*
3783
+ * A reference to the GoldenLayout instance this container belongs to
3784
+ */
3785
+ layoutManager: GoldenLayout_2;
3786
+
3787
+ /**
3788
+ * True if the item is currently hidden
3789
+ */
3790
+ isHidden: boolean;
3791
+
3792
+ /**
3793
+ * Overwrites the components state with the provided value. To only change parts of the componentState see
3794
+ * extendState below. This is the main mechanism for saving the state of a component. This state will be the
3795
+ * value of componentState when layout.toConfig() is called and will be passed back to the component's
3796
+ * constructor function. It will also be used when the component is opened in a new window.
3797
+ * @param state A serialisable object
3798
+ */
3799
+ setState(state: any): void;
3800
+
3801
+ /**
3802
+ * The same as setState but does not emit 'stateChanged' event
3803
+ * @param {serialisable} state
3804
+ */
3805
+ setStateSkipEvent(state: any): void;
3806
+
3807
+ /**
3808
+ * This is similar to setState, but merges the provided state into the current one, rather than overwriting it.
3809
+ * @param state A serialisable object
3810
+ */
3811
+ extendState(state: any): void;
3812
+
3813
+ /**
3814
+ * Returns the current state.
3815
+ */
3816
+ getState(): any;
3817
+
3818
+ /**
3819
+ * Returns the container's inner element as a jQuery element
3820
+ */
3821
+ getElement(): JQuery;
3822
+
3823
+ /**
3824
+ * hides the container or returns false if hiding it is not possible
3825
+ */
3826
+ hide(): boolean;
3827
+
3828
+ /**
3829
+ * shows the container or returns false if showing it is not possible
3830
+ */
3831
+ show(): boolean;
3832
+
3833
+ /**
3834
+ * Sets the container to the specified size or returns false if that's not possible
3835
+ * @param width the new width in pixel
3836
+ * @param height the new height in pixel
3837
+ */
3838
+ setSize(width: number, height: number): boolean;
3839
+
3840
+ /**
3841
+ * Sets the item's title to the provided value. Triggers titleChanged and stateChanged events
3842
+ * @param title the new title
3843
+ */
3844
+ setTitle(title: string): void;
3845
+
3846
+ /**
3847
+ * Closes the container or returns false if that is not possible
3848
+ */
3849
+ close(): boolean;
3850
+ }
3851
+
3852
+ /**
3853
+ * Generated when a Layout Container Component was created.
3854
+ * @interface
3855
+ */
3856
+ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3857
+ type: 'container-created';
3858
+ };
3859
+
3682
3860
  /**
3683
3861
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3684
3862
  */
@@ -3752,6 +3930,218 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3752
3930
  disposition: string;
3753
3931
  };
3754
3932
 
3933
+ declare interface ContentItem extends EventEmitter_2 {
3934
+ instance: any;
3935
+ header: any;
3936
+ _splitter: any;
3937
+ /**
3938
+ * This items configuration in its current state
3939
+ */
3940
+ config: ItemConfigType;
3941
+
3942
+ /**
3943
+ * The type of the item. Can be row, column, stack, component or root
3944
+ */
3945
+ type: ItemType;
3946
+
3947
+ /**
3948
+ * An array of items that are children of this item
3949
+ */
3950
+ contentItems: ContentItem[];
3951
+
3952
+ container: Container;
3953
+ /**
3954
+ * The item that is this item's parent (or null if the item is root)
3955
+ */
3956
+ parent: ContentItem;
3957
+
3958
+ /**
3959
+ * A String or array of identifiers if provided in the configuration
3960
+ */
3961
+ id: string;
3962
+
3963
+ /**
3964
+ * True if the item had been initialised
3965
+ */
3966
+ isInitialised: boolean;
3967
+
3968
+ /**
3969
+ * True if the item is maximised
3970
+ */
3971
+ isMaximised: boolean;
3972
+
3973
+ /**
3974
+ * True if the item is the layout's root item
3975
+ */
3976
+ isRoot: boolean;
3977
+
3978
+ /**
3979
+ * True if the item is a row
3980
+ */
3981
+ isRow: boolean;
3982
+
3983
+ /**
3984
+ * True if the item is a column
3985
+ */
3986
+ isColumn: boolean;
3987
+
3988
+ /**
3989
+ * True if the item is a stack
3990
+ */
3991
+ isStack: boolean;
3992
+
3993
+ /**
3994
+ * True if the item is a component
3995
+ */
3996
+ isComponent: boolean;
3997
+
3998
+ /**
3999
+ * A reference to the layoutManager that controls this item
4000
+ */
4001
+ layoutManager: any;
4002
+
4003
+ /**
4004
+ * The item's outer element
4005
+ */
4006
+ element: JQuery;
4007
+
4008
+ /**
4009
+ * The item's inner element. Can be the same as the outer element.
4010
+ */
4011
+ childElementContainer: Container;
4012
+
4013
+ /**
4014
+ * Adds an item as a child to this item. If the item is already a part of a layout it will be removed
4015
+ * from its original position before adding it to this item.
4016
+ * @param itemOrItemConfig A content item (or tree of content items) or an ItemConfiguration to create the item from
4017
+ * @param index last index An optional index that determines at which position the new item should be added. Default: last index.
4018
+ */
4019
+ addChild(itemOrItemConfig: ContentItem | ItemConfigType, index?: number): void;
4020
+
4021
+ /**
4022
+ * Destroys the item and all it's children
4023
+ * @param contentItem The contentItem that should be removed
4024
+ * @param keepChild If true the item won't be destroyed. (Use cautiosly, if the item isn't destroyed it's up to you to destroy it later). Default: false.
4025
+ */
4026
+ removeChild(contentItem: ContentItem, keepChild?: boolean): void;
4027
+
4028
+ /**
4029
+ * The contentItem that should be removed
4030
+ * @param oldChild ContentItem The contentItem that should be removed
4031
+ * @param newChild A content item (or tree of content items) or an ItemConfiguration to create the item from
4032
+ */
4033
+ replaceChild(oldChild: ContentItem, newChild: ContentItem | ItemConfigType): void;
4034
+
4035
+ /**
4036
+ * Updates the items size. To actually assign a new size from within a component, use container.setSize( width, height )
4037
+ */
4038
+ setSize(): void;
4039
+
4040
+ /**
4041
+ * Sets the item's title to the provided value. Triggers titleChanged and stateChanged events
4042
+ * @param title the new title
4043
+ */
4044
+ setTitle(title: string): void;
4045
+
4046
+ /**
4047
+ * A powerful, yet admittedly confusing method to recursively call methods on items in a tree. Usually you wouldn't need
4048
+ * to use it directly, but it's used internally to setSizes, destroy parts of the item tree etc.
4049
+ * @param functionName The name of the method to invoke
4050
+ * @param functionArguments An array of arguments to pass to every function
4051
+ * @param bottomUp If true, the method is invoked on the lowest parts of the tree first and then bubbles upwards. Default: false
4052
+ * @param skipSelf If true, the method will only be invoked on the item's children, but not on the item itself. Default: false
4053
+ */
4054
+ callDownwards(functionName: string, functionArguments?: any[], bottomUp?: boolean, skipSelf?: boolean): void;
4055
+
4056
+ /**
4057
+ * Emits an event that bubbles up the item tree until it reaches the root element (and after a delay the layout manager). Useful e.g. for indicating state changes.
4058
+ */
4059
+ emitBubblingEvent(name: string): void;
4060
+
4061
+ /**
4062
+ * Convenience method for item.parent.removeChild( item )
4063
+ */
4064
+ remove(): void;
4065
+
4066
+ /**
4067
+ * Removes the item from its current position in the layout and opens it in a window
4068
+ */
4069
+ popout(): BrowserWindow;
4070
+
4071
+ /**
4072
+ * Maximises the item or minimises it if it's already maximised
4073
+ */
4074
+ toggleMaximise(): void;
4075
+
4076
+ /**
4077
+ * Selects the item. Only relevant if settings.selectionEnabled is set to true
4078
+ */
4079
+ select(): void;
4080
+
4081
+ /**
4082
+ * Unselects the item. Only relevant if settings.selectionEnabled is set to true
4083
+ */
4084
+ deselect(): void;
4085
+
4086
+ /**
4087
+ * Returns true if the item has the specified id or false if not
4088
+ * @param id An id to check for
4089
+ */
4090
+ hasId(id: string): boolean;
4091
+
4092
+ /**
4093
+ * Only Stacks have this method! It's the programmatical equivalent of clicking a tab.
4094
+ * @param contentItem The new active content item
4095
+ * @param preventFocus [OpenFin Custom] Indicates to openfin that the view should not be focused when activated.
4096
+ */
4097
+ // (CORE-198)[../docs/golden-layout-changelog.md#CORE-198 stack.setActiveView]
4098
+ setActiveContentItem(contentItem: ContentItem, preventFocus?: boolean): void;
4099
+
4100
+ /**
4101
+ * Only Stacks have this method! Returns the currently selected contentItem.
4102
+ */
4103
+ getActiveContentItem(): ContentItem;
4104
+
4105
+ /**
4106
+ * Adds an id to an item or does nothing if the id is already present
4107
+ * @param id The id to be added
4108
+ */
4109
+ addId(id: string): void;
4110
+
4111
+ /**
4112
+ * Removes an id from an item or throws an error if the id couldn't be found
4113
+ * @param id The id to be removed
4114
+ */
4115
+ removeId(id: string): void;
4116
+
4117
+ /**
4118
+ * Calls filterFunction recursively for every item in the tree. If the function returns true the item is added to the resulting array
4119
+ * @param filterFunction A function that determines whether an item matches certain criteria
4120
+ */
4121
+ getItemsByFilter(filterFunction: (contentItem: ContentItem) => boolean): ContentItem[];
4122
+
4123
+ /**
4124
+ * Returns all items with the specified id.
4125
+ * @param id An id specified in the itemConfig
4126
+ */
4127
+ getItemsById(id: string | string[]): ContentItem[];
4128
+
4129
+ /**
4130
+ * Returns all items with the specified type
4131
+ * @param type 'row', 'column', 'stack', 'component' or 'root'
4132
+ */
4133
+ getItemsByType(type: string): ContentItem[];
4134
+
4135
+ /**
4136
+ * Returns all instances of the component with the specified componentName
4137
+ * @param componentName a componentName as specified in the itemConfig
4138
+ */
4139
+ getComponentsByName(componentName: string): any;
4140
+
4141
+ _contentAreaDimensions: any;
4142
+ _$getArea: () => any;
4143
+ }
4144
+
3755
4145
  /**
3756
4146
  * Restrict navigation to URLs that match an allowed pattern.
3757
4147
  * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
@@ -4179,6 +4569,46 @@ declare type DidFinishLoadEvent = NamedEvent & {
4179
4569
  type: 'did-finish-load';
4180
4570
  };
4181
4571
 
4572
+ declare interface Dimensions {
4573
+ /**
4574
+ * The width of the borders between the layout items in pixel. Please note: The actual draggable area is wider
4575
+ * than the visible one, making it safe to set this to small values without affecting usability.
4576
+ * Default: 5
4577
+ */
4578
+ borderWidth?: number;
4579
+
4580
+ /**
4581
+ * The minimum height an item can be resized to (in pixel).
4582
+ * Default: 10
4583
+ */
4584
+ minItemHeight?: number;
4585
+
4586
+ /**
4587
+ * The minimum width an item can be resized to (in pixel).
4588
+ * Default: 10
4589
+ */
4590
+ minItemWidth?: number;
4591
+
4592
+ /**
4593
+ * The height of the header elements in pixel. This can be changed, but your theme's header css needs to be
4594
+ * adjusted accordingly.
4595
+ * Default: 20
4596
+ */
4597
+ headerHeight?: number;
4598
+
4599
+ /**
4600
+ * The width of the element that appears when an item is dragged (in pixel).
4601
+ * Default: 300
4602
+ */
4603
+ dragProxyWidth?: number;
4604
+
4605
+ /**
4606
+ * The height of the element that appears when an item is dragged (in pixel).
4607
+ * Default: 200
4608
+ */
4609
+ dragProxyHeight?: number;
4610
+ }
4611
+
4182
4612
  /**
4183
4613
  * @interface
4184
4614
  */
@@ -4271,7 +4701,14 @@ declare type DomainApiSettings = {
4271
4701
  *
4272
4702
  * @defaultValue 'global'
4273
4703
  */
4274
- fin: InjectionType;
4704
+ fin?: InjectionType;
4705
+ /**
4706
+ * API permissions for domains matched to the current {@link DomainSettingsRule}.
4707
+ *
4708
+ * @remarks If an application manifest includes this property in {@link DomainSettings.default},
4709
+ * then {@link WindowOptions.permissions} and {@link ViewOptions.permissions} will be **ignored**.
4710
+ */
4711
+ permissions?: Permissions_2;
4275
4712
  };
4276
4713
 
4277
4714
  /**
@@ -4428,6 +4865,8 @@ declare type Dpi = {
4428
4865
  vertical?: number;
4429
4866
  };
4430
4867
 
4868
+ declare interface DragSource {}
4869
+
4431
4870
  /**
4432
4871
  * Generated when a window has been embedded.
4433
4872
  * @interface
@@ -4603,6 +5042,7 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
4603
5042
  } : never;
4604
5043
 
4605
5044
  declare interface Environment {
5045
+ layoutAllowedInContext(fin: OpenFin.Fin<OpenFin.EntityType>): boolean;
4606
5046
  initLayoutManager(fin: OpenFin.Fin<OpenFin.EntityType>, wire: Transport, options: OpenFin.InitLayoutOptions): Promise<OpenFin.LayoutManager<OpenFin.LayoutSnapshot>>;
4607
5047
  applyLayoutSnapshot(fin: OpenFin.Fin<OpenFin.EntityType>, layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.InitLayoutOptions): Promise<void>;
4608
5048
  createLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.CreateLayoutOptions): Promise<void>;
@@ -4665,6 +5105,12 @@ declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotApplie
4665
5105
  */
4666
5106
  declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent;
4667
5107
 
5108
+ /**
5109
+ * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by the HTMLElement Layout container.
5110
+ * Events are discriminated by {@link LayoutDOMEvent.type}.
5111
+ */
5112
+ declare type Event_12 = TabCreatedEvent | TabClosedEvent | TabDroppedEvent | ContainerCreatedEvent | LayoutStateChangedEvent;
5113
+
4668
5114
  /**
4669
5115
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link Channel}. Events are
4670
5116
  * discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Channel` can be found
@@ -4733,6 +5179,43 @@ declare class EventAggregator extends EmitterMap {
4733
5179
  dispatchEvent: (message: Message<any>) => boolean;
4734
5180
  }
4735
5181
 
5182
+ declare interface EventEmitter_2 {
5183
+ [x: string]: any;
5184
+ /**
5185
+ * Subscribe to an event
5186
+ * @param eventName The name of the event to describe to
5187
+ * @param callback The function that should be invoked when the event occurs
5188
+ * @param context The value of the this pointer in the callback function
5189
+ */
5190
+ on(eventName: string, callback: Function, context?: any): void;
5191
+
5192
+ /**
5193
+ * Notify listeners of an event and pass arguments along
5194
+ * @param eventName The name of the event to emit
5195
+ */
5196
+ emit(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
5197
+
5198
+ /**
5199
+ * Alias for emit
5200
+ */
5201
+ trigger(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
5202
+
5203
+ /**
5204
+ * Unsubscribes either all listeners if just an eventName is provided, just a specific callback if invoked with
5205
+ * eventName and callback or just a specific callback with a specific context if invoked with all three
5206
+ * arguments.
5207
+ * @param eventName The name of the event to unsubscribe from
5208
+ * @param callback The function that should be invoked when the event occurs
5209
+ * @param context The value of the this pointer in the callback function
5210
+ */
5211
+ unbind(eventName: string, callback?: Function, context?: any): void;
5212
+
5213
+ /**
5214
+ * Alias for unbind
5215
+ */
5216
+ off(eventName: string, callback?: Function, context?: any): void;
5217
+ }
5218
+
4736
5219
  /**
4737
5220
  * Handler for an event on an EventEmitter.
4738
5221
  * @remarks Selects the correct type for the event
@@ -4797,6 +5280,11 @@ declare type EventType_7 = Event_10['type'];
4797
5280
  */
4798
5281
  declare type EventType_8 = Event_11['type'];
4799
5282
 
5283
+ /**
5284
+ * Union of possible `type` values for a {@link LayoutDOMEvent}.
5285
+ */
5286
+ declare type EventType_9 = Event_12['type'];
5287
+
4800
5288
  /* Excluded from this release type: EventWithId */
4801
5289
 
4802
5290
  /* Excluded from this release type: ExcludeRequested */
@@ -5519,51 +6007,298 @@ declare class GlobalHotkey extends EmitterBase<OpenFin.GlobalHotkeyEvent> {
5519
6007
  */
5520
6008
  unregisterAll(): Promise<void>;
5521
6009
  /**
5522
- * Checks if a given hotkey has been registered by an application within the current runtime.
5523
- * @param hotkey a hotkey string
5524
- *
5525
- * @example
5526
- * ```js
5527
- * const hotkey = 'CommandOrControl+X';
5528
- *
5529
- * fin.GlobalHotkey.isRegistered(hotkey)
5530
- * .then((registered) => {
5531
- * console.log(`hotkey ${hotkey} is registered ? ${registered}`);
5532
- * })
5533
- * .catch(err => {
5534
- * console.log('Error unregistering the hotkey', err);
5535
- * });
5536
- * ```
6010
+ * Checks if a given hotkey has been registered by an application within the current runtime.
6011
+ * @param hotkey a hotkey string
6012
+ *
6013
+ * @example
6014
+ * ```js
6015
+ * const hotkey = 'CommandOrControl+X';
6016
+ *
6017
+ * fin.GlobalHotkey.isRegistered(hotkey)
6018
+ * .then((registered) => {
6019
+ * console.log(`hotkey ${hotkey} is registered ? ${registered}`);
6020
+ * })
6021
+ * .catch(err => {
6022
+ * console.log('Error unregistering the hotkey', err);
6023
+ * });
6024
+ * ```
6025
+ */
6026
+ isRegistered(hotkey: string): Promise<boolean>;
6027
+ }
6028
+
6029
+ /**
6030
+ * @deprecated Renamed to {@link Event}.
6031
+ */
6032
+ declare type GlobalHotkeyEvent = Event_9;
6033
+
6034
+ declare type GlobalHotkeyEvent_2 = Events.GlobalHotkeyEvents.GlobalHotkeyEvent;
6035
+
6036
+ declare namespace GlobalHotkeyEvents {
6037
+ export {
6038
+ BaseEvent_8 as BaseEvent,
6039
+ RegisteredEvent,
6040
+ UnregisteredEvent,
6041
+ Event_9 as Event,
6042
+ GlobalHotkeyEvent,
6043
+ EventType_6 as EventType,
6044
+ GlobalHotkeyEventType,
6045
+ Payload_7 as Payload,
6046
+ ByType_6 as ByType
6047
+ }
6048
+ }
6049
+
6050
+ /**
6051
+ * @deprecated Renamed to {@link EventType}.
6052
+ */
6053
+ declare type GlobalHotkeyEventType = EventType_6;
6054
+
6055
+ declare namespace GoldenLayout {
6056
+ export {
6057
+ GoldenLayout_2 as GoldenLayout,
6058
+ ItemConfigType,
6059
+ Settings,
6060
+ Dimensions,
6061
+ Labels,
6062
+ ItemType,
6063
+ ItemConfig,
6064
+ ComponentConfig,
6065
+ ReactComponentConfig,
6066
+ Config,
6067
+ ContentItem,
6068
+ Container,
6069
+ DragSource,
6070
+ BrowserWindow,
6071
+ Header,
6072
+ TabDragListener,
6073
+ Tab,
6074
+ EventEmitter_2 as EventEmitter
6075
+ }
6076
+ }
6077
+
6078
+ declare class GoldenLayout_2 implements EventEmitter_2 {
6079
+ /**
6080
+ * The topmost item in the layout item tree. In browser terms: Think of the GoldenLayout instance as window
6081
+ * object and of goldenLayout.root as the document.
6082
+ */
6083
+ root: ContentItem;
6084
+
6085
+ /**
6086
+ * A reference to the (jQuery) DOM element containing the layout
6087
+ */
6088
+ container: JQuery;
6089
+
6090
+ /**
6091
+ * True once the layout item tree has been created and the initialised event has been fired
6092
+ */
6093
+ isInitialised: boolean;
6094
+
6095
+ /**
6096
+ * A reference to the current, extended top level config.
6097
+ *
6098
+ * Don't rely on this object for state saving / serialisation. Use layout.toConfig() instead.
6099
+ */
6100
+ config: Config;
6101
+
6102
+ /**
6103
+ * The currently selected item or null if no item is selected. Only relevant if settings.selectionEnabled is set
6104
+ * to true.
6105
+ */
6106
+ selectedItem: ContentItem;
6107
+
6108
+ /**
6109
+ * The current outer width of the layout in pixels.
6110
+ */
6111
+ width: number;
6112
+
6113
+ /**
6114
+ * The current outer height of the layout in pixels.
6115
+ */
6116
+ height: number;
6117
+
6118
+ /**
6119
+ * An array of BrowserWindow instances
6120
+ */
6121
+ openPopouts: BrowserWindow[];
6122
+
6123
+ /**
6124
+ * True if the layout has been opened as a popout by another layout.
6125
+ */
6126
+ isSubWindow: boolean;
6127
+
6128
+ /**
6129
+ * A singleton instance of EventEmitter that works across windows
6130
+ */
6131
+ eventHub: EventEmitter_2;
6132
+
6133
+ _dragProxy: any;
6134
+
6135
+ dropTargetIndicator: any;
6136
+
6137
+ _isFullPage: boolean;
6138
+
6139
+ _onUnload: any;
6140
+
6141
+ tabDropPlaceholder: any;
6142
+
6143
+ transitionIndicator: any;
6144
+
6145
+ _dragSources: any;
6146
+
6147
+ _resizeFunction: any;
6148
+
6149
+ _unloadFunction: any;
6150
+
6151
+ /**
6152
+ * @param config A GoldenLayout configuration object
6153
+ * @param container The DOM element the layout will be initialised in. Default: document.body
6154
+ */
6155
+ constructor(configuration: Config, container?: Element | HTMLElement | JQuery);
6156
+
6157
+ /*
6158
+ * @param name The name of the component, as referred to by componentName in the component configuration.
6159
+ * @param component A constructor or factory function. Will be invoked with new and two arguments, a
6160
+ * containerobject and a component state
6161
+ */
6162
+ registerComponent(name: String, component: any): void;
6163
+
6164
+ /**
6165
+ * Renders the layout into the container. If init() is called before the document is ready it attaches itself as
6166
+ * a listener to the document and executes once it becomes ready.
6167
+ */
6168
+ init(): void;
6169
+
6170
+ /**
6171
+ * Returns the current state of the layout and its components as a serialisable object.
6172
+ */
6173
+ toConfig(): Config;
6174
+
6175
+ /**
6176
+ * Returns a component that was previously registered with layout.registerComponent().
6177
+ * @param name The name of a previously registered component
6178
+ */
6179
+ getComponent(name: string): any;
6180
+
6181
+ /**
6182
+ * Resizes the layout. If no arguments are provided GoldenLayout measures its container and resizes accordingly.
6183
+ * @param width The outer width the layout should be resized to. Default: The container elements width
6184
+ * @param height The outer height the layout should be resized to. Default: The container elements height
6185
+ */
6186
+ updateSize(width?: number, height?: number): void;
6187
+
6188
+ /**
6189
+ * Destroys the layout. Recursively calls destroy on all components and content items, removes all event
6190
+ * listeners and finally removes itself from the DOM.
6191
+ */
6192
+ destroy(): void;
6193
+
6194
+ /**
6195
+ * Creates a new content item or tree of content items from configuration. Usually you wouldn't call this
6196
+ * directly, but instead use methods like layout.createDragSource(), item.addChild() or item.replaceChild() that
6197
+ * all call this method implicitly.
6198
+ * @param itemConfiguration An item configuration (can be an entire tree of items)
6199
+ * @param parent A parent item
6200
+ */
6201
+ createContentItem(itemConfiguration?: ItemConfigType, parent?: ContentItem): ContentItem;
6202
+
6203
+ /**
6204
+ * Creates a new popout window with configOrContentItem as contents at the position specified in dimensions
6205
+ * @param configOrContentItem The content item or config that will be created in the new window. If a item is
6206
+ * provided its config will be read, if config is provided, only the content key
6207
+ * will be used
6208
+ * @param dimensions A map containing the keys left, top, width and height. Left and top can be negative to
6209
+ * place the window in another screen.
6210
+ * @param parentId The id of the item within the current layout the child window's content will be appended to
6211
+ * when popIn is clicked
6212
+ * @param indexInParent The index at which the child window's contents will be appended to. Default: null
6213
+ */
6214
+ createPopout(
6215
+ configOrContentItem: ItemConfigType | ContentItem,
6216
+ dimensions: {
6217
+ width: number;
6218
+ height: number;
6219
+ left: number;
6220
+ top: number;
6221
+ },
6222
+ parentId?: string,
6223
+ indexInParent?: number
6224
+ ): void;
6225
+
6226
+ /**
6227
+ * Turns a DOM element into a dragSource, meaning that the user can drag the element directly onto the layout
6228
+ * where it turns into a contentItem.
6229
+ * @param element The DOM element that will be turned into a dragSource
6230
+ * @param itemConfiguration An item configuration (can be an entire tree of items)
6231
+ * @return the dragSource that was created. This can be used to remove the
6232
+ * dragSource from the layout later.
6233
+ */
6234
+ createDragSource(element: HTMLElement | JQuery, itemConfiguration: ItemConfigType): DragSource;
6235
+
6236
+ /**
6237
+ * Removes a dragSource from the layout.
6238
+ *
6239
+ * @param dragSource The dragSource to remove
6240
+ */
6241
+ removeDragSource(dragSource: DragSource): void;
6242
+
6243
+ /**
6244
+ * If settings.selectionEnabled is set to true, this allows to select items programmatically.
6245
+ * @param contentItem A ContentItem instance
6246
+ */
6247
+ selectItem(contentItem: ContentItem): void;
6248
+
6249
+ /**
6250
+ * Static method on the GoldenLayout constructor! This method will iterate through a GoldenLayout config object
6251
+ * and replace frequent keys and values with single letter substitutes.
6252
+ * @param config A GoldenLayout configuration object
6253
+ */
6254
+ static minifyConfig(config: any): any;
6255
+
6256
+ /**
6257
+ * Static method on the GoldenLayout constructor! This method will reverse the minifications of minifyConfig.
6258
+ * @param minifiedConfig A minified GoldenLayout configuration object
6259
+ */
6260
+ static unminifyConfig(minifiedConfig: any): any;
6261
+
6262
+ /**
6263
+ * Subscribe to an event
6264
+ * @param eventName The name of the event to describe to
6265
+ * @param callback The function that should be invoked when the event occurs
6266
+ * @param context The value of the this pointer in the callback function
6267
+ */
6268
+ on(eventName: string, callback: Function, context?: any): void;
6269
+
6270
+ /**
6271
+ * Notify listeners of an event and pass arguments along
6272
+ * @param eventName The name of the event to emit
6273
+ */
6274
+ emit(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
6275
+
6276
+ /**
6277
+ * Alias for emit
5537
6278
  */
5538
- isRegistered(hotkey: string): Promise<boolean>;
5539
- }
6279
+ trigger(eventName: string, arg1?: any, arg2?: any, ...argN: any[]): void;
5540
6280
 
5541
- /**
5542
- * @deprecated Renamed to {@link Event}.
5543
- */
5544
- declare type GlobalHotkeyEvent = Event_9;
6281
+ /**
6282
+ * Unsubscribes either all listeners if just an eventName is provided, just a specific callback if invoked with
6283
+ * eventName and callback or just a specific callback with a specific context if invoked with all three
6284
+ * arguments.
6285
+ * @param eventName The name of the event to unsubscribe from
6286
+ * @param callback The function that should be invoked when the event occurs
6287
+ * @param context The value of the this pointer in the callback function
6288
+ */
6289
+ unbind(eventName: string, callback?: Function, context?: any): void;
5545
6290
 
5546
- declare type GlobalHotkeyEvent_2 = Events.GlobalHotkeyEvents.GlobalHotkeyEvent;
6291
+ /**
6292
+ * Alias for unbind
6293
+ */
6294
+ off(eventName: string, callback?: Function, context?: any): void;
5547
6295
 
5548
- declare namespace GlobalHotkeyEvents {
5549
- export {
5550
- BaseEvent_8 as BaseEvent,
5551
- RegisteredEvent,
5552
- UnregisteredEvent,
5553
- Event_9 as Event,
5554
- GlobalHotkeyEvent,
5555
- EventType_6 as EventType,
5556
- GlobalHotkeyEventType,
5557
- Payload_7 as Payload,
5558
- ByType_6 as ByType
5559
- }
6296
+ /**
6297
+ * Internal method that create drop areas on the far edges of window, e.g. far-right of window
6298
+ */
6299
+ _$createRootItemAreas(): void;
5560
6300
  }
5561
6301
 
5562
- /**
5563
- * @deprecated Renamed to {@link EventType}.
5564
- */
5565
- declare type GlobalHotkeyEventType = EventType_6;
5566
-
5567
6302
  /**
5568
6303
  * @interface
5569
6304
  */
@@ -5571,6 +6306,62 @@ declare type GpuInfo = {
5571
6306
  name: string;
5572
6307
  };
5573
6308
 
6309
+ declare interface Header {
6310
+ /**
6311
+ * A reference to the LayoutManager instance
6312
+ */
6313
+ layoutManager: GoldenLayout_2;
6314
+
6315
+ /**
6316
+ * A reference to the Stack this Header belongs to
6317
+ */
6318
+ parent: ContentItem;
6319
+
6320
+ /**
6321
+ * An array of the Tabs within this header
6322
+ */
6323
+ tabs: Tab[];
6324
+
6325
+ /**
6326
+ * The currently selected activeContentItem
6327
+ */
6328
+ activeContentItem: ContentItem;
6329
+
6330
+ /**
6331
+ * The outer (jQuery) DOM element of this Header
6332
+ */
6333
+ element: JQuery;
6334
+
6335
+ /**
6336
+ * The (jQuery) DOM element containing the tabs
6337
+ */
6338
+ tabsContainer: JQuery;
6339
+
6340
+ /**
6341
+ * The (jQuery) DOM element containing the close, maximise and popout button
6342
+ */
6343
+ controlsContainer: JQuery;
6344
+
6345
+ /**
6346
+ * Hides the currently selected contentItem, shows the specified one and highlights its tab.
6347
+ * @param contentItem The content item that will be selected
6348
+ */
6349
+ setActiveContentItem(contentItem: ContentItem): void;
6350
+
6351
+ /**
6352
+ * Creates a new tab and associates it with a content item
6353
+ * @param contentItem The content item the tab will be associated with
6354
+ * @param index A zero based index, specifying the position of the new tab
6355
+ */
6356
+ createTab(contentItem: ContentItem, index?: number): void;
6357
+
6358
+ /**
6359
+ * Finds a tab by its contentItem and removes it
6360
+ * @param contentItem The content item the tab is associated with
6361
+ */
6362
+ removeTab(contentItem: ContentItem): void;
6363
+ }
6364
+
5574
6365
  /**
5575
6366
  * Generated when a View is hidden.
5576
6367
  * @interface
@@ -6796,7 +7587,9 @@ declare class InteropClient extends Base {
6796
7587
  * ```
6797
7588
  *
6798
7589
  *
6799
- * Passing in a context type as the second parameter will cause the handler to only be invoked with that context type.
7590
+ * We are also testing the ability to add a context handler for specific contexts. If you would like to use
7591
+ * this, please make sure you add your context handlers at the top level of your application, on a page that
7592
+ * does not navigate/reload/re-render, to avoid memory leaks. This feature is experimental:
6800
7593
  *
6801
7594
  * ```js
6802
7595
  * function handleInstrumentContext(contextInfo) {
@@ -7178,6 +7971,50 @@ declare class InteropModule extends Base {
7178
7971
  connectSync(name: string, interopConfig?: OpenFin.InteropConfig): InteropClient;
7179
7972
  }
7180
7973
 
7974
+ declare interface ItemConfig {
7975
+ /**
7976
+ * The type of the item. Possible values are 'row', 'column', 'stack', 'component' and 'react-component'.
7977
+ */
7978
+ type: ItemType;
7979
+
7980
+ /**
7981
+ * An array of configurations for items that will be created as children of this item.
7982
+ */
7983
+ content?: ItemConfigType[];
7984
+
7985
+ /**
7986
+ * The width of this item, relative to the other children of its parent in percent
7987
+ */
7988
+ width?: number;
7989
+
7990
+ /**
7991
+ * The height of this item, relative to the other children of its parent in percent
7992
+ */
7993
+ height?: number;
7994
+
7995
+ /**
7996
+ * A String or an Array of Strings. Used to retrieve the item using item.getItemsById()
7997
+ */
7998
+ id?: string | string[];
7999
+
8000
+ /**
8001
+ * Determines if the item is closable. If false, the x on the items tab will be hidden and container.close()
8002
+ * will return false
8003
+ * Default: true
8004
+ */
8005
+ isClosable?: boolean;
8006
+
8007
+ /**
8008
+ * The title of the item as displayed on its tab and on popout windows
8009
+ * Default: componentName or ''
8010
+ */
8011
+ title?: string;
8012
+ }
8013
+
8014
+ declare type ItemConfigType = ItemConfig | ComponentConfig | ReactComponentConfig;
8015
+
8016
+ declare type ItemType = 'row' | 'column' | 'stack' | 'root' | 'component';
8017
+
7181
8018
  /**
7182
8019
  * @interface
7183
8020
  */
@@ -7235,6 +8072,32 @@ declare type JumpListTask = {
7235
8072
  iconIndex?: number;
7236
8073
  };
7237
8074
 
8075
+ declare interface Labels {
8076
+ /**
8077
+ * The tooltip text that appears when hovering over the close icon.
8078
+ * Default: 'close'
8079
+ */
8080
+ close?: string;
8081
+
8082
+ /**
8083
+ * The tooltip text that appears when hovering over the maximise icon.
8084
+ * Default: 'maximise'
8085
+ */
8086
+ maximise?: string;
8087
+
8088
+ /**
8089
+ * The tooltip text that appears when hovering over the minimise icon.
8090
+ * Default: 'minimise'
8091
+ */
8092
+ minimise?: string;
8093
+
8094
+ /**
8095
+ * The tooltip text that appears when hovering over the popout icon.
8096
+ * Default: 'open in new window'
8097
+ */
8098
+ popout?: string;
8099
+ }
8100
+
7238
8101
  /**
7239
8102
  * The LaunchEmitter is an `EventEmitter`. It can listen to app version resolver events.
7240
8103
  *
@@ -7627,6 +8490,32 @@ declare type LayoutComponent = LayoutItemConfig & {
7627
8490
 
7628
8491
  declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
7629
8492
 
8493
+ /**
8494
+ * The base payload for the CustomEvent.detail property for Layout events emitted on the layout container element.
8495
+ */
8496
+ declare type LayoutDOMEvent = Identity_5 & {
8497
+ type: string;
8498
+ topic: 'openfin-DOM-event';
8499
+ tabSelector: string;
8500
+ containerSelector: string;
8501
+ };
8502
+
8503
+ declare type LayoutDOMEvent_2 = LayoutDOMEvents.Event;
8504
+
8505
+ declare namespace LayoutDOMEvents {
8506
+ export {
8507
+ TabCreatedEvent,
8508
+ TabClosedEvent,
8509
+ TabDroppedEvent,
8510
+ ContainerCreatedEvent,
8511
+ LayoutStateChangedEvent,
8512
+ Event_12 as Event,
8513
+ EventType_9 as EventType,
8514
+ Payload_10 as Payload,
8515
+ ByType_9 as ByType
8516
+ }
8517
+ }
8518
+
7630
8519
  declare type LayoutEntitiesClient = ApiClient<LayoutEntitiesController>;
7631
8520
 
7632
8521
  declare type LayoutEntitiesController = {
@@ -7660,7 +8549,7 @@ declare type LayoutEntityDefinition<TLayoutEntityType extends LayoutEntityTypes
7660
8549
  entityId: string;
7661
8550
  };
7662
8551
 
7663
- declare type LayoutEntityTypes = 'column' | 'row' | 'stack';
8552
+ declare type LayoutEntityTypes = Exclude<GoldenLayout.ItemType, 'component' | 'root'>;
7664
8553
 
7665
8554
  /**
7666
8555
  * @interface
@@ -8072,6 +8961,14 @@ declare type LayoutSnapshot = {
8072
8961
  layouts: Record<string, LayoutOptions>;
8073
8962
  };
8074
8963
 
8964
+ /**
8965
+ * Generated when the Layout experiences a state change, for example tabs added/removed.
8966
+ * @interface
8967
+ */
8968
+ declare type LayoutStateChangedEvent = LayoutDOMEvent & {
8969
+ type: 'layout-state-changed';
8970
+ };
8971
+
8075
8972
  /**
8076
8973
  * @interface
8077
8974
  */
@@ -9034,7 +9931,6 @@ declare namespace OpenFin {
9034
9931
  AppVersionError,
9035
9932
  AppVersionRuntimeInfo,
9036
9933
  LaunchEmitter,
9037
- UserAppConfigArgs,
9038
9934
  RvmLaunchOptions,
9039
9935
  ShortCutConfig,
9040
9936
  TerminateExternalRequestType,
@@ -9160,6 +10056,7 @@ declare namespace OpenFin {
9160
10056
  AppVersionCompleteEvent,
9161
10057
  AppVersionRuntimeStatusEvent,
9162
10058
  Events,
10059
+ LayoutDOMEvents,
9163
10060
  BaseEvent_10 as BaseEvent,
9164
10061
  WebContentsEvent_2 as WebContentsEvent,
9165
10062
  SystemEvent_2 as SystemEvent,
@@ -9168,6 +10065,7 @@ declare namespace OpenFin {
9168
10065
  ViewEvent_2 as ViewEvent,
9169
10066
  GlobalHotkeyEvent_2 as GlobalHotkeyEvent,
9170
10067
  FrameEvent_2 as FrameEvent,
10068
+ LayoutDOMEvent_2 as LayoutDOMEvent,
9171
10069
  PlatformEvent_2 as PlatformEvent,
9172
10070
  ExternalApplicationEvent_2 as ExternalApplicationEvent,
9173
10071
  ContextMenuOptions,
@@ -9240,6 +10138,15 @@ declare type Payload<Success extends boolean = boolean, Data = any> = {
9240
10138
  error?: Success extends false ? ErrorPlainObject | undefined : never;
9241
10139
  };
9242
10140
 
10141
+ /**
10142
+ * Extracts a single event type matching the given key from the Layout DOM {@link Event} union.
10143
+ *
10144
+ * @typeParam Type String key specifying the event to extract
10145
+ */
10146
+ declare type Payload_10<Type extends EventType_9> = Extract<Event_12, {
10147
+ type: Type;
10148
+ }>;
10149
+
9243
10150
  /**
9244
10151
  * Extracts a single event type matching the given key from the View {@link Event} union.
9245
10152
  *
@@ -9347,6 +10254,14 @@ declare type PerformanceReportEvent = Performance & BaseEvent_5 & {
9347
10254
 
9348
10255
  /**
9349
10256
  * @interface
10257
+ *
10258
+ * Governs access to OpenFin APIs. Property paths of this literal match call
10259
+ * paths for OpenFin API functions (e.g. `System.launchExternalProcess`), and can
10260
+ * take a value of `true`, `false`, or in some cases an object literal for more-complicated
10261
+ * semantics.
10262
+ *
10263
+ * For a list of APIs that are secure by default (and thus must be granted access via
10264
+ * `permissions`), see https://developers.openfin.co/of-docs/docs/api-security#secured-apis.
9350
10265
  */
9351
10266
  declare type Permissions_2 = {
9352
10267
  Application?: Partial<ApplicationPermissions>;
@@ -11567,6 +12482,18 @@ declare type QueryPermissionResult = {
11567
12482
  rawValue?: unknown;
11568
12483
  };
11569
12484
 
12485
+ declare interface ReactComponentConfig extends ItemConfig {
12486
+ /**
12487
+ * The name of the component as specified in layout.registerComponent. Mandatory if type is 'react-component'
12488
+ */
12489
+ component: string;
12490
+
12491
+ /**
12492
+ * Properties that will be passed to the component and accessible using this.props.
12493
+ */
12494
+ props?: any;
12495
+ }
12496
+
11570
12497
  /**
11571
12498
  * @interface
11572
12499
  */
@@ -11829,7 +12756,7 @@ declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
11829
12756
  declare type RunRequestedEvent_2 = BaseEvents.IdentityEvent & {
11830
12757
  topic: 'application';
11831
12758
  type: 'run-requested';
11832
- userAppConfigArgs: OpenFin.UserAppConfigArgs;
12759
+ userAppConfigArgs: Record<string, any>;
11833
12760
  manifest: OpenFin.Manifest;
11834
12761
  };
11835
12762
 
@@ -11944,7 +12871,7 @@ declare type RvmLaunchOptions = {
11944
12871
  * True if no UI when launching
11945
12872
  */
11946
12873
  noUi?: boolean;
11947
- userAppConfigArgs?: UserAppConfigArgs;
12874
+ userAppConfigArgs?: object;
11948
12875
  /**
11949
12876
  * Timeout in seconds until RVM launch request expires.
11950
12877
  */
@@ -12043,6 +12970,97 @@ declare type SessionContextGroup = {
12043
12970
  }>;
12044
12971
  };
12045
12972
 
12973
+ declare interface Settings {
12974
+ preventSplitterResize?: boolean;
12975
+
12976
+ newTabButton?: {
12977
+ url?: string;
12978
+ };
12979
+
12980
+ /**
12981
+ * If true, tabs can't be dragged into the window.
12982
+ * Default: false
12983
+ */
12984
+ preventDragIn?: boolean;
12985
+
12986
+ /**
12987
+ * If true, tabs can't be dragged out of the window.
12988
+ * Default: false
12989
+ */
12990
+ preventDragOut?: boolean;
12991
+
12992
+ /**
12993
+ * If true, stack headers are the only areas where tabs can be dropped.
12994
+ * Default: false
12995
+ */
12996
+ constrainDragToHeaders?: boolean;
12997
+ /**
12998
+ * Turns headers on or off. If false, the layout will be displayed with splitters only.
12999
+ * Default: true
13000
+ */
13001
+ hasHeaders?: boolean;
13002
+
13003
+ /**
13004
+ * (Unused in Openfin Platform) Constrains the area in which items can be dragged to the layout's container. Will be set to false
13005
+ * automatically when layout.createDragSource() is called.
13006
+ * Default: true
13007
+ */
13008
+ constrainDragToContainer?: boolean;
13009
+
13010
+ /**
13011
+ * If true, the user can re-arrange the layout by dragging items by their tabs to the desired location.
13012
+ * Default: true
13013
+ */
13014
+ reorderEnabled?: boolean;
13015
+
13016
+ /**
13017
+ * If true, the user can select items by clicking on their header. This sets the value of layout.selectedItem to
13018
+ * the clicked item, highlights its header and the layout emits a 'selectionChanged' event.
13019
+ * Default: false
13020
+ */
13021
+ selectionEnabled?: boolean;
13022
+
13023
+ /**
13024
+ * Decides what will be opened in a new window if the user clicks the popout icon. If true the entire stack will
13025
+ * be transferred to the new window, if false only the active component will be opened.
13026
+ * Default: false
13027
+ */
13028
+ popoutWholeStack?: boolean;
13029
+
13030
+ /**
13031
+ * Specifies if an error is thrown when a popout is blocked by the browser (e.g. by opening it programmatically).
13032
+ * If false, the popout call will fail silently.
13033
+ * Default: true
13034
+ */
13035
+ blockedPopoutsThrowError?: boolean;
13036
+
13037
+ /**
13038
+ * Specifies if all popouts should be closed when the page that created them is closed. Popouts don't have a
13039
+ * strong dependency on their parent and can exist on their own, but can be quite annoying to close by hand. In
13040
+ * addition, any changes made to popouts won't be stored after the parent is closed.
13041
+ * Default: true
13042
+ */
13043
+ closePopoutsOnUnload?: boolean;
13044
+
13045
+ /**
13046
+ * Specifies if the popout icon should be displayed in the header-bar.
13047
+ * Default: true
13048
+ */
13049
+ showPopoutIcon?: boolean;
13050
+
13051
+ /**
13052
+ * Specifies if the maximise icon should be displayed in the header-bar.
13053
+ * Default: true
13054
+ */
13055
+ showMaximiseIcon?: boolean;
13056
+
13057
+ /**
13058
+ * Specifies if the close icon should be displayed in the header-bar.
13059
+ * Default: true
13060
+ */
13061
+ showCloseIcon?: boolean;
13062
+ }
13063
+
12046
13064
  /**
12047
13065
  * @interface
12048
13066
  */
@@ -13933,6 +14951,85 @@ declare type SystemShutdownHandler = (shutdownEvent: {
13933
14951
  proceed: () => void;
13934
14952
  }) => void;
13935
14953
 
14954
+ declare interface Tab {
14955
+ _dragListener: TabDragListener;
14956
+
14957
+ /**
14958
+ * True if this tab is the selected tab
14959
+ */
14960
+ isActive: boolean;
14961
+
14962
+ /**
14963
+ * A reference to the header this tab is a child of
14964
+ */
14965
+ header: Header;
14966
+
14967
+ /**
14968
+ * A reference to the content item this tab relates to
14969
+ */
14970
+ contentItem: ContentItem;
14971
+
14972
+ /**
14973
+ * The tabs outer (jQuery) DOM element
14974
+ */
14975
+ element: JQuery;
14976
+
14977
+ /**
14978
+ * The (jQuery) DOM element containing the title
14979
+ */
14980
+ titleElement: JQuery;
14981
+
14982
+ /**
14983
+ * The (jQuery) DOM element that closes the tab
14984
+ */
14985
+ closeElement: JQuery;
14986
+
14987
+ /**
14988
+ * Sets the tab's title. Does not affect the contentItem's title!
14989
+ * @param title The new title
14990
+ */
14991
+ setTitle(title: string): void;
14992
+
14993
+ /**
14994
+ * Sets this tab's active state. To programmatically switch tabs, use header.setActiveContentItem( item ) instead.
14995
+ * @param isActive Whether the tab is active
14996
+ */
14997
+ setActive(isActive: boolean): void;
14998
+ }
14999
+
15000
+ /**
15001
+ * Generated when a Layout Tab Component was closed.
15002
+ * @interface
15003
+ */
15004
+ declare type TabClosedEvent = LayoutDOMEvent & {
15005
+ type: 'tab-closed';
15006
+ url: string;
15007
+ };
15008
+
15009
+ /**
15010
+ * Generated when a Layout Tab Component was created.
15011
+ * @interface
15012
+ */
15013
+ declare type TabCreatedEvent = LayoutDOMEvent & {
15014
+ type: 'tab-created';
15015
+ };
15016
+
15017
+ declare interface TabDragListener extends EventEmitter_2 {
15018
+ /**
15019
+ * A reference to the content item this tab relates to
15020
+ */
15021
+ contentItem: ContentItem;
15022
+ }
15023
+
15024
+ /**
15025
+ * Generated when a Layout Tab Component was dropped.
15026
+ * @interface
15027
+ */
15028
+ declare type TabDroppedEvent = LayoutDOMEvent & {
15029
+ type: 'tab-dropped';
15030
+ url: string;
15031
+ };
15032
+
13936
15033
  /**
13937
15034
  * A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.
13938
15035
  */
@@ -14298,11 +15395,6 @@ declare type UrlChangedEvent = BaseUrlEvent & ({
14298
15395
  httpStatusText: string;
14299
15396
  });
14300
15397
 
14301
- /**
14302
- * @interface
14303
- */
14304
- declare type UserAppConfigArgs = Record<string, string | string[]>;
14305
-
14306
15398
  /**
14307
15399
  * A general user bounds change event without event type.
14308
15400
  * @interface
@@ -17689,32 +18781,6 @@ declare type WithPositioningOptions<T extends {} = {}> = T & {
17689
18781
  positioningOptions?: OpenFin.PositioningOptions;
17690
18782
  };
17691
18783
 
17692
- declare type WithUserAppConfigArgs = {
17693
- /**
17694
- * Represents the key-value pairs for the parameters passed into any fin:// or fins:// link
17695
- * that launches this application.
17696
- *
17697
- * @remarks
17698
- * In the link, user defined parameters are separated by the `$$` delimeter, for example:
17699
- * `fins://path.to/app/manifest.json?$$use-last-configuration=true`
17700
- *
17701
- * Results in the following object:
17702
- * ```json
17703
- * {
17704
- * "use-last-configuration": true"
17705
- * }
17706
- * ```
17707
- *
17708
- * These args can be accessed via the {@link ApplicationInfo.initialOptions} object:
17709
- * ```typescript
17710
- * const appInfo = await fin.Application.getCurrentSync().getInfo();
17711
- * const { userAppConfigArgs } = appInfo.initialOptions;
17712
- * console.log(userAppConfigArgs['use-last-configuration']); // 'true'
17713
- * ```
17714
- */
17715
- userAppConfigArgs?: UserAppConfigArgs;
17716
- };
17717
-
17718
18784
  /* Excluded from this release type: WorkspacePlatformOptions */
17719
18785
 
17720
18786
  /**