@openfin/core 34.78.73 → 34.78.75
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 +102 -32
- package/out/mock-beta.d.ts +102 -32
- package/out/mock-public.d.ts +102 -32
- package/out/mock.d.ts +103 -33
- package/out/mock.js +17 -15
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -88,12 +88,21 @@ declare type Api = {
|
|
|
88
88
|
iframe?: {
|
|
89
89
|
/**
|
|
90
90
|
* Inject OpenFin API into cross-origin iframes
|
|
91
|
+
*
|
|
92
|
+
* @defaultValue false
|
|
91
93
|
*/
|
|
92
94
|
crossOriginInjection?: boolean;
|
|
93
95
|
/**
|
|
94
96
|
* Inject OpenFin API into same-origin iframes
|
|
97
|
+
*
|
|
98
|
+
* @defaultValue true
|
|
95
99
|
*/
|
|
96
100
|
sameOriginInjection?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated Shared names should not be used; support is provided purely for back-compat reasons.
|
|
103
|
+
*
|
|
104
|
+
* When `true`, iframes will have the same name as their parent WebContents.
|
|
105
|
+
*/
|
|
97
106
|
enableDeprecatedSharedName?: boolean;
|
|
98
107
|
};
|
|
99
108
|
};
|
|
@@ -875,7 +884,7 @@ declare type ApplicationConnectedEvent = ConnectedEvent_2;
|
|
|
875
884
|
* Generated when an application is created.
|
|
876
885
|
* @interface
|
|
877
886
|
*/
|
|
878
|
-
declare type ApplicationCreatedEvent =
|
|
887
|
+
declare type ApplicationCreatedEvent = BaseEvent_9 & BaseEvents.IdentityEvent & {
|
|
879
888
|
type: 'application-created';
|
|
880
889
|
};
|
|
881
890
|
|
|
@@ -1733,13 +1742,30 @@ declare type BaseContentCreationRule = {
|
|
|
1733
1742
|
/**
|
|
1734
1743
|
* A base OpenFin event. All OpenFin event payloads extend this type.
|
|
1735
1744
|
*
|
|
1745
|
+
* OpenFin events are jointly discriminated by their {@link topic} and {@link type} keys. Within each
|
|
1746
|
+
* `topic`, the `type` key is unique.
|
|
1747
|
+
*
|
|
1736
1748
|
* @interface
|
|
1737
1749
|
*/
|
|
1738
1750
|
declare type BaseEvent = {
|
|
1751
|
+
/**
|
|
1752
|
+
* The "kebab-case" classname of the {@link OpenFin.Events emitter} that raised the event.
|
|
1753
|
+
*
|
|
1754
|
+
* @remarks {@link OpenFin.Frame} is represented as `iframe`.
|
|
1755
|
+
*/
|
|
1739
1756
|
topic: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* The type of event that was raised. Equal to the typename of the event payload in "kebab case".
|
|
1759
|
+
*
|
|
1760
|
+
* @remarks Guaranteed to be unique within each {@link topic}, but can be repeated
|
|
1761
|
+
* between topics (e.g. {@link OpenFin.WebContentsEvents.CrashedEvent WebContentsEvents.CrashedEvent} and
|
|
1762
|
+
* {@link OpenFin.ApplicationEvents.CrashedEvent ApplicationEvents.CrashedEvent}).
|
|
1763
|
+
*/
|
|
1740
1764
|
type: string;
|
|
1741
1765
|
};
|
|
1742
1766
|
|
|
1767
|
+
declare type BaseEvent_10 = Events.BaseEvents.BaseEvent;
|
|
1768
|
+
|
|
1743
1769
|
/**
|
|
1744
1770
|
* A base Channel event.
|
|
1745
1771
|
* @interface
|
|
@@ -1792,14 +1818,22 @@ declare type BaseEvent_7 = NamedEvent & {
|
|
|
1792
1818
|
};
|
|
1793
1819
|
|
|
1794
1820
|
/**
|
|
1795
|
-
* Base type for events emitting on the `
|
|
1821
|
+
* Base type for events emitting on the `global-hotkey` topic.
|
|
1822
|
+
*
|
|
1796
1823
|
* @interface
|
|
1797
1824
|
*/
|
|
1798
1825
|
declare type BaseEvent_8 = BaseEvents.BaseEvent & {
|
|
1799
|
-
topic: '
|
|
1826
|
+
topic: 'global-hotkey';
|
|
1827
|
+
hotkey: string;
|
|
1800
1828
|
};
|
|
1801
1829
|
|
|
1802
|
-
|
|
1830
|
+
/**
|
|
1831
|
+
* Base type for events emitting on the `system` topic
|
|
1832
|
+
* @interface
|
|
1833
|
+
*/
|
|
1834
|
+
declare type BaseEvent_9 = BaseEvents.BaseEvent & {
|
|
1835
|
+
topic: 'system';
|
|
1836
|
+
};
|
|
1803
1837
|
|
|
1804
1838
|
declare namespace BaseEvents {
|
|
1805
1839
|
export {
|
|
@@ -4450,6 +4484,32 @@ declare type CreateLayoutOptions = {
|
|
|
4450
4484
|
container: HTMLElement;
|
|
4451
4485
|
layoutName: string;
|
|
4452
4486
|
layout: LayoutOptions;
|
|
4487
|
+
/**
|
|
4488
|
+
* @defaultValue 'default'
|
|
4489
|
+
*
|
|
4490
|
+
* Controls the View behavior for the given `layout` property. Note
|
|
4491
|
+
* that the selected behavior only applies to unnamed Views or
|
|
4492
|
+
* Views with the prefix `internal-generated-`. In all cases, if any
|
|
4493
|
+
* View in the `layout` does not already exist, it will be created
|
|
4494
|
+
* with a name that starts with `internal-generated-`.
|
|
4495
|
+
*
|
|
4496
|
+
* When set to `reparent`, Views prefixed with `internal-generated-` will
|
|
4497
|
+
* be reparented to the current Window and added to this new Layout.
|
|
4498
|
+
* Use this option when you need to transfer an existing Layout between Windows.
|
|
4499
|
+
*
|
|
4500
|
+
* When set to 'duplicate', Views prefixed with `internal-generated-` will
|
|
4501
|
+
* be duplicated with new generated names. Use this option when you need
|
|
4502
|
+
* to clone a Layout to any Window.
|
|
4503
|
+
*
|
|
4504
|
+
* When set to `default` or omitted, the Layout will attempt to re-use
|
|
4505
|
+
* existing Views only if they are attached to the current Window or
|
|
4506
|
+
* the Provider Window. Set to `default` or omit this option when creating
|
|
4507
|
+
* Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
|
|
4508
|
+
* override. Note that during applyLayoutSnapshot, Views are created and
|
|
4509
|
+
* attached to the Provider while the Window is being created, so it's
|
|
4510
|
+
* important to not 'duplicate' Views in this workflow.
|
|
4511
|
+
*/
|
|
4512
|
+
multiInstanceViewBehavior?: MultiInstanceViewBehavior;
|
|
4453
4513
|
};
|
|
4454
4514
|
|
|
4455
4515
|
/**
|
|
@@ -4598,7 +4658,7 @@ declare interface DesktopAgent_2 {
|
|
|
4598
4658
|
* Generated when the desktop icon is clicked while it's already running.
|
|
4599
4659
|
* @interface
|
|
4600
4660
|
*/
|
|
4601
|
-
declare type DesktopIconClickedEvent =
|
|
4661
|
+
declare type DesktopIconClickedEvent = BaseEvent_9 & {
|
|
4602
4662
|
type: 'desktop-icon-clicked';
|
|
4603
4663
|
};
|
|
4604
4664
|
|
|
@@ -5089,6 +5149,7 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
|
5089
5149
|
|
|
5090
5150
|
declare interface Environment {
|
|
5091
5151
|
initLayoutManager(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>>;
|
|
5152
|
+
applyLayoutSnapshot(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.InitLayoutOptions): Promise<void>;
|
|
5092
5153
|
createLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.CreateLayoutOptions): Promise<void>;
|
|
5093
5154
|
destroyLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, layoutIdentity: OpenFin_2.LayoutIdentity): Promise<void>;
|
|
5094
5155
|
resolveLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, layoutIdentity: OpenFin_2.LayoutIdentity): Promise<any>;
|
|
@@ -5130,14 +5191,14 @@ declare type ErrorPlainObject = {
|
|
|
5130
5191
|
|
|
5131
5192
|
/**
|
|
5132
5193
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link Platform}. Events are
|
|
5133
|
-
* discriminated by {@link
|
|
5194
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Platform` can be found
|
|
5134
5195
|
* under the {@link OpenFin.PlatformEvents} namespace.
|
|
5135
5196
|
*/
|
|
5136
5197
|
declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotAppliedEvent;
|
|
5137
5198
|
|
|
5138
5199
|
/**
|
|
5139
5200
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link System}. Events are
|
|
5140
|
-
* discriminated by {@link
|
|
5201
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `System` can be found
|
|
5141
5202
|
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
5142
5203
|
* from which they propagate).
|
|
5143
5204
|
*/
|
|
@@ -5145,7 +5206,7 @@ declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>>
|
|
|
5145
5206
|
|
|
5146
5207
|
/**
|
|
5147
5208
|
* [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
|
|
5148
|
-
* discriminated by {@link
|
|
5209
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Channel` can be found
|
|
5149
5210
|
* under the {@link OpenFin.ChannelEvents} namespace.
|
|
5150
5211
|
*/
|
|
5151
5212
|
declare type Event_2 = {
|
|
@@ -5154,7 +5215,7 @@ declare type Event_2 = {
|
|
|
5154
5215
|
|
|
5155
5216
|
/**
|
|
5156
5217
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by an {@link Application}. Events are
|
|
5157
|
-
* discriminated by {@link
|
|
5218
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Application` can be found
|
|
5158
5219
|
* under the {@link OpenFin.ApplicationEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
5159
5220
|
* from which they propagate).
|
|
5160
5221
|
*/
|
|
@@ -5162,7 +5223,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
|
5162
5223
|
|
|
5163
5224
|
/**
|
|
5164
5225
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link View}. Events are
|
|
5165
|
-
* discriminated by {@link
|
|
5226
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `View` can be found
|
|
5166
5227
|
* under the {@link OpenFin.ViewEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
|
5167
5228
|
*/
|
|
5168
5229
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
|
@@ -5179,21 +5240,21 @@ declare type Event_5<Topic extends string> = {
|
|
|
5179
5240
|
|
|
5180
5241
|
/**
|
|
5181
5242
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link Window}. Events are
|
|
5182
|
-
* discriminated by {@link
|
|
5243
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Window` can be found
|
|
5183
5244
|
* under the {@link OpenFin.WindowEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
|
5184
5245
|
*/
|
|
5185
5246
|
declare type Event_6 = WindowSourcedEvent | WindowViewEvent | ViewEvents.PropagatedEvent<'window'>;
|
|
5186
5247
|
|
|
5187
5248
|
/**
|
|
5188
5249
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by an {@link ExternalApplication}. Events are
|
|
5189
|
-
* discriminated by {@link
|
|
5250
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `ExternalApplication` can be found
|
|
5190
5251
|
* under the {@link OpenFin.ExternalApplicationEvents} namespace.
|
|
5191
5252
|
*/
|
|
5192
5253
|
declare type Event_7 = ConnectedEvent_3 | DisconnectedEvent_2;
|
|
5193
5254
|
|
|
5194
5255
|
/**
|
|
5195
5256
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link _Frame}. Events are
|
|
5196
|
-
* discriminated by {@link
|
|
5257
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Frame` can be found
|
|
5197
5258
|
* under the {@link OpenFin.FrameEvents} namespace.
|
|
5198
5259
|
*/
|
|
5199
5260
|
declare type Event_8 = {
|
|
@@ -5202,13 +5263,10 @@ declare type Event_8 = {
|
|
|
5202
5263
|
|
|
5203
5264
|
/**
|
|
5204
5265
|
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by {@link GlobalHotkey}. Events are
|
|
5205
|
-
* discriminated by {@link
|
|
5266
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `GlobalHotkey` can be found
|
|
5206
5267
|
* under the {@link OpenFin.GlobalHotkeyEvents} namespace.
|
|
5207
5268
|
*/
|
|
5208
|
-
declare type Event_9 =
|
|
5209
|
-
topic: 'global-hotkey';
|
|
5210
|
-
hotkey: 'string';
|
|
5211
|
-
} & (RegisteredEvent | UnregisteredEvent);
|
|
5269
|
+
declare type Event_9 = RegisteredEvent | UnregisteredEvent;
|
|
5212
5270
|
|
|
5213
5271
|
declare class EventAggregator extends EmitterMap {
|
|
5214
5272
|
dispatchEvent: (message: Message<any>) => boolean;
|
|
@@ -6207,6 +6265,7 @@ declare type GlobalHotkeyEvent_2 = Events.GlobalHotkeyEvents.GlobalHotkeyEvent;
|
|
|
6207
6265
|
|
|
6208
6266
|
declare namespace GlobalHotkeyEvents {
|
|
6209
6267
|
export {
|
|
6268
|
+
BaseEvent_8 as BaseEvent,
|
|
6210
6269
|
RegisteredEvent,
|
|
6211
6270
|
UnregisteredEvent,
|
|
6212
6271
|
Event_9 as Event,
|
|
@@ -6694,7 +6753,7 @@ declare type IdleEvent = IdleStateChangedEvent;
|
|
|
6694
6753
|
* A user returns from idle state when the computer is unlocked or keyboard/mouse activity has resumed.
|
|
6695
6754
|
* @interface
|
|
6696
6755
|
*/
|
|
6697
|
-
declare type IdleStateChangedEvent =
|
|
6756
|
+
declare type IdleStateChangedEvent = BaseEvent_9 & {
|
|
6698
6757
|
type: 'idle-state-changed';
|
|
6699
6758
|
elapsedTime: number;
|
|
6700
6759
|
isIdle: boolean;
|
|
@@ -7721,7 +7780,7 @@ declare type InteropBrokerDisconnectionEvent = {
|
|
|
7721
7780
|
* @interface
|
|
7722
7781
|
*/
|
|
7723
7782
|
declare type InteropBrokerOptions = {
|
|
7724
|
-
contextGroups?: ContextGroupInfo;
|
|
7783
|
+
contextGroups?: ContextGroupInfo[];
|
|
7725
7784
|
logging?: InteropLoggingOptions;
|
|
7726
7785
|
};
|
|
7727
7786
|
|
|
@@ -8863,16 +8922,17 @@ declare type LayoutIdentity = Identity_5 & {
|
|
|
8863
8922
|
};
|
|
8864
8923
|
|
|
8865
8924
|
/**
|
|
8866
|
-
* Generated
|
|
8867
|
-
*
|
|
8925
|
+
* Generated after a layout is created and all of its views have either finished or failed navigation
|
|
8926
|
+
* once per layout. Does not emit for layouts created using Layout.replace() API.
|
|
8868
8927
|
* @interface
|
|
8869
8928
|
*/
|
|
8870
8929
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
|
8871
8930
|
type: 'layout-initialized';
|
|
8872
8931
|
layoutIdentity: OpenFin_2.LayoutIdentity;
|
|
8873
|
-
ofViews:
|
|
8932
|
+
ofViews: {
|
|
8933
|
+
identity: OpenFin_2.Identity;
|
|
8874
8934
|
entityType: 'view';
|
|
8875
|
-
}
|
|
8935
|
+
}[];
|
|
8876
8936
|
};
|
|
8877
8937
|
|
|
8878
8938
|
/**
|
|
@@ -9240,9 +9300,11 @@ declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
|
|
|
9240
9300
|
declare type LayoutReadyEvent = BaseEvent_5 & {
|
|
9241
9301
|
type: 'layout-ready';
|
|
9242
9302
|
layoutIdentity: OpenFin_2.LayoutIdentity;
|
|
9243
|
-
views:
|
|
9303
|
+
views: {
|
|
9304
|
+
identity: OpenFin_2.Identity;
|
|
9244
9305
|
success: boolean;
|
|
9245
|
-
|
|
9306
|
+
error?: Error;
|
|
9307
|
+
}[];
|
|
9246
9308
|
};
|
|
9247
9309
|
|
|
9248
9310
|
/**
|
|
@@ -9618,10 +9680,17 @@ declare type MonitorInfo = {
|
|
|
9618
9680
|
* The available space of a monitor defines a rectangle that is not occupied by the taskbar
|
|
9619
9681
|
* @interface
|
|
9620
9682
|
*/
|
|
9621
|
-
declare type MonitorInfoChangedEvent =
|
|
9683
|
+
declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin_2.MonitorInfo & {
|
|
9622
9684
|
type: 'monitor-info-changed';
|
|
9623
9685
|
};
|
|
9624
9686
|
|
|
9687
|
+
/**
|
|
9688
|
+
* @experimental
|
|
9689
|
+
*
|
|
9690
|
+
* Used to control view behavior for Layout.create API
|
|
9691
|
+
*/
|
|
9692
|
+
declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
|
|
9693
|
+
|
|
9625
9694
|
/**
|
|
9626
9695
|
* @interface
|
|
9627
9696
|
*/
|
|
@@ -10337,6 +10406,7 @@ declare namespace OpenFin_2 {
|
|
|
10337
10406
|
LayoutManagerOverride,
|
|
10338
10407
|
LayoutManager,
|
|
10339
10408
|
CreateLayoutOptions,
|
|
10409
|
+
MultiInstanceViewBehavior,
|
|
10340
10410
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
|
10341
10411
|
ResultBehavior,
|
|
10342
10412
|
PopupBaseBehavior,
|
|
@@ -10352,7 +10422,7 @@ declare namespace OpenFin_2 {
|
|
|
10352
10422
|
AppVersionCompleteEvent,
|
|
10353
10423
|
AppVersionRuntimeStatusEvent,
|
|
10354
10424
|
Events,
|
|
10355
|
-
|
|
10425
|
+
BaseEvent_10 as BaseEvent,
|
|
10356
10426
|
WebContentsEvent_2 as WebContentsEvent,
|
|
10357
10427
|
SystemEvent_2 as SystemEvent,
|
|
10358
10428
|
ApplicationEvent_2 as ApplicationEvent,
|
|
@@ -12811,7 +12881,7 @@ declare type RectangleByEdgePositions = {
|
|
|
12811
12881
|
* Generated when a hotkey has been registered with the operating system.
|
|
12812
12882
|
* @interface
|
|
12813
12883
|
*/
|
|
12814
|
-
declare type RegisteredEvent =
|
|
12884
|
+
declare type RegisteredEvent = BaseEvent_8 & {
|
|
12815
12885
|
type: 'registered';
|
|
12816
12886
|
};
|
|
12817
12887
|
|
|
@@ -13233,7 +13303,7 @@ declare type ServiceIdentifier = {
|
|
|
13233
13303
|
* Generated on changes to a user’s local computer session.
|
|
13234
13304
|
* @interface
|
|
13235
13305
|
*/
|
|
13236
|
-
declare type SessionChangedEvent =
|
|
13306
|
+
declare type SessionChangedEvent = BaseEvent_9 & {
|
|
13237
13307
|
type: 'session-changed';
|
|
13238
13308
|
reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
|
|
13239
13309
|
};
|
|
@@ -15227,7 +15297,7 @@ declare namespace SystemEvents {
|
|
|
15227
15297
|
export {
|
|
15228
15298
|
NotRequested,
|
|
15229
15299
|
ExcludeRequested,
|
|
15230
|
-
|
|
15300
|
+
BaseEvent_9 as BaseEvent,
|
|
15231
15301
|
IdleStateChangedEvent,
|
|
15232
15302
|
IdleEvent,
|
|
15233
15303
|
MonitorInfoChangedEvent,
|
|
@@ -15705,7 +15775,7 @@ declare interface TypedEventEmitter<Event extends {
|
|
|
15705
15775
|
* Generated when a hotkey has been unregistered with the operating system.
|
|
15706
15776
|
* @interface
|
|
15707
15777
|
*/
|
|
15708
|
-
declare type UnregisteredEvent =
|
|
15778
|
+
declare type UnregisteredEvent = BaseEvent_8 & {
|
|
15709
15779
|
type: 'unregistered';
|
|
15710
15780
|
};
|
|
15711
15781
|
|