@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.
@@ -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.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
  *
@@ -4032,7 +4043,9 @@ declare type ExternalApplicationDisconnectedEvent = BaseEvent & {
4032
4043
  };
4033
4044
 
4034
4045
  /**
4035
- * An external application event.
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
- * A Frame event type.
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
- * A global hotkey event.
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
- * A Platform event.
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
- * A system event.
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
- * A View event.
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
- * A Window event.
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';
@@ -851,7 +851,10 @@ declare type ApplicationCreationOptions = Partial<ApplicationOptions> & {
851
851
  };
852
852
 
853
853
  /**
854
- * An Application event.
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.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
- * A Channel event type.
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
  *
@@ -4142,7 +4153,9 @@ declare type ExternalApplicationDisconnectedEvent = BaseEvent & {
4142
4153
  };
4143
4154
 
4144
4155
  /**
4145
- * An external application event.
4156
+ * [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
4157
+ * discriminated by {@link ExternalApplicationEvent.type | their type}. Event payloads unique to `ExternalApplication` can be found
4158
+ * under the {@link OpenFin.ExternalApplicationEvents} namespace.
4146
4159
  */
4147
4160
  declare type ExternalApplicationEvent = {
4148
4161
  topic: 'externalapplication';
@@ -4653,7 +4666,9 @@ declare namespace FrameEvents {
4653
4666
  }
4654
4667
 
4655
4668
  /**
4656
- * A Frame event type.
4669
+ * [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
4670
+ * discriminated by {@link _Frame.type | their type}. Event payloads unique to `Frame` can be found
4671
+ * under the {@link OpenFin.FrameEvents} namespace.
4657
4672
  */
4658
4673
  declare type FrameEventType = FrameEvent['type'];
4659
4674
 
@@ -4866,7 +4881,9 @@ declare class GlobalHotkey extends EmitterBase<OpenFin.GlobalHotkeyEvent> {
4866
4881
  }
4867
4882
 
4868
4883
  /**
4869
- * A global hotkey event.
4884
+ * [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
4885
+ * discriminated by {@link GlobalHotkeyEvent.type | their type}. Event payloads unique to `GlobalHotkey` can be found
4886
+ * under the {@link OpenFin.GlobalHotkeyEvents} namespace.
4870
4887
  */
4871
4888
  declare type GlobalHotkeyEvent = {
4872
4889
  topic: 'global-hotkey';
@@ -5235,6 +5252,9 @@ declare class InterAppPayload {
5235
5252
 
5236
5253
  declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
5237
5254
 
5255
+ /**
5256
+ * Define whether to enable interop action logging.
5257
+ */
5238
5258
  declare interface InteropActionLoggingOption {
5239
5259
  enabled: boolean;
5240
5260
  }
@@ -8860,12 +8880,11 @@ declare class Platform extends EmitterBase<OpenFin.PlatformEvent> {
8860
8880
  */
8861
8881
  closeView(viewIdentity: OpenFin.Identity): Promise<void>;
8862
8882
  /**
8863
- * ***DEPRECATED - please use Platform.createView.***
8883
+ * ***DEPRECATED - please use {@link Platform.createView Platform.createView}.***
8864
8884
  * Reparents a specified view in a new target window.
8865
8885
  * @param viewIdentity View identity
8866
8886
  * @param target new owner window identity
8867
8887
  *
8868
- * @tutorial Platform.createView
8869
8888
  */
8870
8889
  reparentView(viewIdentity: OpenFin.Identity, target: OpenFin.Identity): Promise<View>;
8871
8890
  /**
@@ -9240,7 +9259,9 @@ declare type PlatformApiReadyEvent = BaseEvent & {
9240
9259
  };
9241
9260
 
9242
9261
  /**
9243
- * A Platform event.
9262
+ * [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
9263
+ * discriminated by {@link PlatformEvent.type | their type}. Event payloads unique to `Platform` can be found
9264
+ * under the {@link OpenFin.PlatformEvents} namespace.
9244
9265
  */
9245
9266
  declare type PlatformEvent = ApplicationEvent | PlatformApiReadyEvent | PlatformSnapshotAppliedEvent;
9246
9267
 
@@ -10022,30 +10043,109 @@ declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
10022
10043
 
10023
10044
  declare type PopupInteraction = 'clicked' | 'dismissed';
10024
10045
 
10046
+ /**
10047
+ * Popup window options.
10048
+ */
10025
10049
  declare interface PopupOptions {
10050
+ /**
10051
+ * Window creation options when using `showPopupWindow` to create a new window.
10052
+ */
10026
10053
  initialOptions?: Optional<WindowCreationOptions, 'name'>;
10054
+ /**
10055
+ * Updatable window options applied to new and existing windows when shown as popups.
10056
+ */
10027
10057
  additionalOptions?: UpdatableWindowOptions;
10058
+ /**
10059
+ * If a window with this `name` exists, it will be shown as a popup.
10060
+ * 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.
10061
+ */
10028
10062
  name?: string;
10063
+ /**
10064
+ * Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
10065
+ */
10029
10066
  url?: string;
10067
+ /**
10068
+ * Height of the popup window in pixels (takes priority over `intialOptions` size properties).
10069
+ * @defaultValue 300
10070
+ */
10030
10071
  height?: number;
10072
+ /**
10073
+ * Width of the popup window in pixels (takes priority over `intialOptions` size properties).
10074
+ * @defaultValue 300
10075
+ */
10031
10076
  width?: number;
10077
+ /**
10078
+ * Left position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
10079
+ * @defaultValue 0
10080
+ */
10032
10081
  x?: number;
10082
+ /**
10083
+ * Top position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
10084
+ * @defaultValue 0
10085
+ */
10033
10086
  y?: number;
10087
+ /**
10088
+ * Determines what happens if the popup window is blurred.
10089
+ * * 'modal' restricts resizing and positioning in the caller.
10090
+ * * 'hide' hides the popup window on blur.
10091
+ * * 'close' closes the popup window on blur.
10092
+ * @defaultValue 'close'
10093
+ */
10034
10094
  blurBehavior?: PopupBlurBehavior;
10095
+ /**
10096
+ * Determines what happens when the popup window calls `dispatchPopupResult`.
10097
+ * * 'none' will do nothing.
10098
+ * * 'hide' hides the popup window on `dispatchPopupResult`.
10099
+ * * 'close' closes the popup window on `dispatchPopupResult`.
10100
+ * @defaultValue 'close'
10101
+ */
10035
10102
  resultDispatchBehavior?: PopupResultBehavior;
10103
+ /**
10104
+ * Hide the popup window instead of closing when `close` is called on it.
10105
+ * <br>Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
10106
+ * @defaultValue false
10107
+ */
10036
10108
  hideOnClose?: boolean;
10109
+ /**
10110
+ * Determines if the popup window should or should not be focused when it is shown.
10111
+ * @defaultValue true
10112
+ */
10037
10113
  focus?: boolean;
10114
+ /**
10115
+ * 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.
10116
+ */
10038
10117
  onPopupReady?: (popupWindow: _Window) => any;
10118
+ /**
10119
+ * Executed when this window's popup calls `dispatchPopupResult`.
10120
+ * <br>Note: If this is defined, `showPopupWindow` will not return a `PopupResult`.
10121
+ */
10039
10122
  onPopupResult?: (payload: PopupResult) => any;
10040
10123
  }
10041
10124
 
10125
+ /**
10126
+ * The Popup result.
10127
+ *
10128
+ * @typeParam T - Type of data the Popup result contains
10129
+ */
10042
10130
  declare interface PopupResult<T = any> {
10131
+ /**
10132
+ * `name` and `uuid` of the popup window that called dispatched this result.
10133
+ */
10043
10134
  identity: {
10044
10135
  name: string;
10045
10136
  uuid: string;
10046
10137
  };
10138
+ /**
10139
+ * Result of the user interaction with the popup window.
10140
+ */
10047
10141
  result: PopupInteraction;
10142
+ /**
10143
+ * Data passed to `dispatchPopupResult`.
10144
+ */
10048
10145
  data?: T;
10146
+ /**
10147
+ * The last dispatch result.
10148
+ */
10049
10149
  lastDispatchResult?: PopupResult;
10050
10150
  }
10051
10151
 
@@ -10281,10 +10381,25 @@ declare type ProcessDetails = {
10281
10381
  pid: number;
10282
10382
  };
10283
10383
 
10384
+ /**
10385
+ * Process logging options
10386
+ */
10284
10387
  declare interface ProcessLoggingOptions {
10388
+ /**
10389
+ * Periodic Logging Interval (in seconds)
10390
+ */
10285
10391
  interval?: number;
10392
+ /**
10393
+ * Outlier Detection options
10394
+ */
10286
10395
  outlierDetection?: {
10396
+ /**
10397
+ * Outlier Interval (in seconds)
10398
+ */
10287
10399
  interval?: number;
10400
+ /**
10401
+ * Number of Process Info entries to collect for outlier analysis
10402
+ */
10288
10403
  entries?: number;
10289
10404
  };
10290
10405
  }
@@ -12750,7 +12865,10 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
12750
12865
  }
12751
12866
 
12752
12867
  /**
12753
- * A system event.
12868
+ * [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
12869
+ * discriminated by {@link SystemEvent.type | their type}. Event payloads unique to `System` can be found
12870
+ * under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
12871
+ * from which they propagate).
12754
12872
  */
12755
12873
  declare type SystemEvent = {
12756
12874
  topic: 'system';
@@ -13941,7 +14059,9 @@ declare type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
13941
14059
  };
13942
14060
 
13943
14061
  /**
13944
- * A View event.
14062
+ * [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
14063
+ * discriminated by {@link ViewEvent.type | their type}. Event payloads unique to `View` can be found
14064
+ * under the {@link OpenFin.ViewEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
13945
14065
  */
13946
14066
  declare type ViewEvent = {
13947
14067
  topic: 'view';
@@ -14105,6 +14225,9 @@ declare class ViewOverlay {
14105
14225
  setIgnoreViewMouseEvents(enabled: boolean): Promise<void>;
14106
14226
  }
14107
14227
 
14228
+ /**
14229
+ * Represents the payload shape for Views that are trying to prevent an unload.
14230
+ */
14108
14231
  declare interface ViewsPreventingUnloadPayload {
14109
14232
  /**
14110
14233
  * Specifies if the Window should close.
@@ -14138,6 +14261,9 @@ declare type ViewState = ViewCreationOptions & {
14138
14261
  minWidth?: number;
14139
14262
  };
14140
14263
 
14264
+ /**
14265
+ * The statuses of views specifying which of them are trying to prevent an unload and which are not.
14266
+ */
14141
14267
  declare interface ViewStatuses {
14142
14268
  /**
14143
14269
  * Identities of the Views that are preventing an unload.
@@ -16679,6 +16805,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16679
16805
  */
16680
16806
  closePopupMenu(): Promise<void>;
16681
16807
  /**
16808
+ * @PORTED
16682
16809
  * @typedef {object} PopupOptions@typedef {object} PopupOptions
16683
16810
  * @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.
16684
16811
  * @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
@@ -16696,6 +16823,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16696
16823
  * @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.
16697
16824
  */
16698
16825
  /**
16826
+ * @PORTED
16699
16827
  * @typedef {object} PopupResult@typedef {object} PopupResult
16700
16828
  * @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
16701
16829
  * @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
@@ -16841,7 +16969,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16841
16969
  */
16842
16970
  name: string;
16843
16971
  /**
16844
- * The right-most coordinate of the window
16972
+ * The right-most coordinate of the window.
16845
16973
  */
16846
16974
  right: number;
16847
16975
  state: string;
@@ -16864,7 +16992,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16864
16992
  };
16865
16993
 
16866
16994
  /**
16867
- * A Window event.
16995
+ * [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
16996
+ * discriminated by {@link WindowEvent.type | their type}. Event payloads unique to `Window` can be found
16997
+ * under the {@link OpenFin.WindowEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
16868
16998
  */
16869
16999
  declare type WindowEvent = {
16870
17000
  topic: 'window';