@openfin/core 34.78.9 → 34.78.10
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 +142 -12
- package/out/mock-beta.d.ts +142 -12
- package/out/mock-public.d.ts +142 -12
- package/out/mock.d.ts +142 -12
- package/out/mock.js +35 -41
- package/package.json +1 -1
package/out/mock-public.d.ts
CHANGED
|
@@ -845,7 +845,10 @@ declare type ApplicationCreationOptions = Partial<ApplicationOptions> & {
|
|
|
845
845
|
};
|
|
846
846
|
|
|
847
847
|
/**
|
|
848
|
-
*
|
|
848
|
+
* [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
|
|
849
|
+
* discriminated by {@link ApplicationEvent.type | their type}. Event payloads unique to `Application` can be found
|
|
850
|
+
* under the {@link OpenFin.ApplicationEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
851
|
+
* from which they propagate).
|
|
849
852
|
*/
|
|
850
853
|
declare type ApplicationEvent = {
|
|
851
854
|
topic: 'application';
|
|
@@ -1572,6 +1575,9 @@ declare type BaseViewEvent = NamedEvent & {
|
|
|
1572
1575
|
viewIdentity: OpenFin_2.Identity;
|
|
1573
1576
|
};
|
|
1574
1577
|
|
|
1578
|
+
/**
|
|
1579
|
+
* User decision of whether a Window or specific View should close when trying to prevent an unload.
|
|
1580
|
+
*/
|
|
1575
1581
|
declare interface BeforeUnloadUserDecision {
|
|
1576
1582
|
/**
|
|
1577
1583
|
* Specifies if the Window should close.
|
|
@@ -2327,7 +2333,9 @@ declare namespace ChannelEvents {
|
|
|
2327
2333
|
}
|
|
2328
2334
|
|
|
2329
2335
|
/**
|
|
2330
|
-
*
|
|
2336
|
+
* [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
|
|
2337
|
+
* discriminated by {@link ChannelEvent.type | their type}. Event payloads unique to `Channel` can be found
|
|
2338
|
+
* under the {@link OpenFin.ChannelEvents} namespace.
|
|
2331
2339
|
*/
|
|
2332
2340
|
declare type ChannelEventType = ChannelEvent['type'];
|
|
2333
2341
|
|
|
@@ -2873,6 +2881,9 @@ declare type CloseViewPayload = {
|
|
|
2873
2881
|
view: Identity_5;
|
|
2874
2882
|
};
|
|
2875
2883
|
|
|
2884
|
+
/**
|
|
2885
|
+
* Represents the shape of payload that contains the Window Identity and related options.
|
|
2886
|
+
*/
|
|
2876
2887
|
declare interface CloseWindowPayload {
|
|
2877
2888
|
/**
|
|
2878
2889
|
*
|
|
@@ -4028,7 +4039,9 @@ declare type ExternalApplicationDisconnectedEvent = BaseEvent & {
|
|
|
4028
4039
|
};
|
|
4029
4040
|
|
|
4030
4041
|
/**
|
|
4031
|
-
*
|
|
4042
|
+
* [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
|
|
4043
|
+
* discriminated by {@link ExternalApplicationEvent.type | their type}. Event payloads unique to `ExternalApplication` can be found
|
|
4044
|
+
* under the {@link OpenFin.ExternalApplicationEvents} namespace.
|
|
4032
4045
|
*/
|
|
4033
4046
|
declare type ExternalApplicationEvent = {
|
|
4034
4047
|
topic: 'externalapplication';
|
|
@@ -4513,7 +4526,9 @@ declare namespace FrameEvents {
|
|
|
4513
4526
|
}
|
|
4514
4527
|
|
|
4515
4528
|
/**
|
|
4516
|
-
*
|
|
4529
|
+
* [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
|
|
4530
|
+
* discriminated by {@link _Frame.type | their type}. Event payloads unique to `Frame` can be found
|
|
4531
|
+
* under the {@link OpenFin.FrameEvents} namespace.
|
|
4517
4532
|
*/
|
|
4518
4533
|
declare type FrameEventType = FrameEvent['type'];
|
|
4519
4534
|
|
|
@@ -4723,7 +4738,9 @@ declare class GlobalHotkey extends EmitterBase<OpenFin_2.GlobalHotkeyEvent> {
|
|
|
4723
4738
|
}
|
|
4724
4739
|
|
|
4725
4740
|
/**
|
|
4726
|
-
*
|
|
4741
|
+
* [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
|
|
4742
|
+
* discriminated by {@link GlobalHotkeyEvent.type | their type}. Event payloads unique to `GlobalHotkey` can be found
|
|
4743
|
+
* under the {@link OpenFin.GlobalHotkeyEvents} namespace.
|
|
4727
4744
|
*/
|
|
4728
4745
|
declare type GlobalHotkeyEvent = {
|
|
4729
4746
|
topic: 'global-hotkey';
|
|
@@ -5077,6 +5094,9 @@ declare class InterApplicationBus extends Base {
|
|
|
5077
5094
|
|
|
5078
5095
|
declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
|
5079
5096
|
|
|
5097
|
+
/**
|
|
5098
|
+
* Define whether to enable interop action logging.
|
|
5099
|
+
*/
|
|
5080
5100
|
declare interface InteropActionLoggingOption {
|
|
5081
5101
|
enabled: boolean;
|
|
5082
5102
|
}
|
|
@@ -8399,12 +8419,11 @@ declare class Platform extends EmitterBase<OpenFin_2.PlatformEvent> {
|
|
|
8399
8419
|
*/
|
|
8400
8420
|
closeView(viewIdentity: OpenFin_2.Identity): Promise<void>;
|
|
8401
8421
|
/**
|
|
8402
|
-
* ***DEPRECATED - please use Platform.createView.***
|
|
8422
|
+
* ***DEPRECATED - please use {@link Platform.createView Platform.createView}.***
|
|
8403
8423
|
* Reparents a specified view in a new target window.
|
|
8404
8424
|
* @param viewIdentity View identity
|
|
8405
8425
|
* @param target new owner window identity
|
|
8406
8426
|
*
|
|
8407
|
-
* @tutorial Platform.createView
|
|
8408
8427
|
*/
|
|
8409
8428
|
reparentView(viewIdentity: OpenFin_2.Identity, target: OpenFin_2.Identity): Promise<View>;
|
|
8410
8429
|
/**
|
|
@@ -8752,7 +8771,9 @@ declare type PlatformApiReadyEvent = BaseEvent & {
|
|
|
8752
8771
|
};
|
|
8753
8772
|
|
|
8754
8773
|
/**
|
|
8755
|
-
*
|
|
8774
|
+
* [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
|
|
8775
|
+
* discriminated by {@link PlatformEvent.type | their type}. Event payloads unique to `Platform` can be found
|
|
8776
|
+
* under the {@link OpenFin.PlatformEvents} namespace.
|
|
8756
8777
|
*/
|
|
8757
8778
|
declare type PlatformEvent = ApplicationEvent | PlatformApiReadyEvent | PlatformSnapshotAppliedEvent;
|
|
8758
8779
|
|
|
@@ -9495,30 +9516,109 @@ declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
|
|
|
9495
9516
|
|
|
9496
9517
|
declare type PopupInteraction = 'clicked' | 'dismissed';
|
|
9497
9518
|
|
|
9519
|
+
/**
|
|
9520
|
+
* Popup window options.
|
|
9521
|
+
*/
|
|
9498
9522
|
declare interface PopupOptions {
|
|
9523
|
+
/**
|
|
9524
|
+
* Window creation options when using `showPopupWindow` to create a new window.
|
|
9525
|
+
*/
|
|
9499
9526
|
initialOptions?: Optional<WindowCreationOptions, 'name'>;
|
|
9527
|
+
/**
|
|
9528
|
+
* Updatable window options applied to new and existing windows when shown as popups.
|
|
9529
|
+
*/
|
|
9500
9530
|
additionalOptions?: UpdatableWindowOptions;
|
|
9531
|
+
/**
|
|
9532
|
+
* If a window with this `name` exists, it will be shown as a popup.
|
|
9533
|
+
* Otherwise, a new window with this `name` will be created. If this `name` is undefined, `initialOptions.name` will be used. If this `name` and `intialOptions.name` are both undefined, a `name` will be generated.
|
|
9534
|
+
*/
|
|
9501
9535
|
name?: string;
|
|
9536
|
+
/**
|
|
9537
|
+
* Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
|
9538
|
+
*/
|
|
9502
9539
|
url?: string;
|
|
9540
|
+
/**
|
|
9541
|
+
* Height of the popup window in pixels (takes priority over `intialOptions` size properties).
|
|
9542
|
+
* @defaultValue 300
|
|
9543
|
+
*/
|
|
9503
9544
|
height?: number;
|
|
9545
|
+
/**
|
|
9546
|
+
* Width of the popup window in pixels (takes priority over `intialOptions` size properties).
|
|
9547
|
+
* @defaultValue 300
|
|
9548
|
+
*/
|
|
9504
9549
|
width?: number;
|
|
9550
|
+
/**
|
|
9551
|
+
* Left position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
|
9552
|
+
* @defaultValue 0
|
|
9553
|
+
*/
|
|
9505
9554
|
x?: number;
|
|
9555
|
+
/**
|
|
9556
|
+
* Top position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
|
9557
|
+
* @defaultValue 0
|
|
9558
|
+
*/
|
|
9506
9559
|
y?: number;
|
|
9560
|
+
/**
|
|
9561
|
+
* Determines what happens if the popup window is blurred.
|
|
9562
|
+
* * 'modal' restricts resizing and positioning in the caller.
|
|
9563
|
+
* * 'hide' hides the popup window on blur.
|
|
9564
|
+
* * 'close' closes the popup window on blur.
|
|
9565
|
+
* @defaultValue 'close'
|
|
9566
|
+
*/
|
|
9507
9567
|
blurBehavior?: PopupBlurBehavior;
|
|
9568
|
+
/**
|
|
9569
|
+
* Determines what happens when the popup window calls `dispatchPopupResult`.
|
|
9570
|
+
* * 'none' will do nothing.
|
|
9571
|
+
* * 'hide' hides the popup window on `dispatchPopupResult`.
|
|
9572
|
+
* * 'close' closes the popup window on `dispatchPopupResult`.
|
|
9573
|
+
* @defaultValue 'close'
|
|
9574
|
+
*/
|
|
9508
9575
|
resultDispatchBehavior?: PopupResultBehavior;
|
|
9576
|
+
/**
|
|
9577
|
+
* Hide the popup window instead of closing when `close` is called on it.
|
|
9578
|
+
* <br>Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
|
9579
|
+
* @defaultValue false
|
|
9580
|
+
*/
|
|
9509
9581
|
hideOnClose?: boolean;
|
|
9582
|
+
/**
|
|
9583
|
+
* Determines if the popup window should or should not be focused when it is shown.
|
|
9584
|
+
* @defaultValue true
|
|
9585
|
+
*/
|
|
9510
9586
|
focus?: boolean;
|
|
9587
|
+
/**
|
|
9588
|
+
* Executed when the popup window is shown. Provides the popup window to the provided function, and allows for easy access the popup window for additional behavior customization.
|
|
9589
|
+
*/
|
|
9511
9590
|
onPopupReady?: (popupWindow: _Window) => any;
|
|
9591
|
+
/**
|
|
9592
|
+
* Executed when this window's popup calls `dispatchPopupResult`.
|
|
9593
|
+
* <br>Note: If this is defined, `showPopupWindow` will not return a `PopupResult`.
|
|
9594
|
+
*/
|
|
9512
9595
|
onPopupResult?: (payload: PopupResult) => any;
|
|
9513
9596
|
}
|
|
9514
9597
|
|
|
9598
|
+
/**
|
|
9599
|
+
* The Popup result.
|
|
9600
|
+
*
|
|
9601
|
+
* @typeParam T - Type of data the Popup result contains
|
|
9602
|
+
*/
|
|
9515
9603
|
declare interface PopupResult<T = any> {
|
|
9604
|
+
/**
|
|
9605
|
+
* `name` and `uuid` of the popup window that called dispatched this result.
|
|
9606
|
+
*/
|
|
9516
9607
|
identity: {
|
|
9517
9608
|
name: string;
|
|
9518
9609
|
uuid: string;
|
|
9519
9610
|
};
|
|
9611
|
+
/**
|
|
9612
|
+
* Result of the user interaction with the popup window.
|
|
9613
|
+
*/
|
|
9520
9614
|
result: PopupInteraction;
|
|
9615
|
+
/**
|
|
9616
|
+
* Data passed to `dispatchPopupResult`.
|
|
9617
|
+
*/
|
|
9521
9618
|
data?: T;
|
|
9619
|
+
/**
|
|
9620
|
+
* The last dispatch result.
|
|
9621
|
+
*/
|
|
9522
9622
|
lastDispatchResult?: PopupResult;
|
|
9523
9623
|
}
|
|
9524
9624
|
|
|
@@ -9754,10 +9854,25 @@ declare type ProcessDetails = {
|
|
|
9754
9854
|
pid: number;
|
|
9755
9855
|
};
|
|
9756
9856
|
|
|
9857
|
+
/**
|
|
9858
|
+
* Process logging options
|
|
9859
|
+
*/
|
|
9757
9860
|
declare interface ProcessLoggingOptions {
|
|
9861
|
+
/**
|
|
9862
|
+
* Periodic Logging Interval (in seconds)
|
|
9863
|
+
*/
|
|
9758
9864
|
interval?: number;
|
|
9865
|
+
/**
|
|
9866
|
+
* Outlier Detection options
|
|
9867
|
+
*/
|
|
9759
9868
|
outlierDetection?: {
|
|
9869
|
+
/**
|
|
9870
|
+
* Outlier Interval (in seconds)
|
|
9871
|
+
*/
|
|
9760
9872
|
interval?: number;
|
|
9873
|
+
/**
|
|
9874
|
+
* Number of Process Info entries to collect for outlier analysis
|
|
9875
|
+
*/
|
|
9761
9876
|
entries?: number;
|
|
9762
9877
|
};
|
|
9763
9878
|
}
|
|
@@ -12217,7 +12332,10 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
12217
12332
|
}
|
|
12218
12333
|
|
|
12219
12334
|
/**
|
|
12220
|
-
*
|
|
12335
|
+
* [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
|
|
12336
|
+
* discriminated by {@link SystemEvent.type | their type}. Event payloads unique to `System` can be found
|
|
12337
|
+
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
12338
|
+
* from which they propagate).
|
|
12221
12339
|
*/
|
|
12222
12340
|
declare type SystemEvent = {
|
|
12223
12341
|
topic: 'system';
|
|
@@ -13314,7 +13432,9 @@ declare type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
|
|
|
13314
13432
|
};
|
|
13315
13433
|
|
|
13316
13434
|
/**
|
|
13317
|
-
*
|
|
13435
|
+
* [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
|
|
13436
|
+
* discriminated by {@link ViewEvent.type | their type}. Event payloads unique to `View` can be found
|
|
13437
|
+
* under the {@link OpenFin.ViewEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
|
13318
13438
|
*/
|
|
13319
13439
|
declare type ViewEvent = {
|
|
13320
13440
|
topic: 'view';
|
|
@@ -13478,6 +13598,9 @@ declare class ViewOverlay {
|
|
|
13478
13598
|
setIgnoreViewMouseEvents(enabled: boolean): Promise<void>;
|
|
13479
13599
|
}
|
|
13480
13600
|
|
|
13601
|
+
/**
|
|
13602
|
+
* Represents the payload shape for Views that are trying to prevent an unload.
|
|
13603
|
+
*/
|
|
13481
13604
|
declare interface ViewsPreventingUnloadPayload {
|
|
13482
13605
|
/**
|
|
13483
13606
|
* Specifies if the Window should close.
|
|
@@ -13511,6 +13634,9 @@ declare type ViewState = ViewCreationOptions & {
|
|
|
13511
13634
|
minWidth?: number;
|
|
13512
13635
|
};
|
|
13513
13636
|
|
|
13637
|
+
/**
|
|
13638
|
+
* The statuses of views specifying which of them are trying to prevent an unload and which are not.
|
|
13639
|
+
*/
|
|
13514
13640
|
declare interface ViewStatuses {
|
|
13515
13641
|
/**
|
|
13516
13642
|
* Identities of the Views that are preventing an unload.
|
|
@@ -15968,6 +16094,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
15968
16094
|
*/
|
|
15969
16095
|
closePopupMenu(): Promise<void>;
|
|
15970
16096
|
/**
|
|
16097
|
+
* @PORTED
|
|
15971
16098
|
* @typedef {object} PopupOptions@typedef {object} PopupOptions
|
|
15972
16099
|
* @property {string} [name] - If a window with this `name` exists, it will be shown as a popup. Otherwise, a new window with this `name` will be created. If this `name` is undefined, `initialOptions.name` will be used. If this `name` and `intialOptions.name` are both undefined, a `name` will be generated.
|
|
15973
16100
|
* @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
|
@@ -15985,6 +16112,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
15985
16112
|
* @property {boolean} [hideOnClose] - Hide the popup window instead of closing whenever `close` is called on it. Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
|
15986
16113
|
*/
|
|
15987
16114
|
/**
|
|
16115
|
+
* @PORTED
|
|
15988
16116
|
* @typedef {object} PopupResult@typedef {object} PopupResult
|
|
15989
16117
|
* @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
|
|
15990
16118
|
* @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
|
|
@@ -16130,7 +16258,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16130
16258
|
*/
|
|
16131
16259
|
name: string;
|
|
16132
16260
|
/**
|
|
16133
|
-
* The right-most coordinate of the window
|
|
16261
|
+
* The right-most coordinate of the window.
|
|
16134
16262
|
*/
|
|
16135
16263
|
right: number;
|
|
16136
16264
|
state: string;
|
|
@@ -16153,7 +16281,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16153
16281
|
};
|
|
16154
16282
|
|
|
16155
16283
|
/**
|
|
16156
|
-
*
|
|
16284
|
+
* [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
|
|
16285
|
+
* discriminated by {@link WindowEvent.type | their type}. Event payloads unique to `Window` can be found
|
|
16286
|
+
* under the {@link OpenFin.WindowEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
|
16157
16287
|
*/
|
|
16158
16288
|
declare type WindowEvent = {
|
|
16159
16289
|
topic: 'window';
|
package/out/mock.d.ts
CHANGED
|
@@ -851,7 +851,10 @@ declare type ApplicationCreationOptions = Partial<ApplicationOptions> & {
|
|
|
851
851
|
};
|
|
852
852
|
|
|
853
853
|
/**
|
|
854
|
-
*
|
|
854
|
+
* [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
|
|
855
|
+
* discriminated by {@link ApplicationEvent.type | their type}. Event payloads unique to `Application` can be found
|
|
856
|
+
* under the {@link OpenFin.ApplicationEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
857
|
+
* from which they propagate).
|
|
855
858
|
*/
|
|
856
859
|
declare type ApplicationEvent = {
|
|
857
860
|
topic: 'application';
|
|
@@ -1589,6 +1592,9 @@ declare type BaseViewEvent = NamedEvent & {
|
|
|
1589
1592
|
viewIdentity: OpenFin_2.Identity;
|
|
1590
1593
|
};
|
|
1591
1594
|
|
|
1595
|
+
/**
|
|
1596
|
+
* User decision of whether a Window or specific View should close when trying to prevent an unload.
|
|
1597
|
+
*/
|
|
1592
1598
|
declare interface BeforeUnloadUserDecision {
|
|
1593
1599
|
/**
|
|
1594
1600
|
* Specifies if the Window should close.
|
|
@@ -2361,7 +2367,9 @@ declare namespace ChannelEvents {
|
|
|
2361
2367
|
}
|
|
2362
2368
|
|
|
2363
2369
|
/**
|
|
2364
|
-
*
|
|
2370
|
+
* [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
|
|
2371
|
+
* discriminated by {@link ChannelEvent.type | their type}. Event payloads unique to `Channel` can be found
|
|
2372
|
+
* under the {@link OpenFin.ChannelEvents} namespace.
|
|
2365
2373
|
*/
|
|
2366
2374
|
declare type ChannelEventType = ChannelEvent['type'];
|
|
2367
2375
|
|
|
@@ -2910,6 +2918,9 @@ declare type CloseViewPayload = {
|
|
|
2910
2918
|
view: Identity_5;
|
|
2911
2919
|
};
|
|
2912
2920
|
|
|
2921
|
+
/**
|
|
2922
|
+
* Represents the shape of payload that contains the Window Identity and related options.
|
|
2923
|
+
*/
|
|
2913
2924
|
declare interface CloseWindowPayload {
|
|
2914
2925
|
/**
|
|
2915
2926
|
*
|
|
@@ -4138,7 +4149,9 @@ declare type ExternalApplicationDisconnectedEvent = BaseEvent & {
|
|
|
4138
4149
|
};
|
|
4139
4150
|
|
|
4140
4151
|
/**
|
|
4141
|
-
*
|
|
4152
|
+
* [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
|
|
4153
|
+
* discriminated by {@link ExternalApplicationEvent.type | their type}. Event payloads unique to `ExternalApplication` can be found
|
|
4154
|
+
* under the {@link OpenFin.ExternalApplicationEvents} namespace.
|
|
4142
4155
|
*/
|
|
4143
4156
|
declare type ExternalApplicationEvent = {
|
|
4144
4157
|
topic: 'externalapplication';
|
|
@@ -4626,7 +4639,9 @@ declare namespace FrameEvents {
|
|
|
4626
4639
|
}
|
|
4627
4640
|
|
|
4628
4641
|
/**
|
|
4629
|
-
*
|
|
4642
|
+
* [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
|
|
4643
|
+
* discriminated by {@link _Frame.type | their type}. Event payloads unique to `Frame` can be found
|
|
4644
|
+
* under the {@link OpenFin.FrameEvents} namespace.
|
|
4630
4645
|
*/
|
|
4631
4646
|
declare type FrameEventType = FrameEvent['type'];
|
|
4632
4647
|
|
|
@@ -4839,7 +4854,9 @@ declare class GlobalHotkey extends EmitterBase<OpenFin_2.GlobalHotkeyEvent> {
|
|
|
4839
4854
|
}
|
|
4840
4855
|
|
|
4841
4856
|
/**
|
|
4842
|
-
*
|
|
4857
|
+
* [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
|
|
4858
|
+
* discriminated by {@link GlobalHotkeyEvent.type | their type}. Event payloads unique to `GlobalHotkey` can be found
|
|
4859
|
+
* under the {@link OpenFin.GlobalHotkeyEvents} namespace.
|
|
4843
4860
|
*/
|
|
4844
4861
|
declare type GlobalHotkeyEvent = {
|
|
4845
4862
|
topic: 'global-hotkey';
|
|
@@ -5208,6 +5225,9 @@ declare class InterAppPayload {
|
|
|
5208
5225
|
|
|
5209
5226
|
declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
|
5210
5227
|
|
|
5228
|
+
/**
|
|
5229
|
+
* Define whether to enable interop action logging.
|
|
5230
|
+
*/
|
|
5211
5231
|
declare interface InteropActionLoggingOption {
|
|
5212
5232
|
enabled: boolean;
|
|
5213
5233
|
}
|
|
@@ -8831,12 +8851,11 @@ declare class Platform extends EmitterBase<OpenFin_2.PlatformEvent> {
|
|
|
8831
8851
|
*/
|
|
8832
8852
|
closeView(viewIdentity: OpenFin_2.Identity): Promise<void>;
|
|
8833
8853
|
/**
|
|
8834
|
-
* ***DEPRECATED - please use Platform.createView.***
|
|
8854
|
+
* ***DEPRECATED - please use {@link Platform.createView Platform.createView}.***
|
|
8835
8855
|
* Reparents a specified view in a new target window.
|
|
8836
8856
|
* @param viewIdentity View identity
|
|
8837
8857
|
* @param target new owner window identity
|
|
8838
8858
|
*
|
|
8839
|
-
* @tutorial Platform.createView
|
|
8840
8859
|
*/
|
|
8841
8860
|
reparentView(viewIdentity: OpenFin_2.Identity, target: OpenFin_2.Identity): Promise<View>;
|
|
8842
8861
|
/**
|
|
@@ -9211,7 +9230,9 @@ declare type PlatformApiReadyEvent = BaseEvent & {
|
|
|
9211
9230
|
};
|
|
9212
9231
|
|
|
9213
9232
|
/**
|
|
9214
|
-
*
|
|
9233
|
+
* [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
|
|
9234
|
+
* discriminated by {@link PlatformEvent.type | their type}. Event payloads unique to `Platform` can be found
|
|
9235
|
+
* under the {@link OpenFin.PlatformEvents} namespace.
|
|
9215
9236
|
*/
|
|
9216
9237
|
declare type PlatformEvent = ApplicationEvent | PlatformApiReadyEvent | PlatformSnapshotAppliedEvent;
|
|
9217
9238
|
|
|
@@ -9993,30 +10014,109 @@ declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
|
|
|
9993
10014
|
|
|
9994
10015
|
declare type PopupInteraction = 'clicked' | 'dismissed';
|
|
9995
10016
|
|
|
10017
|
+
/**
|
|
10018
|
+
* Popup window options.
|
|
10019
|
+
*/
|
|
9996
10020
|
declare interface PopupOptions {
|
|
10021
|
+
/**
|
|
10022
|
+
* Window creation options when using `showPopupWindow` to create a new window.
|
|
10023
|
+
*/
|
|
9997
10024
|
initialOptions?: Optional<WindowCreationOptions, 'name'>;
|
|
10025
|
+
/**
|
|
10026
|
+
* Updatable window options applied to new and existing windows when shown as popups.
|
|
10027
|
+
*/
|
|
9998
10028
|
additionalOptions?: UpdatableWindowOptions;
|
|
10029
|
+
/**
|
|
10030
|
+
* If a window with this `name` exists, it will be shown as a popup.
|
|
10031
|
+
* Otherwise, a new window with this `name` will be created. If this `name` is undefined, `initialOptions.name` will be used. If this `name` and `intialOptions.name` are both undefined, a `name` will be generated.
|
|
10032
|
+
*/
|
|
9999
10033
|
name?: string;
|
|
10034
|
+
/**
|
|
10035
|
+
* Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
|
10036
|
+
*/
|
|
10000
10037
|
url?: string;
|
|
10038
|
+
/**
|
|
10039
|
+
* Height of the popup window in pixels (takes priority over `intialOptions` size properties).
|
|
10040
|
+
* @defaultValue 300
|
|
10041
|
+
*/
|
|
10001
10042
|
height?: number;
|
|
10043
|
+
/**
|
|
10044
|
+
* Width of the popup window in pixels (takes priority over `intialOptions` size properties).
|
|
10045
|
+
* @defaultValue 300
|
|
10046
|
+
*/
|
|
10002
10047
|
width?: number;
|
|
10048
|
+
/**
|
|
10049
|
+
* Left position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
|
10050
|
+
* @defaultValue 0
|
|
10051
|
+
*/
|
|
10003
10052
|
x?: number;
|
|
10053
|
+
/**
|
|
10054
|
+
* Top position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
|
10055
|
+
* @defaultValue 0
|
|
10056
|
+
*/
|
|
10004
10057
|
y?: number;
|
|
10058
|
+
/**
|
|
10059
|
+
* Determines what happens if the popup window is blurred.
|
|
10060
|
+
* * 'modal' restricts resizing and positioning in the caller.
|
|
10061
|
+
* * 'hide' hides the popup window on blur.
|
|
10062
|
+
* * 'close' closes the popup window on blur.
|
|
10063
|
+
* @defaultValue 'close'
|
|
10064
|
+
*/
|
|
10005
10065
|
blurBehavior?: PopupBlurBehavior;
|
|
10066
|
+
/**
|
|
10067
|
+
* Determines what happens when the popup window calls `dispatchPopupResult`.
|
|
10068
|
+
* * 'none' will do nothing.
|
|
10069
|
+
* * 'hide' hides the popup window on `dispatchPopupResult`.
|
|
10070
|
+
* * 'close' closes the popup window on `dispatchPopupResult`.
|
|
10071
|
+
* @defaultValue 'close'
|
|
10072
|
+
*/
|
|
10006
10073
|
resultDispatchBehavior?: PopupResultBehavior;
|
|
10074
|
+
/**
|
|
10075
|
+
* Hide the popup window instead of closing when `close` is called on it.
|
|
10076
|
+
* <br>Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
|
10077
|
+
* @defaultValue false
|
|
10078
|
+
*/
|
|
10007
10079
|
hideOnClose?: boolean;
|
|
10080
|
+
/**
|
|
10081
|
+
* Determines if the popup window should or should not be focused when it is shown.
|
|
10082
|
+
* @defaultValue true
|
|
10083
|
+
*/
|
|
10008
10084
|
focus?: boolean;
|
|
10085
|
+
/**
|
|
10086
|
+
* Executed when the popup window is shown. Provides the popup window to the provided function, and allows for easy access the popup window for additional behavior customization.
|
|
10087
|
+
*/
|
|
10009
10088
|
onPopupReady?: (popupWindow: _Window) => any;
|
|
10089
|
+
/**
|
|
10090
|
+
* Executed when this window's popup calls `dispatchPopupResult`.
|
|
10091
|
+
* <br>Note: If this is defined, `showPopupWindow` will not return a `PopupResult`.
|
|
10092
|
+
*/
|
|
10010
10093
|
onPopupResult?: (payload: PopupResult) => any;
|
|
10011
10094
|
}
|
|
10012
10095
|
|
|
10096
|
+
/**
|
|
10097
|
+
* The Popup result.
|
|
10098
|
+
*
|
|
10099
|
+
* @typeParam T - Type of data the Popup result contains
|
|
10100
|
+
*/
|
|
10013
10101
|
declare interface PopupResult<T = any> {
|
|
10102
|
+
/**
|
|
10103
|
+
* `name` and `uuid` of the popup window that called dispatched this result.
|
|
10104
|
+
*/
|
|
10014
10105
|
identity: {
|
|
10015
10106
|
name: string;
|
|
10016
10107
|
uuid: string;
|
|
10017
10108
|
};
|
|
10109
|
+
/**
|
|
10110
|
+
* Result of the user interaction with the popup window.
|
|
10111
|
+
*/
|
|
10018
10112
|
result: PopupInteraction;
|
|
10113
|
+
/**
|
|
10114
|
+
* Data passed to `dispatchPopupResult`.
|
|
10115
|
+
*/
|
|
10019
10116
|
data?: T;
|
|
10117
|
+
/**
|
|
10118
|
+
* The last dispatch result.
|
|
10119
|
+
*/
|
|
10020
10120
|
lastDispatchResult?: PopupResult;
|
|
10021
10121
|
}
|
|
10022
10122
|
|
|
@@ -10252,10 +10352,25 @@ declare type ProcessDetails = {
|
|
|
10252
10352
|
pid: number;
|
|
10253
10353
|
};
|
|
10254
10354
|
|
|
10355
|
+
/**
|
|
10356
|
+
* Process logging options
|
|
10357
|
+
*/
|
|
10255
10358
|
declare interface ProcessLoggingOptions {
|
|
10359
|
+
/**
|
|
10360
|
+
* Periodic Logging Interval (in seconds)
|
|
10361
|
+
*/
|
|
10256
10362
|
interval?: number;
|
|
10363
|
+
/**
|
|
10364
|
+
* Outlier Detection options
|
|
10365
|
+
*/
|
|
10257
10366
|
outlierDetection?: {
|
|
10367
|
+
/**
|
|
10368
|
+
* Outlier Interval (in seconds)
|
|
10369
|
+
*/
|
|
10258
10370
|
interval?: number;
|
|
10371
|
+
/**
|
|
10372
|
+
* Number of Process Info entries to collect for outlier analysis
|
|
10373
|
+
*/
|
|
10259
10374
|
entries?: number;
|
|
10260
10375
|
};
|
|
10261
10376
|
}
|
|
@@ -12721,7 +12836,10 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
12721
12836
|
}
|
|
12722
12837
|
|
|
12723
12838
|
/**
|
|
12724
|
-
*
|
|
12839
|
+
* [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
|
|
12840
|
+
* discriminated by {@link SystemEvent.type | their type}. Event payloads unique to `System` can be found
|
|
12841
|
+
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
12842
|
+
* from which they propagate).
|
|
12725
12843
|
*/
|
|
12726
12844
|
declare type SystemEvent = {
|
|
12727
12845
|
topic: 'system';
|
|
@@ -13912,7 +14030,9 @@ declare type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
|
|
|
13912
14030
|
};
|
|
13913
14031
|
|
|
13914
14032
|
/**
|
|
13915
|
-
*
|
|
14033
|
+
* [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
|
|
14034
|
+
* discriminated by {@link ViewEvent.type | their type}. Event payloads unique to `View` can be found
|
|
14035
|
+
* under the {@link OpenFin.ViewEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
|
13916
14036
|
*/
|
|
13917
14037
|
declare type ViewEvent = {
|
|
13918
14038
|
topic: 'view';
|
|
@@ -14076,6 +14196,9 @@ declare class ViewOverlay {
|
|
|
14076
14196
|
setIgnoreViewMouseEvents(enabled: boolean): Promise<void>;
|
|
14077
14197
|
}
|
|
14078
14198
|
|
|
14199
|
+
/**
|
|
14200
|
+
* Represents the payload shape for Views that are trying to prevent an unload.
|
|
14201
|
+
*/
|
|
14079
14202
|
declare interface ViewsPreventingUnloadPayload {
|
|
14080
14203
|
/**
|
|
14081
14204
|
* Specifies if the Window should close.
|
|
@@ -14109,6 +14232,9 @@ declare type ViewState = ViewCreationOptions & {
|
|
|
14109
14232
|
minWidth?: number;
|
|
14110
14233
|
};
|
|
14111
14234
|
|
|
14235
|
+
/**
|
|
14236
|
+
* The statuses of views specifying which of them are trying to prevent an unload and which are not.
|
|
14237
|
+
*/
|
|
14112
14238
|
declare interface ViewStatuses {
|
|
14113
14239
|
/**
|
|
14114
14240
|
* Identities of the Views that are preventing an unload.
|
|
@@ -16650,6 +16776,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16650
16776
|
*/
|
|
16651
16777
|
closePopupMenu(): Promise<void>;
|
|
16652
16778
|
/**
|
|
16779
|
+
* @PORTED
|
|
16653
16780
|
* @typedef {object} PopupOptions@typedef {object} PopupOptions
|
|
16654
16781
|
* @property {string} [name] - If a window with this `name` exists, it will be shown as a popup. Otherwise, a new window with this `name` will be created. If this `name` is undefined, `initialOptions.name` will be used. If this `name` and `intialOptions.name` are both undefined, a `name` will be generated.
|
|
16655
16782
|
* @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
|
@@ -16667,6 +16794,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16667
16794
|
* @property {boolean} [hideOnClose] - Hide the popup window instead of closing whenever `close` is called on it. Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
|
16668
16795
|
*/
|
|
16669
16796
|
/**
|
|
16797
|
+
* @PORTED
|
|
16670
16798
|
* @typedef {object} PopupResult@typedef {object} PopupResult
|
|
16671
16799
|
* @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
|
|
16672
16800
|
* @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
|
|
@@ -16812,7 +16940,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16812
16940
|
*/
|
|
16813
16941
|
name: string;
|
|
16814
16942
|
/**
|
|
16815
|
-
* The right-most coordinate of the window
|
|
16943
|
+
* The right-most coordinate of the window.
|
|
16816
16944
|
*/
|
|
16817
16945
|
right: number;
|
|
16818
16946
|
state: string;
|
|
@@ -16835,7 +16963,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
|
|
|
16835
16963
|
};
|
|
16836
16964
|
|
|
16837
16965
|
/**
|
|
16838
|
-
*
|
|
16966
|
+
* [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
|
|
16967
|
+
* discriminated by {@link WindowEvent.type | their type}. Event payloads unique to `Window` can be found
|
|
16968
|
+
* under the {@link OpenFin.WindowEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
|
16839
16969
|
*/
|
|
16840
16970
|
declare type WindowEvent = {
|
|
16841
16971
|
topic: 'window';
|