@openfin/node-adapter 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/node-adapter-alpha.d.ts +142 -12
- package/out/node-adapter-beta.d.ts +142 -12
- package/out/node-adapter-public.d.ts +142 -12
- package/out/node-adapter.d.ts +142 -12
- package/out/node-adapter.js +35 -41
- package/package.json +1 -1
@@ -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.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
|
*
|
@@ -4032,7 +4043,9 @@ declare type ExternalApplicationDisconnectedEvent = BaseEvent & {
|
|
4032
4043
|
};
|
4033
4044
|
|
4034
4045
|
/**
|
4035
|
-
*
|
4046
|
+
* [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
|
4047
|
+
* discriminated by {@link ExternalApplicationEvent.type | their type}. Event payloads unique to `ExternalApplication` can be found
|
4048
|
+
* under the {@link OpenFin.ExternalApplicationEvents} namespace.
|
4036
4049
|
*/
|
4037
4050
|
declare type ExternalApplicationEvent = {
|
4038
4051
|
topic: 'externalapplication';
|
@@ -4537,7 +4550,9 @@ declare namespace FrameEvents {
|
|
4537
4550
|
}
|
4538
4551
|
|
4539
4552
|
/**
|
4540
|
-
*
|
4553
|
+
* [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
|
4554
|
+
* discriminated by {@link _Frame.type | their type}. Event payloads unique to `Frame` can be found
|
4555
|
+
* under the {@link OpenFin.FrameEvents} namespace.
|
4541
4556
|
*/
|
4542
4557
|
declare type FrameEventType = FrameEvent['type'];
|
4543
4558
|
|
@@ -4747,7 +4762,9 @@ declare class GlobalHotkey extends EmitterBase<OpenFin.GlobalHotkeyEvent> {
|
|
4747
4762
|
}
|
4748
4763
|
|
4749
4764
|
/**
|
4750
|
-
*
|
4765
|
+
* [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
|
4766
|
+
* discriminated by {@link GlobalHotkeyEvent.type | their type}. Event payloads unique to `GlobalHotkey` can be found
|
4767
|
+
* under the {@link OpenFin.GlobalHotkeyEvents} namespace.
|
4751
4768
|
*/
|
4752
4769
|
declare type GlobalHotkeyEvent = {
|
4753
4770
|
topic: 'global-hotkey';
|
@@ -5101,6 +5118,9 @@ declare class InterApplicationBus extends Base {
|
|
5101
5118
|
|
5102
5119
|
declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
5103
5120
|
|
5121
|
+
/**
|
5122
|
+
* Define whether to enable interop action logging.
|
5123
|
+
*/
|
5104
5124
|
declare interface InteropActionLoggingOption {
|
5105
5125
|
enabled: boolean;
|
5106
5126
|
}
|
@@ -8425,12 +8445,11 @@ declare class Platform extends EmitterBase<OpenFin.PlatformEvent> {
|
|
8425
8445
|
*/
|
8426
8446
|
closeView(viewIdentity: OpenFin.Identity): Promise<void>;
|
8427
8447
|
/**
|
8428
|
-
* ***DEPRECATED - please use Platform.createView.***
|
8448
|
+
* ***DEPRECATED - please use {@link Platform.createView Platform.createView}.***
|
8429
8449
|
* Reparents a specified view in a new target window.
|
8430
8450
|
* @param viewIdentity View identity
|
8431
8451
|
* @param target new owner window identity
|
8432
8452
|
*
|
8433
|
-
* @tutorial Platform.createView
|
8434
8453
|
*/
|
8435
8454
|
reparentView(viewIdentity: OpenFin.Identity, target: OpenFin.Identity): Promise<View>;
|
8436
8455
|
/**
|
@@ -8778,7 +8797,9 @@ declare type PlatformApiReadyEvent = BaseEvent & {
|
|
8778
8797
|
};
|
8779
8798
|
|
8780
8799
|
/**
|
8781
|
-
*
|
8800
|
+
* [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
|
8801
|
+
* discriminated by {@link PlatformEvent.type | their type}. Event payloads unique to `Platform` can be found
|
8802
|
+
* under the {@link OpenFin.PlatformEvents} namespace.
|
8782
8803
|
*/
|
8783
8804
|
declare type PlatformEvent = ApplicationEvent | PlatformApiReadyEvent | PlatformSnapshotAppliedEvent;
|
8784
8805
|
|
@@ -9521,30 +9542,109 @@ declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
|
|
9521
9542
|
|
9522
9543
|
declare type PopupInteraction = 'clicked' | 'dismissed';
|
9523
9544
|
|
9545
|
+
/**
|
9546
|
+
* Popup window options.
|
9547
|
+
*/
|
9524
9548
|
declare interface PopupOptions {
|
9549
|
+
/**
|
9550
|
+
* Window creation options when using `showPopupWindow` to create a new window.
|
9551
|
+
*/
|
9525
9552
|
initialOptions?: Optional<WindowCreationOptions, 'name'>;
|
9553
|
+
/**
|
9554
|
+
* Updatable window options applied to new and existing windows when shown as popups.
|
9555
|
+
*/
|
9526
9556
|
additionalOptions?: UpdatableWindowOptions;
|
9557
|
+
/**
|
9558
|
+
* If a window with this `name` exists, it will be shown as a popup.
|
9559
|
+
* 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.
|
9560
|
+
*/
|
9527
9561
|
name?: string;
|
9562
|
+
/**
|
9563
|
+
* Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
9564
|
+
*/
|
9528
9565
|
url?: string;
|
9566
|
+
/**
|
9567
|
+
* Height of the popup window in pixels (takes priority over `intialOptions` size properties).
|
9568
|
+
* @defaultValue 300
|
9569
|
+
*/
|
9529
9570
|
height?: number;
|
9571
|
+
/**
|
9572
|
+
* Width of the popup window in pixels (takes priority over `intialOptions` size properties).
|
9573
|
+
* @defaultValue 300
|
9574
|
+
*/
|
9530
9575
|
width?: number;
|
9576
|
+
/**
|
9577
|
+
* Left position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
9578
|
+
* @defaultValue 0
|
9579
|
+
*/
|
9531
9580
|
x?: number;
|
9581
|
+
/**
|
9582
|
+
* Top position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
9583
|
+
* @defaultValue 0
|
9584
|
+
*/
|
9532
9585
|
y?: number;
|
9586
|
+
/**
|
9587
|
+
* Determines what happens if the popup window is blurred.
|
9588
|
+
* * 'modal' restricts resizing and positioning in the caller.
|
9589
|
+
* * 'hide' hides the popup window on blur.
|
9590
|
+
* * 'close' closes the popup window on blur.
|
9591
|
+
* @defaultValue 'close'
|
9592
|
+
*/
|
9533
9593
|
blurBehavior?: PopupBlurBehavior;
|
9594
|
+
/**
|
9595
|
+
* Determines what happens when the popup window calls `dispatchPopupResult`.
|
9596
|
+
* * 'none' will do nothing.
|
9597
|
+
* * 'hide' hides the popup window on `dispatchPopupResult`.
|
9598
|
+
* * 'close' closes the popup window on `dispatchPopupResult`.
|
9599
|
+
* @defaultValue 'close'
|
9600
|
+
*/
|
9534
9601
|
resultDispatchBehavior?: PopupResultBehavior;
|
9602
|
+
/**
|
9603
|
+
* Hide the popup window instead of closing when `close` is called on it.
|
9604
|
+
* <br>Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
9605
|
+
* @defaultValue false
|
9606
|
+
*/
|
9535
9607
|
hideOnClose?: boolean;
|
9608
|
+
/**
|
9609
|
+
* Determines if the popup window should or should not be focused when it is shown.
|
9610
|
+
* @defaultValue true
|
9611
|
+
*/
|
9536
9612
|
focus?: boolean;
|
9613
|
+
/**
|
9614
|
+
* 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.
|
9615
|
+
*/
|
9537
9616
|
onPopupReady?: (popupWindow: _Window) => any;
|
9617
|
+
/**
|
9618
|
+
* Executed when this window's popup calls `dispatchPopupResult`.
|
9619
|
+
* <br>Note: If this is defined, `showPopupWindow` will not return a `PopupResult`.
|
9620
|
+
*/
|
9538
9621
|
onPopupResult?: (payload: PopupResult) => any;
|
9539
9622
|
}
|
9540
9623
|
|
9624
|
+
/**
|
9625
|
+
* The Popup result.
|
9626
|
+
*
|
9627
|
+
* @typeParam T - Type of data the Popup result contains
|
9628
|
+
*/
|
9541
9629
|
declare interface PopupResult<T = any> {
|
9630
|
+
/**
|
9631
|
+
* `name` and `uuid` of the popup window that called dispatched this result.
|
9632
|
+
*/
|
9542
9633
|
identity: {
|
9543
9634
|
name: string;
|
9544
9635
|
uuid: string;
|
9545
9636
|
};
|
9637
|
+
/**
|
9638
|
+
* Result of the user interaction with the popup window.
|
9639
|
+
*/
|
9546
9640
|
result: PopupInteraction;
|
9641
|
+
/**
|
9642
|
+
* Data passed to `dispatchPopupResult`.
|
9643
|
+
*/
|
9547
9644
|
data?: T;
|
9645
|
+
/**
|
9646
|
+
* The last dispatch result.
|
9647
|
+
*/
|
9548
9648
|
lastDispatchResult?: PopupResult;
|
9549
9649
|
}
|
9550
9650
|
|
@@ -9780,10 +9880,25 @@ declare type ProcessDetails = {
|
|
9780
9880
|
pid: number;
|
9781
9881
|
};
|
9782
9882
|
|
9883
|
+
/**
|
9884
|
+
* Process logging options
|
9885
|
+
*/
|
9783
9886
|
declare interface ProcessLoggingOptions {
|
9887
|
+
/**
|
9888
|
+
* Periodic Logging Interval (in seconds)
|
9889
|
+
*/
|
9784
9890
|
interval?: number;
|
9891
|
+
/**
|
9892
|
+
* Outlier Detection options
|
9893
|
+
*/
|
9785
9894
|
outlierDetection?: {
|
9895
|
+
/**
|
9896
|
+
* Outlier Interval (in seconds)
|
9897
|
+
*/
|
9786
9898
|
interval?: number;
|
9899
|
+
/**
|
9900
|
+
* Number of Process Info entries to collect for outlier analysis
|
9901
|
+
*/
|
9787
9902
|
entries?: number;
|
9788
9903
|
};
|
9789
9904
|
}
|
@@ -12243,7 +12358,10 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
12243
12358
|
}
|
12244
12359
|
|
12245
12360
|
/**
|
12246
|
-
*
|
12361
|
+
* [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
|
12362
|
+
* discriminated by {@link SystemEvent.type | their type}. Event payloads unique to `System` can be found
|
12363
|
+
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
12364
|
+
* from which they propagate).
|
12247
12365
|
*/
|
12248
12366
|
declare type SystemEvent = {
|
12249
12367
|
topic: 'system';
|
@@ -13340,7 +13458,9 @@ declare type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
|
|
13340
13458
|
};
|
13341
13459
|
|
13342
13460
|
/**
|
13343
|
-
*
|
13461
|
+
* [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
|
13462
|
+
* discriminated by {@link ViewEvent.type | their type}. Event payloads unique to `View` can be found
|
13463
|
+
* under the {@link OpenFin.ViewEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
13344
13464
|
*/
|
13345
13465
|
declare type ViewEvent = {
|
13346
13466
|
topic: 'view';
|
@@ -13504,6 +13624,9 @@ declare class ViewOverlay {
|
|
13504
13624
|
setIgnoreViewMouseEvents(enabled: boolean): Promise<void>;
|
13505
13625
|
}
|
13506
13626
|
|
13627
|
+
/**
|
13628
|
+
* Represents the payload shape for Views that are trying to prevent an unload.
|
13629
|
+
*/
|
13507
13630
|
declare interface ViewsPreventingUnloadPayload {
|
13508
13631
|
/**
|
13509
13632
|
* Specifies if the Window should close.
|
@@ -13537,6 +13660,9 @@ declare type ViewState = ViewCreationOptions & {
|
|
13537
13660
|
minWidth?: number;
|
13538
13661
|
};
|
13539
13662
|
|
13663
|
+
/**
|
13664
|
+
* The statuses of views specifying which of them are trying to prevent an unload and which are not.
|
13665
|
+
*/
|
13540
13666
|
declare interface ViewStatuses {
|
13541
13667
|
/**
|
13542
13668
|
* Identities of the Views that are preventing an unload.
|
@@ -15994,6 +16120,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
15994
16120
|
*/
|
15995
16121
|
closePopupMenu(): Promise<void>;
|
15996
16122
|
/**
|
16123
|
+
* @PORTED
|
15997
16124
|
* @typedef {object} PopupOptions@typedef {object} PopupOptions
|
15998
16125
|
* @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.
|
15999
16126
|
* @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
@@ -16011,6 +16138,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16011
16138
|
* @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.
|
16012
16139
|
*/
|
16013
16140
|
/**
|
16141
|
+
* @PORTED
|
16014
16142
|
* @typedef {object} PopupResult@typedef {object} PopupResult
|
16015
16143
|
* @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
|
16016
16144
|
* @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
|
@@ -16156,7 +16284,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16156
16284
|
*/
|
16157
16285
|
name: string;
|
16158
16286
|
/**
|
16159
|
-
* The right-most coordinate of the window
|
16287
|
+
* The right-most coordinate of the window.
|
16160
16288
|
*/
|
16161
16289
|
right: number;
|
16162
16290
|
state: string;
|
@@ -16179,7 +16307,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16179
16307
|
};
|
16180
16308
|
|
16181
16309
|
/**
|
16182
|
-
*
|
16310
|
+
* [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
|
16311
|
+
* discriminated by {@link WindowEvent.type | their type}. Event payloads unique to `Window` can be found
|
16312
|
+
* under the {@link OpenFin.WindowEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
16183
16313
|
*/
|
16184
16314
|
declare type WindowEvent = {
|
16185
16315
|
topic: 'window';
|
@@ -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.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
|
*
|
@@ -4032,7 +4043,9 @@ declare type ExternalApplicationDisconnectedEvent = BaseEvent & {
|
|
4032
4043
|
};
|
4033
4044
|
|
4034
4045
|
/**
|
4035
|
-
*
|
4046
|
+
* [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
|
4047
|
+
* discriminated by {@link ExternalApplicationEvent.type | their type}. Event payloads unique to `ExternalApplication` can be found
|
4048
|
+
* under the {@link OpenFin.ExternalApplicationEvents} namespace.
|
4036
4049
|
*/
|
4037
4050
|
declare type ExternalApplicationEvent = {
|
4038
4051
|
topic: 'externalapplication';
|
@@ -4537,7 +4550,9 @@ declare namespace FrameEvents {
|
|
4537
4550
|
}
|
4538
4551
|
|
4539
4552
|
/**
|
4540
|
-
*
|
4553
|
+
* [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
|
4554
|
+
* discriminated by {@link _Frame.type | their type}. Event payloads unique to `Frame` can be found
|
4555
|
+
* under the {@link OpenFin.FrameEvents} namespace.
|
4541
4556
|
*/
|
4542
4557
|
declare type FrameEventType = FrameEvent['type'];
|
4543
4558
|
|
@@ -4747,7 +4762,9 @@ declare class GlobalHotkey extends EmitterBase<OpenFin.GlobalHotkeyEvent> {
|
|
4747
4762
|
}
|
4748
4763
|
|
4749
4764
|
/**
|
4750
|
-
*
|
4765
|
+
* [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
|
4766
|
+
* discriminated by {@link GlobalHotkeyEvent.type | their type}. Event payloads unique to `GlobalHotkey` can be found
|
4767
|
+
* under the {@link OpenFin.GlobalHotkeyEvents} namespace.
|
4751
4768
|
*/
|
4752
4769
|
declare type GlobalHotkeyEvent = {
|
4753
4770
|
topic: 'global-hotkey';
|
@@ -5101,6 +5118,9 @@ declare class InterApplicationBus extends Base {
|
|
5101
5118
|
|
5102
5119
|
declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
5103
5120
|
|
5121
|
+
/**
|
5122
|
+
* Define whether to enable interop action logging.
|
5123
|
+
*/
|
5104
5124
|
declare interface InteropActionLoggingOption {
|
5105
5125
|
enabled: boolean;
|
5106
5126
|
}
|
@@ -8425,12 +8445,11 @@ declare class Platform extends EmitterBase<OpenFin.PlatformEvent> {
|
|
8425
8445
|
*/
|
8426
8446
|
closeView(viewIdentity: OpenFin.Identity): Promise<void>;
|
8427
8447
|
/**
|
8428
|
-
* ***DEPRECATED - please use Platform.createView.***
|
8448
|
+
* ***DEPRECATED - please use {@link Platform.createView Platform.createView}.***
|
8429
8449
|
* Reparents a specified view in a new target window.
|
8430
8450
|
* @param viewIdentity View identity
|
8431
8451
|
* @param target new owner window identity
|
8432
8452
|
*
|
8433
|
-
* @tutorial Platform.createView
|
8434
8453
|
*/
|
8435
8454
|
reparentView(viewIdentity: OpenFin.Identity, target: OpenFin.Identity): Promise<View>;
|
8436
8455
|
/**
|
@@ -8778,7 +8797,9 @@ declare type PlatformApiReadyEvent = BaseEvent & {
|
|
8778
8797
|
};
|
8779
8798
|
|
8780
8799
|
/**
|
8781
|
-
*
|
8800
|
+
* [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
|
8801
|
+
* discriminated by {@link PlatformEvent.type | their type}. Event payloads unique to `Platform` can be found
|
8802
|
+
* under the {@link OpenFin.PlatformEvents} namespace.
|
8782
8803
|
*/
|
8783
8804
|
declare type PlatformEvent = ApplicationEvent | PlatformApiReadyEvent | PlatformSnapshotAppliedEvent;
|
8784
8805
|
|
@@ -9521,30 +9542,109 @@ declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
|
|
9521
9542
|
|
9522
9543
|
declare type PopupInteraction = 'clicked' | 'dismissed';
|
9523
9544
|
|
9545
|
+
/**
|
9546
|
+
* Popup window options.
|
9547
|
+
*/
|
9524
9548
|
declare interface PopupOptions {
|
9549
|
+
/**
|
9550
|
+
* Window creation options when using `showPopupWindow` to create a new window.
|
9551
|
+
*/
|
9525
9552
|
initialOptions?: Optional<WindowCreationOptions, 'name'>;
|
9553
|
+
/**
|
9554
|
+
* Updatable window options applied to new and existing windows when shown as popups.
|
9555
|
+
*/
|
9526
9556
|
additionalOptions?: UpdatableWindowOptions;
|
9557
|
+
/**
|
9558
|
+
* If a window with this `name` exists, it will be shown as a popup.
|
9559
|
+
* 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.
|
9560
|
+
*/
|
9527
9561
|
name?: string;
|
9562
|
+
/**
|
9563
|
+
* Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
9564
|
+
*/
|
9528
9565
|
url?: string;
|
9566
|
+
/**
|
9567
|
+
* Height of the popup window in pixels (takes priority over `intialOptions` size properties).
|
9568
|
+
* @defaultValue 300
|
9569
|
+
*/
|
9529
9570
|
height?: number;
|
9571
|
+
/**
|
9572
|
+
* Width of the popup window in pixels (takes priority over `intialOptions` size properties).
|
9573
|
+
* @defaultValue 300
|
9574
|
+
*/
|
9530
9575
|
width?: number;
|
9576
|
+
/**
|
9577
|
+
* Left position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
9578
|
+
* @defaultValue 0
|
9579
|
+
*/
|
9531
9580
|
x?: number;
|
9581
|
+
/**
|
9582
|
+
* Top position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
9583
|
+
* @defaultValue 0
|
9584
|
+
*/
|
9532
9585
|
y?: number;
|
9586
|
+
/**
|
9587
|
+
* Determines what happens if the popup window is blurred.
|
9588
|
+
* * 'modal' restricts resizing and positioning in the caller.
|
9589
|
+
* * 'hide' hides the popup window on blur.
|
9590
|
+
* * 'close' closes the popup window on blur.
|
9591
|
+
* @defaultValue 'close'
|
9592
|
+
*/
|
9533
9593
|
blurBehavior?: PopupBlurBehavior;
|
9594
|
+
/**
|
9595
|
+
* Determines what happens when the popup window calls `dispatchPopupResult`.
|
9596
|
+
* * 'none' will do nothing.
|
9597
|
+
* * 'hide' hides the popup window on `dispatchPopupResult`.
|
9598
|
+
* * 'close' closes the popup window on `dispatchPopupResult`.
|
9599
|
+
* @defaultValue 'close'
|
9600
|
+
*/
|
9534
9601
|
resultDispatchBehavior?: PopupResultBehavior;
|
9602
|
+
/**
|
9603
|
+
* Hide the popup window instead of closing when `close` is called on it.
|
9604
|
+
* <br>Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
9605
|
+
* @defaultValue false
|
9606
|
+
*/
|
9535
9607
|
hideOnClose?: boolean;
|
9608
|
+
/**
|
9609
|
+
* Determines if the popup window should or should not be focused when it is shown.
|
9610
|
+
* @defaultValue true
|
9611
|
+
*/
|
9536
9612
|
focus?: boolean;
|
9613
|
+
/**
|
9614
|
+
* 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.
|
9615
|
+
*/
|
9537
9616
|
onPopupReady?: (popupWindow: _Window) => any;
|
9617
|
+
/**
|
9618
|
+
* Executed when this window's popup calls `dispatchPopupResult`.
|
9619
|
+
* <br>Note: If this is defined, `showPopupWindow` will not return a `PopupResult`.
|
9620
|
+
*/
|
9538
9621
|
onPopupResult?: (payload: PopupResult) => any;
|
9539
9622
|
}
|
9540
9623
|
|
9624
|
+
/**
|
9625
|
+
* The Popup result.
|
9626
|
+
*
|
9627
|
+
* @typeParam T - Type of data the Popup result contains
|
9628
|
+
*/
|
9541
9629
|
declare interface PopupResult<T = any> {
|
9630
|
+
/**
|
9631
|
+
* `name` and `uuid` of the popup window that called dispatched this result.
|
9632
|
+
*/
|
9542
9633
|
identity: {
|
9543
9634
|
name: string;
|
9544
9635
|
uuid: string;
|
9545
9636
|
};
|
9637
|
+
/**
|
9638
|
+
* Result of the user interaction with the popup window.
|
9639
|
+
*/
|
9546
9640
|
result: PopupInteraction;
|
9641
|
+
/**
|
9642
|
+
* Data passed to `dispatchPopupResult`.
|
9643
|
+
*/
|
9547
9644
|
data?: T;
|
9645
|
+
/**
|
9646
|
+
* The last dispatch result.
|
9647
|
+
*/
|
9548
9648
|
lastDispatchResult?: PopupResult;
|
9549
9649
|
}
|
9550
9650
|
|
@@ -9780,10 +9880,25 @@ declare type ProcessDetails = {
|
|
9780
9880
|
pid: number;
|
9781
9881
|
};
|
9782
9882
|
|
9883
|
+
/**
|
9884
|
+
* Process logging options
|
9885
|
+
*/
|
9783
9886
|
declare interface ProcessLoggingOptions {
|
9887
|
+
/**
|
9888
|
+
* Periodic Logging Interval (in seconds)
|
9889
|
+
*/
|
9784
9890
|
interval?: number;
|
9891
|
+
/**
|
9892
|
+
* Outlier Detection options
|
9893
|
+
*/
|
9785
9894
|
outlierDetection?: {
|
9895
|
+
/**
|
9896
|
+
* Outlier Interval (in seconds)
|
9897
|
+
*/
|
9786
9898
|
interval?: number;
|
9899
|
+
/**
|
9900
|
+
* Number of Process Info entries to collect for outlier analysis
|
9901
|
+
*/
|
9787
9902
|
entries?: number;
|
9788
9903
|
};
|
9789
9904
|
}
|
@@ -12243,7 +12358,10 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
12243
12358
|
}
|
12244
12359
|
|
12245
12360
|
/**
|
12246
|
-
*
|
12361
|
+
* [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
|
12362
|
+
* discriminated by {@link SystemEvent.type | their type}. Event payloads unique to `System` can be found
|
12363
|
+
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
12364
|
+
* from which they propagate).
|
12247
12365
|
*/
|
12248
12366
|
declare type SystemEvent = {
|
12249
12367
|
topic: 'system';
|
@@ -13340,7 +13458,9 @@ declare type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
|
|
13340
13458
|
};
|
13341
13459
|
|
13342
13460
|
/**
|
13343
|
-
*
|
13461
|
+
* [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
|
13462
|
+
* discriminated by {@link ViewEvent.type | their type}. Event payloads unique to `View` can be found
|
13463
|
+
* under the {@link OpenFin.ViewEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
13344
13464
|
*/
|
13345
13465
|
declare type ViewEvent = {
|
13346
13466
|
topic: 'view';
|
@@ -13504,6 +13624,9 @@ declare class ViewOverlay {
|
|
13504
13624
|
setIgnoreViewMouseEvents(enabled: boolean): Promise<void>;
|
13505
13625
|
}
|
13506
13626
|
|
13627
|
+
/**
|
13628
|
+
* Represents the payload shape for Views that are trying to prevent an unload.
|
13629
|
+
*/
|
13507
13630
|
declare interface ViewsPreventingUnloadPayload {
|
13508
13631
|
/**
|
13509
13632
|
* Specifies if the Window should close.
|
@@ -13537,6 +13660,9 @@ declare type ViewState = ViewCreationOptions & {
|
|
13537
13660
|
minWidth?: number;
|
13538
13661
|
};
|
13539
13662
|
|
13663
|
+
/**
|
13664
|
+
* The statuses of views specifying which of them are trying to prevent an unload and which are not.
|
13665
|
+
*/
|
13540
13666
|
declare interface ViewStatuses {
|
13541
13667
|
/**
|
13542
13668
|
* Identities of the Views that are preventing an unload.
|
@@ -15994,6 +16120,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
15994
16120
|
*/
|
15995
16121
|
closePopupMenu(): Promise<void>;
|
15996
16122
|
/**
|
16123
|
+
* @PORTED
|
15997
16124
|
* @typedef {object} PopupOptions@typedef {object} PopupOptions
|
15998
16125
|
* @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.
|
15999
16126
|
* @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
@@ -16011,6 +16138,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16011
16138
|
* @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.
|
16012
16139
|
*/
|
16013
16140
|
/**
|
16141
|
+
* @PORTED
|
16014
16142
|
* @typedef {object} PopupResult@typedef {object} PopupResult
|
16015
16143
|
* @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
|
16016
16144
|
* @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
|
@@ -16156,7 +16284,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16156
16284
|
*/
|
16157
16285
|
name: string;
|
16158
16286
|
/**
|
16159
|
-
* The right-most coordinate of the window
|
16287
|
+
* The right-most coordinate of the window.
|
16160
16288
|
*/
|
16161
16289
|
right: number;
|
16162
16290
|
state: string;
|
@@ -16179,7 +16307,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
16179
16307
|
};
|
16180
16308
|
|
16181
16309
|
/**
|
16182
|
-
*
|
16310
|
+
* [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
|
16311
|
+
* discriminated by {@link WindowEvent.type | their type}. Event payloads unique to `Window` can be found
|
16312
|
+
* under the {@link OpenFin.WindowEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
16183
16313
|
*/
|
16184
16314
|
declare type WindowEvent = {
|
16185
16315
|
topic: 'window';
|