@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.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
|
};
|
|
@@ -881,7 +890,7 @@ declare type ApplicationConnectedEvent = ConnectedEvent_2;
|
|
|
881
890
|
* Generated when an application is created.
|
|
882
891
|
* @interface
|
|
883
892
|
*/
|
|
884
|
-
declare type ApplicationCreatedEvent =
|
|
893
|
+
declare type ApplicationCreatedEvent = BaseEvent_9 & BaseEvents.IdentityEvent & {
|
|
885
894
|
type: 'application-created';
|
|
886
895
|
};
|
|
887
896
|
|
|
@@ -1753,13 +1762,30 @@ declare type BaseContentCreationRule = {
|
|
|
1753
1762
|
/**
|
|
1754
1763
|
* A base OpenFin event. All OpenFin event payloads extend this type.
|
|
1755
1764
|
*
|
|
1765
|
+
* OpenFin events are jointly discriminated by their {@link topic} and {@link type} keys. Within each
|
|
1766
|
+
* `topic`, the `type` key is unique.
|
|
1767
|
+
*
|
|
1756
1768
|
* @interface
|
|
1757
1769
|
*/
|
|
1758
1770
|
declare type BaseEvent = {
|
|
1771
|
+
/**
|
|
1772
|
+
* The "kebab-case" classname of the {@link OpenFin.Events emitter} that raised the event.
|
|
1773
|
+
*
|
|
1774
|
+
* @remarks {@link OpenFin.Frame} is represented as `iframe`.
|
|
1775
|
+
*/
|
|
1759
1776
|
topic: string;
|
|
1777
|
+
/**
|
|
1778
|
+
* The type of event that was raised. Equal to the typename of the event payload in "kebab case".
|
|
1779
|
+
*
|
|
1780
|
+
* @remarks Guaranteed to be unique within each {@link topic}, but can be repeated
|
|
1781
|
+
* between topics (e.g. {@link OpenFin.WebContentsEvents.CrashedEvent WebContentsEvents.CrashedEvent} and
|
|
1782
|
+
* {@link OpenFin.ApplicationEvents.CrashedEvent ApplicationEvents.CrashedEvent}).
|
|
1783
|
+
*/
|
|
1760
1784
|
type: string;
|
|
1761
1785
|
};
|
|
1762
1786
|
|
|
1787
|
+
declare type BaseEvent_10 = Events.BaseEvents.BaseEvent;
|
|
1788
|
+
|
|
1763
1789
|
/**
|
|
1764
1790
|
* A base Channel event.
|
|
1765
1791
|
* @interface
|
|
@@ -1812,14 +1838,22 @@ declare type BaseEvent_7 = NamedEvent & {
|
|
|
1812
1838
|
};
|
|
1813
1839
|
|
|
1814
1840
|
/**
|
|
1815
|
-
* Base type for events emitting on the `
|
|
1841
|
+
* Base type for events emitting on the `global-hotkey` topic.
|
|
1842
|
+
*
|
|
1816
1843
|
* @interface
|
|
1817
1844
|
*/
|
|
1818
1845
|
declare type BaseEvent_8 = BaseEvents.BaseEvent & {
|
|
1819
|
-
topic: '
|
|
1846
|
+
topic: 'global-hotkey';
|
|
1847
|
+
hotkey: string;
|
|
1820
1848
|
};
|
|
1821
1849
|
|
|
1822
|
-
|
|
1850
|
+
/**
|
|
1851
|
+
* Base type for events emitting on the `system` topic
|
|
1852
|
+
* @interface
|
|
1853
|
+
*/
|
|
1854
|
+
declare type BaseEvent_9 = BaseEvents.BaseEvent & {
|
|
1855
|
+
topic: 'system';
|
|
1856
|
+
};
|
|
1823
1857
|
|
|
1824
1858
|
declare namespace BaseEvents {
|
|
1825
1859
|
export {
|
|
@@ -4493,6 +4527,32 @@ declare type CreateLayoutOptions = {
|
|
|
4493
4527
|
container: HTMLElement;
|
|
4494
4528
|
layoutName: string;
|
|
4495
4529
|
layout: LayoutOptions;
|
|
4530
|
+
/**
|
|
4531
|
+
* @defaultValue 'default'
|
|
4532
|
+
*
|
|
4533
|
+
* Controls the View behavior for the given `layout` property. Note
|
|
4534
|
+
* that the selected behavior only applies to unnamed Views or
|
|
4535
|
+
* Views with the prefix `internal-generated-`. In all cases, if any
|
|
4536
|
+
* View in the `layout` does not already exist, it will be created
|
|
4537
|
+
* with a name that starts with `internal-generated-`.
|
|
4538
|
+
*
|
|
4539
|
+
* When set to `reparent`, Views prefixed with `internal-generated-` will
|
|
4540
|
+
* be reparented to the current Window and added to this new Layout.
|
|
4541
|
+
* Use this option when you need to transfer an existing Layout between Windows.
|
|
4542
|
+
*
|
|
4543
|
+
* When set to 'duplicate', Views prefixed with `internal-generated-` will
|
|
4544
|
+
* be duplicated with new generated names. Use this option when you need
|
|
4545
|
+
* to clone a Layout to any Window.
|
|
4546
|
+
*
|
|
4547
|
+
* When set to `default` or omitted, the Layout will attempt to re-use
|
|
4548
|
+
* existing Views only if they are attached to the current Window or
|
|
4549
|
+
* the Provider Window. Set to `default` or omit this option when creating
|
|
4550
|
+
* Layouts as part of implementing the LayoutManager::applyLayoutSnapshot
|
|
4551
|
+
* override. Note that during applyLayoutSnapshot, Views are created and
|
|
4552
|
+
* attached to the Provider while the Window is being created, so it's
|
|
4553
|
+
* important to not 'duplicate' Views in this workflow.
|
|
4554
|
+
*/
|
|
4555
|
+
multiInstanceViewBehavior?: MultiInstanceViewBehavior;
|
|
4496
4556
|
};
|
|
4497
4557
|
|
|
4498
4558
|
/**
|
|
@@ -4641,7 +4701,7 @@ declare interface DesktopAgent_2 {
|
|
|
4641
4701
|
* Generated when the desktop icon is clicked while it's already running.
|
|
4642
4702
|
* @interface
|
|
4643
4703
|
*/
|
|
4644
|
-
declare type DesktopIconClickedEvent =
|
|
4704
|
+
declare type DesktopIconClickedEvent = BaseEvent_9 & {
|
|
4645
4705
|
type: 'desktop-icon-clicked';
|
|
4646
4706
|
};
|
|
4647
4707
|
|
|
@@ -5137,6 +5197,7 @@ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
|
|
|
5137
5197
|
|
|
5138
5198
|
declare interface Environment {
|
|
5139
5199
|
initLayoutManager(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, wire: Transport, options: OpenFin_2.InitLayoutOptions): Promise<OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>>;
|
|
5200
|
+
applyLayoutSnapshot(fin: OpenFin_2.Fin<OpenFin_2.EntityType>, layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.InitLayoutOptions): Promise<void>;
|
|
5140
5201
|
createLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, options: OpenFin_2.CreateLayoutOptions): Promise<void>;
|
|
5141
5202
|
destroyLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, layoutIdentity: OpenFin_2.LayoutIdentity): Promise<void>;
|
|
5142
5203
|
resolveLayout(layoutManager: OpenFin_2.LayoutManager<OpenFin_2.LayoutSnapshot>, layoutIdentity: OpenFin_2.LayoutIdentity): Promise<any>;
|
|
@@ -5178,14 +5239,14 @@ declare type ErrorPlainObject = {
|
|
|
5178
5239
|
|
|
5179
5240
|
/**
|
|
5180
5241
|
* [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
|
|
5181
|
-
* discriminated by {@link
|
|
5242
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Platform` can be found
|
|
5182
5243
|
* under the {@link OpenFin.PlatformEvents} namespace.
|
|
5183
5244
|
*/
|
|
5184
5245
|
declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotAppliedEvent;
|
|
5185
5246
|
|
|
5186
5247
|
/**
|
|
5187
5248
|
* [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
|
|
5188
|
-
* discriminated by {@link
|
|
5249
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `System` can be found
|
|
5189
5250
|
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
5190
5251
|
* from which they propagate).
|
|
5191
5252
|
*/
|
|
@@ -5193,7 +5254,7 @@ declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>>
|
|
|
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 Channel}. Events are
|
|
5196
|
-
* discriminated by {@link
|
|
5257
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Channel` can be found
|
|
5197
5258
|
* under the {@link OpenFin.ChannelEvents} namespace.
|
|
5198
5259
|
*/
|
|
5199
5260
|
declare type Event_2 = {
|
|
@@ -5202,7 +5263,7 @@ declare type Event_2 = {
|
|
|
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 an {@link Application}. Events are
|
|
5205
|
-
* discriminated by {@link
|
|
5266
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Application` can be found
|
|
5206
5267
|
* under the {@link OpenFin.ApplicationEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
5207
5268
|
* from which they propagate).
|
|
5208
5269
|
*/
|
|
@@ -5210,7 +5271,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
|
|
|
5210
5271
|
|
|
5211
5272
|
/**
|
|
5212
5273
|
* [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
|
|
5213
|
-
* discriminated by {@link
|
|
5274
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `View` can be found
|
|
5214
5275
|
* under the {@link OpenFin.ViewEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
|
5215
5276
|
*/
|
|
5216
5277
|
declare type Event_4 = (WebContentsEvents.Event<'view'> & {
|
|
@@ -5227,21 +5288,21 @@ declare type Event_5<Topic extends string> = {
|
|
|
5227
5288
|
|
|
5228
5289
|
/**
|
|
5229
5290
|
* [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
|
|
5230
|
-
* discriminated by {@link
|
|
5291
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Window` can be found
|
|
5231
5292
|
* under the {@link OpenFin.WindowEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
|
5232
5293
|
*/
|
|
5233
5294
|
declare type Event_6 = WindowSourcedEvent | WindowViewEvent | ViewEvents.PropagatedEvent<'window'>;
|
|
5234
5295
|
|
|
5235
5296
|
/**
|
|
5236
5297
|
* [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
|
|
5237
|
-
* discriminated by {@link
|
|
5298
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `ExternalApplication` can be found
|
|
5238
5299
|
* under the {@link OpenFin.ExternalApplicationEvents} namespace.
|
|
5239
5300
|
*/
|
|
5240
5301
|
declare type Event_7 = ConnectedEvent_3 | DisconnectedEvent_2;
|
|
5241
5302
|
|
|
5242
5303
|
/**
|
|
5243
5304
|
* [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
|
|
5244
|
-
* discriminated by {@link
|
|
5305
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `Frame` can be found
|
|
5245
5306
|
* under the {@link OpenFin.FrameEvents} namespace.
|
|
5246
5307
|
*/
|
|
5247
5308
|
declare type Event_8 = {
|
|
@@ -5250,13 +5311,10 @@ declare type Event_8 = {
|
|
|
5250
5311
|
|
|
5251
5312
|
/**
|
|
5252
5313
|
* [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
|
|
5253
|
-
* discriminated by {@link
|
|
5314
|
+
* discriminated by {@link BaseEvents.BaseEvent.type | their type}. Event payloads unique to `GlobalHotkey` can be found
|
|
5254
5315
|
* under the {@link OpenFin.GlobalHotkeyEvents} namespace.
|
|
5255
5316
|
*/
|
|
5256
|
-
declare type Event_9 =
|
|
5257
|
-
topic: 'global-hotkey';
|
|
5258
|
-
hotkey: 'string';
|
|
5259
|
-
} & (RegisteredEvent | UnregisteredEvent);
|
|
5317
|
+
declare type Event_9 = RegisteredEvent | UnregisteredEvent;
|
|
5260
5318
|
|
|
5261
5319
|
declare class EventAggregator extends EmitterMap {
|
|
5262
5320
|
dispatchEvent: (message: Message<any>) => boolean;
|
|
@@ -6282,6 +6340,7 @@ declare type GlobalHotkeyEvent_2 = Events.GlobalHotkeyEvents.GlobalHotkeyEvent;
|
|
|
6282
6340
|
|
|
6283
6341
|
declare namespace GlobalHotkeyEvents {
|
|
6284
6342
|
export {
|
|
6343
|
+
BaseEvent_8 as BaseEvent,
|
|
6285
6344
|
RegisteredEvent,
|
|
6286
6345
|
UnregisteredEvent,
|
|
6287
6346
|
Event_9 as Event,
|
|
@@ -6772,7 +6831,7 @@ declare type IdleEvent = IdleStateChangedEvent;
|
|
|
6772
6831
|
* A user returns from idle state when the computer is unlocked or keyboard/mouse activity has resumed.
|
|
6773
6832
|
* @interface
|
|
6774
6833
|
*/
|
|
6775
|
-
declare type IdleStateChangedEvent =
|
|
6834
|
+
declare type IdleStateChangedEvent = BaseEvent_9 & {
|
|
6776
6835
|
type: 'idle-state-changed';
|
|
6777
6836
|
elapsedTime: number;
|
|
6778
6837
|
isIdle: boolean;
|
|
@@ -7814,7 +7873,7 @@ declare type InteropBrokerDisconnectionEvent = {
|
|
|
7814
7873
|
* @interface
|
|
7815
7874
|
*/
|
|
7816
7875
|
declare type InteropBrokerOptions = {
|
|
7817
|
-
contextGroups?: ContextGroupInfo;
|
|
7876
|
+
contextGroups?: ContextGroupInfo[];
|
|
7818
7877
|
logging?: InteropLoggingOptions;
|
|
7819
7878
|
};
|
|
7820
7879
|
|
|
@@ -8970,16 +9029,17 @@ declare type LayoutIdentity = Identity_5 & {
|
|
|
8970
9029
|
};
|
|
8971
9030
|
|
|
8972
9031
|
/**
|
|
8973
|
-
* Generated
|
|
8974
|
-
*
|
|
9032
|
+
* Generated after a layout is created and all of its views have either finished or failed navigation
|
|
9033
|
+
* once per layout. Does not emit for layouts created using Layout.replace() API.
|
|
8975
9034
|
* @interface
|
|
8976
9035
|
*/
|
|
8977
9036
|
declare type LayoutInitializedEvent = BaseEvent_5 & {
|
|
8978
9037
|
type: 'layout-initialized';
|
|
8979
9038
|
layoutIdentity: OpenFin_2.LayoutIdentity;
|
|
8980
|
-
ofViews:
|
|
9039
|
+
ofViews: {
|
|
9040
|
+
identity: OpenFin_2.Identity;
|
|
8981
9041
|
entityType: 'view';
|
|
8982
|
-
}
|
|
9042
|
+
}[];
|
|
8983
9043
|
};
|
|
8984
9044
|
|
|
8985
9045
|
/**
|
|
@@ -9517,9 +9577,11 @@ declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
|
|
|
9517
9577
|
declare type LayoutReadyEvent = BaseEvent_5 & {
|
|
9518
9578
|
type: 'layout-ready';
|
|
9519
9579
|
layoutIdentity: OpenFin_2.LayoutIdentity;
|
|
9520
|
-
views:
|
|
9580
|
+
views: {
|
|
9581
|
+
identity: OpenFin_2.Identity;
|
|
9521
9582
|
success: boolean;
|
|
9522
|
-
|
|
9583
|
+
error?: Error;
|
|
9584
|
+
}[];
|
|
9523
9585
|
};
|
|
9524
9586
|
|
|
9525
9587
|
/**
|
|
@@ -9895,10 +9957,17 @@ declare type MonitorInfo = {
|
|
|
9895
9957
|
* The available space of a monitor defines a rectangle that is not occupied by the taskbar
|
|
9896
9958
|
* @interface
|
|
9897
9959
|
*/
|
|
9898
|
-
declare type MonitorInfoChangedEvent =
|
|
9960
|
+
declare type MonitorInfoChangedEvent = BaseEvent_9 & OpenFin_2.MonitorInfo & {
|
|
9899
9961
|
type: 'monitor-info-changed';
|
|
9900
9962
|
};
|
|
9901
9963
|
|
|
9964
|
+
/**
|
|
9965
|
+
* @experimental
|
|
9966
|
+
*
|
|
9967
|
+
* Used to control view behavior for Layout.create API
|
|
9968
|
+
*/
|
|
9969
|
+
declare type MultiInstanceViewBehavior = 'reparent' | 'duplicate' | 'default';
|
|
9970
|
+
|
|
9902
9971
|
/**
|
|
9903
9972
|
* @interface
|
|
9904
9973
|
*/
|
|
@@ -10636,6 +10705,7 @@ declare namespace OpenFin_2 {
|
|
|
10636
10705
|
LayoutManagerOverride,
|
|
10637
10706
|
LayoutManager,
|
|
10638
10707
|
CreateLayoutOptions,
|
|
10708
|
+
MultiInstanceViewBehavior,
|
|
10639
10709
|
PresetLayoutOptions_2 as PresetLayoutOptions,
|
|
10640
10710
|
ResultBehavior,
|
|
10641
10711
|
PopupBaseBehavior,
|
|
@@ -10651,7 +10721,7 @@ declare namespace OpenFin_2 {
|
|
|
10651
10721
|
AppVersionCompleteEvent,
|
|
10652
10722
|
AppVersionRuntimeStatusEvent,
|
|
10653
10723
|
Events,
|
|
10654
|
-
|
|
10724
|
+
BaseEvent_10 as BaseEvent,
|
|
10655
10725
|
WebContentsEvent_2 as WebContentsEvent,
|
|
10656
10726
|
SystemEvent_2 as SystemEvent,
|
|
10657
10727
|
ApplicationEvent_2 as ApplicationEvent,
|
|
@@ -13188,7 +13258,7 @@ declare type RectangleByEdgePositions = {
|
|
|
13188
13258
|
* Generated when a hotkey has been registered with the operating system.
|
|
13189
13259
|
* @interface
|
|
13190
13260
|
*/
|
|
13191
|
-
declare type RegisteredEvent =
|
|
13261
|
+
declare type RegisteredEvent = BaseEvent_8 & {
|
|
13192
13262
|
type: 'registered';
|
|
13193
13263
|
};
|
|
13194
13264
|
|
|
@@ -13610,7 +13680,7 @@ declare type ServiceIdentifier = {
|
|
|
13610
13680
|
* Generated on changes to a user’s local computer session.
|
|
13611
13681
|
* @interface
|
|
13612
13682
|
*/
|
|
13613
|
-
declare type SessionChangedEvent =
|
|
13683
|
+
declare type SessionChangedEvent = BaseEvent_9 & {
|
|
13614
13684
|
type: 'session-changed';
|
|
13615
13685
|
reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
|
|
13616
13686
|
};
|
|
@@ -15610,7 +15680,7 @@ declare namespace SystemEvents {
|
|
|
15610
15680
|
export {
|
|
15611
15681
|
NotRequested,
|
|
15612
15682
|
ExcludeRequested,
|
|
15613
|
-
|
|
15683
|
+
BaseEvent_9 as BaseEvent,
|
|
15614
15684
|
IdleStateChangedEvent,
|
|
15615
15685
|
IdleEvent,
|
|
15616
15686
|
MonitorInfoChangedEvent,
|
|
@@ -15696,7 +15766,7 @@ declare type SystemProcessInfo = {
|
|
|
15696
15766
|
* Generated when system shutdown or log off.
|
|
15697
15767
|
* @internal
|
|
15698
15768
|
*/
|
|
15699
|
-
declare type SystemShutdownEvent =
|
|
15769
|
+
declare type SystemShutdownEvent = BaseEvent_9 & {
|
|
15700
15770
|
type: 'system-shutdown';
|
|
15701
15771
|
};
|
|
15702
15772
|
|
|
@@ -16095,7 +16165,7 @@ declare interface TypedEventEmitter<Event extends {
|
|
|
16095
16165
|
* Generated when a hotkey has been unregistered with the operating system.
|
|
16096
16166
|
* @interface
|
|
16097
16167
|
*/
|
|
16098
|
-
declare type UnregisteredEvent =
|
|
16168
|
+
declare type UnregisteredEvent = BaseEvent_8 & {
|
|
16099
16169
|
type: 'unregistered';
|
|
16100
16170
|
};
|
|
16101
16171
|
|
package/out/mock.js
CHANGED
|
@@ -65,6 +65,16 @@ Object.defineProperty(frame$1, "__esModule", { value: true });
|
|
|
65
65
|
|
|
66
66
|
var globalHotkey$1 = {};
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* Namespace for events that can be transmitted by {@link GlobalHotkey.GlobalHotkey}.
|
|
71
|
+
*
|
|
72
|
+
* Event payloads are documented as interfaces, while algebraic helper types and derived types are documented as type aliases.
|
|
73
|
+
*
|
|
74
|
+
* For a list of valid string keys for global hotkey events, see {@link GlobalHotkey.GlobalHotkey.on GlobalHotkey.on}.
|
|
75
|
+
*
|
|
76
|
+
* @packageDocumentation
|
|
77
|
+
*/
|
|
68
78
|
Object.defineProperty(globalHotkey$1, "__esModule", { value: true });
|
|
69
79
|
|
|
70
80
|
var platform$1 = {};
|
|
@@ -129,12 +139,9 @@ var webcontents = {};
|
|
|
129
139
|
* Namespace for events shared by all OpenFin WebContents elements (i.e. {@link OpenFin.Window},
|
|
130
140
|
* {@link OpenFin.View}).
|
|
131
141
|
*
|
|
132
|
-
* WebContents events
|
|
133
|
-
* will re-emit on parent entities - e.g., a propagating event in a view will also be emitted on the view's
|
|
142
|
+
* WebContents events will re-emit on parent entities - e.g., a propagating event in a view will also be emitted on the view's
|
|
134
143
|
* parent window, and propagating events in a window will also be emitted on the window's parent {@link OpenFin.Application}.
|
|
135
144
|
*
|
|
136
|
-
* Non-propagating events will not re-emit on parent entities.
|
|
137
|
-
*
|
|
138
145
|
* @packageDocumentation
|
|
139
146
|
*/
|
|
140
147
|
Object.defineProperty(webcontents, "__esModule", { value: true });
|
|
@@ -13039,24 +13046,16 @@ class LayoutModule extends base_1$5.Base {
|
|
|
13039
13046
|
throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
|
|
13040
13047
|
}
|
|
13041
13048
|
__classPrivateFieldSet$4(this, _LayoutModule_layoutInitializationAttempted, true, "f");
|
|
13049
|
+
// preload the client
|
|
13050
|
+
await this.fin.Platform.getCurrentSync().getClient();
|
|
13042
13051
|
__classPrivateFieldSet$4(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
|
|
13043
|
-
|
|
13044
|
-
const platformClient = await this.fin.Platform.getCurrentSync().getClient();
|
|
13045
|
-
const snapshot = await platformClient.dispatch('get-initial-layout-snapshot');
|
|
13046
|
-
await __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").applyLayoutSnapshot(snapshot);
|
|
13052
|
+
await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), options);
|
|
13047
13053
|
if (!options.layoutManagerOverride) {
|
|
13048
13054
|
// in single-layout case, we return the undocumented layoutManager type (deprecate with CORE-1081)
|
|
13049
13055
|
const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...this.fin.me.identity };
|
|
13050
13056
|
const layoutManager = await this.wire.environment.resolveLayout(__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f"), layoutIdentity);
|
|
13051
13057
|
return Object.assign(this.wrapSync(layoutIdentity), { layoutManager });
|
|
13052
13058
|
}
|
|
13053
|
-
// warn user if they do not call create() in the next 30 seconds
|
|
13054
|
-
setTimeout(() => {
|
|
13055
|
-
if (__classPrivateFieldGet$4(this, _LayoutModule_layoutManager, "f").size() === 0) {
|
|
13056
|
-
console.warn(`[Layout.init] Layout.init was called 30s ago, but no layouts have been created yet. Make sure you ` +
|
|
13057
|
-
`override LayoutManager.applyLayoutSnapshot, and then call fin.Platform.Layout.create()`);
|
|
13058
|
-
}
|
|
13059
|
-
}, 30000);
|
|
13060
13059
|
return this.wrapSync(this.fin.me.identity);
|
|
13061
13060
|
};
|
|
13062
13061
|
/**
|
|
@@ -17122,6 +17121,9 @@ class MockEnvironment {
|
|
|
17122
17121
|
initLayoutManager() {
|
|
17123
17122
|
throw new Error(me_1.environmentUnsupportedMessage);
|
|
17124
17123
|
}
|
|
17124
|
+
applyLayoutSnapshot() {
|
|
17125
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
17126
|
+
}
|
|
17125
17127
|
async createLayout() {
|
|
17126
17128
|
throw new Error(me_1.environmentUnsupportedMessage);
|
|
17127
17129
|
}
|