@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.
@@ -845,7 +845,10 @@ declare type ApplicationCreationOptions = Partial<ApplicationOptions> & {
845
845
  };
846
846
 
847
847
  /**
848
- * An Application event.
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
- * A Channel event type.
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
- * An external application event.
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
- * A Frame event type.
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
- * A global hotkey event.
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
- * A Platform event.
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
- * A system event.
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
- * A View event.
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
- * A Window event.
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';
@@ -845,7 +845,10 @@ declare type ApplicationCreationOptions = Partial<ApplicationOptions> & {
845
845
  };
846
846
 
847
847
  /**
848
- * An Application event.
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
- * A Channel event type.
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
- * An external application event.
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
- * A Frame event type.
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
- * A global hotkey event.
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
- * A Platform event.
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
- * A system event.
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
- * A View event.
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
- * A Window event.
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';